summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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: