summaryrefslogtreecommitdiffstats
path: root/share/mk/sys.mk
diff options
context:
space:
mode:
Diffstat (limited to 'share/mk/sys.mk')
-rw-r--r--share/mk/sys.mk17
1 files changed, 12 insertions, 5 deletions
diff --git a/share/mk/sys.mk b/share/mk/sys.mk
index e849d42..3b2d472a 100644
--- a/share/mk/sys.mk
+++ b/share/mk/sys.mk
@@ -45,12 +45,19 @@ __ENV_ONLY_OPTIONS:= \
.if ${MK_DIRDEPS_BUILD} == "yes"
.sinclude <meta.sys.mk>
.elif ${MK_META_MODE} == "yes" && defined(.MAKEFLAGS) && ${.MAKEFLAGS:M-B} == ""
-.MAKE.MODE= meta verbose
+# verbose will show .MAKE.META.PREFIX for each target.
+META_MODE= meta verbose
+# silent will hide command output if a .meta file is created.
+.if !defined(NO_SILENT)
+META_MODE+= silent=yes
+.endif
.if !exists(/dev/filemon)
-.MAKE.MODE+= nofilemon
+META_MODE+= nofilemon
.endif
.endif
-.MAKE.MODE?= normal
+META_MODE?= normal
+.export META_MODE
+.MAKE.MODE?= ${META_MODE}
.if ${MK_AUTO_OBJ} == "yes"
# This needs to be done early - before .PATH is computed
@@ -279,8 +286,8 @@ YFLAGS ?= -d
# non-Posix rule set
-.sh: .NOMETA
- cp -fp ${.IMPSRC} ${.TARGET}
+.sh:
+ cp -f ${.IMPSRC} ${.TARGET}
chmod a+x ${.TARGET}
.c.ln:
OpenPOWER on IntegriCloud