public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Correctly deal with make that has an argument which contains an "s"
@ 2010-04-26 20:56 Jason Wessel
  2010-04-27  5:54 ` Américo Wang
  2010-04-27 11:47 ` Michal Marek
  0 siblings, 2 replies; 5+ messages in thread
From: Jason Wessel @ 2010-04-26 20:56 UTC (permalink / raw)
  To: Michal Marek
  Cc: linux-kernel, Jason Wessel, Michal Marek, Andrew Morton,
	linux-kbuild

When using remake, which is based on gnumake, if you invoke
an example build as shown below, the build will become silent
due to the top level make file incorrectly guessing that
the end user wants a silent build because an argument that
contained an "s" was used.

remake --no-extended-errors

Fix up the top level Makefile to use filter with a list of
options that mean silent with the various revisions of gnumake,
instead of findstring.

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
CC: Michal Marek <mmarek@suse.cz>
CC: Andrew Morton <akpm@linux-foundation.org>
CC: linux-kbuild@vger.kernel.org
---
 Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Makefile b/Makefile
index fa1db90..91ae299 100644
--- a/Makefile
+++ b/Makefile
@@ -294,7 +294,7 @@ endif
 # If the user is running make -s (silent mode), suppress echoing of
 # commands
 
-ifneq ($(findstring s,$(MAKEFLAGS)),)
+ifneq ($(filter s% -s% --silent --quiet,$(MAKEFLAGS)),)
   quiet=silent_
 endif
 
-- 
1.6.3.3


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-01-08 13:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-26 20:56 [PATCH] Correctly deal with make that has an argument which contains an "s" Jason Wessel
2010-04-27  5:54 ` Américo Wang
2010-04-27 11:47 ` Michal Marek
2012-01-05 22:46   ` Jason Wessel
2012-01-08 13:24     ` Michal Marek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox