Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
525 lines (445 loc) · 21.2 KB
/
Copy pathMakefile
File metadata and controls
525 lines (445 loc) · 21.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
.DEFAULT_GOAL := configure
DOTFILES := $(CURDIR)
MAKE_SCRIPTS := $(dir $(abspath $(firstword $(MAKEFILE_LIST))))scripts/make
# Bootstrap installs its managed runtime here even before shell setup exists.
export PATH := $(HOME)/.local/bin:$(PATH)
GO ?= go
INSTRUCTION_SIZE_BASE ?= HEAD
UNAME_S := $(shell uname -s)
include $(MAKE_SCRIPTS)/../../config/targets.mk
# Share one validated TOML resolver with bootstrap. Resolve only when a target
# consumes settings, so basic linking remains usable before Python is installed.
ifneq ($(origin DOTFILES_CONFIG),undefined)
export DOTFILES_CONFIG
endif
ifneq ($(origin IS_EASYPOST),undefined)
$(error IS_EASYPOST is retired; select configuration sets in ~/.config/dotfiles/config.toml)
endif
shell-quote = '$(subst ','"'"',$(1))'
DOTFILES_CONFIG_ARG = $(if $(filter undefined,$(origin DOTFILES_CONFIG)),,--config $(call shell-quote,$(DOTFILES_CONFIG)))
# Make's shell expressions use the incoming PATH rather than the recipe export.
DOTFILES_PYTHON = $(or $(wildcard $(HOME)/.local/bin/python3),python3)
# Cache validated settings after the first consumer requests them.
define resolve-dotfiles-config
$(eval DOTFILES_RESOLVED := $(shell $(call shell-quote,$(DOTFILES_PYTHON)) "$(MAKE_SCRIPTS)/../dotfiles-config.py" $(DOTFILES_CONFIG_ARG) --platform "$(UNAME_S)" --format make))
$(if $(strip $(DOTFILES_RESOLVED)),,$(error Invalid dotfiles configuration; see diagnostic above))
$(foreach setting,$(DOTFILES_RESOLVED),$(eval override $(setting)))
$(eval resolve-dotfiles-config :=)
endef
config-value = $(strip $(resolve-dotfiles-config)$($(1)))
comma := ,
SETUP_TARGETS = $(subst $(comma), ,$(call config-value,DOTFILES_SETUP_TARGETS))
NATIVE_SET = $(or $(DOTFILES_NATIVE_SET_$(UNAME_S)),$(error Unsupported OS $(UNAME_S)))
BASE_TARGETS = $(DOTFILES_NATIVE_TARGETS_$(UNAME_S))
# The runner reports every step and returns failure only after trying them all.
all setup: configure
.PHONY: bootstrap install
bootstrap install:
@bash "$(DOTFILES)/bootstrap.sh" "$@"
.PHONY: config-init config plan test-dotfiles-config test-dotfiles-config-editor
config-init:
@bash "$(MAKE_SCRIPTS)/init-config.sh" "$(HOME)" "$(NATIVE_SET)"
config:
@python3 "$(MAKE_SCRIPTS)/../dotfiles-config.py" $(DOTFILES_CONFIG_ARG) --platform "$(UNAME_S)"
plan:
@python3 "$(MAKE_SCRIPTS)/../dotfiles-config.py" $(DOTFILES_CONFIG_ARG) --platform "$(UNAME_S)" --format plan
test-dotfiles-config:
@python3 "$(DOTFILES)/scripts/test-dotfiles-config.py"
.PHONY: test-repo-bootstrap
test-repo-bootstrap:
@python3 "$(DOTFILES)/scripts/test-repo-bootstrap.py"
.PHONY: test-go-quality
test-go-quality:
@python3 "$(DOTFILES)/scripts/test-go-quality.py"
test-dotfiles-config-editor:
$(call require-command,nvim)
$(call require-command,taplo)
@nvim --headless -u NONE -i NONE -n -l "$(DOTFILES)/nvim/tests/dotfiles-config-schema.lua"
base: config-init
base: SELECTED_TARGETS = $(BASE_TARGETS)
configure: SELECTED_TARGETS = $(SETUP_TARGETS)
base configure:
ifneq ($(findstring n,$(firstword $(filter-out --%,$(MAKEFLAGS)))),)
+@$(MAKE) -f "$(firstword $(MAKEFILE_LIST))" --no-print-directory --keep-going $(or $(SELECTED_TARGETS),setup-empty)
else
+@bash "$(DOTFILES)/scripts/setup-checklist.sh" $(MAKE) -f "$(firstword $(MAKEFILE_LIST))" --no-print-directory --keep-going -- $(SELECTED_TARGETS)
endif
setup-empty:
@echo "No configuration targets selected. See make config."
define require-command
@bash "$(MAKE_SCRIPTS)/require.sh" command "$(1)"
endef
define require-os
@bash "$(MAKE_SCRIPTS)/require.sh" os "$(1)" "$(UNAME_S)" "$@"
endef
instruction-size:
$(call require-command,git)
$(call require-command,jq)
@bash "$(DOTFILES)/claude/evals/skill-maintenance/check_size.sh" --base "$(INSTRUCTION_SIZE_BASE)" --installed-home "$(HOME)"
lint: shellcheck audit-skills instruction-size theme-check
.PHONY: theme-generate theme-check theme-cache test-theme test-theme-native test-theme-presentation
theme-generate:
@python3 "$(DOTFILES)/scripts/theme.py"
theme-check:
@python3 "$(DOTFILES)/scripts/theme.py" --check
theme-cache:
$(call require-command,bat)
@bat cache --build
test-theme:
@python3 "$(DOTFILES)/scripts/test-theme.py"
test-theme-presentation:
@"$(UV)" run --script "$(DOTFILES)/scripts/test-theme-presentation.py"
test-theme-native:
@"$(UV)" run --script "$(DOTFILES)/scripts/test-theme-native.py"
shellcheck:
$(call require-command,shellcheck)
@bash "$(MAKE_SCRIPTS)/shellcheck.sh" "$(DOTFILES)"
treehouse-config:
@bash "$(MAKE_SCRIPTS)/config.sh" "$@" "$(DOTFILES)" "$(HOME)" "$(UV)" "$(UNAME_S)"
.PHONY: pi-config
pi-config: pi-resources
@bash "$(MAKE_SCRIPTS)/config.sh" "$@" "$(DOTFILES)" "$(HOME)" "$(UV)" "$(UNAME_S)"
.PHONY: test-paseo-tasks test-paseo-task-import test-paseo-task-router test-paseo-tasks-ui paseo-tasks-config
test-paseo-tasks:
@npm --prefix "$(DOTFILES)/paseo-tasks" test
test-paseo-task-import:
@node "$(DOTFILES)/scripts/test-paseo-task-import.mjs"
test-paseo-task-router:
@node "$(DOTFILES)/scripts/test-paseo-task-router.mjs"
test-paseo-tasks-ui:
@node "$(DOTFILES)/scripts/test-paseo-tasks-ui.mjs"
paseo-tasks-config:
@node "$(DOTFILES)/scripts/paseo-tasks-config.mjs" "$(HOME)/.pi/agent/settings.json" "$(HOME)/.pi/agent/models.json"
banner:
@cat banner.txt
dev:
@bash "$(MAKE_SCRIPTS)/config.sh" "$@" "$(DOTFILES)" "$(HOME)" "$(UV)" "$(UNAME_S)"
shell:
@bash "$(MAKE_SCRIPTS)/config.sh" "$@" "$(DOTFILES)" "$(HOME)" "$(UV)" "$(UNAME_S)"
zsh: zsh-config zsh-plugins
.PHONY: zsh-completions test-zsh-completions
zsh-completions:
@bash "$(MAKE_SCRIPTS)/completions.sh" "$(HOME)"
test-zsh-completions:
@python3 "$(DOTFILES)/scripts/test-zsh-completions.py"
zsh-config: shell
@bash "$(MAKE_SCRIPTS)/config.sh" "$@" "$(DOTFILES)" "$(HOME)" "$(UV)" "$(UNAME_S)"
zsh-plugins: zsh-config
@bash "$(MAKE_SCRIPTS)/config.sh" "$@" "$(DOTFILES)" "$(HOME)" "$(UV)" "$(UNAME_S)"
tmux: tmux-config tmux-plugins
tmux-config:
@bash "$(MAKE_SCRIPTS)/config.sh" "$@" "$(DOTFILES)" "$(HOME)" "$(UV)" "$(UNAME_S)"
tmux-plugins: tmux-config
$(call require-command,tmux)
$(call require-command,git)
@bash "$(DOTFILES)/scripts/install-tmux-plugins.sh" "$(DOTFILES)"
tmux-status-legend:
@"$(DOTFILES)/bin/tmux-claude-state" legend
tmux-program-status:
@"$(if $(AGENT_STATUS_SOURCE),$(AGENT_STATUS_SOURCE),$(HOME)/src/agent-status-broker)/tmux/build" "$(HOME)/.local/bin/tmux-program-status"
zellij: zellij-config
.PHONY: zellij-runtime
zellij-runtime:
@bash "$(MAKE_SCRIPTS)/bootstrap-task.sh" "$@" "$(DOTFILES)"
.PHONY: zellij-command-prompt test-zellij-command-prompt test-zellij-session-keys
zellij-command-prompt:
@python3 "$(DOTFILES)/scripts/install-zellij-command-prompt.py"
test-zellij-command-prompt: zellij-helpers
@python3 "$(DOTFILES)/scripts/test-zellij-command-prompt.py"
test-zellij-session-keys: zellij-helpers
@python3 "$(DOTFILES)/scripts/test-zellij-command-prompt.py" --session-keys
.PHONY: zellij-status zellij-helpers test-zellij-helpers test-zellij-status
zellij-helpers:
@cargo build --locked --release --manifest-path "$(DOTFILES)/zellij/Cargo.toml" --target-dir "$(DOTFILES)/zellij/target" -p lane-zellij
test-zellij-helpers: zellij-helpers
@cargo fmt --all --manifest-path "$(DOTFILES)/zellij/Cargo.toml" --check
@cargo clippy --locked --all-targets --manifest-path "$(DOTFILES)/zellij/Cargo.toml" -- -D warnings
@cargo test --locked --manifest-path "$(DOTFILES)/zellij/Cargo.toml"
@python3 "$(DOTFILES)/scripts/test-zellij-status-config.py"
@python3 "$(DOTFILES)/scripts/test-zellij-helpers.py"
.PHONY: test-zellij-notifications test-zellij-notifications-ui
test-zellij-notifications: zellij-helpers
@python3 "$(DOTFILES)/scripts/test-zellij-notifications.py"
test-zellij-notifications-ui: zellij-helpers
@python3 "$(DOTFILES)/scripts/test-zellij-notifications-ui.py"
zellij-status: zellij-helpers
@bash "$(MAKE_SCRIPTS)/config.sh" "$@" "$(DOTFILES)" "$(HOME)" "$(UV)" "$(UNAME_S)" "$(ZELLIJ_STATUS_WASM)"
zellij-config:
@bash "$(MAKE_SCRIPTS)/config.sh" "$@" "$(DOTFILES)" "$(HOME)" "$(UV)" "$(UNAME_S)" "$(ZELLIJ_STATUS_WASM)"
sql-formatters:
@bash "$(MAKE_SCRIPTS)/config.sh" "$@" "$(DOTFILES)" "$(HOME)" "$(UV)" "$(UNAME_S)"
vim: vim-config sql-formatters
vim-config: nvim-gh-review
@bash "$(MAKE_SCRIPTS)/config.sh" "$@" "$(DOTFILES)" "$(HOME)" "$(UV)" "$(UNAME_S)"
.PHONY: nvim-gh-review
nvim-gh-review:
@bash "$(MAKE_SCRIPTS)/config.sh" "$@" "$(DOTFILES)" "$(HOME)" "$(UV)" "$(UNAME_S)"
X:
@bash "$(MAKE_SCRIPTS)/config.sh" "$@" "$(DOTFILES)" "$(HOME)" "$(UV)" "$(UNAME_S)"
ruby:
@bash "$(MAKE_SCRIPTS)/config.sh" "$@" "$(DOTFILES)" "$(HOME)" "$(UV)" "$(UNAME_S)"
git:
@bash "$(MAKE_SCRIPTS)/config.sh" "$@" "$(DOTFILES)" "$(HOME)" "$(UV)" "$(UNAME_S)"
gpg:
@bash "$(MAKE_SCRIPTS)/config.sh" "$@" "$(DOTFILES)" "$(HOME)" "$(UV)" "$(UNAME_S)"
yabai:
@bash "$(MAKE_SCRIPTS)/config.sh" "$@" "$(DOTFILES)" "$(HOME)" "$(UV)" "$(UNAME_S)"
polybar:
@bash "$(MAKE_SCRIPTS)/config.sh" "$@" "$(DOTFILES)" "$(HOME)" "$(UV)" "$(UNAME_S)"
bspwm:
@bash "$(MAKE_SCRIPTS)/config.sh" "$@" "$(DOTFILES)" "$(HOME)" "$(UV)" "$(UNAME_S)"
kitty: kitty-config kitty-terminfo
kitty-config:
@bash "$(MAKE_SCRIPTS)/config.sh" "$@" "$(DOTFILES)" "$(HOME)" "$(UV)" "$(UNAME_S)"
python:
@bash "$(MAKE_SCRIPTS)/config.sh" "$@" "$(DOTFILES)" "$(HOME)" "$(UV)" "$(UNAME_S)"
wezterm:
@bash "$(MAKE_SCRIPTS)/config.sh" "$@" "$(DOTFILES)" "$(HOME)" "$(UV)" "$(UNAME_S)"
# Opt-in restore: quit Amphetamine first; its preferences must not be symlinked.
AMPHETAMINE_PREFS ?= $(HOME)/Library/Containers/com.if.Amphetamine/Data/Library/Preferences/com.if.Amphetamine
amphetamine:
@bash "$(MAKE_SCRIPTS)/amphetamine.sh" "$(DOTFILES)" "$(AMPHETAMINE_PREFS)" "$(UNAME_S)"
undercurl:
@bash "$(MAKE_SCRIPTS)/config.sh" "$@" "$(DOTFILES)" "$(HOME)" "$(UV)" "$(UNAME_S)"
go:
@bash "$(MAKE_SCRIPTS)/config.sh" "$@" "$(DOTFILES)" "$(HOME)" "$(UV)" "$(UNAME_S)"
cargo:
@bash "$(MAKE_SCRIPTS)/config.sh" "$@" "$(DOTFILES)" "$(HOME)" "$(UV)" "$(UNAME_S)"
dev-cache-config:
@bash "$(MAKE_SCRIPTS)/config.sh" "$@" "$(DOTFILES)" "$(HOME)" "$(UV)" "$(UNAME_S)"
FORCE:
DEV_CACHE_NODE_PATH ?=
DEV_CACHE_PYTHON ?=
DEV_CACHE_GO_PATH ?=
DEV_CACHE_GOPATH ?=
dev-cache-schedule: dev-cache-config FORCE
@bash "$(MAKE_SCRIPTS)/schedule-maintenance.sh" dev-cache "$(DOTFILES)" "$(HOME)" "$(UNAME_S)" "$(DEV_CACHE_NODE_PATH)" "$(DEV_CACHE_GOPATH)" "$(DEV_CACHE_PYTHON)" "$(DEV_CACHE_GO_PATH)"
test-dev-cache-prune: FORCE
@python3 "$(DOTFILES)/scripts/test-dev-cache-prune.py"
test-tmp-cleanup: FORCE
@python3 "$(DOTFILES)/scripts/test-tmp-cleanup.py"
test-git-worktree-cleanup: FORCE
@python3 "$(DOTFILES)/scripts/test-git-worktree-cleanup.py"
@python3 "$(DOTFILES)/scripts/test-git-worktree-size-cache.py"
@python3 "$(DOTFILES)/scripts/test-git-worktree-wip-push.py"
.PHONY: test-git-worktree-policy test-treehouse-worktree-policy test-install-git-worktree-hooks
test-git-worktree-policy:
@"$(UV)" run --no-project "$(DOTFILES)/scripts/test-git-worktree-policy.py"
test-treehouse-worktree-policy:
@"$(UV)" run --no-project "$(DOTFILES)/scripts/test-treehouse-worktree-policy.py" --git "$(GIT_WORKTREE_HOOKS_GIT)"
test-install-git-worktree-hooks:
@"$(UV)" run --no-project "$(DOTFILES)/scripts/test-install-git-worktree-hooks.py" --archive "$(GIT_WORKTREE_HOOKS_ARCHIVE)"
claude-plugins:
$(call require-command,claude)
@"$(DOTFILES)/bin/claude-remove-blocked-plugins" --blocklist "$(DOTFILES)/claude/blocked-plugins.json"
software-standard:
@python3 "$(DOTFILES)/scripts/install-software-standard.py" --source "$(DOTFILES)/ai/skills/builder" --home "$(HOME)"
claude-shared: software-standard
@python3 "$(DOTFILES)/bin/sync-claude-shared" --source "$(DOTFILES)/ai" --home "$(HOME)"
claude: claude-config claude-plugins agent-status-broker claude-shared
claude-config: software-standard
@bash "$(MAKE_SCRIPTS)/config.sh" "$@" "$(DOTFILES)" "$(HOME)" "$(UV)" "$(UNAME_S)"
codex-skills: software-standard
@python3 "$(DOTFILES)/bin/sync-codex-skills" --source "$(DOTFILES)/ai/skills" --home "$(HOME)"
agent-status-broker:
@AGENT_STATUS_GO="$(GO)" "$(DOTFILES)/scripts/install-agent-status-broker" --no-start $(AGENT_STATUS_INSTALL_FLAGS)
@python3 "$(DOTFILES)/bin/sync-agent-status-hooks"
# The aggregate waits for hook migration before installing Codex hooks. The
# standalone config target remains usable without the broker.
codex-tmux: agent-status-broker
# Both installers edit config.toml; sequence them even under parallel make.
codex-tmux codex-tmux-config: codex-permissions
$(call require-command,$(UV))
@"$(UV)" run --no-project --python '>=3.11' python "$(DOTFILES)/bin/sync-codex-tmux-hooks"
# The codex aggregate runs this after its other hook installers finish.
codex codex-worktree-hook:
$(call require-command,$(UV))
@"$(UV)" run --script "$(DOTFILES)/bin/codex-worktree-config" --install
test-codex-worktree-hook: FORCE
$(call require-command,$(UV))
@"$(UV)" run --no-project --python '>=3.11' python "$(DOTFILES)/scripts/test-codex-worktree-hook.py"
codex-agents:
@python3 "$(DOTFILES)/bin/sync-codex-agents" --source "$(DOTFILES)/ai/agents" --home "$(HOME)"
codex-env:
@bash "$(MAKE_SCRIPTS)/config.sh" "$@" "$(DOTFILES)" "$(HOME)" "$(UV)" "$(UNAME_S)"
codex: claude codex-skills codex-agents codex-tmux codex-config
.PHONY: codex-permissions
codex-permissions:
$(call require-command,$(UV))
@"$(UV)" run --script "$(DOTFILES)/bin/sync-codex-permissions" --github-enabled "$(call config-value,DOTFILES_CODEX_GITHUB_ENABLED)" --easypost "$(call config-value,DOTFILES_CODEX_EASYPOST)"
.PHONY: codex-guidance
codex-config: codex-guidance codex-permissions
codex-guidance: codex-env codex-skills
@bash "$(MAKE_SCRIPTS)/config.sh" "$@" "$(DOTFILES)" "$(HOME)" "$(UV)" "$(UNAME_S)" "$(call config-value,DOTFILES_CODEX_EASYPOST)"
# Retain a clear failure for old callers instead of silently restoring servers.
codex-mcp:
@"$(DOTFILES)/bin/sync-codex-mcp-servers"
quarto:
@bash "$(MAKE_SCRIPTS)/config.sh" "$@" "$(DOTFILES)" "$(HOME)" "$(UV)" "$(UNAME_S)"
gpg-restore:
@bash "$(MAKE_SCRIPTS)/gpg-restore.sh"
presenterm:
@bash "$(MAKE_SCRIPTS)/config.sh" "$@" "$(DOTFILES)" "$(HOME)" "$(UV)" "$(UNAME_S)"
mail:
@bash "$(MAKE_SCRIPTS)/config.sh" "$@" "$(DOTFILES)" "$(HOME)" "$(UV)" "$(UNAME_S)"
test-pragmatic-hexagonal:
@python3 "$(DOTFILES)/ai/skills/builder/scripts/check_examples.py"
test:
@pytest bin/*_test.py
.PHONY: test-codex-cleanup
test-codex-cleanup:
@"$(UV)" run --no-project --python '>=3.11' --with pytest python -m pytest -q bin/codex-cleanup_test.py
codex: codex-worktree-exit-hook
codex-worktree-exit-hook: codex-tmux
@python3 "$(DOTFILES)/bin/codex-worktree-exit-hook" --install
.PHONY: test-codex-worktree-exit
test-codex-worktree-exit:
@"$(UV)" run --script "$(DOTFILES)/scripts/test-codex-worktree-exit.py"
.PHONY: test-agent-treehouse
test-agent-treehouse:
@"$(UV)" run --script "$(DOTFILES)/scripts/test-agent-treehouse.py"
audit-skills:
@"$(DOTFILES)/bin/claude-skill-audit"
ui-review:
@bash "$(MAKE_SCRIPTS)/config.sh" "$@" "$(DOTFILES)" "$(HOME)" "$(UV)" "$(UNAME_S)"
test-ui-review: test-ui-review-installer
@python3 "$(DOTFILES)/scripts/test-viewrule.py"
.PHONY: test-ui-review-installer
test-ui-review-installer:
@python3 "$(DOTFILES)/scripts/test-install-viewrule.py"
# Opt-in services stay out of SETUP_TARGETS.
# The helper remembers the selected server, falling back to dev on first setup.
ATUIN_SYNC_HOST ?=
UV ?= uv
atuin-sync:
@"$(UV)" run --no-project python "$(DOTFILES)/scripts/setup-atuin-sync.py" --host "$(ATUIN_SYNC_HOST)"
test-atuin-sync:
@"$(UV)" run --no-project python "$(DOTFILES)/scripts/test-atuin-sync.py"
.PHONY: test-install-entrypoint
test-install-entrypoint:
@python3 "$(DOTFILES)/scripts/test-install-entrypoint.py"
test-bootstrap:
@"$(UV)" run --no-project python "$(DOTFILES)/scripts/test-bootstrap.py"
BEDROCK_TOKEN_FILE ?=
export BEDROCK_TOKEN_FILE
bedrock-credentials:
@"$(UV)" run --no-project python "$(DOTFILES)/scripts/setup-bedrock-credentials.py"
test-bootstrap-nvim:
@"$(UV)" run --no-project python "$(DOTFILES)/scripts/test-bootstrap-nvim.py"
kitty-terminfo:
$(call require-command,tic)
$(call require-command,infocmp)
@bash "$(MAKE_SCRIPTS)/bootstrap-task.sh" "$@" "$(DOTFILES)"
test-kitty-ssh:
@"$(UV)" run --no-project python "$(DOTFILES)/scripts/test-kitty-ssh.py"
test-yabai-browser-focus:
@"$(UV)" run --no-project python "$(DOTFILES)/scripts/test-yabai-browser-focus.py"
test-kitty-last-url:
@kitty +runpy "import runpy; runpy.run_path('$(DOTFILES)/scripts/test-kitty-last-url.py', run_name='__main__')"
.PHONY: test-kitty-tab-titles
test-kitty-tab-titles: zellij-helpers
@kitty +runpy "import runpy; runpy.run_path('$(DOTFILES)/scripts/test-kitty-tab-titles.py', run_name='__main__')"
test-tmux-session-fallback:
@"$(UV)" run --no-project python "$(DOTFILES)/scripts/test-tmux-session-fallback.py"
atuin-server:
@bash "$(MAKE_SCRIPTS)/atuin-server.sh" "$(DOTFILES)" "$(HOME)" "$(UNAME_S)"
atuin-tunnel:
@"$(UV)" run --no-project python "$(DOTFILES)/scripts/setup-atuin-sync.py" --host "$(ATUIN_SYNC_HOST)" --tunnel-only
claude-json-prune-schedule:
@bash "$(MAKE_SCRIPTS)/schedule-maintenance.sh" claude-json "$(DOTFILES)" "$(HOME)" "$(UNAME_S)"
.PHONY: all base configure setup setup-empty lint shellcheck audit-skills instruction-size zsh tmux zellij vim kitty claude codex codex-tmux codex-env FORCE test test-ui-review test-setup test-zellij test-zellij-layout test-zellij-sessions test-zsh-startup benchmark-zsh-startup amphetamine
test-setup:
@python3 "$(DOTFILES)/scripts/test-setup.py"
.PHONY: test-zellij-attach
test-zellij-attach: zellij-helpers
@python3 "$(DOTFILES)/scripts/test-zellij-attach.py"
.PHONY: test-zellij-move
test-zellij-move: zellij-helpers
@python3 "$(DOTFILES)/scripts/test-zellij.py" --move-pane
.PHONY: test-zellij-swap
test-zellij-swap: zellij-helpers
@cargo test --locked --manifest-path "$(DOTFILES)/zellij/status/Cargo.toml" captured_nonleader_survives_election_but_rejects_stale_identity
@python3 "$(DOTFILES)/scripts/test-zellij.py" --swap-tab
test-zellij: zellij-helpers
@python3 "$(DOTFILES)/scripts/test-zellij.py"
.PHONY: test-zellij-codex-titles
test-zellij-codex-titles: zellij-helpers
@python3 "$(DOTFILES)/scripts/test-zellij-codex-titles.py"
.PHONY: test-zellij-claude-titles
test-zellij-claude-titles: zellij-helpers
@python3 "$(DOTFILES)/scripts/test-zellij-claude-titles.py"
.PHONY: test-zellij-shell-titles
test-zellij-shell-titles: zellij-helpers
@python3 "$(DOTFILES)/scripts/test-zellij-shell-titles.py"
.PHONY: test-zellij-navigation
test-zellij-navigation: zellij-helpers
@python3 "$(DOTFILES)/scripts/test-zellij-navigation.py"
test-zellij-layout: zellij-helpers
@python3 "$(DOTFILES)/scripts/test-zellij-layout.py"
.PHONY: test-zellij-clipboard
test-zellij-clipboard: zellij-helpers
@python3 "$(DOTFILES)/scripts/test-zellij-clipboard.py"
test-zellij-status: test-zellij-helpers
@cargo test --locked --manifest-path "$(DOTFILES)/zellij/status/Cargo.toml" attention_policy
@"$(UV)" run --script "$(DOTFILES)/scripts/test-zellij-status.py"
.PHONY: test-zellij-auto-title
test-zellij-auto-title: zellij-helpers
@python3 "$(DOTFILES)/scripts/test-zellij-auto-title.py"
.PHONY: test-zellij-tab-labels
test-zellij-tab-labels: zellij-helpers
@python3 "$(DOTFILES)/scripts/test-zellij-tab-labels.py"
test-zellij-sessions: zellij-helpers
@python3 "$(DOTFILES)/scripts/test-zellij-sessions.py"
test-zsh-startup:
@python3 "$(DOTFILES)/scripts/test-zsh-startup.py"
ZSH_BENCHMARK_ARGS ?=
benchmark-zsh-startup:
@python3 "$(DOTFILES)/scripts/benchmark-zsh-startup.py" $(ZSH_BENCHMARK_ARGS)
ac-awake-status:
@"$(DOTFILES)/bin/ac-awake-service" status
ac-awake-install:
@sudo "$(DOTFILES)/bin/ac-awake-service" install
ac-awake-stop:
@sudo "$(DOTFILES)/bin/ac-awake-service" stop
ac-awake-uninstall:
@sudo "$(DOTFILES)/bin/ac-awake-service" uninstall
.PHONY: ac-awake-status ac-awake-install ac-awake-stop ac-awake-uninstall
# Control the installed Paseo LaunchAgents; stopping persists across logins.
PASEO_LAUNCH_AGENTS := local.paseo.relay local.paseo.daemon local.paseo.lan-ingress
paseo-start:
$(call require-os,Darwin)
@bash "$(MAKE_SCRIPTS)/paseo-lifecycle.sh" start "$(HOME)" $(PASEO_LAUNCH_AGENTS)
# Start the existing host and print its live pairing offer for another device.
paseo-pair:
$(call require-os,Darwin)
$(call require-command,paseo)
$(call require-command,jq)
@$(MAKE) --no-print-directory paseo-start
@bash "$(MAKE_SCRIPTS)/paseo-lifecycle.sh" pair "$(HOME)"
paseo-stop:
$(call require-os,Darwin)
@bash "$(MAKE_SCRIPTS)/paseo-lifecycle.sh" stop "$(HOME)" $(PASEO_LAUNCH_AGENTS)
test-paseo-lifecycle:
@python3 "$(DOTFILES)/scripts/test-paseo-lifecycle.py"
.PHONY: paseo-start paseo-pair paseo-stop test-paseo-lifecycle
.PHONY: test-pragmatic-hexagonal
.PHONY: ep-direnv ep-direnv-uninstall
ep-direnv:
@sh "$(DOTFILES)/scripts/install-ep-direnv.sh" install "$(DOTFILES)" "$(HOME)"
ep-direnv-uninstall:
@sh "$(DOTFILES)/scripts/install-ep-direnv.sh" uninstall "$(DOTFILES)" "$(HOME)"
.PHONY: epenv
epenv: ep-direnv
@bash "$(MAKE_SCRIPTS)/config.sh" "$@" "$(DOTFILES)" "$(HOME)" "$(UV)" "$(UNAME_S)"
.PHONY: test-ssh-agent
test-ssh-agent: zellij-helpers
@python3 "$(DOTFILES)/scripts/test-ssh-agent.py"
# Pi shares the existing skill catalog without a second copy.
.PHONY: pi pi-resources test-pi-resources
pi: pi-resources
pi-resources: codex-skills
@python3 "$(DOTFILES)/bin/sync-pi-resources" --source "$(DOTFILES)/ai" --home "$(HOME)"
test-pi-resources:
@python3 "$(DOTFILES)/scripts/test-pi-resources.py"
firstmate-retire:
@bash "$(MAKE_SCRIPTS)/config.sh" "$@" "$(DOTFILES)" "$(HOME)" "$(UV)" "$(UNAME_S)"