summaryrefslogtreecommitdiff
path: root/Mk/bsd.port.mk
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2002-03-27 04:26:44 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2002-03-27 04:26:44 +0000
commit3c634c13039fc6257a10c26a45f8330a03345ba0 (patch)
treea490f3ec96226986a26b82c232b02fec6d39cfbc /Mk/bsd.port.mk
parentFix MASTER_SITES (diff)
Slightly adjust speedup patch, so that it works when user specifies unnatural
targets sequence, i.e. `make clean build'. It doesn't affect default behaviour. Reported by: knu
Notes
Notes: svn path=/head/; revision=56726
Diffstat (limited to 'Mk/bsd.port.mk')
-rw-r--r--Mk/bsd.port.mk8
1 files changed, 6 insertions, 2 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index 097268b687ec..61a2db8ee93d 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -2526,8 +2526,12 @@ ${target}:
${${target:U}_COOKIE}: ${_${target:U}_SEQ}
@${TOUCH} ${TOUCH_FLAGS} ${.TARGET}
.else
-${${target:U}_COOKIE}:
- ${DO_NADA}
+${${target:U}_COOKIE}::
+ @if [ -e ${.TARGET} ]; then \
+ ${DO_NADA}; \
+ else \
+ cd ${.CURDIR} && ${MAKE} ${__softMAKEFLAGS} ${.TARGET}; \
+ fi
.endif
.endfor