summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-08-06 11:20:10 -0700
committerUnknwon <u@gogs.io>2016-08-06 11:20:10 -0700
commit08c976f8117b92b25ea197e7dc0372b49d9ee412 (patch)
treeada366e0d242080a4564cde1f6491d48faffddd7 /Makefile
parent72dd299ca0e0b018b786a7f2668e6161ac411fa6 (diff)
downloadgitea-08c976f8117b92b25ea197e7dc0372b49d9ee412.tar.gz
gitea-08c976f8117b92b25ea197e7dc0372b49d9ee412.zip
Only do go vet on this codebase
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 2439b16716..33cb7355d9 100644
--- a/Makefile
+++ b/Makefile
@@ -11,6 +11,7 @@ BUILD_FLAGS = "-v"
RELEASE_ROOT = "release"
RELEASE_GOGS = "release/gogs"
NOW = $(shell date -u '+%Y%m%d%I%M%S')
+GOVET = go tool vet -composites=false -methods=false -structtags=false
.PHONY: build pack release bindata clean
@@ -18,17 +19,18 @@ NOW = $(shell date -u '+%Y%m%d%I%M%S')
# FIXME: find a way to ignore /vendor/ and /data/ directories.
govet:
- go tool vet -composites=false -methods=false -structtags=false .
+ $(GOVET) gogs.go
+ $(GOVET) models modules routers
-build: $(GENERATED) govet
+build: $(GENERATED)
go install $(BUILD_FLAGS) -ldflags '$(LDFLAGS)' -tags '$(TAGS)'
cp '$(GOPATH)/bin/gogs' .
-build-dev: $(GENERATED)
+build-dev: $(GENERATED) govet
go install $(BUILD_FLAGS) -tags '$(TAGS)'
cp '$(GOPATH)/bin/gogs' .
-build-dev-race: $(GENERATED)
+build-dev-race: $(GENERATED) govet
go install $(BUILD_FLAGS) -race -tags '$(TAGS)'
cp '$(GOPATH)/bin/gogs' .