~ubuntu-branches/ubuntu/feisty/libgnome/feisty

« back to all changes in this revision

Viewing changes to po/Makefile.in.in

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2005-09-07 18:03:53 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050907180353-hf71fcfx1nb0omez
Tags: 2.12.0.1-0ubuntu1
* New upstream realease:
  - Bug fixes
    - Fix schemas install problem with vi translation (Rodney)
  - Updated translations
    - Vietnamese
* debian/patches/fix-vi.po.patch:
  - dropped, done upstream.

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@
32
37
gnulocaledir = $(datadir)/locale
33
38
gettextsrcdir = $(datadir)/glib-2.0/gettext/po
34
39
subdir = po
 
40
install_sh = @install_sh@
 
41
mkdir_p = @mkdir_p@
 
42
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
35
43
 
36
44
INSTALL = @INSTALL@
37
45
INSTALL_DATA = @INSTALL_DATA@
38
 
MKINSTALLDIRS = $(top_srcdir)/@MKINSTALLDIRS@
39
46
 
40
47
CC = @CC@
41
48
GENCAT = @GENCAT@
44
51
XGETTEXT = @XGETTEXT@
45
52
INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
46
53
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
 
54
MSGMERGE = INTLTOOL_EXTRACT=$(INTLTOOL_EXTRACT) srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --dist
 
55
GENPOT   = INTLTOOL_EXTRACT=$(INTLTOOL_EXTRACT) srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --pot
49
56
 
50
57
DEFS = @DEFS@
51
58
CFLAGS = @CFLAGS@
58
65
SOURCES = 
59
66
POFILES = @POFILES@
60
67
GMOFILES = @GMOFILES@
61
 
DISTFILES = ChangeLog Makefile.in.in POTFILES.in $(GETTEXT_PACKAGE).pot \
62
 
$(POFILES) $(GMOFILES) $(SOURCES)
 
68
DISTFILES = ChangeLog Makefile.in.in POTFILES.in \
 
69
$(POFILES) $(SOURCES)
 
70
EXTRA_DISTFILES = POTFILES.skip Makevars LINGUAS
63
71
 
64
72
POTFILES = \
65
73
 
75
83
 
76
84
.po.pox:
77
85
        $(MAKE) $(GETTEXT_PACKAGE).pot
78
 
        $(MSGMERGE) $< $(srcdir)/$(GETTEXT_PACKAGE).pot -o $*pox
 
86
        $(MSGMERGE) $< $(GETTEXT_PACKAGE).pot -o $*.pox
79
87
 
80
88
.po.mo:
81
89
        $(MSGFMT) -o $@ $<
82
90
 
83
91
.po.gmo:
84
 
        file=$(srcdir)/`echo $* | sed 's,.*/,,'`.gmo \
 
92
        file=`echo $* | sed 's,.*/,,'`.gmo \
85
93
          && rm -f $$file && $(GMSGFMT) -o $$file $<
86
94
 
87
95
.po.cat:
94
102
all-yes: $(CATALOGS)
95
103
all-no:
96
104
 
97
 
$(srcdir)/$(GETTEXT_PACKAGE).pot: $(POTFILES)
 
105
$(GETTEXT_PACKAGE).pot: $(POTFILES)
98
106
        $(GENPOT)
99
107
 
100
108
install: install-exec install-data
102
110
install-data: install-data-@USE_NLS@
103
111
install-data-no: all
104
112
install-data-yes: all
105
 
        if test -r "$(MKINSTALLDIRS)"; then \
 
113
        if test -n "$(MKINSTALLDIRS)"; then \
106
114
          $(MKINSTALLDIRS) $(DESTDIR)$(datadir); \
107
115
        else \
108
116
          $(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(datadir); \
116
124
          esac; \
117
125
          lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
118
126
          dir=$(DESTDIR)$$destdir/$$lang/LC_MESSAGES; \
119
 
          if test -r "$(MKINSTALLDIRS)"; then \
 
127
          if test -n "$(MKINSTALLDIRS)"; then \
120
128
            $(MKINSTALLDIRS) $$dir; \
121
129
          else \
122
130
            $(SHELL) $(top_srcdir)/mkinstalldirs $$dir; \
144
152
          fi; \
145
153
        done
146
154
        if test "$(PACKAGE)" = "glib"; then \
147
 
          if test -r "$(MKINSTALLDIRS)"; then \
 
155
          if test -n "$(MKINSTALLDIRS)"; then \
148
156
            $(MKINSTALLDIRS) $(DESTDIR)$(gettextsrcdir); \
149
157
          else \
150
158
            $(SHELL) $(top_srcdir)/mkinstalldirs $(DESTDIR)$(gettextsrcdir); \
172
180
          rm -f $(DESTDIR)$(gettextsrcdir)/Makefile.in.in; \
173
181
        fi
174
182
 
175
 
check: all
 
183
check: all $(GETTEXT_PACKAGE).pot
176
184
 
177
185
dvi info tags TAGS ID:
178
186
 
179
187
mostlyclean:
180
 
        rm -f core core.* *.pox $(GETTEXT_PACKAGE).po *.old.po cat-id-tbl.tmp
 
188
        rm -f core core.* *.pox $(GETTEXT_PACKAGE).pot *.old.po cat-id-tbl.tmp
181
189
        rm -fr *.o
182
190
        rm -f .intltool-merge-cache
183
191
 
184
192
clean: mostlyclean
185
193
 
186
194
distclean: clean
187
 
        rm -f Makefile Makefile.in POTFILES *.mo *.msg *.cat *.cat.m
 
195
        rm -f Makefile Makefile.in POTFILES
 
196
        rm -f *.mo *.msg *.cat *.cat.m $(GMOFILES)
188
197
 
189
198
maintainer-clean: distclean
190
199
        @echo "This command is intended for maintainers to use;"
191
200
        @echo "it deletes files that may require special tools to rebuild."
192
 
        rm -f $(GMOFILES)
 
201
        rm -f Makefile.in.in
193
202
 
194
203
distdir = ../$(GETTEXT_PACKAGE)-$(VERSION)/$(subdir)
195
 
dist distdir: update-po $(DISTFILES)
 
204
dist distdir: $(DISTFILES)
196
205
        dists="$(DISTFILES)"; \
 
206
        extra_dists="$(EXTRA_DISTFILES)"; \
 
207
        for file in $$extra_dists; do \
 
208
          test -f $$file && dists="$$dists $$file"; \
 
209
        done; \
197
210
        for file in $$dists; do \
198
211
          ln $(srcdir)/$$file $(distdir) 2> /dev/null \
199
212
            || cp -p $(srcdir)/$$file $(distdir); \
202
215
update-po: Makefile
203
216
        $(MAKE) $(GETTEXT_PACKAGE).pot
204
217
        tmpdir=`pwd`; \
205
 
        cd $(srcdir); \
206
218
        catalogs='$(CATALOGS)'; \
207
219
        for cat in $$catalogs; do \
208
220
          cat=`basename $$cat`; \
209
221
          lang=`echo $$cat | sed 's/\$(CATOBJEXT)$$//'`; \
210
222
          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 \
 
223
          result="`$(MSGMERGE) -o $$tmpdir/$$lang.new.po $$lang`"; \
 
224
          if $$result; then \
 
225
            if cmp $(srcdir)/$$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
213
226
              rm -f $$tmpdir/$$lang.new.po; \
214
227
            else \
215
228
              if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \