The ../Makefile.inc chain may be .included early (it is also included by
authorMatthew Dillon <dillon@dragonflybsd.org>
Mon, 20 Dec 2004 18:10:11 +0000 (18:10 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Mon, 20 Dec 2004 18:10:11 +0000 (18:10 +0000)
bsd.init.mk).  Make sure the chain is only included once to avoid
duplicate script warnings from make.

gnu/usr.bin/cc34/cc_tools/Makefile.inc

index acdeab7..a990548 100644 (file)
@@ -1,4 +1,10 @@
-# $DragonFly: src/gnu/usr.bin/cc34/cc_tools/Makefile.inc,v 1.1 2004/06/14 22:27:54 joerg Exp $
+# $DragonFly: src/gnu/usr.bin/cc34/cc_tools/Makefile.inc,v 1.2 2004/12/20 18:10:11 dillon Exp $
+#
+# Portions of our build system need this file early, make sure it isn't
+# included twice (because e.g. bsd.init.mk would also include it)
+#
+.if !target(__<cctools.Makefile.inc>__)
+__<cctools.Makefile.inc>__:
 
 TOP_PREFIX=    ../
 
@@ -8,3 +14,5 @@ CFLAGS+= -DHAVE_STDLIB_H -DHAVE_STRING_H -DGENERATOR_FILE
 CFLAGS+= -I.
 
 .include "Makefile.tools"
+
+.endif