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.

15 lines
531 B

  1. .PHONY: run debug clean
  2. bin/activate: requirements.txt
  3. test -f bin/activate || $(shell which python3) -m venv .
  4. bin/pip install -Ur requirements.txt
  5. touch bin/activate
  6. run: bin/activate
  7. . bin/activate; FLASK_SETTINGS_FILE=../config/prod.cfg FLASK_ENV=production FLASK_APP=start.py flask run --host=0.0.0.0
  8. debug: bin/activate
  9. . bin/activate; FLASK_SETTINGS_FILE=../config/dev.cfg FLASK_ENV=development FLASK_APP=start.py flask run --host=0.0.0.0
  10. clean:
  11. rm -rf bin/ include/ lib/ lib64/ __pycache__/ share/; rm pyvenv.cfg