This repository has been archived on 2024-12-15. You can view files and clone it, but cannot push or open issues or pull requests.
Pi/mopidy-switcher/Makefile

21 lines
503 B
Makefile

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