2001-08-08 04:49:01 +02:00
|
|
|
## Makefile for the po subdirectory of the GNU C++ Standard library.
|
|
|
|
##
|
2004-03-02 19:30:08 +01:00
|
|
|
## Copyright (C) 2001, 2003, 2004 Free Software Foundation, Inc.
|
2001-08-08 04:49:01 +02:00
|
|
|
##
|
|
|
|
## This file is part of the libstdc++ version 3 distribution.
|
|
|
|
## Process this file with automake to produce Makefile.in.
|
|
|
|
|
|
|
|
## This file is part of the GNU ISO C++ Library. This library is free
|
|
|
|
## software; you can redistribute it and/or modify it under the
|
|
|
|
## terms of the GNU General Public License as published by the
|
|
|
|
## Free Software Foundation; either version 2, or (at your option)
|
|
|
|
## any later version.
|
|
|
|
|
|
|
|
## This library is distributed in the hope that it will be useful,
|
|
|
|
## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
## GNU General Public License for more details.
|
|
|
|
|
|
|
|
## You should have received a copy of the GNU General Public License along
|
|
|
|
## with this library; see the file COPYING. If not, write to the Free
|
2005-08-17 04:28:44 +02:00
|
|
|
## Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
|
2001-08-08 04:49:01 +02:00
|
|
|
## USA.
|
|
|
|
|
2003-08-27 02:38:28 +02:00
|
|
|
include $(top_srcdir)/fragment.am
|
2001-08-08 04:49:01 +02:00
|
|
|
|
|
|
|
# Location of installation directories.
|
|
|
|
locale_installdir = $(DESTDIR)$(datadir)/locale
|
2003-08-27 23:29:43 +02:00
|
|
|
locale_builddir = $(glibcxx_localedir)
|
2001-08-08 04:49:01 +02:00
|
|
|
|
|
|
|
# Tell automake that foo.po makes foo.mo
|
|
|
|
SUFFIXES = .po .mo
|
|
|
|
|
2003-08-27 23:29:43 +02:00
|
|
|
LOCALE_IN = $(glibcxx_POFILES)
|
|
|
|
LOCALE_OUT = $(glibcxx_MOFILES)
|
2001-08-08 04:49:01 +02:00
|
|
|
|
2001-08-14 03:24:30 +02:00
|
|
|
MSGFMT = msgfmt
|
|
|
|
|
|
|
|
# Necessary files.
|
2004-03-02 19:30:08 +01:00
|
|
|
EXTRA_DIST = string_literals.cc POTFILES.in $(PACKAGE).pot $(LOCALE_IN)
|
2001-08-14 03:24:30 +02:00
|
|
|
|
2001-08-08 04:49:01 +02:00
|
|
|
.po.mo:
|
2001-12-17 10:19:04 +01:00
|
|
|
$(MSGFMT) -o $@ $<
|
2001-08-08 04:49:01 +02:00
|
|
|
|
2003-08-27 23:29:43 +02:00
|
|
|
all-local: all-local-$(USE_NLS)
|
|
|
|
all-local-no:
|
|
|
|
all-local-yes: $(LOCALE_OUT)
|
2001-08-10 08:50:34 +02:00
|
|
|
|
|
|
|
# 'make check' needs the catalogs constructed in build directory.
|
2003-08-27 23:29:43 +02:00
|
|
|
check: check-$(USE_NLS)
|
2001-08-10 09:39:21 +02:00
|
|
|
check-no:
|
|
|
|
check-yes:
|
2003-08-27 23:29:43 +02:00
|
|
|
$(mkinstalldirs) $(locale_builddir)
|
acinclude.m4 (GLIBCXX_EXPORT_INCLUDES): Remove LIBMATH_INCLUDES and LIBSUPCXX_INCLUDES.
2003-08-17 Phil Edwards <pme@gcc.gnu.org>
* acinclude.m4 (GLIBCXX_EXPORT_INCLUDES): Remove LIBMATH_INCLUDES
and LIBSUPCXX_INCLUDES. Re-purpose TOPLEVEL_INCLUDES to refer to
things from the top level.
* configure.ac (GLIBCXX_IS_NATIVE): Determine earlier and re-order.
Comment out the conditionals for CANADIAN and GLIBCXX_BUILD_LIBMATH
(currently unused). Strip the fake-VPATH shell fragment from
automake-generated rules, if present.
* linkage.m4: Add comment.
* fragment.am: New file, containing factored-out common settings.
(AM_CPPFLAGS): Absorb the deprecated INCLUDES variable contents.
* Makefile.am: Include fragment.am. Remove common variables.
* include/Makefile.am: Likewise.
* libmath/Makefile.am: Likewise.
* libsupc++/Makefile.am: Likewise.
* po/Makefile.am: Likewise. Print rules during check.
* src/Makefile.am: Likewise.
* testsuite/Makefile.am: Likewise.
* aclocal.m4, configure, Makefile.in, include/Makefile.in,
libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
src/Makefile.in, testsuite/Makefile.in: Regenerate.
From-SVN: r70522
2003-08-17 22:23:12 +02:00
|
|
|
catalogs='$(LOCALE_OUT)'; \
|
2001-08-10 08:50:34 +02:00
|
|
|
for cat in $$catalogs; do \
|
|
|
|
cat=`basename $$cat`; \
|
|
|
|
lang=`echo $$cat | sed 's/\.mo$$//'`; \
|
|
|
|
install_dir=$(locale_builddir)/$$lang/LC_MESSAGES; \
|
|
|
|
$(mkinstalldirs) $$install_dir; \
|
|
|
|
$(INSTALL_DATA) $$cat $$install_dir/$(PACKAGE).mo; \
|
2003-08-27 23:29:43 +02:00
|
|
|
done
|
2001-08-08 04:49:01 +02:00
|
|
|
|
2003-08-27 23:29:43 +02:00
|
|
|
# Install rules here.
|
2001-08-08 04:49:01 +02:00
|
|
|
# Wish install could just `cp -R ./share $(locale_installdir)` ...
|
2003-08-27 23:29:43 +02:00
|
|
|
install-data-local: install-data-local-$(USE_NLS)
|
2001-08-08 04:49:01 +02:00
|
|
|
install-data-local-no:
|
|
|
|
install-data-local-yes: all-local-yes
|
2003-08-27 23:29:43 +02:00
|
|
|
$(mkinstalldirs) $(locale_installdir)
|
acinclude.m4 (GLIBCXX_EXPORT_INCLUDES): Remove LIBMATH_INCLUDES and LIBSUPCXX_INCLUDES.
2003-08-17 Phil Edwards <pme@gcc.gnu.org>
* acinclude.m4 (GLIBCXX_EXPORT_INCLUDES): Remove LIBMATH_INCLUDES
and LIBSUPCXX_INCLUDES. Re-purpose TOPLEVEL_INCLUDES to refer to
things from the top level.
* configure.ac (GLIBCXX_IS_NATIVE): Determine earlier and re-order.
Comment out the conditionals for CANADIAN and GLIBCXX_BUILD_LIBMATH
(currently unused). Strip the fake-VPATH shell fragment from
automake-generated rules, if present.
* linkage.m4: Add comment.
* fragment.am: New file, containing factored-out common settings.
(AM_CPPFLAGS): Absorb the deprecated INCLUDES variable contents.
* Makefile.am: Include fragment.am. Remove common variables.
* include/Makefile.am: Likewise.
* libmath/Makefile.am: Likewise.
* libsupc++/Makefile.am: Likewise.
* po/Makefile.am: Likewise. Print rules during check.
* src/Makefile.am: Likewise.
* testsuite/Makefile.am: Likewise.
* aclocal.m4, configure, Makefile.in, include/Makefile.in,
libmath/Makefile.in, libsupc++/Makefile.in, po/Makefile.in,
src/Makefile.in, testsuite/Makefile.in: Regenerate.
From-SVN: r70522
2003-08-17 22:23:12 +02:00
|
|
|
catalogs='$(LOCALE_OUT)'; \
|
2001-08-08 04:49:01 +02:00
|
|
|
for cat in $$catalogs; do \
|
|
|
|
cat=`basename $$cat`; \
|
|
|
|
lang=`echo $$cat | sed 's/\.mo$$//'`; \
|
|
|
|
install_dir=$(locale_installdir)/$$lang/LC_MESSAGES; \
|
|
|
|
$(mkinstalldirs) $$install_dir; \
|
2001-08-10 09:39:21 +02:00
|
|
|
$(INSTALL_DATA) $$cat $$install_dir/$(PACKAGE).mo; \
|
2001-08-08 04:49:01 +02:00
|
|
|
done
|
|
|
|
|
2003-04-28 23:03:19 +02:00
|
|
|
# Maintainence of the .po template file. This rule is never run automatically,
|
|
|
|
# and updates the source directory.
|
|
|
|
pot:
|
2003-07-05 06:05:45 +02:00
|
|
|
cd $(glibcxx_srcdir); \
|
2003-04-28 23:03:19 +02:00
|
|
|
xgettext --default-domain=$(PACKAGE) --add-comments --c++ --debug \
|
|
|
|
--join-existing -o po/$(PACKAGE).pot --keyword=__N \
|
|
|
|
`grep -r -l '__N(".*")' .`
|
|
|
|
|
2001-08-08 04:49:01 +02:00
|
|
|
# Specify what gets cleaned up on a 'make clean'
|
2003-08-27 23:29:43 +02:00
|
|
|
CLEANFILES = $(LOCALE_OUT)
|