-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
63 lines (52 loc) · 1.5 KB
/
Makefile
File metadata and controls
63 lines (52 loc) · 1.5 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
.PHONY: build test test-integration clean fmt vet lint
# Build the binary
build:
@mkdir -p bin
go build -o bin/mcp-wire ./cmd/mcp-wire
# Run tests
test:
go test ./...
# Run integration tests (opt-in)
test-integration:
go test -tags=integration ./internal/integration/...
# Run tests with verbose output
test-verbose:
go test -v ./...
# Format code
fmt:
go fmt ./...
# Run static analysis
vet:
go vet ./...
# Run linter (requires golangci-lint)
lint:
golangci-lint run
# Clean build artifacts
clean:
rm -rf bin/
go clean
# Install dependencies
deps:
go mod download
go mod tidy
# Build for multiple platforms
build-all:
@mkdir -p bin
GOOS=linux GOARCH=amd64 go build -o bin/mcp-wire-linux-amd64 ./cmd/mcp-wire
GOOS=darwin GOARCH=amd64 go build -o bin/mcp-wire-darwin-amd64 ./cmd/mcp-wire
GOOS=darwin GOARCH=arm64 go build -o bin/mcp-wire-darwin-arm64 ./cmd/mcp-wire
GOOS=windows GOARCH=amd64 go build -o bin/mcp-wire-windows-amd64.exe ./cmd/mcp-wire
# Show help
help:
@echo "Available targets:"
@echo " build - Build the binary"
@echo " test - Run tests"
@echo " test-integration - Run integration tests"
@echo " test-verbose - Run tests with verbose output"
@echo " fmt - Format code"
@echo " vet - Run static analysis"
@echo " lint - Run linter"
@echo " clean - Clean build artifacts"
@echo " deps - Install and tidy dependencies"
@echo " build-all - Build for multiple platforms"
@echo " help - Show this help"