-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
60 lines (49 loc) · 1.29 KB
/
Makefile
File metadata and controls
60 lines (49 loc) · 1.29 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
.PHONY: build install clean test run deps
# Build the Base Framework MCP server
build:
go build -o base-mcp .
# Install dependencies
deps:
go mod tidy
go mod download
# Install the MCP server to GOPATH/bin
install: build
go install .
# Clean build artifacts
clean:
rm -f base-mcp
go clean
# Run tests
test:
go test -v ./...
# Run the MCP server
run:
go run .
# Development build with race detection
dev:
go build -race -o base-mcp .
# Format code
fmt:
go fmt ./...
# Lint code (requires golangci-lint)
lint:
golangci-lint run
# Build for multiple platforms
build-all:
GOOS=linux GOARCH=amd64 go build -o base-mcp-linux-amd64 .
GOOS=darwin GOARCH=amd64 go build -o base-mcp-darwin-amd64 .
GOOS=darwin GOARCH=arm64 go build -o base-mcp-darwin-arm64 .
GOOS=windows GOARCH=amd64 go build -o base-mcp-windows-amd64.exe .
# Show help
help:
@echo "Available commands:"
@echo " build - Build the MCP server"
@echo " install - Install the MCP server"
@echo " clean - Clean build artifacts"
@echo " test - Run tests"
@echo " run - Run the MCP server"
@echo " dev - Build with race detection"
@echo " fmt - Format code"
@echo " lint - Lint code"
@echo " build-all - Build for multiple platforms"
@echo " deps - Install dependencies"