Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tools Make tools/Makefile build host-mkdep, compat, and bins...
details: https://anonhg.NetBSD.org/src/rev/4af9d287ea5d
branches: trunk
changeset: 783040:4af9d287ea5d
user: apb <apb%NetBSD.org@localhost>
date: Sun Dec 02 12:25:25 2012 +0000
description:
Make tools/Makefile build host-mkdep, compat, and binstall in that order,
before installing any of them. It installs them in any order relative
to each other. The .WAIT points that used to be between these three
tools are replaced by .ORDER and dependencies.
This is needed in preparation for making tools/compat install
some files into TOOLDIR.
diffstat:
tools/Makefile | 25 ++++++++++++++++++++++---
1 files changed, 22 insertions(+), 3 deletions(-)
diffs (40 lines):
diff -r 4b8a5b2538a0 -r 4af9d287ea5d tools/Makefile
--- a/tools/Makefile Sun Dec 02 12:21:51 2012 +0000
+++ b/tools/Makefile Sun Dec 02 12:25:25 2012 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.164 2012/12/02 12:10:43 apb Exp $
+# $NetBSD: Makefile,v 1.165 2012/12/02 12:25:25 apb Exp $
.include <bsd.own.mk>
@@ -70,9 +70,28 @@
LINT_BITS= lint lint2
.endif
+# All of host-mkdep, compat, and binstall are needed before anything
+# else. Within this group, they must be built in a specific order, and
+# all of them must be built before any of them is installed. They may
+# be installed in any order. This can't be expressed using the .WAIT
+# notation inside the SUBDIR list.
+#
+# XXX .ORDER does not work when multiple targets are passed on the
+# make command line without "-j", so use dependencies in addition to .ORDER.
+#
+.ORDER: dependall-host-mkdep dependall-compat dependall-binstall
+.if make(dependall-host-mkdep) && make(dependall-compat)
+dependall-compat: dependall-host-mkdep
+.endif
+.if make(dependall-compat) && make(dependall-binstall)
+dependall-binstall: dependall-compat
+.endif
+
# Dependencies in SUBDIR below ordered to maximize parallel ability.
-SUBDIR= host-mkdep .WAIT compat .WAIT \
- binstall .WAIT mktemp .WAIT sed .WAIT \
+# See above for special treatment for host-mkdep, compat, and binstall.
+#
+SUBDIR= host-mkdep compat binstall \
+ .WAIT mktemp .WAIT sed .WAIT \
cap_mkdb crunchgen ctags genassym gencat hexdump join \
${LINT_BITS} \
lorder makewhatis mkdep mtree nbperf .WAIT rpcgen tsort \
Home |
Main Index |
Thread Index |
Old Index