From d59dc3da537535e65e3bbde81710992727fb61d2 Mon Sep 17 00:00:00 2001 From: Michael Schurter Date: Wed, 19 Oct 2022 10:27:47 -0700 Subject: [PATCH] build: add ability to specify release targets (#14957) My make knowledge is very very limited, so if there's a better way to do this please let me know! This seems to work and lets me cut one off builds easily. --- GNUmakefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/GNUmakefile b/GNUmakefile index 0ab6bc6fb..8c55531ef 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -75,6 +75,11 @@ ifeq (FreeBSD,$(THIS_OS)) ALL_TARGETS = freebsd_amd64 endif +# Allow overriding ALL_TARGETS via $TARGETS +ifdef TARGETS +ALL_TARGETS = $(TARGETS) +endif + SUPPORTED_OSES = Darwin Linux FreeBSD Windows MSYS_NT CGO_ENABLED = 1