OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [libstdc++-v3/] [po/] [Makefile.am] - Diff between revs 816 and 826

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 816 Rev 826
## Makefile for the po subdirectory of the GNU C++ Standard library.
## Makefile for the po subdirectory of the GNU C++ Standard library.
##
##
## Copyright (C) 2001, 2003, 2004, 2009 Free Software Foundation, Inc.
## Copyright (C) 2001, 2003, 2004, 2009 Free Software Foundation, Inc.
##
##
## This file is part of the libstdc++ version 3 distribution.
## This file is part of the libstdc++ version 3 distribution.
## Process this file with automake to produce Makefile.in.
## Process this file with automake to produce Makefile.in.
## This file is part of the GNU ISO C++ Library.  This library is free
## 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
## software; you can redistribute it and/or modify it under the
## terms of the GNU General Public License as published by the
## terms of the GNU General Public License as published by the
## Free Software Foundation; either version 3, or (at your option)
## Free Software Foundation; either version 3, or (at your option)
## any later version.
## any later version.
## This library is distributed in the hope that it will be useful,
## This library is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
## GNU General Public License for more details.
## GNU General Public License for more details.
## You should have received a copy of the GNU General Public License along
## You should have received a copy of the GNU General Public License along
## with this library; see the file COPYING3.  If not see
## with this library; see the file COPYING3.  If not see
## .
## .
include $(top_srcdir)/fragment.am
include $(top_srcdir)/fragment.am
# Location of installation directories.
# Location of installation directories.
locale_installdir = $(DESTDIR)$(datadir)/locale
locale_installdir = $(DESTDIR)$(datadir)/locale
locale_builddir = $(glibcxx_localedir)
locale_builddir = $(glibcxx_localedir)
# Tell automake that foo.po makes foo.mo
# Tell automake that foo.po makes foo.mo
SUFFIXES = .po .mo
SUFFIXES = .po .mo
LOCALE_IN = $(glibcxx_POFILES)
LOCALE_IN = $(glibcxx_POFILES)
LOCALE_OUT = $(glibcxx_MOFILES)
LOCALE_OUT = $(glibcxx_MOFILES)
MSGFMT = msgfmt
MSGFMT = msgfmt
# Necessary files.
# Necessary files.
EXTRA_DIST = string_literals.cc POTFILES.in $(PACKAGE).pot $(LOCALE_IN)
EXTRA_DIST = string_literals.cc POTFILES.in $(PACKAGE).pot $(LOCALE_IN)
.po.mo:
.po.mo:
        $(MSGFMT) -o $@ $<
        $(MSGFMT) -o $@ $<
all-local: all-local-$(USE_NLS)
all-local: all-local-$(USE_NLS)
all-local-no:
all-local-no:
all-local-yes: $(LOCALE_OUT)
all-local-yes: $(LOCALE_OUT)
# 'make check' needs the catalogs constructed in build directory.
# 'make check' needs the catalogs constructed in build directory.
check: check-$(USE_NLS)
check: check-$(USE_NLS)
check-no:
check-no:
check-yes:
check-yes:
        $(mkinstalldirs) $(locale_builddir)
        $(mkinstalldirs) $(locale_builddir)
        catalogs='$(LOCALE_OUT)'; \
        catalogs='$(LOCALE_OUT)'; \
        for cat in $$catalogs; do \
        for cat in $$catalogs; do \
          cat=`basename $$cat`; \
          cat=`basename $$cat`; \
          lang=`echo $$cat | sed 's/\.mo$$//'`; \
          lang=`echo $$cat | sed 's/\.mo$$//'`; \
          install_dir=$(locale_builddir)/$$lang/LC_MESSAGES; \
          install_dir=$(locale_builddir)/$$lang/LC_MESSAGES; \
          $(mkinstalldirs) $$install_dir; \
          $(mkinstalldirs) $$install_dir; \
          $(INSTALL_DATA) $$cat $$install_dir/$(PACKAGE).mo; \
          $(INSTALL_DATA) $$cat $$install_dir/$(PACKAGE).mo; \
        done
        done
# Install rules here.
# Install rules here.
# Wish install could just `cp -R ./share $(locale_installdir)` ...
# Wish install could just `cp -R ./share $(locale_installdir)` ...
install-data-local: install-data-local-$(USE_NLS)
install-data-local: install-data-local-$(USE_NLS)
install-data-local-no:
install-data-local-no:
install-data-local-yes: all-local-yes
install-data-local-yes: all-local-yes
        $(mkinstalldirs) $(locale_installdir)
        $(mkinstalldirs) $(locale_installdir)
        catalogs='$(LOCALE_OUT)'; \
        catalogs='$(LOCALE_OUT)'; \
        for cat in $$catalogs; do \
        for cat in $$catalogs; do \
          cat=`basename $$cat`; \
          cat=`basename $$cat`; \
          lang=`echo $$cat | sed 's/\.mo$$//'`; \
          lang=`echo $$cat | sed 's/\.mo$$//'`; \
          install_dir=$(locale_installdir)/$$lang/LC_MESSAGES; \
          install_dir=$(locale_installdir)/$$lang/LC_MESSAGES; \
          $(mkinstalldirs) $$install_dir; \
          $(mkinstalldirs) $$install_dir; \
          $(INSTALL_DATA) $$cat $$install_dir/$(PACKAGE).mo; \
          $(INSTALL_DATA) $$cat $$install_dir/$(PACKAGE).mo; \
        done
        done
# Maintainence of the .po template file.  This rule is never run automatically,
# Maintainence of the .po template file.  This rule is never run automatically,
# and updates the source directory.
# and updates the source directory.
pot:
pot:
        cd $(glibcxx_srcdir); \
        cd $(glibcxx_srcdir); \
        xgettext --default-domain=$(PACKAGE) --add-comments --c++ --debug \
        xgettext --default-domain=$(PACKAGE) --add-comments --c++ --debug \
          --join-existing -o po/$(PACKAGE).pot --keyword=__N \
          --join-existing -o po/$(PACKAGE).pot --keyword=__N \
          `grep -r -l '__N(".*")' .`
          `grep -r -l '__N(".*")' .`
# Specify what gets cleaned up on a 'make clean'
# Specify what gets cleaned up on a 'make clean'
CLEANFILES = $(LOCALE_OUT)
CLEANFILES = $(LOCALE_OUT)
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.