summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2015-07-17 13:52:01 (GMT)
committerChristian Pointner <equinox@helsinki.at>2015-07-17 13:52:01 (GMT)
commit89e1f0ef76a8ab80f1ef97f86e5fe587f37fc26f (patch)
tree7276e147103f5db8097e89ffe772921577c4b975 /Makefile
parent14635c80ffdc96f43cace13cdfcb86e4816fa0ab (diff)
add go format target to makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b1a116a..c20b334 100644
--- a/Makefile
+++ b/Makefile
@@ -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: