2005-11-21 19:21:25 +01:00
|
|
|
#
|
2007-08-29 20:30:26 +02:00
|
|
|
# gPodder - A media aggregator and podcast client
|
2010-01-02 17:35:42 +01:00
|
|
|
# Copyright (c) 2005-2010 Thomas Perl and the gPodder Team
|
2007-08-29 20:30:26 +02:00
|
|
|
#
|
|
|
|
# gPodder is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# gPodder is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
#
|
2005-11-21 19:21:25 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
##########################################################################
|
|
|
|
|
|
|
|
BINFILE=bin/gpodder
|
2006-03-31 15:00:54 +02:00
|
|
|
MESSAGESPOT=data/messages.pot
|
2009-09-13 23:37:23 +02:00
|
|
|
|
|
|
|
UIFILES=$(wildcard data/ui/*.ui \
|
|
|
|
data/ui/desktop/*.ui \
|
2009-09-15 22:35:46 +02:00
|
|
|
data/ui/maemo/*.ui \
|
|
|
|
data/ui/frmntl/*.ui)
|
2009-05-08 14:28:53 +02:00
|
|
|
UIFILES_H=$(subst .ui,.ui.h,$(UIFILES))
|
2009-09-13 23:37:23 +02:00
|
|
|
TRANSLATABLE_SOURCE=$(wildcard src/gpodder/*.py \
|
|
|
|
src/gpodder/gtkui/*.py \
|
|
|
|
src/gpodder/gtkui/interface/*.py \
|
|
|
|
src/gpodder/gtkui/desktop/*.py \
|
2009-09-15 22:35:46 +02:00
|
|
|
src/gpodder/gtkui/maemo/*.py \
|
|
|
|
src/gpodder/gtkui/frmntl/*.py)
|
2009-09-13 23:37:23 +02:00
|
|
|
|
2008-04-06 02:19:03 +02:00
|
|
|
HELP2MAN=help2man
|
2006-04-05 17:00:31 +02:00
|
|
|
MANPAGE=doc/man/gpodder.1
|
2005-11-21 19:21:25 +01:00
|
|
|
|
2009-09-06 23:05:38 +02:00
|
|
|
GPODDER_ICON_THEME=dist/gpodder
|
|
|
|
|
2006-04-13 12:10:33 +02:00
|
|
|
DESTDIR ?= /
|
2007-03-17 13:58:49 +01:00
|
|
|
PREFIX ?= /usr
|
2006-04-13 12:10:33 +02:00
|
|
|
|
2005-11-21 19:21:25 +01:00
|
|
|
##########################################################################
|
|
|
|
|
2006-04-08 08:50:20 +02:00
|
|
|
all: help
|
|
|
|
|
|
|
|
help:
|
|
|
|
@echo 'make test run gpodder in local directory'
|
2009-02-25 14:23:03 +01:00
|
|
|
@echo 'make unittest run doctests + unittests'
|
2008-04-06 02:19:03 +02:00
|
|
|
@echo 'make mtest run gpodder (for maemo scratchbox)'
|
2006-04-08 08:50:20 +02:00
|
|
|
@echo 'make release create source tarball in "dist/"'
|
2008-01-22 10:28:09 +01:00
|
|
|
@echo 'make releasetest run some tests before the release'
|
2007-03-18 17:11:34 +01:00
|
|
|
@echo 'make install install gpodder into "$(PREFIX)"'
|
2010-01-08 01:41:58 +01:00
|
|
|
@echo 'make manpage update manpage (on release)'
|
|
|
|
@echo 'make messages update messages.pot + .po files + .mo files'
|
2008-04-06 02:19:03 +02:00
|
|
|
@echo 'make clean remove generated+temp+*.py{c,o} files'
|
2006-04-08 08:50:20 +02:00
|
|
|
@echo 'make distclean do a "make clean" + remove "dist/"'
|
2006-07-30 15:17:27 +02:00
|
|
|
@echo ''
|
2009-04-27 18:22:37 +02:00
|
|
|
@echo 'make install-git-menuitem Add shortcuts to your menu for this git checkout'
|
|
|
|
@echo 'make remove-git-menuitem Remove shortcuts created by "install-git-menuitem"'
|
2006-07-30 15:17:27 +02:00
|
|
|
|
|
|
|
##########################################################################
|
|
|
|
|
2005-11-21 21:09:52 +01:00
|
|
|
test:
|
2008-02-24 14:52:29 +01:00
|
|
|
@# set xterm title to know what this window does ;)
|
|
|
|
@echo -ne '\033]0;gPodder console (make test)\007'
|
2009-05-07 16:26:07 +02:00
|
|
|
$(BINFILE) --verbose
|
2005-11-21 19:21:25 +01:00
|
|
|
|
2009-02-25 14:23:03 +01:00
|
|
|
unittest:
|
|
|
|
PYTHONPATH=src/ python -m gpodder.unittests
|
|
|
|
|
2008-04-06 02:19:03 +02:00
|
|
|
mtest:
|
|
|
|
@# in maemo scratchbox, we need this for osso/hildon
|
2009-09-04 19:11:21 +02:00
|
|
|
run-standalone.sh python2.5 $(BINFILE) --maemo --verbose
|
2008-04-06 02:19:03 +02:00
|
|
|
|
2005-11-22 14:57:08 +01:00
|
|
|
deb:
|
2006-04-05 17:00:31 +02:00
|
|
|
debuild
|
2005-11-22 14:57:08 +01:00
|
|
|
|
2007-03-07 15:53:05 +01:00
|
|
|
release: distclean
|
2005-11-21 19:21:25 +01:00
|
|
|
python setup.py sdist
|
|
|
|
|
2009-03-09 12:35:41 +01:00
|
|
|
releasetest: unittest
|
2008-01-22 10:28:09 +01:00
|
|
|
desktop-file-validate data/gpodder.desktop
|
2009-08-23 12:18:32 +02:00
|
|
|
make -C data/po validate
|
2008-01-22 10:28:09 +01:00
|
|
|
|
2010-01-08 01:41:58 +01:00
|
|
|
install:
|
2007-03-17 13:58:49 +01:00
|
|
|
python setup.py install --root=$(DESTDIR) --prefix=$(PREFIX)
|
2007-03-27 19:56:59 +02:00
|
|
|
|
2005-11-21 19:21:25 +01:00
|
|
|
##########################################################################
|
|
|
|
|
2010-01-08 01:41:58 +01:00
|
|
|
manpage: $(MANPAGE)
|
2005-11-21 19:21:25 +01:00
|
|
|
|
2010-01-08 01:41:58 +01:00
|
|
|
$(MANPAGE): src/gpodder/__init__.py $(BINFILE)
|
2008-04-06 02:19:03 +02:00
|
|
|
$(HELP2MAN) --name="A Media aggregator and Podcast catcher" -N $(BINFILE) >$(MANPAGE)
|
|
|
|
|
2010-01-08 01:41:58 +01:00
|
|
|
##########################################################################
|
2006-03-31 15:00:54 +02:00
|
|
|
|
2010-01-08 01:41:58 +01:00
|
|
|
messages: $(MESSAGESPOT)
|
|
|
|
make -C data/po
|
2006-03-31 15:00:54 +02:00
|
|
|
|
2010-01-08 01:41:58 +01:00
|
|
|
data/ui/%.ui.h: $(UIFILES)
|
|
|
|
intltool-extract --quiet --type=gettext/glade $(subst .ui.h,.ui,$@)
|
2006-03-31 15:00:54 +02:00
|
|
|
|
2010-01-08 01:41:58 +01:00
|
|
|
$(MESSAGESPOT): $(TRANSLATABLE_SOURCE) $(UIFILES_H) $(BINFILE)
|
|
|
|
xgettext -k_:1 -kN_:1,2 -o $(MESSAGESPOT) $(TRANSLATABLE_SOURCE) $(UIFILES_H) $(BINFILE)
|
2007-06-21 16:15:37 +02:00
|
|
|
|
2010-01-08 01:41:58 +01:00
|
|
|
##########################################################################
|
2007-06-21 16:15:37 +02:00
|
|
|
|
2009-04-27 18:22:37 +02:00
|
|
|
install-git-menuitem:
|
|
|
|
doc/dev/install-desktopentry.sh
|
|
|
|
|
|
|
|
remove-git-menuitem:
|
|
|
|
doc/dev/install-desktopentry.sh --remove
|
|
|
|
|
2009-09-06 23:05:38 +02:00
|
|
|
gpodder-icon-theme:
|
|
|
|
rm -rf $(GPODDER_ICON_THEME)
|
|
|
|
mkdir -p $(GPODDER_ICON_THEME)
|
|
|
|
python doc/dev/icon-theme/list-icon-names.py >$(GPODDER_ICON_THEME)/names
|
|
|
|
(cd $(GPODDER_ICON_THEME) && \
|
|
|
|
python ../../doc/dev/icon-theme/pack-icons.py && \
|
|
|
|
python ../../doc/dev/icon-theme/create-index.py >index.theme && \
|
|
|
|
rm -f names)
|
|
|
|
|
2005-11-21 19:21:25 +01:00
|
|
|
##########################################################################
|
|
|
|
|
|
|
|
clean:
|
|
|
|
python setup.py clean
|
2009-09-24 14:29:27 +02:00
|
|
|
find src/ -name '*.pyc' -exec rm '{}' \;
|
|
|
|
find src/ -name '*.pyo' -exec rm '{}' \;
|
2010-01-08 01:41:58 +01:00
|
|
|
rm -f MANIFEST PKG-INFO $(UIFILES_H) data/messages.pot~ data/gpodder-??x??.png .coverage
|
2005-11-21 19:21:25 +01:00
|
|
|
rm -rf build
|
2006-03-31 15:00:54 +02:00
|
|
|
make -C data/po clean
|
2005-11-21 19:21:25 +01:00
|
|
|
|
2006-04-05 17:00:31 +02:00
|
|
|
debclean:
|
|
|
|
fakeroot debian/rules clean
|
|
|
|
|
2005-11-21 19:21:25 +01:00
|
|
|
distclean: clean
|
|
|
|
rm -rf dist
|
2010-01-08 01:41:58 +01:00
|
|
|
|
2005-11-21 19:21:25 +01:00
|
|
|
##########################################################################
|
|
|
|
|
2010-01-08 01:41:58 +01:00
|
|
|
.PHONY: all test unittest release releasetest install manpage clean distclean messages help install-git-menuitem remove-git-menuitem
|
2005-11-21 19:21:25 +01:00
|
|
|
|
|
|
|
##########################################################################
|
|
|
|
|
|
|
|
|