build-sys: replace gofmt.sh with make fmt

Signed-off-by: Alejandro Mery <amery@jpi.io>
This commit is contained in:
2021-06-24 21:28:28 +01:00
parent 76e566b92e
commit d289643458
2 changed files with 15 additions and 4 deletions
+15
View File
@@ -0,0 +1,15 @@
.PHONY: all fmt build test
GO ?= go
all: fmt build
fmt:
$(GO) fmt ./...
$(GO) mod tidy || true
build:
$(GO) get -v ./...
test:
$(GO) test -v ./...
-4
View File
@@ -1,4 +0,0 @@
#!/bin/sh
BASE="$(dirname "$0")"
exec gofmt -l -w -e -s -- $(find "$BASE" -type f -name '*.go')