From 46350883844352a1bcde8d13d680514aa3e54683 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sat, 28 Jul 2012 11:03:28 +0200 Subject: [PATCH] Makefile: Simplify option parsing for verbose build. There is no point in introducing the intermediate BUILD_VERBOSE variable. Just set $Q directly and make it a singly expanded variable. --- Makefile.in | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/Makefile.in b/Makefile.in index 18fee5bb..b865e4e8 100644 --- a/Makefile.in +++ b/Makefile.in @@ -89,18 +89,10 @@ tarball := @PACKAGE_TARNAME@-$(PACKAGE_VERSION).tar.bz2 # To put more focus on warnings, be less verbose as default # Use 'make V=1' to see the full commands -ifdef V - ifeq ("$(origin V)", "command line") - BUILD_VERBOSE = $(V) - endif -endif -ifndef BUILD_VERBOSE - BUILD_VERBOSE = 0 -endif -ifeq ($(BUILD_VERBOSE),0) - Q = @ +ifeq ("$(origin V)", "command line") + Q := else - Q = + Q := @ endif .PHONY: dep all clean distclean maintainer-clean install man tarball -- 2.39.5