Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tools Use .ORDER targets to express the dependencies on subd...
details: https://anonhg.NetBSD.org/src/rev/c348777d053b
branches: trunk
changeset: 522033:c348777d053b
user: pk <pk%NetBSD.org@localhost>
date: Sun Feb 10 15:46:42 2002 +0000
description:
Use .ORDER targets to express the dependencies on subdir runs. This makes
the resulting tree complexity O(N) (N=# of subdirs), and it also makes it
easier to comprehend the Makefile logic.
diffstat:
tools/Makefile | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diffs (28 lines):
diff -r 8a68be6303dd -r c348777d053b tools/Makefile
--- a/tools/Makefile Sun Feb 10 15:46:28 2002 +0000
+++ b/tools/Makefile Sun Feb 10 15:46:42 2002 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.33 2002/02/08 17:48:38 pk Exp $
+# $NetBSD: Makefile,v 1.34 2002/02/10 15:46:42 pk Exp $
# XXX Note: NO_DBSYM is a stopgap temporary variable for use
# with the development of non-NetBSD hosting support. This will go away.
@@ -56,16 +56,14 @@
# For each .WAIT point, make sure the previous target is installed before
# building a dependent target.
-_dep:=
_last:=
.for d in ${SUBDIR}
_this:= ${d}
.if ${_this} == ".WAIT"
-_dep:= ${_dep} install-${_last}
-install-${_last}: all-${_last}
+.ORDER: depend-${_last} all-${_last} dependall-${_last} install-${_last}
.else
+.ORDER: depend-${d} all-${d} dependall-${d} install-${_last}
_last:= ${d}
-depend-${d} all-${d} dependall-${d}: ${_dep}
.endif
.endfor
Home |
Main Index |
Thread Index |
Old Index