Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.PHONY: install dev build-deps test lint format format-check check build clean run run-devmode help venv lock

VENV_DIR ?= .venv
UV ?= uv
UV := $(HOME)/.local/bin/uv

help:
@echo "ShellGame - Makefile commands:"
Expand All @@ -18,7 +18,11 @@ help:
@echo " make run - Run ShellGame (normal mode; auto-launches wrapped subshell if needed)"
@echo " make run-devmode - Run ShellGame with --devmode (auto-launches wrapped subshell if needed)"

$(VENV_DIR):
$(UV):
@echo "Downloading uv"
@curl -LsSf https://astral.sh/uv/install.sh | sh

$(VENV_DIR): $(UV)
$(UV) venv $(VENV_DIR) --quiet

venv: | $(VENV_DIR)
Expand All @@ -32,7 +36,7 @@ dev: venv
build-deps: venv
$(UV) sync --extra build

lock:
lock: $(UV)
$(UV) lock

test: dev
Expand Down