Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/crunch/crunchgen Add an extra target to the xxx.mk f...
details: https://anonhg.NetBSD.org/src/rev/1ce5e927e427
branches: trunk
changeset: 547241:1ce5e927e427
user: dsl <dsl%NetBSD.org@localhost>
date: Thu May 15 17:49:46 2003 +0000
description:
Add an extra target to the xxx.mk file that is equivalent to 'all', but which
doesn't pick up baggage from bsd.own.mk and bsd.prog.mk.
This stops parallel makes exploding because they try to build ${PROG} to soon.
Fixes toolchain/21563 (with change to src/distrib/common/Makefile.crunch).
Upped version of crunchgen to 0.3
diffstat:
usr.bin/crunch/crunchgen/crunchgen.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (37 lines):
diff -r 01814db8ad89 -r 1ce5e927e427 usr.bin/crunch/crunchgen/crunchgen.c
--- a/usr.bin/crunch/crunchgen/crunchgen.c Thu May 15 16:46:55 2003 +0000
+++ b/usr.bin/crunch/crunchgen/crunchgen.c Thu May 15 17:49:46 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: crunchgen.c,v 1.46 2003/05/14 11:20:01 dsl Exp $ */
+/* $NetBSD: crunchgen.c,v 1.47 2003/05/15 17:49:46 dsl Exp $ */
/*
* Copyright (c) 1994 University of Maryland
* All Rights Reserved.
@@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
#if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: crunchgen.c,v 1.46 2003/05/14 11:20:01 dsl Exp $");
+__RCSID("$NetBSD: crunchgen.c,v 1.47 2003/05/15 17:49:46 dsl Exp $");
#endif
#if HAVE_CONFIG_H
@@ -51,7 +51,7 @@
#include <sys/param.h>
#include <sys/utsname.h>
-#define CRUNCH_VERSION "0.2"
+#define CRUNCH_VERSION "0.3"
#define MAXLINELEN 16384
#define MAXFIELDS 2048
@@ -857,7 +857,8 @@
fprintf(outmk, "PROG=%s\n\n", execfname);
- fprintf(outmk, "all: ${SUBMAKE_TARGETS} .WAIT ${PROG}.strip\n");
+ fprintf(outmk, "all: ${PROG}.crunched\n");
+ fprintf(outmk, "${PROG}.crunched: ${SUBMAKE_TARGETS} .WAIT ${PROG}.strip\n");
fprintf(outmk, "${PROG}.strip:\n");
fprintf(outmk, "\t${MAKE} -f ${PROG}.mk ${PROG}\n");
fprintf(outmk, "\t[ -f ${PROG}.stripped -a ! ${PROG} -nt ${PROG}.stripped ] || { \\\n");
Home |
Main Index |
Thread Index |
Old Index