Debian Codegraph @

Makefile

raw
1 # Copyright 2013 David Malcolm <[email protected]>
2 # Copyright 2013 Red Hat, Inc.
3 #
4 # This library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Lesser General Public
6 # License as published by the Free Software Foundation; either
7 # version 2.1 of the License, or (at your option) any later version.
8 #
9 # This library is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 # Lesser General Public License for more details.
13 #
14 # You should have received a copy of the GNU Lesser General Public
15 # License along with this library; if not, write to the Free Software
16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
17 # USA
18
19 all: validate dump unittests executables docs-html
20
21 validate:
22 xmllint --relaxng firehose.rng --noout examples/example-*.xml
23
24 dump:
25 python firehose/model.py
26
27 unittests:
28 python -m unittest discover -v
29
30 executables:
31 PYTHONPATH=. \
32 python firehose/parsers/cppcheck.py \
33 tests/parsers/example-output/cppcheck-xml-v2/example-001.xml
34 PYTHONPATH=. \
35 python firehose/parsers/clanganalyzer.py \
36 tests/parsers/example-output/clanganalyzer/report-001.plist
37
38 docs-html:
39 cd docs && make html