Skip to content

Commit 3f9a99c

Browse files
committed
ADD Makefile
1 parent 42b6621 commit 3f9a99c

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

Makefile

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# simple makefile to simplify repetitive build env management tasks under posix
2+
3+
PYTHON ?= python
4+
CYTHON ?= cython
5+
NOSETESTS ?= nosetests
6+
CTAGS ?= ctags
7+
8+
all: clean inplace test
9+
10+
clean:
11+
$(PYTHON) setup.py clean
12+
rm -rf dist
13+
14+
in: inplace # just a shortcut
15+
inplace:
16+
$(PYTHON) setup.py build_ext -i
17+
18+
doc:
19+
cd ./doc
20+
make
21+
cd ..
22+
23+
test-code: in
24+
$(NOSETESTS) -s -v tests
25+
test-doc:
26+
$(NOSETESTS) -s -v doc/*.rst
27+
28+
test-coverage:
29+
rm -rf coverage .coverage
30+
$(NOSETESTS) -s -v --with-coverage tests
31+
32+
test: test-code test-sphinxext test-doc

0 commit comments

Comments
 (0)