-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
194 lines (165 loc) · 6.48 KB
/
Makefile
File metadata and controls
194 lines (165 loc) · 6.48 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
# Pret-a-Program Setup Makefile
# Automated setup for different AI coding assistants
.PHONY: help setup setup-all update update-all uninstall clean test claude-skill claude cursor copilot uninstall-claude-skill uninstall-claude uninstall-cursor uninstall-copilot uninstall-all
# Default target - show help
help:
@echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
@echo " Pret-a-Program Setup"
@echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
@echo ""
@echo "Usage:"
@echo " make setup <assistant> Set up Pret for specific assistant"
@echo " make setup-all Set up for all assistants"
@echo " make update-<assistant> Update global methodology for assistant"
@echo " make update-all Update for all (or just: git pull)"
@echo " make uninstall <target> Remove setup for specific assistant"
@echo " make test Verify installation"
@echo " make clean Clean up temporary files"
@echo ""
@echo "Available Assistants:"
@echo " claude-skill Claude Code with skill (recommended)"
@echo " claude Claude Code without skill (legacy)"
@echo " cursor Cursor IDE"
@echo " copilot GitHub Copilot"
@echo ""
@echo "Examples:"
@echo " make setup claude-skill # Initial setup"
@echo " make setup-all # Setup all assistants"
@echo " make update-claude-skill # Update methodology"
@echo " make update-all # Or just: git pull"
@echo " make uninstall claude-skill # Remove setup"
@echo ""
@echo "💡 With symlinks, updates are automatic: just 'git pull'!"
@echo ""
@echo "For manual setup instructions, see:"
@echo " - SETUP-GUIDE.md (overview)"
@echo " - skills/claude-code/INSTALL.md (Claude Code skill)"
@echo " - claude/QUICKSTART.md (Claude Code)"
@echo " - cursor/QUICKSTART.md (Cursor)"
@echo " - copilot/QUICKSTART.md (GitHub Copilot)"
@echo ""
# Individual assistant setup targets
setup:
@if [ -z "$(filter-out setup,$(MAKECMDGOALS))" ]; then \
echo "❌ Error: Please specify an assistant"; \
echo ""; \
echo "Usage: make setup <assistant>"; \
echo ""; \
echo "Available: claude-skill, claude, cursor, copilot, gemini"; \
exit 1; \
fi
claude-skill:
@echo "🚀 Setting up Claude Code with Pret-a-Program skill..."
@bash scripts/setup-claude-skill.sh
claude:
@echo "🚀 Setting up Claude Code (legacy, no skill)..."
@bash scripts/setup-claude.sh
cursor:
@echo "🚀 Setting up Cursor IDE with Pret-a-Program..."
@bash scripts/setup-cursor.sh
copilot:
@echo "🚀 Setting up GitHub Copilot with Pret-a-Program..."
@bash scripts/setup-copilot.sh
gemini:
@echo "🚀 Setting up Gemini with Pret-a-Program..."
@bash scripts/setup-gemini.sh
# Setup for all assistants
setup-all:
@echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
@echo " Setting up Pret-a-Program for ALL assistants"
@echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
@echo ""
@$(MAKE) claude-skill
@echo ""
@$(MAKE) cursor
@echo ""
@$(MAKE) copilot
@echo ""
@$(MAKE) gemini
@echo ""
@echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
@echo " ✨ All assistants configured!"
@echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
# Update targets
update-claude-skill:
@bash scripts/update-claude-skill.sh
update-claude:
@bash scripts/update-claude.sh
update-cursor:
@bash scripts/update-cursor.sh
update-copilot:
@bash scripts/update-copilot.sh
update-gemini:
@bash scripts/update-gemini.sh
update-all:
@echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
@echo " Updating Pret-a-Program"
@echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
@echo ""
@echo "✨ With symlinks, updates are automatic!"
@echo ""
@echo "Just run:"
@echo " git pull origin main"
@echo ""
@echo "Your symlinked files will automatically point to the latest version."
# Uninstall targets
uninstall:
@if [ -z "$(filter-out uninstall,$(MAKECMDGOALS))" ]; then \
echo "❌ Error: Please specify what to uninstall"; \
echo ""; \
echo "Usage: make uninstall <target>"; \
echo ""; \
echo "Available: claude-skill, claude, cursor, copilot, gemini, all"; \
exit 1; \
fi
uninstall-claude-skill:
@echo "🗑️ Uninstalling Claude Code skill..."
@bash skills/claude-code/scripts/uninstall.sh
uninstall-claude:
@echo "🗑️ Uninstalling Claude Code setup..."
@bash scripts/uninstall-claude.sh
uninstall-cursor:
@echo "🗑️ Uninstalling Cursor setup..."
@bash scripts/uninstall-cursor.sh
uninstall-copilot:
@echo "🗑️ Uninstalling Copilot setup..."
@bash scripts/uninstall-copilot.sh
uninstall-gemini:
@echo "🗑️ Uninstalling Gemini setup..."
@bash scripts/uninstall-gemini.sh
uninstall-all:
@echo "⚠️ This will remove Pret-a-Program setup for ALL assistants"
@read -p "Continue? (y/N): " confirm; \
if [ "$$confirm" = "y" ] || [ "$$confirm" = "Y" ]; then \
$(MAKE) uninstall-claude-skill; \
$(MAKE) uninstall-cursor; \
$(MAKE) uninstall-copilot; \
$(MAKE) uninstall-gemini; \
else \
echo "❌ Cancelled"; \
fi
# Test installation
test:
@echo "🧪 Testing Pret-a-Program installation..."
@bash scripts/test-setup.sh
# Clean temporary files
clean:
@echo "🧹 Cleaning temporary files..."
@find . -name "*.tmp" -delete
@find . -name ".DS_Store" -delete
@echo "✅ Clean complete"
# Aliases for common typos
setup_claude-skill: claude-skill
setup_cursor: cursor
setup_copilot: copilot
setup_gemini: gemini
install: setup
# Help for specific assistants
help-claude-skill:
@cat skills/claude-code/README.md | head -50
help-cursor:
@cat cursor/README.md | head -50
help-copilot:
@cat copilot/README.md | head -50
help-gemini:
@cat gemini/README.md | head -50