1997-03-09 09:41:44 +00:00
|
|
|
# $Id: Makefile,v 1.14 1997/02/22 13:56:50 peter Exp $
|
1994-09-13 22:54:06 +01:00
|
|
|
|
|
|
|
CLEANFILES+= yearistype
|
|
|
|
|
|
|
|
.if defined(LEAPSECONDS)
|
1995-11-16 02:00:38 +00:00
|
|
|
LEAPFILE= -L leapseconds
|
1994-09-13 22:54:06 +01:00
|
|
|
.else
|
1995-11-16 02:00:38 +00:00
|
|
|
LEAPFILE=
|
1994-09-13 22:54:06 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
TZFILES= africa antarctica asia australasia etcetera europe \
|
1994-09-13 23:02:46 +01:00
|
|
|
factory northamerica southamerica systemv
|
1994-09-13 22:54:06 +01:00
|
|
|
POSIXRULES= America/New_York
|
|
|
|
|
|
|
|
.if defined(OLDTIMEZONES)
|
|
|
|
TZFILES+= backward
|
|
|
|
.endif
|
|
|
|
|
1996-06-24 05:26:21 +01:00
|
|
|
.if exists(${.OBJDIR}/yearistype)
|
1997-03-09 09:41:44 +00:00
|
|
|
YEARISTYPE= ${.OBJDIR}/yearistype
|
1994-09-13 22:54:06 +01:00
|
|
|
.else
|
1997-03-09 09:41:44 +00:00
|
|
|
YEARISTYPE= ${.CURDIR}/yearistype
|
1994-09-13 22:54:06 +01:00
|
|
|
.endif
|
|
|
|
|
1997-03-09 09:41:44 +00:00
|
|
|
all: yearistype
|
1994-09-13 22:54:06 +01:00
|
|
|
|
1997-03-09 09:41:44 +00:00
|
|
|
yearistype: yearistype.sh
|
|
|
|
cp ${.ALLSRC} ${.TARGET}
|
|
|
|
chmod +x ${.TARGET}
|
1994-09-13 22:54:06 +01:00
|
|
|
|
1997-03-09 09:41:44 +00:00
|
|
|
beforeinstall:
|
1994-09-13 22:54:06 +01:00
|
|
|
umask 022; cd ${.CURDIR}; \
|
|
|
|
zic -d ${DESTDIR}/usr/share/zoneinfo -p ${POSIXRULES} \
|
1997-03-09 09:41:44 +00:00
|
|
|
${LEAPFILE} -y ${YEARISTYPE} ${TZFILES}
|
|
|
|
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
|
|
|
|
${.CURDIR}/zone.tab ${DESTDIR}/usr/share/zoneinfo/
|
|
|
|
|
|
|
|
afterinstall:
|
|
|
|
chown -R ${BINOWN}:${BINGRP} ${DESTDIR}/usr/share/zoneinfo/*
|
1994-05-30 20:09:18 +01:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|