]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/data-directory/Makefile.in
Update Copyright year range in all files maintained by GDB.
[thirdparty/binutils-gdb.git] / gdb / data-directory / Makefile.in
CommitLineData
ecd75fc8 1# Copyright (C) 2010-2014 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
776af39e
JB
22SYSTEM_GDBINIT_SRCDIR = $(srcdir)/../system-gdbinit
23VPATH = $(srcdir):$(SYSCALLS_SRCDIR):$(PYTHON_SRCDIR):$(SYSTEM_GDBINIT_SRCDIR)
aa2e2d8d
DE
24
25top_srcdir = @top_srcdir@
26top_builddir = @top_builddir@
27
28prefix = @prefix@
29exec_prefix = @exec_prefix@
30
31datarootdir = @datarootdir@
32datadir = @datadir@
33
34SHELL = @SHELL@
35
36LN_S = @LN_S@
37
38INSTALL = @INSTALL@
39INSTALL_DATA = @INSTALL_DATA@
40INSTALL_DIR = $(SHELL) $(srcdir)/../../mkinstalldirs
41
42GDB_DATADIR = @GDB_DATADIR@
43
44SYSCALLS_DIR = syscalls
1bfda48e 45SYSCALLS_INSTALL_DIR = $(DESTDIR)$(GDB_DATADIR)/$(SYSCALLS_DIR)
aa2e2d8d
DE
46SYSCALLS_FILES = \
47 gdb-syscalls.dtd \
9f948660 48 arm-linux.xml \
aa2e2d8d
DE
49 ppc-linux.xml ppc64-linux.xml \
50 i386-linux.xml amd64-linux.xml \
385203ed
DD
51 sparc-linux.xml sparc64-linux.xml \
52 mips-o32-linux.xml mips-n32-linux.xml mips-n64-linux.xml
aa2e2d8d
DE
53
54PYTHON_DIR = python
1bfda48e 55PYTHON_INSTALL_DIR = $(DESTDIR)$(GDB_DATADIR)/$(PYTHON_DIR)
aa2e2d8d 56PYTHON_FILES = \
0e3509db 57 gdb/__init__.py \
1e611234
PM
58 gdb/frames.py \
59 gdb/FrameIterator.py \
60 gdb/FrameDecorator.py \
7b51bc51
DE
61 gdb/types.py \
62 gdb/printing.py \
fa3a4f15 63 gdb/prompt.py \
09748966 64 gdb/command/bound_registers.py \
7b51bc51 65 gdb/command/__init__.py \
1e611234 66 gdb/command/frame_filters.py \
18a9fc12 67 gdb/command/type_printers.py \
fa3a4f15 68 gdb/command/pretty_printers.py \
06fc020f 69 gdb/command/prompt.py \
a72c3253
DE
70 gdb/command/explore.py \
71 gdb/function/__init__.py \
72 gdb/function/strfns.py
aa2e2d8d 73
776af39e
JB
74SYSTEM_GDBINIT_DIR = system-gdbinit
75SYSTEM_GDBINIT_INSTALL_DIR = $(DESTDIR)$(GDB_DATADIR)/$(SYSTEM_GDBINIT_DIR)
76SYSTEM_GDBINIT_FILES = \
77 elinos.py \
78 wrs-linux.py
79
f474844c
JZ
80FLAGS_TO_PASS = \
81 "prefix=$(prefix)" \
82 "exec_prefix=$(exec_prefix)" \
83 "infodir=$(infodir)" \
84 "datarootdir=$(datarootdir)" \
85 "docdir=$(docdir)" \
86 "htmldir=$(htmldir)" \
87 "pdfdir=$(pdfdir)" \
88 "libdir=$(libdir)" \
89 "mandir=$(mandir)" \
90 "datadir=$(datadir)" \
91 "includedir=$(includedir)" \
92 "against=$(against)" \
93 "DESTDIR=$(DESTDIR)" \
94 "AR=$(AR)" \
95 "AR_FLAGS=$(AR_FLAGS)" \
96 "CC=$(CC)" \
97 "CFLAGS=$(CFLAGS)" \
98 "CXX=$(CXX)" \
99 "CXXFLAGS=$(CXXFLAGS)" \
100 "DLLTOOL=$(DLLTOOL)" \
101 "LDFLAGS=$(LDFLAGS)" \
102 "RANLIB=$(RANLIB)" \
103 "MAKEINFO=$(MAKEINFO)" \
104 "MAKEHTML=$(MAKEHTML)" \
105 "MAKEHTMLFLAGS=$(MAKEHTMLFLAGS)" \
106 "INSTALL=$(INSTALL)" \
107 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
108 "INSTALL_DATA=$(INSTALL_DATA)" \
109 "RUNTEST=$(RUNTEST)" \
110 "RUNTESTFLAGS=$(RUNTESTFLAGS)"
111
aa2e2d8d 112.PHONY: all
776af39e 113all: stamp-syscalls stamp-python stamp-system-gdbinit
aa2e2d8d
DE
114
115# For portability's sake, we need to handle systems that don't have
116# symbolic links.
117stamp-syscalls: Makefile $(SYSCALLS_FILES)
118 rm -rf ./$(SYSCALLS_DIR)
119 mkdir ./$(SYSCALLS_DIR)
120 files='$(SYSCALLS_FILES)' ; \
121 for file in $$files ; do \
122 f=$(SYSCALLS_SRCDIR)/$$file ; \
123 if test -f $$f ; then \
124 $(INSTALL_DATA) $$f ./$(SYSCALLS_DIR) ; \
125 fi ; \
126 done
127 touch $@
128
129.PHONY: clean-syscalls
130clean-syscalls:
131 rm -rf $(SYSCALLS_DIR)
132 rm -f stamp-syscalls
133
134# This target is responsible for properly installing the syscalls'
135# XML files in the system.
136.PHONY: install-syscalls
137install-syscalls:
138 $(INSTALL_DIR) $(SYSCALLS_INSTALL_DIR)
139 files='$(SYSCALLS_FILES)' ; \
140 for file in $$files; do \
141 f=$(SYSCALLS_SRCDIR)/$$file ; \
142 if test -f $$f ; then \
143 $(INSTALL_DATA) $$f $(SYSCALLS_INSTALL_DIR) ; \
144 fi ; \
145 done
146
147.PHONY: uninstall-syscalls
148uninstall-syscalls:
149 files='$(SYSCALLS_FILES)' ; \
150 for file in $$files ; do \
151 slashdir=`echo "/$$file" | sed 's,/[^/]*$$,,'` ; \
152 rm -f $(SYSCALLS_INSTALL_DIR)/$$file ; \
153 while test "x$$file" != "x$$slashdir" ; do \
154 rmdir 2>/dev/null "$(SYSCALLS_INSTALL_DIR)$$slashdir" ; \
155 file="$$slashdir" ; \
156 slashdir=`echo "$$file" | sed 's,/[^/]*$$,,'` ; \
157 done \
158 done
159
160stamp-python: Makefile $(PYTHON_FILES)
161 rm -rf ./$(PYTHON_DIR)
162 files='$(PYTHON_FILES)' ; \
163 for file in $$files ; do \
164 dir=`echo "$$file" | sed 's,/[^/]*$$,,'` ; \
165 $(INSTALL_DIR) ./$(PYTHON_DIR)/$$dir ; \
166 $(INSTALL_DATA) $(PYTHON_SRCDIR)/$$file ./$(PYTHON_DIR)/$$dir ; \
167 done
168 touch $@
169
170.PHONY: clean-python
171clean-python:
172 rm -rf $(PYTHON_DIR)
173 rm -f stamp-python
174
175.PHONY: install-python
176install-python:
177 files='$(PYTHON_FILES)' ; \
178 for file in $$files ; do \
179 dir=`echo "$$file" | sed 's,/[^/]*$$,,'` ; \
180 $(INSTALL_DIR) $(PYTHON_INSTALL_DIR)/$$dir ; \
181 $(INSTALL_DATA) ./$(PYTHON_DIR)/$$file $(PYTHON_INSTALL_DIR)/$$dir ; \
182 done
183
184.PHONY: uninstall-python
185uninstall-python:
186 files='$(PYTHON_FILES)' ; \
187 for file in $$files ; do \
188 slashdir=`echo "/$$file" | sed 's,/[^/]*$$,,'` ; \
189 rm -f $(PYTHON_INSTALL_DIR)/$$file ; \
190 while test "x$$file" != "x$$slashdir" ; do \
191 rmdir 2>/dev/null "$(PYTHON_INSTALL_DIR)$$slashdir" ; \
192 file="$$slashdir" ; \
193 slashdir=`echo "$$file" | sed 's,/[^/]*$$,,'` ; \
194 done \
195 done
196
776af39e
JB
197stamp-system-gdbinit: Makefile $(SYSTEM_GDBINIT_FILES)
198 rm -rf ./$(SYSTEM_GDBINIT_DIR)
199 mkdir ./$(SYSTEM_GDBINIT_DIR)
200 files='$(SYSTEM_GDBINIT_FILES)' ; \
201 for file in $$files ; do \
202 f=$(SYSTEM_GDBINIT_SRCDIR)/$$file ; \
203 if test -f $$f ; then \
204 $(INSTALL_DATA) $$f ./$(SYSTEM_GDBINIT_DIR) ; \
205 fi ; \
206 done
207 touch $@
208
209.PHONY: clean-system-gdbinit
210clean-system-gdbinit:
211 rm -rf $(SYSTEM_GDBINIT_DIR)
212 rm -f stamp-system-gdbinit
213
214.PHONY: install-system-gdbinit
215install-system-gdbinit:
216 $(INSTALL_DIR) $(SYSTEM_GDBINIT_INSTALL_DIR)
217 files='$(SYSTEM_GDBINIT_FILES)' ; \
218 for file in $$files; do \
219 f=$(SYSTEM_GDBINIT_SRCDIR)/$$file ; \
220 if test -f $$f ; then \
221 $(INSTALL_DATA) $$f $(SYSTEM_GDBINIT_INSTALL_DIR) ; \
222 fi ; \
223 done
224
225.PHONY: uninstall-system-gdbinit
226uninstall-system-gdbinit:
227 files='$(SYSTEM_GDBINIT_FILES)' ; \
228 for file in $$files ; do \
229 slashdir=`echo "/$$file" | sed 's,/[^/]*$$,,'` ; \
230 rm -f $(SYSTEM_GDBINIT_INSTALL_DIR)/$$file ; \
231 while test "x$$file" != "x$$slashdir" ; do \
232 rmdir 2>/dev/null "$(SYSTEM_GDBINIT_INSTALL_DIR)$$slashdir" ; \
233 file="$$slashdir" ; \
234 slashdir=`echo "$$file" | sed 's,/[^/]*$$,,'` ; \
235 done \
236 done
237
aa2e2d8d
DE
238# Traditionally "install" depends on "all". But it may be useful
239# not to; for example, if the user has made some trivial change to a
240# source file and doesn't care about rebuilding or just wants to save the
241# time it takes for make to check that all is up to date.
242# install-only is intended to address that need.
243.PHONY: install
244install: all
f474844c 245 @$(MAKE) $(FLAGS_TO_PASS) install-only
aa2e2d8d
DE
246
247.PHONY: install-only
776af39e 248install-only: install-syscalls install-python install-system-gdbinit
aa2e2d8d
DE
249
250.PHONY: uninstall
776af39e 251uninstall: uninstall-syscalls uninstall-python uninstall-system-gdbinit
aa2e2d8d
DE
252
253.PHONY: clean
776af39e 254clean: clean-syscalls clean-python clean-system-gdbinit
aa2e2d8d
DE
255
256.PHONY: maintainer-clean realclean distclean
257maintainer-clean realclean distclean: clean
258 rm -f Makefile
259
260.PHONY: check installcheck info dvi pdf html
261.PHONY: install-info install-pdf install-html clean-info
262check installcheck:
263info dvi pdf html:
264install-info install-pdf install-html:
265clean-info:
266
267# GNU Make has an annoying habit of putting *all* the Makefile variables
268# into the environment, unless you include this target as a circumvention.
269# Rumor is that this will be fixed (and this target can be removed)
270# in GNU Make 4.0.
271.NOEXPORT:
272
273# GNU Make 3.63 has a different problem: it keeps tacking command line
274# overrides onto the definition of $(MAKE). This variable setting
275# will remove them.
276MAKEOVERRIDES=
277
543ecec7 278Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
aa2e2d8d 279 cd $(top_builddir) && $(MAKE) data-directory/Makefile