From 588136e64c93acb87e3938d3e841a9cb4dd53e22 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 23 May 2021 15:58:00 +0100 Subject: [PATCH] Makefile: Hardlink example bundles into docs Signed-off-by: Ian Jackson --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 2.30.2