freebsd-skq/share/zoneinfo/Makefile
ru 85e4b91028 Don't create missing directories; that's the duty of mtree(8).
Don't depend on chown(8) in ${INSTALLTMP}; -u/-g have been
supported since at least RELENG_4_BP.
2001-09-11 14:27:11 +00:00

40 lines
829 B
Makefile

# $FreeBSD$
CLEANFILES+= yearistype
.if defined(LEAPSECONDS)
LEAPFILE= -L leapseconds
.else
LEAPFILE=
.endif
TZFILES= africa antarctica asia australasia etcetera europe \
factory northamerica southamerica systemv
POSIXRULES= America/New_York
.if defined(OLDTIMEZONES)
TZFILES+= backward
.endif
.if exists(${.OBJDIR}/yearistype)
YEARISTYPE= ${.OBJDIR}/yearistype
.else
YEARISTYPE= ${.CURDIR}/yearistype
.endif
all: yearistype
yearistype: yearistype.sh
cp ${.ALLSRC} ${.TARGET}
chmod +x ${.TARGET}
beforeinstall:
umask 022; cd ${.CURDIR}; \
zic -D -d ${DESTDIR}/usr/share/zoneinfo -p ${POSIXRULES} \
-u ${BINOWN} -g ${BINGRP} \
${LEAPFILE} -y ${YEARISTYPE} ${TZFILES}
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
${.CURDIR}/zone.tab ${DESTDIR}/usr/share/zoneinfo/
.include <bsd.prog.mk>