Merge pull request #72 from harshavardhana/pr_out_build_restructure_top_level

Build restructure top level
This commit is contained in:
Harshavardhana 2014-12-01 14:46:34 -08:00
commit 3b010d4813
2 changed files with 20 additions and 10 deletions

View File

@ -8,10 +8,12 @@ getdeps:
@go get code.google.com/p/go.tools/cmd/cover && echo "Installing cover" @go get code.google.com/p/go.tools/cmd/cover && echo "Installing cover"
build-erasure: build-erasure:
@cd pkgs/erasure && ${MAKE} ${MAKE_OPTIONS} @$(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: build-signify:
@cd pkgs/signify && ${MAKE} ${MAKE_OPTIONS} @$(MAKE) $(MAKE_OPTIONS) -C pkgs/signify
build-split: build-strbyteconv build-split: build-strbyteconv
@godep go test -race -coverprofile=cover.out github.com/minio-io/minio/pkgs/split @godep go test -race -coverprofile=cover.out github.com/minio-io/minio/pkgs/split
@ -27,13 +29,13 @@ 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"
save: save:
godep save ./... @godep save ./...
restore: restore:
godep restore @godep restore
env: env:
godep go env @godep go env
run: all clean:
minio gateway @rm -v cover.out

View File

@ -1,11 +1,19 @@
all: build test all: build test
.PHONY: all .PHONY: all
test: test: test-race test-cover
@godep go test
test-race:
@godep go test -race
test-cover:
@godep go test -coverprofile=cover.out
isal/isal-l.a: isal/isal-l.a:
@$(MAKE) --quiet -C isal lib @$(MAKE) -C isal lib
build: isal/isal-l.a build: isal/isal-l.a
@godep go build @godep go build
clean:
@rm -v cover.out