-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
103 lines (82 loc) · 2.39 KB
/
Makefile
File metadata and controls
103 lines (82 loc) · 2.39 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
# Makefile for coding-agent
# Build, run, and test targets
.PHONY: build build-release run-cli run-chat run-read run-list-files run-bash run-edit run-code-search run-test-image test test-verbose clean fmt fmt-check lint check help
# Package shortcuts
CORE = coding-agent-core
CLI = coding-agent-cli
# Default target
all: build
# Build everything
build:
cargo build --workspace
# Build in release mode
build-release:
cargo build --workspace --release
# Run CLI
run-cli:
cargo run -p $(CLI)
# Run core examples
run-chat:
cargo run -p $(CORE) --example chat
run-read:
cargo run -p $(CORE) --example read
run-list-files:
cargo run -p $(CORE) --example list_files
run-bash:
cargo run -p $(CORE) --example bash
run-edit:
cargo run -p $(CORE) --example edit
run-code-search:
cargo run -p $(CORE) --example code_search
run-test-image:
cargo run -p $(CORE) --example test_gemini_image
# Run all tests
test:
cargo test --workspace
# Run tests with verbose output
test-verbose:
cargo test --workspace -- --nocapture
# Clean build artifacts
clean:
cargo clean
# Format code
fmt:
cargo fmt --all
# Check formatting without modifying
fmt-check:
cargo fmt --all -- --check
# Run clippy linter
lint:
cargo clippy --workspace -- -D warnings
# Check compilation without building
check:
cargo check --workspace
# Help target
help:
@echo "Available targets:"
@echo ""
@echo " Build:"
@echo " build - Build all crates"
@echo " build-release - Build all crates in release mode"
@echo ""
@echo " Run:"
@echo " run-cli - Run the CLI application"
@echo " run-chat - Run the chat example"
@echo " run-read - Run the read example"
@echo " run-list-files - Run the list_files example"
@echo " run-bash - Run the bash example"
@echo " run-edit - Run the edit example"
@echo " run-code-search- Run the code_search example"
@echo " run-test-image - Test Gemini image generation"
@echo ""
@echo " Test & Quality:"
@echo " test - Run all tests"
@echo " test-verbose - Run tests with verbose output"
@echo " fmt - Format code with rustfmt"
@echo " fmt-check - Check code formatting"
@echo " lint - Run clippy linter"
@echo " check - Check compilation"
@echo ""
@echo " Other:"
@echo " clean - Remove build artifacts"
@echo " help - Show this help message"