diff options
author | John Keeping <john@keeping.me.uk> | 2015-09-05 13:22:10 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-09-10 09:26:23 -0700 |
commit | ef49e05a6431727b54c399d1f3636c76ac682d61 (patch) | |
tree | e4cef956774b41792ff8135fa664f00bb1d02e34 /Makefile | |
parent | Allow "make -w" generate its usual output (diff) | |
download | tgif-ef49e05a6431727b54c399d1f3636c76ac682d61.tar.xz |
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>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -608,13 +608,13 @@ endif QUIET_SUBDIR0 = $(MAKE) -C # space to separate -C and subdir QUIET_SUBDIR1 = -ifneq ($(findstring $(MAKEFLAGS),w),w) +ifneq ($(findstring w,$(MAKEFLAGS)),w) PRINT_DIR = --no-print-directory else # "make -w" NO_SUBDIR = : endif -ifneq ($(findstring $(MAKEFLAGS),s),s) +ifneq ($(findstring s,$(MAKEFLAGS)),s) ifndef V QUIET_CC = @echo ' ' CC $@; QUIET_AR = @echo ' ' AR $@; |