Index: share/mk/sys.mk =================================================================== --- share/mk/sys.mk +++ share/mk/sys.mk @@ -37,9 +37,11 @@ .if ${MK_META_MODE} == "yes" .-include -.elif ${MK_META_FILES} == "yes" && ${.MAKEFLAGS:U:M-B} == "" +.elif ${MK_META_FILES} == "yes" && defined(.MAKEFLAGS) +.if ${.MAKEFLAGS:M-B} == "" .MAKE.MODE= meta verbose .endif +.endif .if ${MK_AUTO_OBJ} == "yes" # This needs to be done early - before .PATH is computed .-include @@ -378,11 +380,12 @@ # when running target scripts, this is a problem for many makefiles here. # So define a shell that will do what FreeBSD expects. .ifndef WITHOUT_SHELL_ERRCTL +__MAKE_SHELL?=/bin/sh .SHELL: name=sh \ quiet="set -" echo="set -v" filter="set -" \ hasErrCtl=yes check="set -e" ignore="set +e" \ echoFlag=v errFlag=e \ - path=${__MAKE_SHELL:U/bin/sh} + path=${__MAKE_SHELL} .endif .include