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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [libstdc++-v3/] [po/] [Makefile.am] - Blame information for rev 17

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 17 jlechner
## Makefile for the po subdirectory of the GNU C++ Standard library.
2
##
3
## Copyright (C) 2001, 2003, 2004 Free Software Foundation, Inc.
4
##
5
## This file is part of the libstdc++ version 3 distribution.
6
## Process this file with automake to produce Makefile.in.
7
 
8
## This file is part of the GNU ISO C++ Library.  This library is free
9
## software; you can redistribute it and/or modify it under the
10
## terms of the GNU General Public License as published by the
11
## Free Software Foundation; either version 2, or (at your option)
12
## any later version.
13
 
14
## This library is distributed in the hope that it will be useful,
15
## but WITHOUT ANY WARRANTY; without even the implied warranty of
16
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
## GNU General Public License for more details.
18
 
19
## You should have received a copy of the GNU General Public License along
20
## with this library; see the file COPYING.  If not, write to the Free
21
## Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
22
## USA.
23
 
24
include $(top_srcdir)/fragment.am
25
 
26
# Location of installation directories.
27
locale_installdir = $(DESTDIR)$(datadir)/locale
28
locale_builddir = $(glibcxx_localedir)
29
 
30
# Tell automake that foo.po makes foo.mo
31
SUFFIXES = .po .mo
32
 
33
LOCALE_IN = $(glibcxx_POFILES)
34
LOCALE_OUT = $(glibcxx_MOFILES)
35
 
36
MSGFMT = msgfmt
37
 
38
# Necessary files.
39
EXTRA_DIST = string_literals.cc POTFILES.in $(PACKAGE).pot $(LOCALE_IN)
40
 
41
.po.mo:
42
        $(MSGFMT) -o $@ $<
43
 
44
all-local: all-local-$(USE_NLS)
45
all-local-no:
46
all-local-yes: $(LOCALE_OUT)
47
 
48
# 'make check' needs the catalogs constructed in build directory.
49
check: check-$(USE_NLS)
50
check-no:
51
check-yes:
52
        $(mkinstalldirs) $(locale_builddir)
53
        catalogs='$(LOCALE_OUT)'; \
54
        for cat in $$catalogs; do \
55
          cat=`basename $$cat`; \
56
          lang=`echo $$cat | sed 's/\.mo$$//'`; \
57
          install_dir=$(locale_builddir)/$$lang/LC_MESSAGES; \
58
          $(mkinstalldirs) $$install_dir; \
59
          $(INSTALL_DATA) $$cat $$install_dir/$(PACKAGE).mo; \
60
        done
61
 
62
# Install rules here.
63
# Wish install could just `cp -R ./share $(locale_installdir)` ...
64
install-data-local: install-data-local-$(USE_NLS)
65
install-data-local-no:
66
install-data-local-yes: all-local-yes
67
        $(mkinstalldirs) $(locale_installdir)
68
        catalogs='$(LOCALE_OUT)'; \
69
        for cat in $$catalogs; do \
70
          cat=`basename $$cat`; \
71
          lang=`echo $$cat | sed 's/\.mo$$//'`; \
72
          install_dir=$(locale_installdir)/$$lang/LC_MESSAGES; \
73
          $(mkinstalldirs) $$install_dir; \
74
          $(INSTALL_DATA) $$cat $$install_dir/$(PACKAGE).mo; \
75
        done
76
 
77
# Maintainence of the .po template file.  This rule is never run automatically,
78
# and updates the source directory.
79
pot:
80
        cd $(glibcxx_srcdir); \
81
        xgettext --default-domain=$(PACKAGE) --add-comments --c++ --debug \
82
          --join-existing -o po/$(PACKAGE).pot --keyword=__N \
83
          `grep -r -l '__N(".*")' .`
84
 
85
# Specify what gets cleaned up on a 'make clean'
86
CLEANFILES = $(LOCALE_OUT)

powered by: WebSVN 2.1.0

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