20 lines
471 B
Makefile
20 lines
471 B
Makefile
|
|
BIN_DIR=/usr/local/bin/mopidy-switcher
|
|
SYSV_DIR=/etc/init.d
|
|
SYSD_DIR=/etc/systemd/system
|
|
|
|
install-sysv: mopidy-switcher
|
|
install mopidy-switcher $(SYSV_DIR)
|
|
|
|
install-sysd: mopidy-switcher.service
|
|
install mopidy-switcher.service $(SYSD_DIR)
|
|
|
|
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
|