Files
blog-src/Makefile

29 lines
554 B
Makefile

default: build
.PHONY: build install-tools install-dep init clean
init: install-dep install-tools
build:
@uvx pyinstaller --hidden-import=yaml --hidden-import=yaml.loader --paths=.venv/lib/python3.13/site-packages/ --onefile ./main.py
install-tools:
@uv tool install flake8
@uv tool install black
@uv tool install pyinstaller
install-dep:
@uv sync
clean:
@rm -r ./dist ./build
publish:
@cd ./outbox && python3 -m http.server
install:
ifeq ($(USER), root)
@cp ./dist/main /usr/local/bin/blog
else
@cp ./dist/main ~/.local/bin/blog
endif