mirror of https://github.com/kubernetes/kops.git
Makefile build channels in local subdirectory
This commit is contained in:
parent
c694ac9946
commit
17045a5770
13
Makefile
13
Makefile
|
|
@ -28,6 +28,7 @@ ARTIFACTS=$(BUILD)/artifacts
|
||||||
DIST=$(BUILD)/dist
|
DIST=$(BUILD)/dist
|
||||||
IMAGES=$(DIST)/images
|
IMAGES=$(DIST)/images
|
||||||
GOBINDATA=$(LOCAL)/go-bindata
|
GOBINDATA=$(LOCAL)/go-bindata
|
||||||
|
CHANNELS=$(LOCAL)/channels
|
||||||
NODEUP=$(LOCAL)/nodeup
|
NODEUP=$(LOCAL)/nodeup
|
||||||
UPLOAD=$(BUILD)/upload
|
UPLOAD=$(BUILD)/upload
|
||||||
UID:=$(shell id -u)
|
UID:=$(shell id -u)
|
||||||
|
|
@ -93,7 +94,7 @@ ifndef SHASUMCMD
|
||||||
endif
|
endif
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
all: ${KOPS} ${NODEUP}
|
all: ${KOPS} ${NODEUP} ${CHANNELS}
|
||||||
|
|
||||||
.PHONY: help
|
.PHONY: help
|
||||||
help: # Show this help
|
help: # Show this help
|
||||||
|
|
@ -128,9 +129,10 @@ clean: # Remove build directory and bindata-generated files
|
||||||
if test -e ${BUILD}; then rm -rfv ${BUILD}; fi
|
if test -e ${BUILD}; then rm -rfv ${BUILD}; fi
|
||||||
|
|
||||||
.PHONY: install
|
.PHONY: install
|
||||||
install: ${KOPS} ${NODEUP}
|
install: all
|
||||||
cp ${KOPS} ${GOPATH_1ST}/bin
|
cp ${KOPS} ${GOPATH_1ST}/bin
|
||||||
cp ${NODEUP} ${GOPATH_1ST}/bin
|
cp ${NODEUP} ${GOPATH_1ST}/bin
|
||||||
|
cp ${CHANNELS} ${GOPATH_1ST}/bin
|
||||||
|
|
||||||
.PHONY: kops
|
.PHONY: kops
|
||||||
kops: ${KOPS}
|
kops: ${KOPS}
|
||||||
|
|
@ -487,11 +489,10 @@ ci: govet verify-gofmt verify-boilerplate nodeup examples test | verify-gendocs
|
||||||
# channel tool
|
# channel tool
|
||||||
|
|
||||||
.PHONY: channels
|
.PHONY: channels
|
||||||
channels: channels-gocode
|
channels: ${CHANNELS}
|
||||||
|
|
||||||
.PHONY: channels-gocode
|
${CHANNELS}:
|
||||||
channels-gocode:
|
go build ${EXTRA_BUILDFLAGS} -o $@ -ldflags "-X k8s.io/kops.Version=${VERSION} ${EXTRA_LDFLAGS}" k8s.io/kops/channels/cmd/channels
|
||||||
go install ${EXTRA_BUILDFLAGS} -ldflags "-X k8s.io/kops.Version=${VERSION} ${EXTRA_LDFLAGS}" k8s.io/kops/channels/cmd/channels
|
|
||||||
|
|
||||||
# --------------------------------------------------
|
# --------------------------------------------------
|
||||||
# release tasks
|
# release tasks
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue