forked from jelmer/subvertpy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (28 loc) · 750 Bytes
/
Makefile
File metadata and controls
37 lines (28 loc) · 750 Bytes
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
PYTHON = python
PYDOCTOR = pydoctor
SETUP = $(PYTHON) setup.py
ifeq ($(shell $(PYTHON) -c "import sys; print sys.version_info >= (2, 7)"),True)
TESTRUNNER = unittest
else
TESTRUNNER = unittest2.__main__
endif
DEBUGGER ?=
RUNTEST = PYTHONPATH=.:$(PYTHONPATH) $(DEBUGGER) $(PYTHON) -m $(TESTRUNNER)
all: build build-inplace
build::
$(SETUP) build
build-inplace::
$(SETUP) build_ext --inplace
install::
$(SETUP) install
check:: build-inplace
$(RUNTEST) $(TEST_OPTIONS) subvertpy.tests.test_suite
gdb-check::
$(MAKE) check DEBUGGER="gdb --args"
check-one::
$(MAKE) check TEST_OPTIONS=-f
clean::
$(SETUP) clean
rm -f subvertpy/*.so subvertpy/*.o subvertpy/*.pyc
pydoctor:
$(PYDOCTOR) --introspect-c-modules -c subvertpy.cfg --make-html