forked from xuru/pyvisdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (32 loc) · 1.09 KB
/
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
PYTHON?=python
SETUPFLAGS=
TESTRUNNER=$(shell which nosetests)
API_DOC_DIR=apidocs
all: inplace
# Build in-place
inplace:
PYTHONPATH=. $(PYTHON) setup.py $(SETUPFLAGS) build_ext --inplace
build:
PYTHONPATH=. $(PYTHON) setup.py $(SETUPFLAGS) build
debug:
PYTHONPATH=. $(PYTHON) setup.py $(SETUPFLAGS) build_ext --pyrex-gdb --inplace
test:
PYTHONPATH=. $(PYTHON) $(TESTRUNNER) test
install:
PYTHONPATH=. $(PYTHON) setup.py $(SETUPFLAGS) install
clean:
-find . \( -name '*.o' -o -name '*.so' -o -name '*.py[cod]' -o -name '*.dll' \) -exec rm -f {} \;
-rm -rf build dist
-rm -rf apidocs/
help:
@echo 'Commonly used make targets:'
@echo ' all - build program and documentation'
@echo ' test - run all tests in the automatic test suite'
@echo ' docs - generate all the documentation'
@echo ' clean - remove files created by other targets'
@echo ' (except installed files or dist source tarball)'
docs:
rm -rf $(API_DOC_DIR)
epydoc --html --config epydoc.conf
tar czf apidocs.tar.gz apidocs/
.PHONY: help all inplace build test clean docs