From ac9ff15e24b4eb2413fc3c4c7b6f3bfc1166516c Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Thu, 24 Aug 2023 15:57:14 +0100 Subject: make: fix .DEFAULT for prerequisite Commit 4b65e7d9 (Fixes to inference rules) set the N_TARGET flag for prerequisites being built recursively. That wasn't necessary for the issue at hand and it lead to other problems. Undo that part of commit 4b65e7d9. (GitHub issue #354) --- miscutils/make.c | 1 - 1 file changed, 1 deletion(-) diff --git a/miscutils/make.c b/miscutils/make.c index a2cd03707..25e3cc15a 100644 --- a/miscutils/make.c +++ b/miscutils/make.c @@ -2369,7 +2369,6 @@ make(struct name *np, int level) } for (dp = rp->r_dep; dp; dp = dp->d_next) { // Make prerequisite - dp->d_name->n_flag |= N_TARGET; estat |= make(dp->d_name, level + 1); // Make strings of out-of-date prerequisites (for $?), -- cgit v1.2.3-55-g6feb