~ubuntu-branches/ubuntu/trusty/pitivi/trusty

« back to all changes in this revision

Viewing changes to po/Makefile.in.in

  • Committer: Bazaar Package Importer
  • Author(s): Loic Minier
  • Date: 2007-01-31 15:32:37 UTC
  • mto: (3.2.1 hardy) (1.2.1 upstream) (6.1.1 sid)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20070131153237-de4p8lipjv8x5x3b
Tags: upstream-0.10.2
ImportĀ upstreamĀ versionĀ 0.10.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Makefile for program source directory in GNU NLS utilities package.
 
2
# Copyright (C) 1995, 1996, 1997 by Ulrich Drepper <drepper@gnu.ai.mit.edu>
 
3
#
 
4
# This file file be copied and used freely without restrictions.  It can
 
5
# be used in projects which are not available under the GNU Public License
 
6
# but which still want to provide support for the GNU gettext functionality.
 
7
# Please note that the actual code is *not* freely available.
 
8
#
 
9
# - Modified by Owen Taylor <otaylor@redhat.com> to use GETTEXT_PACKAGE
 
10
#   instead of PACKAGE and to look for po2tbl in ./ not in intl/
 
11
#
 
12
# - Modified by jacob berkman <jacob@ximian.com> to install
 
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
 
19
 
 
20
GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
 
21
PACKAGE = @PACKAGE@
 
22
VERSION = @VERSION@
 
23
 
 
24
SHELL = /bin/sh
 
25
 
 
26
srcdir = @srcdir@
 
27
top_srcdir = @top_srcdir@
 
28
top_builddir = ..
 
29
VPATH = @srcdir@
 
30
 
 
31
prefix = @prefix@
 
32
exec_prefix = @exec_prefix@
 
33
datadir = @datadir@
 
34
datarootdir = @datarootdir@
 
35
libdir = @libdir@
 
36
itlocaledir = $(datadir)/locale
 
37
subdir = po
 
38
install_sh = @install_sh@
 
39
# Automake >= 1.8 provides @mkdir_p@.
 
40
# Until it can be supposed, use the safe fallback:
 
41
mkdir_p = $(install_sh) -d
 
42
 
 
43
INSTALL = @INSTALL@
 
44
INSTALL_DATA = @INSTALL_DATA@
 
45
 
 
46
GMSGFMT = @GMSGFMT@
 
47
MSGFMT = @MSGFMT@
 
48
XGETTEXT = @XGETTEXT@
 
49
INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
 
50
INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
 
51
MSGMERGE = INTLTOOL_EXTRACT=$(INTLTOOL_EXTRACT) srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --dist
 
52
GENPOT   = INTLTOOL_EXTRACT=$(INTLTOOL_EXTRACT) srcdir=$(srcdir) $(INTLTOOL_UPDATE) --gettext-package $(GETTEXT_PACKAGE) --pot
 
53
 
 
54
ALL_LINGUAS = @ALL_LINGUAS@
 
55
 
 
56
PO_LINGUAS=$(shell if test -r $(srcdir)/LINGUAS; then grep -v "^\#" $(srcdir)/LINGUAS; fi)
 
57
 
 
58
POFILES=$(shell if test -n "$(PO_LINGUAS)"; then LINGUAS="$(PO_LINGUAS)"; else LINGUAS="$(ALL_LINGUAS)"; fi; for lang in $$LINGUAS; do printf "$$lang.po "; done)
 
59
 
 
60
DISTFILES = ChangeLog Makefile.in.in POTFILES.in $(POFILES)
 
61
EXTRA_DISTFILES = POTFILES.skip Makevars LINGUAS
 
62
 
 
63
POTFILES = \
 
64
#This Gets Replace for some reason
 
65
 
 
66
CATALOGS=$(shell if test -n "$(PO_LINGUAS)"; then LINGUAS="$(PO_LINGUAS)"; else LINGUAS="$(ALL_LINGUAS)"; fi; for lang in $$LINGUAS; do printf "$$lang.gmo "; done)
 
67
 
 
68
.SUFFIXES:
 
69
.SUFFIXES: .po .pox .gmo .mo .msg .cat
 
70
 
 
71
.po.pox:
 
72
        $(MAKE) $(GETTEXT_PACKAGE).pot
 
73
        $(MSGMERGE) $< $(GETTEXT_PACKAGE).pot -o $*.pox
 
74
 
 
75
.po.mo:
 
76
        $(MSGFMT) -o $@ $<
 
77
 
 
78
.po.gmo:
 
79
        file=`echo $* | sed 's,.*/,,'`.gmo \
 
80
          && rm -f $$file && $(GMSGFMT) -o $$file $<
 
81
 
 
82
.po.cat:
 
83
        sed -f ../intl/po2msg.sed < $< > $*.msg \
 
84
          && rm -f $@ && gencat $@ $*.msg
 
85
 
 
86
 
 
87
all: all-@USE_NLS@
 
88
 
 
89
all-yes: $(CATALOGS)
 
90
all-no:
 
91
 
 
92
$(GETTEXT_PACKAGE).pot: $(POTFILES)
 
93
        $(GENPOT)
 
94
 
 
95
install: install-data
 
96
install-data: install-data-@USE_NLS@
 
97
install-data-no: all
 
98
install-data-yes: all
 
99
        $(mkdir_p) $(DESTDIR)$(itlocaledir)
 
100
        if test -n "$(PO_LINGUAS)"; then \
 
101
          linguas="$(PO_LINGUAS)"; \
 
102
        else \
 
103
          linguas="$(ALL_LINGUAS)"; \
 
104
        fi; \
 
105
        for lang in $$linguas; do \
 
