summaryrefslogtreecommitdiffstats
path: root/share/mk/bsd.kmod.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.kmod.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.kmod.mk')
-rw-r--r--share/mk/bsd.kmod.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/share/mk/bsd.kmod.mk b/share/mk/bsd.kmod.mk
index 3d97b72..229923b 100644
--- a/share/mk/bsd.kmod.mk
+++ b/share/mk/bsd.kmod.mk
@@ -1,5 +1,5 @@
# From: @(#)bsd.prog.mk 5.26 (Berkeley) 6/25/91
-# $Id: bsd.kmod.mk,v 1.49 1998/06/09 02:55:40 bde Exp $
+# $Id: bsd.kmod.mk,v 1.50 1998/07/29 14:19:48 bde Exp $
#
# The include file <bsd.kmod.mk> handles installing Loadable Kernel Modules.
#
@@ -81,9 +81,12 @@
MODLOAD?= /sbin/modload
MODUNLOAD?= /sbin/modunload
+.if !target(__initialized__)
+__initialized__:
.if exists(${.CURDIR}/../Makefile.inc)
.include "${.CURDIR}/../Makefile.inc"
.endif
+.endif
.SUFFIXES: .out .o .c .cc .cxx .C .y .l .s .S
OpenPOWER on IntegriCloud