aboutsummaryrefslogtreecommitdiff
path: root/go/Makefile
diff options
context:
space:
mode:
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: