diff options
-rw-r--r-- | share/mk/src.sys.env.mk | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/share/mk/src.sys.env.mk b/share/mk/src.sys.env.mk index 8911716..5620d1a 100644 --- a/share/mk/src.sys.env.mk +++ b/share/mk/src.sys.env.mk @@ -18,6 +18,13 @@ SRC_ENV_CONF?= /etc/src-env.conf _src_env_conf_included_: .NOTMAIN .endif +# Top-level installs should not use meta mode as it may prevent installing +# based on cookies. +.if make(*install*) && ${.MAKE.LEVEL} == 0 +META_MODE= normal +MK_META_MODE= no +.endif + # If we were found via .../share/mk we need to replace that # with ${.PARSEDIR:tA} so that we can be found by # sub-makes launched from objdir. |