aboutsummaryrefslogtreecommitdiff
path: root/go/Makefile
diff options
context:
space:
mode:
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