diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2025-07-28 23:45:04 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-07-28 23:45:04 +0200 |
| commit | 1684bf36393c2d996866d45722f9d262c507c752 (patch) | |
| tree | b39b0358e556ac83c09c28287e91963c0c7e62a5 /html/Makefile | |
| parent | 2b31c5691ad273e400c3ab61e499b146b7e8245e (diff) | |
| download | muhqs-game-draftsim.tar.gz muhqs-game-draftsim.zip | |
adapt html Makefile and recvDraftRates.jsdraftsim
Diffstat (limited to 'html/Makefile')
| -rw-r--r-- | html/Makefile | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/html/Makefile b/html/Makefile index ea38b578..07121f77 100644 --- a/html/Makefile +++ b/html/Makefile @@ -71,8 +71,12 @@ FILES_TO_COPY_TARGETS := $(addprefix $(BUILDDIR)/,$(FILES_TO_COPY)) .PHONY: all clean maps misc all: $(HTML) $(RULES_HTML) maps misc $(BLOG_POSTS_HTML) -misc: $(BUILDDIR)/latex-build $(BUILDDIR)/cards-data $(FILES_TO_COPY_TARGETS) \ - $(BUILDDIR)/webtools.wasm $(BUILDDIR)/boss/ai-companion.wasm \ +misc: $(BUILDDIR)/latex-build \ + $(BUILDDIR)/cards-data \ + $(FILES_TO_COPY_TARGETS) \ + $(BUILDDIR)/webtools.wasm \ + $(BUILDDIR)/boss/ai-companion.wasm \ + $(BUILDDIR)/draftsim.wasm \ $(BUILDDIR)/feed.rss js/wasm_exec.js js/wasm_exec.js: $(shell go env GOROOT)/lib/wasm/wasm_exec.js @@ -83,6 +87,11 @@ $(BUILDDIR)/%.wasm: @if test \( ! \( -d $(@D) \) \) ;then mkdir -p $(@D);fi ln -s $(GO_ROOT)/$(*F)/$(*F).wasm $@ +$(BUILDDIR)/draftsim.wasm: + @echo "creating symlink $@" + @if test \( ! \( -d $(@D) \) \); then mkdir -p $(@D);fi + ln -s $(GO_ROOT)/draftsim/client/client.wasm $@ + $(FILES_TO_COPY_TARGETS): $(BUILDDIR)/%: % @echo "copying $@" @if test \( ! \( -d $(@D) \) \) ;then mkdir -p $(@D);fi |
