2014-11-03 20:59:07 -08:00
|
|
|
#GOPATH := $(CURDIR)/tmp/gopath
|
2014-11-30 13:55:10 -08:00
|
|
|
MAKE_OPTIONS := -s
|
2014-11-01 15:20:59 -07:00
|
|
|
|
2014-11-30 15:20:20 -08:00
|
|
|
all: getdeps cover install
|
2014-11-30 13:55:10 -08:00
|
|
|
|
|
|
|
getdeps:
|
2014-11-30 21:58:39 -08:00
|
|
|
@go get github.com/tools/godep && echo "Installing godep"
|
|
|
|
@go get code.google.com/p/go.tools/cmd/cover && echo "Installing cover"
|
2014-11-01 17:04:24 -07:00
|
|
|
|
2014-11-22 11:14:10 -08:00
|
|
|
build-erasure:
|
2014-11-30 13:55:10 -08:00
|
|
|
@cd pkgs/erasure && ${MAKE} ${MAKE_OPTIONS}
|
2014-11-22 11:14:10 -08:00
|
|
|
|
2014-11-24 15:10:25 -08:00
|
|
|
build-signify:
|
2014-11-30 13:55:10 -08:00
|
|
|
@cd pkgs/signify && ${MAKE} ${MAKE_OPTIONS}
|
2014-11-22 11:14:10 -08:00
|
|
|
|
2014-11-18 02:09:50 -08:00
|
|
|
build-split:
|
|
|
|
@cd pkgs/split && ${MAKE} ${MAKE_OPTIONS}
|
|
|
|
|
|
|
|
cover: build-erasure build-signify build-split
|
2014-11-30 15:20:20 -08:00
|
|
|
@godep go test -race -coverprofile=cover.out github.com/minio-io/minio/pkgs/storage
|
|
|
|
@godep go test -race -coverprofile=cover.out github.com/minio-io/minio/pkgs/gateway
|
2014-11-01 17:04:24 -07:00
|
|
|
|
2014-11-22 11:14:10 -08:00
|
|
|
install: build-erasure
|
2014-11-30 13:55:10 -08:00
|
|
|
@godep go install github.com/minio-io/minio/cmd/erasure-demo && echo "Installed erasure-demo into ${GOPATH}/bin"
|
2014-11-01 17:04:24 -07:00
|
|
|
|
2014-11-03 20:59:07 -08:00
|
|
|
save:
|
|
|
|
godep save ./...
|
2014-11-01 17:04:24 -07:00
|
|
|
|
2014-11-03 20:59:07 -08:00
|
|
|
restore:
|
|
|
|
godep restore
|
2014-11-01 04:02:47 -04:00
|
|
|
|
2014-11-03 20:59:07 -08:00
|
|
|
env:
|
|
|
|
godep go env
|
2014-11-06 22:45:27 -08:00
|
|
|
|
|
|
|
run: all
|
|
|
|
minio gateway
|