From d277cfb21a362fb6c22f7974ba9828c7a47dae44 Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Tue, 24 Jul 2007 11:07:53 +0000 Subject: [PATCH] auto-detect python version for uninstall and change xpm to png --- Makefile | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index aa9acc7f1..17ee0c536 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # # Makefile for Deluge # - +PYVER=`python -c "import sys; print sys.version[:3]"` PREFIX = /usr all: @@ -18,11 +18,9 @@ clean: uninstall: -rm $(PREFIX)/bin/deluge - -rm -r $(PREFIX)/lib/python2.5/site-packages/deluge - -rm -r $(PREFIX)/lib/python2.5/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)/lib/python${PYVER}/site-packages/deluge + -rm -r $(PREFIX)/lib/python${PYVER}/site-packages/deluge-*.egg-info -rm -r $(PREFIX)/share/deluge -find ${PREFIX}/share/locale -name deluge.mo -exec rm {} \; -rm $(PREFIX)/share/applications/deluge.desktop - -rm $(PREFIX)/share/pixmaps/deluge.xpm + -rm $(PREFIX)/share/pixmaps/deluge.png