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