added variables to Makefile for build time configuration

This commit is contained in:
martin
2015-09-04 10:43:55 +02:00
parent 865b8e4e20
commit 0f0fa824ad
+6 -4
View File
@@ -1,20 +1,22 @@
.PHONY: all clean test
PYTHON=python
NOSETESTS=nosetests
all:
python setup.py build_ext --inplace
$(PYTHON) setup.py build_ext --inplace
clean:
find . -name "*.so" -o -name "*.pyc" -o -name "*.pyx.md5" -o -name "*.pyd" | xargs rm -f
find . -name "*.pyx" -exec ./tools/rm_pyx_c_file.sh {} \;
test:
python -c "import skimage, sys, io; sys.exit(skimage.test_verbose())"
$(PYTHON) -c "import skimage, sys, io; sys.exit(skimage.test_verbose())"
doctest:
python -c "import skimage, sys, io; sys.exit(skimage.doctest_verbose())"
$(PYTHON) -c "import skimage, sys, io; sys.exit(skimage.doctest_verbose())"
coverage:
nosetests skimage --with-coverage --cover-package=skimage
$(NOSETESTS) skimage --with-coverage --cover-package=skimage
html:
pip install -q sphinx