From 92c51e72bd1f6853cbb017cab8b53ae1a0ce008a Mon Sep 17 00:00:00 2001 From: itchyny Date: Tue, 14 Sep 2021 01:22:33 +0900 Subject: [PATCH] improve make cross to build windows/arm64 --- Makefile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index c0d1431..9aa81d7 100644 --- a/Makefile +++ b/Makefile @@ -25,11 +25,8 @@ $(GOBIN)/gobump: .PHONY: cross cross: $(GOBIN)/goxz CREDITS - build() { \ - goxz -n $(BIN) -pv=v$(VERSION) -os=$$1 -arch=$$2 \ - -include _$(BIN) -build-ldflags=$(BUILD_LDFLAGS) ./cmd/$(BIN); \ - }; \ - build linux,darwin,windows amd64 && build linux,darwin arm64 + goxz -n $(BIN) -pv=v$(VERSION) -include _$(BIN) -arch=amd64,arm64 \ + -build-ldflags=$(BUILD_LDFLAGS) ./cmd/$(BIN) $(GOBIN)/goxz: go install github.com/Songmu/goxz/cmd/goxz@latest