You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile 812 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # By default, run the tests.
  2. all: test
  3. version:
  4. python3 setup.py version
  5. build:
  6. python3 setup.py build_ext --inplace
  7. dist: sdist
  8. sdist:
  9. python3 setup.py sdist
  10. install:
  11. python3 setup.py install
  12. develop:
  13. python3 setup.py develop
  14. docs:
  15. make -C docs
  16. lint:
  17. pylint3 --rcfile=.pylintrc nilmdb
  18. test:
  19. ifneq ($(INSIDE_EMACS),)
  20. # Use the slightly more flexible script
  21. python3 setup.py build_ext --inplace
  22. python3 tests/runtests.py
  23. else
  24. # Let setup.py check dependencies, build stuff, and run the test
  25. python3 setup.py nosetests
  26. endif
  27. clean::
  28. find . -name '*pyc' | xargs rm -f
  29. rm -f .coverage
  30. rm -rf tests/*testdb*
  31. rm -rf nilmdb.egg-info/ build/ nilmdb/server/*.so MANIFEST.in
  32. make -C docs clean
  33. gitclean::
  34. git clean -dXf
  35. .PHONY: all version build dist sdist install docs lint test clean gitclean