From 53b81cad4590e5e0cd7195c885a4845c32d690b0 Mon Sep 17 00:00:00 2001 From: Jeev B Date: Wed, 12 Apr 2023 10:43:06 -0700 Subject: [PATCH] fix makefile to read variables from environment and overrides (#104) Signed-off-by: Jeev B --- datacalog/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/datacalog/Makefile b/datacalog/Makefile index a4d7f680fd..9ce7f7fd6a 100644 --- a/datacalog/Makefile +++ b/datacalog/Makefile @@ -13,8 +13,8 @@ compile: go build -o datacatalog ./cmd/main.go && mv ./datacatalog ./bin .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/datacatalog ./cmd/