Add DualActionButton widget for seek + bookmark buttons
[panucci.git] / Makefile
blob555844329a271ba804bef31a3a1dc65a1f4bbede
2 # This file is part of Panucci.
3 # Copyright (c) 2008-2009 The Panucci Audiobook and Podcast Player Project
5 # Panucci is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
10 # Panucci is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with Panucci. If not, see <http://www.gnu.org/licenses/>.
19 PREFIX ?= /usr
20 DESTDIR ?= /
22 PYTHON = /usr/bin/python2.5
24 all:
25 @echo "Possible make targets:"
26 @echo " install - install the package"
27 @echo " clean - remove the build files"
28 @echo " distclean - remove build files + dist target"
29 @echo " test - test the application"
31 install: python-install post-install install-schemas
32 replace @INSTALL_PREFIX@ $(DESTDIR)$(PREFIX) < \
33 data/panucci.service.in > data/panucci.service
34 install data/panucci.service $(DESTDIR)$(PREFIX)/share/dbus-1/services/
36 python-install:
37 $(PYTHON) setup.py install --optimize 2 --root=$(DESTDIR) --prefix=$(PREFIX)
39 copy-schemas:
40 mkdir -p $(DESTDIR)/etc/gconf/schemas
41 install data/panucci.schemas $(DESTDIR)/etc/gconf/schemas
43 install-schemas:
44 GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` \
45 gconftool-2 --makefile-install-rule data/panucci.schemas
46 # This isn't a problem, gconf gets started when it's needed
47 # DON'T WORRY IF THIS FAILS, kay?
48 -killall gconfd-2
50 post-install:
51 gtk-update-icon-cache -f -i $(DESTDIR)$(PREFIX)/share/icons/hicolor/
52 update-desktop-database $(DESTDIR)$(PREFIX)/share/applications/
54 clean:
55 rm -rf build src/panucci/*.{pyc,pyo} data/panucci.service
57 distclean: clean
58 rm -rf dist
60 test:
61 PYTHONPATH=src/ python bin/panucci --debug
63 ptest:
64 LD_LIBRARY_PATH=/usr/lib/gtk-2.0/modules GTK_MODULES=gtkparasite \
65 PYTHONPATH=src/ python bin/panucci --debug
67 build-package:
68 # See: http://wiki.maemo.org/Uploading_to_Extras#Debian_tooling
69 dpkg-buildpackage -rfakeroot -sa -i -I.git