]> gitweb.ps.run Git - ps-cgit/blobdiff - Makefile
Makefile: fix MAKEFLAGS tests with multiple flags
[ps-cgit] / Makefile
index 138fe5b3e49e9f6b3c2bf170567f2dcdefbccec6..77b9f60d3275a63da579624fb9c79d6f9707cb3e 100644 (file)
--- a/Makefile
+++ b/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_SUBDIR1  =
 
-ifneq ($(findstring $(MAKEFLAGS),w),w)
+ifneq ($(findstring w,$(MAKEFLAGS)),w)
 PRINT_DIR = --no-print-directory
 else # "make -w"
 NO_SUBDIR = :