Skip to content

Commit

Permalink
Merge pull request #4418 from sedefsavas/4407-2
Browse files Browse the repository at this point in the history
🌱 Minor CAPD Makefile cleanup
  • Loading branch information
k8s-ci-robot authored Mar 31, 2021
2 parents a224c4d + 60bea39 commit c770422
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,9 @@ $(KUSTOMIZE): # Build kustomize from tools folder.

envsubst: $(ENVSUBST) ## Build a local copy of envsubst.
kustomize: $(KUSTOMIZE) ## Build a local copy of kustomize.
controller-gen: $(CONTROLLER_GEN) ## Build a local copy of controller-gen.
conversion-gen: $(CONVERSION_GEN) ## Build a local copy of conversion-gen.
gotestsum: $(GOTESTSUM) ## Build a local copy of gotestsum.

.PHONY: e2e-framework
e2e-framework: ## Builds the CAPI e2e framework
Expand Down
11 changes: 7 additions & 4 deletions test/infrastructure/docker/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,14 @@ test-junit: $(GOTESTSUM) ## Run tests with verbose setting and generate a junit
manager: ## Build manager binary
go build -o $(BIN_DIR)/manager sigs.k8s.io/cluster-api/test/infrastructure/docker

$(CONTROLLER_GEN): $(TOOLS_DIR)/go.mod # Build controller-gen from tools folder.
cd $(TOOLS_DIR); go build -tags=tools -o $(BIN_DIR)/controller-gen sigs.k8s.io/controller-tools/cmd/controller-gen
$(CONTROLLER_GEN):
$(MAKE) -C $(ROOT) controller-gen

$(CONVERSION_GEN): $(TOOLS_DIR)/go.mod
cd $(TOOLS_DIR); go build -tags=tools -o $(BIN_DIR)/conversion-gen k8s.io/code-generator/cmd/conversion-gen
$(CONVERSION_GEN):
$(MAKE) -C $(ROOT) conversion-gen

$(GOTESTSUM):
$(MAKE) -C $(ROOT) gotestsum

## --------------------------------------
## Generate / Manifests
Expand Down

0 comments on commit c770422

Please sign in to comment.