add coccicheck make target
commit63f0a758a06f9af81717683185016275cb201190
authorRené Scharfe <l.s.r@web.de>
Thu, 15 Sep 2016 18:30:56 +0000 (15 20:30 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 15 Sep 2016 19:23:37 +0000 (15 12:23 -0700)
tree257cbaed7974118ceea7b642a52aea79aa0704cc
parent76d156766fc9364ed2ce1b07f0867cbbdc5932f4
add coccicheck make target

Provide a simple way to run Coccinelle against all source files, in the
form of a Makefile target.  Running "make coccicheck" applies each
.cocci file in contrib/coccinelle/ on all source files.  It generates
a .patch file for each .cocci file, containing the actual changes for
effecting the transformations described by the semantic patches.

Non-empty .patch files are reported.  They can be applied to the work
tree using "patch -p0", but should be checked to e.g. make sure they
don't screw up formatting or create circular references.

Coccinelle's diagnostic output (stderr) is piped into .log files.

Linux has a much more elaborate make target of the same name; let's
start nice and easy.

Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile