|
|
@ -4,7 +4,6 @@ SHORT_NAME ?= tiller
|
|
|
|
SHORT_NAME_RUDDER ?= rudder
|
|
|
|
SHORT_NAME_RUDDER ?= rudder
|
|
|
|
TARGETS ?= darwin/amd64 linux/amd64 linux/386 linux/arm linux/arm64 linux/ppc64le linux/s390x windows/amd64
|
|
|
|
TARGETS ?= darwin/amd64 linux/amd64 linux/386 linux/arm linux/arm64 linux/ppc64le linux/s390x windows/amd64
|
|
|
|
DIST_DIRS = find * -type d -exec
|
|
|
|
DIST_DIRS = find * -type d -exec
|
|
|
|
APP = helm
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# go option
|
|
|
|
# go option
|
|
|
|
GO ?= go
|
|
|
|
GO ?= go
|
|
|
@ -27,11 +26,12 @@ all: build
|
|
|
|
build:
|
|
|
|
build:
|
|
|
|
GOBIN=$(BINDIR) $(GO) install $(GOFLAGS) -tags '$(TAGS)' -ldflags '$(LDFLAGS)' k8s.io/helm/cmd/...
|
|
|
|
GOBIN=$(BINDIR) $(GO) install $(GOFLAGS) -tags '$(TAGS)' -ldflags '$(LDFLAGS)' k8s.io/helm/cmd/...
|
|
|
|
|
|
|
|
|
|
|
|
# usage: make clean build-cross dist APP=helm|tiller VERSION=v2.0.0-alpha.3
|
|
|
|
# usage: make clean build-cross dist VERSION=v2.0.0-alpha.3
|
|
|
|
.PHONY: build-cross
|
|
|
|
.PHONY: build-cross
|
|
|
|
build-cross: LDFLAGS += -extldflags "-static"
|
|
|
|
build-cross: LDFLAGS += -extldflags "-static"
|
|
|
|
build-cross:
|
|
|
|
build-cross:
|
|
|
|
CGO_ENABLED=0 gox -parallel=3 -output="_dist/{{.OS}}-{{.Arch}}/{{.Dir}}" -osarch='$(TARGETS)' $(GOFLAGS) $(if $(TAGS),-tags '$(TAGS)',) -ldflags '$(LDFLAGS)' k8s.io/helm/cmd/$(APP)
|
|
|
|
CGO_ENABLED=0 gox -parallel=3 -output="_dist/{{.OS}}-{{.Arch}}/{{.Dir}}" -osarch='$(TARGETS)' $(GOFLAGS) $(if $(TAGS),-tags '$(TAGS)',) -ldflags '$(LDFLAGS)' k8s.io/helm/cmd/helm
|
|
|
|
|
|
|
|
CGO_ENABLED=0 gox -parallel=3 -output="_dist/{{.OS}}-{{.Arch}}/{{.Dir}}" -osarch='$(TARGETS)' $(GOFLAGS) $(if $(TAGS),-tags '$(TAGS)',) -ldflags '$(LDFLAGS)' k8s.io/helm/cmd/tiller
|
|
|
|
|
|
|
|
|
|
|
|
.PHONY: dist
|
|
|
|
.PHONY: dist
|
|
|
|
dist:
|
|
|
|
dist:
|
|
|
|