Files
meteo/Makefile
2025-08-14 15:54:30 +02:00

26 lines
506 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
install:
ifeq ($(USER), root)
@cp ./dist/main /usr/local/bin/meteo
else
@cp ./dist/main ~/.local/bin/meteo
endif