diff options
| author | Dave Henderson <dhenderson@gmail.com> | 2020-06-13 17:36:02 -0400 |
|---|---|---|
| committer | Dave Henderson <dhenderson@gmail.com> | 2020-06-13 17:36:02 -0400 |
| commit | 04cd22e29c0ab6374d068dcce01d18fc5cff9b74 (patch) | |
| tree | c0ef066675ba85166109a4a7b593c4cca006b3bc /Makefile | |
| parent | 7c09fed297c58bd485114169de4cf6141a6d0ecb (diff) | |
Use upx 3.94 for compressing
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -49,11 +49,23 @@ build-x: $(patsubst %,$(PREFIX)/bin/$(PKG_NAME)_%,$(platforms)) compress-all: $(patsubst %,$(PREFIX)/bin/$(PKG_NAME)_%,$(compressed-platforms)) +UPX_VERSION := $(shell upx --version | head -n1 | cut -f2 -d\ ) +UPX_REQUIRED_VERSION := 3.94 + + +ifeq ($(UPX_REQUIRED_VERSION),$(UPX_VERSION)) $(PREFIX)/bin/$(PKG_NAME)_%-slim: $(PREFIX)/bin/$(PKG_NAME)_% upx --lzma $< -o $@ - $(PREFIX)/bin/$(PKG_NAME)_windows-%-slim.exe: $(PREFIX)/bin/$(PKG_NAME)_windows-%.exe upx --lzma $< -o $@ +else +$(PREFIX)/bin/$(PKG_NAME)_%-slim: + $(error Wrong upx version - need $(UPX_REQUIRED_VERSION)) + +$(PREFIX)/bin/$(PKG_NAME)_windows-%-slim.exe: + $(error Wrong upx version - need $(UPX_REQUIRED_VERSION)) +endif + $(PREFIX)/bin/$(PKG_NAME)_%_checksum_sha256.txt: $(PREFIX)/bin/$(PKG_NAME)_% @sha256sum $< > $@ |
