aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 51f460583..9dd359244 100644
--- a/Makefile
+++ b/Makefile
@@ -286,8 +286,15 @@ endif
286 286
287# If the user is running make -s (silent mode), suppress echoing of 287# If the user is running make -s (silent mode), suppress echoing of
288# commands 288# commands
289# make-4.0 (and later) keep single letter options in the 1st word of MAKEFLAGS.
289 290
290ifneq ($(findstring s,$(MAKEFLAGS)),) 291ifeq ($(filter 3.%,$(MAKE_VERSION)),)
292short-opts := $(firstword -$(MAKEFLAGS))
293else
294short-opts := $(filter-out --%,$(MAKEFLAGS))
295endif
296
297ifneq ($(findstring s,$(short-opts)),)
291 quiet=silent_ 298 quiet=silent_
292endif 299endif
293 300