You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
828 B
36 lines
828 B
#GOPATH := $(CURDIR)/tmp/gopath
|
|
MAKE_OPTIONS := -s
|
|
|
|
all: getdeps test install
|
|
|
|
getdeps:
|
|
@go get -u github.com/tools/godep && echo "Installing godep"
|
|
@go get -u code.google.com/p/go.tools/cmd/cover && echo "Installing cover"
|
|
|
|
build-erasure:
|
|
@cd pkgs/erasure && ${MAKE} ${MAKE_OPTIONS}
|
|
|
|
build-signify:
|
|
@cd pkgs/signify && ${MAKE} ${MAKE_OPTIONS}
|
|
|
|
test: build-erasure build-signify
|
|
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
|
|
|
|
install: build-erasure
|
|
@godep go install github.com/minio-io/minio/cmd/erasure-demo && echo "Installed erasure-demo into ${GOPATH}/bin"
|
|
|
|
save:
|
|
godep save ./...
|
|
|
|
restore:
|
|
godep restore
|
|
|
|
env:
|
|
godep go env
|
|
|
|
run: all
|
|
minio gateway
|
|
|
|
cover: test
|
|
go tool cover -html=cover.out
|
|
|