Makefile 688 B

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