| 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.16 |
|---|
| 12 |
|
|---|
| 13 |
PACKAGE = @PACKAGE@ |
|---|
| 14 |
VERSION = @VERSION@ |
|---|
| 15 |
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ |
|---|
| 16 |
|
|---|
| 17 |
SHELL = /bin/sh |
|---|
| 18 |
@SET_MAKE@ |
|---|
| 19 |
|
|---|
| 20 |
srcdir = @srcdir@ |
|---|
| 21 |
top_srcdir = @top_srcdir@ |
|---|
| 22 |
VPATH = @srcdir@ |
|---|
| 23 |
|
|---|
| 24 |
prefix = @prefix@ |
|---|
| 25 |
exec_prefix = @exec_prefix@ |
|---|
| 26 |
datarootdir = @datarootdir@ |
|---|
| 27 |
datadir = @datadir@ |
|---|
| 28 |
localedir = @localedir@ |
|---|
| 29 |
gettextsrcdir = $(datadir)/gettext/po |
|---|
| 30 |
|
|---|
| 31 |
INSTALL = @INSTALL@ |
|---|
| 32 |
INSTALL_DATA = @INSTALL_DATA@ |
|---|
| 33 |
|
|---|
| 34 |
mkinstalldirs = $(SHELL) @install_sh@ -d |
|---|
| 35 |
install_sh = $(SHELL) @install_sh@ |
|---|
| 36 |
MKDIR_P = @MKDIR_P@ |
|---|
| 37 |
mkdir_p = @mkdir_p@ |
|---|
| 38 |
|
|---|
| 39 |
GMSGFMT_ = @GMSGFMT@ |
|---|
| 40 |
GMSGFMT_no = @GMSGFMT@ |
|---|
| 41 |
GMSGFMT_yes = @GMSGFMT_015@ |
|---|
| 42 |
GMSGFMT = $(GMSGFMT_$(USE_MSGCTXT)) |
|---|
| 43 |
MSGFMT_ = @MSGFMT@ |
|---|
| 44 |
MSGFMT_no = @MSGFMT@ |
|---|
| 45 |
MSGFMT_yes = @MSGFMT_015@ |
|---|
| 46 |
MSGFMT = $(MSGFMT_$(USE_MSGCTXT)) |
|---|
| 47 |
XGETTEXT_ = @XGETTEXT@ |
|---|
| 48 |
XGETTEXT_no = @XGETTEXT@ |
|---|
| 49 |
XGETTEXT_yes = @XGETTEXT_015@ |
|---|
| 50 |
XGETTEXT = $(XGETTEXT_$(USE_MSGCTXT)) |
|---|
| 51 |
MSGMERGE = msgmerge |
|---|
| 52 |
MSGMERGE_UPDATE = @MSGMERGE@ --update |
|---|
| 53 |
MSGINIT = msginit |
|---|
| 54 |
MSGCONV = msgconv |
|---|
| 55 |
MSGFILTER = msgfilter |
|---|
| 56 |
|
|---|
| 57 |
POFILES = @POFILES@ |
|---|
| 58 |
GMOFILES = @GMOFILES@ |
|---|
| 59 |
UPDATEPOFILES = @UPDATEPOFILES@ |
|---|
| 60 |
DUMMYPOFILES = @DUMMYPOFILES@ |
|---|
| 61 |
DISTFILES.common = Makefile.in.in remove-potcdate.sin \ |
|---|
| 62 |
$(DISTFILES.common.extra1) $(DISTFILES.common.extra2) $(DISTFILES.common.extra3) |
|---|
| 63 |
DISTFILES = $(DISTFILES.common) Makevars POTFILES.in \ |
|---|
| 64 |
$(POFILES) $(GMOFILES) \ |
|---|
| 65 |
$(DISTFILES.extra1) $(DISTFILES.extra2) $(DISTFILES.extra3) |
|---|
| 66 |
|
|---|
| 67 |
POTFILES = \ |
|---|
| 68 |
|
|---|
| 69 |
CATALOGS = @CATALOGS@ |
|---|
| 70 |
|
|---|
| 71 |
# Makevars gets inserted here. (Don't remove this line!) |
|---|
| 72 |
|
|---|
| 73 |
.SUFFIXES: |
|---|
| 74 |
.SUFFIXES: .po .gmo .mo .sed .sin .nop .po-create .po-update |
|---|
| 75 |
|
|---|
| 76 |
.po.mo: |
|---|
| 77 |
@echo "$(MSGFMT) -c -o $@ $<"; \ |
|---|
| 78 |
$(MSGFMT) -c -o t-$@ $< && mv t-$@ $@ |
|---|
| 79 |
|
|---|
| 80 |
.po.gmo: |
|---|
| 81 |
@lang=`echo $* | sed -e 's,.*/,,'`; \ |
|---|
| 82 |
test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ |
|---|
| 83 |
echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o $${lang}.gmo $${lang}.po"; \ |
|---|
| 84 |
cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo |
|---|
| 85 |
|
|---|
| 86 |
.sin.sed: |
|---|
| 87 |
sed -e '/^#/d' $< > t-$@ |
|---|
| 88 |
mv t-$@ $@ |
|---|
| 89 |
|
|---|
| 90 |
|
|---|
| 91 |
all: all-@USE_NLS@ |
|---|
| 92 |
|
|---|
| 93 |
all-yes: stamp-po |
|---|
| 94 |
all-no: |
|---|
| 95 |
|
|---|
| 96 |
stamp-po: $(srcdir)/$(DOMAIN).pot |
|---|
| 97 |
test ! -f $(srcdir)/$(DOMAIN).pot || \ |
|---|
| 98 |
test -z "$(GMOFILES)" || $(MAKE) $(GMOFILES) |
|---|
| 99 |
@test ! -f $(srcdir)/$(DOMAIN).pot || { \ |
|---|
| 100 |
echo "touch stamp-po" && \ |
|---|
| 101 |
echo timestamp > stamp-poT && \ |
|---|
| 102 |
mv stamp-poT stamp-po; \ |
|---|
| 103 |
} |
|---|
| 104 |
|
|---|
| 105 |
$(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed |
|---|
| 106 |
if test -n '$(MSGID_BUGS_ADDRESS)' || test '$(PACKAGE_BUGREPORT)' = '@'PACKAGE_BUGREPORT'@'; then \ |
|---|
| 107 |
msgid_bugs_address='$(MSGID_BUGS_ADDRESS)'; \ |
|---|
| 108 |
else \ |
|---|
| 109 |
msgid_bugs_address='$(PACKAGE_BUGREPORT)'; \ |
|---|
| 110 |
fi; \ |
|---|
| 111 |
$(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \ |
|---|
| 112 |
--add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) \ |
|---|
| 113 |
--files-from=$(srcdir)/POTFILES.in \ |
|---|
| 114 |
--copyright-holder='$(COPYRIGHT_HOLDER)' \ |
|---|
| 115 |
--msgid-bugs-address="$$msgid_bugs_address" |
|---|
| 116 |
test ! -f $(DOMAIN).po || { \ |
|---|
| 117 |
if test -f $(srcdir)/$(DOMAIN).pot; then \ |
|---|
| 118 |
sed -f remove-potcdate.sed < $(srcdir)/$(DOMAIN).pot > $(DOMAIN).1po && \ |
|---|
| 119 |
sed -f remove-potcdate.sed < $(DOMAIN).po > $(DOMAIN).2po && \ |
|---|
| 120 |
if cmp $(DOMAIN).1po $(DOMAIN).2po >/dev/null 2>&1; then \ |
|---|
| 121 |
rm -f $(DOMAIN).1po $(DOMAIN).2po $(DOMAIN).po; \ |
|---|
| 122 |
else \ |
|---|
| 123 |
rm -f $(DOMAIN).1po $(DOMAIN).2po $(srcdir)/$(DOMAIN).pot && \ |
|---|
| 124 |
mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \ |
|---|
| 125 |
fi; \ |
|---|
| 126 |
else \ |
|---|
| 127 |
mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \ |
|---|
| 128 |
fi; \ |
|---|
| 129 |
} |
|---|
| 130 |
|
|---|
| 131 |
$(srcdir)/$(DOMAIN).pot: |
|---|
| 132 |
$(MAKE) $(DOMAIN).pot-update |
|---|
| 133 |
|
|---|
| 134 |
$(POFILES): $(srcdir)/$(DOMAIN).pot |
|---|
| 135 |
@lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \ |
|---|
| 136 |
if test -f "$(srcdir)/$${lang}.po"; then \ |
|---|
| 137 |
test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ |
|---|
| 138 |
echo "$${cdcmd}$(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot"; \ |
|---|
| 139 |
cd $(srcdir) && $(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot; \ |
|---|
| 140 |
else \ |
|---|
| 141 |
$(MAKE) $${lang}.po-create; \ |
|---|
| 142 |
fi |
|---|
| 143 |
|
|---|
| 144 |
|
|---|
| 145 |
install: install-exec install-data |
|---|
| 146 |
install-exec: |
|---|
| 147 |
install-data: install-data-@USE_NLS@ |
|---|
| 148 |
if test "$(PACKAGE)" = "gettext-tools"; then \ |
|---|
| 149 |
$(mkdir_p) $(DESTDIR)$(gettextsrcdir); \ |
|---|
| 150 |
for file in $(DISTFILES.common) Makevars.template; do \ |
|---|
| 151 |
$(INSTALL_DATA) $(srcdir)/$$file \ |
|---|
| 152 |
$(DESTDIR)$(gettextsrcdir)/$$file; \ |
|---|
| 153 |
done; \ |
|---|
| 154 |
for file in Makevars; do \ |
|---|
| 155 |
rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \ |
|---|
| 156 |
done; \ |
|---|
| 157 |
else \ |
|---|
| 158 |
: ; \ |
|---|
| 159 |
fi |
|---|
| 160 |
install-data-no: all |
|---|
| 161 |
install-data-yes: all |
|---|
| 162 |
$(mkdir_p) $(DESTDIR)$(datadir) |
|---|
| 163 |
@catalogs='$(CATALOGS)'; \ |
|---|
| 164 |
for cat in $$catalogs; do \ |
|---|
| 165 |
cat=`basename $$cat`; \ |
|---|
| 166 |
lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ |
|---|
| 167 |
dir=$(localedir)/$$lang/LC_MESSAGES; \ |
|---|
| 168 |
$(mkdir_p) $(DESTDIR)$$dir; \ |
|---|
| 169 |
if test -r $$cat; then realcat=$$cat; else realcat=$(srcdir)/$$cat; fi; \ |
|---|
| 170 |
$(INSTALL_DATA) $$realcat $(DESTDIR)$$dir/$(DOMAIN).mo; \ |
|---|
| 171 |
echo "installing $$realcat as $(DESTDIR)$$dir/$(DOMAIN).mo"; \ |
|---|
| 172 |
for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \ |
|---|
| 173 |
if test -n "$$lc"; then \ |
|---|
| 174 |
if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \ |
|---|
| 175 |
link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \ |
|---|
| 176 |
mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ |
|---|
| 177 |
mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ |
|---|
| 178 |
(cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \ |
|---|
| 179 |
for file in *; do \ |
|---|
| 180 |
if test -f $$file; then \ |
|---|
| 181 |
ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \ |
|---|
| 182 |
fi; \ |
|---|
| 183 |
done); \ |
|---|
| 184 |
rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ |
|---|
| 185 |
else \ |
|---|
| 186 |
if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \ |
|---|
| 187 |
:; \ |
|---|
| 188 |
else \ |
|---|
| 189 |
rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \ |
|---|
| 190 |
mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ |
|---|
| 191 |
fi; \ |
|---|
| 192 |
fi; \ |
|---|
| 193 |
rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ |
|---|
| 194 |
ln -s ../LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \ |
|---|
| 195 |
ln $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \ |
|---|
| 196 |
cp -p $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ |
|---|
| 197 |
echo "installing $$realcat link as $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo"; \ |
|---|
| 198 |
fi; \ |
|---|
| 199 |
done; \ |
|---|
| 200 |
done |
|---|
| 201 |
|
|---|
| 202 |
install-strip: install |
|---|
| 203 |
|
|---|
| 204 |
installdirs: installdirs-exec installdirs-data |
|---|
| 205 |
installdirs-exec: |
|---|
| 206 |
installdirs-data: installdirs-data-@USE_NLS@ |
|---|
| 207 |
if test "$(PACKAGE)" = "gettext-tools"; then \ |
|---|
| 208 |
$(mkdir_p) $(DESTDIR)$(gettextsrcdir); \ |
|---|
| 209 |
else \ |
|---|
| 210 |
: ; \ |
|---|
| 211 |
fi |
|---|
| 212 |
installdirs-data-no: |
|---|
| 213 |
installdirs-data-yes: |
|---|
| 214 |
$(mkdir_p) $(DESTDIR)$(datadir) |
|---|
| 215 |
@catalogs='$(CATALOGS)'; \ |
|---|
| 216 |
for cat in $$catalogs; do \ |
|---|
| 217 |
cat=`basename $$cat`; \ |
|---|
| 218 |
lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ |
|---|
| 219 |
dir=$(localedir)/$$lang/LC_MESSAGES; \ |
|---|
| 220 |
$(mkdir_p) $(DESTDIR)$$dir; \ |
|---|
| 221 |
for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \ |
|---|
| 222 |
if test -n "$$lc"; then \ |
|---|
| 223 |
if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \ |
|---|
| 224 |
link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \ |
|---|
| 225 |
mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ |
|---|
| 226 |
mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ |
|---|
| 227 |
(cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \ |
|---|
| 228 |
for file in *; do \ |
|---|
| 229 |
if test -f $$file; then \ |
|---|
| 230 |
ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \ |
|---|
| 231 |
fi; \ |
|---|
| 232 |
done); \ |
|---|
| 233 |
rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ |
|---|
| 234 |
else \ |
|---|
| 235 |
if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \ |
|---|
| 236 |
:; \ |
|---|
| 237 |
else \ |
|---|
| 238 |
rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \ |
|---|
| 239 |
mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ |
|---|
| 240 |
fi; \ |
|---|
| 241 |
fi; \ |
|---|
| 242 |
fi; \ |
|---|
| 243 |
done; \ |
|---|
| 244 |
done |
|---|
| 245 |
|
|---|
| 246 |
installcheck: |
|---|
| 247 |
|
|---|
| 248 |
uninstall: uninstall-exec uninstall-data |
|---|
| 249 |
uninstall-exec: |
|---|
| 250 |
uninstall-data: uninstall-data-@USE_NLS@ |
|---|
| 251 |
if test "$(PACKAGE)" = "gettext-tools"; then \ |
|---|
| 252 |
for file in $(DISTFILES.common) Makevars.template; do \ |
|---|
| 253 |
rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \ |
|---|
| 254 |
done; \ |
|---|
| 255 |
else \ |
|---|
| 256 |
: ; \ |
|---|
| 257 |
fi |
|---|
| 258 |
uninstall-data-no: |
|---|
| 259 |
uninstall-data-yes: |
|---|
| 260 |
catalogs='$(CATALOGS)'; \ |
|---|
| 261 |
for cat in $$catalogs; do \ |
|---|
| 262 |
cat=`basename $$cat`; \ |
|---|
| 263 |
lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ |
|---|
| 264 |
for lc in LC_MESSAGES $(EXTRA_LOCALE_CATEGORIES); do \ |
|---|
| 265 |
rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ |
|---|
| 266 |
done; \ |
|---|
| 267 |
done |
|---|
| 268 |
|
|---|
| 269 |
check: all |
|---|
| 270 |
|
|---|
| 271 |
info dvi ps pdf html tags TAGS ctags CTAGS ID: |
|---|
| 272 |
|
|---|
| 273 |
mostlyclean: |
|---|
| 274 |
rm -f remove-potcdate.sed |
|---|
| 275 |
rm -f stamp-poT |
|---|
| 276 |
rm -f core core.* $(DOMAIN).po $(DOMAIN).1po $(DOMAIN).2po *.new.po |
|---|
| 277 |
rm -fr *.o |
|---|
| 278 |
|
|---|
| 279 |
clean: mostlyclean |
|---|
| 280 |
|
|---|
| 281 |
distclean: clean |
|---|
| 282 |
rm -f Makefile Makefile.in POTFILES *.mo |
|---|
| 283 |
|
|---|
| 284 |
maintainer-clean: distclean |
|---|
| 285 |
@echo "This command is intended for maintainers to use;" |
|---|
| 286 |
@echo "it deletes files that may require special tools to rebuild." |
|---|
| 287 |
rm -f stamp-po $(GMOFILES) |
|---|
| 288 |
|
|---|
| 289 |
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) |
|---|
| 290 |
dist distdir: |
|---|
| 291 |
$(MAKE) update-po |
|---|
| 292 |
@$(MAKE) dist2 |
|---|
| 293 |
dist2: stamp-po $(DISTFILES) |
|---|
| 294 |
dists="$(DISTFILES)"; \ |
|---|
| 295 |
if test "$(PACKAGE)" = "gettext-tools"; then \ |
|---|
| 296 |
dists="$$dists Makevars.template"; \ |
|---|
| 297 |
fi; \ |
|---|
| 298 |
if test -f $(srcdir)/$(DOMAIN).pot; then \ |
|---|
| 299 |
dists="$$dists $(DOMAIN).pot stamp-po"; \ |
|---|
| 300 |
fi; \ |
|---|
| 301 |
if test -f $(srcdir)/ChangeLog; then \ |
|---|
| 302 |
dists="$$dists ChangeLog"; \ |
|---|
| 303 |
fi; \ |
|---|
| 304 |
for i in 0 1 2 3 4 5 6 7 8 9; do \ |
|---|
| 305 |
if test -f $(srcdir)/ChangeLog.$$i; then \ |
|---|
| 306 |
dists="$$dists ChangeLog.$$i"; \ |
|---|
| 307 |
fi; \ |
|---|
| 308 |
done; \ |
|---|
| 309 |
if test -f $(srcdir)/LINGUAS; then dists="$$dists LINGUAS"; fi; \ |
|---|
| 310 |
for file in $$dists; do \ |
|---|
| 311 |
if test -f $$file; then \ |
|---|
| 312 |
cp -p $$file $(distdir) || exit 1; \ |
|---|
| 313 |
else \ |
|---|
| 314 |
cp -p $(srcdir)/$$file $(distdir) || exit 1; \ |
|---|
| 315 |
fi; \ |
|---|
| 316 |
done |
|---|
| 317 |
|
|---|
| 318 |
update-po: Makefile |
|---|
| 319 |
$(MAKE) $(DOMAIN).pot-update |
|---|
| 320 |
test -z "$(UPDATEPOFILES)" || $(MAKE) $(UPDATEPOFILES) |
|---|
| 321 |
$(MAKE) update-gmo |
|---|
| 322 |
|
|---|
| 323 |
.nop.po-create: |
|---|
| 324 |
@lang=`echo $@ | sed -e 's/\.po-create$$//'`; \ |
|---|
| 325 |
echo "File $$lang.po does not exist. If you are a translator, you can create it through 'msginit'." 1>&2; \ |
|---|
| 326 |
exit 1 |
|---|
| 327 |
|
|---|
| 328 |
.nop.po-update: |
|---|
| 329 |
@lang=`echo $@ | sed -e 's/\.po-update$$//'`; \ |
|---|
| 330 |
if test "$(PACKAGE)" = "gettext-tools"; then PATH=`pwd`/../src:$$PATH; fi; \ |
|---|
| 331 |
tmpdir=`pwd`; \ |
|---|
| 332 |
echo "$$lang:"; \ |
|---|
| 333 |
test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ |
|---|
| 334 |
echo "$${cdcmd}$(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ |
|---|
| 335 |
cd $(srcdir); \ |
|---|
| 336 |
if $(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$tmpdir/$$lang.new.po; then \ |
|---|
| 337 |
if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ |
|---|
| 338 |
rm -f $$tmpdir/$$lang.new.po; \ |
|---|
| 339 |
else \ |
|---|
| 340 |
if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \ |
|---|
| 341 |
:; \ |
|---|
| 342 |
else \ |
|---|
| 343 |
echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \ |
|---|
| 344 |
exit 1; \ |
|---|
| 345 |
fi; \ |
|---|
| 346 |
fi; \ |
|---|
| 347 |
else \ |
|---|
| 348 |
echo "msgmerge for $$lang.po failed!" 1>&2; \ |
|---|
| 349 |
rm -f $$tmpdir/$$lang.new.po; \ |
|---|
| 350 |
fi |
|---|
| 351 |
|
|---|
| 352 |
$(DUMMYPOFILES): |
|---|
| 353 |
|
|---|
| 354 |
update-gmo: Makefile $(GMOFILES) |
|---|
| 355 |
@: |
|---|
| 356 |
|
|---|
| 357 |
Makefile: Makefile.in.in Makevars $(top_builddir)/config.status @POMAKEFILEDEPS@ |
|---|
| 358 |
cd $(top_builddir) \ |
|---|
| 359 |
&& $(SHELL) ./config.status $(subdir)/$@.in po-directories |
|---|
| 360 |
|
|---|
| 361 |
force: |
|---|
| 362 |
|
|---|
| 363 |
.NOEXPORT: |
|---|