From: Fabio Porcedda Date: Thu, 1 Jan 2015 20:03:50 +0000 (+0100) Subject: Makefile: improve detection of make "-s" flag X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fffb68a83fde238523d330fc8ada63580bbc46a8;p=buildroot.git 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 --- 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))