aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2019-12-06 18:58:59 +0100
committercbdev <cb@cbcdn.com>2019-12-06 18:58:59 +0100
commit96fe966928cd83f22aed388a11013b67c1a374a1 (patch)
treed9a9e18b210793a2a30172922f6a2c2e6d7fc10c
parentd92cf08ac473b2a904ba8873a7c7358e5440cb39 (diff)
downloadmidimonster-96fe966928cd83f22aed388a11013b67c1a374a1.tar.gz
midimonster-96fe966928cd83f22aed388a11013b67c1a374a1.tar.bz2
midimonster-96fe966928cd83f22aed388a11013b67c1a374a1.zip
Make install path for examples configurable
-rw-r--r--Makefile5
-rw-r--r--README.md13
2 files changed, 10 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 8b2d7ec..8dab638 100644
--- a/Makefile
+++ b/Makefile
@@ -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
diff --git a/README.md b/README.md
index bcae9dd..9bcd913 100644
--- a/README.md
+++ b/README.md
@@ -159,12 +159,13 @@ For Linux and OSX, just running `make` in the source directory should do the tri
The build process accepts the following parameters, either from the environment or
as arguments to the `make` invocation:
-| Target | Parameter | Default value | Description |
-|---------------|-----------------------|-------------------------------|-------------------------------|
-| build targets | `DEFAULT_CFG` | `monster.cfg` | Default configuration file |
-| build targets | `PLUGINS` | Linux/OSX: `./backends/`, Windows: `backends\` | Backend plugin library path |
-| `install` | `DESTDIR` | empty | Destination directory for packaging builds |
-| `install` | `PREFIX` | `/usr` | Install prefix for binaries |
+| Target | Parameter | Default value | Description |
+|-------------------------------|-----------------------|-------------------------------|-------------------------------|
+| build targets, `install` | `DEFAULT_CFG` | `monster.cfg` | Default configuration file |
+| build targets, `install` | `PLUGINS` | Linux/OSX: `./backends/`, Windows: `backends\` | Backend plugin library path |
+| `install` | `DESTDIR` | empty | Destination directory for packaging builds |
+| `install` | `PREFIX` | `/usr` | Install prefix for binaries |
+| `install` | `EXAMPLES` | `$(PREFIX)/share/midimonster` | Install path for example configurations |
Some backends have been marked as optional as they require rather large additional software to be installed,
for example the `ola` backend. To create a build including these, run `make full`.