From 213490c98fa28bb481a8f0db62e5e3ece8580ec5 Mon Sep 17 00:00:00 2001 From: Markus Grüneis Date: Sat, 18 Oct 2014 18:32:35 +0200 Subject: hub: add kind of a Makefile --- src/hub/Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/hub/Makefile 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 + -- cgit v1.2.3