Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
64 lines (42 loc) · 1.85 KB
/
Copy pathMakefile
File metadata and controls
64 lines (42 loc) · 1.85 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Makefile for gs (Godseat — Estate Control Surface)
# Host Throttling: Physical host ceres runs multiple active agent sessions.
# Shared workstations keep JOBS=2 to prevent CPU starvation and OOM.
SHELL := bash
.SHELLFLAGS := -euo pipefail -c
.DEFAULT_GOAL := help
JOBS ?= 2
export JOBS
.PHONY: help default xwork check hygiene graph-audit build fmt fmt-check clippy test doc-test deny smoke ci
##@ General
help: ## Show this help message
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n"} /^[a-zA-Z0-9_-]+:.*?##/ { printf " \033[36m%-18s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)
default: help
##@ Verification & CI Gates (cargo xtask)
xwork: ## Run full verification DAG via cargo xwork
cargo xwork
check: ## Run verification pipeline with break-check
cargo xtask check --break-check
ci: ## Run full CI verification suite
cargo xwork
hygiene: ## Verify estate configuration files and absence of Justfile
cargo xtask hygiene
graph-audit: ## Verify workspace DAG and Wave-0 gs-domain purity
cargo xtask graph-audit --break-check
##@ Build & Smoke
build: ## Compile all workspace crates (-j 2)
cargo build --workspace --locked -j $(JOBS)
smoke: ## Build and smoke-test the gs CLI (-j 2)
cargo xtask smoke
##@ Code Quality & Supply Chain
fmt: ## Format all workspace Rust code
cargo fmt --all
fmt-check: ## Check formatting without modifying files
cargo fmt --all -- --check
clippy: ## Lint workspace with clippy (-D warnings, -j 2)
cargo clippy --workspace --all-targets --locked -j $(JOBS) -- -D warnings
test: ## Run unit and integration test suite (-j 2)
cargo test --workspace --locked -j $(JOBS)
doc-test: ## Run documentation tests (-j 2)
cargo test --doc --workspace --locked -j $(JOBS)
deny: ## Audit licenses, bans, and advisories via cargo-deny
cargo deny check