Skip to content
This repository was archived by the owner on Jan 21, 2020. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ DOCKER_CLIENT_VERSION?=1.24
# True to run e2e test
E2E_TESTS?=true

#Source file target
SRCS := $(shell find . -type f -name '*.go')

# Allow turning off function inlining and variable registerization
ifeq (${DISABLE_OPTIMIZATION},true)
GO_GCFLAGS=-gcflags "-N -l"
Expand Down Expand Up @@ -128,7 +131,7 @@ clean:
mkdir -p build

define binary_target_template
build/$(1):
build/$(1): $(SRCS)
go build -o build/$(1) \
-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)
endef
Expand Down