summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorAdam Strzelecki <ono@java.pl>2015-12-01 22:16:00 +0100
committerAdam Strzelecki <ono@java.pl>2015-12-01 22:16:00 +0100
commitda607c611de6fb42b88af260d36d2ff442216cd1 (patch)
treee4bd6bf7163fc5c5d139a484958aa22be41a029b /Makefile
parent2093586241e92e419b479b8a3be84aa37aa63a0a (diff)
downloadgitea-da607c611de6fb42b88af260d36d2ff442216cd1.tar.gz
gitea-da607c611de6fb42b88af260d36d2ff442216cd1.zip
Makefile: Copy installed binary instead 2nd build
This speeds up single build/rebuild rather than install & build which compiles everything twice, we just copy installed binary back to the project root.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ee4950781a..4ee0cb9bf0 100644
--- a/Makefile
+++ b/Makefile
@@ -11,7 +11,7 @@ NOW = $(shell date -u '+%Y%m%d%I%M%S')
build:
go install -ldflags '$(LDFLAGS)' -tags '$(TAGS)'
- go build -ldflags '$(LDFLAGS)' -tags '$(TAGS)'
+ cp '$(GOPATH)/bin/gogs' .
govet:
go tool vet -composites=false -methods=false -structtags=false .