nilmrun/Makefile

49 lines
796 B
Makefile
Raw Permalink Normal View History

# By default, run the tests.
all: test
2013-07-02 11:16:44 -04:00
test2:
nilmrun/trainola.py data.js
2013-07-02 11:16:44 -04:00
version:
python setup.py version
build:
python setup.py build_ext --inplace
2013-07-02 11:16:44 -04:00
dist: sdist
sdist:
python setup.py sdist
install:
python setup.py install
develop:
python setup.py develop
docs:
make -C docs
lint:
pylint --rcfile=.pylintrc nilmdb
test:
ifeq ($(INSIDE_EMACS), t)
# Use the slightly more flexible script
python setup.py build_ext --inplace
python tests/runtests.py
else
# Let setup.py check dependencies, build stuff, and run the test
python setup.py nosetests
endif
2013-07-02 11:16:44 -04:00
clean::
rm -f .coverage
2013-07-02 11:16:44 -04:00
find . -name '*pyc' | xargs rm -f
rm -rf nilmtools.egg-info/ build/ MANIFEST.in
make -C docs clean
2013-07-02 11:16:44 -04:00
gitclean::
git clean -dXf
.PHONY: all version dist sdist install docs lint test clean gitclean