@@ -48,19 +48,16 @@ SIDECAR_TAG ?= localhost:5005/cosi-provisioner-sidecar:dev-$(shell git describe
48
48
# #@ Development
49
49
50
50
.PHONY : generate
51
- generate : controller/Dockerfile sidecar/Dockerfile # # Generate files
51
+ generate : crd-ref-docs controller/Dockerfile sidecar/Dockerfile # # Generate files
52
52
$(MAKE ) -C client crds
53
53
$(MAKE ) -C proto generate
54
- $(MAKE ) api-docs
55
- % /Dockerfile : hack/Dockerfile.in hack/gen-dockerfile.sh
56
- hack/gen-dockerfile.sh $* > " $@ "
57
- .PHONY : api-docs
58
- api-docs : crd-ref-docs
59
54
$(CRD_REF_DOCS ) \
60
55
--config=./docs/.crd-ref-docs.yaml \
61
56
--source-path=./client/apis \
62
57
--renderer=markdown \
63
58
--output-path=./docs/src/api/
59
+ % /Dockerfile : hack/Dockerfile.in hack/gen-dockerfile.sh
60
+ hack/gen-dockerfile.sh $* > " $@ "
64
61
65
62
.PHONY : codegen
66
63
codegen : codegen.client codegen.proto # # Generate code
@@ -116,13 +113,13 @@ build.sidecar: sidecar/Dockerfile ## Build only the sidecar container image
116
113
$(DOCKER ) build --file sidecar/Dockerfile --platform $(PLATFORM ) $(BUILD_ARGS ) --tag $(SIDECAR_TAG ) .
117
114
118
115
.PHONY : build-docs
119
- build-docs : mdbook api-docs
116
+ build-docs : generate mdbook
120
117
cd docs; $(MDBOOK ) build
121
118
122
119
MDBOOK_PORT ?= 3000
123
120
124
121
.PHONY : serve-docs
125
- serve-docs : mdbook api-docs
122
+ serve-docs : generate mdbook
126
123
cd docs; $(MDBOOK ) serve --port $(MDBOOK_PORT )
127
124
128
125
.PHONY : clean
@@ -213,7 +210,7 @@ $(KUSTOMIZE)-$(KUSTOMIZE_VERSION): $(TOOLBIN)
213
210
.PHONY : mdbook
214
211
mdbook : $(MDBOOK ) -$(MDBOOK_VERSION )
215
212
$(MDBOOK ) -$(MDBOOK_VERSION ) : $(TOOLBIN )
216
- ./hack/mdbook.sh $(MDBOOK ) $(MDBOOK_VERSION )
213
+ ./hack/install- mdbook.sh $(MDBOOK ) $(MDBOOK_VERSION )
217
214
218
215
# go-install-tool will 'go install' any package with custom target and name of binary, if it doesn't exist
219
216
# $1 - target path with name of binary
0 commit comments