diff options
author | TheCharlatan <seb.kung@gmail.com> | 2023-02-03 21:42:57 +0100 |
---|---|---|
committer | TheCharlatan <seb.kung@gmail.com> | 2023-02-03 22:26:00 +0100 |
commit | 541012e621386cd824eed81295206a34ba3ba497 (patch) | |
tree | 78dea0ce3f0e17ce6e6f134f7498d45e7d8bcf22 /src/Makefile.test.include | |
parent | e2ae5c349cd9c0e1db090ca3df3160f26d5c105d (diff) |
Build: Use AM_V_GEN in Makefiles where appropriate
When generating new files as part of the Makefile the recipe is
sometimes suppressed with $(AM_V_GEN) and sometimes with `@`. We should
prefer $(AM_V_GEN), since this also prints the lines in silent mode.
This is arguably more in style with the current recipe echoing.
Before:
Generated test/data/script_tests.json.h
Now:
GEN test/data/script_tests.json.h
A side effect of this change is that the recipe for generating build.h
is now echoed on each make run. Arguably this makes its generation more
transparent.
Diffstat (limited to 'src/Makefile.test.include')
-rw-r--r-- | src/Makefile.test.include | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Makefile.test.include b/src/Makefile.test.include index 4d867fdc2f..1c03c6892b 100644 --- a/src/Makefile.test.include +++ b/src/Makefile.test.include @@ -414,10 +414,9 @@ endif %.json.h: %.json @$(MKDIR_P) $(@D) - @{ \ + $(AM_V_GEN) { \ echo "namespace json_tests{" && \ echo "static unsigned const char $(*F)[] = {" && \ $(HEXDUMP) -v -e '8/1 "0x%02x, "' -e '"\n"' $< | $(SED) -e 's/0x ,//g' && \ echo "};};"; \ } > "$@.new" && mv -f "$@.new" "$@" - @echo "Generated $@" |