Skip to content

Commit

Permalink
ADD Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
mfeurer committed May 9, 2016
1 parent 42b6621 commit 3f9a99c
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# simple makefile to simplify repetitive build env management tasks under posix

PYTHON ?= python
CYTHON ?= cython
NOSETESTS ?= nosetests
CTAGS ?= ctags

all: clean inplace test

clean:
$(PYTHON) setup.py clean
rm -rf dist

in: inplace # just a shortcut
inplace:
$(PYTHON) setup.py build_ext -i

doc:
cd ./doc
make
cd ..

test-code: in
$(NOSETESTS) -s -v tests
test-doc:
$(NOSETESTS) -s -v doc/*.rst

test-coverage:
rm -rf coverage .coverage
$(NOSETESTS) -s -v --with-coverage tests

test: test-code test-sphinxext test-doc

0 comments on commit 3f9a99c

Please sign in to comment.