all repos — cgit @ 35b3c67ac285f0c488b0d3042a1bbc44ef4f1f67

a hyperfast web frontend for git written in c

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>
John Keeping john@keeping.me.uk
Sat, 05 Sep 2015 14:32:50 +0100
commit

35b3c67ac285f0c488b0d3042a1bbc44ef4f1f67

parent

198a4404b937033cf2cf2b054242df4e81ef3075

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M MakefileMakefile

@@ -48,7 +48,7 @@ #

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 = :