2001-08-08 10:49:01 +08:00
|
|
|
## Makefile for the po subdirectory of the GNU C++ Standard library.
|
|
|
|
##
|
2022-01-03 17:42:10 +08:00
|
|
|
## Copyright (C) 2001-2022 Free Software Foundation, Inc.
|
2001-08-08 10:49:01 +08: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
|
2009-04-09 23:00:19 +08:00
|
|
|
## Free Software Foundation; either version 3, or (at your option)
|
2001-08-08 10:49:01 +08:00
|
|
|
## 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
|
2009-04-09 23:00:19 +08:00
|
|
|
## with this library; see the file COPYING3. If not see
|
|
|
|
## <http://www.gnu.org/licenses/>.
|
2001-08-08 10:49:01 +08:00
|
|
|
|
2003-08-27 08:38:28 +08:00
|
|
|
include $(top_srcdir)/fragment.am
|
2001-08-08 10:49:01 +08:00
|
|
|
|
|
|
|
# Location of installation directories.
|
|
|
|
locale_installdir = $(DESTDIR)$(datadir)/locale
|
2003-08-28 05:29:43 +08:00
|
|
|
locale_builddir = $(glibcxx_localedir)
|
2001-08-08 10:49:01 +08:00
|
|
|
|
|
|
|
# Tell automake that foo.po makes foo.mo
|
|
|
|
SUFFIXES = .po .mo
|
|
|
|
|
2003-08-28 05:29:43 +08:00
|
|
|
LOCALE_IN = $(glibcxx_POFILES)
|
|
|
|
LOCALE_OUT = $(glibcxx_MOFILES)
|
2001-08-08 10:49:01 +08:00
|
|
|
|
2001-08-14 09:24:30 +08:00
|
|
|
MSGFMT = msgfmt
|
|
|
|
|
|
|
|
# Necessary files.
|
2004-03-03 02:30:08 +08:00
|
|
|
EXTRA_DIST = string_literals.cc POTFILES.in $(PACKAGE).pot $(LOCALE_IN)
|
2001-08-14 09:24:30 +08:00
|
|
|
|
2001-08-08 10:49:01 +08:00
|
|
|
.po.mo:
|
2001-12-17 17:19:04 +08:00
|
|
|
$(MSGFMT) -o $@ $<
|
2001-08-08 10:49:01 +08:00
|
|
|
|
2003-08-28 05:29:43 +08:00
|
|
|
all-local: all-local-$(USE_NLS)
|
|
|
|
all-local-no:
|
|
|
|
all-local-yes: $(LOCALE_OUT)
|
2001-08-10 14:50:34 +08:00
|
|
|
|
|
|
|
# 'make check' needs the catalogs constructed in build directory.
|
2003-08-28 05:29:43 +08:00
|
|
|
check: check-$(USE_NLS)
|
2001-08-10 15:39:21 +08:00
|
|
|
check-no:
|
|
|
|
check-yes:
|
2003-08-28 05:29:43 +08: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-18 04:23:12 +08:00
|
|
|
catalogs='$(LOCALE_OUT)'; \
|
2001-08-10 14:50:34 +08: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-28 05:29:43 +08:00
|
|
|
done
|
2001-08-08 10:49:01 +08:00
|
|
|
|
2003-08-28 05:29:43 +08:00
|
|
|
# Install rules here.
|
2001-08-08 10:49:01 +08:00
|
|
|
# Wish install could just `cp -R ./share $(locale_installdir)` ...
|
2003-08-28 05:29:43 +08:00
|
|
|
install-data-local: install-data-local-$(USE_NLS)
|
2001-08-08 10:49:01 +08:00
|
|
|
install-data-local-no:
|
|
|
|
install-data-local-yes: all-local-yes
|
2003-08-28 05:29:43 +08: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-18 04:23:12 +08:00
|
|
|
catalogs='$(LOCALE_OUT)'; \
|
2001-08-08 10:49:01 +08: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 15:39:21 +08:00
|
|
|
$(INSTALL_DATA) $$cat $$install_dir/$(PACKAGE).mo; \
|
2001-08-08 10:49:01 +08:00
|
|
|
done
|
|
|
|
|
2003-04-29 05:03:19 +08:00
|
|
|
# Maintainence of the .po template file. This rule is never run automatically,
|
|
|
|
# and updates the source directory.
|
|
|
|
pot:
|
2003-07-05 12:05:45 +08:00
|
|
|
cd $(glibcxx_srcdir); \
|
2003-04-29 05:03:19 +08:00
|
|
|
xgettext --default-domain=$(PACKAGE) --add-comments --c++ --debug \
|
|
|
|
--join-existing -o po/$(PACKAGE).pot --keyword=__N \
|
|
|
|
`grep -r -l '__N(".*")' .`
|
|
|
|
|
2001-08-08 10:49:01 +08:00
|
|
|
# Specify what gets cleaned up on a 'make clean'
|
2003-08-28 05:29:43 +08:00
|
|
|
CLEANFILES = $(LOCALE_OUT)
|