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.
minio/Makefile

61 lines
1.8 KiB

#GOPATH := $(CURDIR)/tmp/gopath
MAKE_OPTIONS := -s
10 years ago
all: getdeps cover install
checkdeps:
@./checkdeps.sh
getdeps: checkdeps
@go get github.com/tools/godep && echo "Installing godep"
@go get code.google.com/p/go.tools/cmd/cover && echo "Installing cover"
build-erasure:
@$(MAKE) $(MAKE_OPTIONS) -C pkgs/erasure/isal lib
@godep go test -race -coverprofile=cover.out github.com/minio-io/minio/pkgs/erasure
build-signify:
@$(MAKE) $(MAKE_OPTIONS) -C pkgs/signify
build-cpu:
@godep go test -race -coverprofile=cover.out github.com/minio-io/minio/pkgs/cpu
build-sha1:
@godep go test -race -coverprofile=cover.out github.com/minio-io/minio/pkgs/checksum/sha1/
build-crc32c:
@godep go test -race -coverprofile=cover.out github.com/minio-io/minio/pkgs/checksum/crc32c
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
10 years ago
build-storage: build-storage-fs build-storage-append
10 years ago
@godep go test -race -coverprofile=cover.out github.com/minio-io/minio/pkgs/storage
10 years ago
build-storage-fs:
@godep go test -race -coverprofile=cover.out github.com/minio-io/minio/pkgs/storage/fsstorage
build-storage-append:
@godep go test -race -coverprofile=cover.out github.com/minio-io/minio/pkgs/storage/appendstorage
cover: build-erasure build-signify build-split build-crc32c build-cpu build-sha1 build-storage
10 years ago
@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
clean:
@rm -v cover.out