-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMakefile
More file actions
64 lines (49 loc) · 1.99 KB
/
Makefile
File metadata and controls
64 lines (49 loc) · 1.99 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
64
default: linux windows macos
client: linux-client linux-client-arm macos-client macos-client-arm windows-client windows-client-arm
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 -v ./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 -v ./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 -v ./cmd/askgod
cd bin/linux-arm ; CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build ../../cmd/askgod
windows: windows-client windows-client-arm windows-server
windows-server:
mkdir -p bin/windows
GOOS=windows GOARCH=amd64 go get -v ./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 -v ./cmd/askgod
cd bin/windows ; CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build ../../cmd/askgod
windows-client-arm:
mkdir -p bin/windows-arm
GOOS=windows GOARCH=arm64 go get -v ./cmd/askgod
cd bin/windows-arm ; CGO_ENABLED=0 GOOS=windows GOARCH=arm64 go build ../../cmd/askgod
macos: macos-client macos-client-arm macos-server
macos-server:
mkdir -p bin/macos
GOOS=darwin GOARCH=amd64 go get -v ./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 -v ./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 -v ./cmd/askgod
cd bin/macos-arm ; CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build ../../cmd/askgod
update-gomod:
go get -t -v -u ./...
go get github.com/olekukonko/tablewriter@v0.0.5
go mod tidy --go=1.25.0
go get toolchain@none
check:
golangci-lint run