From 76f932878c10d0a0f2435deffd87e3760cc621fc Mon Sep 17 00:00:00 2001 From: 6543 Date: Thu, 24 Aug 2023 00:24:16 +0200 Subject: [PATCH] make: autodetect host platform (#2322) --- *Sponsored by Kithara Software GmbH* --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 21e71225e..77a90bd8f 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)