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.
 
 
 

37 lines
546 B

  1. # By default, run the tests.
  2. all: test
  3. version:
  4. python setup.py version
  5. build:
  6. python setup.py build_ext --inplace
  7. dist: sdist
  8. sdist:
  9. python setup.py sdist
  10. install:
  11. python setup.py install
  12. docs:
  13. make -C docs
  14. lint:
  15. pylint --rcfile=.pylintrc nilmdb
  16. test:
  17. python tests/runtests.py
  18. clean::
  19. find . -name '*pyc' | xargs rm -f
  20. rm -f .coverage
  21. rm -rf tests/*testdb*
  22. rm -rf nilmdb.egg-info/ build/ nilmdb/server/*.so MANIFEST.in
  23. make -C docs clean
  24. gitclean::
  25. git clean -dXf
  26. .PHONY: all build dist sdist install docs lint test clean