~ubuntu-branches/ubuntu/vivid/gpodder/vivid

« back to all changes in this revision

Viewing changes to .pc/debian-changes-2.15-1/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): tony mancill
  • Date: 2011-05-31 22:05:31 UTC
  • mfrom: (5.2.18 sid)
  • Revision ID: james.westby@ubuntu.com-20110531220531-f3gt49fypbmuair8
Tags: 2.15-2
This time without a patch that reverts the source to 2.14.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#
2
 
# gPodder - A media aggregator and podcast client
3
 
# Copyright (c) 2005-2011 Thomas Perl and the gPodder Team
4
 
#
5
 
# gPodder 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.
9
 
#
10
 
# gPodder 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.
14
 
#
15
 
# You should have received a copy of the GNU General Public License
16
 
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
 
#
18
 
#
19
 
 
20
 
##########################################################################
21
 
 
22
 
BINFILE=bin/gpodder
23
 
MESSAGESPOT=data/messages.pot
24
 
 
25
 
UIFILES=$(wildcard data/ui/*.ui \
26
 
                   data/ui/desktop/*.ui \
27
 
                   data/ui/maemo/*.ui \
28
 
                   data/ui/frmntl/*.ui)
29
 
UIFILES_H=$(subst .ui,.ui.h,$(UIFILES))
30
 
TRANSLATABLE_SOURCE=$(wildcard src/gpodder/*.py \
31
 
                               src/gpodder/gtkui/*.py \
32
 
                               src/gpodder/gtkui/interface/*.py \
33
 
                               src/gpodder/gtkui/desktop/*.py \
34
 
                               src/gpodder/gtkui/maemo/*.py \
35
 
                               src/gpodder/gtkui/frmntl/*.py)
36
 
 
37
 
HELP2MAN=help2man
38
 
MANPAGE=doc/man/gpodder.1
39
 
 
40
 
GPODDER_ICON_THEME=dist/gpodder
41
 
 
42
 
GPODDER_SERVICE_FILE=data/org.gpodder.service
43
 
GPODDER_SERVICE_FILE_IN=$(addsuffix .in,$(GPODDER_SERVICE_FILE))
44
 
 
45
 
DESTDIR ?= /
46
 
PREFIX ?= /usr
47
 
 
48
 
PYTHON ?= python
49
 
 
50
 
##########################################################################
51
 
 
52
 
all: help
53
 
 
54
 
help:
55
 
        @echo 'make test            run gpodder in local directory'
56
 
        @echo 'make unittest        run doctests + unittests'
57
 
        @echo 'make release         create source tarball in "dist/"'
58
 
        @echo 'make releasetest     run some tests before the release'
59
 
        @echo 'make install         install gpodder into "$(PREFIX)"'
60
 
        @echo 'make manpage         update manpage (on release)'
61
 
        @echo 'make messages        update messages.pot + .po files + .mo files'
62
 
        @echo 'make clean           remove generated+temp+*.py{c,o} files'
63
 
        @echo 'make distclean       do a "make clean" + remove "dist/"'
64
 
        @echo 'make headlink        print URL for the current Git head'
65
 
        @echo ''
66
 
        @echo 'make install-git-menuitem   Add shortcuts to your menu for this git checkout'
67
 
        @echo 'make remove-git-menuitem    Remove shortcuts created by "install-git-menuitem"'
68
 
 
69
 
##########################################################################
70
 
 
71
 
test:
72
 
        @# set xterm title to know what this window does ;)
73
 
        @echo -ne '\033]0;gPodder console (make test)\007'
74
 
        $(BINFILE) --verbose
75
 
 
76
 
unittest:
77
 
        PYTHONPATH=src/ $(PYTHON) -m gpodder.unittests
78
 
 
79
 
deb:
80
 
        debuild
81
 
 
82
 
release: distclean
83
 
        $(PYTHON) setup.py sdist
84
 
 
85
 
releasetest: unittest
86
 
        desktop-file-validate data/gpodder.desktop
87
 
        make -C data/po validate
88
 
 
89
 
$(GPODDER_SERVICE_FILE): $(GPODDER_SERVICE_FILE_IN)
90
 
        sed -e 's#__PREFIX__#$(PREFIX)#' $< >$@
91
 
 
92
 
install: messages $(GPODDER_SERVICE_FILE)
93
 
        $(PYTHON) setup.py install --root=$(DESTDIR) --prefix=$(PREFIX)
94
 
 
95
 
##########################################################################
96
 
 
97
 
manpage: $(MANPAGE)
98
 
 
99
 
$(MANPAGE): src/gpodder/__init__.py $(BINFILE)
100
 
        $(HELP2MAN) --name="A Media aggregator and Podcast catcher" -N $(BINFILE) >$(MANPAGE)
101
 
 
102
 
##########################################################################
103
 
 
104
 
messages: $(MESSAGESPOT)
105
 
        make -C data/po
106
 
 
107
 
data/ui/%.ui.h: $(UIFILES)
108
 
        intltool-extract --quiet --type=gettext/glade $(subst .ui.h,.ui,$@)
109
 
 
110
 
$(MESSAGESPOT): $(TRANSLATABLE_SOURCE) $(UIFILES_H) $(BINFILE)
111
 
        xgettext -k_:1 -kN_:1 -kN_:1,2 -o $(MESSAGESPOT) $(TRANSLATABLE_SOURCE) $(UIFILES_H) $(BINFILE)
112
 
 
113
 
##########################################################################
114
 
 
115
 
install-git-menuitem:
116
 
        doc/dev/install-desktopentry.sh
117
 
 
118
 
remove-git-menuitem:
119
 
        doc/dev/install-desktopentry.sh --remove
120
 
 
121
 
gpodder-icon-theme:
122
 
        rm -rf $(GPODDER_ICON_THEME)
123
 
        mkdir -p $(GPODDER_ICON_THEME)
124
 
        $(PYTHON) doc/dev/icon-theme/list-icon-names.py >$(GPODDER_ICON_THEME)/names
125
 
        (cd $(GPODDER_ICON_THEME) && \
126
 
            $(PYTHON) ../../doc/dev/icon-theme/pack-icons.py && \
127
 
            $(PYTHON) ../../doc/dev/icon-theme/create-index.py >index.theme && \
128
 
            rm -f names)
129
 
 
130
 
##########################################################################
131
 
 
132
 
# This only works in a Git working commit, and assumes that the local Git
133
 
# HEAD has already been pushed to the main repository. It's mainly useful
134
 
# for the gPodder maintainer to quickly generate a commit link that can be
135
 
# posted online in bug trackers and mailing lists.
136
 
 
137
 
headlink:
138
 
        @echo http://gpodder.org/commit/`git show-ref HEAD | head -c8`
139
 
 
140
 
##########################################################################
141
 
 
142
 
clean:
143
 
        $(PYTHON) setup.py clean
144
 
        find src/ -name '*.pyc' -exec rm '{}' \;
145
 
        find src/ -name '*.pyo' -exec rm '{}' \;
146
 
        find data/ui/ -name '*.ui.h' -exec rm '{}' \;
147
 
        rm -f MANIFEST PKG-INFO data/messages.pot~
148
 
        rm -f data/gpodder-??x??.png .coverage $(GPODDER_SERVICE_FILE)
149
 
        rm -rf build
150
 
        make -C data/po clean
151
 
 
152
 
debclean:
153
 
        fakeroot debian/rules clean
154
 
 
155
 
distclean: clean
156
 
        rm -rf dist
157
 
 
158
 
##########################################################################
159
 
 
160
 
.PHONY: all test unittest release releasetest install manpage clean distclean messages help install-git-menuitem remove-git-menuitem headlink
161
 
 
162
 
##########################################################################
163
 
 
164