mirror of
https://github.com/cexll/myclaude.git
synced 2026-02-05 02:30:26 +08:00
Fix #12: Update Makefile install paths for new directory structure
- Replace non-existent root-level commands/agents dirs with workflow-specific paths - Add BMAD_DIR, REQUIREMENTS_DIR, ESSENTIALS_DIR, ADVANCED_DIR variables - Update all deployment targets to copy from actual locations - Add new targets: deploy-essentials and deploy-advanced - Add shortcuts: make essentials, make advanced - All 30 files now correctly referenced and verified Generated by swe-agent
This commit is contained in:
50
Makefile
50
Makefile
@@ -1,7 +1,7 @@
|
|||||||
# Claude Code Multi-Agent Workflow System Makefile
|
# Claude Code Multi-Agent Workflow System Makefile
|
||||||
# Quick deployment for BMAD and Requirements workflows
|
# Quick deployment for BMAD and Requirements workflows
|
||||||
|
|
||||||
.PHONY: help install deploy-bmad deploy-requirements deploy-all clean test
|
.PHONY: help install deploy-bmad deploy-requirements deploy-essentials deploy-advanced deploy-all deploy-commands deploy-agents clean test
|
||||||
|
|
||||||
# Default target
|
# Default target
|
||||||
help:
|
help:
|
||||||
@@ -13,6 +13,8 @@ help:
|
|||||||
@echo " install - Install all configurations to Claude Code"
|
@echo " install - Install all configurations to Claude Code"
|
||||||
@echo " deploy-bmad - Deploy BMAD workflow (bmad-pilot)"
|
@echo " deploy-bmad - Deploy BMAD workflow (bmad-pilot)"
|
||||||
@echo " deploy-requirements - Deploy Requirements workflow (requirements-pilot)"
|
@echo " deploy-requirements - Deploy Requirements workflow (requirements-pilot)"
|
||||||
|
@echo " deploy-essentials - Deploy Development Essentials workflow"
|
||||||
|
@echo " deploy-advanced - Deploy Advanced AI Agents"
|
||||||
@echo " deploy-commands - Deploy all slash commands"
|
@echo " deploy-commands - Deploy all slash commands"
|
||||||
@echo " deploy-agents - Deploy all agent configurations"
|
@echo " deploy-agents - Deploy all agent configurations"
|
||||||
@echo " deploy-all - Deploy everything (commands + agents)"
|
@echo " deploy-all - Deploy everything (commands + agents)"
|
||||||
@@ -23,11 +25,15 @@ help:
|
|||||||
|
|
||||||
# Configuration paths
|
# Configuration paths
|
||||||
CLAUDE_CONFIG_DIR = ~/.claude
|
CLAUDE_CONFIG_DIR = ~/.claude
|
||||||
COMMANDS_DIR = commands
|
|
||||||
AGENTS_DIR = agents
|
|
||||||
OUTPUT_STYLES_DIR = output-styles
|
|
||||||
SPECS_DIR = .claude/specs
|
SPECS_DIR = .claude/specs
|
||||||
|
|
||||||
|
# Workflow directories
|
||||||
|
BMAD_DIR = bmad-agile-workflow
|
||||||
|
REQUIREMENTS_DIR = requirements-driven-workflow
|
||||||
|
ESSENTIALS_DIR = development-essentials
|
||||||
|
ADVANCED_DIR = advanced-ai-agents
|
||||||
|
OUTPUT_STYLES_DIR = output-styles
|
||||||
|
|
||||||
# Install all configurations
|
# Install all configurations
|
||||||
install: deploy-all
|
install: deploy-all
|
||||||
@echo "✅ Installation complete!"
|
@echo "✅ Installation complete!"
|
||||||
@@ -38,8 +44,8 @@ deploy-bmad:
|
|||||||
@mkdir -p $(CLAUDE_CONFIG_DIR)/commands
|
@mkdir -p $(CLAUDE_CONFIG_DIR)/commands
|
||||||
@mkdir -p $(CLAUDE_CONFIG_DIR)/agents
|
@mkdir -p $(CLAUDE_CONFIG_DIR)/agents
|
||||||
@mkdir -p $(CLAUDE_CONFIG_DIR)/output-styles
|
@mkdir -p $(CLAUDE_CONFIG_DIR)/output-styles
|
||||||
@cp $(COMMANDS_DIR)/bmad-pilot.md $(CLAUDE_CONFIG_DIR)/commands/
|
@cp $(BMAD_DIR)/commands/bmad-pilot.md $(CLAUDE_CONFIG_DIR)/commands/
|
||||||
@cp $(AGENTS_DIR)/bmad-*.md $(CLAUDE_CONFIG_DIR)/agents/
|
@cp $(BMAD_DIR)/agents/*.md $(CLAUDE_CONFIG_DIR)/agents/
|
||||||
@cp $(OUTPUT_STYLES_DIR)/bmad.md $(CLAUDE_CONFIG_DIR)/output-styles/ 2>/dev/null || true
|
@cp $(OUTPUT_STYLES_DIR)/bmad.md $(CLAUDE_CONFIG_DIR)/output-styles/ 2>/dev/null || true
|
||||||
@echo "✅ BMAD workflow deployed successfully!"
|
@echo "✅ BMAD workflow deployed successfully!"
|
||||||
@echo " Usage: /bmad-pilot \"your feature description\""
|
@echo " Usage: /bmad-pilot \"your feature description\""
|
||||||
@@ -49,16 +55,35 @@ deploy-requirements:
|
|||||||
@echo "🚀 Deploying Requirements workflow..."
|
@echo "🚀 Deploying Requirements workflow..."
|
||||||
@mkdir -p $(CLAUDE_CONFIG_DIR)/commands
|
@mkdir -p $(CLAUDE_CONFIG_DIR)/commands
|
||||||
@mkdir -p $(CLAUDE_CONFIG_DIR)/agents
|
@mkdir -p $(CLAUDE_CONFIG_DIR)/agents
|
||||||
@cp $(COMMANDS_DIR)/requirements-pilot.md $(CLAUDE_CONFIG_DIR)/commands/
|
@cp $(REQUIREMENTS_DIR)/commands/requirements-pilot.md $(CLAUDE_CONFIG_DIR)/commands/
|
||||||
@cp $(AGENTS_DIR)/requirements-*.md $(CLAUDE_CONFIG_DIR)/agents/
|
@cp $(REQUIREMENTS_DIR)/agents/*.md $(CLAUDE_CONFIG_DIR)/agents/
|
||||||
@echo "✅ Requirements workflow deployed successfully!"
|
@echo "✅ Requirements workflow deployed successfully!"
|
||||||
@echo " Usage: /requirements-pilot \"your feature description\""
|
@echo " Usage: /requirements-pilot \"your feature description\""
|
||||||
|
|
||||||
|
# Deploy Development Essentials workflow
|
||||||
|
deploy-essentials:
|
||||||
|
@echo "🚀 Deploying Development Essentials workflow..."
|
||||||
|
@mkdir -p $(CLAUDE_CONFIG_DIR)/commands
|
||||||
|
@mkdir -p $(CLAUDE_CONFIG_DIR)/agents
|
||||||
|
@cp $(ESSENTIALS_DIR)/commands/*.md $(CLAUDE_CONFIG_DIR)/commands/
|
||||||
|
@cp $(ESSENTIALS_DIR)/agents/*.md $(CLAUDE_CONFIG_DIR)/agents/
|
||||||
|
@echo "✅ Development Essentials deployed successfully!"
|
||||||
|
@echo " Available commands: /ask, /code, /debug, /test, /review, /optimize, /bugfix, /refactor, /docs, /think"
|
||||||
|
|
||||||
|
# Deploy Advanced AI Agents
|
||||||
|
deploy-advanced:
|
||||||
|
@echo "🚀 Deploying Advanced AI Agents..."
|
||||||
|
@mkdir -p $(CLAUDE_CONFIG_DIR)/agents
|
||||||
|
@cp $(ADVANCED_DIR)/agents/*.md $(CLAUDE_CONFIG_DIR)/agents/
|
||||||
|
@echo "✅ Advanced AI Agents deployed successfully!"
|
||||||
|
|
||||||
# Deploy all commands
|
# Deploy all commands
|
||||||
deploy-commands:
|
deploy-commands:
|
||||||
@echo "📦 Deploying all slash commands..."
|
@echo "📦 Deploying all slash commands..."
|
||||||
@mkdir -p $(CLAUDE_CONFIG_DIR)/commands
|
@mkdir -p $(CLAUDE_CONFIG_DIR)/commands
|
||||||
@cp $(COMMANDS_DIR)/*.md $(CLAUDE_CONFIG_DIR)/commands/
|
@cp $(BMAD_DIR)/commands/*.md $(CLAUDE_CONFIG_DIR)/commands/
|
||||||
|
@cp $(REQUIREMENTS_DIR)/commands/*.md $(CLAUDE_CONFIG_DIR)/commands/
|
||||||
|
@cp $(ESSENTIALS_DIR)/commands/*.md $(CLAUDE_CONFIG_DIR)/commands/
|
||||||
@echo "✅ All commands deployed!"
|
@echo "✅ All commands deployed!"
|
||||||
@echo " Available commands:"
|
@echo " Available commands:"
|
||||||
@echo " - /bmad-pilot (Full agile workflow)"
|
@echo " - /bmad-pilot (Full agile workflow)"
|
||||||
@@ -70,7 +95,10 @@ deploy-commands:
|
|||||||
deploy-agents:
|
deploy-agents:
|
||||||
@echo "🤖 Deploying all agents..."
|
@echo "🤖 Deploying all agents..."
|
||||||
@mkdir -p $(CLAUDE_CONFIG_DIR)/agents
|
@mkdir -p $(CLAUDE_CONFIG_DIR)/agents
|
||||||
@cp $(AGENTS_DIR)/*.md $(CLAUDE_CONFIG_DIR)/agents/
|
@cp $(BMAD_DIR)/agents/*.md $(CLAUDE_CONFIG_DIR)/agents/
|
||||||
|
@cp $(REQUIREMENTS_DIR)/agents/*.md $(CLAUDE_CONFIG_DIR)/agents/
|
||||||
|
@cp $(ESSENTIALS_DIR)/agents/*.md $(CLAUDE_CONFIG_DIR)/agents/
|
||||||
|
@cp $(ADVANCED_DIR)/agents/*.md $(CLAUDE_CONFIG_DIR)/agents/
|
||||||
@echo "✅ All agents deployed!"
|
@echo "✅ All agents deployed!"
|
||||||
|
|
||||||
# Deploy everything
|
# Deploy everything
|
||||||
@@ -105,6 +133,8 @@ clean:
|
|||||||
# Quick deployment shortcuts
|
# Quick deployment shortcuts
|
||||||
bmad: deploy-bmad
|
bmad: deploy-bmad
|
||||||
requirements: deploy-requirements
|
requirements: deploy-requirements
|
||||||
|
essentials: deploy-essentials
|
||||||
|
advanced: deploy-advanced
|
||||||
all: deploy-all
|
all: deploy-all
|
||||||
|
|
||||||
# Version info
|
# Version info
|
||||||
|
|||||||
Reference in New Issue
Block a user