xref: /freebsd/share/zoneinfo/Makefile (revision 2be1a816b9ff69588e55be0a84cbe2a31efc0f2f)
1# $FreeBSD$
2
3#
4# HOW TO UPDATE THE ZONEINFO DATA
5#
6# In a clean directory, unpack the distribution archive and run:
7#
8# $ cvs -d :ext:ncvs.freebsd.org:/home/ncvs import -b 1.1.2 \
9#	src/share/zoneinfo ADO tzdataYYYYt
10#
11# where YYYYt is the year and the version of the distribution, for
12# example 2004h.
13#
14# Then go to the checked out source, and merge the changes from the
15# previous tag to the new tag in the HEAD:
16#
17# $ cd ../src/share/zoneinfo
18# $ cvs update -jtzdataYYYYp -j tzdataYYYYt
19#
20# Update it again:
21#
22# $ cvs update
23#
24# And push it back into CVS:
25#
26# $ cvs ci
27#
28
29CLEANFILES+=	yearistype
30
31.if defined(LEAPSECONDS)
32LEAPFILE=	-L leapseconds
33.else
34LEAPFILE=
35.endif
36
37TZFILES=	africa antarctica asia australasia etcetera europe \
38		factory northamerica southamerica
39POSIXRULES=	America/New_York
40
41.if defined(OLDTIMEZONES)
42TZFILES+=	backward systemv
43.endif
44
45all: yearistype
46
47beforeinstall:
48	umask 022; cd ${.CURDIR}; \
49	zic -D -d ${DESTDIR}/usr/share/zoneinfo -p ${POSIXRULES} \
50	    -u ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
51	    ${LEAPFILE} -y ${.OBJDIR}/yearistype ${TZFILES}
52	${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
53	    ${.CURDIR}/zone.tab ${DESTDIR}/usr/share/zoneinfo/
54
55.include <bsd.prog.mk>
56