summaryrefslogtreecommitdiff
path: root/src/hub/Makefile
diff options
context:
space:
mode:
authorMarkus Grüneis <gimpf@gimpf.org>2014-10-18 18:32:35 +0200
committerMarkus Grüneis <gimpf@gimpf.org>2014-10-18 18:32:35 +0200
commit213490c98fa28bb481a8f0db62e5e3ece8580ec5 (patch)
treec76d15df00426f445215a3cc914d277f6577802d /src/hub/Makefile
parentsending empty messages works now (almost) (diff)
hub: add kind of a Makefile
Diffstat (limited to 'src/hub/Makefile')
-rw-r--r--src/hub/Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/hub/Makefile b/src/hub/Makefile
new file mode 100644
index 0000000..317615a
--- /dev/null
+++ b/src/hub/Makefile
@@ -0,0 +1,21 @@
+curdir:= $(shell pwd)
+GOCMD := go
+
+getlibs: export GOPATH=$(curdir)
+getlibs:
+ $(GOCMD) get "github.com/coopernurse/gorp"
+ $(GOCMD) get "github.com/mattn/go-sqlite3"
+
+build: export GOPATH=$(curdir)
+build: getlibs
+ $(GOCMD) install spreadspace.org/sfive-hub
+
+test: export GOPATH=$(curdir)
+test: getlibs
+ $(GOCMD) test spreadspace.org/sfive
+
+all: build test
+
+.PHONY: getlibs build test _setenv
+.DEFAULT_GOAL = all
+