History

kbuild: refactor silent mode detection

Factor out $(findstring s,...).

Masahiro Yamada committed 3 years ago

Commit fc5d57a1 parent 2241ab51 file · +3 −3Browse files

Unified · Split

Makefile+3−3
@@ -100,12 +100,12 @@ endif · 99 unmodified lines
100100 # make-4.0 (and later) keep single letter options in the 1st word of MAKEFLAGS.
101101
102102 ifeq ($(filter 3.%,$(MAKE_VERSION)),)
103−silence:=$(findstring s,$(firstword -$(MAKEFLAGS)))
103+short-opts := $(firstword -$(MAKEFLAGS))
104104 else
105−silence:=$(findstring s,$(filter-out --%,$(MAKEFLAGS)))
105+short-opts := $(filter-out --%,$(MAKEFLAGS))
106106 endif
107107
108−ifeq ($(silence),s)
108+ifneq ($(findstring s,$(short-opts)),)
109109 quiet=silent_
110110 KBUILD_VERBOSE = 0
111111 endif

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t