SHELL := bash
.ONESHELL:
.PHONY: check test vet build smoke fmt

# Lint + unit tests. Mirrors the `test` CI job; runs green inside `nix develop`.
check: vet test
	shellcheck scripts/*.sh
	yamllint .gitea

vet:
	go vet ./...

test:
	go test ./...

# Build every cmd/* binary into ./bin (gitignored — binaries are CI artifacts).
build:
	scripts/build-binaries.sh

smoke: build
	scripts/crucible-smoke.sh

fmt:
	gofmt -l -w cmd internal
