summaryrefslogtreecommitdiffstats
path: root/Makefile.inc1
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2016-04-14 22:00:33 +0000
committerbdrewery <bdrewery@FreeBSD.org>2016-04-14 22:00:33 +0000
commit82319136aa698e202d3a050b7cf7423eeb3a2dd6 (patch)
treedde983a1146dfa3cb0391b1991500161df0dddc5 /Makefile.inc1
parenta88d5076268a50dc702060cbe17537904d5441a3 (diff)
downloadFreeBSD-src-82319136aa698e202d3a050b7cf7423eeb3a2dd6.zip
FreeBSD-src-82319136aa698e202d3a050b7cf7423eeb3a2dd6.tar.gz
META_MODE+filemon: Default -DNO_CLEAN enabled.
When using meta mode with filemon, the build is reliably incremental safe. Bmake will use the meta files, along with filemon information, to rebuild targets when their dependencies change, commands change, or files they generate are missing. Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'Makefile.inc1')
-rw-r--r--Makefile.inc19
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index 28dc8fb..65b0ebc 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -144,6 +144,15 @@ CLEANDIR= clean cleandepend
CLEANDIR= cleandir
.endif
+.if ${MK_META_MODE} == "yes"
+# If filemon is used then we can rely on the build being incremental-safe.
+# The .meta files will also track the build command and rebuild should
+# it change.
+.if empty(.MAKE.MODE:Mnofilemon)
+NO_CLEAN= t
+.endif
+.endif
+
LOCAL_TOOL_DIRS?=
PACKAGEDIR?= ${DESTDIR}/${DISTDIR}
OpenPOWER on IntegriCloud