-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
76 lines (64 loc) · 2.31 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
VERSION = 0.2.1
LDFLAGS = -ldflags='-s -w' -trimpath
linux_amd64: export GOOS=linux
linux_amd64: export GOARCH=amd64
linux_arm: export GOOS=linux
linux_arm: export GOARCH=arm
linux_arm: export GOARM=6
linux_arm64: export GOOS=linux
linux_arm64: export GOARCH=arm64
darwin_amd64: export GOOS=darwin
darwin_amd64: export GOARCH=amd64
darwin_arm64: export GOOS=darwin
darwin_arm64: export GOARCH=arm64
windows_amd64: export GOOS=windows
windows_amd64: export GOARCH=amd64
windows_arm: export GOOS=windows
windows_arm: export GOARCH=arm
windows_arm64: export GOOS=windows
windows_arm64: export GOARCH=arm64
.PHONY: all linux_amd64 linux_arm linux_arm64 darwin_amd64 darwin_arm64 windows_amd64 windows_arm windows_arm64 clean
all: linux_amd64 linux_arm linux_arm64 darwin_amd64 darwin_arm64 windows_amd64 windows_arm windows_arm64
linux_amd64:
go build $(LDFLAGS)
mkdir -p release
rm -f release/s3sha256sum-${VERSION}-${GOOS}_${GOARCH}.zip
zip release/s3sha256sum-${VERSION}-${GOOS}_${GOARCH}.zip s3sha256sum
linux_arm:
go build $(LDFLAGS)
mkdir -p release
rm -f release/s3sha256sum-${VERSION}-${GOOS}_${GOARCH}.zip
zip release/s3sha256sum-${VERSION}-${GOOS}_${GOARCH}.zip s3sha256sum
linux_arm64:
go build $(LDFLAGS)
mkdir -p release
rm -f release/s3sha256sum-${VERSION}-${GOOS}_${GOARCH}.zip
zip release/s3sha256sum-${VERSION}-${GOOS}_${GOARCH}.zip s3sha256sum
darwin_amd64:
go build $(LDFLAGS)
mkdir -p release
rm -f release/s3sha256sum-${VERSION}-${GOOS}_${GOARCH}.zip
zip release/s3sha256sum-${VERSION}-${GOOS}_${GOARCH}.zip s3sha256sum
darwin_arm64:
go build $(LDFLAGS)
mkdir -p release
rm -f release/s3sha256sum-${VERSION}-${GOOS}_${GOARCH}.zip
zip release/s3sha256sum-${VERSION}-${GOOS}_${GOARCH}.zip s3sha256sum
windows_amd64:
go build $(LDFLAGS)
mkdir -p release
rm -f release/s3sha256sum-${VERSION}-${GOOS}_${GOARCH}.zip
zip release/s3sha256sum-${VERSION}-${GOOS}_${GOARCH}.zip s3sha256sum.exe
windows_arm:
go build $(LDFLAGS)
mkdir -p release
rm -f release/s3sha256sum-${VERSION}-${GOOS}_${GOARCH}.zip
zip release/s3sha256sum-${VERSION}-${GOOS}_${GOARCH}.zip s3sha256sum.exe
windows_arm64:
go build $(LDFLAGS)
mkdir -p release
rm -f release/s3sha256sum-${VERSION}-${GOOS}_${GOARCH}.zip
zip release/s3sha256sum-${VERSION}-${GOOS}_${GOARCH}.zip s3sha256sum.exe
clean:
rm -rf release
rm -f s3sha256sum s3sha256sum.exe