aboutsummaryrefslogtreecommitdiff
path: root/go/Makefile
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2023-01-24 00:27:50 +0100
committerFlorian Fischer <florian.fischer@muhq.space>2025-01-27 16:43:44 +0100
commit73d40903aecad3efcf7c6055c133f0db86558203 (patch)
treee9c8f00fb186e270da92f273f570579f2d0b0d95 /go/Makefile
parentfbba48698d8f8b83dfd7d914b0e37338e0d4e2ef (diff)
downloadmuhqs-game-73d40903aecad3efcf7c6055c133f0db86558203.tar.gz
muhqs-game-73d40903aecad3efcf7c6055c133f0db86558203.zip
intermediate commit
Diffstat (limited to 'go/Makefile')
-rw-r--r--go/Makefile11
1 files changed, 6 insertions, 5 deletions
diff --git a/go/Makefile b/go/Makefile
index c38e3143..88c32ebe 100644
--- a/go/Makefile
+++ b/go/Makefile
@@ -4,15 +4,16 @@ APPS := server client
OBJS := $(foreach app,$(APPS),$(app)/$(app))
WASM := client/client.wasm webtools/webtools.wasm
-GOFMT := go fmt
-
-.PHONY: all fmt test check $(OBJS) $(WASM)
-all: $(OBJS) $(WASM)
+GOFMT := gofumpt -l -w .
.PHONY: client server
client: client/client
server: server/server
+.PHONY: all fmt test check $(OBJS) $(WASM)
+all: $(OBJS) $(WASM)
+
+
$(OBJS):
@echo Building $(@F)
@pushd $(@D) >/dev/null && go build && popd >/dev/null
@@ -23,7 +24,7 @@ $(OBJS):
fmt:
@set -e; for package in $(PACKAGES) webtools; do \
- pushd $$package >/dev/null && $(GOFMT) && popd >/dev/null; \
+ pushd $$package >/dev/null && $(GOFMT); popd >/dev/null; \
done
test: