From da607c611de6fb42b88af260d36d2ff442216cd1 Mon Sep 17 00:00:00 2001 From: Adam Strzelecki Date: Tue, 1 Dec 2015 22:16:00 +0100 Subject: [PATCH] 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. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ee4950781..4ee0cb9bf 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 .