Reduce exec and fstat overhead for non-build targets.

This is mostly targetting 'make showconfig' and 'make test-system-*' for
the benefit of makeman and universe-one-clang work.

Sponsored by:	Dell EMC
This commit is contained in:
Bryan Drewery
2018-06-20 17:20:39 +00:00
parent be9309decd
commit 6e6be2bbe2
7 changed files with 60 additions and 48 deletions
+2 -1
View File
@@ -81,7 +81,8 @@ all: beforebuild .WAIT
.if ${MK_META_MODE} == "yes"
.if !exists(/dev/filemon) && \
${UPDATE_DEPENDFILE:Uyes:tl} != "no" && !defined(NO_FILEMON) && \
!make(showconfig) && !make(print-dir) && ${.MAKEFLAGS:M-V} == ""
!make(test-system-*) && !make(showconfig) && !make(print-dir) && \
${.MAKEFLAGS:M-V} == ""
.warning The filemon module (/dev/filemon) is not loaded.
.warning META_MODE is less useful for incremental builds without filemon.
.warning 'kldload filemon' or pass -DNO_FILEMON to suppress this warning.