@@ -42,8 +42,9 @@ build_e2e_image:
4242DOCKER_RUN_NAME_OPTION := $(if $(DOCKER_CLI_CONTAINER_NAME ) ,--name $(DOCKER_CLI_CONTAINER_NAME ) ,)
4343DOCKER_RUN := docker run --rm $(ENVVARS ) $(DOCKER_CLI_MOUNTS ) $(DOCKER_RUN_NAME_OPTION )
4444
45- binary : build_binary_native_image # # build the CLI
46- $(DOCKER_RUN ) $(BINARY_NATIVE_IMAGE_NAME )
45+ .PHONY : binary
46+ binary :
47+ docker buildx bake binary
4748
4849build : binary # # alias for binary
4950
@@ -62,6 +63,10 @@ test-unit: build_docker_image ## run unit tests (using go test)
6263.PHONY : test # # run unit and e2e tests
6364test : test-unit test-e2e
6465
66+ .PHONY : cross
67+ cross :
68+ docker buildx bake cross
69+
6570.PHONY : plugins-windows
6671plugins-windows : build_cross_image # # build the example CLI plugins for Windows
6772 $(DOCKER_RUN ) $(CROSS_IMAGE_NAME ) make $@
@@ -70,6 +75,10 @@ plugins-windows: build_cross_image ## build the example CLI plugins for Windows
7075plugins-osx : build_cross_image # # build the example CLI plugins for macOS
7176 $(DOCKER_RUN ) $(CROSS_IMAGE_NAME ) make $@
7277
78+ .PHONY : dynbinary
79+ dynbinary : # # build dynamically linked binary
80+ USE_GLIBC=1 docker buildx bake dynbinary
81+
7382.PHONY : dev
7483dev : build_docker_image # # start a build container in interactive mode for in-container development
7584 $(DOCKER_RUN ) -it \
@@ -82,6 +91,10 @@ shell: dev ## alias for dev
8291lint : # # run linters
8392 docker buildx bake lint
8493
94+ .PHONY : shellcheck
95+ shellcheck : # # run shellcheck validation
96+ docker buildx bake shellcheck
97+
8598.PHONY : fmt
8699fmt : # # run gofmt
87100 $(DOCKER_RUN ) $(DEV_DOCKER_IMAGE_NAME ) make fmt
@@ -102,10 +115,6 @@ manpages: build_docker_image ## generate man pages from go source and markdown
102115yamldocs : build_docker_image # # generate documentation YAML files consumed by docs repo
103116 $(DOCKER_RUN ) -it $(DEV_DOCKER_IMAGE_NAME ) make yamldocs
104117
105- .PHONY : shellcheck
106- shellcheck : # # run shellcheck validation
107- docker buildx bake shellcheck
108-
109118.PHONY : test-e2e
110119test-e2e : test-e2e-non-experimental test-e2e-experimental test-e2e-connhelper-ssh # # run all e2e tests
111120
0 commit comments