aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2024-01-21 10:37:05 +0000
committerRon Yorston <rmy@pobox.com>2024-01-21 10:37:05 +0000
commite765357e5be4b3be9beef9a36a06774232adf139 (patch)
tree281cbbe264af49bde43eff7a9a217f8b9de0f7e4 /Makefile
parent43e58507040a580ac790c477e4cffb975db0aa66 (diff)
downloadbusybox-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--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