summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2016-08-24 02:32:40 +0000
committerbdrewery <bdrewery@FreeBSD.org>2016-08-24 02:32:40 +0000
commit4607f52b2456feefedbaec0d7598e64b2429f314 (patch)
tree4d0503bdce284b6697073d7dc92f54743e59593f /share
parent8a9a3bc2c1420907aecf1ad94c281adbf1dcc4ce (diff)
downloadFreeBSD-src-4607f52b2456feefedbaec0d7598e64b2429f314.zip
FreeBSD-src-4607f52b2456feefedbaec0d7598e64b2429f314.tar.gz
MFS r304717:
MFC r304697: FAST_DEPEND: Fix 'make all install' not properly rebuilding based on .depend.* files. Approved by: re (gjb)
Diffstat (limited to 'share')
-rw-r--r--share/mk/bsd.dep.mk7
1 files changed, 4 insertions, 3 deletions
diff --git a/share/mk/bsd.dep.mk b/share/mk/bsd.dep.mk
index bddf575..064b829 100644
--- a/share/mk/bsd.dep.mk
+++ b/share/mk/bsd.dep.mk
@@ -76,12 +76,13 @@ tags: ${SRCS}
_meta_filemon= 1
.endif
-# Skip reading .depend when not needed to speed up tree-walks
-# and simple lookups.
+# Skip reading .depend when not needed to speed up tree-walks and simple
+# lookups. For install, only do this if no other targets are specified.
# Also skip generating or including .depend.* files if in meta+filemon mode
# since it will track dependencies itself. OBJS_DEPEND_GUESS is still used.
.if !empty(.MAKEFLAGS:M-V${_V_READ_DEPEND}) || make(obj) || make(clean*) || \
- make(install*) || make(analyze) || defined(_meta_filemon)
+ ${.TARGETS:M*install*} == ${.TARGETS} || \
+ make(analyze) || defined(_meta_filemon)
_SKIP_READ_DEPEND= 1
.if ${MK_DIRDEPS_BUILD} == "no"
.MAKE.DEPENDFILE= /dev/null
OpenPOWER on IntegriCloud