]> git.lyx.org Git - lyx.git/blob - po/Makefile.in.in
Move Lexer to support/ directory (and lyx::support namespace)
[lyx.git] / po / Makefile.in.in
1 # Makefile for PO directory in any package using GNU gettext.
2 # Copyright (C) 1995-1997, 2000-2007, 2009-2010 by Ulrich Drepper <drepper@gnu.ai.mit.edu>
3 #
4 # Copying and distribution of this file, with or without modification,
5 # are permitted in any medium without royalty provided the copyright
6 # notice and this notice are preserved.  This file is offered as-is,
7 # without any warranty.
8 #
9 # Origin: gettext-0.19.7
10 GETTEXT_MACRO_VERSION = 0.19
11
12 PACKAGE = @PACKAGE@
13 VERSION = @VERSION@
14 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
15
16 # ADDED FOR LYX
17 PYTHON = @PYTHON@
18
19 SED = @SED@
20 SHELL = /bin/sh
21 @SET_MAKE@
22
23 srcdir = @srcdir@
24 top_srcdir = @top_srcdir@
25 VPATH = @srcdir@
26
27 prefix = @prefix@
28 exec_prefix = @exec_prefix@
29 datarootdir = @datarootdir@
30 datadir = @datadir@
31 localedir = @localedir@
32 gettextsrcdir = $(datadir)/gettext/po
33
34 INSTALL = @INSTALL@
35 INSTALL_DATA = @INSTALL_DATA@
36
37 # We use $(mkdir_p).
38 # In automake <= 1.9.x, $(mkdir_p) is defined either as "mkdir -p --" or as
39 # "$(mkinstalldirs)" or as "$(install_sh) -d". For these automake versions,
40 # @install_sh@ does not start with $(SHELL), so we add it.
41 # In automake >= 1.10, @mkdir_p@ is derived from ${MKDIR_P}, which is defined
42 # either as "/path/to/mkdir -p" or ".../install-sh -c -d". For these automake
43 # versions, $(mkinstalldirs) and $(install_sh) are unused.
44 mkinstalldirs = $(SHELL) @install_sh@ -d
45 install_sh = $(SHELL) @install_sh@
46 MKDIR_P = @MKDIR_P@
47 mkdir_p = @mkdir_p@
48
49 # When building gettext-tools, we prefer to use the built programs
50 # rather than installed programs.  However, we can't do that when we
51 # are cross compiling.
52 CROSS_COMPILING = @CROSS_COMPILING@
53
54 GMSGFMT_ = @GMSGFMT@
55 GMSGFMT_no = @GMSGFMT@
56 GMSGFMT_yes = @GMSGFMT_015@
57 GMSGFMT = $(GMSGFMT_$(USE_MSGCTXT))
58 MSGFMT_ = @MSGFMT@
59 MSGFMT_no = @MSGFMT@
60 MSGFMT_yes = @MSGFMT_015@
61 MSGFMT = $(MSGFMT_$(USE_MSGCTXT))
62 XGETTEXT_ = @XGETTEXT@
63 XGETTEXT_no = @XGETTEXT@
64 XGETTEXT_yes = @XGETTEXT_015@
65 XGETTEXT = $(XGETTEXT_$(USE_MSGCTXT))
66 MSGMERGE = msgmerge
67 MSGMERGE_UPDATE = @MSGMERGE@ --update
68 MSGINIT = msginit
69 MSGCONV = msgconv
70 MSGFILTER = msgfilter
71
72 POFILES = @POFILES@
73 GMOFILES = @GMOFILES@
74 UPDATEPOFILES = @UPDATEPOFILES@
75 DUMMYPOFILES = @DUMMYPOFILES@
76 DISTFILES.common = Makefile.in.in remove-potcdate.sin \
77 $(DISTFILES.common.extra1) $(DISTFILES.common.extra2) $(DISTFILES.common.extra3)
78 DISTFILES = $(DISTFILES.common) Makevars POTFILES.in \
79 $(POFILES) $(GMOFILES) \
80 $(DISTFILES.extra1) $(DISTFILES.extra2) $(DISTFILES.extra3)
81
82 POTFILES = \
83
84 CATALOGS = @CATALOGS@
85
86 POFILESDEPS_ = $(srcdir)/$(DOMAIN).pot
87 POFILESDEPS_yes = $(POFILESDEPS_)
88 POFILESDEPS_no =
89 POFILESDEPS = $(POFILESDEPS_$(PO_DEPENDS_ON_POT))
90
91 DISTFILESDEPS_ = update-po
92 DISTFILESDEPS_yes = $(DISTFILESDEPS_)
93 DISTFILESDEPS_no =
94 DISTFILESDEPS = $(DISTFILESDEPS_$(DIST_DEPENDS_ON_UPDATE_PO))
95
96 # Makevars gets inserted here. (Don't remove this line!)
97
98 .SUFFIXES:
99 .SUFFIXES: .po .gmo .mo .sed .sin .nop .po-create .po-update
100
101 .po.mo:
102         @echo "$(MSGFMT) -c -o $@ $<"; \
103         $(MSGFMT) -c -o t-$@ $< && mv t-$@ $@
104
105 .po.gmo:
106         @lang=`echo $* | sed -e 's,.*/,,'`; \
107         test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
108         echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o $${lang}.gmo $${lang}.po"; \
109         cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo
110
111 .sin.sed:
112         sed -e '/^#/d' $< > t-$@
113         mv t-$@ $@
114
115
116 all: all-@USE_NLS@
117
118 all-yes: stamp-po
119 all-no:
120
121 # Ensure that the gettext macros and this Makefile.in.in are in sync.
122 CHECK_MACRO_VERSION = \
123         test "$(GETTEXT_MACRO_VERSION)" = "@GETTEXT_MACRO_VERSION@" \
124           || { echo "*** error: gettext infrastructure mismatch: using a Makefile.in.in from gettext version $(GETTEXT_MACRO_VERSION) but the autoconf macros are from gettext version @GETTEXT_MACRO_VERSION@" 1>&2; \
125                exit 1; \
126              }
127
128 # $(srcdir)/$(DOMAIN).pot is only created when needed. When xgettext finds no
129 # internationalized messages, no $(srcdir)/$(DOMAIN).pot is created (because
130 # we don't want to bother translators with empty POT files). We assume that
131 # LINGUAS is empty in this case, i.e. $(POFILES) and $(GMOFILES) are empty.
132 # In this case, stamp-po is a nop (i.e. a phony target).
133
134 # stamp-po is a timestamp denoting the last time at which the CATALOGS have
135 # been loosely updated. Its purpose is that when a developer or translator
136 # checks out the package via CVS, and the $(DOMAIN).pot file is not in CVS,
137 # "make" will update the $(DOMAIN).pot and the $(CATALOGS), but subsequent
138 # invocations of "make" will do nothing. This timestamp would not be necessary
139 # if updating the $(CATALOGS) would always touch them; however, the rule for
140 # $(POFILES) has been designed to not touch files that don't need to be
141 # changed.
142 stamp-po: $(srcdir)/$(DOMAIN).pot
143         @$(CHECK_MACRO_VERSION)
144         test ! -f $(srcdir)/$(DOMAIN).pot || \
145           test -z "$(GMOFILES)" || $(MAKE) $(GMOFILES)
146         @test ! -f $(srcdir)/$(DOMAIN).pot || { \
147           echo "touch stamp-po" && \
148           echo timestamp > stamp-poT && \
149           mv stamp-poT stamp-po; \
150         }
151
152 # Note: Target 'all' must not depend on target '$(DOMAIN).pot-update',
153 # otherwise packages like GCC can not be built if only parts of the source
154 # have been downloaded.
155
156 # This target rebuilds $(DOMAIN).pot; it is an expensive operation.
157 # Note that $(DOMAIN).pot is not touched if it doesn't need to be changed.
158 # The determination of whether the package xyz is a GNU one is based on the
159 # heuristic whether some file in the top level directory mentions "GNU xyz".
160 # If GNU 'find' is available, we avoid grepping through monster files.
161 $(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed
162         package_gnu="$(PACKAGE_GNU)"; \
163         test -n "$$package_gnu" || { \
164           if { if (LC_ALL=C find --version) 2>/dev/null | grep GNU >/dev/null; then \
165                  LC_ALL=C find -L $(top_srcdir) -maxdepth 1 -type f \
166                                -size -10000000c -exec grep 'GNU @PACKAGE@' \
167                                /dev/null '{}' ';' 2>/dev/null; \
168                else \
169                  LC_ALL=C grep 'GNU @PACKAGE@' $(top_srcdir)/* 2>/dev/null; \
170                fi; \
171              } | grep -v 'libtool:' >/dev/null; then \
172              package_gnu=yes; \
173            else \
174              package_gnu=no; \
175            fi; \
176         }; \
177         if test "$$package_gnu" = "yes"; then \
178           package_prefix='GNU '; \
179         else \
180           package_prefix=''; \
181         fi; \
182         if test -n '$(MSGID_BUGS_ADDRESS)' || test '$(PACKAGE_BUGREPORT)' = '@'PACKAGE_BUGREPORT'@'; then \
183           msgid_bugs_address='$(MSGID_BUGS_ADDRESS)'; \
184         else \
185           msgid_bugs_address='$(PACKAGE_BUGREPORT)'; \
186         fi; \
187         case `$(XGETTEXT) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \
188           '' | 0.[0-9] | 0.[0-9].* | 0.1[0-5] | 0.1[0-5].* | 0.16 | 0.16.[0-1]*) \
189             $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \
190               --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) @XGETTEXT_EXTRA_OPTIONS@ \
191               --files-from=$(srcdir)/POTFILES.in \
192               --copyright-holder='$(COPYRIGHT_HOLDER)' \
193               --msgid-bugs-address="$$msgid_bugs_address" \
194             ;; \
195           *) \
196             $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \
197               --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) @XGETTEXT_EXTRA_OPTIONS@ \
198               --files-from=$(srcdir)/POTFILES.in \
199               --copyright-holder='$(COPYRIGHT_HOLDER)' \
200               --package-name="$${package_prefix}@PACKAGE@" \
201               --package-version='@VERSION@' \
202               --msgid-bugs-address="$$msgid_bugs_address" \
203             ;; \
204         esac
205         test ! -f $(DOMAIN).po || { \
206           if test -f $(srcdir)/$(DOMAIN).pot-header; then \
207             sed -e '1,/^#$$/d' < $(DOMAIN).po > $(DOMAIN).1po && \
208             cat $(srcdir)/$(DOMAIN).pot-header $(DOMAIN).1po > $(DOMAIN).po; \
209             rm -f $(DOMAIN).1po; \
210           fi; \
211           if test -f $(srcdir)/$(DOMAIN).pot; then \
212             sed -f remove-potcdate.sed < $(srcdir)/$(DOMAIN).pot > $(DOMAIN).1po && \
213             sed -f remove-potcdate.sed < $(DOMAIN).po > $(DOMAIN).2po && \
214             if cmp $(DOMAIN).1po $(DOMAIN).2po >/dev/null 2>&1; then \
215               rm -f $(DOMAIN).1po $(DOMAIN).2po $(DOMAIN).po; \
216             else \
217               rm -f $(DOMAIN).1po $(DOMAIN).2po $(srcdir)/$(DOMAIN).pot && \
218               mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \
219             fi; \
220           else \
221             mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \
222           fi; \
223         }
224
225 # This rule has no dependencies: we don't need to update $(DOMAIN).pot at
226 # every "make" invocation, only create it when it is missing.
227 # Only "make $(DOMAIN).pot-update" or "make dist" will force an update.
228 $(srcdir)/$(DOMAIN).pot:
229         $(MAKE) $(DOMAIN).pot-update
230
231 # This target rebuilds a PO file if $(DOMAIN).pot has changed.
232 # Note that a PO file is not touched if it doesn't need to be changed.
233 $(POFILES): $(POFILESDEPS)
234         @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \
235         if test -f "$(srcdir)/$${lang}.po"; then \
236           test -f $(srcdir)/$(DOMAIN).pot || $(MAKE) $(srcdir)/$(DOMAIN).pot; \
237           test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
238           echo "$${cdcmd}$(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot"; \
239           cd $(srcdir) \
240             && { case `$(MSGMERGE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \
241                    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \
242                      $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) $${lang}.po $(DOMAIN).pot;; \
243                    *) \
244                      $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot;; \
245                  esac; \
246                }; \
247         else \
248           $(MAKE) $${lang}.po-create; \
249         fi
250
251
252 install: install-exec install-data
253 install-exec:
254 install-data: install-data-@USE_NLS@
255         if test "$(PACKAGE)" = "gettext-tools"; then \
256           $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \
257           for file in $(DISTFILES.common) Makevars.template; do \
258             $(INSTALL_DATA) $(srcdir)/$$file \
259                             $(DESTDIR)$(gettextsrcdir)/$$file; \
260           done; \
261           for file in Makevars; do \
262             rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \
263           done; \
264         else \
265           : ; \
266         fi
267 install-data-no: all
268 install-data-yes: all
269         @catalogs='$(CATALOGS)'; \
270         for cat in $$catalogs; do \
271           cat=`basename $$cat`; \
272           lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
273           dir=$(localedir)/$$lang/LC_MESSAGES; \
274           $(mkdir_p) $(DESTDIR)$$dir; \
275           if test -r $$cat; then realcat=$$cat; else realcat=$(srcdir)/$$cat; fi; \
276           $(INSTALL_DATA) $$realcat $(DESTDIR)$$dir/$(DOMAIN).mo; \
277           echo "installing $$realcat as $(DESTDIR)$$dir/$(DOMAIN).mo"; \
278           for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \
279             if test -n "$$lc"; then \
280               if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \
281                 link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \
282                 mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
283                 mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
284                 (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \
285                  for file in *; do \
286                    if test -f $$file; then \
287                      ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \
288                    fi; \
289                  done); \
290                 rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
291               else \
292                 if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \
293                   :; \
294                 else \
295                   rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \
296                   mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
297                 fi; \
298               fi; \
299               rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \
300               ln -s ../LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \
301               ln $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \
302               cp -p $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \
303               echo "installing $$realcat link as $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo"; \
304             fi; \
305           done; \
306         done
307
308 install-strip: install
309
310 installdirs: installdirs-exec installdirs-data
311 installdirs-exec:
312 installdirs-data: installdirs-data-@USE_NLS@
313         if test "$(PACKAGE)" = "gettext-tools"; then \
314           $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \
315         else \
316           : ; \
317         fi
318 installdirs-data-no:
319 installdirs-data-yes:
320         @catalogs='$(CATALOGS)'; \
321         for cat in $$catalogs; do \
322           cat=`basename $$cat`; \
323           lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
324           dir=$(localedir)/$$lang/LC_MESSAGES; \
325           $(mkdir_p) $(DESTDIR)$$dir; \
326           for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \
327             if test -n "$$lc"; then \
328               if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \
329                 link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \
330                 mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
331                 mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
332                 (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \
333                  for file in *; do \
334                    if test -f $$file; then \
335                      ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \
336                    fi; \
337                  done); \
338                 rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
339               else \
340                 if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \
341                   :; \
342                 else \
343                   rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \
344                   mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
345                 fi; \
346               fi; \
347             fi; \
348           done; \
349         done
350
351 # Define this as empty until I found a useful application.
352 installcheck:
353
354 uninstall: uninstall-exec uninstall-data
355 uninstall-exec:
356 uninstall-data: uninstall-data-@USE_NLS@
357         if test "$(PACKAGE)" = "gettext-tools"; then \
358           for file in $(DISTFILES.common) Makevars.template; do \
359             rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \
360           done; \
361         else \
362           : ; \
363         fi
364 uninstall-data-no:
365 uninstall-data-yes:
366         catalogs='$(CATALOGS)'; \
367         for cat in $$catalogs; do \
368           cat=`basename $$cat`; \
369           lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
370           for lc in LC_MESSAGES $(EXTRA_LOCALE_CATEGORIES); do \
371             rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \
372           done; \
373         done
374
375 check: all
376
377 info dvi ps pdf html tags TAGS ctags CTAGS ID:
378
379 mostlyclean:
380         rm -f remove-potcdate.sed
381         rm -f stamp-poT
382         rm -f core core.* $(DOMAIN).po $(DOMAIN).1po $(DOMAIN).2po *.new.po
383         rm -fr *.o
384
385 clean: mostlyclean
386
387 distclean: clean
388         rm -f Makefile Makefile.in POTFILES *.mo
389
390 maintainer-clean: distclean
391         @echo "This command is intended for maintainers to use;"
392         @echo "it deletes files that may require special tools to rebuild."
393         rm -f stamp-po $(GMOFILES)
394
395 distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
396 dist distdir:
397         test -z "$(DISTFILESDEPS)" || $(MAKE) $(DISTFILESDEPS)
398         @$(MAKE) dist2
399 # This is a separate target because 'update-po' must be executed before.
400 dist2: stamp-po $(DISTFILES)
401         dists="$(DISTFILES)"; \
402         if test "$(PACKAGE)" = "gettext-tools"; then \
403           dists="$$dists Makevars.template"; \
404         fi; \
405         if test -f $(srcdir)/$(DOMAIN).pot; then \
406           dists="$$dists $(DOMAIN).pot stamp-po"; \
407         fi; \
408         if test -f $(srcdir)/ChangeLog; then \
409           dists="$$dists ChangeLog"; \
410         fi; \
411         for i in 0 1 2 3 4 5 6 7 8 9; do \
412           if test -f $(srcdir)/ChangeLog.$$i; then \
413             dists="$$dists ChangeLog.$$i"; \
414           fi; \
415         done; \
416         if test -f $(srcdir)/LINGUAS; then dists="$$dists LINGUAS"; fi; \
417         for file in $$dists; do \
418           if test -f $$file; then \
419             cp -p $$file $(distdir) || exit 1; \
420           else \
421             cp -p $(srcdir)/$$file $(distdir) || exit 1; \
422           fi; \
423         done
424
425 update-po: Makefile
426         $(MAKE) $(DOMAIN).pot-update
427         test -z "$(UPDATEPOFILES)" || $(MAKE) $(UPDATEPOFILES)
428         $(MAKE) update-gmo
429
430 # General rule for creating PO files.
431
432 .nop.po-create:
433         @lang=`echo $@ | sed -e 's/\.po-create$$//'`; \
434         echo "File $$lang.po does not exist. If you are a translator, you can create it through 'msginit'." 1>&2; \
435         exit 1
436
437 # General rule for updating PO files.
438
439 .nop.po-update:
440         @lang=`echo $@ | sed -e 's/\.po-update$$//'`; \
441         if test "$(PACKAGE)" = "gettext-tools" && test "$(CROSS_COMPILING)" != "yes"; then PATH=`pwd`/../src:$$PATH; fi; \
442         tmpdir=`pwd`; \
443         echo "$$lang:"; \
444         test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
445         echo "$${cdcmd}$(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \
446         cd $(srcdir); \
447         if { case `$(MSGMERGE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \
448                '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \
449                  $(MSGMERGE) $(MSGMERGE_OPTIONS) -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \
450                *) \
451                  $(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \
452              esac; \
453            }; then \
454           if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
455             rm -f $$tmpdir/$$lang.new.po; \
456           else \
457             if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \
458               :; \
459             else \
460               echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \
461               exit 1; \
462             fi; \
463           fi; \
464         else \
465           echo "msgmerge for $$lang.po failed!" 1>&2; \
466           rm -f $$tmpdir/$$lang.new.po; \
467         fi
468
469 $(DUMMYPOFILES):
470
471 update-gmo: Makefile $(GMOFILES)
472         @:
473
474 # Recreate Makefile by invoking config.status. Explicitly invoke the shell,
475 # because execution permission bits may not work on the current file system.
476 # Use @SHELL@, which is the shell determined by autoconf for the use by its
477 # scripts, not $(SHELL) which is hardwired to /bin/sh and may be deficient.
478 Makefile: Makefile.in.in Makevars $(top_builddir)/config.status @POMAKEFILEDEPS@
479         cd $(top_builddir) \
480           && @SHELL@ ./config.status $(subdir)/$@.in po-directories
481
482 force:
483
484 # Tell versions [3.59,3.63) of GNU make not to export all variables.
485 # Otherwise a system limit (for SysV at least) may be exceeded.
486 .NOEXPORT: