From 462b35ac6516a5459eac96020ef6e6e5ca964ea6 Mon Sep 17 00:00:00 2001 From: "Simon J. Gerraty" Date: Tue, 13 Sep 2016 22:17:25 +0000 Subject: [PATCH] Avoid clobbering existing value of META_COOKIE_TOUCH --- share/mk/meta.sys.mk | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/share/mk/meta.sys.mk b/share/mk/meta.sys.mk index 649703ecd51b..9c05e209203f 100644 --- a/share/mk/meta.sys.mk +++ b/share/mk/meta.sys.mk @@ -114,16 +114,13 @@ _metaError: .NOMETA .NOTMAIN .endif -META_COOKIE_TOUCH= -# some targets need to be .PHONY in non-meta mode -META_NOPHONY= .PHONY # Are we, after all, in meta mode? .if ${.MAKE.MODE:Uno:Mmeta*} != "" MKDEP_MK = meta.autodep.mk # we can afford to use cookies to prevent some targets # re-running needlessly -META_COOKIE_TOUCH= touch ${COOKIE.${.TARGET}:U${.OBJDIR}/${.TARGET:T}} +META_COOKIE_TOUCH?= touch ${COOKIE.${.TARGET}:U${.OBJDIR}/${.TARGET:T}} META_NOPHONY= # some targets involve old pre-built targets @@ -159,5 +156,9 @@ BUILD_AT_LEVEL0 ?= no .endif .endif +.else +META_COOKIE_TOUCH= +# some targets need to be .PHONY in non-meta mode +META_NOPHONY= .PHONY .endif .endif