Patchwork Change make to be quite again when doing nothing

login
register
mail settings
Submitter Juan Quintela
Date Oct. 14, 2009, 10:33 a.m.
Message ID <1255516409-19166-1-git-send-email-quintela@redhat.com>
Download mbox | patch
Permalink /patch/35932/
State New
Headers show

Comments

Juan Quintela - Oct. 14, 2009, 10:33 a.m.
Make don't print messages for sub-makes rules, but do it when targets are
files.

If you run make twice in a row, you get this:

$ make -j3
make[1]: `qemu-doc.html' is up to date.
make[1]: `qemu-tech.html' is up to date.
make[1]: `qemu.1' is up to date.
make[1]: `qemu-img.1' is up to date.
make[1]: `qemu-nbd.8' is up to date.
make[1]: `qemu-io' is up to date.
make[1]: `qemu-img' is up to date.
$

This patch removes this messages, and make is quiet again.

Idea for this patch cames for Paulo Bonzini.

Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 Makefile |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

Patch

diff --git a/Makefile b/Makefile
index 04e21bb..238bd84 100644
--- a/Makefile
+++ b/Makefile
@@ -20,7 +20,7 @@  Makefile: ;
 configure: ;

 .PHONY: all clean cscope distclean dvi html info install install-doc \
-	recurse-all speed tar tarbin test build-all
+	recurse-all speed tar tarbin test build-all build-top-level

 VPATH=$(SRC_PATH):$(SRC_PATH)/hw

@@ -41,7 +41,9 @@  config-all-devices.mak: $(SUBDIR_DEVICES_MAK)
 -include config-all-devices.mak

 build-all: config-host.h config-all-devices.h
-	$(call quiet-command, $(MAKE) $(SUBDIR_MAKEFLAGS) $(TOOLS) $(DOCS) recurse-all,)
+	$(call quiet-command,$(MAKE) $(SUBDIR_MAKEFLAGS) V="$(V)" build-top-level recurse-all,)
+
+build-top-level: $(TOOLS) $(DOCS)

 config-host.h: config-host.h-timestamp
 config-host.h-timestamp: config-host.mak