Makefile: respect $(V) in %.cocci.patch target

When the %.cocci.patch target was defined in 63f0a758a0 (add coccicheck make target, 2016-09-15), it included a mechanism to suppress the noisy output, similar to the $(QUIET_<x>) family of variables. In the case where one wants to inspect the output hidden by $(QUIET_<x>), one could define $(V) for verbose output. In the %.cocci.patch target, this was not implemented. Move the output suppression into the $(QUIET_SPATCH) variable which is used like the other $(QUIET_<x>) variables. While we're at it, change the number of spaces printed from 5 to 4, like the other variables there. Signed-off-by: Denton Liu <liu.denton@gmail.com> Acked-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Denton Liu committed Oct 9, 2019 at 13:43 UTC 4f3c1dc5d6aa4330fd12dea95564631cfd7da377
1 file changed +2 -1
Makefile
+2 -1
@@ -1873,6 +1873,7 @@ ifndef V
1873 QUIET_SP = @echo ' ' SP $<;
1874 QUIET_HDR = @echo ' ' HDR $<;
1875 QUIET_RC = @echo ' ' RC $@;
1876 + QUIET_SPATCH = @echo ' ' SPATCH $<;
1877 QUIET_SUBDIR0 = +@subdir=
1878 QUIET_SUBDIR1 = ;$(NO_SUBDIR) echo ' ' SUBDIR $$subdir; \
1879 $(MAKE) $(PRINT_DIR) -C $$subdir
@@ -2799,7 +2800,7 @@ COCCI_SOURCES = $(filter-out sha1dc/%,$(C_SOURCES))
2800 endif
2801
2802 %.cocci.patch: %.cocci $(COCCI_SOURCES)
2802 - @echo ' ' SPATCH $<; \
2803 + $(QUIET_SPATCH) \
2804 if test $(SPATCH_BATCH_SIZE) = 0; then \
2805 limit=; \
2806 else \