@@ -4,6 +4,7 @@ export PATH:=$(PATH):$(PWD)
4
4
5
5
LOCAL_OS: =$(shell uname | tr A-Z a-z)
6
6
GOFILES: =$(shell find . -name '* .go' ! -path './vendor/* ')
7
+ VENDOR_GOFILES ?= $(shell find vendor -name '* .go')
7
8
LDFLAGS =-X github.com/kubernetes-incubator/bootkube/pkg/version.Version=$(shell $(CURDIR ) /build/git-version.sh)
8
9
TERRAFORM: =$(shell command -v terraform 2> /dev/null)
9
10
@@ -23,7 +24,6 @@ cross: \
23
24
_output/bin/linux/s390x/checkpoint
24
25
25
26
release : \
26
- clean \
27
27
check \
28
28
_output/release/bootkube.tar.gz \
29
29
@@ -47,7 +47,7 @@ install:
47
47
_output/bin/% : GOOS=$(word 1, $(subst /, ,$* ) )
48
48
_output/bin/% : GOARCH=$(word 2, $(subst /, ,$* ) )
49
49
_output/bin/% : GOARCH:=amd64 # default to amd64 to support release scripts
50
- _output/bin/% : $(GOFILES )
50
+ _output/bin/% : $(GOFILES ) $( VENDOR_GOFILES )
51
51
mkdir -p $(dir $@ )
52
52
GOOS=$(GOOS ) GOARCH=$(GOARCH ) go build $(GOFLAGS ) -ldflags " $( LDFLAGS) " -o $@ github.com/kubernetes-incubator/bootkube/cmd/$(notdir $@ )
53
53
@@ -56,7 +56,7 @@ _output/release/bootkube.tar.gz: _output/bin/linux/bootkube _output/bin/darwin/b
56
56
tar czf $@ -C _output bin/linux/bootkube bin/darwin/bootkube bin/linux/checkpoint
57
57
58
58
run-% : 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
60
60
@cd hack/$* -node && ./bootkube-up
61
61
@echo " Bootkube ready"
62
62
@@ -68,7 +68,7 @@ clean-vm-%:
68
68
rm -rf cluster )
69
69
70
70
# TODO(aaron): Prompt because this is destructive
71
- conformance-% : clean all
71
+ conformance-% : all
72
72
@cd hack/$* -node && vagrant destroy -f
73
73
@cd hack/$* -node && rm -rf cluster
74
74
@cd hack/$* -node && ./bootkube-up
0 commit comments