diff options
author | bdrewery <bdrewery@FreeBSD.org> | 2016-02-24 20:28:45 +0000 |
---|---|---|
committer | bdrewery <bdrewery@FreeBSD.org> | 2016-02-24 20:28:45 +0000 |
commit | a6a90cbd3a61a3b48ba67ae595dc12f93c3ebe07 (patch) | |
tree | 1908b74aa9fe491c8798084bc8d7f593fabe3c90 | |
parent | 34c855f2ff223bd5b03cb7bc88dc7842734333fe (diff) | |
download | FreeBSD-src-a6a90cbd3a61a3b48ba67ae595dc12f93c3ebe07.zip FreeBSD-src-a6a90cbd3a61a3b48ba67ae595dc12f93c3ebe07.tar.gz |
FAST_DEPEND: Still need to remove DEPENDFILE when rebuilding.
This avoids _EXTRADEPEND adding duplicate entries.
Sponsored by: EMC / Isilon Storage Division
-rw-r--r-- | share/mk/bsd.dep.mk | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/share/mk/bsd.dep.mk b/share/mk/bsd.dep.mk index 770ef68..3330ae0 100644 --- a/share/mk/bsd.dep.mk +++ b/share/mk/bsd.dep.mk @@ -268,8 +268,10 @@ DPSRCS+= ${SRCS} # FAST_DEPEND will only generate a .depend if _EXTRADEPEND is used but # the target is created to allow 'make depend' to generate files. ${DEPENDFILE}: ${DPSRCS} -.if ${MK_FAST_DEPEND} == "no" +.if exists(${.OBJDIR}/${DEPENDFILE}) rm -f ${DEPENDFILE} +.endif +.if ${MK_FAST_DEPEND} == "no" .if !empty(DPSRCS:M*.[cS]) ${MKDEPCMD} -f ${DEPENDFILE} -a ${MKDEP} \ ${MKDEP_CFLAGS} ${.ALLSRC:M*.[cS]} |