# Tidewall build entry points. Everything runs headless with the repo-local engine.
GODOT := tools/godot.sh

.PHONY: check import parse binaries verify-engine

## Everything that must pass before a push.
check: verify-engine binaries parse

verify-engine:
	@$(GODOT) --verify

binaries:
	@tools/check_binaries.sh

## Refreshes Godot's global class cache, so class_name lookups resolve.
import:
	@$(GODOT) --import --quit >/dev/null 2>&1 || true

parse: import
	@$(GODOT) --script res://tools/parse_all.gd
