.PHONY: build test install vet helpers build: go build -o bin/tt ./cmd/ticktock test: go test ./... vet: go vet ./... # Native Swift helpers: winctx (AX window titles) and cal-events (EventKit). # Skips gracefully without swiftc — the daemon falls back to System Events # titles and the timeline simply shows no calendar lane. helpers: @if command -v swiftc >/dev/null 2>&1; then \ mkdir -p bin; \ swiftc -O native/winctx.swift -o bin/winctx && echo "built bin/winctx"; \ swiftc -O native/cal-events.swift -o bin/cal-events && echo "built bin/cal-events"; \ else \ echo "swiftc not found — skipping native helpers (titles fall back to System Events; no calendar lane)"; \ fi install: build helpers ln -sfn "$(PWD)/bin/tt" "$(HOME)/.local/bin/tt"