-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
23 lines (18 loc) · 919 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
default: help
.PHONY: help
help: # Show help for each of the Makefile recipes. (This was yoinked from https://dwmkerr.com/makefile-help-command/)
@grep -E '^[a-zA-Z0-9 -]+:.*#' Makefile | while read -r l; do printf "\033[1;32m$$(echo $$l | cut -f 1 -d':')\033[00m:$$(echo $$l | cut -f 2- -d'#')\n"; done
.PHONY: setup
setup: # Sets up a .venv and installs all needed packages
python -m venv .venv
.venv\Scripts\activate
make install
.PHONY: install
install: # Runs pip install
.venv\Scripts\pip install -r requirements.txt
.PHONY: build
build: # Builds a ready to use .EXE
.venv\Scripts\pyinstaller main.py -F -n War\ Thunder\ translation\ editor --add-data .venv/Lib/site-packages/nicegui:nicegui --add-data .venv/Lib/site-packages/webview:webview --splash images/splash.png
.PHONY: dev
dev: # Starts the app in development mode (in browser with hot-reloading)
.venv\Scripts\python main.py --dev --verbose