[Ada] Fix cleanup leak in ada-lang.c:old_renaming_is_invisible
[deliverable/binutils-gdb.git] / gdb / data-directory / Makefile.in
CommitLineData
28e7fd62 1# Copyright (C) 2010-2013 Free Software Foundation, Inc.
aa2e2d8d
DE
2
3# Makefile for building a staged copy of the data-directory.
4# This file is part of GDB.
5
6# This program is free software; you can redistribute it and/or modify
7# it under the terms of the GNU General Public License as published by
8# the Free Software Foundation; either version 3 of the License, or
9# (at your option) any later version.
10#
11# This program is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14# GNU General Public License for more details.
15#
16# You should have received a copy of the GNU General Public License
17# along with this program. If not, see <http://www.gnu.org/licenses/>.
18
19srcdir = @srcdir@
20SYSCALLS_SRCDIR = $(srcdir)/../syscalls
21PYTHON_SRCDIR = $(srcdir)/../python/lib
22VPATH = $(srcdir):$(SYSCALLS_SRCDIR):$(PYTHON_SRCDIR)
23
24top_srcdir = @top_srcdir@
25top_builddir = @top_builddir@
26
27prefix = @prefix@
28exec_prefix = @exec_prefix@
29
30datarootdir = @datarootdir@
31datadir = @datadir@
32
33SHELL = @SHELL@
34
35LN_S = @LN_S@
36
37INSTALL = @INSTALL@
38INSTALL_DATA = @INSTALL_DATA@
39INSTALL_DIR = $(SHELL) $(srcdir)/../../mkinstalldirs
40
41GDB_DATADIR = @GDB_DATADIR@
42
43SYSCALLS_DIR = syscalls
1bfda48e 44SYSCALLS_INSTALL_DIR = $(DESTDIR)$(GDB_DATADIR)/$(SYSCALLS_DIR)
aa2e2d8d
DE
45SYSCALLS_FILES = \
46 gdb-syscalls.dtd \
47 ppc-linux.xml ppc64-linux.xml \
48 i386-linux.xml amd64-linux.xml \
385203ed
DD
49 sparc-linux.xml sparc64-linux.xml \
50 mips-o32-linux.xml mips-n32-linux.xml mips-n64-linux.xml
aa2e2d8d
DE
51
52PYTHON_DIR = python
1bfda48e 53PYTHON_INSTALL_DIR = $(DESTDIR)$(GDB_DATADIR)/$(PYTHON_DIR)
aa2e2d8d 54PYTHON_FILES = \
0e3509db 55 gdb/__init__.py \
1e611234
PM
56 gdb/frames.py \
57 gdb/FrameIterator.py \
58 gdb/FrameDecorator.py \
7b51bc51
DE
59 gdb/types.py \
60 gdb/printing.py \
fa3a4f15 61 gdb/prompt.py \
7b51bc51 62 gdb/command/__init__.py \
1e611234 63 gdb/command/frame_filters.py \
18a9fc12 64 gdb/command/type_printers.py \
fa3a4f15 65 gdb/command/pretty_printers.py \
06fc020f 66 gdb/command/prompt.py \
a72c3253
DE
67 gdb/command/explore.py \
68 gdb/function/__init__.py \
69 gdb/function/strfns.py
aa2e2d8d 70
f474844c
JZ
71FLAGS_TO_PASS = \
72 "prefix=$(prefix)" \
73 "exec_prefix=$(exec_prefix)" \
74 "infodir=$(infodir)" \
75 "datarootdir=$(datarootdir)" \
76 "docdir=$(docdir)" \
77 "htmldir=$(htmldir)" \
78 "pdfdir=$(pdfdir)" \
79 "libdir=$(libdir)" \
80 "mandir=$(mandir)" \
81 "datadir=$(datadir)" \
82 "includedir=$(includedir)" \
83 "against=$(against)" \
84 "DESTDIR=$(DESTDIR)" \
85 "AR=$(AR)" \
86 "AR_FLAGS=$(AR_FLAGS)" \
87 "CC=$(CC)" \
88 "CFLAGS=$(CFLAGS)" \
89 "CXX=$(CXX)" \
90 "CXXFLAGS=$(CXXFLAGS)" \
91 "DLLTOOL=$(DLLTOOL)" \
92 "LDFLAGS=$(LDFLAGS)" \
93 "RANLIB=$(RANLIB)" \
94 "MAKEINFO=$(MAKEINFO)" \
95 "MAKEHTML=$(MAKEHTML)" \
96 "MAKEHTMLFLAGS=$(MAKEHTMLFLAGS)" \
97 "INSTALL=$(INSTALL)" \
98 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
99 "INSTALL_DATA=$(INSTALL_DATA)" \
100 "RUNTEST=$(RUNTEST)" \
101 "RUNTESTFLAGS=$(RUNTESTFLAGS)"
102
aa2e2d8d
DE
103.PHONY: all
104all: stamp-syscalls stamp-python
105
106# For portability's sake, we need to handle systems that don't have
107# symbolic links.
108stamp-syscalls: Makefile $(SYSCALLS_FILES)
109 rm -rf ./$(SYSCALLS_DIR)
110 mkdir ./$(SYSCALLS_DIR)
111 files='$(SYSCALLS_FILES)' ; \
112 for file in $$files ; do \
113 f=$(SYSCALLS_SRCDIR)/$$file ; \
114 if test -f $$f ; then \
115 $(INSTALL_DATA) $$f ./$(SYSCALLS_DIR) ; \
116 fi ; \
117 done
118 touch $@
119
120.PHONY: clean-syscalls
121clean-syscalls:
122 rm -rf $(SYSCALLS_DIR)
123 rm -f stamp-syscalls
124
125# This target is responsible for properly installing the syscalls'
126# XML files in the system.
127.PHONY: install-syscalls
128install-syscalls:
129 $(INSTALL_DIR) $(SYSCALLS_INSTALL_DIR)
130 files='$(SYSCALLS_FILES)' ; \
131 for file in $$files; do \
132 f=$(SYSCALLS_SRCDIR)/$$file ; \
133 if test -f $$f ; then \
134 $(INSTALL_DATA) $$f $(SYSCALLS_INSTALL_DIR) ; \
135 fi ; \
136 done
137
138.PHONY: uninstall-syscalls
139uninstall-syscalls:
140 files='$(SYSCALLS_FILES)' ; \
141 for file in $$files ; do \
142 slashdir=`echo "/$$file" | sed 's,/[^/]*$$,,'` ; \
143 rm -f $(SYSCALLS_INSTALL_DIR)/$$file ; \
144 while test "x$$file" != "x$$slashdir" ; do \
145 rmdir 2>/dev/null "$(SYSCALLS_INSTALL_DIR)$$slashdir" ; \
146 file="$$slashdir" ; \
147 slashdir=`echo "$$file" | sed 's,/[^/]*$$,,'` ; \
148 done \
149 done
150
151stamp-python: Makefile $(PYTHON_FILES)
152 rm -rf ./$(PYTHON_DIR)
153 files='$(PYTHON_FILES)' ; \
154 for file in $$files ; do \
155 dir=`echo "$$file" | sed 's,/[^/]*$$,,'` ; \
156 $(INSTALL_DIR) ./$(PYTHON_DIR)/$$dir ; \
157 $(INSTALL_DATA) $(PYTHON_SRCDIR)/$$file ./$(PYTHON_DIR)/$$dir ; \
158 done
159 touch $@
160
161.PHONY: clean-python
162clean-python:
163 rm -rf $(PYTHON_DIR)
164 rm -f stamp-python
165
166.PHONY: install-python
167install-python:
168 files='$(PYTHON_FILES)' ; \
169 for file in $$files ; do \
170 dir=`echo "$$file" | sed 's,/[^/]*$$,,'` ; \
171 $(INSTALL_DIR) $(PYTHON_INSTALL_DIR)/$$dir ; \
172 $(INSTALL_DATA) ./$(PYTHON_DIR)/$$file $(PYTHON_INSTALL_DIR)/$$dir ; \
173 done
174
175.PHONY: uninstall-python
176uninstall-python:
177 files='$(PYTHON_FILES)' ; \
178 for file in $$files ; do \
179 slashdir=`echo "/$$file" | sed 's,/[^/]*$$,,'` ; \
180 rm -f $(PYTHON_INSTALL_DIR)/$$file ; \
181 while test "x$$file" != "x$$slashdir" ; do \
182 rmdir 2>/dev/null "$(PYTHON_INSTALL_DIR)$$slashdir" ; \
183 file="$$slashdir" ; \
184 slashdir=`echo "$$file" | sed 's,/[^/]*$$,,'` ; \
185 done \
186 done
187
188# Traditionally "install" depends on "all". But it may be useful
189# not to; for example, if the user has made some trivial change to a
190# source file and doesn't care about rebuilding or just wants to save the
191# time it takes for make to check that all is up to date.
192# install-only is intended to address that need.
193.PHONY: install
194install: all
f474844c 195 @$(MAKE) $(FLAGS_TO_PASS) install-only
aa2e2d8d
DE
196
197.PHONY: install-only
198install-only: install-syscalls install-python
199
200.PHONY: uninstall
201uninstall: uninstall-syscalls uninstall-python
202
203.PHONY: clean
204clean: clean-syscalls clean-python
205
206.PHONY: maintainer-clean realclean distclean
207maintainer-clean realclean distclean: clean
208 rm -f Makefile
209
210.PHONY: check installcheck info dvi pdf html
211.PHONY: install-info install-pdf install-html clean-info
212check installcheck:
213info dvi pdf html:
214install-info install-pdf install-html:
215clean-info:
216
217# GNU Make has an annoying habit of putting *all* the Makefile variables
218# into the environment, unless you include this target as a circumvention.
219# Rumor is that this will be fixed (and this target can be removed)
220# in GNU Make 4.0.
221.NOEXPORT:
222
223# GNU Make 3.63 has a different problem: it keeps tacking command line
224# overrides onto the definition of $(MAKE). This variable setting
225# will remove them.
226MAKEOVERRIDES=
227
543ecec7 228Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
aa2e2d8d 229 cd $(top_builddir) && $(MAKE) data-directory/Makefile
This page took 0.221833 seconds and 4 git commands to generate.