mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-23 11:18:54 +00:00
93a4679a23
Building things at install time under ${DESTDIR} was too hard to fix. Bruce
42 lines
913 B
Makefile
42 lines
913 B
Makefile
# $Id: Makefile,v 1.14 1997/02/22 13:56:50 peter Exp $
|
|
|
|
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 ${DESTDIR}/usr/share/zoneinfo -p ${POSIXRULES} \
|
|
${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/*
|
|
|
|
.include <bsd.prog.mk>
|