coccinelle: use $(addsuffix) in 'coccicheck' make target
The dependencies of the 'coccicheck' make target are listed with the help of the $(patsubst) make function, which in this case doesn't do any pattern substitution, but only adds the '.patch' suffix. Use the shorter and more idiomatic $(addsuffix) make function instead. Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
SZEDER Gábor committed
Jul 23, 2018 at 15:50 UTC
7cd3af5437ce18e40f3d88d37323191b141a8091
1 file changed
+1
-1
Makefile
+1
-1
@@ -2686,7 +2686,7 @@ C_SOURCES = $(patsubst %.o,%.c,$(C_OBJ))
2686
then \
2687
echo ' ' SPATCH result: $@; \
2688
fi
2689
-coccicheck: $(patsubst %.cocci,%.cocci.patch,$(wildcard contrib/coccinelle/*.cocci))
2689
+coccicheck: $(addsuffix .patch,$(wildcard contrib/coccinelle/*.cocci))
2690
2691
.PHONY: coccicheck
2692