-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
61 lines (51 loc) · 2 KB
/
Makefile
File metadata and controls
61 lines (51 loc) · 2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
.PHONY: help install install-kilo install-claude install-cursor install-goose install-opencode test clean
AGENTS_DIR := agents
DEST_KILO := $(HOME)/.kilo/agents
DEST_CLAUDE := $(HOME)/.claude/agents
DEST_CURSOR := $(PWD)/.cursor/rules
DEST_GOOSE := $(HOME)/.goose/agents
DEST_OPENCODE := $(PWD)/.opencode/agent
AGENT_GLOB := eng-*.md test-*.md design-*.md mkt-*.md prod-*.md pm-*.md game-*.md spatial-*.md spec-*.md support-*.md
help:
@echo "Contract-Agents Makefile"
@echo ""
@echo "Usage: make <target>"
@echo ""
@echo "Targets:"
@echo " install Install to all detected tools"
@echo " install-kilo Install to Kilo CLI"
@echo " install-claude Install to Claude Code"
@echo " install-cursor Install to Cursor"
@echo " install-goose Install to Goose"
@echo " install-opencode Install to OpenCode"
@echo " test Run validation tests"
@echo " clean Remove installed agents"
install: install-kilo install-claude install-cursor install-goose install-opencode
install-kilo:
@mkdir -p $(DEST_KILO)
@cp $(AGENTS_DIR)/*.md $(DEST_KILO)/ 2>/dev/null || true
@echo "Installed to Kilo: $(DEST_KILO)"
install-claude:
@mkdir -p $(DEST_CLAUDE)
@cp $(AGENTS_DIR)/*.md $(DEST_CLAUDE)/ 2>/dev/null || true
@echo "Installed to Claude Code: $(DEST_CLAUDE)"
install-cursor:
@mkdir -p $(DEST_CURSOR)
@cp $(AGENTS_DIR)/*.md $(DEST_CURSOR)/ 2>/dev/null || true
@echo "Installed to Cursor: $(DEST_CURSOR)"
install-goose:
@mkdir -p $(DEST_GOOSE)
@cp $(AGENTS_DIR)/*.md $(DEST_GOOSE)/ 2>/dev/null || true
@echo "Installed to Goose: $(DEST_GOOSE)"
install-opencode:
@mkdir -p $(DEST_OPENCODE)
@cp $(AGENTS_DIR)/*.md $(DEST_OPENCODE)/ 2>/dev/null || true
@echo "Installed to OpenCode: $(DEST_OPENCODE)"
test:
@./tests/contract-test.sh
@./tests/token-check.sh
clean:
@for dir in $(DEST_KILO) $(DEST_CLAUDE) $(DEST_CURSOR) $(DEST_GOOSE) $(DEST_OPENCODE); do \
rm -f $$dir/$(AGENT_GLOB) 2>/dev/null; \
done
@echo "Cleaned contract-agents from all install directories"