summaryrefslogtreecommitdiff
path: root/Mk
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2014-01-04 00:05:01 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2014-01-04 00:05:01 +0000
commitba951253f834d995c0c842366e24e15d52c1b23a (patch)
tree351b8d176c7548f4332cc6290664146582ca4795 /Mk
parentMark all targets defines in _SEQ and .ORDER has .PHONY which they all should be (diff)
Add the end-user targets to .PHONY
Notes
Notes: svn path=/head/; revision=338602
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.port.mk5
1 files changed, 2 insertions, 3 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index 82d7ae8e588f..a8abd016ec68 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -6562,11 +6562,10 @@ _${_t}_REAL_SUSEQ+= ${s}
.ORDER: ${_${_t}_DEP} ${_${_t}_REAL_SEQ}
.endfor
-.PHONY: ${_PHONY_TARGETS}
-
.for target in extract patch configure build stage install package
.if !target(${target}) && defined(_OPTIONS_OK)
+_PHONY_TARGETS+= ${target}
${target}: ${${target:U}_COOKIE}
.elif !target(${target})
${target}: config-conditional
@@ -6609,7 +6608,7 @@ ${${target:U}_COOKIE}::
.endfor
-.PHONY: check-sanity fetch pkg
+.PHONY: ${_PHONY_TARGETS} check-sanity fetch pkg
.if !target(check-sanity)
check-sanity: ${_SANITY_REAL_SEQ}