From c4fed6d8785ca0e2a74a2521428fac2363d84860 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Sun, 24 Dec 2017 20:29:22 -0500 Subject: [PATCH] Add `make dist` to plugins.mk --- plugin.mk | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/plugin.mk b/plugin.mk index 1977a1d0..b1d9e4cd 100644 --- a/plugin.mk +++ b/plugin.mk @@ -21,6 +21,8 @@ ifeq ($(ARCH), win) TARGET = plugin.dll endif +DISTRIBUTABLES += $(TARGET) + all: $(TARGET) @@ -28,3 +30,11 @@ include ../../compile.mk clean: rm -rfv build $(TARGET) dist + +dist: all + rm -rf dist + mkdir -p dist/$(SLUG) + cp -R $(DISTRIBUTABLES) dist/$(SLUG)/ + cd dist && zip -5 -r $(SLUG)-$(VERSION)-$(ARCH).zip $(SLUG) + +.PHONY: clean dist \ No newline at end of file