tmux-amq/Makefile
tegwick 72f22a13f7
Some checks failed
tamq-ci / test (push) Failing after 6s
feat: add make cleanup target
Assistant: codex
Assistant-Model: gpt-5.6-sol
Assistant-Session: 01a03397-4d51-7fd1-8ff2-946eb22ea2bc
2026-08-25 22:25:54 +02:00

25 lines
947 B
Makefile

.DEFAULT_GOAL := help
.PHONY: help install uninstall cleanup test check
help: ## List available targets
@awk 'BEGIN {FS = ":.*## "} /^[a-zA-Z0-9_-]+:.*## / {printf " %-12s %s\n", $$1, $$2}' $(MAKEFILE_LIST)
install: ## Install or refresh tamq as a user-level uv tool
@command -v uv >/dev/null || { echo "tamq: uv is required; install it from https://docs.astral.sh/uv/" >&2; exit 1; }
uv tool install --force --reinstall --refresh .
@command -v tamq >/dev/null || { echo "tamq: installed, but the uv tool bin directory is not on PATH; run 'uv tool update-shell'" >&2; exit 1; }
tamq --version
uninstall: ## Uninstall the user-level tamq tool
uv tool uninstall tmux-amq
cleanup: ## Stop tamq and remove tamq-owned runtime files (preserves history)
uv run tamq cleanup --yes
test: ## Run the test suite
uv run pytest
check: ## Run tests and repository consistency checks
uv run pytest
git diff --check
python3 -m compileall -q src