coccinelle: use $(addsuffix) in 'coccicheck' make target
[gitweb.git] / Makefile
index 530be4eca67bbe6f6dfd1d3e649cccaf67a6744d..5c679882f2ce551eabd478907ced459b5d8d210c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2686,7 +2686,7 @@ C_SOURCES = $(patsubst %.o,%.c,$(C_OBJ))
        then \
                echo '    ' SPATCH result: $@; \
        fi
-coccicheck: $(patsubst %.cocci,%.cocci.patch,$(wildcard contrib/coccinelle/*.cocci))
+coccicheck: $(addsuffix .patch,$(wildcard contrib/coccinelle/*.cocci))
 
 .PHONY: coccicheck