diff options
author | cbdev <cb@cbcdn.com> | 2019-12-01 12:56:22 +0100 |
---|---|---|
committer | cbdev <cb@cbcdn.com> | 2019-12-01 12:56:22 +0100 |
commit | 5b840d986ae723656aad4163e12f7d24a88e1da3 (patch) | |
tree | 31ff7b9a488102bd63ef23025f5bf6d3f80a4afc | |
parent | dadadbe4aa8028197cfaaedc37bceb920923b803 (diff) | |
download | midimonster-5b840d986ae723656aad4163e12f7d24a88e1da3.tar.gz midimonster-5b840d986ae723656aad4163e12f7d24a88e1da3.tar.bz2 midimonster-5b840d986ae723656aad4163e12f7d24a88e1da3.zip |
Add configuration files and examples to install target
-rw-r--r-- | Makefile | 11 | ||||
-rw-r--r-- | monster.cfg | 40 |
2 files changed, 12 insertions, 39 deletions
@@ -2,7 +2,7 @@ OBJS = config.o backend.o plugin.o PREFIX ?= /usr -PLUGIN_INSTALL = "$(PREFIX)/lib/midimonster" +PLUGIN_INSTALL = $(PREFIX)/lib/midimonster SYSTEM := $(shell uname -s) CFLAGS ?= -g -Wall -Wpedantic @@ -65,9 +65,14 @@ run: install: install -d "$(DESTDIR)$(PREFIX)/bin" - install -d "$(DESTDIR)$(PLUGIN_INSTALL)" install -m 0755 midimonster "$(DESTDIR)$(PREFIX)/bin" - install -m 0755 backends/*.so "$(DESTDIR)$(PREFIX)/lib/midimonster" + 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" +ifdef DEFAULT_CFG + install -m 0644 monster.cfg "$(DESTDIR)$(DEFAULT_CFG)" +endif sanitize: export CC = clang sanitize: export CFLAGS += -g -Wall -Wpedantic -fsanitize=address -fsanitize=undefined -fno-omit-frame-pointer diff --git a/monster.cfg b/monster.cfg index e6258a7..8e415a3 100644 --- a/monster.cfg +++ b/monster.cfg @@ -1,39 +1,7 @@ -[backend artnet] -bind = 0.0.0.0 - +; This is a useless default configuration +; Replace it with a proper one from the configs/ directory or write your own :) [loopback loop] -[artnet art] -universe = 0 -dest = 255.255.255.255 - -[backend midi] -detect = on - -[backend evdev] -;detect = on - -[midi bcf] -read = BCF -write = BCF - -[evdev mouse] -input = TPPS -relaxis.REL_X = 255 -relaxis.REL_Y = -255 - -[maweb ma] -;host = 10.23.23.248 -host = 127.0.0.1 4040 -user = web -password = web - [map] -bcf.channel{0..7}.pitch > bcf.channel{0..7}.pitch -bcf.channel{0..7}.pitch > art.{1..8} - -bcf.channel{0..7}.pitch > ma.page1.fader{1..8} -bcf.channel0.note{16..23} > ma.page1.upper{1..8} -bcf.channel0.note{24..31} > ma.page1.lower{1..8} -mouse.EV_REL.REL_Y > ma.page1.fader1 -mouse.EV_KEY.BTN_LEFT > ma.page2.button102 +loop.a > loop.b +loop.b < loop.c |