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
796 B

  1. # By default, run the tests.
  2. all: test
  3. test2:
  4. nilmrun/trainola.py data.js
  5. version:
  6. python setup.py version
  7. build:
  8. python setup.py build_ext --inplace
  9. dist: sdist
  10. sdist:
  11. python setup.py sdist
  12. install:
  13. python setup.py install
  14. develop:
  15. python setup.py develop
  16. docs:
  17. make -C docs
  18. lint:
  19. pylint --rcfile=.pylintrc nilmdb
  20. test:
  21. ifeq ($(INSIDE_EMACS), t)
  22. # Use the slightly more flexible script
  23. python setup.py build_ext --inplace
  24. python tests/runtests.py
  25. else
  26. # Let setup.py check dependencies, build stuff, and run the test
  27. python 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