minio/Makefile

60 lines
1.7 KiB
Makefile
Raw Normal View History

#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
@go get github.com/tools/godep && echo "Installing godep"
2014-12-11 23:56:53 -05:00
@go get golang.org/x/tools/cmd/cover && echo "Installing cover"
build-erasure:
2014-12-01 17:45:50 -05:00
@$(MAKE) $(MAKE_OPTIONS) -C pkgs/erasure/isal lib
@godep go test -race -coverprofile=cover.out github.com/minio-io/minio/pkgs/erasure
build-signify:
2014-12-01 17:45:50 -05:00
@$(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/crypto/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
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:
@godep go test -race -coverprofile=cover.out github.com/minio-io/minio/pkgs/storage/appendstorage
2014-12-11 03:32:32 -05:00
build-storage-encoded:
@godep go test -race -coverprofile=cover.out github.com/minio-io/minio/pkgs/storage/encodedstorage
2014-12-10 20:43:16 -05:00
cover: build-erasure build-signify build-split build-crc32c build-cpu build-sha1 build-storage
2014-11-30 18:20:20 -05:00
@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/minio && echo "Installed minio into ${GOPATH}/bin"
save: restore
2014-12-01 17:45:50 -05:00
@godep save ./...
restore:
2014-12-01 17:45:50 -05:00
@godep restore
2014-11-01 04:02:47 -04:00
env:
2014-12-01 17:45:50 -05:00
@godep go env
2014-12-01 17:45:50 -05:00
clean:
@rm -v cover.out