chiark / gitweb /
Makefile: Know how to make shapelib.html
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 12 Jan 2021 19:38:15 +0000 (19:38 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 12 Jan 2021 20:18:59 +0000 (20:18 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
.gitignore
Makefile

index 8cbc7842190454541a98f0c8e6eb39a165685c2b..b6e7fffc79c15f02a1f5c79398eaf2fb9aa7c30a 100644 (file)
@@ -6,6 +6,7 @@ templates/AGPLv3
 templates/CC-BY-SA-3.0
 templates/CC-BY-SA-4.0
 templates/otter_wasm.ns.d.ts
+templates/shapelib.html
 save/lock
 /library/*/files.make
 /library/*/*.usvg
index aeaef80eeb4c09abe31f2e993f891e55c15287eb..338b3597cedc026133aa165567442843984da772 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -268,6 +268,12 @@ $(addprefix templates/,$(TXTFILES)): templates/%: %.txt
 
 libraries: $(LIBRARY_FILES)
 
+templates/shapelib.html: stamp/cargo.debug
+       $(NAILING_CARGO) --just-run --- \
+               $(abspath $(TARGET_DIR))/debug/otterlib \
+       --libs '$(addprefix $(PWD)/, $(addsuffix .toml, $(LIBRARIES)))' \
+               preview >$@.tmp && mv -f $@.tmp $@
+
 #---------- webdriver tests (wdt) ----------
 
 WDT_TESTS := $(basename $(notdir $(wildcard wdriver/wdt-*.rs)))