Skip to content

Commit 61ae3bb

Browse files
committed
remove unused targets
More can be removed/refactored but avoiding a huge change. Signed-off-by: Tonis Tiigi <[email protected]>
1 parent 4fb4c58 commit 61ae3bb

2 files changed

Lines changed: 5 additions & 34 deletions

File tree

Makefile

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -30,37 +30,28 @@ lint: ## run all the lint tools
3030
gometalinter --config gometalinter.json ./...
3131

3232
.PHONY: binary
33-
binary: ## build executable for Linux
34-
@echo "WARNING: binary creates a Linux executable. Use cross for macOS or Windows."
35-
./scripts/build/binary
33+
binary:
34+
docker buildx bake binary
3635

3736
.PHONY: plugins
3837
plugins: ## build example CLI plugins
3938
./scripts/build/plugins
4039

4140
.PHONY: cross
42-
cross: ## build executable for macOS and Windows
43-
./scripts/build/cross
44-
45-
.PHONY: binary-windows
46-
binary-windows: ## build executable for Windows
47-
./scripts/build/windows
41+
cross:
42+
docker buildx bake cross
4843

4944
.PHONY: plugins-windows
5045
plugins-windows: ## build example CLI plugins for Windows
5146
./scripts/build/plugins-windows
5247

53-
.PHONY: binary-osx
54-
binary-osx: ## build executable for macOS
55-
./scripts/build/osx
56-
5748
.PHONY: plugins-osx
5849
plugins-osx: ## build example CLI plugins for macOS
5950
./scripts/build/plugins-osx
6051

6152
.PHONY: dynbinary
6253
dynbinary: ## build dynamically linked binary
63-
./scripts/build/dynbinary
54+
USE_GLIBC=1 docker buildx bake dynbinary
6455

6556
vendor: vendor.conf ## check that vendor matches vendor.conf
6657
rm -rf vendor

docker.Makefile

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,6 @@ build_linter_image:
3838
# build dockerfile from stdin so that we don't send the build-context; source is bind-mounted in the development environment
3939
cat ./dockerfiles/Dockerfile.lint | docker build ${DOCKER_BUILD_ARGS} --build-arg=GO_VERSION -t $(LINTER_IMAGE_NAME) -
4040

41-
.PHONY: build_cross_image
42-
build_cross_image:
43-
# build dockerfile from stdin so that we don't send the build-context; source is bind-mounted in the development environment
44-
cat ./dockerfiles/Dockerfile.cross | docker build ${DOCKER_BUILD_ARGS} --build-arg=GO_VERSION -t $(CROSS_IMAGE_NAME) -
45-
4641
.PHONY: build_shell_validate_image
4742
build_shell_validate_image:
4843
# 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)
8075
.PHONY: test ## run unit and e2e tests
8176
test: test-unit test-e2e
8277

83-
.PHONY: cross
84-
cross: build_cross_image ## build the CLI for macOS and Windows
85-
$(DOCKER_RUN) $(CROSS_IMAGE_NAME) make cross
86-
87-
.PHONY: binary-windows
88-
binary-windows: build_cross_image ## build the CLI for Windows
89-
$(DOCKER_RUN) $(CROSS_IMAGE_NAME) make $@
90-
9178
.PHONY: plugins-windows
9279
plugins-windows: build_cross_image ## build the example CLI plugins for Windows
9380
$(DOCKER_RUN) $(CROSS_IMAGE_NAME) make $@
9481

95-
.PHONY: binary-osx
96-
binary-osx: build_cross_image ## build the CLI for macOS
97-
$(DOCKER_RUN) $(CROSS_IMAGE_NAME) make $@
98-
9982
.PHONY: plugins-osx
10083
plugins-osx: build_cross_image ## build the example CLI plugins for macOS
10184
$(DOCKER_RUN) $(CROSS_IMAGE_NAME) make $@
@@ -120,9 +103,6 @@ fmt: ## run gofmt
120103
vendor: build_docker_image vendor.conf ## download dependencies (vendor/) listed in vendor.conf
121104
$(DOCKER_RUN) -it $(DEV_DOCKER_IMAGE_NAME) make vendor
122105

123-
dynbinary: build_cross_image ## build the CLI dynamically linked
124-
$(DOCKER_RUN) -it $(CROSS_IMAGE_NAME) make dynbinary
125-
126106
.PHONY: authors
127107
authors: ## generate AUTHORS file from git history
128108
$(DOCKER_RUN) -it $(DEV_DOCKER_IMAGE_NAME) make authors

0 commit comments

Comments
 (0)