Annotation of src/share/zoneinfo/Makefile, Revision 1.15
1.15 ! millert 1: # $OpenBSD: Makefile,v 1.14 2019/11/07 16:25:05 sthen Exp $
1.1 deraadt 2: # $NetBSD: Makefile,v 1.14 1995/04/22 12:10:17 cgd Exp $
3:
4: # Change the line below for your time zone (after finding the zone you want in
5: # the time zone files, or adding it to a time zone file).
6: # Alternately, if you discover you've got the wrong time zone, you can just
7: # zic -l rightzone
8:
9: # This line has been moved to /usr/src/etc/Makefile
10: LOCALTIME= US/Pacific
11:
12: # If you want something other than Eastern United States time as a template
13: # for handling POSIX-style time zone environment variables,
14: # change the line below (after finding the zone you want in the
15: # time zone files, or adding it to a time zone file).
16: # Alternately, if you discover you've got the wrong time zone, you can just
17: # zic -p rightzone
18:
19: POSIXRULES= US/Pacific
20:
21: # Use an absolute path name for TZDIR unless you're just testing the software.
22:
23: TZDIR= ${DESTDIR}/usr/share/zoneinfo
24:
25: # If you always want time values interpreted as "seconds since the epoch
26: # (not counting leap seconds)", use
27: # REDO= posix_only
28: # below. If you always want right time values interpreted as "seconds since
29: # the epoch" (counting leap seconds)", use
30: # REDO= right_only
31: # below. If you want both sets of data available, with leap seconds not
32: # counted normally, use
33: # REDO= posix_right
34: # below. If you want both sets of data available, with leap seconds counted
35: # normally, use
36: # REDO= right_posix
37: # below.
38:
1.14 sthen 39: REDO= posix_only
1.1 deraadt 40:
1.15 ! millert 41: TDATA= africa antarctica asia australasia \
! 42: europe northamerica southamerica etcetera factory \
1.1 deraadt 43: backward
1.9 millert 44: TABDATA= iso3166.tab zone.tab zone1970.tab
1.15 ! millert 45: DATA= $(TDATA) $(TABDATA) leapseconds
1.3 millert 46: USNO= usno1988 usno1989 usno1989a usno1995 usno1997
1.1 deraadt 47:
1.15 ! millert 48: ZIC= zic
1.1 deraadt 49:
1.15 ! millert 50: all:
1.2 deraadt 51:
1.15 ! millert 52: posix_only: ${TDATA}
1.1 deraadt 53: (cd ${.CURDIR}/datfiles; \
1.15 ! millert 54: ${ZIC} -d ${TZDIR} -L /dev/null ${TDATA})
1.1 deraadt 55:
1.15 ! millert 56: right_only: leapseconds ${TDATA}
1.1 deraadt 57: (cd ${.CURDIR}/datfiles; \
1.15 ! millert 58: ${ZIC} -d ${TZDIR} -L leapseconds ${TDATA})
1.1 deraadt 59:
1.15 ! millert 60: other_two: leapseconds ${TDATA}
1.1 deraadt 61: (cd ${.CURDIR}/datfiles; \
1.15 ! millert 62: ${ZIC} -d ${TZDIR}/posix -L /dev/null ${TDATA})
1.1 deraadt 63: (cd ${.CURDIR}/datfiles; \
1.15 ! millert 64: ${ZIC} -d ${TZDIR}/right -L leapseconds ${TDATA})
1.1 deraadt 65:
66: posix_right: posix_only other_two
67:
68: right_posix: right_only other_two
69:
1.15 ! millert 70: realinstall: ${DATA} ${REDO}
1.1 deraadt 71: (cd ${.CURDIR}/datfiles; \
1.15 ! millert 72: ${ZIC} -d ${TZDIR} -p ${POSIXRULES})
1.1 deraadt 73: chown -R ${BINOWN}:${BINGRP} ${TZDIR}
1.12 naddy 74: find ${TZDIR} \
75: -type f -exec chmod a=r {} + -o \
1.13 tb 76: -type d -exec chmod a=rx,u+w {} +
1.8 espie 77: ${INSTALL} -c -o root -g bin -m 644 ${.CURDIR}/datfiles/iso3166.tab \
1.7 deraadt 78: ${DESTDIR}/usr/share/misc
1.8 espie 79: ${INSTALL} -c -o root -g bin -m 644 ${.CURDIR}/datfiles/zone.tab \
1.9 millert 80: ${DESTDIR}/usr/share/zoneinfo
81: ${INSTALL} -c -o root -g bin -m 644 ${.CURDIR}/datfiles/zone1970.tab \
1.8 espie 82: ${DESTDIR}/usr/share/zoneinfo
1.7 deraadt 83:
1.1 deraadt 84:
85: .PATH: ${.CURDIR}/datfiles
86: .include <bsd.prog.mk>