-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
32 lines (25 loc) · 835 Bytes
/
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
default: build-all
.PHONY: build-all
build-all: linux-intel linux-arm mac-intel mac-arm windows-intel zip
.PHONY: mac-intel
mac-intel:
env GOOS=darwin GOARCH=amd64 go build -o build/checkout-mac-intel
chmod u+x build/checkout-mac-intel
.PHONY: mac-arm
mac-arm:
env GOOS=darwin GOARCH=arm64 go build -o build/checkout-mac-applesilicon
chmod u+x build/checkout-mac-applesilicon
.PHONY: linux-intel
linux-intel:
env GOOS=linux GOARCH=amd64 go build -o build/checkout-linux-intel
chmod u+x build/checkout-linux-intel
.PHONY: linux-arm
linux-arm:
env GOOS=linux GOARCH=arm64 go build -o build/checkout-linux-arm
chmod u+x build/checkout-linux-arm
.PHONY: windows-intel
windows-intel:
env GOOS=windows GOARCH=amd64 go build -o build/checkout.exe
.PHONY: zip
zip:
tar -czvf build/all-checkout-binaries.tar.gz build/checkout*