Factor out $(findstring s,...).
Unified · Split
| @@ -100,12 +100,12 @@ endif · 99 unmodified lines | ||
| 100 | 100 | # make-4.0 (and later) keep single letter options in the 1st word of MAKEFLAGS. |
| 101 | 101 | |
| 102 | 102 | ifeq ($(filter 3.%,$(MAKE_VERSION)),) |
| 103 | −silence:=$(findstring s,$(firstword -$(MAKEFLAGS))) | |
| 103 | +short-opts := $(firstword -$(MAKEFLAGS)) | |
| 104 | 104 | else |
| 105 | −silence:=$(findstring s,$(filter-out --%,$(MAKEFLAGS))) | |
| 105 | +short-opts := $(filter-out --%,$(MAKEFLAGS)) | |
| 106 | 106 | endif |
| 107 | 107 | |
| 108 | −ifeq ($(silence),s) | |
| 108 | +ifneq ($(findstring s,$(short-opts)),) | |
| 109 | 109 | quiet=silent_ |
| 110 | 110 | KBUILD_VERBOSE = 0 |
| 111 | 111 | endif |