Skip to content

Commit

Permalink
fix gen
Browse files Browse the repository at this point in the history
Signed-off-by: zirain <zirain2009@gmail.com>
  • Loading branch information
zirain committed Feb 4, 2025
1 parent dca882c commit efb16a0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tools/make/common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export USAGE_OPTIONS

.PHONY: generate
generate: ## Generate go code from templates and tags
generate: kube-generate docs-api helm-generate go.generate copy-current-release-docs
generate: kube-generate docs-api helm-generate go.generate copy-current-release-docs kube-generate-examples

## help: Show this help info.
.PHONY: help
Expand Down
9 changes: 8 additions & 1 deletion tools/make/examples.mk
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,17 @@ EXAMPLE_IMAGE_PREFIX ?= envoyproxy/gateway-
EXAMPLE_TAG ?= latest

sync-examples-tools:
@$(LOG_TARGET)
@cp -r tools/src/controller-gen examples/extension-server/tools/src

kube-generate-examples: sync-examples-tools
@$(LOG_TARGET)
@pushd $(ROOT_DIR)/examples/extension-server; \
make generate; \
popd

.PHONY: kube-build-examples-image
kube-build-examples-image: sync-examples-tools
kube-build-examples-image:
@$(LOG_TARGET)
@for app in $(EXAMPLE_APPS); do \
pushd $(ROOT_DIR)/examples/$$app; \
Expand Down

0 comments on commit efb16a0

Please sign in to comment.