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.
 
 
 

49 lines
804 B

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