aboutsummaryrefslogtreecommitdiff
path: root/share/mk/bsd.init.mk
diff options
context:
space:
mode:
Diffstat (limited to 'share/mk/bsd.init.mk')
-rw-r--r--share/mk/bsd.init.mk9
1 files changed, 9 insertions, 0 deletions
diff --git a/share/mk/bsd.init.mk b/share/mk/bsd.init.mk
index f5f4c66cfffc..ec325c04ac58 100644
--- a/share/mk/bsd.init.mk
+++ b/share/mk/bsd.init.mk
@@ -6,9 +6,18 @@
.if !target(__<bsd.init.mk>__)
__<bsd.init.mk>__:
+.sinclude "local.init.mk"
.if exists(${.CURDIR}/../Makefile.inc)
.include "${.CURDIR}/../Makefile.inc"
.endif
.include <bsd.own.mk>
.MAIN: all
+
+.if defined(.PARSEDIR)
+.if ${.MAKE.LEVEL:U1} == 0 && ${BUILD_AT_LEVEL0:Uyes:tl} == "no" && !make(clean*)
+# this tells lib.mk and prog.mk to not actually build anything
+_SKIP_BUILD = not building at level 0
+.endif
+.endif
+
.endif # !target(__<bsd.init.mk>__)