Skip to content

Commit 5b840d9

Browse files
committed
Add configuration files and examples to install target
1 parent dadadbe commit 5b840d9

File tree

2 files changed

+12
-39
lines changed

2 files changed

+12
-39
lines changed

Makefile

+8-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
OBJS = config.o backend.o plugin.o
33

44
PREFIX ?= /usr
5-
PLUGIN_INSTALL = "$(PREFIX)/lib/midimonster"
5+
PLUGIN_INSTALL = $(PREFIX)/lib/midimonster
66
SYSTEM := $(shell uname -s)
77

88
CFLAGS ?= -g -Wall -Wpedantic
@@ -65,9 +65,14 @@ run:
6565

6666
install:
6767
install -d "$(DESTDIR)$(PREFIX)/bin"
68-
install -d "$(DESTDIR)$(PLUGIN_INSTALL)"
6968
install -m 0755 midimonster "$(DESTDIR)$(PREFIX)/bin"
70-
install -m 0755 backends/*.so "$(DESTDIR)$(PREFIX)/lib/midimonster"
69+
install -d "$(DESTDIR)$(PLUGIN_INSTALL)"
70+
install -m 0755 backends/*.so "$(DESTDIR)$(PLUGIN_INSTALL)"
71+
install -d "$(DESTDIR)$(PREFIX)/share/midimonster"
72+
install -m 0644 configs/* "$(DESTDIR)$(PREFIX)/share/midimonster"
73+
ifdef DEFAULT_CFG
74+
install -m 0644 monster.cfg "$(DESTDIR)$(DEFAULT_CFG)"
75+
endif
7176

7277
sanitize: export CC = clang
7378
sanitize: export CFLAGS += -g -Wall -Wpedantic -fsanitize=address -fsanitize=undefined -fno-omit-frame-pointer

monster.cfg

+4-36
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,7 @@
1-
[backend artnet]
2-
bind = 0.0.0.0
3-
1+
; This is a useless default configuration
2+
; Replace it with a proper one from the configs/ directory or write your own :)
43
[loopback loop]
54

6-
[artnet art]
7-
universe = 0
8-
dest = 255.255.255.255
9-
10-
[backend midi]
11-
detect = on
12-
13-
[backend evdev]
14-
;detect = on
15-
16-
[midi bcf]
17-
read = BCF
18-
write = BCF
19-
20-
[evdev mouse]
21-
input = TPPS
22-
relaxis.REL_X = 255
23-
relaxis.REL_Y = -255
24-
25-
[maweb ma]
26-
;host = 10.23.23.248
27-
host = 127.0.0.1 4040
28-
user = web
29-
password = web
30-
315
[map]
32-
bcf.channel{0..7}.pitch > bcf.channel{0..7}.pitch
33-
bcf.channel{0..7}.pitch > art.{1..8}
34-
35-
bcf.channel{0..7}.pitch > ma.page1.fader{1..8}
36-
bcf.channel0.note{16..23} > ma.page1.upper{1..8}
37-
bcf.channel0.note{24..31} > ma.page1.lower{1..8}
38-
mouse.EV_REL.REL_Y > ma.page1.fader1
39-
mouse.EV_KEY.BTN_LEFT > ma.page2.button102
6+
loop.a > loop.b
7+
loop.b < loop.c

0 commit comments

Comments
 (0)