mirror of
https://git.zx2c4.com/cgit
synced 2025-07-23 12:16:03 +02:00
Makefile: fix MAKEFLAGS tests with multiple flags
findstring is defined as $(findstring FIND,IN) so if multiple flags are set these tests do the wrong thing unless $(MAKEFLAGS) is the second argument. Signed-off-by: John Keeping <john@keeping.me.uk>
This commit is contained in:
parent
198a4404b9
commit
35b3c67ac2
1 changed files with 1 additions and 1 deletions
2
Makefile
2
Makefile
|
@ -48,7 +48,7 @@ export CGIT_VERSION CGIT_SCRIPT_NAME CGIT_SCRIPT_PATH CGIT_DATA_PATH CGIT_CONFIG
|
||||||
QUIET_SUBDIR0 = +$(MAKE) -C # space to separate -C and subdir
|
QUIET_SUBDIR0 = +$(MAKE) -C # space to separate -C and subdir
|
||||||
QUIET_SUBDIR1 =
|
QUIET_SUBDIR1 =
|
||||||
|
|
||||||
ifneq ($(findstring $(MAKEFLAGS),w),w)
|
ifneq ($(findstring w,$(MAKEFLAGS)),w)
|
||||||
PRINT_DIR = --no-print-directory
|
PRINT_DIR = --no-print-directory
|
||||||
else # "make -w"
|
else # "make -w"
|
||||||
NO_SUBDIR = :
|
NO_SUBDIR = :
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue