svn commit: r295999 - head/share/mk

Bryan Drewery bdrewery at FreeBSD.org
Wed Feb 24 20:28:46 UTC 2016


Author: bdrewery
Date: Wed Feb 24 20:28:45 2016
New Revision: 295999
URL: https://svnweb.freebsd.org/changeset/base/295999

Log:
  FAST_DEPEND: Still need to remove DEPENDFILE when rebuilding.
  
  This avoids _EXTRADEPEND adding duplicate entries.
  
  Sponsored by:	EMC / Isilon Storage Division

Modified:
  head/share/mk/bsd.dep.mk

Modified: head/share/mk/bsd.dep.mk
==============================================================================
--- head/share/mk/bsd.dep.mk	Wed Feb 24 20:04:41 2016	(r295998)
+++ head/share/mk/bsd.dep.mk	Wed Feb 24 20:28:45 2016	(r295999)
@@ -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]}


More information about the svn-src-all mailing list