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.
 
 
 
 

46 lines
810 B

  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. ctrl: flake
  15. flake:
  16. flake8 nilmtools
  17. lint:
  18. pylint3 --rcfile=setup.cfg nilmtools
  19. test:
  20. ifneq ($(INSIDE_EMACS),)
  21. # Use the slightly more flexible script
  22. python3 setup.py build_ext --inplace
  23. python3 tests/runtests.py
  24. else
  25. # Let setup.py check dependencies, build stuff, and run the test
  26. python3 setup.py nosetests
  27. endif
  28. clean::
  29. find . -name '*.pyc' -o -name '__pycache__' -print0 | xargs -0 rm -rf
  30. rm -f .coverage
  31. rm -rf nilmtools.egg-info/ build/ .eggs
  32. gitclean::
  33. git clean -dXf
  34. .PHONY: all version dist sdist install test
  35. .PHONY: ctrl lint flake clean gitclean