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-12-01 14:45:50 -08:00
|
|
|
@$(MAKE) $(MAKE_OPTIONS) -C pkgs/erasure/isal lib
|
|
|
|
@godep go test -race github.com/minio-io/minio/pkgs/erasure
|
|
|
|
@godep go test -coverprofile=cover.out github.com/minio-io/minio/pkgs/erasure
|
2014-11-22 11:14:10 -08:00
|
|
|
|
2014-11-24 15:10:25 -08:00
|
|
|
build-signify:
|
2014-12-01 14:45:50 -08:00
|
|
|
@$(MAKE) $(MAKE_OPTIONS) -C pkgs/signify
|
2014-11-22 11:14:10 -08:00
|
|
|
|
2014-12-02 03:17:39 -08:00
|
|
|
build-crc32c:
|
|
|
|
@godep go test -race -coverprofile=cover.out github.com/minio-io/minio/pkgs/crc32c/cpu
|
|
|
|
@godep go test -race -coverprofile=cover.out github.com/minio-io/minio/pkgs/crc32c
|
|
|
|
|
2014-12-01 10:40:50 -08: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 02:09:50 -08:00
|
|
|
|
2014-12-02 03:17:39 -08:00
|
|
|
cover: build-erasure build-signify build-split build-crc32c
|
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:
|
2014-12-01 14:45:50 -08:00
|
|
|
@godep save ./...
|
2014-11-01 17:04:24 -07:00
|
|
|
|
2014-11-03 20:59:07 -08:00
|
|
|
restore:
|
2014-12-01 14:45:50 -08:00
|
|
|
@godep restore
|
2014-11-01 04:02:47 -04:00
|
|
|
|
2014-11-03 20:59:07 -08:00
|
|
|
env:
|
2014-12-01 14:45:50 -08:00
|
|
|
@godep go env
|
2014-11-06 22:45:27 -08:00
|
|
|
|
2014-12-01 14:45:50 -08:00
|
|
|
clean:
|
|
|
|
@rm -v cover.out
|