- 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:
Ruslan Ermilov 2006-08-14 12:21:57 +00:00
parent 7eeb0bd711
commit ae862803e0

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>