Skip to content
This repository was archived by the owner on Jan 21, 2020. It is now read-only.

Commit f552304

Browse files
YujiOshimaDavid Chung
authored andcommitted
make check timestamp when per-binary build (#553)
Signed-off-by: YujiOshima <[email protected]>
1 parent a2e4ca7 commit f552304

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ DOCKER_CLIENT_VERSION?=1.24
1111
# True to run e2e test
1212
E2E_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
1518
ifeq (${DISABLE_OPTIMIZATION},true)
1619
GO_GCFLAGS=-gcflags "-N -l"
@@ -128,7 +131,7 @@ clean:
128131
mkdir -p build
129132

130133
define 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)
134137
endef

0 commit comments

Comments
 (0)