From e0766c324a09898554e25af1cca7ca24aa5afa07 Mon Sep 17 00:00:00 2001 From: Jeev B Date: Tue, 11 Apr 2023 21:48:20 -0700 Subject: [PATCH] fix makefile to read variables from environment and overrides Signed-off-by: Jeev B --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 659ecb134..be00efaaf 100644 --- a/Makefile +++ b/Makefile @@ -9,8 +9,8 @@ update_boilerplate: @boilerplate/update.sh .PHONY: linux_compile -linux_compile: export CGO_ENABLED = 0 -linux_compile: export GOOS = linux +linux_compile: export CGO_ENABLED ?= 0 +linux_compile: export GOOS ?= linux linux_compile: go build -o /artifacts/flytepropeller ./cmd/controller/main.go go build -o /artifacts/flytepropeller-manager ./cmd/manager/main.go