From d5969abbff31168e7efb646bd1e58d86add46bf0 Mon Sep 17 00:00:00 2001 From: Salim Afiune Maya Date: Tue, 7 Nov 2023 14:31:02 -0800 Subject: [PATCH] feat(Makefile): build CLI simpler & faster Signed-off-by: Salim Afiune Maya --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 2e7f0c0e1..4f3683585 100644 --- a/Makefile +++ b/Makefile @@ -158,6 +158,10 @@ run-api-example: ## Run an API example like 'make run-api-example example=api/_e LW_SUBACCOUNT=$(shell lacework configure show subaccount) \ go run $(example) +.PHONY: build +build: ## Compiles binary for the running workstation + go build -o bin/lacework -ldflags=$(GO_LDFLAGS) github.com/lacework/go-sdk/cli + .PHONY: build-cli-cross-platform build-cli-cross-platform: ## Compiles the Lacework CLI for all supported platforms gox -output="bin/$(PACKAGENAME)-{{.OS}}-{{.Arch}}" \