Adding arm64 to make command

This commit is contained in:
Cristian Ditaputratama 2024-05-06 19:55:41 +07:00
parent 47c2dfb60b
commit 8c4b226779
Signed by: ditatompel
GPG key ID: 31D3D06D77950979

View file

@ -1,15 +1,18 @@
.PHONY: ui build linux64 .PHONY: ui build linux-amd64 linux-arm64
BINARY_NAME = xmr-nodes BINARY_NAME = xmr-nodes
build: ui linux64 build: ui linux-amd64 linux-arm64
ui: ui:
go generate ./... go generate ./...
linux64: linux-amd64:
CGO_ENABLED=0 GOARCH=amd64 GOOS=linux go build -o bin/${BINARY_NAME}-static-linux-amd64 CGO_ENABLED=0 GOARCH=amd64 GOOS=linux go build -o bin/${BINARY_NAME}-static-linux-amd64
linux-arm64:
CGO_ENABLED=0 GOARCH=arm64 GOOS=linux go build -o bin/${BINARY_NAME}-static-linux-arm64
clean: clean:
go clean go clean
rm -rfv ./bin rm -rfv ./bin