Add command for generating coverage-annotated files.
[jelmer/dulwich-libgit2.git] / Makefile
1 PYTHON = python
2 SETUP = $(PYTHON) setup.py
3 PYDOCTOR ?= pydoctor
4 TESTRUNNER = $(shell which nosetests)
5
6 all: build 
7
8 doc:: pydoctor
9
10 pydoctor::
11         $(PYDOCTOR) --make-html -c dulwich.cfg
12
13 build::
14         $(SETUP) build
15         $(SETUP) build_ext -i
16
17 install::
18         $(SETUP) install
19
20 check:: build
21         PYTHONPATH=. $(PYTHON) $(TESTRUNNER) dulwich
22
23 check-noextensions:: clean
24         PYTHONPATH=. $(PYTHON) $(TESTRUNNER) dulwich
25
26 clean::
27         $(SETUP) clean --all
28         rm -f dulwich/*.so
29
30 coverage:: build
31         PYTHONPATH=. $(PYTHON) $(TESTRUNNER) --cover-package=dulwich --with-coverage --cover-erase --cover-inclusive dulwich
32
33 coverage-annotate: coverage
34         python-coverage -a -o /usr