diff options
author | Ron Yorston <rmy@pobox.com> | 2024-01-21 10:37:05 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2024-01-21 10:37:05 +0000 |
commit | e765357e5be4b3be9beef9a36a06774232adf139 (patch) | |
tree | 281cbbe264af49bde43eff7a9a217f8b9de0f7e4 /Makefile | |
parent | 43e58507040a580ac790c477e4cffb975db0aa66 (diff) | |
download | busybox-w32-e765357e5be4b3be9beef9a36a06774232adf139.tar.gz busybox-w32-e765357e5be4b3be9beef9a36a06774232adf139.tar.bz2 busybox-w32-e765357e5be4b3be9beef9a36a06774232adf139.zip |
build system: improved handling of silent mode
The top-level makefile attempted to detect if make was being run
in silent mode (-s option). It then turned off reporting of
commands as they were run. There were false positives where
unrelated 's' characters in the command line were detected as
silent mode.
Import the relevant section from the latest Linux build system to
improve matters.
Diffstat (limited to 'Makefile')
-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 | ||