summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2022-06-24 21:46:51 +0200
committerRobin Jarry <robin@jarry.cc>2022-06-24 21:46:51 +0200
commitbc863921697ed23d6a02135995700c119f2fd8c7 (patch)
tree82b28136af07792f33d97360952d5bd616b432ee /Makefile
parent7bdfa928cbab7dbd82c51af43f8ec2b8e090e82a (diff)
downloadaerc-bc863921697ed23d6a02135995700c119f2fd8c7.zip
mk: merge checkfmt into lint
No need to have two separate targets. Signed-off-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 3 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 129adaa..9792531 100644
--- a/Makefile
+++ b/Makefile
@@ -56,16 +56,13 @@ dev:
fmt:
gofmt -w .
-.PHONY: checkfmt
-checkfmt:
- @if [ `gofmt -l . | wc -l` -ne 0 ]; then \
+.PHONY: lint
+lint:
+ @echo "gofmt -d ."; if [ `gofmt -l . | wc -l` -ne 0 ]; then \
gofmt -d .; \
echo "ERROR: source files need reformatting with gofmt"; \
exit 1; \
fi
-
-.PHONY: lint
-lint:
$(GO) vet ./...
.PHONY: tests