# Makefile for GlowPath Backend .PHONY: clean build build-debug install-deps install-project-deps install-all-deps dist help # Default target all: build # Install project dependencies install-project-deps: @echo "Installing project dependencies..." @uv sync # Install build dependencies install-deps: @echo "Installing build dependencies..." @uv sync --group dev # Install all dependencies (project + build) install-all-deps: @echo "Installing all dependencies..." @uv sync --all-groups # Clean build artifacts clean: @echo "Cleaning build artifacts..." @rm -rf build dist __pycache__ *.pyc @find . -name "*.pyc" -delete @find . -name "__pycache__" -type d -exec rm -rf {} + 2>/dev/null || true # Build the application build: install-all-deps clean @echo "Building GlowPath backend..." @uv run python build.py # Build in debug mode build-debug: install-all-deps clean @echo "Building GlowPath backend in debug mode..." @uv run python build.py --debug # Quick build without cleaning quick-build: @echo "Quick building GlowPath backend..." @uv run python build.py --no-clean # Create distribution package dist: build @echo "Distribution package created in dist/ directory" # Show help help: @echo "Available targets:" @echo " build - Install all deps, clean and build the application" @echo " build-debug - Build in debug mode" @echo " quick-build - Build without cleaning" @echo " clean - Clean build artifacts" @echo " install-deps - Install build dependencies (PyInstaller)" @echo " install-project-deps - Install project dependencies" @echo " install-all-deps - Install all dependencies (project + build)" @echo " dist - Create distribution package" @echo " help - Show this help message"