--- Makefile.old 2010-06-16 13:20:07.000000000 +0200 +++ Makefile 2010-06-16 14:04:15.000000000 +0200 @@ -1,4 +1,5 @@ DESTDIR=/ +PYVER:=$(shell python -c "import sys; print(sys.version[:3])") all: man @@ -12,8 +13,8 @@ rm -f src/tpfand/*.pyc install: all - install -d $(DESTDIR)/usr/lib/python2.5/site-packages/tpfand - install src/tpfand/* $(DESTDIR)/usr/lib/python2.5/site-packages/tpfand + install -d $(DESTDIR)/usr/lib/python$(PYVER)/site-packages/tpfand + install src/tpfand/* $(DESTDIR)/usr/lib/python$(PYVER)/site-packages/tpfand install -d $(DESTDIR)/usr/share/tpfand/ install -d $(DESTDIR)/usr/share/tpfand/models install -d $(DESTDIR)/usr/share/tpfand/models/by-id @@ -36,7 +37,7 @@ echo You still need to create links to the init script. uninstall: - rm -rf $(DESTDIR)/usr/lib/python2.5/site-packages/tpfand + rm -rf $(DESTDIR)/usr/lib/python$(PYVER)/site-packages/tpfand rm -rf $(DESTDIR)/usr/share/tpfand/ rm -f $(DESTDIR)/usr/sbin/tpfand rm -f $(DESTDIR)/etc/init.d/tpfand