diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2025-08-15 16:48:09 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-08-15 23:52:20 +0200 |
| commit | c1bc6f873f8ce7d6a1e348957dcdc36b6cc13e9d (patch) | |
| tree | e03598c403a0b7c0e890d853621c3abb8b6e0d1d /go/Makefile | |
| parent | 49db436fb0ef52eadc577aba05c91d35bb8ddd6b (diff) | |
| download | muhqs-game-c1bc6f873f8ce7d6a1e348957dcdc36b6cc13e9d.tar.gz muhqs-game-c1bc6f873f8ce7d6a1e348957dcdc36b6cc13e9d.zip | |
load assets from muhq.space when using a release build
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 20ef58e9..cac5071e 100644 --- a/go/Makefile +++ b/go/Makefile @@ -8,9 +8,14 @@ WASM := client/client.wasm webtools/webtools.wasm dummy-ui/dummy-ui.wasm GOFMT ?= gofumpt -l -w . -.PHONY: all fmt test check $(OBJS) $(WASM) +GO_BUILDTAGS ?= + +.PHONY: all release fmt test check $(OBJS) $(WASM) all: $(OBJS) $(WASM) +release: + $(MAKE) GO_BUILDTAGS="-tags release" all + .PHONY: client server dummy-ui client: client/client server: server/server @@ -18,11 +23,11 @@ dummy-ui: dummy-ui/dummy-ui $(OBJS): @echo Building $(@F) - @pushd $(@D) >/dev/null && go build && popd >/dev/null + @pushd $(@D) >/dev/null && go build $(GO_BUILDTAGS) && popd >/dev/null $(WASM): @echo Building $(@F) ... - @pushd $(@D) >/dev/null && env GOOS=js GOARCH=wasm go build -o $(@F) && popd >/dev/null + @pushd $(@D) >/dev/null && env GOOS=js GOARCH=wasm go build $(GO_BUILDTAGS) -o $(@F) && popd >/dev/null fmt: @set -e; for package in $(PACKAGES) webtools; do \ |
