From f0cd749ff7ad15665a5d03e58eb73ef48f60381d Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Mon, 26 Jan 2026 13:48:54 +0000 Subject: make: bring into alignment with pdpmake 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. --- miscutils/make.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'miscutils/make.c') 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) pclose(fd); if (val == NULL) - return NULL; + return val; // Strip leading whitespace in POSIX 2024 mode if (posix) { @@ -2713,6 +2713,7 @@ docmds(struct name *np, struct cmd *cp) exit(2); } } + target = NULL; } if (sdomake || dryrun) estat = MAKE_DIDSOMETHING; @@ -3504,7 +3505,7 @@ int make_main(int argc UNUSED_PARAM, char **argv) #endif else error("no makefile found"); - goto read_makefile; + goto read_makefile; } while ((file = llist_pop(&makefiles))) { -- cgit v1.2.3-55-g6feb