diff options
author | cbdev <cb@cbcdn.com> | 2019-12-06 18:58:59 +0100 |
---|---|---|
committer | cbdev <cb@cbcdn.com> | 2019-12-06 18:58:59 +0100 |
commit | 96fe966928cd83f22aed388a11013b67c1a374a1 (patch) | |
tree | d9a9e18b210793a2a30172922f6a2c2e6d7fc10c /Makefile | |
parent | d92cf08ac473b2a904ba8873a7c7358e5440cb39 (diff) | |
download | midimonster-96fe966928cd83f22aed388a11013b67c1a374a1.tar.gz midimonster-96fe966928cd83f22aed388a11013b67c1a374a1.tar.bz2 midimonster-96fe966928cd83f22aed388a11013b67c1a374a1.zip |
Make install path for examples configurable
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -3,6 +3,7 @@ OBJS = config.o backend.o plugin.o PREFIX ?= /usr PLUGIN_INSTALL = $(PREFIX)/lib/midimonster +EXAMPLES ?= $(PREFIX)/share/midimonster SYSTEM := $(shell uname -s) CFLAGS ?= -g -Wall -Wpedantic @@ -68,8 +69,8 @@ install: install -m 0755 midimonster "$(DESTDIR)$(PREFIX)/bin" install -d "$(DESTDIR)$(PLUGIN_INSTALL)" install -m 0755 backends/*.so "$(DESTDIR)$(PLUGIN_INSTALL)" - install -d "$(DESTDIR)$(PREFIX)/share/midimonster" - install -m 0644 configs/* "$(DESTDIR)$(PREFIX)/share/midimonster" + install -d "$(DESTDIR)$(EXAMPLES)" + install -m 0644 configs/* "$(DESTDIR)$(EXAMPLES)" ifdef DEFAULT_CFG install -Dm 0644 monster.cfg "$(DESTDIR)$(DEFAULT_CFG)" endif |