forked from lachlan-00/rb-fileorganizer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
38 lines (31 loc) · 1.12 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
37
INSTALLPATH="$(HOME)/.local/share/rhythmbox/plugins/fileorganizer/"
INSTALLTEXT="The Fileorganizer plugin has been installed. You may now restart Rhythmbox and enable the 'Fileorganizer' plugin."
UNINSTALLTEXT="The Fileorganizer plugin had been removed. The next time you restart Rhythmbox it will dissappear from the plugins list."
PLUGINFILE="fileorganizer.plugin"
install-req:
# Make environment
mkdir -p $(INSTALLPATH)template
# Copy files, forcefully
cp $(PLUGINFILE) $(INSTALLPATH) -f
cp *.py $(INSTALLPATH) -f
cp *.ui $(INSTALLPATH) -f
cp template/*.conf $(INSTALLPATH)template -f
cp README $(INSTALLPATH) -f
cp UNINSTALL $(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)