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 /go/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 'go/Makefile')
| -rw-r--r-- | go/Makefile | 11 |
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 |
