Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
[deliverable/binutils-gdb.git] / gdb / data-directory / Makefile.in
CommitLineData
0b302171 1# Copyright (C) 2010-2012 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 \
7b51bc51
DE
56 gdb/types.py \
57 gdb/printing.py \
fa3a4f15 58 gdb/prompt.py \
7b51bc51 59 gdb/command/__init__.py \
fa3a4f15 60 gdb/command/pretty_printers.py \
06fc020f 61 gdb/command/prompt.py \
a72c3253
DE
62 gdb/command/explore.py \
63 gdb/function/__init__.py \
64 gdb/function/strfns.py
aa2e2d8d 65
f474844c
JZ
66FLAGS_TO_PASS = \
67 "prefix=$(prefix)" \
68 "exec_prefix=$(exec_prefix)" \
69 "infodir=$(infodir)" \
70 "datarootdir=$(datarootdir)" \
71 "docdir=$(docdir)" \
72 "htmldir=$(htmldir)" \
73 "pdfdir=$(pdfdir)" \
74 "libdir=$(libdir)" \
75 "mandir=$(mandir)" \
76 "datadir=$(datadir)" \
77 "includedir=$(includedir)" \
78 "against=$(against)" \
79 "DESTDIR=$(DESTDIR)" \
80 "AR=$(AR)" \
81 "AR_FLAGS=$(AR_FLAGS)" \
82 "CC=$(CC)" \
83 "CFLAGS=$(CFLAGS)" \
84 "CXX=$(CXX)" \
85 "CXXFLAGS=$(CXXFLAGS)" \
86 "DLLTOOL=$(DLLTOOL)" \
87 "LDFLAGS=$(LDFLAGS)" \
88 "RANLIB=$(RANLIB)" \
89 "MAKEINFO=$(MAKEINFO)" \
90 "MAKEHTML=$(MAKEHTML)" \
91 "MAKEHTMLFLAGS=$(MAKEHTMLFLAGS)" \
92 "INSTALL=$(INSTALL)" \
93 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
94 "INSTALL_DATA=$(INSTALL_DATA)" \
95 "RUNTEST=$(RUNTEST)" \
96 "RUNTESTFLAGS=$(RUNTESTFLAGS)"
97
aa2e2d8d
DE
98.PHONY: all
99all: stamp-syscalls stamp-python
100
101# For portability's sake, we need to handle systems that don't have
102# symbolic links.
103stamp-syscalls: Makefile $(SYSCALLS_FILES)
104 rm -rf ./$(SYSCALLS_DIR)
105 mkdir ./$(SYSCALLS_DIR)
106 files='$(SYSCALLS_FILES)' ; \
107 for file in $$files ; do \
108 f=$(SYSCALLS_SRCDIR)/$$file ; \
109 if test -f $$f ; then \
110 $(INSTALL_DATA) $$f ./$(SYSCALLS_DIR) ; \
111 fi ; \
112 done
113 touch $@
114
115.PHONY: clean-syscalls
116clean-syscalls:
117 rm -rf $(SYSCALLS_DIR)
118 rm -f stamp-syscalls
119
120# This target is responsible for properly installing the syscalls'
121# XML files in the system.
122.PHONY: install-syscalls
123install-syscalls:
124 $(INSTALL_DIR) $(SYSCALLS_INSTALL_DIR)
125 files='$(SYSCALLS_FILES)' ; \
126 for file in $$files; do \
127 f=$(SYSCALLS_SRCDIR)/$$file ; \
128 if test -f $$f ; then \
129 $(INSTALL_DATA) $$f $(SYSCALLS_INSTALL_DIR) ; \
130 fi ; \
131 done
132
133.PHONY: uninstall-syscalls
134uninstall-syscalls:
135 files='$(SYSCALLS_FILES)' ; \
136 for file in $$files ; do \
137 slashdir=`echo "/$$file" | sed 's,/[^/]*$$,,'` ; \
138 rm -f $(SYSCALLS_INSTALL_DIR)/$$file ; \
139 while test "x$$file" != "x$$slashdir" ; do \
140 rmdir 2>/dev/null "$(SYSCALLS_INSTALL_DIR)$$slashdir" ; \
141 file="$$slashdir" ; \
142 slashdir=`echo "$$file" | sed 's,/[^/]*$$,,'` ; \
143 done \
144 done
145
146stamp-python: Makefile $(PYTHON_FILES)
147 rm -rf ./$(PYTHON_DIR)
148 files='$(PYTHON_FILES)' ; \
149 for file in $$files ; do \
150 dir=`echo "$$file" | sed 's,/[^/]*$$,,'` ; \
151 $(INSTALL_DIR) ./$(PYTHON_DIR)/$$dir ; \
152 $(INSTALL_DATA) $(PYTHON_SRCDIR)/$$file ./$(PYTHON_DIR)/$$dir ; \
153 done
154 touch $@
155
156.PHONY: clean-python
157clean-python:
158 rm -rf $(PYTHON_DIR)
159 rm -f stamp-python
160
161.PHONY: install-python
162install-python:
163 files='$(PYTHON_FILES)' ; \
164 for file in $$files ; do \
165 dir=`echo "$$file" | sed 's,/[^/]*$$,,'` ; \
166 $(INSTALL_DIR) $(PYTHON_INSTALL_DIR)/$$dir ; \
167 $(INSTALL_DATA) ./$(PYTHON_DIR)/$$file $(PYTHON_INSTALL_DIR)/$$dir ; \
168 done
169
170.PHONY: uninstall-python
171uninstall-python:
172 files='$(PYTHON_FILES)' ; \
173 for file in $$files ; do \
174 slashdir=`echo "/$$file" | sed 's,/[^/]*$$,,'` ; \
175 rm -f $(PYTHON_INSTALL_DIR)/$$file ; \
176 while test "x$$file" != "x$$slashdir" ; do \
177 rmdir 2>/dev/null "$(PYTHON_INSTALL_DIR)$$slashdir" ; \
178 file="$$slashdir" ; \
179 slashdir=`echo "$$file" | sed 's,/[^/]*$$,,'` ; \
180 done \
181 done
182
183# Traditionally "install" depends on "all". But it may be useful
184# not to; for example, if the user has made some trivial change to a
185# source file and doesn't care about rebuilding or just wants to save the
186# time it takes for make to check that all is up to date.
187# install-only is intended to address that need.
188.PHONY: install
189install: all
f474844c 190 @$(MAKE) $(FLAGS_TO_PASS) install-only
aa2e2d8d
DE
191
192.PHONY: install-only
193install-only: install-syscalls install-python
194
195.PHONY: uninstall
196uninstall: uninstall-syscalls uninstall-python
197
198.PHONY: clean
199clean: clean-syscalls clean-python
200
201.PHONY: maintainer-clean realclean distclean
202maintainer-clean realclean distclean: clean
203 rm -f Makefile
204
205.PHONY: check installcheck info dvi pdf html
206.PHONY: install-info install-pdf install-html clean-info
207check installcheck:
208info dvi pdf html:
209install-info install-pdf install-html:
210clean-info:
211
212# GNU Make has an annoying habit of putting *all* the Makefile variables
213# into the environment, unless you include this target as a circumvention.
214# Rumor is that this will be fixed (and this target can be removed)
215# in GNU Make 4.0.
216.NOEXPORT:
217
218# GNU Make 3.63 has a different problem: it keeps tacking command line
219# overrides onto the definition of $(MAKE). This variable setting
220# will remove them.
221MAKEOVERRIDES=
222
543ecec7 223Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
aa2e2d8d 224 cd $(top_builddir) && $(MAKE) data-directory/Makefile
This page took 0.168925 seconds and 4 git commands to generate.