summaryrefslogtreecommitdiffstats
path: root/share/mk/bsd.subdir.mk
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1998-08-08 07:02:08 +0000
committerpeter <peter@FreeBSD.org>1998-08-08 07:02:08 +0000
commit912ec94d68f55da823d1818442c50925d735455f (patch)
treed2d1765679bbb537ae059d1ce0c1ebf7e4c39c4c /share/mk/bsd.subdir.mk
parentf1b6bb19f5a22b0f4f9b0f975676c9d213b033c8 (diff)
downloadFreeBSD-src-912ec94d68f55da823d1818442c50925d735455f.zip
FreeBSD-src-912ec94d68f55da823d1818442c50925d735455f.tar.gz
Make ../Makefile.inc handling more consistant to prevent multiple includes
when certain .mk files include other .mk files. This will remove the need for multiple include protection in some other makefiles around the tree (and helps some elf conditionals).
Diffstat (limited to 'share/mk/bsd.subdir.mk')
-rw-r--r--share/mk/bsd.subdir.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/share/mk/bsd.subdir.mk b/share/mk/bsd.subdir.mk
index 1b712d4..5a5cc1a 100644
--- a/share/mk/bsd.subdir.mk
+++ b/share/mk/bsd.subdir.mk
@@ -1,5 +1,5 @@
# from: @(#)bsd.subdir.mk 5.9 (Berkeley) 2/1/91
-# $Id: bsd.subdir.mk,v 1.23 1998/03/29 01:10:09 eivind Exp $
+# $Id: bsd.subdir.mk,v 1.24 1998/05/06 16:53:53 wosch Exp $
#
# The include file <bsd.subdir.mk> contains the default targets
# for building subdirectories.
@@ -36,6 +36,12 @@
# obj, objlink, realinstall, regress, tags
#
+.if !target(__initialized__)
+__initialized__:
+.if exists(${.CURDIR}/../Makefile.inc)
+.include "${.CURDIR}/../Makefile.inc"
+.endif
+.endif
.MAIN: all
OpenPOWER on IntegriCloud