From: Matthew Dillon Date: Mon, 20 Dec 2004 18:10:11 +0000 (+0000) Subject: The ../Makefile.inc chain may be .included early (it is also included by X-Git-Tag: v2.0.1~9442 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/59cb5ee293fa1f95ad72ae22729ee20509aef2a6 The ../Makefile.inc chain may be .included early (it is also included by bsd.init.mk). Make sure the chain is only included once to avoid duplicate script warnings from make. --- diff --git a/gnu/usr.bin/cc34/cc_tools/Makefile.inc b/gnu/usr.bin/cc34/cc_tools/Makefile.inc index acdeab78dc..a990548f9a 100644 --- a/gnu/usr.bin/cc34/cc_tools/Makefile.inc +++ b/gnu/usr.bin/cc34/cc_tools/Makefile.inc @@ -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(____) +____: TOP_PREFIX= ../ @@ -8,3 +14,5 @@ CFLAGS+= -DHAVE_STDLIB_H -DHAVE_STRING_H -DGENERATOR_FILE CFLAGS+= -I. .include "Makefile.tools" + +.endif