Skip to content

Commit

Permalink
Add sentinel target for build_registry_docs
Browse files Browse the repository at this point in the history
  • Loading branch information
danielrbradley committed Nov 22, 2024
1 parent a87b7d5 commit 2609752
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
9 changes: 6 additions & 3 deletions provider-ci/internal/pkg/templates/bridged-provider/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ development: .make/install_plugins provider build_sdks install_sdks

build: .make/install_plugins provider build_sdks install_sdks

build_sdks: #{{ range .Config.Languages }}#build_#{{ . }}# #{{ end }}##{{- if .Config.RegistryDocs }}#build_registry_docs#{{- end }}#
build_sdks: #{{ range .Config.Languages }}#build_#{{ . }}# #{{ end }}##{{- if .Config.RegistryDocs }}#.make/build_registry_docs#{{- end }}#

install_go_sdk:

Expand Down Expand Up @@ -122,11 +122,14 @@ build_python: .make/upstream
./venv/bin/python -m pip install build==1.2.1 && \
cd ./bin && \
../venv/bin/python -m build .
#{{- if .Config.RegistryDocs }}#

#{{- if .Config.RegistryDocs }}#
# Run the bridge's registry-docs command to generated the content of the installation docs/ folder at provider repo root
build_registry_docs:
.PHONY: build_registry_docs
build_registry_docs: .make/build_registry_docs
.make/build_registry_docs:
$(WORKING_DIR)/bin/$(TFGEN) registry-docs --out $(WORKING_DIR)/docs
@touch $@
#{{- end }}#

.PHONY: clean
Expand Down
8 changes: 5 additions & 3 deletions provider-ci/test-providers/cloudflare/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ development: .make/install_plugins provider build_sdks install_sdks

build: .make/install_plugins provider build_sdks install_sdks

build_sdks: build_nodejs build_python build_dotnet build_go build_java build_registry_docs
build_sdks: build_nodejs build_python build_dotnet build_go build_java .make/build_registry_docs

install_go_sdk:

Expand Down Expand Up @@ -106,10 +106,12 @@ build_python: .make/upstream
./venv/bin/python -m pip install build==1.2.1 && \
cd ./bin && \
../venv/bin/python -m build .

# Run the bridge's registry-docs command to generated the content of the installation docs/ folder at provider repo root
build_registry_docs:
.PHONY: build_registry_docs
build_registry_docs: .make/build_registry_docs
.make/build_registry_docs:
$(WORKING_DIR)/bin/$(TFGEN) registry-docs --out $(WORKING_DIR)/docs
@touch $@

.PHONY: clean
clean:
Expand Down
8 changes: 5 additions & 3 deletions provider-ci/test-providers/docker/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ development: .make/install_plugins provider build_sdks install_sdks

build: .make/install_plugins provider build_sdks install_sdks

build_sdks: build_nodejs build_python build_dotnet build_go build_java build_registry_docs
build_sdks: build_nodejs build_python build_dotnet build_go build_java .make/build_registry_docs

install_go_sdk:

Expand Down Expand Up @@ -106,10 +106,12 @@ build_python: .make/upstream
./venv/bin/python -m pip install build==1.2.1 && \
cd ./bin && \
../venv/bin/python -m build .

# Run the bridge's registry-docs command to generated the content of the installation docs/ folder at provider repo root
build_registry_docs:
.PHONY: build_registry_docs
build_registry_docs: .make/build_registry_docs
.make/build_registry_docs:
$(WORKING_DIR)/bin/$(TFGEN) registry-docs --out $(WORKING_DIR)/docs
@touch $@

.PHONY: clean
clean:
Expand Down

0 comments on commit 2609752

Please sign in to comment.