- Include bsd.own.mk early so existsence check using ${SHAREDIR}

actually works.
- Touch /usr/share/tmac/man.local if it already exists.

MFC after:	3 days
This commit is contained in:
ru 2006-08-14 12:21:57 +00:00
parent f9958c7d6d
commit d69f9d6d01

View File

@ -1,5 +1,7 @@
# $FreeBSD$
.include <bsd.own.mk> # SHAREDIR
TMACOWN?= ${BINOWN}
TMACGRP?= ${BINGRP}
TMACMODE?= ${NOBINMODE}
@ -78,6 +80,8 @@ beforeinstall:
.if !exists(${DESTDIR}${TMACDIR}/man.local)
${INSTALL} -o ${TMACOWN} -g ${TMACGRP} -m ${TMACMODE} \
${DIST_DIR}/man.local ${DESTDIR}${TMACDIR}
.else
@:>>${DESTDIR}${TMACDIR}/man.local
.endif
.include <bsd.prog.mk>