svn commit: r349064 - head/share/mk

Bryan Drewery bdrewery at FreeBSD.org
Sat Jun 15 17:08:25 UTC 2019


Author: bdrewery
Date: Sat Jun 15 17:08:21 2019
New Revision: 349064
URL: https://svnweb.freebsd.org/changeset/base/349064

Log:
  Avoid generating DEPENDFILES='.depend.' when there's no DEPENDOBJS.
  
  MFC after:	2 weeks
  Sponsored by:	DellEMC

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

Modified: head/share/mk/bsd.dep.mk
==============================================================================
--- head/share/mk/bsd.dep.mk	Sat Jun 15 17:08:18 2019	(r349063)
+++ head/share/mk/bsd.dep.mk	Sat Jun 15 17:08:21 2019	(r349064)
@@ -186,7 +186,9 @@ DEPENDSRCS+=	${DPSRCS:M*.[cSC]} ${SRCS:M*.cxx} ${SRCS:
 .if !empty(DEPENDSRCS)
 DEPENDOBJS+=	${DEPENDSRCS:${OBJS_SRCS_FILTER:ts:}:S,$,.o,}
 .endif
+.if !empty(DEPENDOBJS)
 DEPENDFILES+=	${DEPENDOBJS:O:u:${DEPEND_FILTER}:C/^/${DEPENDFILE}./}
+.endif
 .if defined(_SKIP_DEPEND)
 # Don't bother statting any .meta files for .depend*
 ${DEPENDOBJS}:	.NOMETA


More information about the svn-src-all mailing list