From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LOsbP-0000pF-MU for qemu-devel@nongnu.org; Mon, 19 Jan 2009 06:47:35 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LOsbM-0000iS-DJ for qemu-devel@nongnu.org; Mon, 19 Jan 2009 06:47:33 -0500 Received: from [199.232.76.173] (port=47874 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LOsbL-0000hZ-Lv for qemu-devel@nongnu.org; Mon, 19 Jan 2009 06:47:31 -0500 Received: from mx2.redhat.com ([66.187.237.31]:37781) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LOsbL-0007cj-2Z for qemu-devel@nongnu.org; Mon, 19 Jan 2009 06:47:31 -0500 From: Avi Kivity Date: Mon, 19 Jan 2009 13:47:23 +0200 Message-Id: <1232365643-6417-6-git-send-email-avi@redhat.com> In-Reply-To: <1232365643-6417-1-git-send-email-avi@redhat.com> References: <1232365643-6417-1-git-send-email-avi@redhat.com> Subject: [Qemu-devel] [PATCH 5/5] Make make output quieter Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori , qemu-devel@nongnu.org Spew out less noise when compiling. This helps review make output for information such as compilation warnings, rather than extra long compiler invocations. The full output can be generated by supplying a 'V=1' parameter to make. Signed-off-by: Avi Kivity --- Makefile | 2 +- rules.mak | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 428cff1..824f832 100644 --- a/Makefile +++ b/Makefile @@ -39,7 +39,7 @@ all: $(TOOLS) $(DOCS) recurse-all SUBDIR_RULES=$(patsubst %,subdir-%, $(TARGET_DIRS)) subdir-%: - $(MAKE) -C $(subst subdir-,,$@) all + $(MAKE) -C $(subst subdir-,,$@) V="$(V)" all $(filter %-softmmu,$(SUBDIR_RULES)): libqemu_common.a $(filter %-user,$(SUBDIR_RULES)): libqemu_user.a diff --git a/rules.mak b/rules.mak index dd56780..818c5ef 100644 --- a/rules.mak +++ b/rules.mak @@ -1,14 +1,16 @@ %.o: %.c - $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $< + $(call quiet-command,$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $<,CC $@) %.o: %.S - $(CC) $(CPPFLAGS) -c -o $@ $< + $(call quiet-command,$(CC) $(CPPFLAGS) -c -o $@ $<,AS $@) %.o: %.m - $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $< + $(call quiet-command,$(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<,OBJC $@) -LINK = $(CC) $(LDFLAGS) -o $@ $^ $(LIBS) +LINK = $(call quiet-command,$(CC) $(LDFLAGS) -o $@ $^ $(LIBS),LINK $@) %$(EXESUF): %.o $(LINK) + +quiet-command = $(if $(V),$1,@echo $2 && $1) -- 1.6.0.6