forked from luoliwoshang/codeagent
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (40 loc) · 907 Bytes
/
Makefile
File metadata and controls
47 lines (40 loc) · 907 Bytes
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
# CodeAgent Makefile
# Variable definitions
BINARY_NAME=codeagent
BUILD_DIR=bin
MAIN_PATH=./cmd/server
# Default target
.PHONY: all
all: build
# Build target
.PHONY: build
build:
@echo "Building CodeAgent..."
@mkdir -p $(BUILD_DIR)
go build -o $(BUILD_DIR)/$(BINARY_NAME) $(MAIN_PATH)
@echo "Build completed: $(BUILD_DIR)/$(BINARY_NAME)"
# Clean target
.PHONY: clean
clean:
@echo "Cleaning build artifacts..."
@rm -rf $(BUILD_DIR)
@echo "Clean completed"
# Run target
.PHONY: run
run: build
@echo "Running CodeAgent..."
./$(BUILD_DIR)/$(BINARY_NAME)
# Test target
.PHONY: test
test:
@echo "Running tests..."
go test ./...
# Help target
.PHONY: help
help:
@echo "Available targets:"
@echo " build - Build the CodeAgent binary"
@echo " clean - Clean build artifacts"
@echo " run - Build and run CodeAgent"
@echo " test - Run tests"
@echo " help - Show this help message"