Files
nilmrun/Makefile
2020-08-03 16:51:01 -04:00

49 lines
804 B
Makefile

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