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.

Makefile 844 B

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