diff options
-rw-r--r-- | Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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 | ||
290 | ifneq ($(findstring s,$(MAKEFLAGS)),) | 291 | ifeq ($(filter 3.%,$(MAKE_VERSION)),) |
292 | short-opts := $(firstword -$(MAKEFLAGS)) | ||
293 | else | ||
294 | short-opts := $(filter-out --%,$(MAKEFLAGS)) | ||
295 | endif | ||
296 | |||
297 | ifneq ($(findstring s,$(short-opts)),) | ||
291 | quiet=silent_ | 298 | quiet=silent_ |
292 | endif | 299 | endif |
293 | 300 | ||