From 711041046554b4c35f5cde98b2afa245b9093ff4 Mon Sep 17 00:00:00 2001 From: Thomas Spear Date: Thu, 24 Aug 2023 11:40:08 -0500 Subject: [PATCH] Allow use of custom build args Signed-off-by: Thomas Spear --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index f8f7a28..02b1522 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ SHELL=/bin/bash -o pipefail GO ?= go +BUILD_ARGS ?= build HELM ?= helm CHART_SOURCE_DIR ?= $(shell pwd)/../charts/falco-exporter @@ -8,7 +9,7 @@ TEST_FLAGS ?= -v -race .PHONY: falco-exporter falco-exporter: - $(GO) build ./cmd/falco-exporter + $(GO) $(BUILD_ARGS) ./cmd/falco-exporter .PHONY: deploy/k8s deploy/k8s: @@ -20,4 +21,4 @@ deploy/k8s: .PHONY: test test: $(GO) vet ./... - $(GO) test ${TEST_FLAGS} ./... \ No newline at end of file + $(GO) test ${TEST_FLAGS} ./...