aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorEddy Pedroni <epedroni@pm.me>2025-07-24 17:25:31 +0200
committerEddy Pedroni <epedroni@pm.me>2025-07-24 17:27:09 +0200
commit8d3dfa11baa8b2be32e0a9d31575469e1a7037b8 (patch)
treeacb766d74b925f8fb59325919b08fcb42148f104 /Makefile
parent7f85c4bbdbf52cddcf3be7b39c7d645c7fe80388 (diff)
Add deployment files
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..e0bd992
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,17 @@
+build-daemon:
+ cd daemon && make
+
+install: deployment/midi-router.service deployment/start-daemon.sh
+ mkdir -p ~/.config/systemd/user
+ install -o eddy -g eddy -m 644 deployment/midi-router.service ~/.config/systemd/user
+ chmod 755 deployment/start-daemon.sh
+ systemctl --user daemon-reload
+ systemctl --user enable midi-router.service
+ systemctl --user restart midi-router.service
+
+uninstall:
+ systemctl --user disable --now midi-router.service
+ rm ~/.config/systemd/user/midi-router.service
+ systemctl --user daemon-reload
+
+.PHONY: build-daemon install uninstall