Delay checking size until it's actually used.
[jelmer/dulwich-libgit2.git] / Makefile
index 05a63bf8bc52e8818eb2c8f6e81771a931aa9085..ec229b776eaf39517d47a8dabe2d64b7e8f49d53 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,15 @@
 PYTHON = python
 SETUP = $(PYTHON) setup.py
 PYTHON = python
 SETUP = $(PYTHON) setup.py
-TRIAL = $(shell which trial)
+PYDOCTOR ?= pydoctor
+TESTRUNNER = $(shell which nosetests)
 
 all: build 
 
 
 all: build 
 
+doc:: pydoctor
+
+pydoctor::
+       $(PYDOCTOR) --make-html -c dulwich.cfg
+
 build::
        $(SETUP) build
        $(SETUP) build_ext -i
 build::
        $(SETUP) build
        $(SETUP) build_ext -i
@@ -12,10 +18,17 @@ install::
        $(SETUP) install
 
 check:: build
        $(SETUP) install
 
 check:: build
-       PYTHONPATH=. $(PYTHON) $(TRIAL) dulwich
+       PYTHONPATH=. $(PYTHON) $(TESTRUNNER) dulwich
 
 check-noextensions:: clean
 
 check-noextensions:: clean
-       PYTHONPATH=. $(PYTHON) $(TRIAL) dulwich
+       PYTHONPATH=. $(PYTHON) $(TESTRUNNER) dulwich
 
 clean::
 
 clean::
-       $(SETUP) clean
+       $(SETUP) clean --all
+       rm -f dulwich/*.so
+
+coverage:: build
+       PYTHONPATH=. $(PYTHON) $(TESTRUNNER) --cover-package=dulwich --with-coverage --cover-erase --cover-inclusive dulwich
+
+coverage-annotate: coverage
+       python-coverage -a -o /usr