# HCIE-Rust v3 — Egui Build Commands
# ===================================
#
# Usage:
#   make dev              egui dev (native OpenGL window)
#   make build            egui release binary
#   make check            cargo check
#   make test             run tests
#   make lint             cargo clippy

.PHONY: dev build check test lint help

# ── Development ────────────────────────────────────────────────────────────

dev:
	@echo "▶ HCIE Egui — Dev Mode"
	../scripts/cargo-with-build-id.sh run -p hcie-gui-egui

# ── Production Builds ──────────────────────────────────────────────────────

build:
	@echo "▶ HCIE Egui — Release Build"
	../scripts/cargo-with-build-id.sh build --release -p hcie-gui-egui
	@echo "→ Binary: target/release/hcie-gui"

# ── Validation ─────────────────────────────────────────────────────────────

check:
	../scripts/cargo-with-build-id.sh check --workspace

test:
	../scripts/cargo-with-build-id.sh test --workspace

lint:
	../scripts/cargo-with-build-id.sh clippy --workspace -- --deny warnings

help:
	@echo "HCIE-Rust v3 — Egui Commands:"
	@echo "  make dev       — Egui dev (native OpenGL)"
	@echo "  make build     — Egui release binary"
	@echo "  make check     — cargo check"
	@echo "  make test      — run tests"
	@echo "  make lint      — cargo clippy"
