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/>.
22 PYTHON
= /usr
/bin
/python2.5
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
/
37 $(PYTHON
) setup.py
install --optimize
2 --root
=$(DESTDIR
) --prefix=$(PREFIX
)
40 mkdir
-p
$(DESTDIR
)/etc
/gconf
/schemas
41 install data
/panucci.schemas
$(DESTDIR
)/etc
/gconf
/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?
51 gtk-update-icon-cache
-f
-i
$(DESTDIR
)$(PREFIX
)/share
/icons
/hicolor
/
52 update-desktop-database
$(DESTDIR
)$(PREFIX
)/share
/applications
/
55 rm -rf build src
/panucci
/*.
{pyc
,pyo
} data
/panucci.service
61 PYTHONPATH
=src
/ python bin
/panucci
--debug
64 LD_LIBRARY_PATH
=/usr
/lib
/gtk-2.0
/modules GTK_MODULES
=gtkparasite \
65 PYTHONPATH
=src
/ python bin
/panucci
--debug
68 # See: http://wiki.maemo.org/Uploading_to_Extras#Debian_tooling
69 dpkg-buildpackage
-rfakeroot
-sa
-i
-I.git