зеркало из https://github.com/microsoft/git.git
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>
This commit is contained in:
Родитель
0c7642562e
Коммит
7cd3af5437
2
Makefile
2
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
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче