]> git.lyx.org Git - lyx.git/blob - po/Makefile.in.in
Replace lyxerr based warnings and errors with Alert::error() and Alert::warning().
[lyx.git] / po / Makefile.in.in
1 # Makefile for PO directory in any package using GNU gettext.
2 # Copyright (C) 1995-1997, 2000-2004 by Ulrich Drepper <drepper@gnu.ai.mit.edu>
3 #
4 # This file can be copied and used freely without restrictions.  It can
5 # be used in projects which are not available under the GNU General Public
6 # License but which still want to provide support for the GNU gettext
7 # functionality.
8 # Please note that the actual code of GNU gettext is covered by the GNU
9 # General Public License and is *not* in the public domain.
10 #
11 # Origin: gettext-0.14
12
13 PACKAGE = @PACKAGE@
14 VERSION = @VERSION@
15
16 SHELL = /bin/sh
17 @SET_MAKE@
18
19 srcdir = @srcdir@
20 top_srcdir = @top_srcdir@
21 VPATH = @srcdir@
22
23 prefix = @prefix@
24 exec_prefix = @exec_prefix@
25 datarootdir = @datarootdir@
26 datadir = @datadir@
27 localedir = $(datadir)/locale
28 gettextsrcdir = $(datadir)/gettext/po
29
30 INSTALL = @INSTALL@
31 INSTALL_DATA = @INSTALL_DATA@
32 MKINSTALLDIRS = @MKINSTALLDIRS@
33 mkinstalldirs = $(SHELL) $(MKINSTALLDIRS)
34
35 AWK = @AWK@
36
37 GMSGFMT = @GMSGFMT@
38 MSGFMT = @MSGFMT@
39 XGETTEXT = @XGETTEXT@
40 MSGMERGE = msgmerge
41 MSGMERGE_UPDATE = @MSGMERGE@ --update
42 MSGINIT = msginit
43 MSGCONV = msgconv
44 MSGFILTER = msgfilter
45
46 POFILES = @POFILES@
47 GMOFILES = @GMOFILES@
48 UPDATEPOFILES = @UPDATEPOFILES@
49 DUMMYPOFILES = @DUMMYPOFILES@
50 DISTFILES.common = Makefile.in.in remove-potcdate.sin \
51 $(DISTFILES.common.extra1) $(DISTFILES.common.extra2) $(DISTFILES.common.extra3)
52 DISTFILES = $(DISTFILES.common) Makevars POTFILES.in $(DOMAIN).pot stamp-po \
53 $(POFILES) $(GMOFILES) \
54 $(DISTFILES.extra1) $(DISTFILES.extra2) $(DISTFILES.extra3)
55
56 POTFILE_IN_DEPS = $(shell find $(top_srcdir)/src -name Makefile.am)
57
58 POTFILES = \
59
60 CATALOGS = @CATALOGS@
61
62 # Makevars gets inserted here. (Don't remove this line!)
63
64 .SUFFIXES:
65 .SUFFIXES: .po .gmo .mo .sed .sin .nop .po-create .po-update
66
67 .po.mo:
68         @echo "$(MSGFMT) -c -o $@ $<"; \
69         $(MSGFMT) -c -o t-$@ $< && mv t-$@ $@
70
71 .po.gmo:
72         @lang=`echo $* | sed -e 's,.*/,,'`; \
73         test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
74         echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o $${lang}.gmo $${lang}.po"; \
75         cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo
76
77 .sin.sed:
78         sed -e '/^#/d' $< > t-$@
79         mv t-$@ $@
80
81
82 all: all-@USE_NLS@
83
84 all-yes: stamp-po
85 all-no:
86
87 # stamp-po is a timestamp denoting the last time at which the CATALOGS have
88 # been loosely updated. Its purpose is that when a developer or translator
89 # checks out the package via CVS, and the $(DOMAIN).pot file is not in CVS,
90 # "make" will update the $(DOMAIN).pot and the $(CATALOGS), but subsequent
91 # invocations of "make" will do nothing. This timestamp would not be necessary
92 # if updating the $(CATALOGS) would always touch them; however, the rule for
93 # $(POFILES) has been designed to not touch files that don't need to be
94 # changed.
95 stamp-po: $(srcdir)/$(DOMAIN).pot
96         test -z "$(GMOFILES)" || $(MAKE) $(GMOFILES)
97         @echo "touch stamp-po"
98         @echo timestamp > stamp-poT
99         @mv stamp-poT stamp-po
100
101 # Note: Target 'all' must not depend on target '$(DOMAIN).pot-update',
102 # otherwise packages like GCC can not be built if only parts of the source
103 # have been downloaded.
104
105 # This target rebuilds $(DOMAIN).pot; it is an expensive operation.
106 # Note that $(DOMAIN).pot is not touched if it doesn't need to be changed.
107 $(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed
108         $(MAKE) l10n_pots
109         $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \
110           --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) \
111           --files-from=$(srcdir)/POTFILES.in \
112           --copyright-holder='$(COPYRIGHT_HOLDER)' \
113           --msgid-bugs-address='$(MSGID_BUGS_ADDRESS)'
114         test ! -f $(DOMAIN).po || { \
115           if test -f $(srcdir)/$(DOMAIN).pot; then \
116             sed -f remove-potcdate.sed < $(srcdir)/$(DOMAIN).pot > $(DOMAIN).1po && \
117             sed -f remove-potcdate.sed < $(DOMAIN).po > $(DOMAIN).2po && \
118             if cmp $(DOMAIN).1po $(DOMAIN).2po >/dev/null 2>&1; then \
119               rm -f $(DOMAIN).1po $(DOMAIN).2po $(DOMAIN).po; \
120             else \
121               rm -f $(DOMAIN).1po $(DOMAIN).2po $(srcdir)/$(DOMAIN).pot && \
122               mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \
123             fi; \
124           else \
125             mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \
126           fi; \
127         }
128
129 # This rule has no dependencies: we don't need to update $(DOMAIN).pot at
130 # every "make" invocation, only create it when it is missing.
131 # Only "make $(DOMAIN).pot-update" or "make dist" will force an update.
132 $(srcdir)/$(DOMAIN).pot:
133         $(MAKE) $(DOMAIN).pot-update
134
135 # This target rebuilds a PO file if $(DOMAIN).pot has changed.
136 # Note that a PO file is not touched if it doesn't need to be changed.
137 $(POFILES): $(srcdir)/$(DOMAIN).pot
138         @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \
139         if test -f "$(srcdir)/$${lang}.po"; then \
140           test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
141           echo "$${cdcmd}$(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot"; \
142           cd $(srcdir) && $(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot; \
143         else \
144           $(MAKE) $${lang}.po-create; \
145         fi
146
147
148 install: install-exec install-data
149 install-exec:
150 install-data: install-data-@USE_NLS@
151         if test "$(PACKAGE)" = "gettext-tools"; then \
152           $(mkinstalldirs) $(DESTDIR)$(gettextsrcdir); \
153           for file in $(DISTFILES.common) Makevars.template; do \
154             $(INSTALL_DATA) $(srcdir)/$$file \
155                             $(DESTDIR)$(gettextsrcdir)/$$file; \
156           done; \
157           for file in Makevars; do \
158             rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \
159           done; \
160         else \
161           : ; \
162         fi
163 install-data-no: all
164 install-data-yes: all
165         $(mkinstalldirs) $(DESTDIR)$(datadir)
166         @catalogs='$(CATALOGS)'; \
167         for cat in $$catalogs; do \
168           cat=`basename $$cat`; \
169           lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
170           dir=$(localedir)/$$lang/LC_MESSAGES; \
171           $(mkinstalldirs) $(DESTDIR)$$dir; \
172           if test -r $$cat; then realcat=$$cat; else realcat=$(srcdir)/$$cat; fi; \
173           $(INSTALL_DATA) $$realcat $(DESTDIR)$$dir/$(DOMAIN).mo; \
174           echo "installing $$realcat as $(DESTDIR)$$dir/$(DOMAIN).mo"; \
175           for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \
176             if test -n "$$lc"; then \
177               if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \
178                 link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \
179                 mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
180                 mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
181                 (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \
182                  for file in *; do \
183                    if test -f $$file; then \
184                      ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \
185                    fi; \
186                  done); \
187                 rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
188               else \
189                 if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \
190                   :; \
191                 else \
192                   rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \
193                   mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
194                 fi; \
195               fi; \
196               rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \
197               ln -s ../LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \
198               ln $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \
199               cp -p $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \
200               echo "installing $$realcat link as $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo"; \
201             fi; \
202           done; \
203         done
204
205 install-strip: install
206
207 installdirs: installdirs-exec installdirs-data
208 installdirs-exec:
209 installdirs-data: installdirs-data-@USE_NLS@
210         if test "$(PACKAGE)" = "gettext-tools"; then \
211           $(mkinstalldirs) $(DESTDIR)$(gettextsrcdir); \
212         else \
213           : ; \
214         fi
215 installdirs-data-no:
216 installdirs-data-yes:
217         $(mkinstalldirs) $(DESTDIR)$(datadir)
218         @catalogs='$(CATALOGS)'; \
219         for cat in $$catalogs; do \
220           cat=`basename $$cat`; \
221           lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
222           dir=$(localedir)/$$lang/LC_MESSAGES; \
223           $(mkinstalldirs) $(DESTDIR)$$dir; \
224           for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \
225             if test -n "$$lc"; then \
226               if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \
227                 link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \
228                 mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
229                 mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
230                 (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \
231                  for file in *; do \
232                    if test -f $$file; then \
233                      ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \
234                    fi; \
235                  done); \
236                 rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
237               else \
238                 if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \
239                   :; \
240                 else \
241                   rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \
242                   mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
243                 fi; \
244               fi; \
245             fi; \
246           done; \
247         done
248
249 # Define this as empty until I found a useful application.
250 installcheck:
251
252 uninstall: uninstall-exec uninstall-data
253 uninstall-exec:
254 uninstall-data: uninstall-data-@USE_NLS@
255         if test "$(PACKAGE)" = "gettext-tools"; then \
256           for file in $(DISTFILES.common) Makevars.template; do \
257             rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \
258           done; \
259         else \
260           : ; \
261         fi
262 uninstall-data-no:
263 uninstall-data-yes:
264         catalogs='$(CATALOGS)'; \
265         for cat in $$catalogs; do \
266           cat=`basename $$cat`; \
267           lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
268           for lc in LC_MESSAGES $(EXTRA_LOCALE_CATEGORIES); do \
269             rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \
270           done; \
271         done
272
273 check: all
274
275 info dvi ps pdf html tags TAGS ctags CTAGS ID:
276
277 mostlyclean:
278         rm -f remove-potcdate.sed
279         rm -f stamp-poT
280         rm -f core core.* $(DOMAIN).po $(DOMAIN).1po $(DOMAIN).2po *.new.po
281         rm -fr *.o
282
283 clean: mostlyclean
284
285 distclean: clean
286         rm -f Makefile Makefile.in POTFILES *.mo
287
288 maintainer-clean: distclean
289         @echo "This command is intended for maintainers to use;"
290         @echo "it deletes files that may require special tools to rebuild."
291         rm -f stamp-po $(GMOFILES)
292
293 distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
294 dist distdir:
295         $(MAKE) update-po
296         @$(MAKE) dist2
297 # This is a separate target because 'update-po' must be executed before.
298 dist2: $(DISTFILES)
299         dists="$(DISTFILES)"; \
300         if test "$(PACKAGE)" = "gettext-tools"; then \
301           dists="$$dists Makevars.template"; \
302         fi; \
303         if test -f $(srcdir)/ChangeLog; then \
304           dists="$$dists ChangeLog"; \
305         fi; \
306         for i in 0 1 2 3 4 5 6 7 8 9; do \
307           if test -f $(srcdir)/ChangeLog.$$i; then \
308             dists="$$dists ChangeLog.$$i"; \
309           fi; \
310         done; \
311         if test -f $(srcdir)/LINGUAS; then dists="$$dists LINGUAS"; fi; \
312         for file in $$dists; do \
313           if test -f $$file; then \
314             cp -p $$file $(distdir); \
315           else \
316             cp -p $(srcdir)/$$file $(distdir); \
317           fi; \
318         done
319
320 update-po: Makefile
321         $(MAKE) $(DOMAIN).pot-update
322         test -z "$(UPDATEPOFILES)" || $(MAKE) $(UPDATEPOFILES)
323         $(MAKE) update-gmo
324
325 # General rule for creating PO files.
326
327 .nop.po-create:
328         @lang=`echo $@ | sed -e 's/\.po-create$$//'`; \
329         echo "File $$lang.po does not exist. If you are a translator, you can create it through 'msginit'." 1>&2; \
330         exit 1
331
332 # General rule for updating PO files.
333
334 .nop.po-update:
335         @lang=`echo $@ | sed -e 's/\.po-update$$//'`; \
336         if test "$(PACKAGE)" = "gettext-tools"; then PATH=`pwd`/../src:$$PATH; fi; \
337         tmpdir=`pwd`; \
338         echo "$$lang:"; \
339         test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
340         echo "$${cdcmd}$(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \
341         cd $(srcdir); \
342         if $(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$tmpdir/$$lang.new.po; then \
343           if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
344             rm -f $$tmpdir/$$lang.new.po; \
345           else \
346             if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \
347               :; \
348             else \
349               echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \
350               exit 1; \
351             fi; \
352           fi; \
353         else \
354           echo "msgmerge for $$lang.po failed!" 1>&2; \
355           rm -f $$tmpdir/$$lang.new.po; \
356         fi
357
358 $(DUMMYPOFILES):
359
360 update-gmo: Makefile $(GMOFILES)
361         @:
362
363 Makefile: Makefile.in.in $(top_builddir)/config.status @POMAKEFILEDEPS@
364         cd $(top_builddir) \
365           && CONFIG_FILES=$(subdir)/$@.in CONFIG_HEADERS= \
366                $(SHELL) ./config.status
367
368 ${srcdir}/POTFILES.in: $(POTFILE_IN_DEPS)
369         LC_ALL=C ; export LC_ALL ; \
370         rm -f $@-t \
371         && ( cd $(top_srcdir); \
372              grep -l "_(\".*\")" `find src \( -name '*.[Cch]' -o -name '*.C.in' \) -print` |\
373              grep -v -e "src/support/package.C$$" |\
374              sort | uniq ) > $@-t \
375         && mv $@-t $@
376
377 l10n_pots: qt4_l10n.pot layouts_l10n.pot languages_l10n.pot ui_l10n.pot
378         cat $^ | \
379         msguniq -o $(DOMAIN).po && rm -f  $^
380
381
382 qt4_l10n.pot: $(top_srcdir)/src/frontends/qt4/ui/*.ui
383         LC_ALL=C ; export LC_ALL ; \
384         $(AWK) -v top_srcdir="$(top_srcdir)" ' \
385                 function fixupfilename() \
386                 {\
387                         return substr(FILENAME, length(top_srcdir "/") + 1);\
388                 }\
389                 BEGIN { \
390                         previousline=""; \
391                 } \
392                 { \
393                         if (!(previousline ~ /^ *< *property  *name *= *"shortcut" *> *$$/) \
394                             && $$0 ~ /<string>/) { \
395                                 line=$$0; \
396                                 sub(/.*<string>/, "", line); \
397                                 sub(/<\/string>.*/, "", line); \
398                                 gsub(/&amp;/, "\\&", line); \
399                                 gsub(/&lt;/, "<", line); \
400                                 gsub(/&gt;/, ">", line); \
401                                 gsub(/"/, "\\\"", line); \
402                                 if (length(line) > 0) { \
403                                         printf("#: %s:%d\nmsgid \"%s\"\nmsgstr \"\"\n\n", \
404                                         fixupfilename(), FNR, line); \
405                                 } \
406                         } \
407                         previousline=$$0; \
408                 }' \
409         ${top_srcdir}/src/frontends/qt4/ui/*.ui > $@
410
411 layouts_l10n.pot: $(top_srcdir)/lib/layouts/*.layout $(top_srcdir)/lib/layouts/*.inc
412         LC_ALL=C ; export LC_ALL ; \
413         $(AWK) -v top_srcdir="$(top_srcdir)" ' \
414                 function fixupfilename() \
415                 {\
416                         return substr(FILENAME, length(top_srcdir "/") + 1);\
417                 }\
418                 /^Style / { \
419                         line=$$0; \
420                         sub(/Style /, "", line); \
421                         gsub(/"/, "", line); \
422                         gsub(/_/, " ", line); \
423                         printf("#: %s:%d\nmsgid \"%s\"\nmsgstr \"\"\n\n", \
424                                 fixupfilename(), FNR, line); \
425                 } \
426                 /LabelString[A-Za-z]*/ { \
427                         line=$$0; \
428                         sub(/[[:space:]]*LabelString[A-Za-z]*[[:space:]]*/, "", line); \
429                         gsub(/"/, "", line); \
430                         if (line != "") \
431                           printf("#: %s:%d\nmsgid \"%s\"\nmsgstr \"\"\n\n", \
432                                  fixupfilename(), FNR, line); \
433                 } \
434                 /GuiName/ { \
435                         line=$$0; \
436                         sub(/[[:space:]]*GuiName[[:space:]]*/, "", line); \
437                         gsub(/"/, "", line); \
438                         printf("#: %s:%d\nmsgid \"%s\"\nmsgstr \"\"\n\n", \
439                                 fixupfilename(), FNR, line); \
440                 } \
441                 /ListName/ { \
442                         line=$$0; \
443                         sub(/[[:space:]]*ListName[[:space:]]*/, "", line); \
444                         gsub(/"/, "", line); \
445                         printf("#: %s:%d\nmsgid \"%s\"\nmsgstr \"\"\n\n", \
446                                 fixupfilename(), FNR, line); \
447                 }' \
448         ${top_srcdir}/lib/layouts/*.layout ${top_srcdir}/lib/layouts/*.inc \
449         | sed 's/\\/\\\\/g' > $@
450
451 languages_l10n.pot: $(top_srcdir)/lib/languages
452         $(AWK) -v top_srcdir="$(top_srcdir)" ' \
453                 function fixupfilename() \
454                 {\
455                         return substr(FILENAME, length(top_srcdir "/") + 1);\
456                 }\
457                 /^#/ { \
458                         next; \
459                 } \
460                 { \
461                         match($$0,"\"[^\"]*\""); \
462                         lang=substr($$0,RSTART,RLENGTH); \
463                         gsub(/"/, "", lang); \
464                         printf("#: %s:%d\nmsgid \"%s\"\nmsgstr \"\"\n\n", \
465                         fixupfilename(), FNR, lang); \
466                 }' \
467         ${top_srcdir}/lib/languages > $@
468
469 ui_l10n.pot: $(top_srcdir)/lib/ui/*.ui $(top_srcdir)/lib/ui/*.inc
470         LC_ALL=C ; export LC_ALL ; \
471         $(AWK) -v top_srcdir="$(top_srcdir)" ' \
472                 function fixupfilename() \
473                 {\
474                         return substr(FILENAME, length(top_srcdir "/") + 1);\
475                 }\
476                 /^[^#]*Submenu/ { \
477                         line=$$0; \
478                         sub(/[^"]*"/, "", line); \
479                         sub(/".*/, "", line); \
480                         printf("#: %s:%d\nmsgid \"%s\"\nmsgstr \"\"\n\n", \
481                                 fixupfilename(), FNR, line); \
482                 } \
483                 /^[^#]*Toolbar[^s]/ { \
484                         line=$$0; \
485                         sub(/[^"]*"[^"]*"[^"]"*/, "", line); \
486                         sub(/".*/, "", line); \
487                         printf("#: %s:%d\nmsgid \"%s\"\nmsgstr \"\"\n\n", \
488                                 fixupfilename(), FNR, line); \
489                 } \
490                 /^[^#]*Item/ { \
491                         line=$$0; \
492                         sub(/[^"]*"/, "", line); \
493                         sub(/".*/, "", line); \
494                         printf("#: %s:%d\nmsgid \"%s\"\nmsgstr \"\"\n\n", \
495                                 fixupfilename(), FNR, line); \
496                 }' \
497         ${top_srcdir}/lib/ui/*.ui ${top_srcdir}/lib/ui/*.inc > $@
498
499 i18n.php: $(POFILES)
500         (cd $(srcdir) ; ./postats.sh $(POFILES)) >$@
501
502 force:
503
504 # Tell versions [3.59,3.63) of GNU make not to export all variables.
505 # Otherwise a system limit (for SysV at least) may be exceeded.
506 .NOEXPORT: