Ajoute le makefile
This commit is contained in:
25
Makefile
Normal file
25
Makefile
Normal 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
|
||||
Reference in New Issue
Block a user