[RFC PATCH v4 0/3] per-target .ONESHELL with shard recipe fix

2024-12-23 Thread Britton Leo Kerin
Another crack at per-target .ONESHELL. The major problem with v3 was that the shared struct commands for implicit rules, .DEFAULT rules suffix rules etc. caused use of .ONESHELL with any target covered by such a rules to "infect" other targets sharing the recipe (but not themselves named as .ONESH

[RFC PATCH v4 3/3] Tests for .ONESHELL with a prerequisite

2024-12-23 Thread Britton Leo Kerin
--- src/job.c | 22 - tests/scripts/targets/ONESHELL | 848 + 2 files changed, 848 insertions(+), 22 deletions(-) diff --git a/src/job.c b/src/job.c index f0a7f6cb..cd24d290 100644 --- a/src/job.c +++ b/src/job.c @@ -1135,28 +1135,6 @@ free_ch

[RFC PATCH v4 2/3] Support per-target .ONESHELL

2024-12-23 Thread Britton Leo Kerin
--- src/commands.c | 206 ++--- src/commands.h | 18 - src/default.c | 3 + src/file.c | 11 +++ src/filedef.h | 2 + src/job.c | 111 +- src/main.c | 9 ++- src/makeint.h | 2 +- src/read.c | 8

[RFC PATCH v4 1/3] Add my logging setup

2024-12-23 Thread Britton Leo Kerin
--- .gitignore | 2 ++ Makefile.am | 54 +--- cflow.rc | 16 +++ src/.cscope_rebuild_commands | 1 + src/main.c | 5 src/myMakeLog.c | 31 + src