This repository was archived by the owner on Jan 21, 2020. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ DOCKER_CLIENT_VERSION?=1.24
1111# True to run e2e test
1212E2E_TESTS? =true
1313
14+ # Source file target
15+ SRCS := $(shell find . -type f -name '* .go')
16+
1417# Allow turning off function inlining and variable registerization
1518ifeq (${DISABLE_OPTIMIZATION},true)
1619 GO_GCFLAGS=-gcflags "-N -l"
@@ -128,7 +131,7 @@ clean:
128131 mkdir -p build
129132
130133define binary_target_template
131- build/$(1 ) :
134+ build/$(1 ) : $( SRCS )
132135 go build -o build/$(1 ) \
133136 -ldflags "-X github.com/docker/infrakit/pkg/cli.Version=$(VERSION ) -X github.com/docker/infrakit/pkg/cli.Revision=$(REVISION ) -X github.com/docker/infrakit/pkg/util/docker.ClientVersion=$(DOCKER_CLIENT_VERSION ) " $(2 )
134137endef
You can’t perform that action at this time.
0 commit comments