Sha256: fbc150c89d19588125ff2d7fdb26194fd580ad1aeda8adbce16e43231c069fef

Contents?: true

Size: 807 Bytes

Versions: 1

Compression:

Stored size: 807 Bytes

Contents

.PHONY: all
all: .generator .env
	@rm -rf ./lib/v1 ./lib/v2 ./spec/v1/api ./spec/v1/models ./spec/v2/api ./spec/v2/models
	@pre-commit run --all-files --hook-stage=manual openapi-generator || true
	@mkdir -p docs/v1 docs/v2 spec/v1 spec/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/
	@rm -rf v1 v2
	@pre-commit run --all-files --hook-stage=manual docs || echo "modified files"

.PHONY: .env
.env:
	@echo "export UID=$(shell id -u)\nexport GID=$(shell id -g)" > $@

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
datadog_api_client-1.6.0 Makefile