Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/common Avoid building the xxx.mk file (etc) multiple...
details: https://anonhg.NetBSD.org/src/rev/7a069473a9b1
branches: trunk
changeset: 547242:7a069473a9b1
user: dsl <dsl%NetBSD.org@localhost>
date: Thu May 15 17:52:32 2003 +0000
description:
Avoid building the xxx.mk file (etc) multiple times in a parralel build.
Change name of target build from xxx.mk from 'all' to xxx.crunched to avoid
picking up baggage from bsd.own.mk and bsd.prog.mk.
Fixes toolchain/21563 (with new crunchgen binary)
diffstat:
distrib/common/Makefile.crunch | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 1ce5e927e427 -r 7a069473a9b1 distrib/common/Makefile.crunch
--- a/distrib/common/Makefile.crunch Thu May 15 17:49:46 2003 +0000
+++ b/distrib/common/Makefile.crunch Thu May 15 17:52:32 2003 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.crunch,v 1.13 2003/05/09 12:20:04 dsl Exp $
+# $NetBSD: Makefile.crunch,v 1.14 2003/05/15 17:52:32 dsl Exp $
#
# Makefile snippet to build a crunchgen(1)ed binary from the provided lists
#
@@ -38,9 +38,15 @@
.PHONY: ${CRUNCHBIN}
${CRUNCHBIN}: ${CRUNCHBIN}.mk ${CRUNCHBIN}.cache ${CRUNCHBIN}.c
- ${CRUNCHENV} ${MAKE} -j 1 -f ${CRUNCHBIN}.mk all
+ ${CRUNCHENV} ${MAKE} -j 1 -f ${CRUNCHBIN}.mk ${CRUNCHBIN}.crunched
+
+${CRUNCHBIN}.c: ${CRUNCHBIN}.mk
+ [ ! -f ${.TARGET} ] || touch ${.TARGET}
-${CRUNCHBIN}.mk ${CRUNCHBIN}.cache ${CRUNCHBIN}.c: ${CRUNCHBIN}.conf
+${CRUNCHBIN}.cache: ${CRUNCHBIN}.mk
+ [ ! -f ${.TARGET} ] || touch ${.TARGET}
+
+${CRUNCHBIN}.mk: ${CRUNCHBIN}.conf
${CRUNCHENV} ${CRUNCHGEN} -f -D ${NETBSDSRCDIR} -L ${DESTDIR}/usr/lib \
-q ${CRUNCHGEN_FLAGS} ${.ALLSRC}
Home |
Main Index |
Thread Index |
Old Index