~ubuntu-branches/ubuntu/lucid/tsclient/lucid

« back to all changes in this revision

Viewing changes to po/Makefile.in.in

  • Committer: Bazaar Package Importer
  • Author(s): Kilian Krause, Clément Hermann, debian/patches/15_missing-include.patch, debian/patches/14_spanish-translation-encoding.patch, debian/patches/99_autogen.patch, debian/patches/10_remote_disk_mapping.patch, debian/patches/14_manpage_whatis.patch, debian/patches/15_fix-outdated-desktop-entry.patch, Loic Minier, Josselin Mouette, Kilian Krause
  • Date: 2007-11-07 23:24:42 UTC
  • mfrom: (2.1.2 lenny)
  • Revision ID: james.westby@ubuntu.com-20071107232442-z1xgsdg9whmkxp4j
Tags: 0.150-1
[ Clément Hermann ]
* New upstream release (Closes: #411465, #393976, #415583, #312506).
* Remove obsoletes patches. Included upstream.
  [debian/patches/15_missing-include.patch]
  [debian/patches/14_spanish-translation-encoding.patch]
  [debian/patches/99_autogen.patch]
* Add remote disk mapping support.
  [debian/patches/10_remote_disk_mapping.patch] (Closes: #449144)
* Fix lintian warning : manpage-has-bad-whatis-entry.
  [debian/patches/14_manpage_whatis.patch]
* Fix lintian warning : desktop-entry-contains-unknown-key.
  desktop entry specification 1.0.0 doesn't support [Actions]
  [debian/patches/15_fix-outdated-desktop-entry.patch]

[ Loic Minier ]
* Add a get-orig-source target to retrieve the upstream tarball.
* Set maintainer to Debian GNOME Maintainers.
* Wrap build-deps and deps.

[ Josselin Mouette ]
* Remove generated files in the clean target. Closes: #442751.

[ Kilian Krause ]
* Add Clément Hermann to Uploaders.
* Fix debian/watch (Closes: #449629)

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
#
12
12
# - Modified by jacob berkman <jacob@ximian.com> to install
13
13
#   Makefile.in.in and po2tbl.sed.in for use with glib-gettextize
 
14
#
 
15
# - Modified by Rodney Dawes <dobey@novell.com> for use with intltool
 
16
#
 
17
# We have the following line for use by intltoolize:
 
18
# INTLTOOL_MAKEFILE
14
19
 
15
20
GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
16
21
PACKAGE = @PACKAGE@
17
22
VERSION = @VERSION@
18
23
 
19
24
SHELL = /bin/sh
20
 
@SET_MAKE@
21
25
 
22
26
srcdir = @srcdir@
23
27
top_srcdir = @top_srcdir@
24
 
top_builddir = ..
 
28
top_builddir = @top_builddir@
25
29
VPATH = @srcdir@
26
30
 
27
31
prefix = @prefix@
28
32
exec_prefix = @exec_prefix@
29
33
datadir = @datadir@
 
34
datarootdir = @datarootdir@
30
35
libdir = @libdir@
31
 
localedir = $(libdir)/locale
32
 
gnulocaledir = $(datadir)/locale
33
 
gettextsrcdir = $(datadir)/glib-2.0/gettext/po
 
36
DATADIRNAME = @DATADIRNAME@
 
37
itlocaledir = $(prefix)/$(DATADIRNAME)/locale
34
38
subdir = po
 
39
install_sh = @install_sh@
 
40
# Automake >= 1.8 provides @mkdir_p@.
 
41
# Until it can be supposed, use the safe fallback:
 
42
mkdir_p = $(install_sh) -d
35
43
 
36
44
INSTALL = @INSTALL@
37
45
INSTALL_DATA = @INSTALL_DATA@
38
 
MKINSTALLDIRS = $(top_srcdir)/@MKINSTALLDIRS@
39
46
 
40
 
CC = @CC@
41
 
GENCAT = @GENCAT@
42
47
GMSGFMT = @GMSGFMT@
43
48
MSGFMT = @MSGFMT@
44
49
XGETTEXT = @XGETTEXT@
45
50
INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
46
51
INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
47
 
MSGMERGE = INTLTOOL_EXTRACT=$(INTLTOOL_EXTRACT) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --dist
48
 
GENPOT   = INTLTOOL_EXTRACT=$(INTLTOOL_EXTRACT) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --pot
49
 
 
50
 
DEFS = @DEFS@
51
 
CFLAGS = @CFLAGS@
52
 
CPPFLAGS = @CPPFLAGS@
53
 
 
54
 
INCLUDES = -I.. -I$(top_srcdir)/intl
55
 
 
56
 
COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS) $(XCFLAGS)
57
 
 
58
 
SOURCES = 
59
 
POFILES = @POFILES@
60
 
GMOFILES = @GMOFILES@
61
 
DISTFILES = ChangeLog Makefile.in.in POTFILES.in $(GETTEXT_PACKAGE).pot \
62
 
$(POFILES) $(GMOFILES) $(SOURCES)
 
52
MSGMERGE = INTLTOOL_EXTRACT=$(INTLTOOL_EXTRACT) srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --dist
 
53
GENPOT   = INTLTOOL_EXTRACT=$(INTLTOOL_EXTRACT) srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --pot
 
54
 
 
55
ALL_LINGUAS = @ALL_LINGUAS@
 
56
 
 
57
PO_LINGUAS=$(shell if test -r $(srcdir)/LINGUAS; then grep -v "^\#" $(srcdir)/LINGUAS; fi)
 
58
 
 
59
USER_LINGUAS=$(shell if test -n "$(LINGUAS)"; then LLINGUAS="$(LINGUAS)"; ALINGUAS="$(ALL_LINGUAS)"; for lang in $$LLINGUAS; do if test -n "`grep ^$$lang$$ $(srcdir)/LINGUAS`" -o -n "`echo $$ALINGUAS|grep ' ?$$lang ?'`"; then printf "$$lang "; fi; done; fi)
 
60
 
 
61
USE_LINGUAS=$(shell if test -n "$(USER_LINGUAS)"; then LLINGUAS="$(USER_LINGUAS)"; else if test -n "$(PO_LINGUAS)"; then LLINGUAS="$(PO_LINGUAS)"; else LLINGUAS="$(ALL_LINGUAS)"; fi; fi; for lang in $$LLINGUAS; do printf "$$lang "; done)
 
62
 
 
63
POFILES=$(shell LINGUAS="$(USE_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.po "; done)
 
64
 
 
65
DISTFILES = ChangeLog Makefile.in.in POTFILES.in $(POFILES)
 
66
EXTRA_DISTFILES = POTFILES.skip Makevars LINGUAS
63
67
 
64
68
POTFILES = \
 
69
# This comment gets stripped out
65
70
 
66
 
CATALOGS = @CATALOGS@
67
 
CATOBJEXT = @CATOBJEXT@
68
 
INSTOBJEXT = @INSTOBJEXT@
 
71
CATALOGS=$(shell LINGUAS="$(USE_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.gmo "; done)
69
72
 
70
73
.SUFFIXES:
71
 
.SUFFIXES: .c .o .po .pox .gmo .mo .msg .cat
72
 
 
73
 
.c.o:
74
 
        $(COMPILE) $<
 
74
.SUFFIXES: .po .pox .gmo .mo .msg .cat
75
75
 
76
76
.po.pox:
77
77
        $(MAKE) $(GETTEXT_PACKAGE).pot
78
 
        $(MSGMERGE) $< $(srcdir)/$(GETTEXT_PACKAGE).pot -o $*pox
 
78
        $(MSGMERGE) $< $(GETTEXT_PACKAGE).pot -o $*.pox
79
79
 
80
80
.po.mo:
81
81
        $(MSGFMT) -o $@ $<
82
82
 
83
83
.po.gmo:
84
 
        file=$(srcdir)/`echo $* | sed 's,.*/,,'`.gmo \
 
84
        file=`echo $* | sed 's,.*/,,'`.gmo \
85
85
          && rm -f $$file && $(GMSGFMT) -o $$file $<
86
86
 
87
87
.po.cat:
88
88
        sed -f ../intl/po2msg.sed < $< > $*.msg \
89
 
          && rm -f $@ && $(GENCAT) $@ $*.msg
 
89
          && rm -f $@ && gencat $@ $*.msg
90
90
 
91
91
 
92
92
all: all-@USE_NLS@
94
94
all-yes: $(CATALOGS)
95
95
all-no:
96
96
 
97
 
$(srcdir)/$(GETTEXT_PACKAGE).pot: $(POTFILES)
 
97
$(GETTEXT_PACKAGE).pot: $(POTFILES)
98
98
        $(GENPOT)
99
99
 
100
 
install: install-exec install-data
101
 
install-exec:
 
100
install: install-data
102
101
install-data: install-data-@USE_NLS@
103
102
install-data-no: all
104
103
install-data-yes: all
105
 
        if test -r "$(MKINSTALLDIRS)"; then \
106
 
          $(MKINSTALLDIRS) $(DESTDIR)$(datadir); \
107
 
        else \
108
 
          $(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(datadir); \
109
 
        fi
110
 
        @catalogs='$(CATALOGS)'; \
111
 
        for cat in $$catalogs; do \
112
 
          cat=`basename $$cat`; \
113
 
          case "$$cat" in \
114
 
            *.gmo) destdir=$(gnulocaledir);; \
115
 
            *)     destdir=$(localedir);; \
116
 
          esac; \
117
 
          lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
118
 
          dir=$(DESTDIR)$$destdir/$$lang/LC_MESSAGES; \
119
 
          if test -r "$(MKINSTALLDIRS)"; then \
120
 
            $(MKINSTALLDIRS) $$dir; \
121
 
          else \
122
 
            $(SHELL) $(top_srcdir)/mkinstalldirs $$dir; \
123
 
          fi; \
124
 
          if test -r $$cat; then \
125
 
            $(INSTALL_DATA) $$cat $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT); \
