forked from jelmer/dulwich
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (35 loc) · 947 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
PYTHON = python
SETUP = $(PYTHON) setup.py
PYDOCTOR ?= pydoctor
ifeq ($(shell $(PYTHON) -c "import sys; print sys.version_info >= (2, 7)"),True)
TESTRUNNER ?= unittest
else
TESTRUNNER ?= unittest2.__main__
endif
RUNTEST = PYTHONPATH=.:$(PYTHONPATH) $(PYTHON) -m $(TESTRUNNER)
DESTDIR=/
all: build
doc:: pydoctor
pydoctor::
$(PYDOCTOR) --make-html -c dulwich.cfg
build::
$(SETUP) build
$(SETUP) build_ext -i
install::
$(SETUP) install --root="$(DESTDIR)"
check:: build
$(RUNTEST) dulwich.tests.test_suite
check-tutorial:: build
$(RUNTEST) dulwich.tests.tutorial_test_suite
check-nocompat:: build
$(RUNTEST) dulwich.tests.nocompat_test_suite
check-compat:: build
$(RUNTEST) dulwich.tests.compat_test_suite
check-pypy:: clean
$(MAKE) check-noextensions PYTHON=pypy
check-noextensions:: clean
$(RUNTEST) dulwich.tests.test_suite
check-all: check check-pypy check-noextensions
clean::
$(SETUP) clean --all
rm -f dulwich/*.so