Source code upload
[framework/connectivity/libgphoto2.git] / po / Makefile
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 = libgphoto2
14 VERSION = 2.4.11
15
16 SHELL = /bin/sh
17
18
19 srcdir = .
20 top_srcdir = ..
21
22
23 prefix = /usr
24 exec_prefix = /usr
25 datadir = /usr/share
26 localedir = $(datadir)/locale
27 gettextsrcdir = $(datadir)/gettext/po
28
29 INSTALL = /usr/bin/install -c
30 INSTALL_DATA = ${INSTALL} -m 644
31 MKINSTALLDIRS = $(top_builddir)/auto-aux/mkinstalldirs
32 mkinstalldirs = $(SHELL) $(MKINSTALLDIRS)
33
34 GMSGFMT = /usr/bin/msgfmt
35 MSGFMT = /usr/bin/msgfmt
36 XGETTEXT = /usr/bin/xgettext
37 MSGMERGE = msgmerge
38 MSGMERGE_UPDATE = /usr/bin/msgmerge --update
39 MSGINIT = msginit
40 MSGCONV = msgconv
41 MSGFILTER = msgfilter
42
43 POFILES =  da.po de.po es.po eu.po fr.po hu.po it.po ja.po nl.po pl.po ru.po sv.po uk.po vi.po zh_CN.po
44 GMOFILES =  da.gmo de.gmo es.gmo eu.gmo fr.gmo hu.gmo it.gmo ja.gmo nl.gmo pl.gmo ru.gmo sv.gmo uk.gmo vi.gmo zh_CN.gmo
45 UPDATEPOFILES =  da.po-update de.po-update es.po-update eu.po-update fr.po-update hu.po-update it.po-update ja.po-update nl.po-update pl.po-update ru.po-update sv.po-update uk.po-update vi.po-update zh_CN.po-update
46 DUMMYPOFILES =  da.nop de.nop es.nop eu.nop fr.nop hu.nop it.nop ja.nop nl.nop pl.nop ru.nop sv.nop uk.nop vi.nop zh_CN.nop
47 DISTFILES.common = Makefile.in.in remove-potcdate.sin \
48 $(DISTFILES.common.extra1) $(DISTFILES.common.extra2) $(DISTFILES.common.extra3)
49 DISTFILES = $(DISTFILES.common) Makevars POTFILES.in $(DOMAIN).pot stamp-po \
50 $(POFILES) $(GMOFILES) \
51 $(DISTFILES.extra1) $(DISTFILES.extra2) $(DISTFILES.extra3)
52
53 POTFILES = \
54      ../camlibs/adc65/adc65.c \
55      ../camlibs/agfa-cl20/agfa_cl20.c \
56      ../camlibs/aox/library.c \
57      ../camlibs/ax203/library.c \
58      ../camlibs/barbie/barbie.c \
59      ../camlibs/canon/canon.c \
60      ../camlibs/canon/canon.h \
61      ../camlibs/canon/crc.c \
62      ../camlibs/canon/library.c \
63      ../camlibs/canon/serial.c \
64      ../camlibs/canon/usb.c \
65      ../camlibs/casio/casio-qv.c \
66      ../camlibs/clicksmart310/library.c \
67      ../camlibs/digigr8/library.c \
68      ../camlibs/digita/digita.c \
69      ../camlibs/dimera/dimera3500.c \
70      ../camlibs/directory/directory.c \
71      ../camlibs/enigma13/enigma13.c \
72      ../camlibs/fuji/fuji.c \
73      ../camlibs/fuji/library.c \
74      ../camlibs/gsmart300/library.c \
75      ../camlibs/hp215/hp215.c \
76      ../camlibs/iclick/library.c \
77      ../camlibs/jamcam/jamcam.c \
78      ../camlibs/jamcam/library.c \
79      ../camlibs/jd11/jd11.c \
80      ../camlibs/jd11/serial.c \
81      ../camlibs/jl2005a/library.c \
82      ../camlibs/jl2005c/library.c \
83      ../camlibs/kodak/dc120/dc120.c \
84      ../camlibs/kodak/dc120/library.c \
85      ../camlibs/kodak/dc210/dc210.c \
86      ../camlibs/kodak/dc210/library.c \
87      ../camlibs/kodak/dc240/dc240.c \
88      ../camlibs/kodak/dc240/library.c \
89      ../camlibs/kodak/dc3200/dc3200.c \
90      ../camlibs/kodak/dc3200/library.c \
91      ../camlibs/kodak/ez200/ez200.c \
92      ../camlibs/konica/konica.c \
93      ../camlibs/konica/library.c \
94      ../camlibs/konica/lowlevel.c \
95      ../camlibs/konica/qm150.c \
96      ../camlibs/largan/lmini/largan.c \
97      ../camlibs/lg_gsm/library.c \
98      ../camlibs/mars/library.c \
99      ../camlibs/minolta/dimagev/dimagev.c \
100      ../camlibs/mustek/core.c \
101      ../camlibs/mustek/mdc800.c \
102      ../camlibs/panasonic/coolshot/coolshot.c \
103      ../camlibs/panasonic/coolshot/library.c \
104      ../camlibs/panasonic/dc1000.c \
105      ../camlibs/panasonic/dc1580.c \
106      ../camlibs/panasonic/l859/l859.c \
107      ../camlibs/pccam300/library.c \
108      ../camlibs/pccam600/library.c \
109      ../camlibs/pccam600/pccam600.c \
110      ../camlibs/polaroid/pdc320.c \
111      ../camlibs/polaroid/pdc640.c \
112      ../camlibs/polaroid/pdc700.c \
113      ../camlibs/ptp2/config.c \
114      ../camlibs/ptp2/library.c \
115      ../camlibs/ptp2/ptp.c \
116      ../camlibs/ricoh/g3.c \
117      ../camlibs/ricoh/library.c \
118      ../camlibs/ricoh/ricoh.c \
119      ../camlibs/samsung/samsung.c \
120      ../camlibs/sierra/epson-desc.c \
121      ../camlibs/sierra/library.c \
122      ../camlibs/sierra/nikon-desc.c \
123      ../camlibs/sierra/olympus-desc.c \
124      ../camlibs/sierra/sierra.c \
125      ../camlibs/sierra/sierra-desc.c \
126      ../camlibs/sipix/blink2.c \
127      ../camlibs/sipix/blink.c \
128      ../camlibs/sipix/web2.c \
129      ../camlibs/smal/smal.c \
130      ../camlibs/smal/ultrapocket.c \
131      ../camlibs/sonix/library.c \
132      ../camlibs/sonydscf1/sonydscf1.c \
133      ../camlibs/sonydscf55/camera.c \
134      ../camlibs/soundvision/soundvision.c \
135      ../camlibs/spca50x/library.c \
136      ../camlibs/sq905/library.c \
137      ../camlibs/st2205/library.c \
138      ../camlibs/stv0674/stv0674.c \
139      ../camlibs/stv0680/library.c \
140      ../camlibs/stv0680/stv0680.c \
141      ../camlibs/sx330z/library.c \
142      ../camlibs/topfield/puppy.c \
143      ../camlibs/toshiba/pdrm11/library.c \
144      ../libgphoto2/gphoto2-abilities-list.c \
145      ../libgphoto2/gphoto2-camera.c \
146      ../libgphoto2/gphoto2-filesys.c \
147      ../libgphoto2/gphoto2-result.c
148
149 CATALOGS =  da.gmo de.gmo es.gmo eu.gmo fr.gmo hu.gmo it.gmo ja.gmo nl.gmo pl.gmo ru.gmo sv.gmo uk.gmo vi.gmo zh_CN.gmo
150
151 # Makevars gets inserted here. (Don't remove this line!)
152 # Makefile variables for PO directory in any package using GNU gettext.
153
154 # Usually the message domain is the same as the package name.
155 DOMAIN = libgphoto2-2
156
157 # These two variables depend on the location of this directory.
158 subdir = po
159 top_builddir = ..
160
161 # These options get passed to xgettext.
162 XGETTEXT_OPTIONS = --keyword=_ --keyword=N_
163
164 # This is the copyright holder that gets inserted into the header of the
165 # $(DOMAIN).pot file.  Set this to the copyright holder of the surrounding
166 # package.  (Note that the msgstr strings, extracted from the package's
167 # sources, belong to the copyright holder of the package.)  Translators are
168 # expected to transfer the copyright for their translations to this person
169 # or entity, or to disclaim their copyright.  The empty string stands for
170 # the public domain; in this case the translators are expected to disclaim
171 # their copyright.
172 COPYRIGHT_HOLDER = The gPhoto Team
173
174 # This is the email address or URL to which the translators shall report
175 # bugs in the untranslated strings:
176 # - Strings which are not entire sentences, see the maintainer guidelines
177 #   in the GNU gettext documentation, section 'Preparing Strings'.
178 # - Strings which use unclear terms or require additional context to be
179 #   understood.
180 # - Strings which make invalid assumptions about notation of date, time or
181 #   money.
182 # - Pluralisation problems.
183 # - Incorrect English spelling.
184 # - Incorrect formatting.
185 # It can be your email address, or a mailing list address where translators
186 # can write to without being subscribed, or the URL of a web page through
187 # which the translators can contact you.
188 MSGID_BUGS_ADDRESS = gphoto-devel@lists.sourceforge.net
189
190 # This is the list of locale categories, beyond LC_MESSAGES, for which the
191 # message catalogs shall be used.  It is usually empty.
192 EXTRA_LOCALE_CATEGORIES =
193
194 .SUFFIXES:
195 .SUFFIXES: .po .gmo .mo .sed .sin .nop .po-create .po-update
196
197 .po.mo:
198         @echo "$(MSGFMT) -c -o $@ $<"; \
199         $(MSGFMT) -c -o t-$@ $< && mv t-$@ $@
200
201 .po.gmo:
202         @lang=`echo $* | sed -e 's,.*/,,'`; \
203         test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
204         echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o $${lang}.gmo $${lang}.po"; \
205         cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo
206
207 .sin.sed:
208         sed -e '/^#/d' $< > t-$@
209         mv t-$@ $@
210
211
212 all: all-yes
213
214 all-yes: stamp-po
215 all-no:
216
217 # stamp-po is a timestamp denoting the last time at which the CATALOGS have
218 # been loosely updated. Its purpose is that when a developer or translator
219 # checks out the package via CVS, and the $(DOMAIN).pot file is not in CVS,
220 # "make" will update the $(DOMAIN).pot and the $(CATALOGS), but subsequent
221 # invocations of "make" will do nothing. This timestamp would not be necessary
222 # if updating the $(CATALOGS) would always touch them; however, the rule for
223 # $(POFILES) has been designed to not touch files that don't need to be
224 # changed.
225 stamp-po: $(srcdir)/$(DOMAIN).pot
226         test -z "$(GMOFILES)" || $(MAKE) $(GMOFILES)
227         @echo "touch stamp-po"
228         @echo timestamp > stamp-poT
229         @mv stamp-poT stamp-po
230
231 # Note: Target 'all' must not depend on target '$(DOMAIN).pot-update',
232 # otherwise packages like GCC can not be built if only parts of the source
233 # have been downloaded.
234
235 # This target rebuilds $(DOMAIN).pot; it is an expensive operation.
236 # Note that $(DOMAIN).pot is not touched if it doesn't need to be changed.
237 $(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed
238         $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \
239           --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) \
240           --files-from=$(srcdir)/POTFILES.in \
241           --copyright-holder='$(COPYRIGHT_HOLDER)' \
242           --msgid-bugs-address='$(MSGID_BUGS_ADDRESS)'
243         test ! -f $(DOMAIN).po || { \
244           if test -f $(srcdir)/$(DOMAIN).pot; then \
245             sed -f remove-potcdate.sed < $(srcdir)/$(DOMAIN).pot > $(DOMAIN).1po && \
246             sed -f remove-potcdate.sed < $(DOMAIN).po > $(DOMAIN).2po && \
247             if cmp $(DOMAIN).1po $(DOMAIN).2po >/dev/null 2>&1; then \
248               rm -f $(DOMAIN).1po $(DOMAIN).2po $(DOMAIN).po; \
249             else \
250               rm -f $(DOMAIN).1po $(DOMAIN).2po $(srcdir)/$(DOMAIN).pot && \
251               mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \
252             fi; \
253           else \
254             mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \
255           fi; \
256         }
257
258 # This rule has no dependencies: we don't need to update $(DOMAIN).pot at
259 # every "make" invocation, only create it when it is missing.
260 # Only "make $(DOMAIN).pot-update" or "make dist" will force an update.
261 $(srcdir)/$(DOMAIN).pot:
262         $(MAKE) $(DOMAIN).pot-update
263
264 # This target rebuilds a PO file if $(DOMAIN).pot has changed.
265 # Note that a PO file is not touched if it doesn't need to be changed.
266 $(POFILES): $(srcdir)/$(DOMAIN).pot
267         @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \
268         if test -f "$(srcdir)/$${lang}.po"; then \
269           test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
270           echo "$${cdcmd}$(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot"; \
271           cd $(srcdir) && $(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot; \
272         else \
273           $(MAKE) $${lang}.po-create; \
274         fi
275
276
277 install: install-exec install-data
278 install-exec:
279 install-data: install-data-yes
280         if test "$(PACKAGE)" = "gettext-tools"; then \
281           $(mkinstalldirs) $(DESTDIR)$(gettextsrcdir); \
282           for file in $(DISTFILES.common) Makevars.template; do \
283             $(INSTALL_DATA) $(srcdir)/$$file \
284                             $(DESTDIR)$(gettextsrcdir)/$$file; \
285           done; \
286           for file in Makevars; do \
287             rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \
288           done; \
289         else \
290           : ; \
291         fi
292 install-data-no: all
293 install-data-yes: all
294         $(mkinstalldirs) $(DESTDIR)$(datadir)
295         @catalogs='$(CATALOGS)'; \
296         for cat in $$catalogs; do \
297           cat=`basename $$cat`; \
298           lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
299           dir=$(localedir)/$$lang/LC_MESSAGES; \
300           $(mkinstalldirs) $(DESTDIR)$$dir; \
301           if test -r $$cat; then realcat=$$cat; else realcat=$(srcdir)/$$cat; fi; \
302           $(INSTALL_DATA) $$realcat $(DESTDIR)$$dir/$(DOMAIN).mo; \
303           echo "installing $$realcat as $(DESTDIR)$$dir/$(DOMAIN).mo"; \
304           for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \
305             if test -n "$$lc"; then \
306               if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \
307                 link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \
308                 mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
309                 mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
310                 (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \
311                  for file in *; do \
312                    if test -f $$file; then \
313                      ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \
314                    fi; \
315                  done); \
316                 rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
317               else \
318                 if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \
319                   :; \
320                 else \
321                   rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \
322                   mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
323                 fi; \
324               fi; \
325               rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \
326               ln -s ../LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \
327               ln $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \
328               cp -p $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \
329               echo "installing $$realcat link as $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo"; \
330             fi; \
331           done; \
332         done
333
334 install-strip: install
335
336 installdirs: installdirs-exec installdirs-data
337 installdirs-exec:
338 installdirs-data: installdirs-data-yes
339         if test "$(PACKAGE)" = "gettext-tools"; then \
340           $(mkinstalldirs) $(DESTDIR)$(gettextsrcdir); \
341         else \
342           : ; \
343         fi
344 installdirs-data-no:
345 installdirs-data-yes:
346         $(mkinstalldirs) $(DESTDIR)$(datadir)
347         @catalogs='$(CATALOGS)'; \
348         for cat in $$catalogs; do \
349           cat=`basename $$cat`; \
350           lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
351           dir=$(localedir)/$$lang/LC_MESSAGES; \
352           $(mkinstalldirs) $(DESTDIR)$$dir; \
353           for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \
354             if test -n "$$lc"; then \
355               if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \
356                 link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \
357                 mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
358                 mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
359                 (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \
360                  for file in *; do \
361                    if test -f $$file; then \
362                      ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \
363                    fi; \
364                  done); \
365                 rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
366               else \
367                 if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \
368                   :; \
369                 else \
370                   rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \
371                   mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
372                 fi; \
373               fi; \
374             fi; \
375           done; \
376         done
377
378 # Define this as empty until I found a useful application.
379 installcheck:
380
381 uninstall: uninstall-exec uninstall-data
382 uninstall-exec:
383 uninstall-data: uninstall-data-yes
384         if test "$(PACKAGE)" = "gettext-tools"; then \
385           for file in $(DISTFILES.common) Makevars.template; do \
386             rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \
387           done; \
388         else \
389           : ; \
390         fi
391 uninstall-data-no:
392 uninstall-data-yes:
393         catalogs='$(CATALOGS)'; \
394         for cat in $$catalogs; do \
395           cat=`basename $$cat`; \
396           lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
397           for lc in LC_MESSAGES $(EXTRA_LOCALE_CATEGORIES); do \
398             rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \
399           done; \
400         done
401
402 check: all
403
404 info dvi ps pdf html tags TAGS ctags CTAGS ID:
405
406 mostlyclean:
407         rm -f remove-potcdate.sed
408         rm -f stamp-poT
409         rm -f core core.* $(DOMAIN).po $(DOMAIN).1po $(DOMAIN).2po *.new.po
410         rm -fr *.o
411
412 clean: mostlyclean
413
414 distclean: clean
415         rm -f Makefile Makefile.in POTFILES *.mo
416
417 maintainer-clean: distclean
418         @echo "This command is intended for maintainers to use;"
419         @echo "it deletes files that may require special tools to rebuild."
420         rm -f stamp-po $(GMOFILES)
421
422 distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
423 dist distdir:
424         $(MAKE) update-po
425         @$(MAKE) dist2
426 # This is a separate target because 'update-po' must be executed before.
427 dist2: $(DISTFILES)
428         dists="$(DISTFILES)"; \
429         if test "$(PACKAGE)" = "gettext-tools"; then \
430           dists="$$dists Makevars.template"; \
431         fi; \
432         if test -f $(srcdir)/ChangeLog; then \
433           dists="$$dists ChangeLog"; \
434         fi; \
435         for i in 0 1 2 3 4 5 6 7 8 9; do \
436           if test -f $(srcdir)/ChangeLog.$$i; then \
437             dists="$$dists ChangeLog.$$i"; \
438           fi; \
439         done; \
440         if test -f $(srcdir)/LINGUAS; then dists="$$dists LINGUAS"; fi; \
441         for file in $$dists; do \
442           if test -f $$file; then \
443             cp -p $$file $(distdir); \
444           else \
445             cp -p $(srcdir)/$$file $(distdir); \
446           fi; \
447         done
448
449 update-po: Makefile
450         $(MAKE) $(DOMAIN).pot-update
451         test -z "$(UPDATEPOFILES)" || $(MAKE) $(UPDATEPOFILES)
452         $(MAKE) update-gmo
453
454 # General rule for creating PO files.
455
456 .nop.po-create:
457         @lang=`echo $@ | sed -e 's/\.po-create$$//'`; \
458         echo "File $$lang.po does not exist. If you are a translator, you can create it through 'msginit'." 1>&2; \
459         exit 1
460
461 # General rule for updating PO files.
462
463 .nop.po-update:
464         @lang=`echo $@ | sed -e 's/\.po-update$$//'`; \
465         if test "$(PACKAGE)" = "gettext-tools"; then PATH=`pwd`/../src:$$PATH; fi; \
466         tmpdir=`pwd`; \
467         echo "$$lang:"; \
468         test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
469         echo "$${cdcmd}$(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \
470         cd $(srcdir); \
471         if $(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$tmpdir/$$lang.new.po; then \
472           if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
473             rm -f $$tmpdir/$$lang.new.po; \
474           else \
475             if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \
476               :; \
477             else \
478               echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \
479               exit 1; \
480             fi; \
481           fi; \
482         else \
483           echo "msgmerge for $$lang.po failed!" 1>&2; \
484           rm -f $$tmpdir/$$lang.new.po; \
485         fi
486
487 $(DUMMYPOFILES):
488
489 update-gmo: Makefile $(GMOFILES)
490         @:
491
492 Makefile: Makefile.in.in $(top_builddir)/config.status POTFILES.in
493         cd $(top_builddir) \
494           && CONFIG_FILES=$(subdir)/$@.in CONFIG_HEADERS= \
495                $(SHELL) ./config.status
496
497 force:
498
499 # Tell versions [3.59,3.63) of GNU make not to export all variables.
500 # Otherwise a system limit (for SysV at least) may be exceeded.
501 .NOEXPORT:
502 # Special Makefile rules for English message catalogs with quotation marks.
503
504 DISTFILES.common.extra1 = quot.sed boldquot.sed en@quot.header en@boldquot.header insert-header.sin Rules-quot
505
506 .SUFFIXES: .insert-header .po-update-en
507
508 en@quot.po-create:
509         $(MAKE) en@quot.po-update
510 en@boldquot.po-create:
511         $(MAKE) en@boldquot.po-update
512
513 en@quot.po-update: en@quot.po-update-en
514 en@boldquot.po-update: en@boldquot.po-update-en
515
516 .insert-header.po-update-en:
517         @lang=`echo $@ | sed -e 's/\.po-update-en$$//'`; \
518         if test "$(PACKAGE)" = "gettext"; then PATH=`pwd`/../src:$$PATH; GETTEXTLIBDIR=`cd $(top_srcdir)/src && pwd`; export GETTEXTLIBDIR; fi; \
519         tmpdir=`pwd`; \
520         echo "$$lang:"; \
521         ll=`echo $$lang | sed -e 's/@.*//'`; \
522         LC_ALL=C; export LC_ALL; \
523         cd $(srcdir); \
524         if $(MSGINIT) -i $(DOMAIN).pot --no-translator -l $$ll -o - 2>/dev/null | sed -f $$tmpdir/$$lang.insert-header | $(MSGCONV) -t UTF-8 | $(MSGFILTER) sed -f `echo $$lang | sed -e 's/.*@//'`.sed 2>/dev/null > $$tmpdir/$$lang.new.po; then \
525           if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
526             rm -f $$tmpdir/$$lang.new.po; \
527           else \
528             if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \
529               :; \
530             else \
531               echo "creation of $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \
532               exit 1; \
533             fi; \
534           fi; \
535         else \
536           echo "creation of $$lang.po failed!" 1>&2; \
537           rm -f $$tmpdir/$$lang.new.po; \
538         fi
539
540 en@quot.insert-header: insert-header.sin
541         sed -e '/^#/d' -e 's/HEADER/en@quot.header/g' $(srcdir)/insert-header.sin > en@quot.insert-header
542
543 en@boldquot.insert-header: insert-header.sin
544         sed -e '/^#/d' -e 's/HEADER/en@boldquot.header/g' $(srcdir)/insert-header.sin > en@boldquot.insert-header
545
546 mostlyclean: mostlyclean-quot
547 mostlyclean-quot:
548         rm -f *.insert-header