Recently, it's become necessary to build dynbinaries on certain
distributions, so make it easier for users to build dynbinaries. It
looks like this was just an oversight when we added dynbinary builds.
Signed-off-by: Aleksa Sarai <asarai@suse.de>
... | ... |
@@ -1,4 +1,4 @@ |
1 |
-.PHONY: all binary build cross deb help init-go-pkg-cache install manpages rpm run shell test test-docker-py test-integration-cli test-unit tgz validate win |
|
1 |
+.PHONY: all binary dynbinary build cross deb help init-go-pkg-cache install manpages rpm run shell test test-docker-py test-integration-cli test-unit tgz validate win |
|
2 | 2 |
|
3 | 3 |
# set the graph driver as the current graphdriver if not set |
4 | 4 |
DOCKER_GRAPHDRIVER := $(if $(DOCKER_GRAPHDRIVER),$(DOCKER_GRAPHDRIVER),$(shell docker info 2>&1 | grep "Storage Driver" | sed 's/.*: //')) |
... | ... |
@@ -106,6 +106,9 @@ all: build ## validate all checks, build linux binaries, run all tests\ncross bu |
106 | 106 |
binary: build ## build the linux binaries |
107 | 107 |
$(DOCKER_RUN_DOCKER) hack/make.sh binary |
108 | 108 |
|
109 |
+dynbinary: build ## build the linux dynbinaries |
|
110 |
+ $(DOCKER_RUN_DOCKER) hack/make.sh dynbinary |
|
111 |
+ |
|
109 | 112 |
build: bundles init-go-pkg-cache |
110 | 113 |
$(warning The docker client CLI has moved to github.com/docker/cli. By default, it is built from the git sha specified in hack/dockerfile/binaries-commits. For a dev-test cycle involving the CLI, run:${\n} DOCKER_CLI_PATH=/host/path/to/cli/binary make shell ${\n} then change the cli and compile into a binary at the same location.${\n}) |
111 | 114 |
docker build ${BUILD_APT_MIRROR} ${DOCKER_BUILD_ARGS} -t "$(DOCKER_IMAGE)" -f "$(DOCKERFILE)" . |