* configure.in, man/po/Makefile.in.in, man/po/Makevars,
man/po/POTFILES.in, man/Makefile.am: Generate the PO files for the
manpages in the man/po directory (instead of man/<lang>). Use a
Makefile.in.in based on gettext's one. This ensure that the PO are
generated before being used in the <lang> directories.
* man/generate_mans.mak, man/generate_translations.mak,
man/Makefile.am: New makefile for the generation of manpages from
XML (generate_mans.mak). This avoid duplicate chunks in
generate_translations.mak and Makefile.am
* man/de/de.po, man/fr/fr.po, man/it/it.po, man/pl/pl.po,
man/ru/ru.po, man/sv/sv.po: Moved to...
* man/po/de.po, man/po/fr.po, man/po/it.po, man/po/pl.po,
man/po/ru.po, man/po/sv.po: ... here.
2007-11-26 02:32:32 +05:30
|
|
|
# Makefile for PO directory in any package using GNU gettext.
|
|
|
|
# Copyright (C) 1995-1997, 2000-2006 by Ulrich Drepper <drepper@gnu.ai.mit.edu>
|
|
|
|
#
|
|
|
|
# This file can be copied and used freely without restrictions. It can
|
|
|
|
# be used in projects which are not available under the GNU General Public
|
|
|
|
# License but which still want to provide support for the GNU gettext
|
|
|
|
# functionality.
|
|
|
|
# Please note that the actual code of GNU gettext is covered by the GNU
|
|
|
|
# General Public License and is *not* in the public domain.
|
|
|
|
#
|
|
|
|
# Origin: gettext-0.16
|
|
|
|
# Modified to handle translations with xml2po by Nicolas François - 2007
|
|
|
|
|
2011-02-13 17:21:39 +05:30
|
|
|
PACKAGE = @PACKAGE@
|
|
|
|
VERSION = @VERSION@
|
|
|
|
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
* configure.in, man/po/Makefile.in.in, man/po/Makevars,
man/po/POTFILES.in, man/Makefile.am: Generate the PO files for the
manpages in the man/po directory (instead of man/<lang>). Use a
Makefile.in.in based on gettext's one. This ensure that the PO are
generated before being used in the <lang> directories.
* man/generate_mans.mak, man/generate_translations.mak,
man/Makefile.am: New makefile for the generation of manpages from
XML (generate_mans.mak). This avoid duplicate chunks in
generate_translations.mak and Makefile.am
* man/de/de.po, man/fr/fr.po, man/it/it.po, man/pl/pl.po,
man/ru/ru.po, man/sv/sv.po: Moved to...
* man/po/de.po, man/po/fr.po, man/po/it.po, man/po/pl.po,
man/po/ru.po, man/po/sv.po: ... here.
2007-11-26 02:32:32 +05:30
|
|
|
|
|
|
|
SHELL = /bin/sh
|
2011-02-13 17:21:39 +05:30
|
|
|
@SET_MAKE@
|
* configure.in, man/po/Makefile.in.in, man/po/Makevars,
man/po/POTFILES.in, man/Makefile.am: Generate the PO files for the
manpages in the man/po directory (instead of man/<lang>). Use a
Makefile.in.in based on gettext's one. This ensure that the PO are
generated before being used in the <lang> directories.
* man/generate_mans.mak, man/generate_translations.mak,
man/Makefile.am: New makefile for the generation of manpages from
XML (generate_mans.mak). This avoid duplicate chunks in
generate_translations.mak and Makefile.am
* man/de/de.po, man/fr/fr.po, man/it/it.po, man/pl/pl.po,
man/ru/ru.po, man/sv/sv.po: Moved to...
* man/po/de.po, man/po/fr.po, man/po/it.po, man/po/pl.po,
man/po/ru.po, man/po/sv.po: ... here.
2007-11-26 02:32:32 +05:30
|
|
|
|
2011-02-13 17:21:39 +05:30
|
|
|
srcdir = @srcdir@
|
|
|
|
top_srcdir = @top_srcdir@
|
|
|
|
VPATH = @srcdir@
|
* configure.in, man/po/Makefile.in.in, man/po/Makevars,
man/po/POTFILES.in, man/Makefile.am: Generate the PO files for the
manpages in the man/po directory (instead of man/<lang>). Use a
Makefile.in.in based on gettext's one. This ensure that the PO are
generated before being used in the <lang> directories.
* man/generate_mans.mak, man/generate_translations.mak,
man/Makefile.am: New makefile for the generation of manpages from
XML (generate_mans.mak). This avoid duplicate chunks in
generate_translations.mak and Makefile.am
* man/de/de.po, man/fr/fr.po, man/it/it.po, man/pl/pl.po,
man/ru/ru.po, man/sv/sv.po: Moved to...
* man/po/de.po, man/po/fr.po, man/po/it.po, man/po/pl.po,
man/po/ru.po, man/po/sv.po: ... here.
2007-11-26 02:32:32 +05:30
|
|
|
|
2011-02-13 17:21:39 +05:30
|
|
|
MSGFMT_ = @MSGFMT@
|
|
|
|
MSGFMT_no = @MSGFMT@
|
|
|
|
MSGFMT_yes = @MSGFMT_015@
|
* configure.in, man/po/Makefile.in.in, man/po/Makevars,
man/po/POTFILES.in, man/Makefile.am: Generate the PO files for the
manpages in the man/po directory (instead of man/<lang>). Use a
Makefile.in.in based on gettext's one. This ensure that the PO are
generated before being used in the <lang> directories.
* man/generate_mans.mak, man/generate_translations.mak,
man/Makefile.am: New makefile for the generation of manpages from
XML (generate_mans.mak). This avoid duplicate chunks in
generate_translations.mak and Makefile.am
* man/de/de.po, man/fr/fr.po, man/it/it.po, man/pl/pl.po,
man/ru/ru.po, man/sv/sv.po: Moved to...
* man/po/de.po, man/po/fr.po, man/po/it.po, man/po/pl.po,
man/po/ru.po, man/po/sv.po: ... here.
2007-11-26 02:32:32 +05:30
|
|
|
MSGFMT = $(MSGFMT_$(USE_MSGCTXT))
|
2011-02-13 17:21:39 +05:30
|
|
|
XGETTEXT_ = @XGETTEXT@
|
|
|
|
XGETTEXT_no = @XGETTEXT@
|
|
|
|
XGETTEXT_yes = @XGETTEXT_015@
|
* configure.in, man/po/Makefile.in.in, man/po/Makevars,
man/po/POTFILES.in, man/Makefile.am: Generate the PO files for the
manpages in the man/po directory (instead of man/<lang>). Use a
Makefile.in.in based on gettext's one. This ensure that the PO are
generated before being used in the <lang> directories.
* man/generate_mans.mak, man/generate_translations.mak,
man/Makefile.am: New makefile for the generation of manpages from
XML (generate_mans.mak). This avoid duplicate chunks in
generate_translations.mak and Makefile.am
* man/de/de.po, man/fr/fr.po, man/it/it.po, man/pl/pl.po,
man/ru/ru.po, man/sv/sv.po: Moved to...
* man/po/de.po, man/po/fr.po, man/po/it.po, man/po/pl.po,
man/po/ru.po, man/po/sv.po: ... here.
2007-11-26 02:32:32 +05:30
|
|
|
XGETTEXT = $(XGETTEXT_$(USE_MSGCTXT))
|
2011-02-13 17:21:39 +05:30
|
|
|
MSGMERGE = @MSGMERGE@ --previous
|
|
|
|
MSGMERGE_UPDATE = @MSGMERGE@ --update --previous
|
* configure.in, man/po/Makefile.in.in, man/po/Makevars,
man/po/POTFILES.in, man/Makefile.am: Generate the PO files for the
manpages in the man/po directory (instead of man/<lang>). Use a
Makefile.in.in based on gettext's one. This ensure that the PO are
generated before being used in the <lang> directories.
* man/generate_mans.mak, man/generate_translations.mak,
man/Makefile.am: New makefile for the generation of manpages from
XML (generate_mans.mak). This avoid duplicate chunks in
generate_translations.mak and Makefile.am
* man/de/de.po, man/fr/fr.po, man/it/it.po, man/pl/pl.po,
man/ru/ru.po, man/sv/sv.po: Moved to...
* man/po/de.po, man/po/fr.po, man/po/it.po, man/po/pl.po,
man/po/ru.po, man/po/sv.po: ... here.
2007-11-26 02:32:32 +05:30
|
|
|
MSGINIT = msginit
|
|
|
|
MSGCONV = msgconv
|
|
|
|
MSGFILTER = msgfilter
|
|
|
|
|
2011-02-12 20:27:37 +05:30
|
|
|
include $(srcdir)/LINGUAS
|
2011-02-13 17:21:39 +05:30
|
|
|
DISTFILES = $(srcdir)/Makevars $(srcdir)/XMLFILES $(srcdir)/LINGUAS $(POFILES)
|
* configure.in, man/po/Makefile.in.in, man/po/Makevars,
man/po/POTFILES.in, man/Makefile.am: Generate the PO files for the
manpages in the man/po directory (instead of man/<lang>). Use a
Makefile.in.in based on gettext's one. This ensure that the PO are
generated before being used in the <lang> directories.
* man/generate_mans.mak, man/generate_translations.mak,
man/Makefile.am: New makefile for the generation of manpages from
XML (generate_mans.mak). This avoid duplicate chunks in
generate_translations.mak and Makefile.am
* man/de/de.po, man/fr/fr.po, man/it/it.po, man/pl/pl.po,
man/ru/ru.po, man/sv/sv.po: Moved to...
* man/po/de.po, man/po/fr.po, man/po/it.po, man/po/pl.po,
man/po/ru.po, man/po/sv.po: ... here.
2007-11-26 02:32:32 +05:30
|
|
|
|
2011-02-12 20:27:37 +05:30
|
|
|
include $(srcdir)/XMLFILES
|
* configure.in, man/po/Makefile.in.in, man/po/Makevars,
man/po/POTFILES.in, man/Makefile.am: Generate the PO files for the
manpages in the man/po directory (instead of man/<lang>). Use a
Makefile.in.in based on gettext's one. This ensure that the PO are
generated before being used in the <lang> directories.
* man/generate_mans.mak, man/generate_translations.mak,
man/Makefile.am: New makefile for the generation of manpages from
XML (generate_mans.mak). This avoid duplicate chunks in
generate_translations.mak and Makefile.am
* man/de/de.po, man/fr/fr.po, man/it/it.po, man/pl/pl.po,
man/ru/ru.po, man/sv/sv.po: Moved to...
* man/po/de.po, man/po/fr.po, man/po/it.po, man/po/pl.po,
man/po/ru.po, man/po/sv.po: ... here.
2007-11-26 02:32:32 +05:30
|
|
|
|
2011-02-12 20:27:37 +05:30
|
|
|
include $(srcdir)/Makevars
|
* configure.in, man/po/Makefile.in.in, man/po/Makevars,
man/po/POTFILES.in, man/Makefile.am: Generate the PO files for the
manpages in the man/po directory (instead of man/<lang>). Use a
Makefile.in.in based on gettext's one. This ensure that the PO are
generated before being used in the <lang> directories.
* man/generate_mans.mak, man/generate_translations.mak,
man/Makefile.am: New makefile for the generation of manpages from
XML (generate_mans.mak). This avoid duplicate chunks in
generate_translations.mak and Makefile.am
* man/de/de.po, man/fr/fr.po, man/it/it.po, man/pl/pl.po,
man/ru/ru.po, man/sv/sv.po: Moved to...
* man/po/de.po, man/po/fr.po, man/po/it.po, man/po/pl.po,
man/po/ru.po, man/po/sv.po: ... here.
2007-11-26 02:32:32 +05:30
|
|
|
|
|
|
|
.SUFFIXES:
|
|
|
|
.SUFFIXES: .po .sed .sin .nop .po-create .po-update
|
|
|
|
|
2011-02-13 17:21:39 +05:30
|
|
|
remove-potcdate.sin: $(top_srcdir)/po/remove-potcdate.sin
|
|
|
|
cp $? $@
|
2008-01-01 01:46:46 +05:30
|
|
|
|
* configure.in, man/po/Makefile.in.in, man/po/Makevars,
man/po/POTFILES.in, man/Makefile.am: Generate the PO files for the
manpages in the man/po directory (instead of man/<lang>). Use a
Makefile.in.in based on gettext's one. This ensure that the PO are
generated before being used in the <lang> directories.
* man/generate_mans.mak, man/generate_translations.mak,
man/Makefile.am: New makefile for the generation of manpages from
XML (generate_mans.mak). This avoid duplicate chunks in
generate_translations.mak and Makefile.am
* man/de/de.po, man/fr/fr.po, man/it/it.po, man/pl/pl.po,
man/ru/ru.po, man/sv/sv.po: Moved to...
* man/po/de.po, man/po/fr.po, man/po/it.po, man/po/pl.po,
man/po/ru.po, man/po/sv.po: ... here.
2007-11-26 02:32:32 +05:30
|
|
|
.sin.sed:
|
|
|
|
sed -e '/^#/d' $< > t-$@
|
|
|
|
mv t-$@ $@
|
|
|
|
|
2011-02-12 20:27:37 +05:30
|
|
|
all: all-yes
|
* configure.in, man/po/Makefile.in.in, man/po/Makevars,
man/po/POTFILES.in, man/Makefile.am: Generate the PO files for the
manpages in the man/po directory (instead of man/<lang>). Use a
Makefile.in.in based on gettext's one. This ensure that the PO are
generated before being used in the <lang> directories.
* man/generate_mans.mak, man/generate_translations.mak,
man/Makefile.am: New makefile for the generation of manpages from
XML (generate_mans.mak). This avoid duplicate chunks in
generate_translations.mak and Makefile.am
* man/de/de.po, man/fr/fr.po, man/it/it.po, man/pl/pl.po,
man/ru/ru.po, man/sv/sv.po: Moved to...
* man/po/de.po, man/po/fr.po, man/po/it.po, man/po/pl.po,
man/po/ru.po, man/po/sv.po: ... here.
2007-11-26 02:32:32 +05:30
|
|
|
|
|
|
|
all-yes: stamp-po
|
|
|
|
all-no:
|
|
|
|
|
|
|
|
# $(srcdir)/$(DOMAIN).pot is only created when needed. When xgettext finds no
|
|
|
|
# internationalized messages, no $(srcdir)/$(DOMAIN).pot is created (because
|
|
|
|
# we don't want to bother translators with empty POT files). We assume that
|
|
|
|
# LINGUAS is empty in this case, i.e. $(POFILES) and $(GMOFILES) are empty.
|
|
|
|
# In this case, stamp-po is a nop (i.e. a phony target).
|
|
|
|
|
|
|
|
# stamp-po is a timestamp denoting the last time at which the CATALOGS have
|
|
|
|
# been loosely updated. Its purpose is that when a developer or translator
|
|
|
|
# checks out the package via CVS, and the $(DOMAIN).pot file is not in CVS,
|
|
|
|
# "make" will update the $(DOMAIN).pot and the $(CATALOGS), but subsequent
|
|
|
|
# invocations of "make" will do nothing. This timestamp would not be necessary
|
|
|
|
# if updating the $(CATALOGS) would always touch them; however, the rule for
|
|
|
|
# $(POFILES) has been designed to not touch files that don't need to be
|
|
|
|
# changed.
|
|
|
|
stamp-po: $(srcdir)/$(DOMAIN).pot
|
2011-02-13 17:21:39 +05:30
|
|
|
echo "TOTO 0"
|
* configure.in, man/po/Makefile.in.in, man/po/Makevars,
man/po/POTFILES.in, man/Makefile.am: Generate the PO files for the
manpages in the man/po directory (instead of man/<lang>). Use a
Makefile.in.in based on gettext's one. This ensure that the PO are
generated before being used in the <lang> directories.
* man/generate_mans.mak, man/generate_translations.mak,
man/Makefile.am: New makefile for the generation of manpages from
XML (generate_mans.mak). This avoid duplicate chunks in
generate_translations.mak and Makefile.am
* man/de/de.po, man/fr/fr.po, man/it/it.po, man/pl/pl.po,
man/ru/ru.po, man/sv/sv.po: Moved to...
* man/po/de.po, man/po/fr.po, man/po/it.po, man/po/pl.po,
man/po/ru.po, man/po/sv.po: ... here.
2007-11-26 02:32:32 +05:30
|
|
|
@test ! -f $(srcdir)/$(DOMAIN).pot || { \
|
|
|
|
echo "touch stamp-po" && \
|
|
|
|
echo timestamp > stamp-poT && \
|
|
|
|
mv stamp-poT stamp-po; \
|
|
|
|
}
|
|
|
|
|
|
|
|
# Note: Target 'all' must not depend on target '$(DOMAIN).pot-update',
|
|
|
|
# otherwise packages like GCC can not be built if only parts of the source
|
|
|
|
# have been downloaded.
|
|
|
|
|
|
|
|
# This target rebuilds $(DOMAIN).pot; it is an expensive operation.
|
|
|
|
# Note that $(DOMAIN).pot is not touched if it doesn't need to be changed.
|
|
|
|
# TODO: set MSGID_BUGS_ADDRESS, COPYRIGHT_HOLDER
|
2011-02-12 20:27:37 +05:30
|
|
|
$(DOMAIN).pot-update: $(XMLFILES) $(srcdir)/XMLFILES remove-potcdate.sed
|
2009-03-14 21:48:06 +05:30
|
|
|
@set -e; tmpdir=`pwd`; \
|
|
|
|
echo "cd $(top_srcdir)/man"; \
|
* configure.in, man/po/Makefile.in.in, man/po/Makevars,
man/po/POTFILES.in, man/Makefile.am: Generate the PO files for the
manpages in the man/po directory (instead of man/<lang>). Use a
Makefile.in.in based on gettext's one. This ensure that the PO are
generated before being used in the <lang> directories.
* man/generate_mans.mak, man/generate_translations.mak,
man/Makefile.am: New makefile for the generation of manpages from
XML (generate_mans.mak). This avoid duplicate chunks in
generate_translations.mak and Makefile.am
* man/de/de.po, man/fr/fr.po, man/it/it.po, man/pl/pl.po,
man/ru/ru.po, man/sv/sv.po: Moved to...
* man/po/de.po, man/po/fr.po, man/po/it.po, man/po/pl.po,
man/po/ru.po, man/po/sv.po: ... here.
2007-11-26 02:32:32 +05:30
|
|
|
cd $(top_srcdir)/man; \
|
2011-02-12 20:27:37 +05:30
|
|
|
echo "xml2po --expand-all-entities -o $$tmpdir/$(DOMAIN).po $(notdir $(XMLFILES))"; \
|
|
|
|
xml2po --expand-all-entities -o $$tmpdir/$(DOMAIN).po $(notdir $(XMLFILES)); \
|
* configure.in, man/po/Makefile.in.in, man/po/Makevars,
man/po/POTFILES.in, man/Makefile.am: Generate the PO files for the
manpages in the man/po directory (instead of man/<lang>). Use a
Makefile.in.in based on gettext's one. This ensure that the PO are
generated before being used in the <lang> directories.
* man/generate_mans.mak, man/generate_translations.mak,
man/Makefile.am: New makefile for the generation of manpages from
XML (generate_mans.mak). This avoid duplicate chunks in
generate_translations.mak and Makefile.am
* man/de/de.po, man/fr/fr.po, man/it/it.po, man/pl/pl.po,
man/ru/ru.po, man/sv/sv.po: Moved to...
* man/po/de.po, man/po/fr.po, man/po/it.po, man/po/pl.po,
man/po/ru.po, man/po/sv.po: ... here.
2007-11-26 02:32:32 +05:30
|
|
|
cd $$tmpdir
|
|
|
|
test ! -f $(DOMAIN).po || { \
|
|
|
|
if test -f $(srcdir)/$(DOMAIN).pot; then \
|
|
|
|
sed -f remove-potcdate.sed < $(srcdir)/$(DOMAIN).pot > $(DOMAIN).1po && \
|
|
|
|
sed -f remove-potcdate.sed < $(DOMAIN).po > $(DOMAIN).2po && \
|
|
|
|
if cmp $(DOMAIN).1po $(DOMAIN).2po >/dev/null 2>&1; then \
|
|
|
|
rm -f $(DOMAIN).1po $(DOMAIN).2po $(DOMAIN).po; \
|
|
|
|
else \
|
|
|
|
rm -f $(DOMAIN).1po $(DOMAIN).2po $(srcdir)/$(DOMAIN).pot && \
|
|
|
|
mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \
|
|
|
|
fi; \
|
|
|
|
else \
|
|
|
|
mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \
|
|
|
|
fi; \
|
|
|
|
}
|
|
|
|
|
|
|
|
# This rule has no dependencies: we don't need to update $(DOMAIN).pot at
|
|
|
|
# every "make" invocation, only create it when it is missing.
|
|
|
|
# Only "make $(DOMAIN).pot-update" or "make dist" will force an update.
|
|
|
|
$(srcdir)/$(DOMAIN).pot:
|
|
|
|
$(MAKE) $(DOMAIN).pot-update
|
|
|
|
|
|
|
|
# This target rebuilds a PO file if $(DOMAIN).pot has changed.
|
|
|
|
# Note that a PO file is not touched if it doesn't need to be changed.
|
|
|
|
$(POFILES): $(srcdir)/$(DOMAIN).pot
|
|
|
|
@lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \
|
|
|
|
if test -f "$(srcdir)/$${lang}.po"; then \
|
|
|
|
test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
|
|
|
|
echo "$${cdcmd}$(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot"; \
|
|
|
|
cd $(srcdir) && $(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot; \
|
|
|
|
else \
|
|
|
|
$(MAKE) $${lang}.po-create; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
install: install-exec install-data
|
|
|
|
install-exec:
|
|
|
|
install-data:
|
|
|
|
|
|
|
|
install-strip: install
|
|
|
|
|
|
|
|
installdirs: installdirs-exec installdirs-data
|
|
|
|
installdirs-exec:
|
|
|
|
installdirs-data:
|
|
|
|
|
|
|
|
# Define this as empty until I found a useful application.
|
|
|
|
installcheck:
|
|
|
|
|
|
|
|
uninstall: uninstall-exec uninstall-data
|
|
|
|
uninstall-exec:
|
|
|
|
uninstall-data:
|
|
|
|
|
|
|
|
check: all
|
|
|
|
|
|
|
|
info dvi ps pdf html tags TAGS ctags CTAGS ID:
|
|
|
|
|
|
|
|
mostlyclean:
|
2011-02-13 17:21:39 +05:30
|
|
|
rm -f remove-potcdate.sed remove-potcdate.sin
|
* configure.in, man/po/Makefile.in.in, man/po/Makevars,
man/po/POTFILES.in, man/Makefile.am: Generate the PO files for the
manpages in the man/po directory (instead of man/<lang>). Use a
Makefile.in.in based on gettext's one. This ensure that the PO are
generated before being used in the <lang> directories.
* man/generate_mans.mak, man/generate_translations.mak,
man/Makefile.am: New makefile for the generation of manpages from
XML (generate_mans.mak). This avoid duplicate chunks in
generate_translations.mak and Makefile.am
* man/de/de.po, man/fr/fr.po, man/it/it.po, man/pl/pl.po,
man/ru/ru.po, man/sv/sv.po: Moved to...
* man/po/de.po, man/po/fr.po, man/po/it.po, man/po/pl.po,
man/po/ru.po, man/po/sv.po: ... here.
2007-11-26 02:32:32 +05:30
|
|
|
rm -f stamp-poT
|
|
|
|
rm -f core core.* $(DOMAIN).po $(DOMAIN).1po $(DOMAIN).2po *.new.po
|
|
|
|
|
|
|
|
clean: mostlyclean
|
|
|
|
|
|
|
|
distclean: clean
|
2011-02-12 20:27:37 +05:30
|
|
|
rm -f Makefile
|
* configure.in, man/po/Makefile.in.in, man/po/Makevars,
man/po/POTFILES.in, man/Makefile.am: Generate the PO files for the
manpages in the man/po directory (instead of man/<lang>). Use a
Makefile.in.in based on gettext's one. This ensure that the PO are
generated before being used in the <lang> directories.
* man/generate_mans.mak, man/generate_translations.mak,
man/Makefile.am: New makefile for the generation of manpages from
XML (generate_mans.mak). This avoid duplicate chunks in
generate_translations.mak and Makefile.am
* man/de/de.po, man/fr/fr.po, man/it/it.po, man/pl/pl.po,
man/ru/ru.po, man/sv/sv.po: Moved to...
* man/po/de.po, man/po/fr.po, man/po/it.po, man/po/pl.po,
man/po/ru.po, man/po/sv.po: ... here.
2007-11-26 02:32:32 +05:30
|
|
|
|
|
|
|
maintainer-clean: distclean
|
|
|
|
@echo "This command is intended for maintainers to use;"
|
|
|
|
@echo "it deletes files that may require special tools to rebuild."
|
|
|
|
rm -f stamp-po
|
|
|
|
|
|
|
|
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
|
|
|
|
dist distdir:
|
|
|
|
$(MAKE) update-po
|
|
|
|
@$(MAKE) dist2
|
|
|
|
# This is a separate target because 'update-po' must be executed before.
|
|
|
|
dist2: stamp-po $(DISTFILES)
|
|
|
|
dists="$(DISTFILES)"; \
|
|
|
|
if test -f $(srcdir)/$(DOMAIN).pot; then \
|
|
|
|
dists="$$dists $(DOMAIN).pot stamp-po"; \
|
|
|
|
fi; \
|
|
|
|
if test -f $(srcdir)/ChangeLog; then \
|
|
|
|
dists="$$dists ChangeLog"; \
|
|
|
|
fi; \
|
|
|
|
for i in 0 1 2 3 4 5 6 7 8 9; do \
|
|
|
|
if test -f $(srcdir)/ChangeLog.$$i; then \
|
|
|
|
dists="$$dists ChangeLog.$$i"; \
|
|
|
|
fi; \
|
|
|
|
done; \
|
|
|
|
for file in $$dists; do \
|
|
|
|
if test -f $$file; then \
|
|
|
|
cp -p $$file $(distdir) || exit 1; \
|
|
|
|
else \
|
|
|
|
cp -p $(srcdir)/$$file $(distdir) || exit 1; \
|
|
|
|
fi; \
|
|
|
|
done
|
|
|
|
|
|
|
|
update-po: Makefile
|
|
|
|
$(MAKE) $(DOMAIN).pot-update
|
|
|
|
test -z "$(UPDATEPOFILES)" || $(MAKE) $(UPDATEPOFILES)
|
|
|
|
|
|
|
|
# General rule for creating PO files.
|
|
|
|
|
|
|
|
.nop.po-create:
|
|
|
|
@lang=`echo $@ | sed -e 's/\.po-create$$//'`; \
|
|
|
|
echo "File $$lang.po does not exist. If you are a translator, you can create it through 'msginit'." 1>&2; \
|
|
|
|
exit 1
|
|
|
|
|
|
|
|
# General rule for updating PO files.
|
|
|
|
|
|
|
|
.nop.po-update:
|
|
|
|
@lang=`echo $@ | sed -e 's/\.po-update$$//'`; \
|
|
|
|
tmpdir=`pwd`; \
|
|
|
|
echo "$$lang:"; \
|
|
|
|
test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
|
|
|
|
echo "$${cdcmd}$(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \
|
|
|
|
cd $(srcdir); \
|
|
|
|
if $(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$tmpdir/$$lang.new.po; then \
|
|
|
|
if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
|
|
|
|
rm -f $$tmpdir/$$lang.new.po; \
|
|
|
|
else \
|
|
|
|
if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \
|
|
|
|
:; \
|
|
|
|
else \
|
|
|
|
echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \
|
|
|
|
exit 1; \
|
|
|
|
fi; \
|
|
|
|
fi; \
|
|
|
|
else \
|
|
|
|
echo "msgmerge for $$lang.po failed!" 1>&2; \
|
|
|
|
rm -f $$tmpdir/$$lang.new.po; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
$(DUMMYPOFILES):
|
|
|
|
|
2011-02-13 17:21:39 +05:30
|
|
|
.PRECIOUS: Makefile
|
|
|
|
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
|
|
|
@case '$?' in \
|
|
|
|
*config.status*) \
|
|
|
|
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
|
|
|
|
*) \
|
|
|
|
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
|
|
|
|
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
|
|
|
|
esac;
|
|
|
|
|
|
|
|
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
|
|
|
|
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
|
* configure.in, man/po/Makefile.in.in, man/po/Makevars,
man/po/POTFILES.in, man/Makefile.am: Generate the PO files for the
manpages in the man/po directory (instead of man/<lang>). Use a
Makefile.in.in based on gettext's one. This ensure that the PO are
generated before being used in the <lang> directories.
* man/generate_mans.mak, man/generate_translations.mak,
man/Makefile.am: New makefile for the generation of manpages from
XML (generate_mans.mak). This avoid duplicate chunks in
generate_translations.mak and Makefile.am
* man/de/de.po, man/fr/fr.po, man/it/it.po, man/pl/pl.po,
man/ru/ru.po, man/sv/sv.po: Moved to...
* man/po/de.po, man/po/fr.po, man/po/it.po, man/po/pl.po,
man/po/ru.po, man/po/sv.po: ... here.
2007-11-26 02:32:32 +05:30
|
|
|
|
|
|
|
# Tell versions [3.59,3.63) of GNU make not to export all variables.
|
|
|
|
# Otherwise a system limit (for SysV at least) may be exceeded.
|
|
|
|
.NOEXPORT:
|