Makefile in datadog_api_client-1.6.0 vs Makefile in datadog_api_client-1.7.0

- old
+ new

@@ -1,18 +1,15 @@ .PHONY: all all: .generator .env - @rm -rf ./lib/v1 ./lib/v2 ./spec/v1/api ./spec/v1/models ./spec/v2/api ./spec/v2/models + @rm -rf ./lib/datadog_api_client/v1 ./lib/datadog_api_client/v2 ./examples/generated @pre-commit run --all-files --hook-stage=manual openapi-generator || true - @mkdir -p docs/v1 docs/v2 spec/v1 spec/v2 + @mkdir -p spec/v1 spec/v2 examples/generated/v1 examples/generated/v2 @cp -R v1/lib/datadog_api_client ./lib/ @cp -R v2/lib/datadog_api_client ./lib/ @rm lib/datadog_api_client/v*/version.rb - @cp -nR v1/spec/*_spec.rb v1/spec/api v1/spec/models ./spec/v1/ || true - @cp -nR v2/spec/*_spec.rb v2/spec/api v2/spec/models ./spec/v2/ || true - @cp -R v1/docs/* ./docs/v1/ - @cp -R v2/docs/* ./docs/v2/ - @cp v1/README.md ./docs/v1/ - @cp v2/README.md ./docs/v2/ + @ls v1/docs/*API.md | grep -v IPPrefixesAPI.md | xargs -n1 ./extract-code-blocks.awk -v output="examples/generated/v1" + @ls v2/docs/*API.md | grep -v IPPrefixesAPI.md | xargs -n1 ./extract-code-blocks.awk -v output="examples/generated/v2" + @pre-commit run --all-files --hook-stage=manual format-examples || true @rm -rf v1 v2 @pre-commit run --all-files --hook-stage=manual docs || echo "modified files" .PHONY: .env .env: