mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
make buildx: clean-up comment and fix help-text
Un-indent the comment, so that it doesn't get printed by the shell script (moved it above the target, as it looked slightly less cluttered) Also fixed the "help" comment, so that it shows up in `make help`, and removed the un-needed dummy `buildx:` target. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
9638d1a4fb
commit
a602ecf8fb
1 changed files with 4 additions and 5 deletions
9
Makefile
9
Makefile
|
@ -247,14 +247,13 @@ swagger-docs: ## preview the API documentation
|
|||
|
||||
.PHONY: buildx
|
||||
ifeq ($(BUILDX), bundles/buildx)
|
||||
buildx: bundles/buildx # build buildx cli tool
|
||||
else
|
||||
buildx:
|
||||
buildx: bundles/buildx ## build buildx cli tool
|
||||
endif
|
||||
|
||||
# This intentionally is not using the `--output` flag from the docker CLI, which
|
||||
# is a buildkit option. The idea here being that if buildx is being used, it's
|
||||
# because buildkit is not supported natively
|
||||
bundles/buildx: bundles ## build buildx CLI tool
|
||||
# This intetionally is not using the `--output` flag from the docker CLI which is a buildkit option
|
||||
# The idea here being that if buildx is being used, it's because buildkit is not supported natively
|
||||
docker build -f $${BUILDX_DOCKERFILE:-Dockerfile.buildx} -t "moby-buildx:$${BUILDX_COMMIT:-latest}" \
|
||||
--build-arg BUILDX_COMMIT \
|
||||
--build-arg BUILDX_REPO \
|
||||
|
|
Loading…
Add table
Reference in a new issue