2016-01-08 10:07:05 +00:00
|
|
|
|
|
|
|
BIN_DIR=/usr/local/bin/mopidy-switcher
|
|
|
|
SYSV_DIR=/etc/init.d
|
|
|
|
SYSD_DIR=/etc/systemd/system
|
|
|
|
|
2016-01-08 10:08:48 +00:00
|
|
|
install-sysv: service/mopidy-switcher
|
|
|
|
install service/mopidy-switcher $(SYSV_DIR)
|
2016-01-08 10:07:05 +00:00
|
|
|
|
2016-01-08 10:08:48 +00:00
|
|
|
install-sysd: service/mopidy-switcher.service
|
|
|
|
install service/mopidy-switcher.service $(SYSD_DIR)
|
2016-01-08 10:07:05 +00:00
|
|
|
|
|
|
|
install-switcher: mopidy-switcher.py
|
|
|
|
install -D mopidy-switcher.py $(BIN_DIR)
|
|
|
|
|
|
|
|
install: install-sysd install-switcher
|
|
|
|
|
|
|
|
uninstall:
|
|
|
|
rm -rf $(BIN_DIR)
|
|
|
|
rm -f $(SYSV_DIR)/mopidy-switcher
|
|
|
|
rm -f $(SYSD_DIR)/mopidy-switcher.service
|