975590c5401287beddc218f37f614dfec9084a3b
[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 check-compat:: build
27         PYTHONPATH=. $(PYTHON) $(TESTRUNNER) -i compat
28
29 clean::
30         $(SETUP) clean --all
31         rm -f dulwich/*.so
32
33 coverage:: build
34         PYTHONPATH=. $(PYTHON) $(TESTRUNNER) --cover-package=dulwich --with-coverage --cover-erase --cover-inclusive dulwich
35
36 coverage-annotate: coverage
37         python-coverage -a -o /usr