# Makefile for Windows (PowerShell or Git Bash) VENV_DIR = .venv PYTHON = python .PHONY: venv install run clean clean-all # Create virtual environment venv: $(PYTHON) -m venv $(VENV_DIR) # Install dependencies from pyproject.toml install: venv $(VENV_DIR)/Scripts/python -m pip install --upgrade pip setuptools wheel $(VENV_DIR)/Scripts/pip install -e . # Run the app run: $(VENV_DIR)/Scripts/python app.py # Remove virtual environment clean-all: if exist $(VENV_DIR) rmdir /s /q $(VENV_DIR) # Clean caches (__pycache__, .pytest_cache, *.pyc, *.pyo, build artifacts) - preserve .venv clean: - powershell -Command "Get-ChildItem -Recurse -Force -Include __pycache__,*.pyc,*.pyo,.pytest_cache,build,dist | Remove-Item -Recurse -Force"