aboutsummaryrefslogtreecommitdiff
path: root/html/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'html/Makefile')
-rw-r--r--html/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/html/Makefile b/html/Makefile
index 25997e88..e28c9dee 100644
--- a/html/Makefile
+++ b/html/Makefile
@@ -66,10 +66,13 @@ all: $(HTML) $(RULES_HTML) maps misc $(BLOG_POSTS_HTML)
misc: $(BUILDDIR)/latex-build $(BUILDDIR)/cards-data $(FILES_TO_COPY_TARGETS) \
$(BUILDDIR)/webtools.wasm
-$(BUILDDIR)/webtools.wasm:
+wasm_exec.js: $(shell go env GOROOT)/lib/wasm/wasm_exec.js
+ cp $< $@
+
+$(BUILDDIR)/%.wasm:
@echo "creating symlink $@"
@if test \( ! \( -d $(@D) \) \) ;then mkdir -p $(@D);fi
- ln -s $(GO_ROOT)/webtools/webtools.wasm $@
+ ln -s $(GO_ROOT)/$(*F)/$(*F).wasm $@
$(FILES_TO_COPY_TARGETS): $(BUILDDIR)/%: %
@echo "copying $@"