From: Ian Jackson Date: Mon, 11 Apr 2022 20:32:28 +0000 (+0100) Subject: dice: Generate cooldown template using extractor X-Git-Tag: otter-1.1.0~577 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=1643c29a61d494acbfbc947a3722aa2d5c8c59c6;p=otter.git dice: Generate cooldown template using extractor Signed-off-by: Ian Jackson --- diff --git a/.gitignore b/.gitignore index 48a9034b..b665e109 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,7 @@ templates/CC-BY-SA-3.0 templates/CC-BY-SA-4.0 templates/otter_wasm.ns.d.ts templates/shapelib.html +nwtemplates/die-cooldown.tera save/lock /examples/test-bundle.zip /examples/big-bundle diff --git a/Makefile b/Makefile index ba9fa87a..88f86e62 100644 --- a/Makefile +++ b/Makefile @@ -129,7 +129,8 @@ TXTFILES= CC-BY-SA-3.0 CC-BY-SA-4.0 FILEASSETS = $(addprefix templates/, libre shapelib.html script.js \ $(LITFILES) $(TXTFILES)) \ - $(wildcard templates/*.tera) + $(wildcard templates/*.tera) \ + nwtemplates/die-cooldown.tera WASM := wasm32-unknown-unknown # ^ todo: Is this still right after @@ -370,6 +371,9 @@ templates/shapelib.html: $(TARGET_DIR)/debug/otterlib $(LIBRARY_FILES) --libs '$(addprefix $(PWD)/, $(addsuffix .toml, $(LIBRARIES)))' \ preview >$@.tmp && mv -f $@.tmp $@ +nwtemplates/die-cooldown.tera: dice/cooldown-template-extractor dice/die.svg + ./$< $@.tmp && mv -f $@.tmp $@ + #---------- examples ---------- EXAMPLE_BUNDLE_INPUT_DEPS := $(shell \