-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathMakefile
33 lines (30 loc) · 1.09 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
PREFIX=/usr/local
all:
@echo "You can run Joytan with ./bin/joytan"
@echo "If you wish to install it system wide, type 'sudo make install'"
@echo "Uninstall with 'sudo make uninstall'"
install:
rm -rf ${PREFIX}/share/joytan
mkdir -p ${PREFIX}/share/joytan
cp -av * ${PREFIX}/share/joytan/
mkdir -p ${PREFIX}/bin
ln -sf ${PREFIX}/share/joytan/bin/joytan ${PREFIX}/bin/
mkdir -p ${PREFIX}/share/pixmaps
mkdir -p ${PREFIX}/share/applications
cd ${PREFIX}/share/joytan && (\
mv joytan.xpm ${PREFIX}/share/pixmaps;\
mv joytan.desktop ${PREFIX}/share/applications/)
@echo "Installing Joytan: This may take a minute."
xdg-mime install joytan.xml --novendor
xdg-mime default joytan.desktop applications/x-joytan
@echo
@echo "Install complete. Type 'joytan' to run."
uninstall:
@echo "Uninstalling Joytan: This may take a minute."
-xdg-mime uninstall ${PREFIX}/share/joytan/joytan.xml
rm -rf ${PREFIX}/share/joytan
rm -rf ${PREFIX}/bin/joytan
rm -rf ${PREFIX}/share/pixmaps/joytan.xpm
rm -rf ${PREFIX}/share/applications/joytan.desktop
@echo
@echo "Uninstall complete. Thank you for using Joytan."