-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
61 lines (47 loc) · 1.81 KB
/
Makefile
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
default: linux windows macos
client: linux-client linux-client-arm macos-client macos-client-arm windows-client
server: linux-server macos-server windows-server
linux: linux-client linux-client-arm linux-server
linux-server:
mkdir -p bin/linux
GOOS=linux GOARCH=amd64 go get -d -v -x ./cmd/askgod-server
cd bin/linux ; GOOS=linux GOARCH=amd64 go build ../../cmd/askgod-server
linux-client:
mkdir -p bin/linux
GOOS=linux GOARCH=amd64 go get -d -v -x ./cmd/askgod
cd bin/linux ; CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build ../../cmd/askgod
linux-client-arm:
mkdir -p bin/linux-arm
GOOS=linux GOARCH=arm64 go get -d -v -x ./cmd/askgod
cd bin/linux-arm ; CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build ../../cmd/askgod
windows: windows-client windows-server
windows-server:
mkdir -p bin/windows
GOOS=windows GOARCH=amd64 go get -d -v -x ./cmd/askgod-server
cd bin/windows ; GOOS=windows GOARCH=amd64 go build ../../cmd/askgod-server
windows-client:
mkdir -p bin/windows
GOOS=windows GOARCH=amd64 go get -d -v -x ./cmd/askgod
cd bin/windows ; CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build ../../cmd/askgod
macos: macos-client macos-client-arm macos-server
macos-server:
mkdir -p bin/macos
GOOS=darwin GOARCH=amd64 go get -d -v -x ./cmd/askgod
cd bin/macos ; GOOS=darwin GOARCH=amd64 go build ../../cmd/askgod-server
macos-client:
mkdir -p bin/macos
GOOS=darwin GOARCH=amd64 go get -d -v -x ./cmd/askgod
cd bin/macos ; CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build ../../cmd/askgod
macos-client-arm:
mkdir -p bin/macos-arm
GOOS=darwin GOARCH=arm64 go get -d -v -x ./cmd/askgod
cd bin/macos-arm ; CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build ../../cmd/askgod
update-gomod:
go get -t -v -d -u ./...
go mod tidy --go=1.21
go get toolchain@none
check:
golint ./...
go vet ./...
go fmt ./...
gofmt -s -w ./