Skip to content

Commit 7a9a10b

Browse files
avargitster
authored andcommitted
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. 8033944 (t/Makefile: add machinery to check correctness of chainlint.sed, 2018-07-11) Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent f7ff659 commit 7a9a10b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3161,9 +3161,11 @@ $(COCCI_TEST_RES_GEN): .build/contrib/coccinelle/tests/%.res : contrib/coccinell
31613161
.PHONY: coccicheck-test
31623162
coccicheck-test: $(COCCI_TEST_RES_GEN)
31633163

3164+
coccicheck: coccicheck-test
31643165
coccicheck: $(addsuffix .patch,$(filter-out %.pending.cocci,$(wildcard contrib/coccinelle/*.cocci)))
31653166

31663167
# See contrib/coccinelle/README
3168+
coccicheck-pending: coccicheck-test
31673169
coccicheck-pending: $(addsuffix .patch,$(wildcard contrib/coccinelle/*.pending.cocci))
31683170

31693171
.PHONY: coccicheck coccicheck-pending

0 commit comments

Comments
 (0)