Author: bdrewery
Date: Mon Apr 18 21:11:55 2016
New Revision: 298228
URL: https://svnweb.freebsd.org/changeset/base/298228

Log:
  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

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

Modified: head/share/mk/bsd.dep.mk
==============================================================================
--- head/share/mk/bsd.dep.mk    Mon Apr 18 21:05:19 2016        (r298227)
+++ head/share/mk/bsd.dep.mk    Mon Apr 18 21:11:55 2016        (r298228)
@@ -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)
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to