|
|
@ -1,5 +1,5 @@ |
|
|
|
LDFLAGS := $(shell go run buildscripts/gen-ldflags.go)
|
|
|
|
LDFLAGS := $(shell go run buildscripts/gen-ldflags.go)
|
|
|
|
DOCKER_LDFLAGS = '-extldflags "-static"'
|
|
|
|
DOCKER_LDFLAGS := $(LDFLAGS) -extldflags "-static"
|
|
|
|
TAG := latest
|
|
|
|
TAG := latest
|
|
|
|
|
|
|
|
|
|
|
|
all: install |
|
|
|
all: install |
|
|
@ -55,7 +55,7 @@ test: build |
|
|
|
@GO15VENDOREXPERIMENT=1 go test $(GOFLAGS) github.com/minio/minio/pkg...
|
|
|
|
@GO15VENDOREXPERIMENT=1 go test $(GOFLAGS) github.com/minio/minio/pkg...
|
|
|
|
|
|
|
|
|
|
|
|
gomake-all: build |
|
|
|
gomake-all: build |
|
|
|
GO15VENDOREXPERIMENT=1 go build --ldflags $(LDFLAGS) -o $(GOPATH)/bin/minio
|
|
|
|
@GO15VENDOREXPERIMENT=1 go build --ldflags '$(LDFLAGS)' -o $(GOPATH)/bin/minio
|
|
|
|
|
|
|
|
|
|
|
|
pkg-add: |
|
|
|
pkg-add: |
|
|
|
@GO15VENDOREXPERIMENT=1 govendor add $(PKG)
|
|
|
|
@GO15VENDOREXPERIMENT=1 govendor add $(PKG)
|
|
|
@ -70,7 +70,7 @@ install: gomake-all |
|
|
|
|
|
|
|
|
|
|
|
dockerimage: install |
|
|
|
dockerimage: install |
|
|
|
@echo "Building docker image:" minio:$(TAG)
|
|
|
|
@echo "Building docker image:" minio:$(TAG)
|
|
|
|
@GO15VENDOREXPERIMENT=1 go build --ldflags $(LDFLAGS) --ldflags $(DOCKER_LDFLAGS) -o minio.dockerimage
|
|
|
|
@GO15VENDOREXPERIMENT=1 go build --ldflags '$(DOCKER_LDFLAGS)' -o minio.dockerimage
|
|
|
|
@mkdir -p export
|
|
|
|
@mkdir -p export
|
|
|
|
@docker build --rm --tag=minio:$(TAG) .
|
|
|
|
@docker build --rm --tag=minio:$(TAG) .
|
|
|
|
@rmdir export
|
|
|
|
@rmdir export
|
|
|
|