-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (30 loc) · 1.07 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
33
34
35
36
INSTALLPATH="$(HOME)/.local/share/rhythmbox/plugins/ampache-fm/"
INSTALLTEXT="The ampache-fm plugin has been installed. You may now restart Rhythmbox and enable the 'ampache-fm' plugin."
UNINSTALLTEXT="The ampache-fm plugin had been removed. The next time you restart Rhythmbox it will disappear from the plugins list."
PLUGINFILE="ampache-fm.plugin"
install-req:
# Make environment
mkdir -p $(INSTALLPATH)
# Copy files, forcefully
cp $(PLUGINFILE) $(INSTALLPATH) -f
cp ampache-fm.py $(INSTALLPATH) -f
cp ampache.py $(INSTALLPATH) -f
cp config.ui $(INSTALLPATH) -f
cp README.md $(INSTALLPATH) -f
cp LICENSE $(INSTALLPATH) -f
cp AUTHORS $(INSTALLPATH) -f
install: install-req
@echo
@echo $(INSTALLTEXT)
install-gui: install-req
# Notify graphically
zenity --info --title='Installation complete' --text=$(INSTALLTEXT)
uninstall-req:
# Simply remove the installation path folder
rm -rf $(INSTALLPATH)
uninstall: uninstall-req
@echo
@echo $(UNINSTALLTEXT)
uninstall-gui: uninstall-req
# Notify graphically
zenity --info --title='Uninstall complete' --text=$(UNINSTALLTEXT)