summaryrefslogtreecommitdiff
path: root/usr.bin/make/compat.c
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2000-04-17 23:54:48 +0000
committerMarc Espie <espie@cvs.openbsd.org>2000-04-17 23:54:48 +0000
commit2f2fb1e760558699e8241bfeb8ad746e650bdc9a (patch)
tree7a6640292927ba2ea2fadf8556d65457bb6fafdd /usr.bin/make/compat.c
parentefe92132bcb7cc0b46e9a23dca584fcdf0c0ec7e (diff)
Record location in target node as well.
Indicate what went wrong for commands like @exit 1
Diffstat (limited to 'usr.bin/make/compat.c')
-rw-r--r--usr.bin/make/compat.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/usr.bin/make/compat.c b/usr.bin/make/compat.c
index 94d78dfa9d6..a139c3cc437 100644
--- a/usr.bin/make/compat.c
+++ b/usr.bin/make/compat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: compat.c,v 1.23 2000/03/26 16:21:32 espie Exp $ */
+/* $OpenBSD: compat.c,v 1.24 2000/04/17 23:54:47 espie Exp $ */
/* $NetBSD: compat.c,v 1.14 1996/11/06 17:59:01 christos Exp $ */
/*
@@ -43,7 +43,7 @@
#if 0
static char sccsid[] = "@(#)compat.c 8.2 (Berkeley) 3/19/94";
#else
-static char rcsid[] = "$OpenBSD: compat.c,v 1.23 2000/03/26 16:21:32 espie Exp $";
+static char rcsid[] = "$OpenBSD: compat.c,v 1.24 2000/04/17 23:54:47 espie Exp $";
#endif
#endif /* not lint */
@@ -604,7 +604,13 @@ CompatMake (gnp, pgnp)
} else if (keepgoing) {
pgn->make = FALSE;
} else {
- printf ("\n\nStop in %s.\n", Var_Value(".CURDIR", gn));
+ if (gn->lineno)
+ printf("\n\nStop in %s (line %lu of %s).\n",
+ Var_Value(".CURDIR", gn),
+ (unsigned long)gn->lineno,
+ gn->fname);
+ else
+ printf("\n\nStop in %s.\n", Var_Value(".CURDIR", gn));
exit (1);
}
} else if (gn->made == ERROR) {