diff options
author | bdrewery <bdrewery@FreeBSD.org> | 2016-04-14 22:00:33 +0000 |
---|---|---|
committer | bdrewery <bdrewery@FreeBSD.org> | 2016-04-14 22:00:33 +0000 |
commit | 82319136aa698e202d3a050b7cf7423eeb3a2dd6 (patch) | |
tree | dde983a1146dfa3cb0391b1991500161df0dddc5 /Makefile.inc1 | |
parent | a88d5076268a50dc702060cbe17537904d5441a3 (diff) | |
download | FreeBSD-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.inc1 | 9 |
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} |