From cab2152b6090f5edb383dc1fc3410487207e95d1 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Fri, 15 Aug 2025 16:48:09 +0200 Subject: load assets from muhq.space when using a release build --- go/Makefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'go/Makefile') 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 \ -- cgit v1.2.3