nilmrun/Makefile

50 lines
844 B
Makefile
Raw Permalink Normal View History

# By default, run the tests.
all: test
2013-07-02 11:16:44 -04:00
version:
2020-08-03 16:50:22 -04:00
python3 setup.py version
2013-07-02 11:16:44 -04:00
build:
2020-08-03 16:50:22 -04:00
python3 setup.py build_ext --inplace
2013-07-02 11:16:44 -04:00
dist: sdist
sdist:
2020-08-03 16:50:22 -04:00
python3 setup.py sdist
2013-07-02 11:16:44 -04:00
install:
2020-08-03 16:50:22 -04:00
python3 setup.py install
2013-07-02 11:16:44 -04:00
develop:
2020-08-03 16:50:22 -04:00
python3 setup.py develop
2013-07-02 11:16:44 -04:00
docs:
make -C docs
2020-08-03 23:46:34 -04:00
ctrl: flake
flake:
flake8 nilmrun
lint:
2020-08-03 23:46:34 -04:00
pylint3 --rcfile=setup.cfg nilmrun
test:
2020-08-03 16:50:22 -04:00
ifneq ($(INSIDE_EMACS),)
# Use the slightly more flexible script
2020-08-03 16:50:22 -04:00
python3 setup.py build_ext --inplace
python3 tests/runtests.py
else
# Let setup.py check dependencies, build stuff, and run the test
2020-08-03 16:50:22 -04:00
python3 setup.py nosetests
endif
2013-07-02 11:16:44 -04:00
clean::
2020-08-03 23:46:34 -04:00
find . -name '*.pyc' -o -name '__pycache__' -print0 | xargs -0 rm -rf
rm -f .coverage
2020-08-03 23:46:34 -04:00
rm -rf nilmrun.egg-info/ build/
make -C docs clean
2013-07-02 11:16:44 -04:00
gitclean::
git clean -dXf
2020-08-03 23:46:34 -04:00
.PHONY: all version dist sdist install docs test
.PHONY: ctrl lint flake clean gitclean