auto-detect python version for uninstall and change xpm to png

This commit is contained in:
Marcos Pinto 2007-07-24 11:07:53 +00:00
parent ef293f0742
commit d277cfb21a

View File

@ -1,7 +1,7 @@
# #
# Makefile for Deluge # Makefile for Deluge
# #
PYVER=`python -c "import sys; print sys.version[:3]"`
PREFIX = /usr PREFIX = /usr
all: all:
@ -18,11 +18,9 @@ clean:
uninstall: uninstall:
-rm $(PREFIX)/bin/deluge -rm $(PREFIX)/bin/deluge
-rm -r $(PREFIX)/lib/python2.5/site-packages/deluge -rm -r $(PREFIX)/lib/python${PYVER}/site-packages/deluge
-rm -r $(PREFIX)/lib/python2.5/site-packages/deluge-*.egg-info -rm -r $(PREFIX)/lib/python${PYVER}/site-packages/deluge-*.egg-info
-rm -r $(PREFIX)/lib/python2.4/site-packages/deluge
-rm -r $(PREFIX)/lib/python2.4/site-packages/deluge-*.egg-info
-rm -r $(PREFIX)/share/deluge -rm -r $(PREFIX)/share/deluge
-find ${PREFIX}/share/locale -name deluge.mo -exec rm {} \; -find ${PREFIX}/share/locale -name deluge.mo -exec rm {} \;
-rm $(PREFIX)/share/applications/deluge.desktop -rm $(PREFIX)/share/applications/deluge.desktop
-rm $(PREFIX)/share/pixmaps/deluge.xpm -rm $(PREFIX)/share/pixmaps/deluge.png