2013-02-04 18:14:44 -05:00
|
|
|
# By default, run the tests.
|
2012-04-03 18:21:42 -04:00
|
|
|
all: test
|
2012-04-03 14:01:56 -04:00
|
|
|
|
2013-02-05 18:49:07 -05:00
|
|
|
version:
|
|
|
|
python setup.py version
|
|
|
|
|
2013-02-04 18:14:44 -05:00
|
|
|
build:
|
|
|
|
python setup.py build_ext --inplace
|
|
|
|
|
|
|
|
dist: sdist
|
|
|
|
sdist:
|
|
|
|
python setup.py sdist
|
|
|
|
|
|
|
|
install:
|
|
|
|
python setup.py install
|
|
|
|
|
2013-03-05 20:24:47 -05:00
|
|
|
develop:
|
|
|
|
python setup.py develop
|
|
|
|
|
2013-02-04 18:14:44 -05:00
|
|
|
docs:
|
|
|
|
make -C docs
|
|
|
|
|
2012-03-23 11:50:33 -04:00
|
|
|
lint:
|
2013-02-01 15:29:24 -05:00
|
|
|
pylint --rcfile=.pylintrc nilmdb
|
2012-03-23 11:50:33 -04:00
|
|
|
|
|
|
|
test:
|
2013-02-26 21:55:46 -05:00
|
|
|
ifeq ($(INSIDE_EMACS), t)
|
|
|
|
# Use the slightly more flexible script
|
2013-03-03 13:27:47 -05:00
|
|
|
python setup.py build_ext --inplace
|
2013-02-01 15:46:27 -05:00
|
|
|
python tests/runtests.py
|
2013-02-26 21:55:46 -05:00
|
|
|
else
|
|
|
|
# Let setup.py check dependencies, build stuff, and run the test
|
|
|
|
python setup.py nosetests
|
|
|
|
endif
|
2012-01-22 19:40:48 -05:00
|
|
|
|
2012-02-20 01:13:54 -05:00
|
|
|
clean::
|
|
|
|
find . -name '*pyc' | xargs rm -f
|
|
|
|
rm -f .coverage
|
2012-03-20 10:22:02 -04:00
|
|
|
rm -rf tests/*testdb*
|
2013-02-04 22:12:50 -05:00
|
|
|
rm -rf nilmdb.egg-info/ build/ nilmdb/server/*.so MANIFEST.in
|
2013-02-04 18:14:44 -05:00
|
|
|
make -C docs clean
|
|
|
|
|
2013-02-04 22:15:12 -05:00
|
|
|
gitclean::
|
|
|
|
git clean -dXf
|
|
|
|
|
2013-03-11 17:42:02 -04:00
|
|
|
.PHONY: all version build dist sdist install docs lint test clean gitclean
|