]> git.ipfire.org Git - thirdparty/gcc.git/blame - libstdc++-v3/python/Makefile.am
tree-vect-stmts.c (vectorizable_load): Use pre-computed nested_in_vect_loop.
[thirdparty/gcc.git] / libstdc++-v3 / python / Makefile.am
CommitLineData
41850419
TT
1## Makefile for the python subdirectory of the GNU C++ Standard library.
2##
2a5d011c 3## Copyright (C) 2009, 2012 Free Software Foundation, Inc.
41850419
TT
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.
2a5d011c
BK
27if ENABLE_PYTHONDIR
28pythondir = $(prefix)/$(python_mod_dir)
29else
35204bbe 30pythondir = $(datadir)/gcc-$(gcc_version)/python
2a5d011c 31endif
41850419
TT
32
33all-local: gdb.py
34
35nobase_python_DATA = \
36 libstdcxx/v6/printers.py \
37 libstdcxx/v6/__init__.py \
38 libstdcxx/__init__.py
39
40gdb.py: hook.in Makefile
35204bbe
TT
41 sed -e 's,@pythondir@,$(pythondir),' \
42 -e 's,@toolexeclibdir@,$(toolexeclibdir),' < $(srcdir)/hook.in > $@
41850419
TT
43
44install-data-local: gdb.py
45 @$(mkdir_p) $(DESTDIR)$(toolexeclibdir)
35204bbe
TT
46## We want to install gdb.py as SOMETHING-gdb.py. SOMETHING is the
47## full name of the final library. We want to ignore symlinks, the
48## .la file, and any previous -gdb.py file. This is inherently
49## fragile, but there does not seem to be a better option, because
50## libtool hides the real names from us.
a348618d 51 @here=`pwd`; cd $(DESTDIR)$(toolexeclibdir); \
35204bbe
TT
52 for file in libstdc++*; do \
53 case $$file in \
54 *-gdb.py) ;; \
55 *.la) ;; \
56 *) if test -h $$file; then \
57 continue; \
58 fi; \
59 libname=$$file;; \
60 esac; \
61 done; \
62 cd $$here; \
41850419
TT
63 echo " $(INSTALL_DATA) gdb.py $(DESTDIR)$(toolexeclibdir)/$$libname-gdb.py"; \
64 $(INSTALL_DATA) gdb.py $(DESTDIR)$(toolexeclibdir)/$$libname-gdb.py