]> git.ipfire.org Git - thirdparty/gcc.git/blame - libstdc++-v3/python/Makefile.am
Update copyright years in libstdc++-v3/
[thirdparty/gcc.git] / libstdc++-v3 / python / Makefile.am
CommitLineData
41850419
TT
1## Makefile for the python subdirectory of the GNU C++ Standard library.
2##
aa118a03 3## Copyright (C) 2009-2014 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
4bee90f7 11## Free Software Foundation; either version 3, or (at your option)
41850419 12## any later version.
4bee90f7 13##
41850419
TT
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.
4bee90f7 18##
41850419 19## You should have received a copy of the GNU General Public License along
4bee90f7
PC
20## with this library; see the file COPYING3. If not see
21## <http://www.gnu.org/licenses/>.
41850419
TT
22
23include $(top_srcdir)/fragment.am
24
25## Where to install the module code.
2a5d011c
BK
26if ENABLE_PYTHONDIR
27pythondir = $(prefix)/$(python_mod_dir)
28else
35204bbe 29pythondir = $(datadir)/gcc-$(gcc_version)/python
2a5d011c 30endif
41850419
TT
31
32all-local: gdb.py
33
34nobase_python_DATA = \
35 libstdcxx/v6/printers.py \
36 libstdcxx/v6/__init__.py \
37 libstdcxx/__init__.py
38
39gdb.py: hook.in Makefile
35204bbe
TT
40 sed -e 's,@pythondir@,$(pythondir),' \
41 -e 's,@toolexeclibdir@,$(toolexeclibdir),' < $(srcdir)/hook.in > $@
41850419
TT
42
43install-data-local: gdb.py
44 @$(mkdir_p) $(DESTDIR)$(toolexeclibdir)
35204bbe
TT
45## We want to install gdb.py as SOMETHING-gdb.py. SOMETHING is the
46## full name of the final library. We want to ignore symlinks, the
47## .la file, and any previous -gdb.py file. This is inherently
48## fragile, but there does not seem to be a better option, because
49## libtool hides the real names from us.
a348618d 50 @here=`pwd`; cd $(DESTDIR)$(toolexeclibdir); \
35204bbe
TT
51 for file in libstdc++*; do \
52 case $$file in \
53 *-gdb.py) ;; \
54 *.la) ;; \
55 *) if test -h $$file; then \
56 continue; \
57 fi; \
58 libname=$$file;; \
59 esac; \
60 done; \
61 cd $$here; \
41850419
TT
62 echo " $(INSTALL_DATA) gdb.py $(DESTDIR)$(toolexeclibdir)/$$libname-gdb.py"; \
63 $(INSTALL_DATA) gdb.py $(DESTDIR)$(toolexeclibdir)/$$libname-gdb.py