mirror of
https://github.com/minio/minio.git
synced 2024-12-26 15:15:55 -05:00
44 lines
979 B
Makefile
44 lines
979 B
Makefile
#GOPATH := $(CURDIR)/tmp/gopath
|
|
MAKE_OPTIONS := -s
|
|
|
|
all: getdeps install
|
|
|
|
checkdeps:
|
|
@./checkdeps.sh
|
|
|
|
createsymlink:
|
|
@if test ! -h $(GOPATH)/src/github.com/minio-io/minio; then echo "Creating symlink to $(GOPATH)/src/github.com/minio-io/minio" && ln -s $(PWD) $(GOPATH)/src/github.com/minio-io/minio; fi
|
|
|
|
getdeps: checkdeps
|
|
@go get github.com/tools/godep && echo "Installed godep"
|
|
@go get golang.org/x/tools/cmd/cover && echo "Installed cover"
|
|
|
|
build-all: getdeps createsymlink
|
|
@echo "Building Libraries"
|
|
@godep go generate ./...
|
|
@godep go build ./...
|
|
|
|
test-all: build-all
|
|
@echo "Running Test Suites:"
|
|
@godep go test -race ./...
|
|
|
|
minio: build-all test-all
|
|
|
|
install: minio
|
|
@godep go install github.com/minio-io/minio && echo "Installed minio"
|
|
|
|
save: restore
|
|
@godep save ./...
|
|
|
|
restore:
|
|
@godep restore
|
|
|
|
env:
|
|
@godep go env
|
|
|
|
clean:
|
|
@echo "Cleaning up all the generated files"
|
|
@rm -fv pkg/utils/split/TESTPREFIX.*
|
|
@rm -fv cover.out
|
|
@rm -fv pkg/storage/erasure/*.syso
|