From 26242d9e53bcb0997000aa2a50c6c9a72f92541d Mon Sep 17 00:00:00 2001
From: Mike Frysinger <vapier@gentoo.org>
Date: Sun, 15 Jan 2012 13:31:31 -0500
Subject: buildsys: fix detection of silent make
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

The MAKEFLAGS variable contains all the flags without the leading dash.
From the GNU make manual:
	This variable is set up automatically by make to contain the flag
	letters that make received. Thus, if you do ‘make -ks’ then MAKEFLAGS
	gets the value ‘ks’.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 Makerules | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'Makerules')

diff --git a/Makerules b/Makerules
index 6954b94cf..7153836cf 100644
--- a/Makerules
+++ b/Makerules
@@ -58,7 +58,7 @@ SHELL_SET_X := set +x
 define rel_srcdir
 	$(shell $(CONFIG_SHELL) $(top_srcdir)/extra/scripts/relative_path.sh $(@D) .)
 endef
-ifneq ($(findstring -s,$(MAKEFLAGS)),)
+ifneq ($(findstring s,$(MAKEFLAGS)),)
 export MAKE_IS_SILENT := y
 SECHO := -@false
 DISP := sil
-- 
cgit v1.2.3