diff options
| author | Steve Price <steve@FreeBSD.org> | 1996-09-25 02:55:49 +0000 |
|---|---|---|
| committer | Steve Price <steve@FreeBSD.org> | 1996-09-25 02:55:49 +0000 |
| commit | 6d29e75f84fc23f9f3838350b4f5b842c3d441cf (patch) | |
| tree | 2556f28caa855357eaa911a518205e751a1cbf9b /usr.bin/make | |
| parent | 42a69230b9fe0a72df1e0850911d4228e663ac78 (diff) | |
Notes
Diffstat (limited to 'usr.bin/make')
| -rw-r--r-- | usr.bin/make/compat.c | 4 | ||||
| -rw-r--r-- | usr.bin/make/parse.c | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/make/compat.c b/usr.bin/make/compat.c index a9e89701141e7..05577892c5ec9 100644 --- a/usr.bin/make/compat.c +++ b/usr.bin/make/compat.c @@ -615,6 +615,10 @@ Compat_Run(targs) gn = Targ_FindNode(".BEGIN", TARG_NOCREATE); if (gn != NILGNODE) { Lst_ForEach(gn->commands, CompatRunCommand, (ClientData)gn); + if (gn->made == ERROR) { + printf("\n\nStop.\n"); + exit(1); + } } } diff --git a/usr.bin/make/parse.c b/usr.bin/make/parse.c index 3bd2475df2a21..b2410637d86b8 100644 --- a/usr.bin/make/parse.c +++ b/usr.bin/make/parse.c @@ -2041,8 +2041,6 @@ ParseSkipLine(skip) } lineno++; - if (c != '\n') - Buf_AddByte(buf, (Byte)'\0'); Buf_AddByte(buf, (Byte)'\0'); line = (char *)Buf_GetAll(buf, &lineLength); } while (skip == 1 && line[0] != '.'); |
