File size: 1,177 Bytes
7870cc2 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | .PHONY: help install run clean create-archives extract-data precompute-cache archive-info
help: ## Show this help message
@echo "Usage: make [target]"
@echo ""
@echo "Available targets:"
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-15s\033[0m %s\n", $$1, $$2}'
install: ## Install dependencies with uv
uv sync
run: ## Run the Gradio app locally
uv run python app.py
clean: ## Clean up temporary files and caches
rm -rf .venv uv.lock
find . -type d -name "__pycache__" -exec rm -rf {} + 2>/dev/null || true
find . -type f -name "*.pyc" -delete
find . -type f -name "*.pyo" -delete
create-archives: ## Create compressed archives from catalog and cache
uv run python scripts/create_archives.py
extract-data: ## Extract archives (done automatically on first run)
uv run python -c "from snowleopard_reid.data_setup import ensure_data_extracted; ensure_data_extracted()"
precompute-cache: ## Run pipeline on all examples to generate cache
uv run python scripts/precompute_cache.py
archive-info: ## Show info about archives and directories
uv run python scripts/create_archives.py --info
|