@@ -4,6 +4,7 @@ export PATH:=$(PATH):$(PWD)
44
55LOCAL_OS: =$(shell uname | tr A-Z a-z)
66GOFILES: =$(shell find . -name '* .go' ! -path './vendor/* ')
7+ VENDOR_GOFILES ?= $(shell find vendor -name '* .go')
78LDFLAGS =-X github.com/kubernetes-incubator/bootkube/pkg/version.Version=$(shell $(CURDIR ) /build/git-version.sh)
89TERRAFORM: =$(shell command -v terraform 2> /dev/null)
910
@@ -23,7 +24,6 @@ cross: \
2324 _output/bin/linux/s390x/checkpoint
2425
2526release : \
26- clean \
2727 check \
2828 _output/release/bootkube.tar.gz \
2929
@@ -47,7 +47,7 @@ install:
4747_output/bin/% : GOOS=$(word 1, $(subst /, ,$* ) )
4848_output/bin/% : GOARCH=$(word 2, $(subst /, ,$* ) )
4949_output/bin/% : GOARCH:=amd64 # default to amd64 to support release scripts
50- _output/bin/% : $(GOFILES )
50+ _output/bin/% : $(GOFILES ) $( VENDOR_GOFILES )
5151 mkdir -p $(dir $@ )
5252 GOOS=$(GOOS ) GOARCH=$(GOARCH ) go build $(GOFLAGS ) -ldflags " $( LDFLAGS) " -o $@ github.com/kubernetes-incubator/bootkube/cmd/$(notdir $@ )
5353
@@ -56,7 +56,7 @@ _output/release/bootkube.tar.gz: _output/bin/linux/bootkube _output/bin/darwin/b
5656 tar czf $@ -C _output bin/linux/bootkube bin/darwin/bootkube bin/linux/checkpoint
5757
5858run-% : GOFLAGS = -i
59- run-% : clean-vm- % _output/bin/linux/bootkube _output/bin/$(LOCAL_OS ) /bootkube
59+ run-% : _output/bin/linux/bootkube _output/bin/$(LOCAL_OS ) /bootkube
6060 @cd hack/$* -node && ./bootkube-up
6161 @echo " Bootkube ready"
6262
@@ -68,7 +68,7 @@ clean-vm-%:
6868 rm -rf cluster )
6969
7070# TODO(aaron): Prompt because this is destructive
71- conformance-% : clean all
71+ conformance-% : all
7272 @cd hack/$* -node && vagrant destroy -f
7373 @cd hack/$* -node && rm -rf cluster
7474 @cd hack/$* -node && ./bootkube-up
0 commit comments