~ubuntu-branches/debian/sid/guake/sid

« back to all changes in this revision

Viewing changes to po/Makefile.in.in

  • Committer: Package Import Robot
  • Author(s): Daniel Echeverry
  • Date: 2014-09-05 21:47:17 UTC
  • mfrom: (1.1.6)
  • mto: (1.1.7)
  • mto: This revision was merged to the branch mainline in revision 24.
  • Revision ID: package-import@ubuntu.com-20140905214717-o44j7cegdz6t44yl
Tags: upstream-0.5.0
ImportĀ upstreamĀ versionĀ 0.5.0

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