From: Valery Ushakov Date: Wed, 22 May 2024 14:07:38 +0000 (+0300) Subject: Makefile: fix make -s detection X-Git-Tag: mdadm-4.4~172 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=906922ee321d64e2ce8458147e67d4892696fb58;p=thirdparty%2Fmdadm.git 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 --- 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=: