]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
Restore --no-print-directory option for silent builds
authorDavid Ahern <dsahern@gmail.com>
Sat, 6 Jan 2018 03:42:05 +0000 (19:42 -0800)
committerStephen Hemminger <stephen@networkplumber.org>
Tue, 9 Jan 2018 15:58:00 +0000 (07:58 -0800)
Commit 69fed534a533 ("change how Config is used in Makefile's") removed
Config from Makefile. Config had the checks to set VERBOSE based on user
request and VERBOSE is used to add the --no-print-directory argument.
Since Config is gone, add the relevant setup for VERBOSE to Makefile
to restore quieter builds by default.

Fixes: 69fed534a533 ("change how Config is used in Makefile's")
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Makefile

index 6a51e0db910748bf1b59ae40ad5753e7dd50cb67..32587db3be70598aef5bcff1025fe9e0ff90153e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,13 @@
 # SPDX-License-Identifier: GPL-2.0
 # Top level Makefile for iproute2
 
+ifeq ("$(origin V)", "command line")
+VERBOSE = $(V)
+endif
+ifndef VERBOSE
+VERBOSE = 0
+endif
+
 ifeq ($(VERBOSE),0)
 MAKEFLAGS += --no-print-directory
 endif