Browse Source

Add `make dist` to plugins.mk

tags/v0.6.0
Andrew Belt 6 years ago
parent
commit
c4fed6d878
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      plugin.mk

+ 10
- 0
plugin.mk View File

@@ -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

Loading…
Cancel
Save