aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndre Przywara <andre.przywara@arm.com>2019-02-01 12:37:14 +0000
committerWill Deacon <will.deacon@arm.com>2019-02-08 16:12:30 +0000
commit5eb1f27ac0f48ad012884b86d577ca27608bfdc5 (patch)
treeaf1c04416b55226d461bac73c4c4c6b4ed38202a
parent56e45ea44fbed5136a339f6da582c37bdb7fd607 (diff)
downloadkvmtool-5eb1f27ac0f48ad012884b86d577ca27608bfdc5.tar.gz
Makefile: support -s switch
"make -s" suppresses normal output, just shows warnings and errors. But since we explicitly override the make output with our fancy concise version, we miss out on this feature. Do as the kernel does and explicitly suppress every normal output when -s is given. This helps to spot warnings that scroll out of the terminal window too quickly. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index c4faff66..ec75cd99 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,11 @@
#
ifeq ($(strip $(V)),)
- E = @echo
+ ifeq ($(findstring s,$(filter-out --%,$(MAKEFLAGS))),)
+ E = @echo
+ else
+ E = @\#
+ endif
Q = @
else
E = @\#