]>
Commit | Line | Data |
---|---|---|
916eb79e A |
1 | # $NetBSD: Makefile,v 1.14 1995/04/22 12:10:17 cgd Exp $ |
2 | ||
3 | # Change the line below for your time zone (after finding the zone you want in | |
4 | # the time zone files, or adding it to a time zone file). | |
5 | # Alternately, if you discover you've got the wrong time zone, you can just | |
6 | # zic -l rightzone | |
7 | ||
1a7e3f61 A |
8 | ################################################################################ |
9 | # NOTE: THIS MAKEFILE IS FOR REFERENCE ONLY AND IS NOT ACTUALLY EXECUTED AT | |
10 | # BUILD TIME | |
11 | ################################################################################ | |
12 | ||
916eb79e A |
13 | # This line has been moved to /usr/src/etc/Makefile |
14 | LOCALTIME= US/Pacific | |
15 | ||
16 | # If you want something other than Eastern United States time as a template | |
17 | # for handling POSIX-style time zone environment variables, | |
18 | # change the line below (after finding the zone you want in the | |
19 | # time zone files, or adding it to a time zone file). | |
20 | # Alternately, if you discover you've got the wrong time zone, you can just | |
21 | # zic -p rightzone | |
22 | ||
23 | POSIXRULES= US/Pacific | |
24 | ||
25 | # Use an absolute path name for TZDIR unless you're just testing the software. | |
26 | ||
27 | TZDIR= ${DESTDIR}/usr/share/zoneinfo | |
28 | ||
29 | # If you always want time values interpreted as "seconds since the epoch | |
30 | # (not counting leap seconds)", use | |
31 | # REDO= posix_only | |
32 | # below. If you always want right time values interpreted as "seconds since | |
33 | # the epoch" (counting leap seconds)", use | |
34 | # REDO= right_only | |
35 | # below. If you want both sets of data available, with leap seconds not | |
36 | # counted normally, use | |
37 | # REDO= posix_right | |
38 | # below. If you want both sets of data available, with leap seconds counted | |
39 | # normally, use | |
40 | # REDO= right_posix | |
41 | # below. | |
42 | ||
43 | REDO= posix_only | |
44 | ||
45 | # Since "." may not be in PATH... | |
46 | YEARISTYPE= ${.CURDIR}/datfiles/yearistype.sh | |
47 | YEARISTYPECOPY= ${.OBJDIR}/yearistypecopy | |
48 | ||
49 | YDATA= africa antarctica asia australasia \ | |
50 | europe northamerica southamerica pacificnew etcetera factory \ | |
51 | backward | |
52 | NDATA= systemv | |
45bc9d15 A |
53 | TDATA= $(YDATA) $(NDATA) |
54 | DATA= $(YDATA) $(NDATA) leapseconds # yearistype.sh | |
916eb79e A |
55 | USNO= usno1988 usno1989 |
56 | ||
57 | ZIC=zic | |
58 | ||
59 | ${YEARISTYPECOPY}: | |
60 | cp ${YEARISTYPE} yearistypecopy | |
61 | chmod u+x yearistypecopy | |
62 | ||
63 | posix_only: ${TDATA} ${YEARISTYPECOPY} | |
64 | (cd ${.CURDIR}/datfiles; \ | |
65 | ${ZIC} -y ${YEARISTYPECOPY} -d ${TZDIR} -L /dev/null ${TDATA}) | |
66 | ||
67 | right_only: leapseconds ${TDATA} ${YEARISTYPECOPY} | |
68 | (cd ${.CURDIR}/datfiles; \ | |
69 | ${ZIC} -y ${YEARISTYPECOPY} -d ${TZDIR} -L leapseconds ${TDATA}) | |
70 | ||
71 | other_two: leapseconds ${TDATA} ${YEARISTYPECOPY} | |
72 | (cd ${.CURDIR}/datfiles; \ | |
73 | ${ZIC} -y ${YEARISTYPECOPY} -d ${TZDIR}/posix -L /dev/null ${TDATA}) | |
74 | (cd ${.CURDIR}/datfiles; \ | |
75 | ${ZIC} -y ${YEARISTYPECOPY} -d ${TZDIR}/right -L leapseconds ${TDATA}) | |
76 | ||
77 | posix_right: posix_only other_two | |
78 | ||
79 | right_posix: right_only other_two | |
80 | ||
81 | realinstall: ${DATA} ${REDO} ${YEARISTYPECOPY} | |
82 | (cd ${.CURDIR}/datfiles; \ | |
83 | ${ZIC} -y ${YEARISTYPECOPY} -d ${TZDIR} -p ${POSIXRULES}) | |
84 | chown -R ${BINOWN}:${BINGRP} ${TZDIR} | |
85 | find ${TZDIR} -type f | xargs chmod a=r | |
86 | ||
87 | CLEANFILES+= yearistypecopy | |
88 | ||
89 | .PATH: ${.CURDIR}/datfiles | |
90 | .include <bsd.prog.mk> |