improve of cmpl.
[bush.git] / po / Makefile
blob327aa97e744f216a736f6e7c8236bf9af0d6d639
1 # Makefile for PO directory in any package using GNU gettext.
2 # Copyright (C) 1995-1997, 2000-2003 by Ulrich Drepper <drepper@gnu.ai.mit.edu>
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.
11 PACKAGE = bush
12 VERSION = 5.1-release
14 SHELL = /bin/sh
17 srcdir = .
18 top_srcdir = ..
21 topdir = ..
22 BUILD_DIR = /mnt/hgfs/workspace/tmp/srcpkg/bush
24 prefix = /usr/local
25 exec_prefix = ${prefix}
27 datarootdir = ${prefix}/share
28 datadir = ${datarootdir}
29 localedir = ${datarootdir}/locale
31 gettextsrcdir = $(datadir)/gettext/po
33 INSTALL = /usr/bin/install -c
34 INSTALL_DATA = ${INSTALL} -m 644
35 MKINSTALLDIRS = $(top_srcdir)/support/mkinstalldirs
36 mkinstalldirs = $(SHELL) $(MKINSTALLDIRS)
38 GMSGFMT = :
39 MSGFMT = :
40 XGETTEXT = :
41 MSGMERGE = msgmerge
42 MSGMERGE_UPDATE = : --update
43 MSGINIT = msginit
44 MSGCONV = msgconv
45 MSGFILTER = msgfilter
47 POFILES = en@quot.po en@boldquot.po af.po bg.po ca.po cs.po da.po de.po el.po eo.po es.po et.po fi.po fr.po ga.po gl.po hr.po hu.po id.po it.po ja.po ko.po lt.po nb.po nl.po pl.po pt.po pt_BR.po ro.po ru.po sk.po sl.po sr.po sv.po tr.po uk.po vi.po zh_CN.po zh_TW.po
48 GMOFILES = en@quot.gmo en@boldquot.gmo af.gmo bg.gmo ca.gmo cs.gmo da.gmo de.gmo el.gmo eo.gmo es.gmo et.gmo fi.gmo fr.gmo ga.gmo gl.gmo hr.gmo hu.gmo id.gmo it.gmo ja.gmo ko.gmo lt.gmo nb.gmo nl.gmo pl.gmo pt.gmo pt_BR.gmo ro.gmo ru.gmo sk.gmo sl.gmo sr.gmo sv.gmo tr.gmo uk.gmo vi.gmo zh_CN.gmo zh_TW.gmo
49 UPDATEPOFILES = en@quot.po-update en@boldquot.po-update af.po-update bg.po-update ca.po-update cs.po-update da.po-update de.po-update el.po-update eo.po-update es.po-update et.po-update fi.po-update fr.po-update ga.po-update gl.po-update hr.po-update hu.po-update id.po-update it.po-update ja.po-update ko.po-update lt.po-update nb.po-update nl.po-update pl.po-update pt.po-update pt_BR.po-update ro.po-update ru.po-update sk.po-update sl.po-update sr.po-update sv.po-update tr.po-update uk.po-update vi.po-update zh_CN.po-update zh_TW.po-update
50 DUMMYPOFILES = en@quot.nop en@boldquot.nop af.nop bg.nop ca.nop cs.nop da.nop de.nop el.nop eo.nop es.nop et.nop fi.nop fr.nop ga.nop gl.nop hr.nop hu.nop id.nop it.nop ja.nop ko.nop lt.nop nb.nop nl.nop pl.nop pt.nop pt_BR.nop ro.nop ru.nop sk.nop sl.nop sr.nop sv.nop tr.nop uk.nop vi.nop zh_CN.nop zh_TW.nop
51 DISTFILES.common = Makefile.in.in remove-potcdate.sin \
52 $(DISTFILES.common.extra1) $(DISTFILES.common.extra2) $(DISTFILES.common.extra3)
53 DISTFILES = $(DISTFILES.common) Makevars POTFILES.in $(DOMAIN).pot stamp-po \
54 $(POFILES) $(GMOFILES) \
55 $(DISTFILES.extra1) $(DISTFILES.extra2) $(DISTFILES.extra3)
57 POTFILES = \
58 ../arrayfunc.c \
59 ../bushhist.c \
60 ../bushline.c \
61 ../braces.c \
62 ../builtins/alias.def \
63 ../builtins/bind.def \
64 ../builtins/break.def \
65 ../builtins/caller.def \
66 ../builtins/cd.def \
67 ../builtins/common.c \
68 ../builtins/complete.def \
69 ../builtins/declare.def \
70 ../builtins/enable.def \
71 ../builtins/evalfile.c \
72 ../builtins/exec.def \
73 ../builtins/exit.def \
74 ../builtins/fc.def \
75 ../builtins/fg_bg.def \
76 ../builtins/getopt.c \
77 ../builtins/hash.def \
78 ../builtins/help.def \
79 ../builtins/history.def \
80 ../builtins/inlib.def \
81 ../builtins/jobs.def \
82 ../builtins/kill.def \
83 ../builtins/let.def \
84 ../builtins/mapfile.def \
85 ../builtins/mkbuiltins.c \
86 ../builtins/printf.def \
87 ../builtins/pushd.def \
88 ../builtins/read.def \
89 ../builtins/return.def \
90 ../builtins/set.def \
91 ../builtins/setattr.def \
92 ../builtins/shift.def \
93 ../builtins/shopt.def \
94 ../builtins/source.def \
95 ../builtins/suspend.def \
96 ../builtins/type.def \
97 ../builtins/ulimit.def \
98 ../builtins/umask.def \
99 ../error.c \
100 ../eval.c \
101 ../execute_cmd.c \
102 ../expr.c \
103 ../general.c \
104 ../input.c \
105 ../jobs.c \
106 ../lib/intl/os2compat.c \
107 ../lib/malloc/malloc.c \
108 ../lib/malloc/stats.c \
109 ../lib/malloc/table.c \
110 ../lib/malloc/watch.c \
111 ../lib/sh/fmtulong.c \
112 ../lib/sh/netopen.c \
113 ../locale.c \
114 ../mailcheck.c \
115 ../make_cmd.c \
116 ../nojobs.c \
117 ../parse.y \
118 ../pcomplete.c \
119 ../pcomplib.c \
120 ../print_cmd.c \
121 ../redir.c \
122 ../shell.c \
123 ../sig.c \
124 ../siglist.c \
125 ../subst.c \
126 ../test.c \
127 ../trap.c \
128 ../variables.c \
129 ../version.c \
130 ../version2.c \
131 ../xmalloc.c
133 CATALOGS = en@quot.gmo en@boldquot.gmo af.gmo bg.gmo ca.gmo cs.gmo da.gmo de.gmo el.gmo eo.gmo es.gmo et.gmo fi.gmo fr.gmo ga.gmo gl.gmo hr.gmo hu.gmo id.gmo it.gmo ja.gmo ko.gmo lt.gmo nb.gmo nl.gmo pl.gmo pt.gmo pt_BR.gmo ro.gmo ru.gmo sk.gmo sl.gmo sr.gmo sv.gmo tr.gmo uk.gmo vi.gmo zh_CN.gmo zh_TW.gmo
135 # Makevars gets inserted here. (Don't remove this line!)
136 # Makefile variables for PO directory in any package using GNU gettext.
138 # Usually the message domain is the same as the package name.
139 DOMAIN = $(PACKAGE)
141 # These two variables depend on the location of this directory.
142 subdir = po
143 top_builddir = $(BUILD_DIR)
145 # These options get passed to xgettext.
146 XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ -C
148 # This is the copyright holder that gets inserted into the header of the
149 # $(DOMAIN).pot file. Set this to the copyright holder of the surrounding
150 # package. (Note that the msgstr strings, extracted from the package's
151 # sources, belong to the copyright holder of the package.) Translators are
152 # expected to transfer the copyright for their translations to this person
153 # or entity, or to disclaim their copyright. The empty string stands for
154 # the public domain; in this case the translators are expected to disclaim
155 # their copyright.
156 COPYRIGHT_HOLDER = Free Software Foundation, Inc.
158 # This is the email address or URL to which the translators shall report
159 # bugs in the untranslated strings:
160 # - Strings which are not entire sentences, see the maintainer guidelines
161 # in the GNU gettext documentation, section 'Preparing Strings'.
162 # - Strings which use unclear terms or require additional context to be
163 # understood.
164 # - Strings which make invalid assumptions about notation of date, time or
165 # money.
166 # - Pluralisation problems.
167 # - Incorrect English spelling.
168 # - Incorrect formatting.
169 # It can be your email address, or a mailing list address where translators
170 # can write to without being subscribed, or the URL of a web page through
171 # which the translators can contact you.
172 MSGID_BUGS_ADDRESS = bug-bush@gnu.org
174 # This is the list of locale categories, beyond LC_MESSAGES, for which the
175 # message catalogs shall be used. It is usually empty.
176 EXTRA_LOCALE_CATEGORIES =
178 .SUFFIXES:
179 .SUFFIXES: .po .gmo .mo .sed .sin .nop .po-update
181 .po.mo:
182 @echo "$(MSGFMT) -c -o $@ $<"; \
183 $(MSGFMT) -c -o t-$@ $< && mv t-$@ $@
185 .po.gmo:
186 @lang=`echo $* | sed -e 's,.*/,,'`; \
187 test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
188 echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o $${lang}.gmo $${lang}.po"; \
189 cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo
191 .sin.sed:
192 sed -e '/^#/d' $< > t-$@
193 mv t-$@ $@
196 all: all-yes
198 all-yes: stamp-po
199 all-no:
201 # stamp-po is a timestamp denoting the last time at which the CATALOGS have
202 # been loosely updated. Its purpose is that when a developer or translator
203 # checks out the package via CVS, and the $(DOMAIN).pot file is not in CVS,
204 # "make" will update the $(DOMAIN).pot and the $(CATALOGS), but subsequent
205 # invocations of "make" will do nothing. This timestamp would not be necessary
206 # if updating the $(CATALOGS) would always touch them; however, the rule for
207 # $(POFILES) has been designed to not touch files that don't need to be
208 # changed.
209 stamp-po: $(srcdir)/$(DOMAIN).pot
210 test -z "$(CATALOGS)" || $(MAKE) $(CATALOGS)
211 @echo "touch stamp-po"
212 @echo timestamp > stamp-poT
213 @mv stamp-poT stamp-po
215 # Note: Target 'all' must not depend on target '$(DOMAIN).pot-update',
216 # otherwise packages like GCC can not be built if only parts of the source
217 # have been downloaded.
219 # This target rebuilds $(DOMAIN).pot; it is an expensive operation.
220 # Note that $(DOMAIN).pot is not touched if it doesn't need to be changed.
221 $(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed
222 $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \
223 --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) \
224 --files-from=$(srcdir)/POTFILES.in \
225 --copyright-holder='$(COPYRIGHT_HOLDER)'
226 $(MAKE) $(MFLAGS) builtins.pot-update
227 test ! -f $(DOMAIN).po || { \
228 if test -f $(srcdir)/$(DOMAIN).pot; then \
229 sed -f remove-potcdate.sed < $(srcdir)/$(DOMAIN).pot > $(DOMAIN).1po && \
230 sed -f remove-potcdate.sed < $(DOMAIN).po > $(DOMAIN).2po && \
231 if cmp $(DOMAIN).1po $(DOMAIN).2po >/dev/null 2>&1; then \
232 rm -f $(DOMAIN).1po $(DOMAIN).2po $(DOMAIN).po; \
233 else \
234 rm -f $(DOMAIN).1po $(DOMAIN).2po $(srcdir)/$(DOMAIN).pot && \
235 mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \
236 fi; \
237 else \
238 mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \
239 fi; \
242 # This rule has no dependencies: we don't need to update $(DOMAIN).pot at
243 # every "make" invocation, only create it when it is missing.
244 # Only "make $(DOMAIN).pot-update" or "make dist" will force an update.
245 $(srcdir)/$(DOMAIN).pot:
246 $(MAKE) $(DOMAIN).pot-update
248 # This target rebuilds a PO file if $(DOMAIN).pot has changed.
249 # Note that a PO file is not touched if it doesn't need to be changed.
250 $(POFILES): $(srcdir)/$(DOMAIN).pot
251 @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \
252 test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
253 echo "$${cdcmd}$(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot"; \
254 cd $(srcdir) && $(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot
257 install: install-exec install-data
258 install-exec:
259 install-data: install-data-yes
260 if test "$(PACKAGE)" = "gettext-tools"; then \
261 $(mkinstalldirs) $(DESTDIR)$(gettextsrcdir); \
262 for file in $(DISTFILES.common) Makevars.template; do \
263 $(INSTALL_DATA) $(srcdir)/$$file \
264 $(DESTDIR)$(gettextsrcdir)/$$file; \
265 done; \
266 for file in Makevars; do \
267 rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \
268 done; \
269 else \
270 : ; \
272 install-data-no: all
273 install-data-yes: all
274 $(mkinstalldirs) $(DESTDIR)$(datadir)
275 @catalogs='$(CATALOGS)'; \
276 for cat in $$catalogs; do \
277 cat=`basename $$cat`; \
278 lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
279 dir=$(localedir)/$$lang/LC_MESSAGES; \
280 $(mkinstalldirs) $(DESTDIR)$$dir; \
281 if test -r $$cat; then realcat=$$cat; else realcat=$(srcdir)/$$cat; fi; \
282 $(INSTALL_DATA) $$realcat $(DESTDIR)$$dir/$(DOMAIN).mo; \
283 echo "installing $$realcat as $(DESTDIR)$$dir/$(DOMAIN).mo"; \
284 for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \
285 if test -n "$$lc"; then \
286 if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \
287 link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \
288 mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
289 mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
290 (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \
291 for file in *; do \
292 if test -f $$file; then \
293 ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \
294 fi; \
295 done); \
296 rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
297 else \
298 if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \
299 :; \
300 else \
301 rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \
302 mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
303 fi; \
304 fi; \
305 rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \
306 ln -s ../LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \
307 ln $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \
308 cp -p $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \
309 echo "installing $$realcat link as $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo"; \
310 fi; \
311 done; \
312 done
314 install-strip: install
316 installdirs: installdirs-exec installdirs-data
317 installdirs-exec:
318 installdirs-data: installdirs-data-yes
319 if test "$(PACKAGE)" = "gettext-tools"; then \
320 $(mkinstalldirs) $(DESTDIR)$(gettextsrcdir); \
321 else \
322 : ; \
324 installdirs-data-no:
325 installdirs-data-yes:
326 $(mkinstalldirs) $(DESTDIR)$(datadir)
327 @catalogs='$(CATALOGS)'; \
328 for cat in $$catalogs; do \
329 cat=`basename $$cat`; \
330 lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
331 dir=$(localedir)/$$lang/LC_MESSAGES; \
332 $(mkinstalldirs) $(DESTDIR)$$dir; \
333 for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \
334 if test -n "$$lc"; then \
335 if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \
336 link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \
337 mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
338 mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
339 (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \
340 for file in *; do \
341 if test -f $$file; then \
342 ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \
343 fi; \
344 done); \
345 rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \
346 else \
347 if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \
348 :; \
349 else \
350 rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \
351 mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \
352 fi; \
353 fi; \
354 fi; \
355 done; \
356 done
358 # Define this as empty until I found a useful application.
359 installcheck:
361 uninstall: uninstall-exec uninstall-data
362 uninstall-exec:
363 uninstall-data: uninstall-data-yes
364 if test "$(PACKAGE)" = "gettext-tools"; then \
365 for file in $(DISTFILES.common) Makevars.template; do \
366 rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \
367 done; \
368 else \
369 : ; \
371 uninstall-data-no:
372 uninstall-data-yes:
373 catalogs='$(CATALOGS)'; \
374 for cat in $$catalogs; do \
375 cat=`basename $$cat`; \
376 lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \
377 for lc in LC_MESSAGES $(EXTRA_LOCALE_CATEGORIES); do \
378 rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \
379 done; \
380 done
382 check: all
384 info dvi ps pdf html tags TAGS ctags CTAGS ID:
386 mostlyclean:
387 rm -f remove-potcdate.sed
388 rm -f stamp-poT
389 rm -f core core.* $(DOMAIN).po $(DOMAIN).1po $(DOMAIN).2po *.new.po
390 rm -fr *.o
392 clean: mostlyclean
394 distclean: clean
395 rm -f Makefile Makefile.in POTFILES *.mo stamp-po
397 maintainer-clean: distclean
398 @echo "This command is intended for maintainers to use;"
399 @echo "it deletes files that may require special tools to rebuild."
400 rm -f stamp-po $(GMOFILES)
402 distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
403 dist distdir:
404 $(MAKE) update-po
405 @$(MAKE) dist2
406 # This is a separate target because 'update-po' must be executed before.
407 dist2: $(DISTFILES)
408 dists="$(DISTFILES)"; \
409 if test "$(PACKAGE)" = "gettext-tools"; then \
410 dists="$$dists Makevars.template"; \
411 fi; \
412 if test -f $(srcdir)/ChangeLog; then \
413 dists="$$dists ChangeLog"; \
414 fi; \
415 for i in 0 1 2 3 4 5 6 7 8 9; do \
416 if test -f $(srcdir)/ChangeLog.$$i; then \
417 dists="$$dists ChangeLog.$$i"; \
418 fi; \
419 done; \
420 if test -f $(srcdir)/LINGUAS; then dists="$$dists LINGUAS"; fi; \
421 for file in $$dists; do \
422 if test -f $$file; then \
423 cp -p $$file $(distdir); \
424 else \
425 cp -p $(srcdir)/$$file $(distdir); \
426 fi; \
427 done
429 update-po: Makefile
430 $(MAKE) $(DOMAIN).pot-update
431 test -z "$(UPDATEPOFILES)" || $(MAKE) $(UPDATEPOFILES)
432 $(MAKE) update-gmo
434 # General rule for updating PO files.
436 .nop.po-update:
437 @lang=`echo $@ | sed -e 's/\.po-update$$//'`; \
438 if test "$(PACKAGE)" = "gettext-tools"; then PATH=`pwd`/../src:$$PATH; fi; \
439 tmpdir=`pwd`; \
440 echo "$$lang:"; \
441 test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
442 echo "$${cdcmd}$(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \
443 cd $(srcdir); \
444 if $(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$tmpdir/$$lang.new.po; then \
445 if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
446 rm -f $$tmpdir/$$lang.new.po; \
447 else \
448 if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \
449 :; \
450 else \
451 echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \
452 exit 1; \
453 fi; \
454 fi; \
455 else \
456 echo "msgmerge for $$lang.po failed!" 1>&2; \
457 rm -f $$tmpdir/$$lang.new.po; \
460 $(DUMMYPOFILES):
462 update-gmo: Makefile $(GMOFILES)
465 Makefile: Makefile.in.in $(top_builddir)/config.status POTFILES.in LINGUAS $(srcdir)/Rules-builtins
466 cd $(top_builddir) \
467 && CONFIG_FILES=$(subdir)/$@.in CONFIG_HEADERS= \
468 $(SHELL) ./config.status
470 force:
472 # Tell versions [3.59,3.63) of GNU make not to export all variables.
473 # Otherwise a system limit (for SysV at least) may be exceeded.
474 .NOEXPORT:
476 # Update the strings from the builtins' long docs. Must be called when
477 # bush.pot exists, in the middle of the bush.pot-update recipe
479 builtins.pot-update: $(top_builddir)/builtins/builtins.c
480 $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_builddir)/builtins \
481 $(XGETTEXT_OPTIONS) --omit-header \
482 --copyright-holder='$(COPYRIGHT_HOLDER)' \
483 --join-existing \
484 builtins.c
486 # This rule has no dependencies: we don't need to update builtins.pot at
487 # every "make" invocation, only create it when it is missing.
488 # Only "make builtins.pot-update" or "make dist" will force an update.
489 $(srcdir)/builtins.pot:
490 $(MAKE) builtins.pot-update
492 xdist:
493 $(MAKE) update-po
494 # Special Makefile rules for English message catalogs with quotation marks.
496 DISTFILES.common.extra1 = quot.sed boldquot.sed en@quot.header en@boldquot.header insert-header.sin Rules-quot
498 .SUFFIXES: .insert-header .po-update-en
500 en@quot.po-update: en@quot.po-update-en
501 en@boldquot.po-update: en@boldquot.po-update-en
503 .insert-header.po-update-en:
504 @lang=`echo $@ | sed -e 's/\.po-update-en$$//'`; \
505 if test "$(PACKAGE)" = "gettext"; then PATH=`pwd`/../src:$$PATH; GETTEXTLIBDIR=`cd $(top_srcdir)/src && pwd`; export GETTEXTLIBDIR; fi; \
506 tmpdir=`pwd`; \
507 echo "$$lang:"; \
508 ll=`echo $$lang | sed -e 's/@.*//'`; \
509 LC_ALL=C; export LC_ALL; \
510 cd $(srcdir); \
511 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 \
512 if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
513 rm -f $$tmpdir/$$lang.new.po; \
514 else \
515 if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \
516 :; \
517 else \
518 echo "creation of $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \
519 exit 1; \
520 fi; \
521 fi; \
522 else \
523 echo "creation of $$lang.po failed!" 1>&2; \
524 rm -f $$tmpdir/$$lang.new.po; \
527 en@quot.insert-header: insert-header.sin
528 sed -e '/^#/d' -e 's/HEADER/en@quot.header/g' $(srcdir)/insert-header.sin > en@quot.insert-header
530 en@boldquot.insert-header: insert-header.sin
531 sed -e '/^#/d' -e 's/HEADER/en@boldquot.header/g' $(srcdir)/insert-header.sin > en@boldquot.insert-header
533 mostlyclean: mostlyclean-quot
534 mostlyclean-quot:
535 rm -f *.insert-header