diff options
author | Christian Pointner <equinox@helsinki.at> | 2015-07-17 13:52:01 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2015-07-17 13:52:01 (GMT) |
commit | 89e1f0ef76a8ab80f1ef97f86e5fe587f37fc26f (patch) | |
tree | 7276e147103f5db8097e89ffe772921577c4b975 /Makefile | |
parent | 14635c80ffdc96f43cace13cdfcb86e4816fa0ab (diff) |
add go format target to makefile
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -24,6 +24,7 @@ curdir:= $(shell pwd) GOCMD := go +GOFMT := gofmt getlibs: export GOPATH=$(curdir) getlibs: @@ -31,8 +32,12 @@ getlibs: $(GOCMD) get "github.com/gorilla/websocket" $(GOCMD) get "github.com/tuxychandru/pubsub" +format: export GOPATH=$(curdir) +format: + $(GOFMT) -w src/helsinki.at/rhrdtime + build: export GOPATH=$(curdir) -build: getlibs +build: getlibs format $(GOCMD) install helsinki.at/rhrdtime clean: |