aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index a6e636f..2d744a1 100644
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,7 @@ SKILLS_DIR := $(HOME)/.claude/skills
RULES_DIR := $(HOME)/.claude/rules
HOOKS_DIR := $(HOME)/.claude/hooks
CLAUDE_DIR := $(HOME)/.claude
+CODEX_DIR := $(HOME)/.codex
LOCAL_BIN := $(HOME)/.local/bin
AI_LAUNCHER := $(CURDIR)/claude-templates/bin/ai
SKILLS := $(patsubst %/SKILL.md,%,$(wildcard */SKILL.md))
@@ -220,6 +221,17 @@ install: ## Symlink skills, rules, config, hooks, and bin scripts into place
fi \
fi
@echo ""
+ @echo "Agent entry (codex):"
+ @mkdir -p "$(CODEX_DIR)"
+ @if [ -L "$(CODEX_DIR)/AGENTS.md" ]; then \
+ echo " skip AGENTS.md (already linked)"; \
+ elif [ -e "$(CODEX_DIR)/AGENTS.md" ]; then \
+ echo " WARN AGENTS.md exists and is not a symlink — skipping"; \
+ else \
+ ln -s "$(CURDIR)/claude-templates/AGENTS.md" "$(CODEX_DIR)/AGENTS.md"; \
+ echo " link AGENTS.md → $(CODEX_DIR)/AGENTS.md"; \
+ fi
+ @echo ""
@echo "Hooks (default):"
@for hook in $(DEFAULT_HOOKS); do \
name=$$(basename $$hook); \