-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
56 lines (47 loc) · 1.63 KB
/
Makefile
File metadata and controls
56 lines (47 loc) · 1.63 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
.PHONY: install uninstall list test lint clean validate help
VERSION := 0.2.0
# Default: help
all: help
help:
@echo "GStack for OpenCode v$(VERSION)"
@echo "Usage: make [target]"
@echo ""
@echo "Targets:"
@echo " install Install agents, commands and skills"
@echo " dev Install using symlinks (for development)"
@echo " uninstall Remove all installed components"
@echo " validate Check environment and configuration"
@echo " list List all available agents and commands"
@echo " lint Check Markdown files for consistency"
@echo " help Show this help message"
install:
@chmod +x install.sh
@./install.sh
# Developer mode: link files instead of copy
dev:
@echo "🔗 Linking GStack components to OpenCode config..."
@mkdir -p ~/.config/opencode/agents
@mkdir -p ~/.config/opencode/commands
@mkdir -p ~/.config/opencode/skills
@ln -sf $(PWD)/agents/*.md ~/.config/opencode/agents/
@ln -sf $(PWD)/commands/*.md ~/.config/opencode/commands/
@ln -sf $(PWD)/skills/*.md ~/.config/opencode/skills/
@echo "✅ Done."
uninstall:
@echo "🗑️ Removing GStack components from OpenCode config..."
@rm -rf ~/.config/opencode/agents
@rm -rf ~/.config/opencode/commands
@rm -rf ~/.config/opencode/skills
@echo "✅ Done."
list:
@echo "📜 Available Agents:"
@ls agents/*.md | xargs -n 1 basename
@echo ""
@echo "📜 Available Commands:"
@ls commands/*.md | xargs -n 1 basename
lint:
@echo "🔍 Linting Markdown files..."
@# Could use markdownlint if available
@find . -name "*.md" | xargs -I {} grep -L "^---" {} || echo "Found files without frontmatter"
clean:
@# No build artifacts to clean yet