aboutsummaryrefslogtreecommitdiff
path: root/go/Makefile
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2022-12-28 16:17:06 +0100
committerFlorian Fischer <florian.fischer@muhq.space>2023-01-26 22:17:17 +0100
commit2f49c5e7030b63e8f4d2a8d0d4cb55691ef1fb3a (patch)
tree8458b1d9d560db6e32f80dbe666b61e85130b8e4 /go/Makefile
parent4400cbc329322ee7c0be154921cfe10dd9487752 (diff)
downloadmuhqs-game-2f49c5e7030b63e8f4d2a8d0d4cb55691ef1fb3a.tar.gz
muhqs-game-2f49c5e7030b63e8f4d2a8d0d4cb55691ef1fb3a.zip
add random tile selection from map to the web tools
Diffstat (limited to 'go/Makefile')
-rw-r--r--go/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/go/Makefile b/go/Makefile
index 220a1022..0744d6c9 100644
--- a/go/Makefile
+++ b/go/Makefile
@@ -1,10 +1,11 @@
-PACKAGES := assets game server client
+PACKAGES := assets game server client webtools
APPS := server client
OBJS := $(foreach app,$(APPS),$(app)/$(app))
+WASM := client/client.wasm webtools/webtools.wasm
-.PHONY: all fmt test server/server client/client client/client.wasm
-all: $(OBJS)
+.PHONY: all fmt test $(OBJS) $(WASM)
+all: $(OBJS) $(WASM)
server/server:
@echo Building Server ...
@@ -18,6 +19,10 @@ client/client.wasm:
@echo Building Client.wasm ...
pushd $(@D) >/dev/null; env GOOS=js GOARCH=wasm go build -o $(@F); popd >/dev/null
+webtools/webtools.wasm:
+ @echo Building Webtools.wasm ...
+ pushd $(@D) >/dev/null; env GOOS=js GOARCH=wasm go build -o $(@F); popd >/dev/null
+
fmt:
for package in $(PACKAGES); do pushd $$package >/dev/null; go fmt; popd >/dev/null; done