Prevent server stack trace when the client request is a no-op.
[jelmer/dulwich-libgit2.git] / Makefile
1 PYTHON = python
2 SETUP = $(PYTHON) setup.py
3 PYDOCTOR ?= pydoctor
4 TESTRUNNER = $(shell which nosetests)
5 TESTFLAGS =
6
7 all: build
8
9 doc:: pydoctor
10
11 pydoctor::
12         $(PYDOCTOR) --make-html -c dulwich.cfg
13
14 build::
15         $(SETUP) build
16         $(SETUP) build_ext -i
17
18 install::
19         $(SETUP) install
20
21 check:: build
22         PYTHONPATH=. $(PYTHON) $(TESTRUNNER) dulwich
23         which git > /dev/null && PYTHONPATH=. $(PYTHON) $(TESTRUNNER) $(TESTFLAGS) -i compat
24
25 check-noextensions:: clean
26         PYTHONPATH=. $(PYTHON) $(TESTRUNNER) $(TESTFLAGS) dulwich
27
28 check-compat:: build
29         PYTHONPATH=. $(PYTHON) $(TESTRUNNER) $(TESTFLAGS) -i compat
30
31 clean::
32         $(SETUP) clean --all
33         rm -f dulwich/*.so
34
35 coverage:: build
36         PYTHONPATH=. $(PYTHON) $(TESTRUNNER) --cover-package=dulwich --with-coverage --cover-erase --cover-inclusive dulwich
37
38 coverage-annotate: coverage
39         python-coverage -a -o /usr