mirror of https://github.com/docker/cli.git
remove unused targets
More can be removed/refactored but avoiding a huge change. Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
parent
bd3e853c7a
commit
706e857a90
19
Makefile
19
Makefile
|
@ -30,37 +30,28 @@ lint: ## run all the lint tools
|
||||||
gometalinter --config gometalinter.json ./...
|
gometalinter --config gometalinter.json ./...
|
||||||
|
|
||||||
.PHONY: binary
|
.PHONY: binary
|
||||||
binary: ## build executable for Linux
|
binary:
|
||||||
@echo "WARNING: binary creates a Linux executable. Use cross for macOS or Windows."
|
docker buildx bake binary
|
||||||
./scripts/build/binary
|
|
||||||
|
|
||||||
.PHONY: plugins
|
.PHONY: plugins
|
||||||
plugins: ## build example CLI plugins
|
plugins: ## build example CLI plugins
|
||||||
./scripts/build/plugins
|
./scripts/build/plugins
|
||||||
|
|
||||||
.PHONY: cross
|
.PHONY: cross
|
||||||
cross: ## build executable for macOS and Windows
|
cross:
|
||||||
./scripts/build/cross
|
docker buildx bake cross
|
||||||
|
|
||||||
.PHONY: binary-windows
|
|
||||||
binary-windows: ## build executable for Windows
|
|
||||||
./scripts/build/windows
|
|
||||||
|
|
||||||
.PHONY: plugins-windows
|
.PHONY: plugins-windows
|
||||||
plugins-windows: ## build example CLI plugins for Windows
|
plugins-windows: ## build example CLI plugins for Windows
|
||||||
./scripts/build/plugins-windows
|
./scripts/build/plugins-windows
|
||||||
|
|
||||||
.PHONY: binary-osx
|
|
||||||
binary-osx: ## build executable for macOS
|
|
||||||
./scripts/build/osx
|
|
||||||
|
|
||||||
.PHONY: plugins-osx
|
.PHONY: plugins-osx
|
||||||
plugins-osx: ## build example CLI plugins for macOS
|
plugins-osx: ## build example CLI plugins for macOS
|
||||||
./scripts/build/plugins-osx
|
./scripts/build/plugins-osx
|
||||||
|
|
||||||
.PHONY: dynbinary
|
.PHONY: dynbinary
|
||||||
dynbinary: ## build dynamically linked binary
|
dynbinary: ## build dynamically linked binary
|
||||||
./scripts/build/dynbinary
|
USE_GLIBC=1 docker buildx bake dynbinary
|
||||||
|
|
||||||
vendor: vendor.conf ## check that vendor matches vendor.conf
|
vendor: vendor.conf ## check that vendor matches vendor.conf
|
||||||
rm -rf vendor
|
rm -rf vendor
|
||||||
|
|
|
@ -38,11 +38,6 @@ build_linter_image:
|
||||||
# build dockerfile from stdin so that we don't send the build-context; source is bind-mounted in the development environment
|
# build dockerfile from stdin so that we don't send the build-context; source is bind-mounted in the development environment
|
||||||
cat ./dockerfiles/Dockerfile.lint | docker build ${DOCKER_BUILD_ARGS} --build-arg=GO_VERSION -t $(LINTER_IMAGE_NAME) -
|
cat ./dockerfiles/Dockerfile.lint | docker build ${DOCKER_BUILD_ARGS} --build-arg=GO_VERSION -t $(LINTER_IMAGE_NAME) -
|
||||||
|
|
||||||
.PHONY: build_cross_image
|
|
||||||
build_cross_image:
|
|
||||||
# build dockerfile from stdin so that we don't send the build-context; source is bind-mounted in the development environment
|
|
||||||
cat ./dockerfiles/Dockerfile.cross | docker build ${DOCKER_BUILD_ARGS} --build-arg=GO_VERSION -t $(CROSS_IMAGE_NAME) -
|
|
||||||
|
|
||||||
.PHONY: build_shell_validate_image
|
.PHONY: build_shell_validate_image
|
||||||
build_shell_validate_image:
|
build_shell_validate_image:
|
||||||
# build dockerfile from stdin so that we don't send the build-context; source is bind-mounted in the development environment
|
# build dockerfile from stdin so that we don't send the build-context; source is bind-mounted in the development environment
|
||||||
|
@ -80,22 +75,10 @@ test-unit: build_docker_image ## run unit tests (using go test)
|
||||||
.PHONY: test ## run unit and e2e tests
|
.PHONY: test ## run unit and e2e tests
|
||||||
test: test-unit test-e2e
|
test: test-unit test-e2e
|
||||||
|
|
||||||
.PHONY: cross
|
|
||||||
cross: build_cross_image ## build the CLI for macOS and Windows
|
|
||||||
$(DOCKER_RUN) $(CROSS_IMAGE_NAME) make cross
|
|
||||||
|
|
||||||
.PHONY: binary-windows
|
|
||||||
binary-windows: build_cross_image ## build the CLI for Windows
|
|
||||||
$(DOCKER_RUN) $(CROSS_IMAGE_NAME) make $@
|
|
||||||
|
|
||||||
.PHONY: plugins-windows
|
.PHONY: plugins-windows
|
||||||
plugins-windows: build_cross_image ## build the example CLI plugins for Windows
|
plugins-windows: build_cross_image ## build the example CLI plugins for Windows
|
||||||
$(DOCKER_RUN) $(CROSS_IMAGE_NAME) make $@
|
$(DOCKER_RUN) $(CROSS_IMAGE_NAME) make $@
|
||||||
|
|
||||||
.PHONY: binary-osx
|
|
||||||
binary-osx: build_cross_image ## build the CLI for macOS
|
|
||||||
$(DOCKER_RUN) $(CROSS_IMAGE_NAME) make $@
|
|
||||||
|
|
||||||
.PHONY: plugins-osx
|
.PHONY: plugins-osx
|
||||||
plugins-osx: build_cross_image ## build the example CLI plugins for macOS
|
plugins-osx: build_cross_image ## build the example CLI plugins for macOS
|
||||||
$(DOCKER_RUN) $(CROSS_IMAGE_NAME) make $@
|
$(DOCKER_RUN) $(CROSS_IMAGE_NAME) make $@
|
||||||
|
@ -120,9 +103,6 @@ fmt: ## run gofmt
|
||||||
vendor: build_docker_image vendor.conf ## download dependencies (vendor/) listed in vendor.conf
|
vendor: build_docker_image vendor.conf ## download dependencies (vendor/) listed in vendor.conf
|
||||||
$(DOCKER_RUN) -it $(DEV_DOCKER_IMAGE_NAME) make vendor
|
$(DOCKER_RUN) -it $(DEV_DOCKER_IMAGE_NAME) make vendor
|
||||||
|
|
||||||
dynbinary: build_cross_image ## build the CLI dynamically linked
|
|
||||||
$(DOCKER_RUN) -it $(CROSS_IMAGE_NAME) make dynbinary
|
|
||||||
|
|
||||||
.PHONY: authors
|
.PHONY: authors
|
||||||
authors: ## generate AUTHORS file from git history
|
authors: ## generate AUTHORS file from git history
|
||||||
$(DOCKER_RUN) -it $(DEV_DOCKER_IMAGE_NAME) make authors
|
$(DOCKER_RUN) -it $(DEV_DOCKER_IMAGE_NAME) make authors
|
||||||
|
|
Loading…
Reference in New Issue