From f134f3dc381b71cbc98aaa098c1750105490b58e Mon Sep 17 00:00:00 2001 From: lukem Date: Fri, 18 Jul 2003 08:26:01 +0000 Subject: 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. --- tools/Makefile.gnuhost | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tools/Makefile.gnuhost') 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 @@ -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 \ -- cgit