make: autodetect host platform (#2322)

---
*Sponsored by Kithara Software GmbH*
This commit is contained in:
6543 2023-08-24 00:24:16 +02:00 committed by GitHub
parent c973099c99
commit 76f932878c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)