chiark / gitweb /
fix wasm-pack deps
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 10 Oct 2020 22:58:38 +0000 (23:58 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 10 Oct 2020 22:58:38 +0000 (23:58 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Makefile

index 63e52690da42595df46a5d99e67e365d7a571c32..edcece761ef03669e5d29e81f225c4418193af30 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -96,7 +96,7 @@ cargo-wasm: cargo-wasm-release
 
 wasm-pack: stamp/wasm-pack
 
-assets: js libraries $(FILEASSETS)
+assets: js libraries stamp/wasm-pack $(FILEASSETS)
 
 js: templates/script.js
 
@@ -194,7 +194,8 @@ templates/script.js: $(TS_SRC_FILES)
 #      nodejs <$<
 #      @echo 'nodejs check $< ok'
 
-templates/otter_wasm.ns.d.ts: $(WASM_PACKED)/otter_wasm.d.ts Makefile
+templates/otter_wasm.ns.d.ts: $(WASM_PACKED)/otter_wasm.d.ts \
+                               stamp/wasm-pack Makefile
        set -e; exec >$@.tmp;                           \
        echo 'declare namespace wasm_bindgen {';        \
        sed 's/^export default function init/export function init/' <$<; \