]> git.ipfire.org Git - thirdparty/make.git/commit
[SV 54740] Ensure .SILENT settings do not leak into sub-makes
authorPaul Smith <psmith@gnu.org>
Sun, 12 May 2019 21:01:55 +0000 (17:01 -0400)
committerPaul Smith <psmith@gnu.org>
Sun, 19 May 2019 19:27:26 +0000 (15:27 -0400)
commitb5de783f77aa85ae8bd7a8e81d143e09a848fa29
tree4abd147dc5cda1423c7fc2270c7b9ce8453e7a0c
parent389dcb608fa1ee4d7d59b7c2df792e23dbe306c4
[SV 54740] Ensure .SILENT settings do not leak into sub-makes

Create a new variable run_silent to hold the current instance's global
silence setting, allowing silent_flag to represent only whether the -s
option was provided on the command line.

* src/makeint.h: Change silent_flag variable to run_silent.
* src/job.c: Ditto.
* src/remake.c: Ditto.
* src/file.c: Ditto.
* src/main.c: Add a new global variable run_silent.
(decode_switches): After switches are decoded, initialize run_silent.
* tests/scripts/targets/SILENT: Add a test for recursive behavior.
src/file.c
src/job.c
src/main.c
src/makeint.h
src/remake.c
tests/scripts/targets/SILENT