summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2016-04-18 21:11:55 +0000
committerbdrewery <bdrewery@FreeBSD.org>2016-04-18 21:11:55 +0000
commit77ec731d14e7c5c84f88a8377c5379890a42a9b7 (patch)
treef79dd94258de9eb5e0711650afa3d15d72a04692
parent020a8d64e6a8c935f5294131d827633d6e1ead83 (diff)
downloadFreeBSD-src-77ec731d14e7c5c84f88a8377c5379890a42a9b7.zip
FreeBSD-src-77ec731d14e7c5c84f88a8377c5379890a42a9b7.tar.gz
META_MODE: Don't hide the .depend rm -f command.
Otherwise the build command changes every build. META_MODE will only remove it if something changes to warrant rebuilding the file. Sponsored by: EMC / Isilon Storage Division
-rw-r--r--share/mk/bsd.dep.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/mk/bsd.dep.mk b/share/mk/bsd.dep.mk
index 46e4a14..1ea475f 100644
--- a/share/mk/bsd.dep.mk
+++ b/share/mk/bsd.dep.mk
@@ -238,7 +238,7 @@ DPSRCS+= ${SRCS}
# beforedepend/_EXTRADEPEND/afterdepend. The target is kept
# to allow 'make depend' to generate files.
${DEPENDFILE}: ${DPSRCS}
-.if exists(${.OBJDIR}/${DEPENDFILE})
+.if !empty(.MAKE.MODE:Mmeta) || exists(${.OBJDIR}/${DEPENDFILE})
rm -f ${DEPENDFILE}
.endif
.if target(_EXTRADEPEND)
OpenPOWER on IntegriCloud