diff options
author | cbdev <cb@cbcdn.com> | 2019-11-10 14:24:51 +0100 |
---|---|---|
committer | cbdev <cb@cbcdn.com> | 2019-11-10 14:24:51 +0100 |
commit | aed52ce3e67f35c69ef1295f770a012258167496 (patch) | |
tree | 016cbc3e1a2c2de40387061bb08b9ce4eb42d9bb /Makefile | |
parent | 216bde68d3cca8f5f4dca2d97ae6c273037309cd (diff) | |
download | midimonster-aed52ce3e67f35c69ef1295f770a012258167496.tar.gz midimonster-aed52ce3e67f35c69ef1295f770a012258167496.tar.bz2 midimonster-aed52ce3e67f35c69ef1295f770a012258167496.zip |
Actually use plugin install path in Makefile
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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" |