Makefile: improve detection of make "-s" flag
authorFabio Porcedda <fabio.porcedda@gmail.com>
Thu, 1 Jan 2015 20:03:50 +0000 (21:03 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 2 Jan 2015 15:34:15 +0000 (16:34 +0100)
commitfffb68a83fde238523d330fc8ada63580bbc46a8
tree9591566505a92b3e2744c4e4e63e6d4ceac10a9a
parentaa441aa84c38ad5319c4ff7fb27c84530e19c204
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 <fabio.porcedda@gmail.com>
Cc: Arnout Vandecappelle <arnout@mind.be>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Makefile