From 2b94ce18e3cfd9df5616c5a96a2fcc8443bacc0a Mon Sep 17 00:00:00 2001 From: "m.huber" Date: Wed, 23 Aug 2023 16:55:36 +0200 Subject: [PATCH] make: autodetect host platform --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 21e71225e5..77a90bd8fe 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ GO_PACKAGES ?= $(shell go list ./... | grep -v /vendor/) -TARGETOS ?= linux -TARGETARCH ?= amd64 +TARGETOS ?= $(shell go env GOOS) +TARGETARCH ?= $(shell go env GOARCH) BIN_SUFFIX := ifeq ($(TARGETOS),windows)