Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
wasm-pack: stamp/wasm-pack
-assets: js libraries $(FILEASSETS)
+assets: js libraries stamp/wasm-pack $(FILEASSETS)
js: templates/script.js
# 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/' <$<; \