From fffb68a83fde238523d330fc8ada63580bbc46a8 Mon Sep 17 00:00:00 2001 From: Fabio Porcedda Date: Thu, 1 Jan 2015 21:03:50 +0100 Subject: [PATCH] Makefile: improve detection of make "-s" flag Because it's just checking the presence of the "s" character even a make --warn-undefined-variables is detected as a silent build. Fix that by filtering out long options. Signed-off-by: Fabio Porcedda Cc: Arnout Vandecappelle Acked-by: "Yann E. MORIN" Signed-off-by: Thomas Petazzoni --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5e0b4f254a..9995df74ac 100644 --- a/Makefile +++ b/Makefile @@ -304,7 +304,7 @@ GNU_HOST_NAME := $(shell support/gnuconfig/config.guess) TARGETS := # silent mode requested? -QUIET := $(if $(findstring s,$(MAKEFLAGS)),-q) +QUIET := $(if $(findstring s,$(filter-out --%,$(MAKEFLAGS))),-q) # Strip off the annoying quoting ARCH := $(call qstrip,$(BR2_ARCH)) -- 2.30.2