Added sysv and systemd configs and a makefile with install/uninstall targets
This commit is contained in:
parent
12dab7ee19
commit
a411af4052
3 changed files with 91 additions and 0 deletions
20
mopidy-switcher/Makefile
Normal file
20
mopidy-switcher/Makefile
Normal file
|
@ -0,0 +1,20 @@
|
|||
|
||||
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
|
Loading…
Add table
Add a link
Reference in a new issue