Skip to content

Commit

Permalink
Build bin/builder each time the target is invoked (vmware-tanzu#261)
Browse files Browse the repository at this point in the history
Fixes vmware-tanzu#260

Signed-off-by: Marc Khouzam <kmarc@vmware.com>
  • Loading branch information
marckhouzam authored and vuil committed May 16, 2023
1 parent 06da46d commit aad175f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,9 @@ build-cli-%: ##Build the Tanzu Core CLI for a platform
## Plugins-specific
## --------------------------------------

BUILDER := $(ROOT_DIR)/bin/builder
BUILDER_SRC := $(shell find cmd/plugin/builder -type f -print)
$(BUILDER): $(BUILDER_SRC)
cd cmd/plugin/builder && $(GO) build -o $(BUILDER) .

.PHONY: prepare-builder
prepare-builder: $(BUILDER) ## Build Tanzu CLI builder plugin
prepare-builder: ## Build Tanzu CLI builder plugin
cd cmd/plugin/builder && $(GO) build -o $(ROOT_DIR)/bin/builder .

## --------------------------------------
## OS Packages
Expand Down

0 comments on commit aad175f

Please sign in to comment.