summaryrefslogtreecommitdiff
path: root/tools/Makefile.gnuhost
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/Makefile.gnuhost
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/Makefile.gnuhost')
-rw-r--r--tools/Makefile.gnuhost8
1 files changed, 4 insertions, 4 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 \