refactor: make LLM service management configurable

- Add LLM_SERVICES variable for easy service management
- Add restart-llm-% pattern rule for individual service control
- Refactor restart-llm to loop through services
This commit is contained in:
2026-05-02 11:11:04 +02:00
parent 869e5296ee
commit 4cb29fa07a

View File

@@ -6,6 +6,9 @@ REPO_DIR := $(shell pwd)
# Items to symlink
ITEMS := scripts skills agents settings.json
# LLM services to manage
LLM_SERVICES := atlas forge swift sage
install:
@echo "Installing Claude Code config symlinks..."
@mkdir -p $(CLAUDE_DIR)
@@ -52,3 +55,10 @@ status:
echo " $$item: not found"; \
fi \
done
restart-llm-%:
@echo "Restarting com.vllm-mlx-$*..."
@launchctl bootout gui/$$(id -u) ~/Library/LaunchAgents/com.vllm-mlx-$*.plist || true
@launchctl bootstrap gui/$$(id -u) ~/Library/LaunchAgents/com.vllm-mlx-$*.plist
restart-llm: $(patsubst %,restart-llm-%,$(LLM_SERVICES))