Source-Changes-HG archive

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

[src/trunk]: src/tools Check for USETOOLS!=yes in addition to MKTOOLS==no to ...



details:   https://anonhg.NetBSD.org/src/rev/4d8974dbb32d
branches:  trunk
changeset: 517957:4d8974dbb32d
user:      jmc <jmc%NetBSD.org@localhost>
date:      Thu Nov 22 00:13:10 2001 +0000

description:
Check for USETOOLS!=yes in addition to MKTOOLS==no to generate the empty rule
sets. Otherwise platforms not running the new toolchain will end up with
lossage as tools attempt to get built and installed into /bin (due to
bsd.own.mk properly checking USETOOLS before setting up a default TOOLDIR).
Don't print the warning unless MKTOOLS=no

diffstat:

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

diffs (28 lines):

diff -r bc6329b1abc4 -r 4d8974dbb32d tools/Makefile
--- a/tools/Makefile    Thu Nov 22 00:04:55 2001 +0000
+++ b/tools/Makefile    Thu Nov 22 00:13:10 2001 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.17 2001/11/13 16:17:24 tv Exp $
+#      $NetBSD: Makefile,v 1.18 2001/11/22 00:13:10 jmc Exp $
 
 .include <bsd.own.mk>
 
@@ -16,13 +16,17 @@
                asn1_compile compile_et config lint1 msgc menuc mklocale
 .endif
 
-.if ${MKTOOLS:Uyes} == "no"
+.if ${MKTOOLS:Uyes} == "no" || ${USETOOLS} != "yes"
 realall install: _warn
+.if ${MKTOOLS} == "no"
 _warn:
        @echo '*** WARNING: "MKTOOLS" is set to "no"; this will prevent building and'
        @echo '*** updating your host toolchain.  This should be used only as a'
        @echo '*** temporary workaround for toolchain problems, as it will result'
        @echo '*** in version skew and build errors onver time!'
+.else
+_warn:
+.endif
 
 .for dir in ${SUBDIR:N.WAIT}
 all-${dir} depend-${dir} dependall-${dir} install-${dir}:



Home | Main Index | Thread Index | Old Index