1 ## Makefile for the po subdirectory of the GNU C++ Standard library.
3 ## Copyright (C) 2001 Free Software Foundation, Inc.
5 ## This file is part of the libstdc++ version 3 distribution.
6 ## Process this file with automake to produce Makefile.in.
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)
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.
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, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
28 Makefile.am Makefile.in POTFILES.in $(PACKAGE).pot \
31 # Location of installation directories.
32 locale_installdir = $(DESTDIR)$(datadir)/locale
33 locale_builddir = @glibcpp_localedir@
35 # Tell automake that foo.po makes foo.mo
39 LOCALE_OUT = @glibcpp_MOFILES@
43 lang=`echo $$cat | sed 's/\.po$$//'`; \
44 dir=$(locale_builddir)/$$lang/LC_MESSAGES; \
45 $(mkinstalldirs) $$dir; \
46 $(MSGFMT) $< -o $$dir/$(PACKAGE).mo
48 all-local: all-local-@USE_NLS@
50 all-local-yes: $(LOCALE_OUT)
53 # Wish install could just `cp -R ./share $(locale_installdir)` ...
54 install-data-local: install-data-local-@USE_NLS@
55 install-data-local-no:
56 install-data-local-yes: all-local-yes
57 $(mkinstalldirs) $(locale_installdir)
58 @catalogs='$(LOCALE_OUT)'; \
59 for cat in $$catalogs; do \
60 cat=`basename $$cat`; \
61 lang=`echo $$cat | sed 's/\.mo$$//'`; \
62 install_dir=$(locale_installdir)/$$lang/LC_MESSAGES; \
63 $(mkinstalldirs) $$install_dir; \
64 build_cat=$(locale_builddir)/$$lang/LC_MESSAGES/$(PACKAGE).mo; \
65 $(INSTALL_DATA) $$build_cat $$install_dir/$(PACKAGE).mo; \
68 # Specify what gets cleaned up on a 'make clean'
69 CLEANFILES = $(LOCALE_OUT)