2014-11-01 17:04:24 -07:00
|
|
|
GOPATH := $(CURDIR)/tmp/gopath
|
2014-11-01 15:20:59 -07:00
|
|
|
|
2014-11-02 18:56:33 -05:00
|
|
|
all: build test copy_bin
|
2014-11-01 17:04:24 -07:00
|
|
|
|
|
|
|
copy_bin:
|
|
|
|
cp tmp/gopath/bin/* bin/
|
|
|
|
|
|
|
|
stage_build:
|
|
|
|
mkdir -p $(GOPATH)
|
|
|
|
mkdir -p bin
|
|
|
|
mkdir -p tmp/gopath/src/github.com/minios/minios
|
|
|
|
rsync -a . tmp/gopath/src/github.com/minios/minios/
|
|
|
|
rsync -a third_party/* tmp/gopath
|
|
|
|
|
2014-11-02 18:56:33 -05:00
|
|
|
test:
|
|
|
|
go test github.com/minios/minios
|
|
|
|
go test github.com/minios/minios/minio
|
2014-11-01 17:04:24 -07:00
|
|
|
|
|
|
|
build: stage_build
|
2014-11-02 14:33:53 -05:00
|
|
|
go install github.com/minios/minios/minio
|
2014-11-01 04:02:47 -04:00
|
|
|
|
|
|
|
clean:
|
2014-11-01 17:04:24 -07:00
|
|
|
rm -rf tmp bin
|