diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2022-07-05 15:46:58 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-07-06 12:24:43 -0700 |
commit | 7a9a10b10e2f14ffb7c17e59f147186f85a2a94e (patch) | |
tree | 8e09581318f5e8a1f40a5774f92cd13bd0016579 /Makefile | |
parent | f7ff6597a7534da51c2962691e177c624cb567c1 (diff) | |
download | git-7a9a10b10e2f14ffb7c17e59f147186f85a2a94e.tar.gz |
cocci: have "coccicheck{,-pending}" depend on "coccicheck-test"
Have the newly introduced "coccicheck-test" target run implicitly when
"coccicheck" itself is run. As with e.g. the "check-chainlint"
target (see [1]) it makes sense to run this unconditionally before we
run other "spatch" rules as a basic sanity check. See
1. 803394459d4 (t/Makefile: add machinery to check correctness of
chainlint.sed, 2018-07-11)
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -3161,9 +3161,11 @@ $(COCCI_TEST_RES_GEN): .build/contrib/coccinelle/tests/%.res : contrib/coccinell .PHONY: coccicheck-test coccicheck-test: $(COCCI_TEST_RES_GEN) +coccicheck: coccicheck-test coccicheck: $(addsuffix .patch,$(filter-out %.pending.cocci,$(wildcard contrib/coccinelle/*.cocci))) # See contrib/coccinelle/README +coccicheck-pending: coccicheck-test coccicheck-pending: $(addsuffix .patch,$(wildcard contrib/coccinelle/*.pending.cocci)) .PHONY: coccicheck coccicheck-pending |