diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2022-12-28 16:17:06 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-01-27 16:43:43 +0100 |
| commit | 41d16fb4910fc0402b6b081302c953f7dabc8cf9 (patch) | |
| tree | 334507bffb28b11760907e04c95602b9fa29efb8 /html/Makefile | |
| parent | 7f7389422834f628c9e45278e90fab6911173b25 (diff) | |
| download | muhqs-game-41d16fb4910fc0402b6b081302c953f7dabc8cf9.tar.gz muhqs-game-41d16fb4910fc0402b6b081302c953f7dabc8cf9.zip | |
add random tile selection from map to the web tools
Diffstat (limited to 'html/Makefile')
| -rw-r--r-- | html/Makefile | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/html/Makefile b/html/Makefile index 3c969595..9188c4a5 100644 --- a/html/Makefile +++ b/html/Makefile @@ -10,6 +10,7 @@ MAKEFILE_DIR := $(dir $(MAKEFILE_PATH)) HTML_ROOT := $(MAKEFILE_DIR) GAME_ROOT := $(MAKEFILE_DIR).. +GO_ROOT := $(GAME_ROOT)/go RULES_ROOT := $(GAME_ROOT)/rules MAPS_ROOT := $(GAME_ROOT)/maps DATA_ROOT := $(GAME_ROOT)/data @@ -55,12 +56,21 @@ CARDS_YAML := $(foreach dir,$(SETS_SOURCEDIRS),$(wildcard $(dir)/*.yml)) MAKEFILE_LIST := Makefile +FILES_TO_COPY := wasm_exec.js hover-placeholder.png tools.html +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 $(BUILDDIR)/hover-placeholder.png +misc: $(BUILDDIR)/latex-build $(BUILDDIR)/cards-data $(FILES_TO_COPY_TARGETS) \ + $(BUILDDIR)/webtools.wasm + +$(BUILDDIR)/webtools.wasm: + @echo "creating symlink $@" + @if test \( ! \( -d $(@D) \) \) ;then mkdir -p $(@D);fi + ln -s $(GO_ROOT)/webtools/webtools.wasm $@ -$(BUILDDIR)/hover-placeholder.png: hover-placeholder.png +$(FILES_TO_COPY_TARGETS): $(BUILDDIR)/%: % @echo "copying $@" @if test \( ! \( -d $(@D) \) \) ;then mkdir -p $(@D);fi $(VERBOSE) cp $< $@ @@ -73,11 +83,6 @@ maps: $(VERBOSE) ln -sfT $(MAPS_ROOT) $(BUILDDIR)/maps $(VERBOSE) $(MAKE) -C $(MAPS_ROOT) -$(BUILDDIR)/tools.html: tools.html - @echo "copying $@" - @if test \( ! \( -d $(@D) \) \) ;then mkdir -p $(@D);fi - $(VERBOSE) cp $< $@ - $(BUILDDIR)/latex-build: @echo "render cards" $(VERBOSE) $(MAKE) -C $(LATEX_ROOT) |
