From 327cac09e682e85d924d29d2ab05a10d2902569a Mon Sep 17 00:00:00 2001 From: Murilo Opsfelder Araujo Date: Tue, 12 Apr 2016 16:22:42 -0300 Subject: [PATCH] Make 'make configure' quieter With this patch, 'make configure' is quieter: $ make configure GEN configure And if V=1 is specified, then the output is more verbose: $ make V=1 configure ./autogen.sh ./autogen.sh: running: aclocal -I tools ./autogen.sh: running: autoconf --include=tools ./autogen.sh: running: autoheader --include=tools --- Makefile | 2 +- autogen.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index d7469e85c..3f9eda6d2 100644 --- a/Makefile +++ b/Makefile @@ -213,7 +213,7 @@ $(TESTS): $(EXE) test/tools/test-graph # Other autoconf-related rules are hidden in config.make.in so that # they don't confuse Make when we aren't actually using ./configure configure: configure.ac acinclude.m4 tools/*.m4 - ./autogen.sh + $(QUIET_GEN)./autogen.sh .PHONY: all all-coverage all-debug clean clean-coverage clean-test doc \ doc-man doc-html dist distclean install install-doc \ diff --git a/autogen.sh b/autogen.sh index b84dfe361..aa154fe85 100755 --- a/autogen.sh +++ b/autogen.sh @@ -13,7 +13,7 @@ set -e # done. run () { - echo $0: running: "$@" + test ${V} = 1 && echo $0: running: "$@" "$@" }