Browse Source

Add `make install` to plugin.mk for automatically installing plugins to

your Rack user directory
tags/v0.6.1
Andrew Belt 6 years ago
parent
commit
7344588233
3 changed files with 7 additions and 2 deletions
  1. +1
    -1
      dep/glfw
  2. +1
    -1
      dep/nanosvg
  3. +5
    -0
      plugin.mk

+ 1
- 1
dep/glfw

@@ -1 +1 @@
Subproject commit 617a322bd88c1b27f1fd7d05dc3723b6c5461a68
Subproject commit 682f1cf203707f21c2eed4fa3f89c23c52accc49

+ 1
- 1
dep/nanosvg

@@ -1 +1 @@
Subproject commit 06c1f0f3bb041d69a73bb74067d063a700215b0e
Subproject commit 9a74da4db5ac74083e444010d75114658581b9c7

+ 5
- 0
plugin.mk View File

@@ -18,16 +18,19 @@ include $(RACK_DIR)/arch.mk
ifeq ($(ARCH), lin)
LDFLAGS += -shared
TARGET := plugin.so
RACK_USER_DIR ?= $(HOME)/.Rack
endif

ifeq ($(ARCH), mac)
LDFLAGS += -shared -undefined dynamic_lookup
TARGET := plugin.dylib
RACK_USER_DIR ?= $(HOME)/Documents/Rack
endif

ifeq ($(ARCH), win)
LDFLAGS += -shared -L$(RACK_DIR) -lRack
TARGET := plugin.dll
RACK_USER_DIR ?= $(USERPROFILE)/Documents/Rack
endif


@@ -57,6 +60,8 @@ endif
# Create ZIP package
cd dist && zip -5 -r $(SLUG)-$(VERSION)-$(ARCH).zip $(SLUG)

install: dist
cp dist/$(SLUG)-$(VERSION)-$(ARCH).zip $(RACK_USER_DIR)/plugins/

.PHONY: clean dist
.DEFAULT_GOAL := all

Loading…
Cancel
Save