2021-08-26 00:18:13 +02:00
SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build
SOURCEDIR = .
BUILDDIR = _build
2021-09-20 21:00:42 +02:00
html : Makefile graphics generated_markdown
2021-08-26 00:18:13 +02:00
@$( SPHINXBUILD) -M $@ " $( SOURCEDIR) " " $( BUILDDIR) " $( SPHINXOPTS) $( O)
2021-09-20 21:00:42 +02:00
pdf : Makefile graphics generated_markdown
2021-08-26 00:18:13 +02:00
@$( SPHINXBUILD) -M $@ " $( SOURCEDIR) " " $( BUILDDIR) " $( SPHINXOPTS) $( O)
2021-09-20 21:00:42 +02:00
.PHONY : graphics generated_markdown clean Makefile
2021-08-26 00:18:13 +02:00
SVG_FILES = \
providers/resource-lifecycle.svg \
architecture/construct.svg \
architecture/create.svg \
architecture/delete-before-replace-graph.svg \
architecture/delete-before-replace.svg \
architecture/import.svg \
architecture/replace.svg \
architecture/same.svg \
2021-10-07 21:14:37 +02:00
architecture/update.svg \
architecture/pulumi-import.svg
2021-08-26 00:18:13 +02:00
%.svg : %.uml
plantuml -tsvg $<
graphics : Makefile $( SVG_FILES )
2021-08-27 19:55:06 +02:00
2021-09-20 21:00:42 +02:00
MD_FILES = \
2021-09-22 06:37:06 +02:00
architecture/deployment-schema.md \
2021-09-20 21:00:42 +02:00
providers/metaschema.md
generated_markdown : Makefile $( MD_FILES )
providers/metaschema.md : utils /jsonschema 2md .go ../pkg /codegen /schema /pulumi .json
go run ./utils/jsonschema2md.go < ../pkg/codegen/schema/pulumi.json >providers/metaschema.md
2021-09-22 06:37:06 +02:00
architecture/deployment-schema.md : utils /jsonschema 2md .go ../sdk /go /common /apitype /*.json
go run ./utils/jsonschema2md.go -title "Deployment Schema" -ids "https://github.com/pulumi/pulumi/blob/master/sdk/go/common/apitype/deployments.json=-,https://github.com/pulumi/pulumi/blob/master/sdk/go/common/apitype/resources.json=../sdk/go/common/apitype/resources.json,https://github.com/pulumi/pulumi/blob/master/sdk/go/common/apitype/property-values.json=../sdk/go/common/apitype/property-values.json" <../sdk/go/common/apitype/deployments.json >architecture/deployment-schema.md
2021-08-27 19:55:06 +02:00
clean :
rm -rf $( BUILDDIR) /*