forked from ghuntley/how-to-build-a-coding-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (33 loc) · 813 Bytes
/
Copy pathMakefile
File metadata and controls
40 lines (33 loc) · 813 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
.PHONY: build fmt check clean all
# Go binaries to build
BINARIES := bash_tool chat edit_tool list_files read
# Build all binaries
build:
@echo "Building binaries..."
go build -o bash_tool bash_tool.go
go build -o chat chat.go
go build -o edit_tool edit_tool.go
go build -o list_files list_files.go
go build -o read read.go
# Format all Go files
fmt:
@echo "Formatting Go files..."
go fmt ./...
# Check (lint and vet) all Go files
check:
@echo "Running go vet on individual files..."
go vet bash_tool.go
go vet chat.go
go vet edit_tool.go
go vet list_files.go
go vet read.go
@echo "Running go mod tidy..."
go mod tidy
# Clean built binaries
clean:
@echo "Cleaning binaries..."
rm -f $(BINARIES)
# Build everything and run checks
all: fmt check build
# Default target
.DEFAULT_GOAL := all