From 644cc23d6ab642d3b8b58f5e6eb2868081ef5ef0 Mon Sep 17 00:00:00 2001 From: HIROSE Masaaki Date: Fri, 24 Feb 2023 20:44:05 +0900 Subject: [PATCH] Fix make cross --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index e502134..d98ad71 100644 --- a/Makefile +++ b/Makefile @@ -58,8 +58,8 @@ endif .PHONY: cross cross: devel-deps ## build for cross platforms - goxz -arch amd64,arm64 -os linux,darwin -n $(BIN) -pv=v$(VERSION) -build-ldflags=$(BUILD_LDFLAGS) -trimpath . - goxz -arch amd64 -os windows -n $(BIN) -pv=v$(VERSION) -build-ldflags=$(BUILD_LDFLAGS) -trimpath . + goxz -arch amd64,arm64 -os linux,darwin -n $(BIN) -pv=v$(VERSION) -build-ldflags=$(BUILD_LDFLAGS) -trimpath $(MAIN) + goxz -arch amd64 -os windows -n $(BIN) -pv=v$(VERSION) -build-ldflags=$(BUILD_LDFLAGS) -trimpath $(MAIN) .PHONY: upload upload: devel-deps ## upload