Makefile 799 B

12345678910111213141516171819202122232425262728293031323334
  1. .PHONY: clean install help test 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 " run run the development server with the development config"
  8. @echo " docs build the documentation"
  9. dependencies:requirements.txt
  10. pip install -r requirements.txt
  11. clean:
  12. find . -name '*.pyc' -exec rm -f {} +
  13. find . -name '*.pyo' -exec rm -f {} +
  14. find . -name '*~' -exec rm -f {} +
  15. find . -name '__pycache__' -exec rm -rf {} +
  16. test:
  17. py.test
  18. run:
  19. flaskbb --config ./flaskbb.cfg run
  20. devconfig:
  21. flaskbb makeconfig -d
  22. install:dependencies
  23. clear
  24. flaskbb --config ./flaskbb.cfg install
  25. docs:
  26. $(MAKE) -C docs html