xref: /illumos-gate/usr/src/data/zoneinfo/Makefile (revision 72d3dbb9ab4481606cb93caca98ba3b3a8eb6ce2)
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		solar87 \
18		solar88 \
19		solar89 \
20		southamerica \
21		backward
22
23# Don't build the systemv timezones, but do install the source file.
24SRCFILES=	$(TZFILES) systemv README
25TABFILES=	continent.tab country.tab zone_sun.tab
26
27include		$(SRC)/data/Makefile.data
28
29ROOTTZD=	$(ROOTSHLIB)/zoneinfo
30ROOTTZSRCD=	$(ROOTSHLIB)/zoneinfo/src
31ROOTTZTABD=	$(ROOTSHLIB)/zoneinfo/tab
32DIRS=		$(ROOTTZSRCD) $(ROOTTZTABD)
33
34ROOTLIBTZSRCFILES=$(SRCFILES:%=$(ROOTTZSRCD)/%)
35ROOTLIBTZTABFILES=$(TABFILES:%=$(ROOTTZTABD)/%)
36
37$(ROOTLIBTZSRCFILES):=FILEMODE=0644
38$(ROOTLIBTZTABFILES):=FILEMODE=0644
39
40# Message catalog
41TEXT_DOMAIN=	SUNW_OST_ZONEINFO
42MSGDOMAIN=	$(MSGROOT)/$(TEXT_DOMAIN)
43POFILE=		zoneinfo.po
44
45.KEEP_STATE:
46
47all:		$(TZFILES) $(TABFILES)
48
49install:	$(DIRS) $(ROOTTZSRCD) $(ROOTTZTABD) $(ROOTLIBTZSRCFILES) \
50		$(ROOTLIBTZTABFILES)
51		$(ZIC) -d $(ROOTTZD) $(TZFILES)
52
53$(ROOTTZSRCD)/%: %
54		$(INS.file)
55
56$(ROOTTZTABD)/%: %
57		$(INS.file)
58
59$(DIRS):
60		$(INS.dir)
61
62clean:
63
64# For message catalogue files
65_msg:		$(MSGDOMAIN) $(POFILE)
66		$(RM) $(MSGDOMAIN)/$(POFILE)
67		$(CP) $(POFILE) $(MSGDOMAIN)/$(POFILE)
68
69$(MSGDOMAIN):
70		$(INS.dir)
71
72$(POFILE):	$(TABFILES) do_pofile.sh
73		$(RM) $@
74		@/bin/sh do_pofile.sh > $@
75
76include		$(SRC)/data/Makefile.targ
77