Skip to content

Commit 47c566a

Browse files
committed
Merge branch 'jk/make-findstring-makeflags-fix' into maint
Customization to change the behaviour with "make -w" and "make -s" in our Makefile was broken when they were used together. * jk/make-findstring-makeflags-fix: Makefile: fix MAKEFLAGS tests with multiple flags
2 parents 4d2a301 + ef49e05 commit 47c566a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1468,13 +1468,13 @@ endif
14681468
QUIET_SUBDIR0 = +$(MAKE) -C # space to separate -C and subdir
14691469
QUIET_SUBDIR1 =
14701470

1471-
ifneq ($(findstring $(MAKEFLAGS),w),w)
1471+
ifneq ($(findstring w,$(MAKEFLAGS)),w)
14721472
PRINT_DIR = --no-print-directory
14731473
else # "make -w"
14741474
NO_SUBDIR = :
14751475
endif
14761476

1477-
ifneq ($(findstring $(MAKEFLAGS),s),s)
1477+
ifneq ($(findstring s,$(MAKEFLAGS)),s)
14781478
ifndef V
14791479
QUIET_CC = @echo ' ' CC $@;
14801480
QUIET_AR = @echo ' ' AR $@;

0 commit comments

Comments
 (0)