2014-11-03 23:59:07 -05:00
|
|
|
#GOPATH := $(CURDIR)/tmp/gopath
|
2014-11-30 16:55:10 -05:00
|
|
|
MAKE_OPTIONS := -s
|
2014-11-01 18:20:59 -04:00
|
|
|
|
2014-11-30 18:20:20 -05:00
|
|
|
all: getdeps cover install
|
2014-11-30 16:55:10 -05:00
|
|
|
|
|
|
|
getdeps:
|
2014-12-01 00:58:39 -05: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 20:04:24 -04:00
|
|
|
|
2014-11-22 14:14:10 -05:00
|
|
|
build-erasure:
|
2014-11-30 16:55:10 -05:00
|
|
|
@cd pkgs/erasure && ${MAKE} ${MAKE_OPTIONS}
|
2014-11-22 14:14:10 -05:00
|
|
|
|
2014-11-24 18:10:25 -05:00
|
|
|
build-signify:
|
2014-11-30 16:55:10 -05:00
|
|
|
@cd pkgs/signify && ${MAKE} ${MAKE_OPTIONS}
|
2014-11-22 14:14:10 -05:00
|
|
|
|
2014-12-01 13:40:50 -05:00
|
|
|
build-split: build-strbyteconv
|
|
|
|
@godep go test -race -coverprofile=cover.out github.com/minio-io/minio/pkgs/split
|
|
|
|
|
|
|
|
build-strbyteconv:
|
|
|
|
@godep go test -race -coverprofile=cover.out github.com/minio-io/minio/pkgs/strbyteconv
|
2014-11-18 05:09:50 -05:00
|
|
|
|
|
|
|
cover: build-erasure build-signify build-split
|
2014-11-30 18:20:20 -05: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 20:04:24 -04:00
|
|
|
|
2014-11-22 14:14:10 -05:00
|
|
|
install: build-erasure
|
2014-11-30 16:55:10 -05:00
|
|
|
@godep go install github.com/minio-io/minio/cmd/erasure-demo && echo "Installed erasure-demo into ${GOPATH}/bin"
|
2014-11-01 20:04:24 -04:00
|
|
|
|
2014-11-03 23:59:07 -05:00
|
|
|
save:
|
|
|
|
godep save ./...
|
2014-11-01 20:04:24 -04:00
|
|
|
|
2014-11-03 23:59:07 -05:00
|
|
|
restore:
|
|
|
|
godep restore
|
2014-11-01 04:02:47 -04:00
|
|
|
|
2014-11-03 23:59:07 -05:00
|
|
|
env:
|
|
|
|
godep go env
|
2014-11-07 01:45:27 -05:00
|
|
|
|
|
|
|
run: all
|
|
|
|
minio gateway
|