eliminate PR_OFFMAX
[unleashed.git] / share / zoneinfo / Makefile
blob48bc9e7a547d32e7554dfcf39e7bedfed8a6f2ab
1 .include <unleashed.mk>
3 MAN= tzfile.5
5 CONTRIB_PATH= ${SRCTOP}/contrib/tzcode
6 CONTRIBDIR= ${SRCTOP}/contrib/tzdata
8 ZONEINFODIR= ${SHAREDIR}/zoneinfo
10 # "etcetera" must come before "backward" because "backward" depends on
11 # "etcetera"'s files
12 SRCFILES= africa \
13 antarctica \
14 asia \
15 australasia \
16 europe \
17 etcetera \
18 factory \
19 northamerica \
20 pacificnew \
21 southamerica \
22 backward
24 TABFILES= iso3166.tab \
25 zone.tab \
26 zone1970.tab
28 all:
30 proginstall:
31 [ -d ${DESTDIR}${ZONEINFODIR} ] || \
32 ${INSTALL} -d ${PROG_INSTALL_OWN} -m 755 ${DESTDIR}${ZONEINFODIR}
33 /usr/sbin/zic -d ${DESTDIR}${ZONEINFODIR} ${SRCFILES:%=${CONTRIBDIR}/%}
34 ln -sf ./US/Eastern ${DESTDIR}${ZONEINFODIR}/posixrules
35 .for f in ${TABFILES}
36 ${INSTALL} ${COPY} ${PROG_INSTALL_OWN} -m 644 \
37 ${CONTRIBDIR}/${f} ${DESTDIR}${ZONEINFODIR}
38 .endfor
40 ${.CURDIR}/tzfile.5: ${CONTRIB_PATH}/tzfile.5
41 sed \
42 -e 's@/usr/local/etc@/usr/share/lib@' \
43 -e 's@newctime(3), @@' \
44 -e 's@newtzset(3), @@' \
45 -e 's@zdump(8), @@' \
46 < ${.ALLSRC} > $@
48 # FIXME: This is a gross hack to generate a cleaner version of the manpage
49 # in the current directory so that the install target finds it and installs
50 # it.
51 all: ${.CURDIR}/tzfile.5
53 CLEANFILES+= tzfile.5
55 .include <prog.mk>