forked from vcucek/ifi-tidal-moode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
32 lines (29 loc) · 1.15 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
PREFIX = /opt
configure:
chmod +x ./bin/tidal_connect_application
chmod +x ./bin/speaker_controller_application
chmod +x ./select-device.sh
chmod +x ./start.sh
./select-device.sh
.PHONY: install
install: bin/tidal_connect_application bin/speaker_controller_application
install -d $(DESTDIR)$(PREFIX)/tidal-connect/
cp -r ./* $(DESTDIR)$(PREFIX)/tidal-connect
chmod +x $(DESTDIR)$(PREFIX)/tidal-connect/bin/tidal_connect_application
chmod +x $(DESTDIR)$(PREFIX)/tidal-connect/bin/speaker_controller_application
chmod +x $(DESTDIR)$(PREFIX)/tidal-connect/start.sh
cp tidal-connect.service /lib/systemd/system/
cp speaker-controller.service /lib/systemd/system/
systemctl enable tidal-connect.service
systemctl start tidal-connect.service
systemctl enable speaker-controller.service
systemctl start speaker-controller.service
.PHONY: uninstall
uninstall:
systemctl stop tidal-connect.service
systemctl stop speaker-controller.service
systemctl disable tidal-connect.service
systemctl disable speaker-controller.service
rm -rf $(DESTDIR)$(PREFIX)/tidal-connect
rm /lib/systemd/system/tidal-connect.service
rm /lib/systemd/system/speaker-controller.service