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
100# make-4.0 (and later) keep single letter options in the 1st word of MAKEFLAGS.100# make-4.0 (and later) keep single letter options in the 1st word of MAKEFLAGS.
101 101
102ifeq ($(filter 3.%,$(MAKE_VERSION)),)102ifeq ($(filter 3.%,$(MAKE_VERSION)),)
103silence:=$(findstring s,$(firstword -$(MAKEFLAGS)))103short-opts := $(firstword -$(MAKEFLAGS))
104else104else
105silence:=$(findstring s,$(filter-out --%,$(MAKEFLAGS)))105short-opts := $(filter-out --%,$(MAKEFLAGS))
106endif106endif
107 107
108ifeq ($(silence),s)108ifneq ($(findstring s,$(short-opts)),)
109quiet=silent_109quiet=silent_
110KBUILD_VERBOSE = 0110KBUILD_VERBOSE = 0
111endif111endif

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