diff options
-rw-r--r-- | share/mk/sys.mk | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/share/mk/sys.mk b/share/mk/sys.mk index d52ba21..e103fdd 100644 --- a/share/mk/sys.mk +++ b/share/mk/sys.mk @@ -42,9 +42,14 @@ __ENV_ONLY_OPTIONS:= \ .include <bsd.mkopt.mk> +# Disable MK_META_MODE with make -B +.if ${MK_META_MODE} == "yes" && defined(.MAKEFLAGS) && ${.MAKEFLAGS:M-B} +MK_META_MODE= no +.endif + .if ${MK_DIRDEPS_BUILD} == "yes" .sinclude <meta.sys.mk> -.elif ${MK_META_MODE} == "yes" && defined(.MAKEFLAGS) && ${.MAKEFLAGS:M-B} == "" +.elif ${MK_META_MODE} == "yes" # verbose will show .MAKE.META.PREFIX for each target. META_MODE+= meta verbose .if !defined(NO_META_MISSING) |