BIN := ghosttyconf VERSION := $(shell cat version.txt) LDFLAGS := -X main.Version=$(VERSION) .PHONY: build install test schema screenshots dist clean build: go build -ldflags "$(LDFLAGS)" -o $(BIN) . install: go install -ldflags "$(LDFLAGS)" . 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 # Release binaries for all platforms into ./bin (see build.sh). dist: ./build.sh clean: rm -rf $(BIN) bin