aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2019-11-10 14:24:51 +0100
committercbdev <cb@cbcdn.com>2019-11-10 14:24:51 +0100
commitaed52ce3e67f35c69ef1295f770a012258167496 (patch)
tree016cbc3e1a2c2de40387061bb08b9ce4eb42d9bb
parent216bde68d3cca8f5f4dca2d97ae6c273037309cd (diff)
downloadmidimonster-aed52ce3e67f35c69ef1295f770a012258167496.tar.gz
midimonster-aed52ce3e67f35c69ef1295f770a012258167496.tar.bz2
midimonster-aed52ce3e67f35c69ef1295f770a012258167496.zip
Actually use plugin install path in Makefile
-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"