Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tools If tools are not wanted, then set SUBDIR= empty instea...



details:   https://anonhg.NetBSD.org/src/rev/05ecb0d47ab5
branches:  trunk
changeset: 783035:05ecb0d47ab5
user:      apb <apb%NetBSD.org@localhost>
date:      Sun Dec 02 11:46:34 2012 +0000

description:
If tools are not wanted, then set SUBDIR= empty instead of
defining all the subdir-related targets to do nothing.  This way,
the targets are not invoked at all, instead of being invoked but
doing nothing.

diffstat:

 tools/Makefile |  8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diffs (23 lines):

diff -r 2b51838ecb14 -r 05ecb0d47ab5 tools/Makefile
--- a/tools/Makefile    Sun Dec 02 11:19:45 2012 +0000
+++ b/tools/Makefile    Sun Dec 02 11:46:34 2012 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.162 2012/12/02 11:19:45 apb Exp $
+#      $NetBSD: Makefile,v 1.163 2012/12/02 11:46:34 apb Exp $
 
 .include <bsd.own.mk>
 
@@ -172,12 +172,8 @@
 .endif
 
 .if ${MKTOOLS:Uyes} == "no" || ${USETOOLS} != "yes"    # {
+SUBDIR= # empty
 realall realdepend install: check_MKTOOLS
-
-.for dir in ${SUBDIR:N.WAIT}
-all-${dir} depend-${dir} dependall-${dir} install-${dir}:
-       @true
-.endfor
 .endif                                                 # }
 
 .include <bsd.subdir.mk>



Home | Main Index | Thread Index | Old Index