nilmdb/Makefile

51 lines
889 B
Makefile
Raw Permalink Normal View History

# By default, run the tests.
2013-08-05 12:16:47 -04:00
all: test
2013-02-05 18:49:07 -05:00
version:
2019-07-25 10:32:58 -04:00
python3 setup.py version
2013-02-05 18:49:07 -05:00
build:
2019-07-25 10:32:58 -04:00
python3 setup.py build_ext --inplace
dist: sdist
sdist:
2019-07-25 10:32:58 -04:00
python3 setup.py sdist
install:
2019-07-25 10:32:58 -04:00
python3 setup.py install
develop:
2019-07-25 10:32:58 -04:00
python3 setup.py develop
docs:
make -C docs
ctrl: flake
flake:
flake8 nilmdb
lint:
pylint3 --rcfile=setup.cfg nilmdb
test:
2019-07-25 10:32:58 -04:00
ifneq ($(INSIDE_EMACS),)
# Use the slightly more flexible script
2019-07-25 10:32:58 -04:00
python3 setup.py build_ext --inplace
python3 tests/runtests.py
else
# Let setup.py check dependencies, build stuff, and run the test
2019-07-25 10:32:58 -04:00
python3 setup.py nosetests
endif
clean::
2019-08-23 15:24:33 -04:00
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
2013-02-04 22:15:12 -05:00
gitclean::
git clean -dXf
.PHONY: all version build dist sdist install docs test
.PHONY: ctrl lint flake clean gitclean