Skip to content

Commit edf85cd

Browse files
committed
fixup! feat: added make targets to manage tools
1 parent cb5cd45 commit edf85cd

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Makefile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ CONTROLLER_TAG ?= cosi-controller:latest
4141
## Image tag for sidecar image build
4242
SIDECAR_TAG ?= cosi-provisioner-sidecar:latest
4343

44+
## Location to install dependencies to
45+
TOOLBIN ?= $(CURDIR)/.cache/tools
46+
$(TOOLBIN):
47+
mkdir -p $(TOOLBIN)
48+
4449
##@ Development
4550

4651
.PHONY: all .gen
@@ -95,6 +100,7 @@ clean:
95100
## Clean build environment and cached tools
96101
clobber:
97102
$(MAKE) -C proto clobber
103+
rm -rf $(TOOLBIN)
98104
rm -rf $(CURDIR)/.cache
99105

100106
##
@@ -153,11 +159,6 @@ undeploy: kustomize ## Undeploy controller from the K8s cluster specified in ~/.
153159

154160
##@ Tools
155161

156-
## Location to install dependencies to
157-
TOOLBIN ?= $(CURDIR)/.cache/tools
158-
$(TOOLBIN):
159-
mkdir -p $(TOOLBIN)
160-
161162
## Tool Binaries
162163
CHAINSAW ?= $(TOOLBIN)/chainsaw
163164
CTLPTL ?= $(TOOLBIN)/ctlptl

0 commit comments

Comments
 (0)