126
 
            echo "installing $$cat as $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT)"; \
127
 
          else \
128
 
            $(INSTALL_DATA) $(srcdir)/$$cat $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT); \
129
 
            echo "installing $(srcdir)/$$cat as" \
130
 
                 "$$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT)"; \
131
 
          fi; \
132
 
          if test -r $$cat.m; then \
133
 
            $(INSTALL_DATA) $$cat.m $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m; \
134
 
            echo "installing $$cat.m as $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m"; \
135
 
          else \
136
 
            if test -r $(srcdir)/$$cat.m ; then \
137
 
              $(INSTALL_DATA) $(srcdir)/$$cat.m \
138
 
                $$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m; \
139
 
              echo "installing $(srcdir)/$$cat as" \
140
 
                   "$$dir/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m"; \
 
104
        $(mkdir_p) $(DESTDIR)$(itlocaledir)
 
105
        linguas="$(USE_LINGUAS)"; \
 
106
        for lang in $$linguas; do \
 
107
          dir=$(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES; \
 
108
          $(mkdir_p) $$dir; \
 
109
          if test -r $$lang.gmo; then \
 
110
            $(INSTALL_DATA) $$lang.gmo $$dir/$(GETTEXT_PACKAGE).mo; \
 
111
            echo "installing $$lang.gmo as $$dir/$(GETTEXT_PACKAGE).mo"; \
 
112
          else \
 
113
            $(INSTALL_DATA) $(srcdir)/$$lang.gmo $$dir/$(GETTEXT_PACKAGE).mo; \
 
114
            echo "installing $(srcdir)/$$lang.gmo as" \
 
115
                 "$$dir/$(GETTEXT_PACKAGE).mo"; \
 
116
          fi; \
 
117
          if test -r $$lang.gmo.m; then \
 
118
            $(INSTALL_DATA) $$lang.gmo.m $$dir/$(GETTEXT_PACKAGE).mo.m; \
 
119
            echo "installing $$lang.gmo.m as $$dir/$(GETTEXT_PACKAGE).mo.m"; \
 
120
          else \
 
121
            if test -r $(srcdir)/$$lang.gmo.m ; then \
 
122
              $(INSTALL_DATA) $(srcdir)/$$lang.gmo.m \
 
123
                $$dir/$(GETTEXT_PACKAGE).mo.m; \
 
124
              echo "installing $(srcdir)/$$lang.gmo.m as" \
 
125
                   "$$dir/$(GETTEXT_PACKAGE).mo.m"; \
141
126
            else \
142
127
              true; \
143
128
            fi; \
144
129
          fi; \
145
130
        done
146
 
        if test "$(PACKAGE)" = "glib"; then \
147
 
          if test -r "$(MKINSTALLDIRS)"; then \
148
 
            $(MKINSTALLDIRS) $(DESTDIR)$(gettextsrcdir); \
149
 
          else \
150
 
            $(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(gettextsrcdir); \
151
 
          fi; \
152
 
          $(INSTALL_DATA) $(srcdir)/Makefile.in.in \
153
 
                          $(DESTDIR)$(gettextsrcdir)/Makefile.in.in; \
154
 
        else \
155
 
          : ; \
156
 
        fi
 
131
 
 
132
# Empty stubs to satisfy archaic automake needs
 
133
dvi info tags TAGS ID:
157
134
 
158
135
# Define this as empty until I found a useful application.
159
136
installcheck:
160
137
 
161
138
uninstall:
162
 
        catalogs='$(CATALOGS)'; \
163
 
        for cat in $$catalogs; do \
164
 
          cat=`basename $$cat`; \
165
 
          lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
166
 
          rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE)$(INSTOBJEXT); \
167
 
          rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m; \
168
 
          rm -f $(DESTDIR)$(gnulocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE)$(INSTOBJEXT); \
169
 
          rm -f $(DESTDIR)$(gnulocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE)$(INSTOBJEXT).m; \
 
139
        linguas="$(USE_LINGUAS)"; \
 
140
        for lang in $$linguas; do \
 
141
          rm -f $(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo; \
 
142
          rm -f $(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo.m; \
170
143
        done
171
 
        if test "$(PACKAGE)" = "glib"; then \
172
 
          rm -f $(DESTDIR)$(gettextsrcdir)/Makefile.in.in; \
 
144
 
 
145
check: all $(GETTEXT_PACKAGE).pot
 
146
        rm -f missing notexist
 
147
        srcdir=$(srcdir) $(INTLTOOL_UPDATE) -m
 
148
        if [ -r missing -o -r notexist ]; then \
 
149
          exit 1; \
173
150
        fi
174
151
 
175
 
check: all
176
 
 
177
 
dvi info tags TAGS ID:
178
 
 
179
152
mostlyclean:
180
 
        rm -f core core.* *.pox $(GETTEXT_PACKAGE).po *.old.po cat-id-tbl.tmp
181
 
        rm -fr *.o
 
153
        rm -f *.pox $(GETTEXT_PACKAGE).pot *.old.po cat-id-tbl.tmp
182
154
        rm -f .intltool-merge-cache
183
155
 
184
156
clean: mostlyclean
185
157
 
186
158
distclean: clean
187
 
        rm -f Makefile Makefile.in POTFILES *.mo *.msg *.cat *.cat.m
 
159
        rm -f Makefile Makefile.in POTFILES stamp-it
 
160
        rm -f *.mo *.msg *.cat *.cat.m *.gmo
188
161
 
189
162
maintainer-clean: distclean
190
163
        @echo "This command is intended for maintainers to use;"
191
164
        @echo "it deletes files that may require special tools to rebuild."
192
 
        rm -f $(GMOFILES)
 
165
        rm -f Makefile.in.in
193
166
 
194
 
distdir = ../$(GETTEXT_PACKAGE)-$(VERSION)/$(subdir)
195
 
dist distdir: update-po $(DISTFILES)
 
167
distdir = ../$(PACKAGE)-$(VERSION)/$(subdir)
 
168
dist distdir: $(DISTFILES)
196
169
        dists="$(DISTFILES)"; \
 
170
        extra_dists="$(EXTRA_DISTFILES)"; \
 
171
        for file in $$extra_dists; do \
 
172
          test -f $(srcdir)/$$file && dists="$$dists $(srcdir)/$$file"; \
 
173
        done; \
197
174
        for file in $$dists; do \
198
 
          ln $(srcdir)/$$file $(distdir) 2> /dev/null \
199
 
            || cp -p $(srcdir)/$$file $(distdir); \
 
175
          test -f $$file || file="$(srcdir)/$$file"; \
 
176
          ln $$file $(distdir) 2> /dev/null \
 
177
            || cp -p $$file $(distdir); \
200
178
        done
201
179
 
202
180
update-po: Makefile
203
181
        $(MAKE) $(GETTEXT_PACKAGE).pot
204
182
        tmpdir=`pwd`; \
205
 
        cd $(srcdir); \
206
 
        catalogs='$(CATALOGS)'; \
207
 
        for cat in $$catalogs; do \
208
 
          cat=`basename $$cat`; \
209
 
          lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
 
183
        linguas="$(USE_LINGUAS)"; \
 
184
        for lang in $$linguas; do \
210
185
          echo "$$lang:"; \
211
 
          if $$tmpdir/$(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --dist -o $$tmpdir/$$lang.new.po $$lang; then \
212
 
            if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
 
186
          result="`$(MSGMERGE) -o $$tmpdir/$$lang.new.po $$lang`"; \
 
187
          if $$result; then \
 
188
            if cmp $(srcdir)/$$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
213
189
              rm -f $$tmpdir/$$lang.new.po; \
214
190
            else \
215
191
              if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \
221
197
              fi; \
222
198
            fi; \
223
199
          else \
224
 
            echo "msgmerge for $$cat failed!"; \
 
200
            echo "msgmerge for $$lang.gmo failed!"; \
225
201
            rm -f $$tmpdir/$$lang.new.po; \
226
202
          fi; \
227
203
        done
228
204
 
229
 
# POTFILES is created from POTFILES.in by stripping comments, empty lines
230
 
# and Intltool tags (enclosed in square brackets), and appending a full
231
 
# relative path to them
232
 
POTFILES: POTFILES.in
233
 
        ( if test 'x$(srcdir)' != 'x.'; then \
234
 
            posrcprefix='$(top_srcdir)/'; \
235
 
          else \
236
 
            posrcprefix="../"; \
237
 
          fi; \
238
 
          rm -f $@-t $@ \
239
 
            && (sed -e '/^#/d'                                          \
240
 
                    -e "s/^\[.*\] +//"                                  \
241
 
                    -e '/^[     ]*$$/d'                                 \
242
 
                    -e "s@.*@   $$posrcprefix& \\\\@" < $(srcdir)/$@.in \
243
 
                | sed -e '$$s/\\$$//') > $@-t \
244
 
            && chmod a-w $@-t \
245
 
            && mv $@-t $@ )
 
205
Makefile POTFILES: stamp-it
 
206
        @if test ! -f $@; then \
 
207
          rm -f stamp-it; \
 
208
          $(MAKE) stamp-it; \
 
209
        fi
246
210
 
247
 
Makefile: Makefile.in.in ../config.status POTFILES
248
 
        cd .. \
249
 
          && CONFIG_FILES=$(subdir)/$@.in CONFIG_HEADERS= \
 
211
stamp-it: Makefile.in.in $(top_builddir)/config.status POTFILES.in
 
212
        cd $(top_builddir) \
 
213
          && CONFIG_FILES=$(subdir)/Makefile.in CONFIG_HEADERS= CONFIG_LINKS= \
250
214
               $(SHELL) ./config.status
251
215
 
252
216
# Tell versions [3.59,3.63) of GNU make not to export all variables.