|
|
@ -20,6 +20,10 @@ 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/...
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.PHONY: build-cross
|
|
|
|
|
|
|
|
build-cross:
|
|
|
|
|
|
|
|
gox -output="_dist/{{.OS}}-{{.Arch}}/{{.Dir}}" -os="darwin linux" -arch="amd64 386" $(GOFLAGS) -tags '$(TAGS)' -ldflags '$(LDFLAGS)' k8s.io/helm/cmd/...
|
|
|
|
|
|
|
|
|
|
|
|
.PHONY: check-docker
|
|
|
|
.PHONY: check-docker
|
|
|
|
check-docker:
|
|
|
|
check-docker:
|
|
|
|
@if [ -z $$(which docker) ]; then \
|
|
|
|
@if [ -z $$(which docker) ]; then \
|
|
|
@ -66,6 +70,7 @@ coverage:
|
|
|
|
@scripts/coverage.sh
|
|
|
|
@scripts/coverage.sh
|
|
|
|
|
|
|
|
|
|
|
|
HAS_GLIDE := $(shell command -v glide;)
|
|
|
|
HAS_GLIDE := $(shell command -v glide;)
|
|
|
|
|
|
|
|
HAS_GOX := $(shell command -v gox;)
|
|
|
|
HAS_HG := $(shell command -v hg;)
|
|
|
|
HAS_HG := $(shell command -v hg;)
|
|
|
|
HAS_GIT := $(shell command -v git;)
|
|
|
|
HAS_GIT := $(shell command -v git;)
|
|
|
|
|
|
|
|
|
|
|
@ -74,6 +79,9 @@ bootstrap:
|
|
|
|
ifndef HAS_GLIDE
|
|
|
|
ifndef HAS_GLIDE
|
|
|
|
go get -u github.com/Masterminds/glide
|
|
|
|
go get -u github.com/Masterminds/glide
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifndef HAS_GOX
|
|
|
|
|
|
|
|
go get -u github.com/mitchellh/gox
|
|
|
|
|
|
|
|
endif
|
|
|
|
ifndef HAS_HG
|
|
|
|
ifndef HAS_HG
|
|
|
|
$(error You must install Mercurial (hg))
|
|
|
|
$(error You must install Mercurial (hg))
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|