xref: /openbsd/share/zoneinfo/Makefile (revision df930be7)
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
9LOCALTIME=	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
18POSIXRULES=	US/Pacific
19
20# Use an absolute path name for TZDIR unless you're just testing the software.
21
22TZDIR=	${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
38REDO=		posix_only
39
40# Since "." may not be in PATH...
41YEARISTYPE=	${.CURDIR}/datfiles/yearistype.sh
42
43YDATA=		africa antarctica asia australasia \
44		europe northamerica southamerica pacificnew etcetera factory \
45		backward
46NDATA=		systemv
47SDATA=		solar87 solar88 solar89
48TDATA=		$(YDATA) $(NDATA) $(SDATA)
49DATA=		$(YDATA) $(NDATA) $(SDATA) leapseconds # yearistype.sh
50USNO=		usno1988 usno1989
51
52ZIC=zic
53
54posix_only: ${TDATA}
55	(cd ${.CURDIR}/datfiles; \
56	    ${ZIC} -y ${YEARISTYPE} -d ${TZDIR} -L /dev/null ${TDATA})
57
58right_only: leapseconds ${TDATA}
59	(cd ${.CURDIR}/datfiles; \
60	    ${ZIC} -y ${YEARISTYPE} -d ${TZDIR} -L leapseconds ${TDATA})
61
62other_two: leapseconds ${TDATA}
63	(cd ${.CURDIR}/datfiles; \
64	    ${ZIC} -y ${YEARISTYPE} -d ${TZDIR}/posix -L /dev/null ${TDATA})
65	(cd ${.CURDIR}/datfiles; \
66	    ${ZIC} -y ${YEARISTYPE} -d ${TZDIR}/right -L leapseconds ${TDATA})
67
68posix_right: posix_only other_two
69
70right_posix: right_only other_two
71
72realinstall: ${DATA} ${REDO}
73	(cd ${.CURDIR}/datfiles; \
74	    ${ZIC} -y ${YEARISTYPE} -d ${TZDIR} -p ${POSIXRULES})
75	chown -R ${BINOWN}:${BINGRP} ${TZDIR}
76	find ${TZDIR} -type f | xargs chmod a=r
77
78.PATH:	${.CURDIR}/datfiles
79.include <bsd.prog.mk>
80