Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(576)

Side by Side Diff: gdb/data-directory/Makefile.in

Issue 124383005: GDB 7.6.50 (Closed) Base URL: http://git.chromium.org/native_client/nacl-gdb.git@upstream
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gdb/darwin-nat-info.c ('k') | gdb/dbug-rom.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (C) 2010-2012 Free Software Foundation, Inc. 1 # Copyright (C) 2010-2013 Free Software Foundation, Inc.
2 2
3 # Makefile for building a staged copy of the data-directory. 3 # Makefile for building a staged copy of the data-directory.
4 # This file is part of GDB. 4 # This file is part of GDB.
5 5
6 # This program is free software; you can redistribute it and/or modify 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 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 8 # the Free Software Foundation; either version 3 of the License, or
9 # (at your option) any later version. 9 # (at your option) any later version.
10 # 10 #
11 # This program is distributed in the hope that it will be useful, 11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of 12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details. 14 # GNU General Public License for more details.
15 # 15 #
16 # You should have received a copy of the GNU General Public License 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/>. 17 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18 18
19 srcdir = @srcdir@ 19 srcdir = @srcdir@
20 SYSCALLS_SRCDIR = $(srcdir)/../syscalls 20 SYSCALLS_SRCDIR = $(srcdir)/../syscalls
21 PYTHON_SRCDIR = $(srcdir)/../python/lib 21 PYTHON_SRCDIR = $(srcdir)/../python/lib
22 VPATH = $(srcdir):$(SYSCALLS_SRCDIR):$(PYTHON_SRCDIR) 22 SYSTEM_GDBINIT_SRCDIR = $(srcdir)/../system-gdbinit
23 VPATH = $(srcdir):$(SYSCALLS_SRCDIR):$(PYTHON_SRCDIR):$(SYSTEM_GDBINIT_SRCDIR)
23 24
24 top_srcdir = @top_srcdir@ 25 top_srcdir = @top_srcdir@
25 top_builddir = @top_builddir@ 26 top_builddir = @top_builddir@
26 27
27 prefix = @prefix@ 28 prefix = @prefix@
28 exec_prefix = @exec_prefix@ 29 exec_prefix = @exec_prefix@
29 30
30 datarootdir = @datarootdir@ 31 datarootdir = @datarootdir@
31 datadir = @datadir@ 32 datadir = @datadir@
32 33
33 SHELL = @SHELL@ 34 SHELL = @SHELL@
34 35
35 LN_S = @LN_S@ 36 LN_S = @LN_S@
36 37
37 INSTALL = @INSTALL@ 38 INSTALL = @INSTALL@
38 INSTALL_DATA = @INSTALL_DATA@ 39 INSTALL_DATA = @INSTALL_DATA@
39 INSTALL_DIR = $(SHELL) $(srcdir)/../../mkinstalldirs 40 INSTALL_DIR = $(SHELL) $(srcdir)/../../mkinstalldirs
40 41
41 GDB_DATADIR = @GDB_DATADIR@ 42 GDB_DATADIR = @GDB_DATADIR@
42 43
43 SYSCALLS_DIR = syscalls 44 SYSCALLS_DIR = syscalls
44 SYSCALLS_INSTALL_DIR = $(DESTDIR)$(GDB_DATADIR)/$(SYSCALLS_DIR) 45 SYSCALLS_INSTALL_DIR = $(DESTDIR)$(GDB_DATADIR)/$(SYSCALLS_DIR)
45 SYSCALLS_FILES = \ 46 SYSCALLS_FILES = \
46 gdb-syscalls.dtd \ 47 gdb-syscalls.dtd \
48 arm-linux.xml \
47 ppc-linux.xml ppc64-linux.xml \ 49 ppc-linux.xml ppc64-linux.xml \
48 i386-linux.xml amd64-linux.xml \ 50 i386-linux.xml amd64-linux.xml \
49 sparc-linux.xml sparc64-linux.xml \ 51 sparc-linux.xml sparc64-linux.xml \
50 mips-o32-linux.xml mips-n32-linux.xml mips-n64-linux.xml 52 mips-o32-linux.xml mips-n32-linux.xml mips-n64-linux.xml
51 53
52 PYTHON_DIR = python 54 PYTHON_DIR = python
53 PYTHON_INSTALL_DIR = $(DESTDIR)$(GDB_DATADIR)/$(PYTHON_DIR) 55 PYTHON_INSTALL_DIR = $(DESTDIR)$(GDB_DATADIR)/$(PYTHON_DIR)
54 PYTHON_FILES = \ 56 PYTHON_FILES = \
55 gdb/__init__.py \ 57 gdb/__init__.py \
58 gdb/frames.py \
59 gdb/FrameIterator.py \
60 gdb/FrameDecorator.py \
56 gdb/types.py \ 61 gdb/types.py \
57 gdb/printing.py \ 62 gdb/printing.py \
58 gdb/prompt.py \ 63 gdb/prompt.py \
64 gdb/command/bound_registers.py \
59 gdb/command/__init__.py \ 65 gdb/command/__init__.py \
66 gdb/command/frame_filters.py \
67 gdb/command/type_printers.py \
60 gdb/command/pretty_printers.py \ 68 gdb/command/pretty_printers.py \
61 gdb/command/prompt.py \ 69 gdb/command/prompt.py \
62 » gdb/command/explore.py 70 » gdb/command/explore.py \
71 » gdb/function/__init__.py \
72 » gdb/function/strfns.py
73
74 SYSTEM_GDBINIT_DIR = system-gdbinit
75 SYSTEM_GDBINIT_INSTALL_DIR = $(DESTDIR)$(GDB_DATADIR)/$(SYSTEM_GDBINIT_DIR)
76 SYSTEM_GDBINIT_FILES = \
77 » elinos.py \
78 » wrs-linux.py
63 79
64 FLAGS_TO_PASS = \ 80 FLAGS_TO_PASS = \
65 "prefix=$(prefix)" \ 81 "prefix=$(prefix)" \
66 "exec_prefix=$(exec_prefix)" \ 82 "exec_prefix=$(exec_prefix)" \
67 "infodir=$(infodir)" \ 83 "infodir=$(infodir)" \
68 "datarootdir=$(datarootdir)" \ 84 "datarootdir=$(datarootdir)" \
69 "docdir=$(docdir)" \ 85 "docdir=$(docdir)" \
70 "htmldir=$(htmldir)" \ 86 "htmldir=$(htmldir)" \
71 "pdfdir=$(pdfdir)" \ 87 "pdfdir=$(pdfdir)" \
72 "libdir=$(libdir)" \ 88 "libdir=$(libdir)" \
(...skipping 14 matching lines...) Expand all
87 "MAKEINFO=$(MAKEINFO)" \ 103 "MAKEINFO=$(MAKEINFO)" \
88 "MAKEHTML=$(MAKEHTML)" \ 104 "MAKEHTML=$(MAKEHTML)" \
89 "MAKEHTMLFLAGS=$(MAKEHTMLFLAGS)" \ 105 "MAKEHTMLFLAGS=$(MAKEHTMLFLAGS)" \
90 "INSTALL=$(INSTALL)" \ 106 "INSTALL=$(INSTALL)" \
91 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \ 107 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
92 "INSTALL_DATA=$(INSTALL_DATA)" \ 108 "INSTALL_DATA=$(INSTALL_DATA)" \
93 "RUNTEST=$(RUNTEST)" \ 109 "RUNTEST=$(RUNTEST)" \
94 "RUNTESTFLAGS=$(RUNTESTFLAGS)" 110 "RUNTESTFLAGS=$(RUNTESTFLAGS)"
95 111
96 .PHONY: all 112 .PHONY: all
97 all: stamp-syscalls stamp-python 113 all: stamp-syscalls stamp-python stamp-system-gdbinit
98 114
99 # For portability's sake, we need to handle systems that don't have 115 # For portability's sake, we need to handle systems that don't have
100 # symbolic links. 116 # symbolic links.
101 stamp-syscalls: Makefile $(SYSCALLS_FILES) 117 stamp-syscalls: Makefile $(SYSCALLS_FILES)
102 rm -rf ./$(SYSCALLS_DIR) 118 rm -rf ./$(SYSCALLS_DIR)
103 mkdir ./$(SYSCALLS_DIR) 119 mkdir ./$(SYSCALLS_DIR)
104 files='$(SYSCALLS_FILES)' ; \ 120 files='$(SYSCALLS_FILES)' ; \
105 for file in $$files ; do \ 121 for file in $$files ; do \
106 f=$(SYSCALLS_SRCDIR)/$$file ; \ 122 f=$(SYSCALLS_SRCDIR)/$$file ; \
107 if test -f $$f ; then \ 123 if test -f $$f ; then \
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 for file in $$files ; do \ 187 for file in $$files ; do \
172 slashdir=`echo "/$$file" | sed 's,/[^/]*$$,,'` ; \ 188 slashdir=`echo "/$$file" | sed 's,/[^/]*$$,,'` ; \
173 rm -f $(PYTHON_INSTALL_DIR)/$$file ; \ 189 rm -f $(PYTHON_INSTALL_DIR)/$$file ; \
174 while test "x$$file" != "x$$slashdir" ; do \ 190 while test "x$$file" != "x$$slashdir" ; do \
175 rmdir 2>/dev/null "$(PYTHON_INSTALL_DIR)$$slashdir" ; \ 191 rmdir 2>/dev/null "$(PYTHON_INSTALL_DIR)$$slashdir" ; \
176 file="$$slashdir" ; \ 192 file="$$slashdir" ; \
177 slashdir=`echo "$$file" | sed 's,/[^/]*$$,,'` ; \ 193 slashdir=`echo "$$file" | sed 's,/[^/]*$$,,'` ; \
178 done \ 194 done \
179 done 195 done
180 196
197 stamp-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
210 clean-system-gdbinit:
211 rm -rf $(SYSTEM_GDBINIT_DIR)
212 rm -f stamp-system-gdbinit
213
214 .PHONY: install-system-gdbinit
215 install-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
226 uninstall-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
181 # Traditionally "install" depends on "all". But it may be useful 238 # Traditionally "install" depends on "all". But it may be useful
182 # not to; for example, if the user has made some trivial change to a 239 # not to; for example, if the user has made some trivial change to a
183 # source file and doesn't care about rebuilding or just wants to save the 240 # source file and doesn't care about rebuilding or just wants to save the
184 # time it takes for make to check that all is up to date. 241 # time it takes for make to check that all is up to date.
185 # install-only is intended to address that need. 242 # install-only is intended to address that need.
186 .PHONY: install 243 .PHONY: install
187 install: all 244 install: all
188 @$(MAKE) $(FLAGS_TO_PASS) install-only 245 @$(MAKE) $(FLAGS_TO_PASS) install-only
189 246
190 .PHONY: install-only 247 .PHONY: install-only
191 install-only: install-syscalls install-python 248 install-only: install-syscalls install-python install-system-gdbinit
192 249
193 .PHONY: uninstall 250 .PHONY: uninstall
194 uninstall: uninstall-syscalls uninstall-python 251 uninstall: uninstall-syscalls uninstall-python uninstall-system-gdbinit
195 252
196 .PHONY: clean 253 .PHONY: clean
197 clean: clean-syscalls clean-python 254 clean: clean-syscalls clean-python clean-system-gdbinit
198 255
199 .PHONY: maintainer-clean realclean distclean 256 .PHONY: maintainer-clean realclean distclean
200 maintainer-clean realclean distclean: clean 257 maintainer-clean realclean distclean: clean
201 rm -f Makefile 258 rm -f Makefile
202 259
203 .PHONY: check installcheck info dvi pdf html 260 .PHONY: check installcheck info dvi pdf html
204 .PHONY: install-info install-pdf install-html clean-info 261 .PHONY: install-info install-pdf install-html clean-info
205 check installcheck: 262 check installcheck:
206 info dvi pdf html: 263 info dvi pdf html:
207 install-info install-pdf install-html: 264 install-info install-pdf install-html:
208 clean-info: 265 clean-info:
209 266
210 # GNU Make has an annoying habit of putting *all* the Makefile variables 267 # GNU Make has an annoying habit of putting *all* the Makefile variables
211 # into the environment, unless you include this target as a circumvention. 268 # into the environment, unless you include this target as a circumvention.
212 # Rumor is that this will be fixed (and this target can be removed) 269 # Rumor is that this will be fixed (and this target can be removed)
213 # in GNU Make 4.0. 270 # in GNU Make 4.0.
214 .NOEXPORT: 271 .NOEXPORT:
215 272
216 # GNU Make 3.63 has a different problem: it keeps tacking command line 273 # GNU Make 3.63 has a different problem: it keeps tacking command line
217 # overrides onto the definition of $(MAKE). This variable setting 274 # overrides onto the definition of $(MAKE). This variable setting
218 # will remove them. 275 # will remove them.
219 MAKEOVERRIDES= 276 MAKEOVERRIDES=
220 277
221 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 278 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
222 cd $(top_builddir) && $(MAKE) data-directory/Makefile 279 cd $(top_builddir) && $(MAKE) data-directory/Makefile
OLDNEW
« no previous file with comments | « gdb/darwin-nat-info.c ('k') | gdb/dbug-rom.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698