From e7c74fdde26cab91c149e8dcace419521c3bff88 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Wed, 21 Jan 2015 13:52:42 -0800 Subject: [PATCH] Add ARCH flags --- Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index b86c37178..3d3100848 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,6 @@ #GOPATH := $(CURDIR)/tmp/gopath MAKE_OPTIONS := -s +ARCH := $(shell uname -s) all: getdeps install @@ -14,11 +15,13 @@ build-utils: @godep go test -race -coverprofile=cover.out github.com/minio-io/minio/pkg/utils/cpu @godep go test -race -coverprofile=cover.out github.com/minio-io/minio/pkg/utils/unitconv @godep go test -race -coverprofile=cover.out github.com/minio-io/minio/pkg/utils/split - @godep go test -race -coverprofile=cover.out github.com/minio-io/minio/pkg/utils/crypto/md5/ - @godep go test -race -coverprofile=cover.out github.com/minio-io/minio/pkg/utils/crypto/sha1/ - @godep go test -race -coverprofile=cover.out github.com/minio-io/minio/pkg/utils/crypto/sha256/ - @godep go test -race -coverprofile=cover.out github.com/minio-io/minio/pkg/utils/crypto/sha512/ + @godep go test -race -coverprofile=cover.out github.com/minio-io/minio/pkg/utils/crypto/md5 + @godep go test -race -coverprofile=cover.out github.com/minio-io/minio/pkg/utils/crypto/sha1 + @godep go test -race -coverprofile=cover.out github.com/minio-io/minio/pkg/utils/crypto/sha256 + @godep go test -race -coverprofile=cover.out github.com/minio-io/minio/pkg/utils/crypto/sha512 +ifeq ($(ARCH), Linux) @godep go test -race -coverprofile=cover.out github.com/minio-io/minio/pkg/utils/checksum/crc32c +endif #build-os: # @godep go test -race -coverprofile=cover.out github.com/minio-io/minio/pkg/os/scsi