1# Makefile for PO directory in any package using GNU gettext. 2# Copyright (C) 1995-1997, 2000-2006 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.15 12 13PACKAGE = libiconv 14VERSION = 1.11 15PACKAGE_BUGREPORT = 16 17SHELL = /bin/sh 18 19 20srcdir = . 21top_srcdir = .. 22 23 24prefix = /usr/local 25exec_prefix = ${prefix} 26datarootdir = ${prefix}/share 27datadir = ${datarootdir} 28localedir = ${datarootdir}/locale 29gettextsrcdir = $(datadir)/gettext/po 30 31INSTALL = /usr/bin/install -c 32INSTALL_DATA = ${INSTALL} -m 644 33mkinstalldirs = $(SHELL) /home/eric/U12H189_WNDR4500/TimeMachine/2011_04_14_WNDR4500_Alpha/ap/gpl/libiconv-1.11/build-aux/install-sh -d 34mkdir_p = mkdir -p -- 35 36GMSGFMT_ = /usr/bin/msgfmt 37GMSGFMT_no = /usr/bin/msgfmt 38GMSGFMT_yes = /usr/bin/msgfmt 39GMSGFMT = $(GMSGFMT_$(USE_MSGCTXT)) 40MSGFMT_ = /usr/bin/msgfmt 41MSGFMT_no = /usr/bin/msgfmt 42MSGFMT_yes = /usr/bin/msgfmt 43MSGFMT = $(MSGFMT_$(USE_MSGCTXT)) 44XGETTEXT_ = /usr/bin/xgettext 45XGETTEXT_no = /usr/bin/xgettext 46XGETTEXT_yes = /usr/bin/xgettext 47XGETTEXT = $(XGETTEXT_$(USE_MSGCTXT)) 48MSGMERGE = msgmerge 49MSGMERGE_UPDATE = /usr/bin/msgmerge --update 50MSGINIT = msginit 51MSGCONV = msgconv 52MSGFILTER = msgfilter 53 54POFILES = af.po ca.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 nl.po pl.po pt_BR.po rm.po ro.po ru.po sk.po sl.po sq.po sr.po sv.po tr.po uk.po vi.po wa.po zh_CN.po zh_TW.po 55GMOFILES = af.gmo ca.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 nl.gmo pl.gmo pt_BR.gmo rm.gmo ro.gmo ru.gmo sk.gmo sl.gmo sq.gmo sr.gmo sv.gmo tr.gmo uk.gmo vi.gmo wa.gmo zh_CN.gmo zh_TW.gmo 56UPDATEPOFILES = af.po-update ca.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 nl.po-update pl.po-update pt_BR.po-update rm.po-update ro.po-update ru.po-update sk.po-update sl.po-update sq.po-update sr.po-update sv.po-update tr.po-update uk.po-update vi.po-update wa.po-update zh_CN.po-update zh_TW.po-update 57DUMMYPOFILES = af.nop ca.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 nl.nop pl.nop pt_BR.nop rm.nop ro.nop ru.nop sk.nop sl.nop sq.nop sr.nop sv.nop tr.nop uk.nop vi.nop wa.nop zh_CN.nop zh_TW.nop 58DISTFILES.common = Makefile.in.in remove-potcdate.sin \ 59$(DISTFILES.common.extra1) $(DISTFILES.common.extra2) $(DISTFILES.common.extra3) 60DISTFILES = $(DISTFILES.common) Makevars POTFILES.in \ 61$(POFILES) $(GMOFILES) \ 62$(DISTFILES.extra1) $(DISTFILES.extra2) $(DISTFILES.extra3) 63 64POTFILES = \ 65 ../src/iconv.c 66 67CATALOGS = af.gmo ca.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 nl.gmo pl.gmo pt_BR.gmo rm.gmo ro.gmo ru.gmo sk.gmo sl.gmo sq.gmo sr.gmo sv.gmo tr.gmo uk.gmo vi.gmo wa.gmo zh_CN.gmo zh_TW.gmo 68 69# Makevars gets inserted here. (Don't remove this line!) 70# Makefile variables for libiconv/po. 71 72# Usually the message domain is the same as the package name. 73DOMAIN = $(PACKAGE) 74 75# These two variables depend on the location of this directory. 76subdir = po 77top_builddir = .. 78 79# These options get passed to xgettext. 80XGETTEXT_OPTIONS = \ 81 --keyword=_ --flag=_:1:pass-c-format \ 82 --keyword=N_ --flag=N_:1:pass-c-format \ 83 --flag=error:3:c-format --flag=error_at_line:5:c-format 84 85# This is the copyright holder that gets inserted into the header of the 86# $(DOMAIN).pot file. Set this to the copyright holder of the surrounding 87# package. (Note that the msgstr strings, extracted from the package's 88# sources, belong to the copyright holder of the package.) Translators are 89# expected to transfer the copyright for their translations to this person 90# or entity, or to disclaim their copyright. The empty string stands for 91# the public domain; in this case the translators are expected to disclaim 92# their copyright. 93COPYRIGHT_HOLDER = Free Software Foundation, Inc. 94 95# This is the email address or URL to which the translators shall report 96# bugs in the untranslated strings: 97# - Strings which are not entire sentences, see the maintainer guidelines 98# in the GNU gettext documentation, section 'Preparing Strings'. 99# - Strings which use unclear terms or require additional context to be 100# understood. 101# - Strings which make invalid assumptions about notation of date, time or 102# money. 103# - Pluralisation problems. 104# - Incorrect English spelling. 105# - Incorrect formatting. 106# It can be your email address, or a mailing list address where translators 107# can write to without being subscribed, or the URL of a web page through 108# which the translators can contact you. 109MSGID_BUGS_ADDRESS = bug-gnu-libiconv@gnu.org 110 111# This is the list of locale categories, beyond LC_MESSAGES, for which the 112# message catalogs shall be used. It is usually empty. 113EXTRA_LOCALE_CATEGORIES = 114 115# This tells whether the $(DOMAIN).pot file contains messages with an 'msgctxt' 116# context. Possible values are "yes" and "no". Set this to yes if the 117# package uses functions taking also a message context, like pgettext(), or 118# if in $(XGETTEXT_OPTIONS) you define keywords with a context argument. 119USE_MSGCTXT = no 120 121.SUFFIXES: 122.SUFFIXES: .po .gmo .mo .sed .sin .nop .po-create .po-update 123 124.po.mo: 125 @echo "$(MSGFMT) -c -o $@ $<"; \ 126 $(MSGFMT) -c -o t-$@ $< && mv t-$@ $@ 127 128.po.gmo: 129 @lang=`echo $* | sed -e 's,.*/,,'`; \ 130 test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ 131 echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o $${lang}.gmo $${lang}.po"; \ 132 cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo 133 134.sin.sed: 135 sed -e '/^#/d' $< > t-$@ 136 mv t-$@ $@ 137 138 139all: all-no 140 141all-yes: stamp-po 142all-no: 143 144# $(srcdir)/$(DOMAIN).pot is only created when needed. When xgettext finds no 145# internationalized messages, no $(srcdir)/$(DOMAIN).pot is created (because 146# we don't want to bother translators with empty POT files). We assume that 147# LINGUAS is empty in this case, i.e. $(POFILES) and $(GMOFILES) are empty. 148# In this case, stamp-po is a nop (i.e. a phony target). 149 150# stamp-po is a timestamp denoting the last time at which the CATALOGS have 151# been loosely updated. Its purpose is that when a developer or translator 152# checks out the package via CVS, and the $(DOMAIN).pot file is not in CVS, 153# "make" will update the $(DOMAIN).pot and the $(CATALOGS), but subsequent 154# invocations of "make" will do nothing. This timestamp would not be necessary 155# if updating the $(CATALOGS) would always touch them; however, the rule for 156# $(POFILES) has been designed to not touch files that don't need to be 157# changed. 158stamp-po: $(srcdir)/$(DOMAIN).pot 159 test ! -f $(srcdir)/$(DOMAIN).pot || \ 160 test -z "$(GMOFILES)" || $(MAKE) $(GMOFILES) 161 @test ! -f $(srcdir)/$(DOMAIN).pot || { \ 162 echo "touch stamp-po" && \ 163 echo timestamp > stamp-poT && \ 164 mv stamp-poT stamp-po; \ 165 } 166 167# Note: Target 'all' must not depend on target '$(DOMAIN).pot-update', 168# otherwise packages like GCC can not be built if only parts of the source 169# have been downloaded. 170 171# This target rebuilds $(DOMAIN).pot; it is an expensive operation. 172# Note that $(DOMAIN).pot is not touched if it doesn't need to be changed. 173$(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed 174 if test -n '$(MSGID_BUGS_ADDRESS)' || test '$(PACKAGE_BUGREPORT)' = '@'PACKAGE_BUGREPORT'@'; then \ 175 msgid_bugs_address='$(MSGID_BUGS_ADDRESS)'; \ 176 else \ 177 msgid_bugs_address='$(PACKAGE_BUGREPORT)'; \ 178 fi; \ 179 $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \ 180 --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) \ 181 --files-from=$(srcdir)/POTFILES.in \ 182 --copyright-holder='$(COPYRIGHT_HOLDER)' \ 183 --msgid-bugs-address="$$msgid_bugs_address" 184 test ! -f $(DOMAIN).po || { \ 185 if test -f $(srcdir)/$(DOMAIN).pot; then \ 186 sed -f remove-potcdate.sed < $(srcdir)/$(DOMAIN).pot > $(DOMAIN).1po && \ 187 sed -f remove-potcdate.sed < $(DOMAIN).po > $(DOMAIN).2po && \ 188 if cmp $(DOMAIN).1po $(DOMAIN).2po >/dev/null 2>&1; then \ 189 rm -f $(DOMAIN).1po $(DOMAIN).2po $(DOMAIN).po; \ 190 else \ 191 rm -f $(DOMAIN).1po $(DOMAIN).2po $(srcdir)/$(DOMAIN).pot && \ 192 mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \ 193 fi; \ 194 else \ 195 mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \ 196 fi; \ 197 } 198 199# This rule has no dependencies: we don't need to update $(DOMAIN).pot at 200# every "make" invocation, only create it when it is missing. 201# Only "make $(DOMAIN).pot-update" or "make dist" will force an update. 202$(srcdir)/$(DOMAIN).pot: 203 $(MAKE) $(DOMAIN).pot-update 204 205# This target rebuilds a PO file if $(DOMAIN).pot has changed. 206# Note that a PO file is not touched if it doesn't need to be changed. 207$(POFILES): $(srcdir)/$(DOMAIN).pot 208 @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \ 209 if test -f "$(srcdir)/$${lang}.po"; then \ 210 test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ 211 echo "$${cdcmd}$(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot"; \ 212 cd $(srcdir) && $(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot; \ 213 else \ 214 $(MAKE) $${lang}.po-create; \ 215 fi 216 217 218install: install-exec install-data 219install-exec: 220install-data: install-data-no 221 if test "$(PACKAGE)" = "gettext-tools"; then \ 222 $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \ 223 for file in $(DISTFILES.common) Makevars.template; do \ 224 $(INSTALL_DATA) $(srcdir)/$$file \ 225 $(DESTDIR)$(gettextsrcdir)/$$file; \ 226 done; \ 227 for file in Makevars; do \ 228 rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \ 229 done; \ 230 else \ 231 : ; \ 232 fi 233install-data-no: all 234install-data-yes: all 235 $(mkdir_p) $(DESTDIR)$(datadir) 236 @catalogs='$(CATALOGS)'; \ 237 for cat in $$catalogs; do \ 238 cat=`basename $$cat`; \ 239 lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ 240 dir=$(localedir)/$$lang/LC_MESSAGES; \ 241 $(mkdir_p) $(DESTDIR)$$dir; \ 242 if test -r $$cat; then realcat=$$cat; else realcat=$(srcdir)/$$cat; fi; \ 243 $(INSTALL_DATA) $$realcat $(DESTDIR)$$dir/$(DOMAIN).mo; \ 244 echo "installing $$realcat as $(DESTDIR)$$dir/$(DOMAIN).mo"; \ 245 for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \ 246 if test -n "$$lc"; then \ 247 if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \ 248 link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \ 249 mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ 250 mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ 251 (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \ 252 for file in *; do \ 253 if test -f $$file; then \ 254 ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \ 255 fi; \ 256 done); \ 257 rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ 258 else \ 259 if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \ 260 :; \ 261 else \ 262 rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \ 263 mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ 264 fi; \ 265 fi; \ 266 rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ 267 ln -s ../LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \ 268 ln $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \ 269 cp -p $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ 270 echo "installing $$realcat link as $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo"; \ 271 fi; \ 272 done; \ 273 done 274 275install-strip: install 276 277installdirs: installdirs-exec installdirs-data 278installdirs-exec: 279installdirs-data: installdirs-data-no 280 if test "$(PACKAGE)" = "gettext-tools"; then \ 281 $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \ 282 else \ 283 : ; \ 284 fi 285installdirs-data-no: 286installdirs-data-yes: 287 $(mkdir_p) $(DESTDIR)$(datadir) 288 @catalogs='$(CATALOGS)'; \ 289 for cat in $$catalogs; do \ 290 cat=`basename $$cat`; \ 291 lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ 292 dir=$(localedir)/$$lang/LC_MESSAGES; \ 293 $(mkdir_p) $(DESTDIR)$$dir; \ 294 for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \ 295 if test -n "$$lc"; then \ 296 if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \ 297 link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \ 298 mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ 299 mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ 300 (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \ 301 for file in *; do \ 302 if test -f $$file; then \ 303 ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \ 304 fi; \ 305 done); \ 306 rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ 307 else \ 308 if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \ 309 :; \ 310 else \ 311 rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \ 312 mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ 313 fi; \ 314 fi; \ 315 fi; \ 316 done; \ 317 done 318 319# Define this as empty until I found a useful application. 320installcheck: 321 322uninstall: uninstall-exec uninstall-data 323uninstall-exec: 324uninstall-data: uninstall-data-no 325 if test "$(PACKAGE)" = "gettext-tools"; then \ 326 for file in $(DISTFILES.common) Makevars.template; do \ 327 rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \ 328 done; \ 329 else \ 330 : ; \ 331 fi 332uninstall-data-no: 333uninstall-data-yes: 334 catalogs='$(CATALOGS)'; \ 335 for cat in $$catalogs; do \ 336 cat=`basename $$cat`; \ 337 lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ 338 for lc in LC_MESSAGES $(EXTRA_LOCALE_CATEGORIES); do \ 339 rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ 340 done; \ 341 done 342 343check: all 344 345info dvi ps pdf html tags TAGS ctags CTAGS ID: 346 347mostlyclean: 348 rm -f remove-potcdate.sed 349 rm -f stamp-poT 350 rm -f core core.* $(DOMAIN).po $(DOMAIN).1po $(DOMAIN).2po *.new.po 351 rm -fr *.o 352 353clean: mostlyclean 354 355distclean: clean 356 rm -f Makefile Makefile.in POTFILES *.mo 357 358maintainer-clean: distclean 359 @echo "This command is intended for maintainers to use;" 360 @echo "it deletes files that may require special tools to rebuild." 361 rm -f stamp-po $(GMOFILES) 362 363distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) 364dist distdir: 365 $(MAKE) update-po 366 @$(MAKE) dist2 367# This is a separate target because 'update-po' must be executed before. 368dist2: stamp-po $(DISTFILES) 369 dists="$(DISTFILES)"; \ 370 if test "$(PACKAGE)" = "gettext-tools"; then \ 371 dists="$$dists Makevars.template"; \ 372 fi; \ 373 if test -f $(srcdir)/$(DOMAIN).pot; then \ 374 dists="$$dists $(DOMAIN).pot stamp-po"; \ 375 fi; \ 376 if test -f $(srcdir)/ChangeLog; then \ 377 dists="$$dists ChangeLog"; \ 378 fi; \ 379 for i in 0 1 2 3 4 5 6 7 8 9; do \ 380 if test -f $(srcdir)/ChangeLog.$$i; then \ 381 dists="$$dists ChangeLog.$$i"; \ 382 fi; \ 383 done; \ 384 if test -f $(srcdir)/LINGUAS; then dists="$$dists LINGUAS"; fi; \ 385 for file in $$dists; do \ 386 if test -f $$file; then \ 387 cp -p $$file $(distdir) || exit 1; \ 388 else \ 389 cp -p $(srcdir)/$$file $(distdir) || exit 1; \ 390 fi; \ 391 done 392 393update-po: Makefile 394 $(MAKE) $(DOMAIN).pot-update 395 test -z "$(UPDATEPOFILES)" || $(MAKE) $(UPDATEPOFILES) 396 $(MAKE) update-gmo 397 398# General rule for creating PO files. 399 400.nop.po-create: 401 @lang=`echo $@ | sed -e 's/\.po-create$$//'`; \ 402 echo "File $$lang.po does not exist. If you are a translator, you can create it through 'msginit'." 1>&2; \ 403 exit 1 404 405# General rule for updating PO files. 406 407.nop.po-update: 408 @lang=`echo $@ | sed -e 's/\.po-update$$//'`; \ 409 if test "$(PACKAGE)" = "gettext-tools"; then PATH=`pwd`/../src:$$PATH; fi; \ 410 tmpdir=`pwd`; \ 411 echo "$$lang:"; \ 412 test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ 413 echo "$${cdcmd}$(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ 414 cd $(srcdir); \ 415 if $(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$tmpdir/$$lang.new.po; then \ 416 if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ 417 rm -f $$tmpdir/$$lang.new.po; \ 418 else \ 419 if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \ 420 :; \ 421 else \ 422 echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \ 423 exit 1; \ 424 fi; \ 425 fi; \ 426 else \ 427 echo "msgmerge for $$lang.po failed!" 1>&2; \ 428 rm -f $$tmpdir/$$lang.new.po; \ 429 fi 430 431$(DUMMYPOFILES): 432 433update-gmo: Makefile $(GMOFILES) 434 @: 435 436Makefile: Makefile.in.in Makevars $(top_builddir)/config.status POTFILES.in LINGUAS 437 cd $(top_builddir) \ 438 && $(SHELL) ./config.status $(subdir)/$@.in po-directories 439 440force: 441 442# Tell versions [3.59,3.63) of GNU make not to export all variables. 443# Otherwise a system limit (for SysV at least) may be exceeded. 444.NOEXPORT: 445# Special Makefile rules for generating a Makefile.msvc. 446 447DISTFILES.extra3 = Rules-msvc Makefile.msvc.sh Makefile.msvc 448 449dist distdir: $(srcdir)/Makefile.msvc 450 451# Makefile.msvc needs to be redone when LINGUAS has changed. When rebuilding 452# it, ensure that we use the updated value of CATALOGS. 453$(srcdir)/Makefile.msvc: LINGUAS 454 $(MAKE) Makefile 455 $(MAKE) -f Makefile Makefile.msvc-update 456 457Makefile.msvc-update: 458 $(SHELL) $(srcdir)/Makefile.msvc.sh $(DOMAIN) '$(GMOFILES)' > $(srcdir)/Makefile.msvc 459# Special Makefile rules for English message catalogs with quotation marks. 460 461DISTFILES.common.extra1 = quot.sed boldquot.sed en@quot.header en@boldquot.header insert-header.sin Rules-quot 462 463.SUFFIXES: .insert-header .po-update-en 464 465en@quot.po-update: en@quot.po-update-en 466en@boldquot.po-update: en@boldquot.po-update-en 467 468.insert-header.po-update-en: 469 @lang=`echo $@ | sed -e 's/\.po-update-en$$//'`; \ 470 if test "$(PACKAGE)" = "gettext"; then PATH=`pwd`/../src:$$PATH; GETTEXTLIBDIR=`cd $(top_srcdir)/src && pwd`; export GETTEXTLIBDIR; fi; \ 471 tmpdir=`pwd`; \ 472 echo "$$lang:"; \ 473 ll=`echo $$lang | sed -e 's/@.*//'`; \ 474 LC_ALL=C; export LC_ALL; \ 475 cd $(srcdir); \ 476 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 \ 477 if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ 478 rm -f $$tmpdir/$$lang.new.po; \ 479 else \ 480 if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \ 481 :; \ 482 else \ 483 echo "creation of $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \ 484 exit 1; \ 485 fi; \ 486 fi; \ 487 else \ 488 echo "creation of $$lang.po failed!" 1>&2; \ 489 rm -f $$tmpdir/$$lang.new.po; \ 490 fi 491 492en@quot.insert-header: insert-header.sin 493 sed -e '/^#/d' -e 's/HEADER/en@quot.header/g' $(srcdir)/insert-header.sin > en@quot.insert-header 494 495en@boldquot.insert-header: insert-header.sin 496 sed -e '/^#/d' -e 's/HEADER/en@boldquot.header/g' $(srcdir)/insert-header.sin > en@boldquot.insert-header 497 498mostlyclean: mostlyclean-quot 499mostlyclean-quot: 500 rm -f *.insert-header 501