Module Name:    src
Committed By:   christos
Date:           Tue Mar  5 21:59:01 UTC 2013

Modified Files:
        src/share/mk: bsd.dep.mk

Log Message:
Add a rule to rebuild dependency files that contain stale entries automatically.


To generate a diff of this commit:
cvs rdiff -u -r1.76 -r1.77 src/share/mk/bsd.dep.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/mk/bsd.dep.mk
diff -u src/share/mk/bsd.dep.mk:1.76 src/share/mk/bsd.dep.mk:1.77
--- src/share/mk/bsd.dep.mk:1.76	Mon Mar  4 21:02:07 2013
+++ src/share/mk/bsd.dep.mk	Tue Mar  5 16:59:01 2013
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.dep.mk,v 1.76 2013/03/05 02:02:07 christos Exp $
+#	$NetBSD: bsd.dep.mk,v 1.77 2013/03/05 21:59:01 christos Exp $
 
 ##### Basic targets
 realdepend:	beforedepend .depend afterdepend
@@ -39,6 +39,10 @@ ${__DPSRCS.d}: ${__DPSRCS.notd} ${DPSRCS
 MKDEPSUFFLAGS=-s ${MKDEP_SUFFIXES:Q}
 
 .if defined(MKDEPINCLUDES) && ${MKDEPINCLUDES} != "no"
+.STALE:
+	@echo Rebuilding dependency file: ${.ALLSRC}
+	@rm -f ${.ALLSRC}
+	@(cd ${.CURDIR} && ${MAKE} depend)
 _MKDEP_MERGEFLAGS=-i
 _MKDEP_FILEFLAGS=${MKDEPSUFFLAGS}
 .else

Reply via email to