106
          dir=$(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES; \
 
107
          $(mkdir_p) $$dir; \
 
108
          if test -r $$lang.gmo; then \
 
109
            $(INSTALL_DATA) $$lang.gmo $$dir/$(GETTEXT_PACKAGE).mo; \
 
110
            echo "installing $$lang.gmo as $$dir/$(GETTEXT_PACKAGE).mo"; \
 
111
          else \
 
112
            $(INSTALL_DATA) $(srcdir)/$$lang.gmo $$dir/$(GETTEXT_PACKAGE).mo; \
 
113
            echo "installing $(srcdir)/$$lang.gmo as" \
 
114
                 "$$dir/$(GETTEXT_PACKAGE).mo"; \
 
115
          fi; \
 
116
          if test -r $$lang.gmo.m; then \
 
117
            $(INSTALL_DATA) $$lang.gmo.m $$dir/$(GETTEXT_PACKAGE).mo.m; \
 
118
            echo "installing $$lang.gmo.m as $$dir/$(GETTEXT_PACKAGE).mo.m"; \
 
119
          else \
 
120
            if test -r $(srcdir)/$$lang.gmo.m ; then \
 
121
              $(INSTALL_DATA) $(srcdir)/$$lang.gmo.m \
 
122
                $$dir/$(GETTEXT_PACKAGE).mo.m; \
 
123
              echo "installing $(srcdir)/$$lang.gmo.m as" \
 
124
                   "$$dir/$(GETTEXT_PACKAGE).mo.m"; \
 
125
            else \
 
126
              true; \
 
127
            fi; \
 
128
          fi; \
 
129
        done
 
130
 
 
131
# Empty stubs to satisfy archaic automake needs
 
132
dvi info tags TAGS ID:
 
133
 
 
134
# Define this as empty until I found a useful application.
 
135
installcheck:
 
136
 
 
137
uninstall:
 
138
        if test -n "$(PO_LINGUAS)"; then \
 
139
          linguas="$(PO_LINGUAS)"; \
 
140
        else \
 
141
          linguas="$(ALL_LINGUAS)"; \
 
142
        fi; \
 
143
        for lang in $$linguas; do \
 
144
          rm -f $(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo; \
 
145
          rm -f $(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo.m; \
 
146
        done
 
147
 
 
148
check: all $(GETTEXT_PACKAGE).pot
 
149
 
 
150
mostlyclean:
 
151
        rm -f *.pox $(GETTEXT_PACKAGE).pot *.old.po cat-id-tbl.tmp
 
152
        rm -f .intltool-merge-cache
 
153
 
 
154
clean: mostlyclean
 
155
 
 
156
distclean: clean
 
157
        rm -f Makefile Makefile.in POTFILES stamp-it
 
158
        rm -f *.mo *.msg *.cat *.cat.m *.gmo
 
159
 
 
160
maintainer-clean: distclean
 
161
        @echo "This command is intended for maintainers to use;"
 
162
        @echo "it deletes files that may require special tools to rebuild."
 
163
        rm -f Makefile.in.in
 
164
 
 
165
distdir = ../$(PACKAGE)-$(VERSION)/$(subdir)
 
166
dist distdir: $(DISTFILES)
 
167
        dists="$(DISTFILES)"; \
 
168
        extra_dists="$(EXTRA_DISTFILES)"; \
 
169
        for file in $$extra_dists; do \
 
170
          test -f $(srcdir)/$$file && dists="$$dists $(srcdir)/$$file"; \
 
171
        done; \
 
172
        for file in $$dists; do \
 
173
          test -f $$file || file="$(srcdir)/$$file"; \
 
174
          ln $$file $(distdir) 2> /dev/null \
 
175
            || cp -p $$file $(distdir); \
 
176
        done
 
177
 
 
178
update-po: Makefile
 
179
        $(MAKE) $(GETTEXT_PACKAGE).pot
 
180
        tmpdir=`pwd`; \
 
181
        if test -n "$(PO_LINGUAS)"; then \
 
182
          linguas="$(PO_LINGUAS)"; \
 
183
        else \
 
184
          linguas="$(ALL_LINGUAS)"; \
 
185
        fi; \
 
186
        for lang in $$linguas; do \
 
187
          echo "$$lang:"; \
 
188
          result="`$(MSGMERGE) -o $$tmpdir/$$lang.new.po $$lang`"; \
 
189
          if $$result; then \
 
190
            if cmp $(srcdir)/$$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
 
191
              rm -f $$tmpdir/$$lang.new.po; \
 
192
            else \
 
193
              if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \
 
194
                :; \
 
195
              else \
 
196
                echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \
 
197
                rm -f $$tmpdir/$$lang.new.po; \
 
198
                exit 1; \
 
199
              fi; \
 
200
            fi; \
 
201
          else \
 
202
            echo "msgmerge for $$lang.gmo failed!"; \
 
203
            rm -f $$tmpdir/$$lang.new.po; \
 
204
          fi; \
 
205
        done
 
206
 
 
207
Makefile POTFILES: stamp-it
 
208
        @if test ! -f $@; then \
 
209
          rm -f stamp-it; \
 
210
          $(MAKE) stamp-it; \
 
211
        fi
 
212
 
 
213
stamp-it: Makefile.in.in ../config.status POTFILES.in
 
214
        cd .. \
 
215
          && CONFIG_FILES=$(subdir)/Makefile.in CONFIG_HEADERS= CONFIG_LINKS= \
 
216
               $(SHELL) ./config.status
 
217
 
 
218
# Tell versions [3.59,3.63) of GNU make not to export all variables.
 
219
# Otherwise a system limit (for SysV at least) may be exceeded.
 
220
.NOEXPORT: