summaryrefslogtreecommitdiff
path: root/src/hub/Makefile
blob: 317615ae8b0902dd548d66c0815b62b8ba0b6824 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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