aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index ca73612..a6e636f 100644
--- a/Makefile
+++ b/Makefile
@@ -255,6 +255,15 @@ install: ## Symlink skills, rules, config, hooks, and bin scripts into place
echo " link $$name → $(LOCAL_BIN)/$$name"; \
fi \
done
+ @for link in "$(LOCAL_BIN)"/*; do \
+ [ -L "$$link" ] || continue; \
+ target=$$(readlink "$$link"); \
+ case "$$target" in "$(CURDIR)/claude-templates/bin/"*) ;; *) continue ;; esac; \
+ if [ ! -e "$$target" ]; then \
+ rm "$$link"; \
+ echo " prune $$(basename "$$link") (dangling → $$target)"; \
+ fi \
+ done
@echo ""
@echo "done"