summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDave Henderson <dhenderson@gmail.com>2021-08-23 20:41:04 -0400
committerGitHub <noreply@github.com>2021-08-24 00:41:04 +0000
commitbe57b2d2cfde988e410f64abb2029c6005894fbe (patch)
treee94d158d82bd15f0b0cd5d87a6bfe08cc6ebf13d /Makefile
parent5dd7df187aaef5a0b20cc012a143643e01210752 (diff)
Add make target for zip files containing the binary (#1198)
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
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\ )