BIN = ./.venv/bin/
|
|
PYTHON = ./.venv/bin/python
|
|
PIP = ./.venv/bin/pip
|
|
|
|
APP_NAME=shadowssh
|
|
|
|
all: install build
|
|
|
|
ensure_repo:
|
|
-@git init
|
|
|
|
ensure_env: ensure_repo
|
|
-@python3 -m venv .venv
|
|
|
|
install:
|
|
$(PIP) install -e .
|
|
|
|
format:
|
|
$(PIP) install shed
|
|
. $(BIN)/activate && shed
|
|
|
|
build: install format
|
|
$(PIP) install build
|
|
$(PYTHON) -m build
|
|
|
|
serve:
|
|
$(BIN)$(APP_NAME).serve --host=0.0.0.0 --port=443
|
|
|
|
run: serve
|
|
|
|
|