Skip to content

Commit

Permalink
feat(oapi): add docs prerequisite (#12697)
Browse files Browse the repository at this point in the history
## Motivation

I need another target to modify the copied Kuma schema in parent project
for Kong/kong-mesh#7370

## Implementation information

Add a target dependency as a variable.

Signed-off-by: slonka <[email protected]>
  • Loading branch information
slonka authored Jan 28, 2025
1 parent 7f7598d commit 9e88d5a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mk/docs.mk
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
DOCS_PROTOS ?= api/mesh/v1alpha1/*.proto
DOCS_CP_CONFIG ?= pkg/config/app/kuma-cp/kuma-cp.defaults.yaml
DOCS_EXTRA_TARGETS ?=
DOCS_OPENAPI_PREREQUISITES ?=

.PHONY: clean/docs
clean/docs:
Expand Down Expand Up @@ -32,7 +33,7 @@ OAPI_TMP_DIR ?= $(BUILD_DIR)/oapitmp
API_DIRS="$(TOP)/api/openapi/specs:base"

.PHONY: docs/generated/openapi.yaml
docs/generated/openapi.yaml:
docs/generated/openapi.yaml: $(DOCS_OPENAPI_PREREQUISITES)
rm -rf $(OAPI_TMP_DIR)
mkdir -p $(dir $@)
mkdir -p $(OAPI_TMP_DIR)/policies
Expand Down

0 comments on commit 9e88d5a

Please sign in to comment.