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.
 
 
 

47 lines
804 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. develop:
  13. python setup.py develop
  14. docs:
  15. make -C docs
  16. lint:
  17. pylint --rcfile=.pylintrc nilmdb
  18. test:
  19. ifeq ($(INSIDE_EMACS), t)
  20. # Use the slightly more flexible script
  21. python setup.py build_ext --inplace
  22. python tests/runtests.py
  23. else
  24. # Let setup.py check dependencies, build stuff, and run the test
  25. python 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