Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/make Also display failed target. Given
details: https://anonhg.NetBSD.org/src/rev/757619bf2327
branches: trunk
changeset: 551256:757619bf2327
user: lukem <lukem%NetBSD.org@localhost>
date: Tue Sep 02 23:40:11 2003 +0000
description:
Also display failed target. Given
printf "all:\n\ttrue\n\t@false\n" | make -f -
the error output now looks like:
*** Failed target: all
*** Failed command: false
*** Error code 1
instead of just
*** Error code 1
XXX: add this support for make -j builds.
diffstat:
usr.bin/make/compat.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 379f67c6bb6a -r 757619bf2327 usr.bin/make/compat.c
--- a/usr.bin/make/compat.c Tue Sep 02 22:57:29 2003 +0000
+++ b/usr.bin/make/compat.c Tue Sep 02 23:40:11 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: compat.c,v 1.48 2003/09/02 12:17:40 lukem Exp $ */
+/* $NetBSD: compat.c,v 1.49 2003/09/02 23:40:11 lukem Exp $ */
/*
* Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
@@ -70,14 +70,14 @@
*/
#ifdef MAKE_BOOTSTRAP
-static char rcsid[] = "$NetBSD: compat.c,v 1.48 2003/09/02 12:17:40 lukem Exp $";
+static char rcsid[] = "$NetBSD: compat.c,v 1.49 2003/09/02 23:40:11 lukem Exp $";
#else
#include <sys/cdefs.h>
#ifndef lint
#if 0
static char sccsid[] = "@(#)compat.c 8.2 (Berkeley) 3/19/94";
#else
-__RCSID("$NetBSD: compat.c,v 1.48 2003/09/02 12:17:40 lukem Exp $");
+__RCSID("$NetBSD: compat.c,v 1.49 2003/09/02 23:40:11 lukem Exp $");
#endif
#endif /* not lint */
#endif
@@ -355,7 +355,8 @@
} else if (WIFEXITED(reason)) {
status = WEXITSTATUS(reason); /* exited */
if (status != 0) {
- printf ("\n*** Command failed: %s\n", cmd);
+ printf("\n*** Failed target: %s\n*** Failed command: %s\n",
+ gn->name, cmd);
printf ("*** Error code %d", status);
}
} else {
Home |
Main Index |
Thread Index |
Old Index