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