minio/Makefile

46 lines
1.3 KiB
Makefile
Raw Normal View History

#GOPATH := $(CURDIR)/tmp/gopath
2014-11-30 22:55:10 +01:00
MAKE_OPTIONS := -s
2014-11-01 23:20:59 +01:00
2014-12-01 00:20:20 +01:00
all: getdeps cover install
2014-11-30 22:55:10 +01:00
getdeps:
@go get github.com/tools/godep && echo "Installing godep"
@go get code.google.com/p/go.tools/cmd/cover && echo "Installing cover"
build-erasure:
2014-12-01 23:45:50 +01: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
build-signify:
2014-12-01 23:45:50 +01:00
@$(MAKE) $(MAKE_OPTIONS) -C pkgs/signify
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
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
cover: build-erasure build-signify build-split build-crc32c
2014-12-01 00:20:20 +01: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
install: build-erasure
2014-11-30 22:55:10 +01:00
@godep go install github.com/minio-io/minio/cmd/erasure-demo && echo "Installed erasure-demo into ${GOPATH}/bin"
save:
2014-12-01 23:45:50 +01:00
@godep save ./...
restore:
2014-12-01 23:45:50 +01:00
@godep restore
2014-11-01 09:02:47 +01:00
env:
2014-12-01 23:45:50 +01:00
@godep go env
2014-12-01 23:45:50 +01:00
clean:
@rm -v cover.out