diff options
Diffstat (limited to 'share/mk/bsd.init.mk')
-rw-r--r-- | share/mk/bsd.init.mk | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/share/mk/bsd.init.mk b/share/mk/bsd.init.mk index 59ed400..74e477a 100644 --- a/share/mk/bsd.init.mk +++ b/share/mk/bsd.init.mk @@ -8,10 +8,19 @@ .if !target(__<bsd.init.mk>__) __<bsd.init.mk>__: +.sinclude "local.init.mk" .include <bsd.opts.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>__) |