deluge/Makefile

32 lines
741 B
Makefile
Raw Normal View History

2007-05-22 22:48:51 +00:00
#
# Makefile for Deluge
#
PYVER=`python -c "import sys; print sys.version[:3]"`
PREFIX ?= /usr
2007-07-24 16:34:49 +00:00
DESTDIR ?= ./
2007-05-24 17:42:13 +00:00
2007-05-22 22:48:51 +00:00
all:
python setup.py build
2007-07-24 16:34:49 +00:00
tarball:
python setup.py sdist
mv dist/deluge-*.tar.gz $(DESTDIR)
2007-05-22 22:48:51 +00:00
install:
2007-12-27 17:41:01 +00:00
python setup.py install --prefix=$(PREFIX) && /usr/bin/update-desktop-database;
2007-05-25 17:51:05 +00:00
clean:
2007-07-05 23:50:05 +00:00
python setup.py clean
rm -rf ./build
rm msgfmt.pyc
find . -name *.pyc -exec rm {} \;
uninstall:
-rm $(PREFIX)/bin/deluge
-rm -r $(PREFIX)/lib/python${PYVER}/site-packages/deluge
-rm -r $(PREFIX)/lib/python${PYVER}/site-packages/deluge-*.egg-info
2007-07-05 23:50:05 +00:00
-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.png