From 0638a9e764be7ba11792985d7d09bed4ef5da375 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 --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index a4d7f68..9ce7f7f 100644 --- a/Makefile +++ b/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/