32 lines
421 B
Makefile
Raw Normal View History

2024-12-08 09:32:43 +00:00
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