1 # $NetBSD: Makefile,v 1.14 1995/04/22 12:10:17 cgd Exp $
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
8 # This line has been moved to /usr/src/etc/Makefile
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
18 POSIXRULES= US/Pacific
20 # Use an absolute path name for TZDIR unless you're just testing the software.
22 TZDIR= ${DESTDIR}/usr/share/zoneinfo
24 # If you always want time values interpreted as "seconds since the epoch
25 # (not counting leap seconds)", use
27 # below. If you always want right time values interpreted as "seconds since
28 # the epoch" (counting leap seconds)", use
30 # below. If you want both sets of data available, with leap seconds not
31 # counted normally, use
33 # below. If you want both sets of data available, with leap seconds counted
40 # Since "." may not be in PATH...
41 YEARISTYPE= ${.CURDIR}/datfiles/yearistype.sh
42 YEARISTYPECOPY= ${.OBJDIR}/yearistypecopy
44 YDATA= africa antarctica asia australasia \
45 europe northamerica southamerica pacificnew etcetera factory \
48 TDATA= $(YDATA) $(NDATA)
49 DATA= $(YDATA) $(NDATA) leapseconds # yearistype.sh
50 USNO= usno1988 usno1989
55 cp ${YEARISTYPE} yearistypecopy
56 chmod u+x yearistypecopy
58 posix_only: ${TDATA} ${YEARISTYPECOPY}
59 (cd ${.CURDIR}/datfiles; \
60 ${ZIC} -y ${YEARISTYPECOPY} -d ${TZDIR} -L /dev/null ${TDATA})
62 right_only: leapseconds ${TDATA} ${YEARISTYPECOPY}
63 (cd ${.CURDIR}/datfiles; \
64 ${ZIC} -y ${YEARISTYPECOPY} -d ${TZDIR} -L leapseconds ${TDATA})
66 other_two: leapseconds ${TDATA} ${YEARISTYPECOPY}
67 (cd ${.CURDIR}/datfiles; \
68 ${ZIC} -y ${YEARISTYPECOPY} -d ${TZDIR}/posix -L /dev/null ${TDATA})
69 (cd ${.CURDIR}/datfiles; \
70 ${ZIC} -y ${YEARISTYPECOPY} -d ${TZDIR}/right -L leapseconds ${TDATA})
72 posix_right: posix_only other_two
74 right_posix: right_only other_two
76 realinstall: ${DATA} ${REDO} ${YEARISTYPECOPY}
77 (cd ${.CURDIR}/datfiles; \
78 ${ZIC} -y ${YEARISTYPECOPY} -d ${TZDIR} -p ${POSIXRULES})
79 chown -R ${BINOWN}:${BINGRP} ${TZDIR}
80 find ${TZDIR} -type f | xargs chmod a=r
82 CLEANFILES+= yearistypecopy
84 .PATH: ${.CURDIR}/datfiles
85 .include <bsd.prog.mk>