@ -71,10 +71,11 @@ build: checks
@echo "Building minio binary to './minio'"
@echo "Building minio binary to './minio'"
@GO111MODULE= on CGO_ENABLED = 0 go build -tags kqueue -trimpath --ldflags " $( LDFLAGS) " -o $( PWD) /minio 1>/dev/null
@GO111MODULE= on CGO_ENABLED = 0 go build -tags kqueue -trimpath --ldflags " $( LDFLAGS) " -o $( PWD) /minio 1>/dev/null
hotfix : LDFLAGS := $( shell MINIO_RELEASE ="RELEASE " MINIO_HOTFIX ="hotfix .$ ( shell git rev -parse --short HEAD ) " go run buildscripts /gen -ldflags .go $ ( shell git describe --tags --abbrev =0 | \
hotfix-vars :
sed 's#RELEASE\.\([0-9]\+\)-\([0-9]\+\)-\([0-9]\+\)T\([0-9]\+\)-\([0-9]\+\)-\([0-9]\+\)Z#\1-\2-\3T\4:\5:\6Z#' ) )
$( eval LDFLAGS := $( shell MINIO_RELEASE = "RELEASE" MINIO_HOTFIX = " hotfix. $( shell git rev-parse --short HEAD) " go run buildscripts/gen-ldflags.go $( shell git describe --tags --abbrev= 0 | \
TAG := " minio/minio: $( shell git describe --tags --abbrev= 0) .hotfix. $( shell git rev-parse --short HEAD) "
sed 's#RELEASE\.\([0-9]\+\)-\([0-9]\+\)-\([0-9]\+\)T\([0-9]\+\)-\([0-9]\+\)-\([0-9]\+\)Z#\1-\2-\3T\4:\5:\6Z#' ) ) )
hotfix : install
$( eval TAG := " minio/minio: $( shell git describe --tags --abbrev= 0) .hotfix. $( shell git rev-parse --short HEAD) " )
hotfix : hotfix -vars install
docker-hotfix : hotfix checks
docker-hotfix : hotfix checks
@echo " Building minio docker image ' $( TAG) ' "
@echo " Building minio docker image ' $( TAG) ' "