Source-Changes-HG archive

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

[src/trunk]: src/gnu/usr.bin Skip building if the target's .mk file is missing.



details:   https://anonhg.NetBSD.org/src/rev/5404e03a0368
branches:  trunk
changeset: 522161:5404e03a0368
user:      tv <tv%NetBSD.org@localhost>
date:      Mon Feb 11 21:45:18 2002 +0000

description:
Skip building if the target's .mk file is missing.

diffstat:

 gnu/usr.bin/binutils/Makefile    |  4 ++--
 gnu/usr.bin/gcc/Makefile         |  5 +++--
 gnu/usr.bin/gdb/gdb.new/Makefile |  8 +++++---
 3 files changed, 10 insertions(+), 7 deletions(-)

diffs (61 lines):

diff -r a1ff0944336f -r 5404e03a0368 gnu/usr.bin/binutils/Makefile
--- a/gnu/usr.bin/binutils/Makefile     Mon Feb 11 21:36:33 2002 +0000
+++ b/gnu/usr.bin/binutils/Makefile     Mon Feb 11 21:45:18 2002 +0000
@@ -1,10 +1,10 @@
-#      $NetBSD: Makefile,v 1.17 2001/12/31 23:04:11 thorpej Exp $
+#      $NetBSD: Makefile,v 1.18 2002/02/11 21:45:19 tv Exp $
 
 .include <bsd.own.mk>
 
 .if defined(USE_NEW_TOOLCHAIN)
 
-.if ${MKBFD} != "no"
+.if ${MKBFD} != "no" && exists(${.CURDIR}/common/arch/${MACHINE_ARCH}/defs.mk)
 .include "${.CURDIR}/common/arch/${MACHINE_ARCH}/defs.mk"
 
 SUBDIR=                common gas gprof ld ${G_PROGRAMS:C/-new$//:cxxfilt=c++filt}
diff -r a1ff0944336f -r 5404e03a0368 gnu/usr.bin/gcc/Makefile
--- a/gnu/usr.bin/gcc/Makefile  Mon Feb 11 21:36:33 2002 +0000
+++ b/gnu/usr.bin/gcc/Makefile  Mon Feb 11 21:45:18 2002 +0000
@@ -1,10 +1,11 @@
-#      $NetBSD: Makefile,v 1.16 2002/01/22 00:59:46 thorpej Exp $
+#      $NetBSD: Makefile,v 1.17 2002/02/11 21:45:18 tv Exp $
 
 NOOBJ=# defined
 
 .include <bsd.own.mk>
 
-.if defined(USE_NEW_TOOLCHAIN) && ${MKGCC} != "no"
+.if defined(USE_NEW_TOOLCHAIN) && ${MKGCC} != "no" && \
+    exists(${.CURDIR}/arch/${MACHINE_ARCH}/defs.mk)
 
 SUBDIR+=       backend frontend cpp0 gcov .WAIT \
                cc1 cc1obj cc1plus cpp f771 g++ g77 gcc protoize unprotoize
diff -r a1ff0944336f -r 5404e03a0368 gnu/usr.bin/gdb/gdb.new/Makefile
--- a/gnu/usr.bin/gdb/gdb.new/Makefile  Mon Feb 11 21:36:33 2002 +0000
+++ b/gnu/usr.bin/gdb/gdb.new/Makefile  Mon Feb 11 21:45:18 2002 +0000
@@ -1,11 +1,12 @@
-#      $NetBSD: Makefile,v 1.8 2002/01/22 21:16:28 thorpej Exp $
+#      $NetBSD: Makefile,v 1.9 2002/02/11 21:45:20 tv Exp $
 
 # XXX - This gdb.new directory should be renamed to "gdb" after all platforms
 # have been migrated to the new toolchain.
 
 .include <bsd.own.mk>
 
-.if ${MKGDB} != "no" && ${MKBFD} != "no"
+.if ${MKGDB} != "no" && ${MKBFD} != "no" && \
+    exists(${.CURDIR}/../arch/${MACHINE_ARCH}/defs.mk)
 
 .include "${.CURDIR}/../arch/${MACHINE_ARCH}/defs.mk"
 
@@ -33,7 +34,8 @@
 .include <bsd.prog.mk>
 .include <bsd.info.mk>
 
-.if ${MKGDB} != "no" && ${MKBFD} != "no"
+.if ${MKGDB} != "no" && ${MKBFD} != "no" && \
+    exists(${.CURDIR}/../arch/${MACHINE_ARCH}/defs.mk)
 
 BFDOBJ!=       cd ${TOP}/lib/libbfd && ${PRINTOBJDIR}
 LDADD+=                -L${BFDOBJ} -lbfd



Home | Main Index | Thread Index | Old Index