WITH_META_MODE: Keep .MAKE.MODE/META_MODE clean

Due to META_MODE being passed into the environment it tends
to keep growing with the defaults.

Approved by:	re (implicit)
Sponsored by:	EMC / Isilon Storage Division
This commit is contained in:
Bryan Drewery 2016-06-15 23:57:57 +00:00
parent 2a6d574e78
commit 3ea2c169b4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=301937

View File

@ -425,6 +425,10 @@ __MAKE_CONF?=/etc/make.conf
# late include for customization
.sinclude <local.sys.mk>
.if defined(META_MODE)
META_MODE:= ${META_MODE:O:u}
.endif
.if defined(__MAKE_SHELL) && !empty(__MAKE_SHELL)
SHELL= ${__MAKE_SHELL}
.SHELL: path=${__MAKE_SHELL}