From 73d40903aecad3efcf7c6055c133f0db86558203 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Tue, 24 Jan 2023 00:27:50 +0100 Subject: intermediate commit --- go/Makefile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'go/Makefile') 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: -- cgit v1.2.3