aboutsummaryrefslogtreecommitdiff
path: root/share/mk/meta.autodep.mk
diff options
context:
space:
mode:
authorSimon J. Gerraty <sjg@FreeBSD.org>2016-04-18 20:56:21 +0000
committerSimon J. Gerraty <sjg@FreeBSD.org>2016-04-18 20:56:21 +0000
commit51c71d3e03236d6a10766bc6562051234495266d (patch)
tree126f534bc2d7f3205ef8222ddca1f1fed4dcb78e /share/mk/meta.autodep.mk
parentae6bd5b7be06d3666cfa1bb2721b232de976f29b (diff)
downloadsrc-51c71d3e03236d6a10766bc6562051234495266d.tar.gz
src-51c71d3e03236d6a10766bc6562051234495266d.zip
Notes
Diffstat (limited to 'share/mk/meta.autodep.mk')
-rw-r--r--share/mk/meta.autodep.mk17
1 files changed, 16 insertions, 1 deletions
diff --git a/share/mk/meta.autodep.mk b/share/mk/meta.autodep.mk
index ac0c40892e98..aa6c2d526eae 100644
--- a/share/mk/meta.autodep.mk
+++ b/share/mk/meta.autodep.mk
@@ -19,7 +19,7 @@ _this ?= ${.PARSEFILE}
.if !target(__${_this}__)
__${_this}__: .NOTMAIN
-.-include "local.autodep.mk"
+.-include <local.autodep.mk>
.if defined(SRCS)
# it would be nice to be able to query .SUFFIXES
@@ -56,6 +56,21 @@ _OBJTOP ?= ${OBJTOP}
_OBJROOT ?= ${OBJROOT:U${_OBJTOP}}
_DEPENDFILE := ${_CURDIR}/${.MAKE.DEPENDFILE:T}
+.if ${.MAKE.LEVEL} > 0 || ${BUILD_AT_LEVEL0:Uyes:tl} == "yes"
+# do not allow auto update if we ever built this dir without filemon
+NO_FILEMON_COOKIE = .nofilemon
+CLEANFILES += ${NO_FILEMON_COOKIE}
+.if ${.MAKE.MODE:Uno:Mnofilemon} != ""
+UPDATE_DEPENDFILE = NO
+all: ${NO_FILEMON_COOKIE}
+${NO_FILEMON_COOKIE}: .NOMETA
+ @echo UPDATE_DEPENDFILE=NO > ${.TARGET}
+.elif exists(${NO_FILEMON_COOKIE})
+UPDATE_DEPENDFILE = NO
+.warning ${RELDIR} built with nofilemon; UPDATE_DEPENDFILE=NO
+.endif
+.endif
+
.if ${.MAKE.LEVEL} == 0
.if ${BUILD_AT_LEVEL0:Uyes:tl} == "no"
UPDATE_DEPENDFILE = NO