Skip to content

Commit

Permalink
feat(Makefile): build CLI simpler & faster
Browse files Browse the repository at this point in the history
Signed-off-by: Salim Afiune Maya <afiune@lacework.net>
  • Loading branch information
afiune committed Nov 8, 2023
1 parent d92b2af commit d5969ab
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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}}" \
Expand Down

0 comments on commit d5969ab

Please sign in to comment.