summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDavid Ahern <dsahern@gmail.com>2018-01-05 19:42:05 -0800
committerStephen Hemminger <stephen@networkplumber.org>2018-01-09 07:58:00 -0800
commitac6561417a4d0d4167c1b54e7d163e2062d7f430 (patch)
tree6af5e243a973eea68335827b770911d7d0f3c6d8 /Makefile
parent9deb75428362de5d7cf5e971be37c6a205015e8d (diff)
downloadiproute2-ac6561417a4d0d4167c1b54e7d163e2062d7f430.tar.gz
Restore --no-print-directory option for silent builds
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>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 6a51e0db..32587db3 100644
--- 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