Makefile.in.in 16 KB

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