aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile34
1 files changed, 19 insertions, 15 deletions
diff --git a/Makefile b/Makefile
index abf28c1..01bd1ee 100644
--- a/Makefile
+++ b/Makefile
@@ -220,24 +220,28 @@ install: ## Symlink skills and rules into ~/.claude/
fi \
fi
@echo ""
- @echo "ai launcher:"
+ @echo "bin scripts:"
@mkdir -p "$(LOCAL_BIN)"
- @chmod +x "$(AI_LAUNCHER)"
- @if [ -L "$(LOCAL_BIN)/ai" ]; then \
- target=$$(readlink "$(LOCAL_BIN)/ai"); \
- if [ "$$target" = "$(AI_LAUNCHER)" ]; then \
- echo " skip ai (already linked)"; \
+ @for src in $(CURDIR)/claude-templates/bin/*; do \
+ [ -f "$$src" ] || continue; \
+ name=$$(basename "$$src"); \
+ chmod +x "$$src"; \
+ if [ -L "$(LOCAL_BIN)/$$name" ]; then \
+ target=$$(readlink "$(LOCAL_BIN)/$$name"); \
+ if [ "$$target" = "$$src" ]; then \
+ echo " skip $$name (already linked)"; \
+ else \
+ rm "$(LOCAL_BIN)/$$name"; \
+ ln -s "$$src" "$(LOCAL_BIN)/$$name"; \
+ echo " relink $$name → $$src (was: $$target)"; \
+ fi \
+ elif [ -e "$(LOCAL_BIN)/$$name" ]; then \
+ echo " WARN $$name exists and is not a symlink — skipping"; \
else \
- rm "$(LOCAL_BIN)/ai"; \
- ln -s "$(AI_LAUNCHER)" "$(LOCAL_BIN)/ai"; \
- echo " relink ai → $(AI_LAUNCHER) (was: $$target)"; \
+ ln -s "$$src" "$(LOCAL_BIN)/$$name"; \
+ echo " link $$name → $(LOCAL_BIN)/$$name"; \
fi \
- elif [ -e "$(LOCAL_BIN)/ai" ]; then \
- echo " WARN ai exists and is not a symlink — skipping"; \
- else \
- ln -s "$(AI_LAUNCHER)" "$(LOCAL_BIN)/ai"; \
- echo " link ai → $(LOCAL_BIN)/ai"; \
- fi
+ done
@echo ""
@echo "done"