aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 15 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 33c582f..5ff155d 100644
--- a/Makefile
+++ b/Makefile
@@ -170,8 +170,8 @@ bootstrap: ## First-time machine setup: install + install-hooks + install-mcp
##@ Global install (symlinks into ~/.claude/)
-install: ## Symlink skills and rules into ~/.claude/
- @mkdir -p $(SKILLS_DIR) $(RULES_DIR)
+install: ## Symlink skills, rules, config, hooks, and bin scripts into place
+ @mkdir -p $(SKILLS_DIR) $(RULES_DIR) $(HOOKS_DIR)
@echo "Skills:"
@for skill in $(SKILLS); do \
if [ -L "$(SKILLS_DIR)/$$skill" ]; then \
@@ -220,6 +220,19 @@ install: ## Symlink skills and rules into ~/.claude/
fi \
fi
@echo ""
+ @echo "Hooks (default):"
+ @for hook in $(DEFAULT_HOOKS); do \
+ name=$$(basename $$hook); \
+ if [ -L "$(HOOKS_DIR)/$$name" ]; then \
+ echo " skip $$name (already linked)"; \
+ elif [ -e "$(HOOKS_DIR)/$$name" ]; then \
+ echo " WARN $$name exists and is not a symlink — skipping"; \
+ else \
+ ln -s "$(CURDIR)/$$hook" "$(HOOKS_DIR)/$$name"; \
+ echo " link $$name → $(HOOKS_DIR)/$$name"; \
+ fi \
+ done
+ @echo ""
@echo "bin scripts:"
@mkdir -p "$(LOCAL_BIN)"
@for src in $(CURDIR)/claude-templates/bin/*; do \