git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Makefile: respect $(V) in %.cocci.patch target

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Oct 10, 2019, 12:00 UTC
Message-ID
<nycvar.QRO.7.76.6.1910101359530.46@tvgsbejvaqbjf.bet>
In-Reply-To
<977b19bcf3ef34395288933eb0090b6d9c58864f.1570653788.git.liu.denton@gmail.com>
Hi Denton,
On Wed, 9 Oct 2019, Denton Liu wrote:
Show 15 quoted lines
> 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>
> ---
Looks obviously correct to me.

Thanks, Dscho

Show 28 quoted lines
>  Makefile | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/Makefile b/Makefile
> index c99361e719..ae45bfc429 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -1890,6 +1890,7 @@ ifndef V
>  	QUIET_SP       = @echo '   ' SP $<;
>  	QUIET_HDR      = @echo '   ' HDR $(<:hcc=h);
>  	QUIET_RC       = @echo '   ' RC $@;
> +	QUIET_SPATCH   = @echo '   ' SPATCH $<;
>  	QUIET_SUBDIR0  = +@subdir=
>  	QUIET_SUBDIR1  = ;$(NO_SUBDIR) echo '   ' SUBDIR $$subdir; \
>  			 $(MAKE) $(PRINT_DIR) -C $$subdir
> @@ -2818,7 +2819,7 @@ FOUND_C_SOURCES = $(filter %.c,$(shell $(FIND_SOURCE_FILES)))
>  COCCI_SOURCES = $(filter-out $(THIRD_PARTY_SOURCES),$(FOUND_C_SOURCES))
>
>  %.cocci.patch: %.cocci $(COCCI_SOURCES)
> -	@echo '    ' SPATCH $<; \
> +	$(QUIET_SPATCH) \
>  	if test $(SPATCH_BATCH_SIZE) = 0; then \
>  		limit=; \
>  	else \
> --
> 2.23.0.746.g72fc0fc0b9
>
>
Previous: Denton Liu
Message 2 of 2 in “Makefile: respect $(V) in %.cocci.patch target”
  1. Makefile: respect $(V) in %.cocci.patch targetDenton Liu, Oct 9, 2019
  2. Johannes SchindelinOct 10, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.