From 41d16fb4910fc0402b6b081302c953f7dabc8cf9 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Wed, 28 Dec 2022 16:17:06 +0100 Subject: add random tile selection from map to the web tools --- go/Makefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'go/Makefile') 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 -- cgit v1.2.3