Makefile: Simplify option parsing for verbose build.
authorAndre Noll <maan@systemlinux.org>
Sat, 28 Jul 2012 09:03:28 +0000 (11:03 +0200)
committerAndre Noll <maan@systemlinux.org>
Mon, 27 Aug 2012 11:01:06 +0000 (13:01 +0200)
There is no point in introducing the intermediate BUILD_VERBOSE
variable. Just set $Q directly and make it a singly expanded variable.

Makefile.in

index 18fee5bb3a2431a152766579e1206e788d30d09c..b865e4e8741c935d8397472cd0dca38fafb77f72 100644 (file)
@@ -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
 
 # 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
 else
-       Q =
+       Q := @
 endif
 
 .PHONY: dep all clean distclean maintainer-clean install man tarball
 endif
 
 .PHONY: dep all clean distclean maintainer-clean install man tarball