diff --git a/make/all.mk b/make/all.mk index 0ac3ceac7..3c12fefd4 100644 --- a/make/all.mk +++ b/make/all.mk @@ -12,7 +12,6 @@ include $(INCLUDE_DIR)go.mk include $(INCLUDE_DIR)goreleaser.mk include $(INCLUDE_DIR)docker.mk include $(INCLUDE_DIR)tag.mk -include $(INCLUDE_DIR)upx.mk include $(INCLUDE_DIR)addons.mk include $(INCLUDE_DIR)kind.mk include $(INCLUDE_DIR)clusterctl.mk diff --git a/make/upx.mk b/make/upx.mk deleted file mode 100644 index f94c434cf..000000000 --- a/make/upx.mk +++ /dev/null @@ -1,20 +0,0 @@ -# Copyright 2023 D2iQ, Inc. All rights reserved. -# SPDX-License-Identifier: Apache-2.0 - -SKIP_UPX := true - -.PHONY: upx -upx: UPX_REAL_TARGET := $(addsuffix $(if $(filter $(GOOS),windows),.exe),$(basename $(UPX_TARGET))) -ifneq ($(SKIP_UPX),true) -ifeq ($(GOOS)/$(GOARCH),windows/arm64) -upx: ; $(info $(M) skipping packing $(UPX_REAL_TARGET) - $(GOOS)/$(GOARCH) is not yet supported by upx) -else ifeq ($(GOOS),darwin) -upx: ; $(info $(M) skipping packing $(UPX_REAL_TARGET) - $(GOOS)/$(GOARCH) has a bug in packing on Ventura - https://github.com/upx/upx/issues/628) -else -upx: ## Pack executable using upx -upx: ; $(info $(M) packing $(UPX_REAL_TARGET)) - (upx -l $(UPX_REAL_TARGET) &>/dev/null && echo $(UPX_REAL_TARGET) is already packed) || upx -9 --lzma $(UPX_REAL_TARGET) -# Double check file is successfully compressed - seen errors with macos binaries - upx -t $(UPX_REAL_TARGET) &>/dev/null || (echo $(UPX_REAL_TARGET) is broken after upx compression && exit 1) -endif -endif