|
|
|
@ -71,19 +71,19 @@ test-race: verifiers build |
|
|
|
|
# Verify minio binary
|
|
|
|
|
verify: |
|
|
|
|
@echo "Verifying build with race"
|
|
|
|
|
@GO111MODULE=on CGO_ENABLED=1 go build -race -tags kqueue --ldflags $(BUILD_LDFLAGS) -o $(PWD)/minio 1>/dev/null
|
|
|
|
|
@GO111MODULE=on CGO_ENABLED=1 go build -race -tags kqueue -trimpath --ldflags $(BUILD_LDFLAGS) -o $(PWD)/minio 1>/dev/null
|
|
|
|
|
@(env bash $(PWD)/buildscripts/verify-build.sh)
|
|
|
|
|
|
|
|
|
|
# Verify healing of disks with minio binary
|
|
|
|
|
verify-healing: |
|
|
|
|
@echo "Verify healing build with race"
|
|
|
|
|
@GO111MODULE=on CGO_ENABLED=1 go build -race -tags kqueue --ldflags $(BUILD_LDFLAGS) -o $(PWD)/minio 1>/dev/null
|
|
|
|
|
@GO111MODULE=on CGO_ENABLED=1 go build -race -tags kqueue -trimpath --ldflags $(BUILD_LDFLAGS) -o $(PWD)/minio 1>/dev/null
|
|
|
|
|
@(env bash $(PWD)/buildscripts/verify-healing.sh)
|
|
|
|
|
|
|
|
|
|
# Builds minio locally.
|
|
|
|
|
build: checks |
|
|
|
|
@echo "Building minio binary to './minio'"
|
|
|
|
|
@GO111MODULE=on CGO_ENABLED=0 go build -tags kqueue --ldflags $(BUILD_LDFLAGS) -o $(PWD)/minio 1>/dev/null
|
|
|
|
|
@GO111MODULE=on CGO_ENABLED=0 go build -tags kqueue -trimpath --ldflags $(BUILD_LDFLAGS) -o $(PWD)/minio 1>/dev/null
|
|
|
|
|
|
|
|
|
|
docker: build |
|
|
|
|
@docker build -t $(TAG) . -f Dockerfile.dev
|
|
|
|
|