1 ## Makefile for the python subdirectory of the GNU C++ Standard library.
3 ## Copyright (C) 2009 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, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
24 include $(top_srcdir)/fragment.am
26 ## Where to install the module code.
27 pythondir = $(datadir)/gcc-$(gcc_version)/python
31 nobase_python_DATA = \
32 libstdcxx/v6/printers.py \
33 libstdcxx/v6/__init__.py \
36 gdb.py: hook.in Makefile
37 sed -e 's,@pythondir@,$(pythondir),' \
38 -e 's,@toolexeclibdir@,$(toolexeclibdir),' < $(srcdir)/hook.in > $@
40 install-data-local: gdb.py
41 @$(mkdir_p) $(DESTDIR)$(toolexeclibdir)
42 ## We want to install gdb.py as SOMETHING-gdb.py. SOMETHING is the
43 ## full name of the final library. We want to ignore symlinks, the
44 ## .la file, and any previous -gdb.py file. This is inherently
45 ## fragile, but there does not seem to be a better option, because
46 ## libtool hides the real names from us.
47 @here=`pwd`; cd $(DESTDIR)$(toolexeclibdir); \
48 for file in libstdc++*; do \
52 *) if test -h $$file; then \
59 echo " $(INSTALL_DATA) gdb.py $(DESTDIR)$(toolexeclibdir)/$$libname-gdb.py"; \
60 $(INSTALL_DATA) gdb.py $(DESTDIR)$(toolexeclibdir)/$$libname-gdb.py