Cleanup makefile

master
Harshavardhana 10 years ago
parent 08c8a029be
commit fa1a13a8bf
  1. 11
      Makefile
  2. 4
      pkgs/erasure/Makefile

@ -1,7 +1,7 @@
#GOPATH := $(CURDIR)/tmp/gopath #GOPATH := $(CURDIR)/tmp/gopath
MAKE_OPTIONS := -s MAKE_OPTIONS := -s
all: getdeps test install all: getdeps cover install
getdeps: getdeps:
@go get -u github.com/tools/godep && echo "Installing godep" @go get -u github.com/tools/godep && echo "Installing godep"
@ -13,9 +13,9 @@ build-erasure:
build-signify: build-signify:
@cd pkgs/signify && ${MAKE} ${MAKE_OPTIONS} @cd pkgs/signify && ${MAKE} ${MAKE_OPTIONS}
test: build-erasure build-signify 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/storage
godep go test -race -coverprofile=cover.out github.com/minio-io/minio/pkgs/gateway @godep go test -race -coverprofile=cover.out github.com/minio-io/minio/pkgs/gateway
install: build-erasure install: build-erasure
@godep go install github.com/minio-io/minio/cmd/erasure-demo && echo "Installed erasure-demo into ${GOPATH}/bin" @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 run: all
minio gateway minio gateway
cover: test
go tool cover -html=cover.out

@ -4,8 +4,8 @@ all: build test
test: test:
@godep go test @godep go test
isal/isal-l.so: isal/isal-l.a:
@$(MAKE) --quiet -C isal lib @$(MAKE) --quiet -C isal lib
build: isal/isal-l.so build: isal/isal-l.a
@godep go build @godep go build

Loading…
Cancel
Save