.PHONY: all build test lint format check dev up down clean help all: help help: @echo "Usage: make " @echo "" @echo "Targets:" @echo " build Build all Rust services (release)" @echo " build-dev Build all Rust services (debug)" @echo " test Run all cargo tests" @echo " test-pkg Run tests for a specific package: make test-pkg PKG=shared-lib" @echo " lint Run all linters (cargo fmt --check + npm run lint)" @echo " fmt Format all Rust code (cargo fmt)" @echo " check Run cargo check on all packages" @echo " dev Start full dev stack (docker compose up)" @echo " up Start production stack" @echo " down Stop all containers" @echo " clean Remove build artifacts" @echo " logs Tail logs from a service: make logs SVC=backend-api" @echo " db-migrate Run database migrations" @echo " npm-install Install npm dependencies for all frontends" @echo " ci Full CI pipeline (check + test + lint)" build: cargo build --release build-dev: cargo build test: cargo test test-pkg: cargo test -p $(PKG) lint: cargo fmt -- --check cd services/frontend-admin && npm run lint 2>/dev/null || true cd services/frontend-pwa && npm run lint 2>/dev/null || true fmt: cargo fmt check: cargo check --workspace dev: docker compose -f docker-compose.yml -f docker-compose.dev.yml up -d dev-build: docker compose -f docker-compose.yml -f docker-compose.dev.yml up -d --build up: docker compose up -d down: docker compose down clean: cargo clean rm -rf services/frontend-*/node_modules 2>/dev/null || true logs: docker compose logs -f $(SVC) db-migrate: cargo run -p backend-api --bin migrate npm-install: cd services/frontend-admin && npm install cd services/frontend-pwa && npm install cd services/frontend-console && npm install cd services/landing && npm install ci: check test lint