Makefile 679 B

123456789101112131415161718192021222324252627282930313233
  1. .PHONY: update
  2. update:
  3. git submodule update --remote lib/micropython && git add lib/micropython
  4. .PHONY: build-fap
  5. build-fap: update
  6. ufbt build
  7. .PHONY: launch
  8. launch: build-fap
  9. ufbt launch
  10. .PHONY: clean
  11. clean:
  12. ufbt -c
  13. .PHONY: build-pages
  14. build-pages:
  15. rm -rf ./dist/pages ./flipperzero/__init__.py
  16. cat ./flipperzero/_*.py > ./flipperzero/__init__.py
  17. source venv/bin/activate && sphinx-build docs/pages dist/pages
  18. .PHONY: publish-pages
  19. publish-pages: build-pages
  20. ./publish.sh pages
  21. .PHONY: build-python
  22. build-python:
  23. source venv/bin/activate && hatch build
  24. .PHONY: publish-python
  25. publish-python: build-python
  26. source venv/bin/activate && hatch publish dist/python/*