From fa1a13a8bfc1a7429984c0fc640966f7396d0169 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Sun, 30 Nov 2014 15:20:20 -0800 Subject: [PATCH] Cleanup makefile --- Makefile | 11 ++++------- pkgs/erasure/Makefile | 4 ++-- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 60433a969..d26deba90 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ #GOPATH := $(CURDIR)/tmp/gopath MAKE_OPTIONS := -s -all: getdeps test install +all: getdeps cover install getdeps: @go get -u github.com/tools/godep && echo "Installing godep" @@ -13,9 +13,9 @@ build-erasure: build-signify: @cd pkgs/signify && ${MAKE} ${MAKE_OPTIONS} -test: build-erasure build-signify - 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 +cover: build-erasure build-signify + @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 @godep go install github.com/minio-io/minio/cmd/erasure-demo && echo "Installed erasure-demo into ${GOPATH}/bin" @@ -31,6 +31,3 @@ env: run: all minio gateway - -cover: test - go tool cover -html=cover.out diff --git a/pkgs/erasure/Makefile b/pkgs/erasure/Makefile index 0786bdb5c..405df1ac4 100644 --- a/pkgs/erasure/Makefile +++ b/pkgs/erasure/Makefile @@ -4,8 +4,8 @@ all: build test test: @godep go test -isal/isal-l.so: +isal/isal-l.a: @$(MAKE) --quiet -C isal lib -build: isal/isal-l.so +build: isal/isal-l.a @godep go build