1# $Id: Makefile,v 1.14 1997/02/22 13:56:50 peter Exp $ 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 ${DESTDIR}/usr/share/zoneinfo -p ${POSIXRULES} \ 34 ${LEAPFILE} -y ${YEARISTYPE} ${TZFILES} 35 ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \ 36 ${.CURDIR}/zone.tab ${DESTDIR}/usr/share/zoneinfo/ 37 38afterinstall: 39 chown -R ${BINOWN}:${BINGRP} ${DESTDIR}/usr/share/zoneinfo/* 40 41.include <bsd.prog.mk> 42