]> git.ipfire.org Git - thirdparty/gcc.git/blame - libstdc++-v3/python/Makefile.am
Makefile.in, [...]: New files.
[thirdparty/gcc.git] / libstdc++-v3 / python / Makefile.am
CommitLineData
41850419
TT
1## Makefile for the python subdirectory of the GNU C++ Standard library.
2##
3## Copyright (C) 2009 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
24include $(top_srcdir)/fragment.am
25
26## Where to install the module code.
27pythondir = $(pkgdatadir)/python
28
29all-local: gdb.py
30
31nobase_python_DATA = \
32 libstdcxx/v6/printers.py \
33 libstdcxx/v6/__init__.py \
34 libstdcxx/__init__.py
35
36gdb.py: hook.in Makefile
37 sed -e 's,@dir@,$(pythondir),' < $(srcdir)/hook.in > $@
38
39install-data-local: gdb.py
40 @$(mkdir_p) $(DESTDIR)$(toolexeclibdir)
41 @libname=`cd $(toolexeclibdir) && ls -r libstdc++* | fgrep -v gdb.py | sed 1q`; \
42 echo " $(INSTALL_DATA) gdb.py $(DESTDIR)$(toolexeclibdir)/$$libname-gdb.py"; \
43 $(INSTALL_DATA) gdb.py $(DESTDIR)$(toolexeclibdir)/$$libname-gdb.py