summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorValery Ushakov <valery.ushakov@bell-sw.com>2024-05-22 16:07:38 +0200
committerMariusz Tkaczyk <mariusz.tkaczyk@linux.intel.com>2024-05-23 15:54:43 +0200
commit906922ee321d64e2ce8458147e67d4892696fb58 (patch)
tree041b475f426c74f0c9c0826b47f7169c2f51cf75
parentmdadm: deprecate bitmap custom file (diff)
downloadmdadm-906922ee321d64e2ce8458147e67d4892696fb58.tar.xz
mdadm-906922ee321d64e2ce8458147e67d4892696fb58.zip
Makefile: fix make -s detection
Only check the first word of MAKEFLAGS for 's', that's where all the single letter options are collected. MAKEFLAGS contains _all_ make flags, so if any command line argument contains a letter 's', the silent test will be false positive. Think e.g. make 'DESTDIR=.../aports/main/mdadm/pkg/mdadm' install
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index adac7905..446710bd 100644
--- a/Makefile
+++ b/Makefile
@@ -157,7 +157,7 @@ ifndef UDEVDIR
UDEVDIR = /lib/udev
endif
-ifeq (,$(findstring s,$(MAKEFLAGS)))
+ifeq (,$(findstring s,$(firstword -$(MAKEFLAGS))))
ECHO=echo
else
ECHO=: