1# 2# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 3# Use is subject to license terms. 4# 5 6# "etcetera" must be listed before "backward" because it sets up links that 7# "backward" needs. 8TZFILES= africa \ 9 antarctica \ 10 asia \ 11 australasia \ 12 etcetera \ 13 europe \ 14 factory \ 15 northamerica \ 16 pacificnew \ 17 southamerica \ 18 backward 19 20# Don't build the systemv timezones, but do install the source file. 21SRCFILES= $(TZFILES) systemv README 22TABFILES= continent.tab country.tab zone_sun.tab 23 24include $(SRC)/data/Makefile.data 25 26ROOTTZD= $(ROOTSHLIB)/zoneinfo 27ROOTTZSRCD= $(ROOTSHLIB)/zoneinfo/src 28ROOTTZTABD= $(ROOTSHLIB)/zoneinfo/tab 29DIRS= $(ROOTTZSRCD) $(ROOTTZTABD) 30 31ROOTLIBTZSRCFILES=$(SRCFILES:%=$(ROOTTZSRCD)/%) 32ROOTLIBTZTABFILES=$(TABFILES:%=$(ROOTTZTABD)/%) 33 34$(ROOTLIBTZSRCFILES):=FILEMODE=0644 35$(ROOTLIBTZTABFILES):=FILEMODE=0644 36 37# Message catalog 38TEXT_DOMAIN= SUNW_OST_ZONEINFO 39MSGDOMAIN= $(MSGROOT)/$(TEXT_DOMAIN) 40POFILE= zoneinfo.po 41 42.KEEP_STATE: 43 44all: $(TZFILES) $(TABFILES) 45 46install: $(DIRS) $(ROOTTZSRCD) $(ROOTTZTABD) $(ROOTLIBTZSRCFILES) \ 47 $(ROOTLIBTZTABFILES) 48 $(ZIC) -d $(ROOTTZD) $(TZFILES) 49 50$(ROOTTZSRCD)/%: % 51 $(INS.file) 52 53$(ROOTTZTABD)/%: % 54 $(INS.file) 55 56$(DIRS): 57 $(INS.dir) 58 59clean: 60 61# For message catalogue files 62_msg: $(MSGDOMAIN) $(POFILE) 63 $(RM) $(MSGDOMAIN)/$(POFILE) 64 $(CP) $(POFILE) $(MSGDOMAIN)/$(POFILE) 65 66$(MSGDOMAIN): 67 $(INS.dir) 68 69$(POFILE): $(TABFILES) do_pofile.sh 70 $(RM) $@ 71 @/bin/sh do_pofile.sh > $@ 72 73include $(SRC)/data/Makefile.targ 74