Skip to content

Commit

Permalink
Add go-get-tool function in makefile of KubeArmorOperator
Browse files Browse the repository at this point in the history
Signed-off-by: Mohammed Affan <[email protected]>
  • Loading branch information
Affan-7 authored and daemon1024 committed Jan 9, 2025
1 parent 467a869 commit 004ef4c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkg/KubeArmorOperator/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@ endif
SHELL = /usr/bin/env bash -o pipefail
.SHELLFLAGS = -ec

# Define a function to download a go tool if it is not installed.
define go-get-tool
@[ -f $(1) ] || { \
set -e; \
echo "Downloading $(2)" ;\
go install $(2) ;\
}
endef

.PHONY: all
all: get snitch kubearmor-operator

Expand Down

0 comments on commit 004ef4c

Please sign in to comment.