From abf8a67f9a281ae22056d65f00a4e4e337f91ed4 Mon Sep 17 00:00:00 2001 From: Adam Strzelecki Date: Mon, 7 Dec 2015 18:27:56 +0100 Subject: [PATCH] Makefile: Add "run" phony target (for TextMate) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Required to be able to simply Cmd+R (⌘R) to run "gogs web" within TextMate 2. --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 6f47958f6..6ffbe6674 100644 --- a/Makefile +++ b/Makefile @@ -17,6 +17,9 @@ build: $(GENERATED) go install -ldflags '$(LDFLAGS)' -tags '$(TAGS)' cp '$(GOPATH)/bin/gogs' . +run: build + ./gogs web + govet: go tool vet -composites=false -methods=false -structtags=false .