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
|
|
|
|
2014-12-04 04:56:01 -05:00
|
|
|
checkdeps:
|
|
|
|
@./checkdeps.sh
|
|
|
|
|
|
|
|
getdeps: checkdeps
|
2014-12-20 12:09:35 -05:00
|
|
|
@go get github.com/tools/godep && echo "Installed godep"
|
|
|
|
@go get golang.org/x/tools/cmd/cover && echo "Installed cover"
|
2014-11-01 20:04:24 -04:00
|
|
|
|
2014-11-22 14:14:10 -05:00
|
|
|
build-erasure:
|
2014-12-29 19:35:56 -05:00
|
|
|
@$(MAKE) $(MAKE_OPTIONS) -C pkg/erasure/isal lib
|
|
|
|
@godep go test -race -coverprofile=cover.out github.com/minio-io/minio/pkg/erasure
|
2014-11-22 14:14:10 -05:00
|
|
|
|
2014-11-24 18:10:25 -05:00
|
|
|
build-signify:
|
2014-12-29 19:35:56 -05:00
|
|
|
@$(MAKE) $(MAKE_OPTIONS) -C pkg/signify
|
2014-11-22 14:14:10 -05:00
|
|
|
|
2014-12-08 06:20:35 -05:00
|
|
|
build-cpu:
|
2014-12-29 19:35:56 -05:00
|
|
|
@godep go test -race -coverprofile=cover.out github.com/minio-io/minio/pkg/cpu
|
2014-12-08 06:20:35 -05:00
|
|
|
|
2014-12-20 19:40:09 -05:00
|
|
|
build-md5:
|
2014-12-29 19:35:56 -05:00
|
|
|
@godep go test -race -coverprofile=cover.out github.com/minio-io/minio/pkg/crypto/md5/
|
|
|
|
@godep go test -race -coverprofile=cover.out github.com/minio-io/minio/pkg/crypto/md5c/
|
2014-12-20 19:40:09 -05:00
|
|
|
|
2014-12-08 06:20:35 -05:00
|
|
|
build-sha1:
|
2014-12-29 19:35:56 -05:00
|
|
|
@godep go test -race -coverprofile=cover.out github.com/minio-io/minio/pkg/crypto/sha1/
|
2014-12-08 06:20:35 -05:00
|
|
|
|
2014-12-20 19:40:09 -05:00
|
|
|
build-sha256:
|
2014-12-29 19:35:56 -05:00
|
|
|
@godep go test -race -coverprofile=cover.out github.com/minio-io/minio/pkg/crypto/sha256/
|
2014-12-20 19:40:09 -05:00
|
|
|
|
|
|
|
build-sha512:
|
2014-12-29 19:35:56 -05:00
|
|
|
@godep go test -race -coverprofile=cover.out github.com/minio-io/minio/pkg/crypto/sha512/
|
2014-12-20 19:40:09 -05:00
|
|
|
|
2014-12-02 06:17:39 -05:00
|
|
|
build-crc32c:
|
2014-12-29 19:35:56 -05:00
|
|
|
@godep go test -race -coverprofile=cover.out github.com/minio-io/minio/pkg/checksum/crc32c
|
2014-12-02 06:17:39 -05:00
|
|
|
|
2014-12-17 06:36:07 -05:00
|
|
|
build-scsi:
|
2014-12-29 19:35:56 -05:00
|
|
|
@godep go test -race -coverprofile=cover.out github.com/minio-io/minio/pkg/scsi
|
2014-12-17 06:36:07 -05:00
|
|
|
|
2014-12-01 13:40:50 -05:00
|
|
|
build-split: build-strbyteconv
|
2014-12-29 19:35:56 -05:00
|
|
|
@godep go test -race -coverprofile=cover.out github.com/minio-io/minio/pkg/split
|
2014-12-01 13:40:50 -05:00
|
|
|
|
|
|
|
build-strbyteconv:
|
2014-12-29 19:35:56 -05:00
|
|
|
@godep go test -race -coverprofile=cover.out github.com/minio-io/minio/pkg/strbyteconv
|
2014-11-18 05:09:50 -05:00
|
|
|
|
2014-12-14 22:13:41 -05:00
|
|
|
build-storage: build-storage-append build-storage-encoded
|
2014-12-10 20:43:16 -05:00
|
|
|
|
|
|
|
build-storage-append:
|
2014-12-29 19:35:56 -05:00
|
|
|
@godep go test -race -coverprofile=cover.out github.com/minio-io/minio/pkg/storage/appendstorage
|
2014-12-10 20:43:16 -05:00
|
|
|
|
2014-12-11 03:32:32 -05:00
|
|
|
build-storage-encoded:
|
2014-12-29 19:35:56 -05:00
|
|
|
@godep go test -race -coverprofile=cover.out github.com/minio-io/minio/pkg/storage/encodedstorage
|
2014-12-11 03:32:32 -05:00
|
|
|
|
2014-12-20 19:40:09 -05:00
|
|
|
cover: build-erasure build-signify build-split build-crc32c build-cpu build-scsi build-storage build-md5 build-sha1 build-sha256 build-sha512
|
2014-12-29 19:35:56 -05:00
|
|
|
@godep go test -race -coverprofile=cover.out github.com/minio-io/minio/pkg/gateway
|
2014-11-01 20:04:24 -04:00
|
|
|
|
2014-11-22 14:14:10 -05:00
|
|
|
install: build-erasure
|
2014-12-15 01:13:37 -05:00
|
|
|
@godep go install github.com/minio-io/minio/cmd/minio && echo "Installed minio into ${GOPATH}/bin"
|
2014-12-29 19:35:56 -05:00
|
|
|
@godep go install github.com/minio-io/minio/cmd/new-cmd && echo "Installed new-cmd into ${GOPATH}/bin"
|
2014-12-21 05:12:30 -05:00
|
|
|
@godep go install github.com/minio-io/minio/cmd/crypto && echo "Installed crypto into ${GOPATH}/bin"
|
2015-01-03 21:03:15 -05:00
|
|
|
@godep go install github.com/minio-io/minio/cmd/split && echo "Installed split into ${GOPATH}/bin"
|
2015-01-06 04:24:31 -05:00
|
|
|
@godep go install github.com/minio-io/minio/cmd/index && echo "Installed index into ${GOPATH}/bin"
|
2014-11-01 20:04:24 -04:00
|
|
|
|
2014-12-13 23:27:34 -05:00
|
|
|
save: restore
|
2014-12-01 17:45:50 -05:00
|
|
|
@godep save ./...
|
2014-11-01 20:04:24 -04:00
|
|
|
|
2014-11-03 23:59:07 -05:00
|
|
|
restore:
|
2014-12-01 17:45:50 -05:00
|
|
|
@godep restore
|
2014-11-01 04:02:47 -04:00
|
|
|
|
2014-11-03 23:59:07 -05:00
|
|
|
env:
|
2014-12-01 17:45:50 -05:00
|
|
|
@godep go env
|
2014-11-07 01:45:27 -05:00
|
|
|
|
2014-12-01 17:45:50 -05:00
|
|
|
clean:
|
|
|
|
@rm -v cover.out
|