-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
22 lines (16 loc) · 906 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
BINARY_NAME=hakuna-go
all: build-macos-amd64 build-macos-arm64 build-linux-amd64 build-linux-arm64
build-macos-amd64:
GOOS=darwin GOARCH=amd64 go build -o ./dist/$(BINARY_NAME)-macos-amd64
md5sum ./dist/$(BINARY_NAME)-macos-amd64 | head -c 32 | cat > ./dist/$(BINARY_NAME)-macos-amd64-md5
build-macos-arm64:
GOOS=darwin GOARCH=arm64 go build -o ./dist/$(BINARY_NAME)-macos-arm64
md5sum ./dist/$(BINARY_NAME)-macos-arm64 | head -c 32 | cat > ./dist/$(BINARY_NAME)-macos-arm64-md5
build-linux-amd64:
GOOS=linux GOARCH=amd64 go build -o ./dist/$(BINARY_NAME)-linux-amd64
md5sum ./dist/$(BINARY_NAME)-linux-amd64 | head -c 32 | cat > ./dist/$(BINARY_NAME)-linux-amd64-md5
build-linux-arm64:
GOOS=linux GOARCH=arm64 go build -o ./dist/$(BINARY_NAME)-linux-arm64
md5sum ./dist/$(BINARY_NAME)-linux-arm64 | head -c 32 | cat > ./dist/$(BINARY_NAME)-linux-arm64-md5
clean:
rm ./dist/${BINARY_NAME}-*