Skip to content

Commit cc70178

Browse files
committed
fix(makefile): update OpenAPI submodule handling in generate target
1 parent 67b5ec2 commit cc70178

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎Makefile‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ help: ## Show this help message
1515
@echo 'Targets:'
1616
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z0-9_-]+:.*?## / {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
1717

18+
update-openapi:
19+
git submodule sync --recursive
20+
git submodule update --init --recursive --remote --checkout mist_openapi
21+
1822
setup-openapi: ## Initialize or update OpenAPI submodule
1923
@if [ ! -d "mist_openapi/.git" ]; then \
2024
echo "Initializing OpenAPI submodule..."; \
@@ -23,7 +27,7 @@ setup-openapi: ## Initialize or update OpenAPI submodule
2327
@echo "Updating OpenAPI submodule..."; \
2428
git submodule update --remote mist_openapi
2529

26-
generate: setup-openapi ## Run the code generation script
30+
generate: update-openapi ## Run the code generation script
2731
echo "Updating version in pyproject.toml to $(VERSION)"
2832
sed -e "s/version = .*/version = \"$(VERSION)\"/g" pyproject.toml > new_pyproject.toml
2933
mv new_pyproject.toml pyproject.toml

0 commit comments

Comments
 (0)