-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
67 lines (50 loc) · 2.13 KB
/
Makefile
File metadata and controls
67 lines (50 loc) · 2.13 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
.PHONY: help install uninstall brew test test-ci test-keybindings check-tool check-deps update-aliases measure-startup
DOTFILES_ROOT := $(shell pwd)
SCRIPTS_DIR := .agents/skills/dotfiles-manager/scripts
TEST_SCRIPTS_DIR := .agents/scripts
help: ## Show this help message
@echo "Usage: make [target]"
@echo ""
@echo "Available targets:"
@awk 'BEGIN {FS = ":.*##"; printf ""} /^[a-zA-Z_-]+:.*?##/ { printf " \033[36m%-20s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)
##@ Installation
install: ## Install dotfiles (create symlinks)
@./install.sh
uninstall: ## Uninstall dotfiles (remove managed symlinks)
@./uninstall.sh
brew: ## Install Homebrew packages from Brewfile
@brew bundle --file=brew/Brewfile
setup: install brew ## Complete setup (install + brew)
@echo ""
@echo "✨ Setup complete! Restart your shell: exec zsh"
##@ Testing & Verification
test: ## Run all tests (syntax + startup speed + symlinks)
@$(SCRIPTS_DIR)/test.sh
test-ci: ## Run CI-friendly tests (no startup threshold - measurement only)
@MAX_STARTUP_SECONDS=0 $(SCRIPTS_DIR)/test.sh
measure-startup: ## Measure detailed startup speed with zprof
@$(SCRIPTS_DIR)/measure-startup.sh
test-keybindings: ## Test keybinding configurations (Zellij + Ghostty)
@$(TEST_SCRIPTS_DIR)/test-keybindings.sh all
##@ Tool Management
check-tool: ## Check tool status (usage: make check-tool TOOL=kubectl)
@if [ -z "$(TOOL)" ]; then \
echo "Usage: make check-tool TOOL=<tool-name>"; \
echo "Example: make check-tool TOOL=kubectl"; \
exit 1; \
fi
@$(SCRIPTS_DIR)/check-tool-status.sh $(TOOL)
check-deps: ## Check dependencies before removing (usage: make check-deps TOOL=kubectl)
@if [ -z "$(TOOL)" ]; then \
echo "Usage: make check-deps TOOL=<tool-name>"; \
echo "Example: make check-deps TOOL=colima"; \
exit 1; \
fi
@$(SCRIPTS_DIR)/check-dependencies.sh $(TOOL)
##@ Maintenance
update-aliases: ## Update external alias files (usage: make update-aliases [TARGET=kubectl|gitalias|all])
@if [ -z "$(TARGET)" ]; then \
$(SCRIPTS_DIR)/update-aliases.sh all; \
else \
$(SCRIPTS_DIR)/update-aliases.sh $(TARGET); \
fi