From patchwork Wed Oct 14 10:33:29 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Change make to be quite again when doing nothing Date: Wed, 14 Oct 2009 00:33:29 -0000 From: Juan Quintela X-Patchwork-Id: 35932 Message-Id: <1255516409-19166-1-git-send-email-quintela@redhat.com> To: qemu-devel@nongnu.org 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 --- Makefile | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) 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