diff options
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 \ |
