summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorlukem <lukem@NetBSD.org>2003-07-18 08:26:01 +0000
committerlukem <lukem@NetBSD.org>2003-07-18 08:26:01 +0000
commitf134f3dc381b71cbc98aaa098c1750105490b58e (patch)
tree884a0c7b4e2f84a093ca74c380bd5e72fc8a82ce /tools
parent74182febed5a0be4a2b4293394acec684ca4feac (diff)
Add MKUNPRIVED; if not no has the same semantics as if UNPRIVED was defined.
Replace defined(UNPRIVED) tests with ${MKUNPRIVED} != "no" Add MKUPDATE; if not no has the same semantics as if UPDATE was defined. Replace defined(UPDATE) tests with ${MKUPDATE} != "no" Improve documentation for these and other make flags.
Diffstat (limited to 'tools')
-rw-r--r--tools/Makefile.gnuhost8
-rw-r--r--tools/groff/Makefile4
2 files changed, 6 insertions, 6 deletions
diff --git a/tools/Makefile.gnuhost b/tools/Makefile.gnuhost
index 74874615009..b6b25d31e25 100644
--- a/tools/Makefile.gnuhost
+++ b/tools/Makefile.gnuhost
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.gnuhost,v 1.18 2003/03/14 05:22:51 thorpej Exp $
+# $NetBSD: Makefile.gnuhost,v 1.19 2003/07/18 08:26:12 lukem Exp $
#
# Rules used when building a GNU host package. Expects MODULE to be set.
#
@@ -12,7 +12,7 @@
# * "config.status" is run to rebuild Makefiles and .h files if an
# autoconf-parsed file (such as Makefile.in) is changed.
#
-# * If UPDATE is set, "make install" is only run if a build has happened
+# * If MKUPDATE != "no", "make install" is only run if a build has happened
# since the last install in the current directory.
.include <bsd.own.mk>
@@ -76,7 +76,7 @@ INSTALL_TARGET?=install
# The .build_done timestamp is only updated if a file actually changes
# in the build tree during "make all". This way, if nothing has changed,
-# a "make install UPDATE=" will do nothing.
+# a "make install MKUPDATE=yes" will do nothing.
.build_done: .configure_done
@(cd build && ${MAKE} ${MAKE_ARGS} ${ALL_TARGET})
@@ -84,7 +84,7 @@ INSTALL_TARGET?=install
then touch $@; fi
.install_done: ${BUILD:D.build_done}
-.if defined(UPDATE)
+.if ${MKUPDATE} != "no"
@cd ${.OBJDIR}; \
if [ ! -f .install_done ] || [ ! -f .build_done ] || \
[ -n "$$(find .build_done -prune -newer .install_done -print)" ]; then \
diff --git a/tools/groff/Makefile b/tools/groff/Makefile
index 074360147e9..01700ed0f77 100644
--- a/tools/groff/Makefile
+++ b/tools/groff/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.22 2003/07/10 10:34:43 lukem Exp $
+# $NetBSD: Makefile,v 1.23 2003/07/18 08:26:13 lukem Exp $
MODULE= groff
@@ -29,7 +29,7 @@ _post_conf: .USE
.PATH: ${.CURDIR}/../../share/tmac ${.CURDIR}/../../gnu/usr.bin/groff/tmac
_installtmac: .USE
-.if defined(UPDATE)
+.if ${MKUPDATE} != "no"
@if ! cmp ${.ALLSRC} ${.TARGET} >/dev/null 2>&1; then \
echo ${HOST_INSTALL_FILE:Q} -m ${NONBINMODE} ${.ALLSRC} ${.TARGET}; \
${HOST_INSTALL_FILE} -m ${NONBINMODE} ${.ALLSRC} ${.TARGET}; \