aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 5a83a2d..40570c8 100644
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,7 @@
OBJS = config.o backend.o plugin.o
PREFIX ?= /usr
+PLUGIN_INSTALL = "$(PREFIX)/lib/midimonster"
SYSTEM := $(shell uname -s)
CFLAGS ?= -g -Wall -Wpedantic
@@ -25,6 +26,7 @@ midimonster: CFLAGS += -DDEFAULT_CFG=\"$(DEFAULT_CFG)\"
endif
ifdef PLUGINS
midimonster: CFLAGS += -DPLUGINS=\"$(PLUGINS)\"
+PLUGIN_INSTALL = $(PLUGINS)
endif
all: midimonster backends
@@ -63,7 +65,7 @@ run:
install:
install -d "$(DESTDIR)$(PREFIX)/bin"
- install -d "$(DESTDIR)$(PREFIX)/lib/midimonster"
+ install -d "$(DESTDIR)$(PLUGIN_INSTALL)"
install -m 0755 midimonster "$(DESTDIR)$(PREFIX)/bin"
install -m 0755 backends/*.so "$(DESTDIR)$(PREFIX)/lib/midimonster"