INFODIR is defined in bsd.own.mk but sys.mk no longer includes

bsd.own.mk as of share/mk/sys.mk,v 1.60.

I did not notice this because I tested with DESTDIR=/foo/5.0,
and the "exists(/foo/5.0)" test apparently succeeded.

Reported by:	fenner
This commit is contained in:
Ruslan Ermilov 2002-04-18 06:55:32 +00:00
parent 10c51522ed
commit 96f1512e70
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=94984

View File

@ -3,6 +3,8 @@
NOOBJ= noobj
.include <bsd.prog.mk>
beforeinstall:
.if !exists(${DESTDIR}${INFODIR})
@echo "Warning: the directory ${DESTDIR}${INFODIR} does not exist!"
@ -18,5 +20,3 @@ beforeinstall:
${INSTALL} -c -o ${INFOOWN} -g ${INFOGRP} -m ${INFOMODE} \
dir-tmpl ${DESTDIR}${INFODIR}/dir
.endif
.include <bsd.prog.mk>