From: Ian Jackson Date: Sun, 23 May 2021 14:58:00 +0000 (+0100) Subject: Makefile: Hardlink example bundles into docs X-Git-Tag: otter-0.6.0~8 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=588136e64c93acb87e3938d3e841a9cb4dd53e22;p=otter.git Makefile: Hardlink example bundles into docs Signed-off-by: Ian Jackson --- diff --git a/Makefile b/Makefile index ecd8cbb2..ff0646b2 100644 --- a/Makefile +++ b/Makefile @@ -234,13 +234,17 @@ stamp/cargo.deploy-build: $(call rsrcs,.) #---------- sphnix ---------- -doc-sphinx: docs/html/index.html +doc-sphinx: docs/html/index.html \ + $(foreach f, $(EXAMPLE_BUNDLES), docs/html/$f.zip) @echo 'Documentation can now be found here:' @echo ' file://$(PWD)/$<' docs/html/index.html: docs/conf.py $(wildcard docs/*.md docs/*.rst docs/*.png) $(SPHINXBUILD) -M html docs docs $(SPHINXOPTS) +docs/html/%.zip: examples/%.zip + rm -f $@ && ln $< $@ + #---------- wasm ---------- $(addprefix $(WASM_PACKED)/,$(WASM_ASSETS) $(WASM_OUTPUTS)): stamp/wasm-bindgen