summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index d5a1805..bb395c4 100644
--- a/Makefile
+++ b/Makefile
@@ -71,9 +71,6 @@ fmt:
fi
$(GOFMT) -w $(GOFILES)
-vet:
- $(GO) vet ./...
-
.PHONY: fmt-check
fmt-check:
@hash gofumpt > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
@@ -89,6 +86,12 @@ fmt-check:
test: fmt-check
@$(GO) test -v -cover -coverprofile coverage.txt ./... && echo "\n==>\033[32m Ok\033[m\n" || exit 1
+.PHONY: vet
+vet:
+ @echo "Running go vet..."
+ @$(GO) build code.gitea.io/gitea-vet
+ @$(GO) vet -vettool=gitea-vet ./...
+
install: $(GOFILES)
$(GO) install -v -tags '$(TAGS)' -ldflags '$(EXTLDFLAGS)-s -w $(LDFLAGS)'