-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (26 loc) · 861 Bytes
/
Copy pathMakefile
File metadata and controls
36 lines (26 loc) · 861 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
BINARY=go-llm-proxy
.PHONY: build test linux linux-arm macos macos-arm windows clean all
build:
go build -o $(BINARY) .
test:
go test ./...
linux:
GOOS=linux GOARCH=amd64 go build -o $(BINARY) .
linux-arm:
GOOS=linux GOARCH=arm64 go build -o $(BINARY) .
macos:
GOOS=darwin GOARCH=amd64 go build -o $(BINARY) .
macos-arm:
GOOS=darwin GOARCH=arm64 go build -o $(BINARY) .
windows:
GOOS=windows GOARCH=amd64 go build -o $(BINARY).exe .
all:
mkdir -p dist
GOOS=linux GOARCH=amd64 go build -o dist/$(BINARY)-linux-amd64 .
GOOS=linux GOARCH=arm64 go build -o dist/$(BINARY)-linux-arm64 .
GOOS=darwin GOARCH=amd64 go build -o dist/$(BINARY)-macos-amd64 .
GOOS=darwin GOARCH=arm64 go build -o dist/$(BINARY)-macos-arm64 .
GOOS=windows GOARCH=amd64 go build -o dist/$(BINARY)-windows-amd64.exe .
clean:
rm -f $(BINARY) $(BINARY).exe
rm -rf dist