Ajoute le makefile

This commit is contained in:
2025-08-14 15:54:30 +02:00
parent 4093a744ff
commit eb59499fa8
4 changed files with 65 additions and 132 deletions

25
Makefile Normal file
View File

@@ -0,0 +1,25 @@
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