BIN := ghosttyconf

.PHONY: build install test schema screenshots clean

build:
	go build -o $(BIN) .

install:
	go install .

test:
	go test ./...

# Regenerate the embedded option schema for the installed Ghostty version.
# Downloads src/config/Config.zig of that version from GitHub.
schema:
	go run ./tools/genschema

# Regenerate docs/images. Needs tmux and Ghostty.
screenshots:
	./tools/screenshots.sh

clean:
	rm -f $(BIN)
