nilmdb/Makefile
Jim Paris d8df6f515f Update setup.py and build instructions
This is a pretty big simplification: the user should first use pip to
install everything in `requirements.txt`, and we no longer try to
cater to cases where Cython is missing, etc.
2019-08-29 14:52:55 -04:00

47 lines
836 B
Makefile

# By default, run the tests.
all: test
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::
find . -name '*.pyc' -o -name '__pycache__' -print0 | xargs -0 rm -rf
rm -f .coverage
rm -rf tests/*testdb*
rm -rf nilmdb.egg-info/ build/ nilmdb/server/*.so
make -C docs clean
gitclean::
git clean -dXf
.PHONY: all version build dist sdist install docs lint test clean gitclean