2024-12-28 13:25:22 +00:00
|
|
|
BIN = ./.venv/bin/
|
|
|
|
PYTHON = ./.venv/bin/python
|
|
|
|
PIP = ./.venv/bin/pip
|
2024-12-29 15:51:03 +00:00
|
|
|
APP_NAME=rwebgui
|
2024-12-28 13:25:22 +00:00
|
|
|
|
|
|
|
all: install build
|
|
|
|
|
|
|
|
ensure_repo:
|
|
|
|
-@git init
|
|
|
|
|
|
|
|
ensure_env: ensure_repo
|
|
|
|
-@python3 -m venv .venv
|
|
|
|
|
|
|
|
install: ensure_env
|
|
|
|
$(PIP) install -e .
|
|
|
|
|
|
|
|
format:
|
|
|
|
$(PIP) install shed
|
|
|
|
. $(BIN)/activate && shed
|
|
|
|
|
|
|
|
build:
|
|
|
|
$(MAKE) format
|
|
|
|
$(PIP) install build
|
|
|
|
$(PYTHON) -m build
|
|
|
|
|
|
|
|
run:
|
2024-12-29 15:51:03 +00:00
|
|
|
$(BIN)$(APP_NAME).serve --port=3080
|
2024-12-28 13:25:22 +00:00
|
|
|
|