From be57b2d2cfde988e410f64abb2029c6005894fbe Mon Sep 17 00:00:00 2001 From: Dave Henderson Date: Mon, 23 Aug 2021 20:41:04 -0400 Subject: Add make target for zip files containing the binary (#1198) Signed-off-by: Dave Henderson --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index cd6c787f..2efc62de 100644 --- a/Makefile +++ b/Makefile @@ -46,6 +46,12 @@ clean: build-x: $(patsubst %,$(PREFIX)/bin/$(PKG_NAME)_%,$(platforms)) +$(PREFIX)/bin/%.zip: $(PREFIX)/bin/% + @zip -j $@ $^ + +$(PREFIX)/bin/$(PKG_NAME)_windows-%.zip: $(PREFIX)/bin/$(PKG_NAME)_windows-%.exe + @zip -j $@ $^ + compress-all: $(patsubst %,$(PREFIX)/bin/$(PKG_NAME)_%,$(compressed-platforms)) UPX_VERSION := $(shell upx --version | head -n1 | cut -f2 -d\ ) -- cgit v1.2.3