Don't use a dot in the chown command. Fixed some minor style bugs.

Building things at install time under ${DESTDIR} was too hard to fix.

Bruce
This commit is contained in:
Bruce Evans 1997-03-09 09:41:44 +00:00
parent e2a82ece46
commit 93a4679a23
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=23569

View File

@ -1,6 +1,5 @@
# $Id$
# $Id: Makefile,v 1.14 1997/02/22 13:56:50 peter Exp $
NOBIN=
CLEANFILES+= yearistype
.if defined(LEAPSECONDS)
@ -18,24 +17,25 @@ TZFILES+= backward
.endif
.if exists(${.OBJDIR}/yearistype)
YEARISTYPE=${.OBJDIR}/yearistype
YEARISTYPE= ${.OBJDIR}/yearistype
.else
YEARISTYPE=${.CURDIR}/yearistype
YEARISTYPE= ${.CURDIR}/yearistype
.endif
all: yearistype
depend:
all: yearistype
yearistype: yearistype.sh
cp ${.CURDIR}/yearistype.sh yearistype
chmod +x yearistype
yearistype: yearistype.sh
cp ${.ALLSRC} ${.TARGET}
chmod +x ${.TARGET}
afterinstall: yearistype
beforeinstall:
umask 022; cd ${.CURDIR}; \
zic -d ${DESTDIR}/usr/share/zoneinfo -p ${POSIXRULES} \
${LEAPFILE} -y ${YEARISTYPE} ${TZFILES}
chown -R bin.bin ${DESTDIR}/usr/share/zoneinfo/*
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/zone.tab \
${DESTDIR}/usr/share/zoneinfo
${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>