Source-Changes-HG archive

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

[src/trunk]: src/share/mk Allow for recursion speedups by predefining rules f...



details:   https://anonhg.NetBSD.org/src/rev/01b084cecb6b
branches:  trunk
changeset: 515291:01b084cecb6b
user:      tv <tv%NetBSD.org@localhost>
date:      Fri Sep 21 20:50:23 2001 +0000

description:
Allow for recursion speedups by predefining rules for large subtrees which
don't need to run a particular target (such as "includes-games" at top level,
or "includes-sushi" at share/).

diffstat:

 share/mk/bsd.subdir.mk |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 33201ab1306e -r 01b084cecb6b share/mk/bsd.subdir.mk
--- a/share/mk/bsd.subdir.mk    Fri Sep 21 20:48:02 2001 +0000
+++ b/share/mk/bsd.subdir.mk    Fri Sep 21 20:50:23 2001 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.subdir.mk,v 1.42 2001/08/14 09:02:26 tv Exp $
+#      $NetBSD: bsd.subdir.mk,v 1.43 2001/09/21 20:50:23 tv Exp $
 #      @(#)bsd.subdir.mk       8.1 (Berkeley) 6/8/93
 
 .if !target(__initialized__)
@@ -51,7 +51,7 @@
 __TARGDIR := ${dir}
 .if ${__TARGDIR} == ".WAIT"
 SUBDIR_${targ} += .WAIT
-.else
+.elif !commands(${targ}-${dir})
 .PHONY: ${targ}-${dir}
 ${targ}-${dir}: .MAKE __recurse
 SUBDIR_${targ} += ${targ}-${dir}



Home | Main Index | Thread Index | Old Index