Files
ghosttyconf/Makefile
T
mikeandClaude Opus 5.5 e5750ef24b Version 1.0.0, release build script
- version.go/version.txt, --version flag, version in the help title
- build.sh builds static binaries for macOS and Linux into ./bin
- make build/install inject version.txt, make dist runs build.sh
- README: binary downloads; development docs: release process

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-22 13:29:39 +02:00

31 lines
642 B
Makefile

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