summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-08-05 12:46:26 -0700
committerUnknwon <u@gogs.io>2016-08-05 12:46:26 -0700
commitcf6d321991735a2891e16066f74a75f51719e99e (patch)
tree5fa541d53ff10a4b3e601b375261f382ef532a8f /Makefile
parent50422f1fc226d71fe2f5f701c7ebdd1a5f2d143e (diff)
downloadgitea-cf6d321991735a2891e16066f74a75f51719e99e.tar.gz
gitea-cf6d321991735a2891e16066f74a75f51719e99e.zip
Ignore repository with issue disabled or use external tracker in dashboard issues
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 7 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 9d09b24d54..2439b16716 100644
--- a/Makefile
+++ b/Makefile
@@ -16,18 +16,19 @@ NOW = $(shell date -u '+%Y%m%d%I%M%S')
.IGNORE: public/css/gogs.css
-build: $(GENERATED)
- go install $(BUILD_FLAGS) -ldflags '$(LDFLAGS)' -tags '$(TAGS)'
- cp '$(GOPATH)/bin/gogs' .
-
+# FIXME: find a way to ignore /vendor/ and /data/ directories.
govet:
go tool vet -composites=false -methods=false -structtags=false .
-build-dev: $(GENERATED) govet
+build: $(GENERATED) govet
+ go install $(BUILD_FLAGS) -ldflags '$(LDFLAGS)' -tags '$(TAGS)'
+ cp '$(GOPATH)/bin/gogs' .
+
+build-dev: $(GENERATED)
go install $(BUILD_FLAGS) -tags '$(TAGS)'
cp '$(GOPATH)/bin/gogs' .
-build-dev-race: $(GENERATED) govet
+build-dev-race: $(GENERATED)
go install $(BUILD_FLAGS) -race -tags '$(TAGS)'
cp '$(GOPATH)/bin/gogs' .