qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH for-5.2? 1/2] Makefile: Don't use $(quiet-@) within the body of a recipe
@ 2020-11-05 15:46 Greg Kurz
  2020-11-05 15:47 ` [PATCH for-5.2? 2/2] Makefile: No echoing for 'make help V=1' Greg Kurz
  0 siblings, 1 reply; 4+ messages in thread
From: Greg Kurz @ 2020-11-05 15:46 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-trivial, Paolo Bonzini, Philippe Mathieu-Daudé

A weird message is printed when doing 'make clean' or 'make distclean':

./configure && make clean
...
bash: @/usr/bin/ninja: No such file or directory

and ninja doesn't get called in this case.

It doesn't make sense to use $(quiet-@) within the body of a recipe.
Since both recipes are already prefixed by @ anyway, just drop the
$(quiet-@) invocations.

Fixes: 09e93326e448 ("build: replace ninjatool with ninja")
Cc: pbonzini@redhat.com
Signed-off-by: Greg Kurz <groug@kaod.org>
---
 Makefile |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 9465720696e6..df7a02a61a43 100644
--- a/Makefile
+++ b/Makefile
@@ -212,7 +212,7 @@ recurse-clean: $(addsuffix /clean, $(ROM_DIRS))
 ######################################################################
 
 clean: recurse-clean
-	-@test -f build.ninja && $(quiet-@)$(NINJA) $(NINJAFLAGS) -t clean || :
+	-@test -f build.ninja && $(NINJA) $(NINJAFLAGS) -t clean || :
 	-@test -f build.ninja && $(NINJA) $(NINJAFLAGS) clean-ctlist || :
 # avoid old build problems by removing potentially incorrect old files
 	rm -f config.mak op-i386.h opc-i386.h gen-op-i386.h op-arm.h opc-arm.h gen-op-arm.h
@@ -231,7 +231,7 @@ qemu-%.tar.bz2:
 	$(SRC_PATH)/scripts/make-release "$(SRC_PATH)" "$(patsubst qemu-%.tar.bz2,%,$@)"
 
 distclean: clean
-	-@test -f build.ninja && $(quiet-@)$(NINJA) $(NINJAFLAGS) -t clean -g || :
+	-@test -f build.ninja && $(NINJA) $(NINJAFLAGS) -t clean -g || :
 	rm -f config-host.mak config-host.h*
 	rm -f tests/tcg/config-*.mak
 	rm -f config-all-disas.mak config.status




^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH for-5.2? 2/2] Makefile: No echoing for 'make help V=1'
  2020-11-05 15:46 [PATCH for-5.2? 1/2] Makefile: Don't use $(quiet-@) within the body of a recipe Greg Kurz
@ 2020-11-05 15:47 ` Greg Kurz
  2020-11-05 16:30   ` Philippe Mathieu-Daudé
  2020-11-05 16:35   ` Paolo Bonzini
  0 siblings, 2 replies; 4+ messages in thread
From: Greg Kurz @ 2020-11-05 15:47 UTC (permalink / raw)
  To: qemu-devel; +Cc: qemu-trivial, Paolo Bonzini, Philippe Mathieu-Daudé

It doesn't bring much to have echoing with "make help". Suppress it
unconditionally.

Signed-off-by: Greg Kurz <groug@kaod.org>
---
 Makefile |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index df7a02a61a43..ba6b702107a5 100644
--- a/Makefile
+++ b/Makefile
@@ -270,7 +270,7 @@ include $(SRC_PATH)/tests/docker/Makefile.include
 include $(SRC_PATH)/tests/vm/Makefile.include
 
 print-help-run = printf "  %-30s - %s\\n" "$1" "$2"
-print-help = $(quiet-@)$(call print-help-run,$1,$2)
+print-help = @$(call print-help-run,$1,$2)
 
 .PHONY: help
 help:




^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH for-5.2? 2/2] Makefile: No echoing for 'make help V=1'
  2020-11-05 15:47 ` [PATCH for-5.2? 2/2] Makefile: No echoing for 'make help V=1' Greg Kurz
@ 2020-11-05 16:30   ` Philippe Mathieu-Daudé
  2020-11-05 16:35   ` Paolo Bonzini
  1 sibling, 0 replies; 4+ messages in thread
From: Philippe Mathieu-Daudé @ 2020-11-05 16:30 UTC (permalink / raw)
  To: Greg Kurz, qemu-devel; +Cc: qemu-trivial, Paolo Bonzini

On 11/5/20 4:47 PM, Greg Kurz wrote:
> It doesn't bring much to have echoing with "make help". Suppress it
> unconditionally.
> 
> Signed-off-by: Greg Kurz <groug@kaod.org>
> ---
>  Makefile |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

'make help' is not as helpful as it used to be. Still:
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH for-5.2? 2/2] Makefile: No echoing for 'make help V=1'
  2020-11-05 15:47 ` [PATCH for-5.2? 2/2] Makefile: No echoing for 'make help V=1' Greg Kurz
  2020-11-05 16:30   ` Philippe Mathieu-Daudé
@ 2020-11-05 16:35   ` Paolo Bonzini
  1 sibling, 0 replies; 4+ messages in thread
From: Paolo Bonzini @ 2020-11-05 16:35 UTC (permalink / raw)
  To: Greg Kurz, qemu-devel; +Cc: qemu-trivial, Philippe Mathieu-Daudé

On 05/11/20 16:47, Greg Kurz wrote:
> It doesn't bring much to have echoing with "make help". Suppress it
> unconditionally.
> 
> Signed-off-by: Greg Kurz <groug@kaod.org>
> ---
>   Makefile |    2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/Makefile b/Makefile
> index df7a02a61a43..ba6b702107a5 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -270,7 +270,7 @@ include $(SRC_PATH)/tests/docker/Makefile.include
>   include $(SRC_PATH)/tests/vm/Makefile.include
>   
>   print-help-run = printf "  %-30s - %s\\n" "$1" "$2"
> -print-help = $(quiet-@)$(call print-help-run,$1,$2)
> +print-help = @$(call print-help-run,$1,$2)
>   
>   .PHONY: help
>   help:
> 
> 

Queued, thanks (the first was already in my tree).

Paolo



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-11-05 16:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-05 15:46 [PATCH for-5.2? 1/2] Makefile: Don't use $(quiet-@) within the body of a recipe Greg Kurz
2020-11-05 15:47 ` [PATCH for-5.2? 2/2] Makefile: No echoing for 'make help V=1' Greg Kurz
2020-11-05 16:30   ` Philippe Mathieu-Daudé
2020-11-05 16:35   ` Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).