summaryrefslogtreecommitdiffstats
path: root/qa/coccinelle/Makefile.am
blob: 1f78a74b72679f550e1d4b10228f7c9fb8aad988 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
EXTRA_DIST= access-pkt-packet.cocci \
    banned-functions.cocci \
    direct-packet.cocci \
    malloc-error-check.cocci \
    pktnotset-packet.cocci \
    realloc.cocci \
    siginit.cocci \
    size_t.cocci \
    sz3.cocci \
    uint.cocci \
    run_check.sh struct-flags.py

if HAVE_COCCINELLE
struct-flags.cocci:
	$(srcdir)/struct-flags.py  $(top_srcdir)/src > $(top_builddir)/qa/coccinelle/struct-flags.cocci

check: struct-flags.cocci
	TOP_BUILDDIR=${abs_top_builddir} TOP_SRCDIR=$(abs_top_srcdir) $(top_srcdir)/qa/coccinelle/run_check.sh

distclean-local:
	-rm $(top_builddir)/qa/coccinelle/struct-flags.cocci
endif