Require that DESTDIR be set before running "make distribution".

This commit is contained in:
Ruslan Ermilov 2005-07-22 10:35:35 +00:00
parent fc0b043d79
commit 1ede9a7d0e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=148282

View File

@ -86,6 +86,10 @@ CAP_MKDB_ENDIAN=
.endif
distribution:
.if !defined(DESTDIR)
@echo "set DESTDIR before running \"make ${.TARGET}\""
@false
.endif
cd ${.CURDIR}; \
${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
${BIN1} ${DESTDIR}/etc; \