Skip to content

Commit 4f3c1dc

Browse files
Denton-Lgitster
authored andcommitted
Makefile: respect $(V) in %.cocci.patch target
When the %.cocci.patch target was defined in 63f0a75 (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 <[email protected]> Acked-by: Johannes Schindelin <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 5fa0f52 commit 4f3c1dc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1873,6 +1873,7 @@ ifndef V
18731873
QUIET_SP = @echo ' ' SP $<;
18741874
QUIET_HDR = @echo ' ' HDR $<;
18751875
QUIET_RC = @echo ' ' RC $@;
1876+
QUIET_SPATCH = @echo ' ' SPATCH $<;
18761877
QUIET_SUBDIR0 = +@subdir=
18771878
QUIET_SUBDIR1 = ;$(NO_SUBDIR) echo ' ' SUBDIR $$subdir; \
18781879
$(MAKE) $(PRINT_DIR) -C $$subdir
@@ -2799,7 +2800,7 @@ COCCI_SOURCES = $(filter-out sha1dc/%,$(C_SOURCES))
27992800
endif
28002801

28012802
%.cocci.patch: %.cocci $(COCCI_SOURCES)
2802-
@echo ' ' SPATCH $<; \
2803+
$(QUIET_SPATCH) \
28032804
if test $(SPATCH_BATCH_SIZE) = 0; then \
28042805
limit=; \
28052806
else \

0 commit comments

Comments
 (0)