aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 9b559a7..1476052 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@ XGOARCH := amd64
XGOOS := linux
XBIN := $(XGOOS)_$(XGOARCH)/unp
-all: test vet install
+all: test vet checkfmt install
fmt:
go fmt ./...
@@ -16,6 +16,9 @@ vet:
install:
go install ./...
+checkfmt:
+ @bash -c "diff --line-format='%L' <(echo -n) <(gofmt -l .)"
+
xinstall:
env GOOS=$(XGOOS) GOARCH=$(XGOARCH) go install ./...