diff options
| author | Ron Yorston <rmy@pobox.com> | 2026-01-26 13:48:54 +0000 |
|---|---|---|
| committer | Ron Yorston <rmy@pobox.com> | 2026-01-26 13:48:54 +0000 |
| commit | f0cd749ff7ad15665a5d03e58eb73ef48f60381d (patch) | |
| tree | 18738a6d040b53a28d11aa5a916241b08b732588 | |
| parent | 7504b4e889e23a80f84101e19ff0e9e626634cd4 (diff) | |
| download | busybox-w32-f0cd749ff7ad15665a5d03e58eb73ef48f60381d.tar.gz busybox-w32-f0cd749ff7ad15665a5d03e58eb73ef48f60381d.tar.bz2 busybox-w32-f0cd749ff7ad15665a5d03e58eb73ef48f60381d.zip | |
The make applet is based on code from pdpmake. Make a few minor
adjustments to bring the two into line.
The only one of any significance is setting 'target' to NULL in
docmds().
Adds 16 bytes.
| -rw-r--r-- | miscutils/make.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/miscutils/make.c b/miscutils/make.c index 7396fc770..75d4cb5b8 100644 --- a/miscutils/make.c +++ b/miscutils/make.c | |||
| @@ -2089,7 +2089,7 @@ run_command(const char *cmd) | |||
| 2089 | pclose(fd); | 2089 | pclose(fd); |
| 2090 | 2090 | ||
| 2091 | if (val == NULL) | 2091 | if (val == NULL) |
| 2092 | return NULL; | 2092 | return val; |
| 2093 | 2093 | ||
| 2094 | // Strip leading whitespace in POSIX 2024 mode | 2094 | // Strip leading whitespace in POSIX 2024 mode |
| 2095 | if (posix) { | 2095 | if (posix) { |
| @@ -2713,6 +2713,7 @@ docmds(struct name *np, struct cmd *cp) | |||
| 2713 | exit(2); | 2713 | exit(2); |
| 2714 | } | 2714 | } |
| 2715 | } | 2715 | } |
| 2716 | target = NULL; | ||
| 2716 | } | 2717 | } |
| 2717 | if (sdomake || dryrun) | 2718 | if (sdomake || dryrun) |
| 2718 | estat = MAKE_DIDSOMETHING; | 2719 | estat = MAKE_DIDSOMETHING; |
| @@ -3504,7 +3505,7 @@ int make_main(int argc UNUSED_PARAM, char **argv) | |||
| 3504 | #endif | 3505 | #endif |
| 3505 | else | 3506 | else |
| 3506 | error("no makefile found"); | 3507 | error("no makefile found"); |
| 3507 | goto read_makefile; | 3508 | goto read_makefile; |
| 3508 | } | 3509 | } |
| 3509 | 3510 | ||
| 3510 | while ((file = llist_pop(&makefiles))) { | 3511 | while ((file = llist_pop(&makefiles))) { |
