Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/mk Add a rule to rebuild dependency files that contain...



details:   https://anonhg.NetBSD.org/src/rev/82fc76705f7f
branches:  trunk
changeset: 785244:82fc76705f7f
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Mar 05 21:59:01 2013 +0000

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

diffstat:

 share/mk/bsd.dep.mk |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 83df57a15fb9 -r 82fc76705f7f share/mk/bsd.dep.mk
--- a/share/mk/bsd.dep.mk       Tue Mar 05 21:57:47 2013 +0000
+++ b/share/mk/bsd.dep.mk       Tue Mar 05 21:59:01 2013 +0000
@@ -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 @@
 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



Home | Main Index | Thread Index | Old Index