Makefile 1019 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. .PHONY: clean install help test lint run dependencies docs
  2. help:
  3. @echo " clean remove unwanted stuff"
  4. @echo " install install dependencies and flaskbb"
  5. @echo " devconfig generates a development config"
  6. @echo " test run the testsuite"
  7. @echo " lint check the source for style errors"
  8. @echo " run run the development server with the development config"
  9. @echo " docs build the documentation"
  10. dependencies:requirements.txt
  11. pip install -r requirements.txt
  12. clean:
  13. find . -name '*.pyc' -exec rm -f {} +
  14. find . -name '*.pyo' -exec rm -f {} +
  15. find . -name '*~' -exec rm -f {} +
  16. find . -name '__pycache__' -exec rm -rf {} +
  17. test:
  18. py.test
  19. run:
  20. flaskbb --config ./flaskbb.cfg run --debugger --reload
  21. devconfig:
  22. flaskbb makeconfig -d
  23. install:dependencies
  24. clear
  25. flaskbb --config ./flaskbb.cfg install
  26. docs:
  27. $(MAKE) -C docs html
  28. lint:check
  29. flake8
  30. check:
  31. @type flake8 >/dev/null 2>&1 || echo "Flake8 is not installed. You can install it with 'pip install flake8'."