summaryrefslogtreecommitdiffstats
path: root/share/mk
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2016-03-11 23:44:27 +0000
committerbdrewery <bdrewery@FreeBSD.org>2016-03-11 23:44:27 +0000
commit24b7e3c54feda651e335ff8aacc2cbd68003ed76 (patch)
tree45d40701f1617d738024d6ea09d464161ff30a0f /share/mk
parentef752a91d65b814108a5969ccc3f73af786f1b12 (diff)
downloadFreeBSD-src-24b7e3c54feda651e335ff8aacc2cbd68003ed76.zip
FreeBSD-src-24b7e3c54feda651e335ff8aacc2cbd68003ed76.tar.gz
DIRDEPS_BUILD: Remove the cookie when target is out-of-date.
The meta file may decide the target is out of date but nothing ensures that the *next* build will build this target if it fails this time for some reason; it is still out-of-date until it succeeds. Convert the include/ cookie usage to the global versions. Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'share/mk')
-rw-r--r--share/mk/local.sys.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/share/mk/local.sys.mk b/share/mk/local.sys.mk
index c1baee5..269e253 100644
--- a/share/mk/local.sys.mk
+++ b/share/mk/local.sys.mk
@@ -28,10 +28,14 @@ MAKE_PRINT_VAR_ON_ERROR += .MAKE.MAKEFILES .PATH
.if ${.MAKE.MODE:Mmeta*} != ""
# we can afford to use cookies to prevent some targets
# re-running needlessly
-META_COOKIE_TOUCH= touch ${COOKIE.${.TARGET}:U${.OBJDIR}/${.TARGET}}
+META_COOKIE= ${COOKIE.${.TARGET}:U${.OBJDIR}/${.TARGET}}
+META_COOKIE_RM= @rm -f ${META_COOKIE}
+META_COOKIE_TOUCH= @touch ${META_COOKIE}
# some targets need to be .PHONY - but not in meta mode
META_NOPHONY=
+CLEANFILES+= ${META_COOKIES}
.else
+META_COOKIE_RM=
META_COOKIE_TOUCH=
META_NOPHONY= .PHONY
.endif
OpenPOWER on IntegriCloud