1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
.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"
|