aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2014-01-04 08:02:08 +0800
committerbapt <bapt@FreeBSD.org>2014-01-04 08:02:08 +0800
commit6b22b65580613017e3a8b773838222d977d0a68b (patch)
tree4933bce358ab8595dbbf34dbdb89eddbe9676908 /Mk
parentb6960246f0fab9c94f99b9c548467e88b17b878f (diff)
downloadfreebsd-ports-gnome-6b22b65580613017e3a8b773838222d977d0a68b.tar.gz
freebsd-ports-gnome-6b22b65580613017e3a8b773838222d977d0a68b.tar.zst
freebsd-ports-gnome-6b22b65580613017e3a8b773838222d977d0a68b.zip
Mark all targets defines in _SEQ and .ORDER has .PHONY which they all should be
If one day we are no adding a target actually correspond to an actual file, simply adding the name of the target to the NOTPHONY will make it work as expected
Diffstat (limited to 'Mk')
-rw-r--r--Mk/Uses/charsetfix.mk1
-rw-r--r--Mk/Uses/pathfix.mk1
-rw-r--r--Mk/bsd.port.mk12
3 files changed, 11 insertions, 3 deletions
diff --git a/Mk/Uses/charsetfix.mk b/Mk/Uses/charsetfix.mk
index 34f47f35dde1..edd1dc7fdd66 100644
--- a/Mk/Uses/charsetfix.mk
+++ b/Mk/Uses/charsetfix.mk
@@ -18,7 +18,6 @@ IGNORE= USES=charsetfix does not require args
CHARSETFIX_MAKEFILEIN?= Makefile.in
-.PHONY: charsetfix-post-patch
charsetfix-post-patch:
@${FIND} ${WRKSRC} -name "${CHARSETFIX_MAKEFILEIN}" -type f | ${XARGS} ${REINPLACE_CMD} \
-e 's|need_charset_alias=true|need_charset_alias=false|g ; \
diff --git a/Mk/Uses/pathfix.mk b/Mk/Uses/pathfix.mk
index 7bac6d57bf66..069c056dc156 100644
--- a/Mk/Uses/pathfix.mk
+++ b/Mk/Uses/pathfix.mk
@@ -19,7 +19,6 @@ IGNORE= USES=pathfix does not require args
PATHFIX_MAKEFILEIN?= Makefile.in
-.PHONY: pathfix-pre-patch
pathfix-pre-patch:
@${FIND} ${WRKSRC} -name "${PATHFIX_MAKEFILEIN}" -type f | ${XARGS} ${REINPLACE_CMD} -e \
's|[(]libdir[)]/locale|(prefix)/share/locale|g ; \
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index b8cf7f0b3dde..82d7ae8e588f 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -1127,6 +1127,7 @@ SRC_BASE?= /usr/src
USESDIR?= ${PORTSDIR}/Mk/Uses
SCRIPTSDIR?= ${PORTSDIR}/Mk/Scripts
LIB_DIRS?= /lib /usr/lib ${LOCALBASE}/lib
+NOTPHONY?=
.if defined(FORCE_STAGE)
.undef NO_STAGE
@@ -4256,7 +4257,6 @@ security-check:
# call the necessary targets/scripts.
################################################################
-.PHONY: extract-message patch-message configure-message stage-message install-message package-message
extract-message:
@${ECHO_MSG} "===> Extracting for ${PKGNAME}"
patch-message:
@@ -6545,17 +6545,25 @@ _PACKAGE_SEQ= package-message pre-package pre-package-script \
.for _t in ${_TARGETS_STAGES}
. for s in ${_${_t}_SEQ}
. if target(${s})
+. if ! ${NOTPHONY:M${s}}
+_PHONY_TARGETS+= ${s}
+. endif
_${_t}_REAL_SEQ+= ${s}
. endif
. endfor
. for s in ${_${_t}_SUSEQ}
. if target(${s})
+. if ! ${NOTPHONY:M${s}}
+_PHONY_TARGETS+= ${s}
+. endif
_${_t}_REAL_SUSEQ+= ${s}
. endif
. endfor
.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)
@@ -6601,6 +6609,8 @@ ${${target:U}_COOKIE}::
.endfor
+.PHONY: check-sanity fetch pkg
+
.if !target(check-sanity)
check-sanity: ${_SANITY_REAL_SEQ}
.endif