Document MAKEOBJDIRPREFIX.
[dragonfly.git] / share / zoneinfo / Makefile
1 # $FreeBSD: src/share/zoneinfo/Makefile,v 1.16.2.3 2002/08/07 16:31:52 ru Exp $
2 # $DragonFly: src/share/zoneinfo/Makefile,v 1.2 2003/06/17 04:37:04 dillon Exp $
3
4 CLEANFILES+=    yearistype
5
6 .if defined(LEAPSECONDS)
7 LEAPFILE=       -L leapseconds
8 .else
9 LEAPFILE=
10 .endif
11
12 TZFILES=        africa antarctica asia australasia etcetera europe \
13                 factory northamerica southamerica systemv
14 POSIXRULES=     America/New_York
15
16 .if defined(OLDTIMEZONES)
17 TZFILES+=       backward
18 .endif
19
20 .if exists(${.OBJDIR}/yearistype)
21 YEARISTYPE=     ${.OBJDIR}/yearistype
22 .else
23 YEARISTYPE=     ${.CURDIR}/yearistype
24 .endif
25
26 all: yearistype
27
28 yearistype: yearistype.sh
29         cp ${.ALLSRC} ${.TARGET}
30         chmod +x ${.TARGET}
31
32 beforeinstall:
33         umask 022; cd ${.CURDIR}; \
34         zic -D -d ${DESTDIR}/usr/share/zoneinfo -p ${POSIXRULES} \
35             -u ${BINOWN} -g ${BINGRP} \
36             ${LEAPFILE} -y ${YEARISTYPE} ${TZFILES}
37         ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
38             ${.CURDIR}/zone.tab ${DESTDIR}/usr/share/zoneinfo/
39
40 .include <bsd.prog.mk>