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