WITH_META_MODE: Disable for 'make install' from top-level.

See r298220 for more explanation.  We don't want to prevent installing
if a cookie exists for the install target.

Sponsored by:	EMC / Isilon Storage Division
This commit is contained in:
Bryan Drewery 2016-05-21 01:31:54 +00:00
parent bf0c0f96cf
commit 99dd498c18
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=300345

View file

@ -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.