From: David Ahern Date: Sat, 6 Jan 2018 03:42:05 +0000 (-0800) Subject: Restore --no-print-directory option for silent builds X-Git-Tag: v4.15.0~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac6561417a4d0d4167c1b54e7d163e2062d7f430;p=thirdparty%2Fiproute2.git 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 Signed-off-by: Stephen Hemminger --- diff --git a/Makefile b/Makefile index 6a51e0db9..32587db3b 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