]> git.ipfire.org Git - thirdparty/gcc.git/blame - Makefile.in
* typeck.c (build_modify_expr): Tidy diagnostic message.
[thirdparty/gcc.git] / Makefile.in
CommitLineData
95ddd785
NN
1
2# Makefile.in is generated from Makefile.tpl by 'autogen Makefile.def'.
6599da04
JM
3#
4# Makefile for directory with subdirs to build.
6e2a4843 5# Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
2d309510 6# 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation
6599da04
JM
7#
8# This file is free software; you can redistribute it and/or modify
9# it under the terms of the GNU General Public License as published by
10# the Free Software Foundation; either version 2 of the License, or
11# (at your option) any later version.
05750653 12#
6599da04
JM
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU General Public License for more details.
05750653 17#
6599da04
JM
18# You should have received a copy of the GNU General Public License
19# along with this program; if not, write to the Free Software
539df155 20# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
6599da04
JM
21#
22
df0f0674
NN
23# -------------------------------
24# Standard Autoconf-set variables
25# -------------------------------
4977bab6 26VPATH=@srcdir@
4977bab6
ZW
27
28build_alias=@build_alias@
e89fbdfe 29build=@build@
4977bab6 30host_alias=@host_alias@
e89fbdfe 31host=@host@
4977bab6 32target_alias=@target_alias@
e89fbdfe 33target=@target@
4977bab6 34
df0f0674 35program_transform_name = @program_transform_name@
0dffceed
NN
36
37prefix = @prefix@
38exec_prefix = @exec_prefix@
39
df0f0674
NN
40srcdir = @srcdir@
41
0dffceed
NN
42bindir = @bindir@
43sbindir = @sbindir@
44libexecdir = @libexecdir@
45datadir = @datadir@
46sysconfdir = @sysconfdir@
47sharedstatedir = @sharedstatedir@
48localstatedir = @localstatedir@
49libdir = @libdir@
50includedir = @includedir@
51oldincludedir = @oldincludedir@
52infodir = @infodir@
65d6e994
CD
53datarootdir = @datarootdir@
54docdir = @docdir@
55htmldir = @htmldir@
0dffceed 56mandir = @mandir@
6599da04
JM
57man1dir = $(mandir)/man1
58man2dir = $(mandir)/man2
59man3dir = $(mandir)/man3
60man4dir = $(mandir)/man4
61man5dir = $(mandir)/man5
62man6dir = $(mandir)/man6
63man7dir = $(mandir)/man7
64man8dir = $(mandir)/man8
65man9dir = $(mandir)/man9
1e6347d8 66
775956d0
NN
67INSTALL = @INSTALL@
68INSTALL_PROGRAM = @INSTALL_PROGRAM@
69INSTALL_SCRIPT = @INSTALL_SCRIPT@
70INSTALL_DATA = @INSTALL_DATA@
ad6717df
PB
71LN = @LN@
72LN_S = @LN_S@
6599da04 73
df0f0674
NN
74# -------------------------------------------------
75# Miscellaneous non-standard autoconf-set variables
76# -------------------------------------------------
6599da04 77
df0f0674
NN
78# The gcc driver likes to know the arguments it was configured with.
79TOPLEVEL_CONFIGURE_ARGUMENTS=@TOPLEVEL_CONFIGURE_ARGUMENTS@
6599da04 80
df0f0674
NN
81tooldir = @tooldir@
82build_tooldir = @build_tooldir@
6599da04 83
05750653 84GDB_NLM_DEPS =
6599da04 85
df0f0674
NN
86# This is the name of the environment variable used for the path to
87# the libraries.
88RPATH_ENVVAR = @RPATH_ENVVAR@
6599da04 89
df0f0674
NN
90# Build programs are put under this directory.
91BUILD_SUBDIR = @build_subdir@
92# This is set by the configure script to the arguments to use when configuring
93# directories built for the build system.
25b42232 94BUILD_CONFIGARGS = @build_configargs@ --with-build-subdir="$(BUILD_SUBDIR)"
23f6b2f9
PB
95
96# This is the list of variables to export in the environment when
97# configuring any subdirectory. It must also be exported whenever
98# recursing into a build directory in case that directory's Makefile
99# re-runs configure.
100BASE_EXPORTS = \
101 FLEX="$(FLEX)"; export FLEX; \
102 LEX="$(LEX)"; export LEX; \
103 BISON="$(BISON)"; export BISON; \
104 YACC="$(YACC)"; export YACC; \
105 M4="$(M4)"; export M4; \
106 MAKEINFO="$(MAKEINFO)"; export MAKEINFO;
107
4fc4dd12 108# This is the list of variables to export in the environment when
23f6b2f9 109# configuring subdirectories for the build system.
4fc4dd12 110BUILD_EXPORTS = \
23f6b2f9 111 $(BASE_EXPORTS) \
4fc4dd12
DJ
112 AR="$(AR_FOR_BUILD)"; export AR; \
113 AS="$(AS_FOR_BUILD)"; export AS; \
114 CC="$(CC_FOR_BUILD)"; export CC; \
115 CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \
116 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
117 CXX="$(CXX_FOR_BUILD)"; export CXX; \
118 CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \
119 GCJ="$(GCJ_FOR_BUILD)"; export GCJ; \
120 GFORTRAN="$(GFORTRAN_FOR_BUILD)"; export GFORTRAN; \
121 DLLTOOL="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL; \
122 LD="$(LD_FOR_BUILD)"; export LD; \
123 LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \
124 NM="$(NM_FOR_BUILD)"; export NM; \
125 RANLIB="$(RANLIB_FOR_BUILD)"; export RANLIB; \
126 WINDRES="$(WINDRES_FOR_BUILD)"; export WINDRES;
df0f0674
NN
127
128# This is the list of directories to built for the host system.
129SUBDIRS = @configdirs@
130# This is set by the configure script to the arguments to use when configuring
131# directories built for the host system.
132HOST_CONFIGARGS = @host_configargs@
215c351a
PB
133# Host programs are put under this directory, which is . except if building
134# with srcdir=..
135HOST_SUBDIR = @host_subdir@
4fc4dd12 136# This is the list of variables to export in the environment when
2abefe3d
PB
137# configuring subdirectories for the host system. We need to pass
138# some to the GCC configure because of its hybrid host/target nature.
4fc4dd12 139HOST_EXPORTS = \
23f6b2f9 140 $(BASE_EXPORTS) \
4fc4dd12
DJ
141 CC="$(CC)"; export CC; \
142 CFLAGS="$(CFLAGS)"; export CFLAGS; \
143 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
144 CXX="$(CXX)"; export CXX; \
145 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
146 AR="$(AR)"; export AR; \
147 AS="$(AS)"; export AS; \
148 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
149 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
150 LD="$(LD)"; export LD; \
151 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
152 NM="$(NM)"; export NM; \
153 RANLIB="$(RANLIB)"; export RANLIB; \
154 WINDRES="$(WINDRES)"; export WINDRES; \
155 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1c020272 156 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2abefe3d
PB
157 AR_FOR_TARGET="$(AR_FOR_TARGET)"; export AR_FOR_TARGET; \
158 AS_FOR_TARGET="$(AS_FOR_TARGET)"; export AS_FOR_TARGET; \
159 GCC_FOR_TARGET="$(GCC_FOR_TARGET)"; export GCC_FOR_TARGET; \
160 LD_FOR_TARGET="$(LD_FOR_TARGET)"; export LD_FOR_TARGET; \
161 NM_FOR_TARGET="$(NM_FOR_TARGET)"; export NM_FOR_TARGET; \
162 OBJDUMP_FOR_TARGET="$(OBJDUMP_FOR_TARGET)"; export OBJDUMP_FOR_TARGET; \
163 RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)"; export RANLIB_FOR_TARGET; \
4fc4dd12
DJ
164 TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
165 GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \
4c4a5bbc 166 GMPINC="$(HOST_GMPINC)"; export GMPINC; \
1061f99e
PB
167@if gcc-bootstrap
168 $(RPATH_ENVVAR)=`echo "$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \
169@endif gcc-bootstrap
0bff65e7 170 $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR);
4fc4dd12
DJ
171
172# Similar, for later GCC stages.
ce406537 173POSTSTAGE1_HOST_EXPORTS = \
a52a0a7f 174 $(HOST_EXPORTS) \
215c351a
PB
175 CC="$(STAGE_CC_WRAPPER) $$r/$(HOST_SUBDIR)/prev-gcc/xgcc$(exeext) \
176 -B$$r/$(HOST_SUBDIR)/prev-gcc/ -B$(build_tooldir)/bin/"; export CC; \
177 CC_FOR_BUILD="$(STAGE_CC_WRAPPER) \
178 $$r/$(HOST_SUBDIR)/prev-gcc/xgcc$(exeext) \
179 -B$$r/$(HOST_SUBDIR)/prev-gcc/ \
180 -B$(build_tooldir)/bin/"; export CC_FOR_BUILD;
df0f0674 181
df0f0674
NN
182# Target libraries are put under this directory:
183TARGET_SUBDIR = @target_subdir@
184# This is set by the configure script to the arguments to use when configuring
185# directories built for the target.
25b42232 186TARGET_CONFIGARGS = @target_configargs@ --with-target-subdir="$(TARGET_SUBDIR)"
4fc4dd12 187# This is the list of variables to export in the environment when
23f6b2f9 188# configuring subdirectories for the host system.
4fc4dd12 189BASE_TARGET_EXPORTS = \
23f6b2f9 190 $(BASE_EXPORTS) \
4fc4dd12 191 AR="$(AR_FOR_TARGET)"; export AR; \
2abefe3d 192 AS="$(COMPILER_AS_FOR_TARGET)"; export AS; \
4fc4dd12
DJ
193 CC="$(CC_FOR_TARGET)"; export CC; \
194 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
195 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
e7daab31 196 CPPFLAGS="$(CPPFLAGS_FOR_TARGET)"; export CPPFLAGS; \
4fc4dd12
DJ
197 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
198 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
199 GFORTRAN="$(GFORTRAN_FOR_TARGET)"; export GFORTRAN; \
200 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
2abefe3d 201 LD="$(COMPILER_LD_FOR_TARGET)"; export LD; \
4fc4dd12 202 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
040b1c5a 203 LIPO="$(LIPO_FOR_TARGET)"; export LIPO; \
2abefe3d 204 NM="$(COMPILER_NM_FOR_TARGET)"; export NM; \
d739199a 205 OBJDUMP="$(OBJDUMP_FOR_TARGET)"; export OBJDUMP; \
4fc4dd12 206 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
040b1c5a 207 STRIP="$(STRIP_FOR_TARGET)"; export STRIP; \
4c4a5bbc 208 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
0bff65e7 209 $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR);
4fc4dd12
DJ
210
211RAW_CXX_TARGET_EXPORTS = \
212 $(BASE_TARGET_EXPORTS) \
213 CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \
214 CXX="$(RAW_CXX_FOR_TARGET)"; export CXX;
215
216NORMAL_TARGET_EXPORTS = \
217 $(BASE_TARGET_EXPORTS) \
218 CXX="$(CXX_FOR_TARGET)"; export CXX;
df0f0674 219
6de9cd9a
DN
220# Where to find GMP
221HOST_GMPLIBS = @gmplibs@
222HOST_GMPINC = @gmpinc@
223
df0f0674
NN
224# ----------------------------------------------
225# Programs producing files for the BUILD machine
226# ----------------------------------------------
227
228SHELL = @config_shell@
229
230# pwd command to use. Allow user to override default by setting PWDCMD in
231# the environment to account for automounters. The make variable must not
232# be called PWDCMD, otherwise the value set here is passed to make
233# subprocesses and overrides the setting from the user's environment.
8c90b13a
L
234# Don't use PWD since it is a common shell environment variable and we
235# don't want to corrupt it.
236PWD_COMMAND = $${PWDCMD-pwd}
df0f0674
NN
237
238# compilers to use to create programs which must be run in the build
239# environment.
240CC_FOR_BUILD = @CC_FOR_BUILD@
6691a79e 241CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
df0f0674
NN
242
243CXX_FOR_BUILD = $(CXX)
244
245# Special variables passed down in EXTRA_GCC_FLAGS. They are defined
246# here so that they can be overridden by Makefile fragments.
df0f0674
NN
247BUILD_PREFIX = @BUILD_PREFIX@
248BUILD_PREFIX_1 = @BUILD_PREFIX_1@
6599da04 249
45f366ab
PB
250# Flags to pass to stage2 and later makes. They are defined
251# here so that they can be overridden by Makefile fragments.
252BOOT_CFLAGS= -g -O2
d19bca38 253BOOT_LDFLAGS=
45f366ab 254
2abefe3d
PB
255BISON = @BISON@
256YACC = @YACC@
257FLEX = @FLEX@
258LEX = @LEX@
259M4 = @M4@
260MAKEINFO = @MAKEINFO@
261EXPECT = @EXPECT@
262RUNTEST = @RUNTEST@
6599da04
JM
263
264# This just becomes part of the MAKEINFO definition passed down to
265# sub-makes. It lets flags be given on the command line while still
266# using the makeinfo from the object tree.
2f50999f
GP
267# (Default to avoid splitting info files by setting the threshold high.)
268MAKEINFOFLAGS = --split-size=5000000
6599da04 269
df0f0674
NN
270# ---------------------------------------------
271# Programs producing files for the HOST machine
272# ---------------------------------------------
6599da04 273
df0f0674 274AS = @AS@
df0f0674
NN
275AR = @AR@
276AR_FLAGS = rc
df0f0674 277CC = @CC@
df0f0674 278CXX = @CXX@
df0f0674 279DLLTOOL = @DLLTOOL@
df0f0674 280LD = @LD@
2abefe3d
PB
281LIPO = @LIPO@
282NM = @NM@
2d309510 283OBJDUMP = @OBJDUMP@
df0f0674 284RANLIB = @RANLIB@
2abefe3d 285STRIP = @STRIP@
df0f0674 286WINDRES = @WINDRES@
6599da04 287
2abefe3d
PB
288CFLAGS = @CFLAGS@
289LDFLAGS =
290LIBCFLAGS = $(CFLAGS)
291CXXFLAGS = @CXXFLAGS@
292LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
05750653 293PICFLAG =
df0f0674
NN
294
295# -----------------------------------------------
296# Programs producing files for the TARGET machine
297# -----------------------------------------------
ce8e06b1 298
ec0461f6 299FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@
6599da04 300
df0f0674 301AR_FOR_TARGET=@AR_FOR_TARGET@
4977bab6 302AS_FOR_TARGET=@AS_FOR_TARGET@
4de997d1 303CC_FOR_TARGET=$(STAGE_CC_WRAPPER) @CC_FOR_TARGET@ $(FLAGS_FOR_TARGET)
4de997d1 304
df0f0674
NN
305# If GCC_FOR_TARGET is not overriden on the command line, then this
306# variable is passed down to the gcc Makefile, where it is used to
307# build libgcc2.a. We define it here so that it can itself be
308# overridden on the command line.
2abefe3d 309GCC_FOR_TARGET=$(STAGE_CC_WRAPPER) @GCC_FOR_TARGET@ $(FLAGS_FOR_TARGET)
4de997d1 310CXX_FOR_TARGET=$(STAGE_CC_WRAPPER) @CXX_FOR_TARGET@ $(FLAGS_FOR_TARGET)
4de997d1 311RAW_CXX_FOR_TARGET=$(STAGE_CC_WRAPPER) @RAW_CXX_FOR_TARGET@ $(FLAGS_FOR_TARGET)
4de997d1 312GCJ_FOR_TARGET=$(STAGE_CC_WRAPPER) @GCJ_FOR_TARGET@ $(FLAGS_FOR_TARGET)
4de997d1 313GFORTRAN_FOR_TARGET=$(STAGE_CC_WRAPPER) @GFORTRAN_FOR_TARGET@ $(FLAGS_FOR_TARGET)
4977bab6 314DLLTOOL_FOR_TARGET=@DLLTOOL_FOR_TARGET@
df0f0674 315LD_FOR_TARGET=@LD_FOR_TARGET@
df0f0674 316
040b1c5a 317LIPO_FOR_TARGET=@LIPO_FOR_TARGET@
df0f0674 318NM_FOR_TARGET=@NM_FOR_TARGET@
d739199a 319OBJDUMP_FOR_TARGET=@OBJDUMP_FOR_TARGET@
4977bab6 320RANLIB_FOR_TARGET=@RANLIB_FOR_TARGET@
040b1c5a 321STRIP_FOR_TARGET=@STRIP_FOR_TARGET@
df0f0674 322WINDRES_FOR_TARGET=@WINDRES_FOR_TARGET@
6599da04 323
2abefe3d
PB
324COMPILER_AS_FOR_TARGET=@COMPILER_AS_FOR_TARGET@
325COMPILER_LD_FOR_TARGET=@COMPILER_LD_FOR_TARGET@
326COMPILER_NM_FOR_TARGET=@COMPILER_NM_FOR_TARGET@
327
328# During gcc bootstrap, if we use some random cc for stage1 then
329# CFLAGS will be just -g. We want to ensure that TARGET libraries
330# (which we know are built with gcc) are built with optimizations so
331# prepend -O2 when setting CFLAGS_FOR_TARGET.
332CFLAGS_FOR_TARGET = -O2 $(CFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET)
333SYSROOT_CFLAGS_FOR_TARGET = @SYSROOT_CFLAGS_FOR_TARGET@
334CXXFLAGS_FOR_TARGET = $(CXXFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET)
335LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
336LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
337LDFLAGS_FOR_TARGET =
05750653 338PICFLAG_FOR_TARGET =
df0f0674
NN
339
340# ------------------------------------
341# Miscellaneous targets and flag lists
342# ------------------------------------
343
5d4a5ee6
JL
344# The first rule in the file had better be this one. Don't put any above it.
345# This lives here to allow makefile fragments to contain dependencies.
1061f99e 346all:
5d4a5ee6 347
6599da04 348#### host and target specific makefile fragments come in here.
671aa708
NN
349@target_makefile_frag@
350@alphaieee_frag@
351@ospace_frag@
352@host_makefile_frag@
6599da04
JM
353###
354
0bff65e7
PB
355# This is the list of directories that may be needed in RPATH_ENVVAR
356# so that prorgams built for the target machine work.
c31202cd 357TARGET_LIB_PATH = $(TARGET_LIB_PATH_libstdc++-v3)$(TARGET_LIB_PATH_libmudflap)$(TARGET_LIB_PATH_libssp)$(TARGET_LIB_PATH_libgomp)$(HOST_LIB_PATH_gcc)
0bff65e7
PB
358
359@if target-libstdc++-v3
360TARGET_LIB_PATH_libstdc++-v3 = $$r/$(TARGET_SUBDIR)/libstdc++-v3/.libs:
361@endif target-libstdc++-v3
362
363@if target-libmudflap
364TARGET_LIB_PATH_libmudflap = $$r/$(TARGET_SUBDIR)/libmudflap/.libs:
365@endif target-libmudflap
366
77008252
JJ
367@if target-libssp
368TARGET_LIB_PATH_libssp = $$r/$(TARGET_SUBDIR)/libssp/.libs:
369@endif target-libssp
370
953ff289
DN
371@if target-libgomp
372TARGET_LIB_PATH_libgomp = $$r/$(TARGET_SUBDIR)/libgomp/.libs:
373@endif target-libgomp
374
0bff65e7
PB
375
376
377# This is the list of directories that may be needed in RPATH_ENVVAR
378# so that programs built for the host machine work.
379HOST_LIB_PATH = $(HOST_LIB_PATH_bfd)$(HOST_LIB_PATH_opcodes)
380
381# Define HOST_LIB_PATH_gcc here, for the sake of TARGET_LIB_PATH, ouch
382@if gcc
383HOST_LIB_PATH_gcc = $$r/$(HOST_SUBDIR)/gcc:$$r/$(HOST_SUBDIR)/prev-gcc:
384@endif gcc
385
386
387@if bfd
388HOST_LIB_PATH_bfd = \
e9a54b07 389 $$r/$(HOST_SUBDIR)/bfd/.libs:$$r/$(HOST_SUBDIR)/prev-bfd/.libs:
0bff65e7
PB
390@endif bfd
391
392@if opcodes
393HOST_LIB_PATH_opcodes = \
e9a54b07 394 $$r/$(HOST_SUBDIR)/opcodes/.libs:$$r/$(HOST_SUBDIR)/prev-opcodes/.libs:
0bff65e7
PB
395@endif opcodes
396
397
6599da04 398# Flags to pass down to all sub-makes.
6599da04 399BASE_FLAGS_TO_PASS = \
3fbe8e4a 400 "DESTDIR=$(DESTDIR)" \
5d4a5ee6 401 "RPATH_ENVVAR=$(RPATH_ENVVAR)" \
81241b5e 402 "TARGET_SUBDIR=$(TARGET_SUBDIR)" \
632933d5
PB
403 "bindir=$(bindir)" \
404 "datadir=$(datadir)" \
405 "exec_prefix=$(exec_prefix)" \
406 "includedir=$(includedir)" \
65d6e994
CD
407 "datarootdir=$(datarootdir)" \
408 "docdir=$(docdir)" \
632933d5 409 "infodir=$(infodir)" \
65d6e994 410 "htmldir=$(htmldir)" \
632933d5
PB
411 "libdir=$(libdir)" \
412 "libexecdir=$(libexecdir)" \
5bea4a03 413 "lispdir=$(lispdir)" \
632933d5
PB
414 "localstatedir=$(localstatedir)" \
415 "mandir=$(mandir)" \
5d4a5ee6 416 "oldincludedir=$(oldincludedir)" \
632933d5
PB
417 "prefix=$(prefix)" \
418 "sbindir=$(sbindir)" \
419 "sharedstatedir=$(sharedstatedir)" \
420 "sysconfdir=$(sysconfdir)" \
d0a8352c 421 "tooldir=$(tooldir)" \
5cb95c7a 422 "build_tooldir=$(build_tooldir)" \
11405c93
NN
423 "target_alias=$(target_alias)" \
424 "BISON=$(BISON)" \
425 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
452190fb 426 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
11405c93
NN
427 "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
428 "EXPECT=$(EXPECT)" \
23f6b2f9 429 "FLEX=$(FLEX)" \
11405c93
NN
430 "INSTALL=$(INSTALL)" \
431 "INSTALL_DATA=$(INSTALL_DATA)" \
432 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
433 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
434 "LEX=$(LEX)" \
435 "M4=$(M4)" \
436 "MAKE=$(MAKE)" \
437 "RUNTEST=$(RUNTEST)" \
438 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
439 "SHELL=$(SHELL)" \
440 "YACC=$(YACC)" \
cc11cc9b 441 "`echo 'ADAFLAGS=$(ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
11405c93 442 "AR_FLAGS=$(AR_FLAGS)" \
cc11cc9b 443 "`echo 'BOOT_ADAFLAGS=$(BOOT_ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
d19bca38
PB
444 "BOOT_CFLAGS=$(BOOT_CFLAGS)" \
445 "BOOT_LDFLAGS=$(BOOT_LDFLAGS)" \
11405c93
NN
446 "CFLAGS=$(CFLAGS)" \
447 "CXXFLAGS=$(CXXFLAGS)" \
448 "LDFLAGS=$(LDFLAGS)" \
449 "LIBCFLAGS=$(LIBCFLAGS)" \
450 "LIBCXXFLAGS=$(LIBCXXFLAGS)" \
2d309510
PB
451 "STAGE1_CFLAGS=$(STAGE1_CFLAGS)" \
452 "STAGE1_LANGUAGES=$(STAGE1_LANGUAGES)" \
11405c93
NN
453 "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
454 "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
455 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
456 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
e7daab31 457 "CPPFLAGS_FOR_TARGET=$(CPPFLAGS_FOR_TARGET)" \
11405c93
NN
458 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
459 "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
460 "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
461 "GCJ_FOR_TARGET=$(GCJ_FOR_TARGET)" \
6de9cd9a 462 "GFORTRAN_FOR_TARGET=$(GFORTRAN_FOR_TARGET)" \
11405c93 463 "LD_FOR_TARGET=$(LD_FOR_TARGET)" \
040b1c5a 464 "LIPO_FOR_TARGET=$(LIPO_FOR_TARGET)" \
e3791243 465 "LDFLAGS_FOR_TARGET=$(LDFLAGS_FOR_TARGET)" \
11405c93
NN
466 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
467 "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \
468 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
d739199a 469 "OBJDUMP_FOR_TARGET=$(OBJDUMP_FOR_TARGET)" \
11405c93 470 "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
040b1c5a 471 "STRIP_FOR_TARGET=$(STRIP_FOR_TARGET)" \
11405c93 472 "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \
cc11cc9b 473 "`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
2d309510 474 "LEAN=$(LEAN)" \
e75f9147 475 "CONFIG_SHELL=$(SHELL)" \
05750653 476 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)"
6599da04 477
4de997d1
PB
478# We leave this in just in case, but it is not needed anymore.
479RECURSE_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS)
ad6717df 480
6599da04
JM
481# Flags to pass down to most sub-makes, in which we're building with
482# the host environment.
6599da04
JM
483EXTRA_HOST_FLAGS = \
484 'AR=$(AR)' \
485 'AS=$(AS)' \
486 'CC=$(CC)' \
487 'CXX=$(CXX)' \
488 'DLLTOOL=$(DLLTOOL)' \
489 'LD=$(LD)' \
2abefe3d 490 'LIPO=$(LIPO)' \
6599da04 491 'NM=$(NM)' \
2d309510 492 'OBJDUMP=$(OBJDUMP)' \
c858bf1e 493 'RANLIB=$(RANLIB)' \
2abefe3d 494 'STRIP=$(STRIP)' \
6599da04
JM
495 'WINDRES=$(WINDRES)'
496
497FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
498
499# Flags that are concerned with the location of the X11 include files
500# and library files
501#
502# NOTE: until the top-level is getting the values via autoconf, it only
503# causes problems to have this top-level Makefile overriding the autoconf-set
504# values in child directories. Only variables that don't conflict with
505# autoconf'ed ones should be passed by X11_FLAGS_TO_PASS for now.
506#
507X11_FLAGS_TO_PASS = \
508 'X11_EXTRA_CFLAGS=$(X11_EXTRA_CFLAGS)' \
509 'X11_EXTRA_LIBS=$(X11_EXTRA_LIBS)'
510
511# Flags to pass down to makes which are built with the target environment.
f41d6665
DJ
512# The double $ decreases the length of the command line; those variables
513# are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them. The
514# COMPILER_ prefixed variables are not passed down so we expand them here.
6599da04
JM
515EXTRA_TARGET_FLAGS = \
516 'AR=$$(AR_FOR_TARGET)' \
f41d6665 517 'AS=$(COMPILER_AS_FOR_TARGET)' \
6599da04
JM
518 'CC=$$(CC_FOR_TARGET)' \
519 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
520 'CXX=$$(CXX_FOR_TARGET)' \
521 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
522 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
f41d6665 523 'LD=$(COMPILER_LD_FOR_TARGET)' \
e3791243 524 'LDFLAGS=$$(LDFLAGS_FOR_TARGET)' \
6599da04
JM
525 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
526 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
f41d6665 527 'NM=$(COMPILER_NM_FOR_TARGET)' \
d739199a 528 'OBJDUMP=$$(OBJDUMP_FOR_TARGET)' \
0c055e34 529 'RANLIB=$$(RANLIB_FOR_TARGET)' \
6599da04
JM
530 'WINDRES=$$(WINDRES_FOR_TARGET)'
531
532TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
533
534# Flags to pass down to gcc. gcc builds a library, libgcc.a, so it
535# unfortunately needs the native compiler and the target ar and
536# ranlib.
537# If any variables are added here, they must be added to do-*, below.
1358ccea 538# The BUILD_* variables are a special case, which are used for the gcc
6599da04
JM
539# cross-building scheme.
540EXTRA_GCC_FLAGS = \
6599da04 541 "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
d4cd9d81
NN
542 "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
543 "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
544 "`echo 'LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
545 "`echo 'LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
cc11cc9b 546 "`echo 'LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"
6599da04 547
d29b8ad8 548GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS)
6599da04 549
8b87bb96 550.PHONY: configure-host
d32ab992 551configure-host: \
8b87bb96
NN
552 maybe-configure-ash \
553 maybe-configure-autoconf \
554 maybe-configure-automake \
555 maybe-configure-bash \
556 maybe-configure-bfd \
557 maybe-configure-opcodes \
558 maybe-configure-binutils \
559 maybe-configure-bison \
560 maybe-configure-byacc \
561 maybe-configure-bzip2 \
562 maybe-configure-dejagnu \
563 maybe-configure-diff \
564 maybe-configure-dosutils \
565 maybe-configure-etc \
566 maybe-configure-fastjar \
567 maybe-configure-fileutils \
568 maybe-configure-findutils \
569 maybe-configure-find \
53c7ffe7 570 maybe-configure-fixincludes \
8b87bb96
NN
571 maybe-configure-flex \
572 maybe-configure-gas \
d32ab992 573 maybe-configure-gcc \
8b87bb96
NN
574 maybe-configure-gawk \
575 maybe-configure-gettext \
576 maybe-configure-gnuserv \
577 maybe-configure-gprof \
578 maybe-configure-gzip \
579 maybe-configure-hello \
580 maybe-configure-indent \
581 maybe-configure-intl \
582 maybe-configure-tcl \
583 maybe-configure-itcl \
584 maybe-configure-ld \
4f4e53dd 585 maybe-configure-libcpp \
a4b6c45a 586 maybe-configure-libdecnumber \
8b87bb96
NN
587 maybe-configure-libgui \
588 maybe-configure-libiberty \
589 maybe-configure-libtool \
590 maybe-configure-m4 \
591 maybe-configure-make \
592 maybe-configure-mmalloc \
593 maybe-configure-patch \
594 maybe-configure-perl \
595 maybe-configure-prms \
596 maybe-configure-rcs \
597 maybe-configure-readline \
598 maybe-configure-release \
599 maybe-configure-recode \
600 maybe-configure-sed \
601 maybe-configure-send-pr \
602 maybe-configure-shellutils \
603 maybe-configure-sid \
604 maybe-configure-sim \
605 maybe-configure-tar \
606 maybe-configure-texinfo \
607 maybe-configure-textutils \
608 maybe-configure-time \
609 maybe-configure-uudecode \
610 maybe-configure-wdiff \
611 maybe-configure-zip \
612 maybe-configure-zlib \
613 maybe-configure-gdb \
614 maybe-configure-expect \
615 maybe-configure-guile \
616 maybe-configure-tk \
8b87bb96 617 maybe-configure-libtermcap \
5395b47b
NN
618 maybe-configure-utils \
619 maybe-configure-gnattools
8b87bb96
NN
620.PHONY: configure-target
621configure-target: \
622 maybe-configure-target-libstdc++-v3 \
6de9cd9a 623 maybe-configure-target-libmudflap \
77008252 624 maybe-configure-target-libssp \
8b87bb96 625 maybe-configure-target-newlib \
6de9cd9a 626 maybe-configure-target-libgfortran \
8b87bb96
NN
627 maybe-configure-target-libobjc \
628 maybe-configure-target-libtermcap \
629 maybe-configure-target-winsup \
630 maybe-configure-target-libgloss \
631 maybe-configure-target-libiberty \
632 maybe-configure-target-gperf \
633 maybe-configure-target-examples \
634 maybe-configure-target-libffi \
635 maybe-configure-target-libjava \
636 maybe-configure-target-zlib \
637 maybe-configure-target-boehm-gc \
638 maybe-configure-target-qthreads \
d9cdb878 639 maybe-configure-target-rda \
953ff289
DN
640 maybe-configure-target-libada \
641 maybe-configure-target-libgomp
6599da04 642
f516a7da
PB
643# The target built for a native non-bootstrap build.
644.PHONY: all
1061f99e
PB
645all:
646@if gcc-bootstrap
2abefe3d 647 [ -f stage_final ] || echo stage3 > stage_final
1061f99e
PB
648 @r=`${PWD_COMMAND}`; export r; \
649 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 650 $(MAKE) $(RECURSE_FLAGS_TO_PASS) `cat stage_final`-bubble
1061f99e 651@endif gcc-bootstrap
f41d6665 652 @: $(MAKE); $(unstage)
1061f99e
PB
653 @r=`${PWD_COMMAND}`; export r; \
654 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
655 if [ -f stage_last ]; then \
2abefe3d 656 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target; \
1061f99e 657 else \
2abefe3d 658 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-host all-target; \
1061f99e 659 fi
23f6b2f9
PB
660
661.PHONY: all-build
cc11cc9b
PB
662
663all-build: maybe-all-build-libiberty
664all-build: maybe-all-build-bison
665all-build: maybe-all-build-byacc
666all-build: maybe-all-build-flex
667all-build: maybe-all-build-m4
668all-build: maybe-all-build-texinfo
669all-build: maybe-all-build-fixincludes
670
8b87bb96 671.PHONY: all-host
cc11cc9b
PB
672
673all-host: maybe-all-ash
674all-host: maybe-all-autoconf
675all-host: maybe-all-automake
676all-host: maybe-all-bash
677@if bfd-no-bootstrap
678all-host: maybe-all-bfd
679@endif bfd-no-bootstrap
680@if opcodes-no-bootstrap
681all-host: maybe-all-opcodes
682@endif opcodes-no-bootstrap
683@if binutils-no-bootstrap
684all-host: maybe-all-binutils
685@endif binutils-no-bootstrap
686all-host: maybe-all-bison
687all-host: maybe-all-byacc
688all-host: maybe-all-bzip2
689all-host: maybe-all-dejagnu
690all-host: maybe-all-diff
691all-host: maybe-all-dosutils
692all-host: maybe-all-etc
693all-host: maybe-all-fastjar
694all-host: maybe-all-fileutils
695all-host: maybe-all-findutils
696all-host: maybe-all-find
697all-host: maybe-all-fixincludes
698all-host: maybe-all-flex
699@if gas-no-bootstrap
700all-host: maybe-all-gas
701@endif gas-no-bootstrap
702@if gcc-no-bootstrap
703all-host: maybe-all-gcc
704@endif gcc-no-bootstrap
705all-host: maybe-all-gawk
706all-host: maybe-all-gettext
707all-host: maybe-all-gnuserv
708all-host: maybe-all-gprof
709all-host: maybe-all-gzip
710all-host: maybe-all-hello
711all-host: maybe-all-indent
712@if intl-no-bootstrap
713all-host: maybe-all-intl
714@endif intl-no-bootstrap
715all-host: maybe-all-tcl
716all-host: maybe-all-itcl
717@if ld-no-bootstrap
718all-host: maybe-all-ld
719@endif ld-no-bootstrap
720@if libcpp-no-bootstrap
721all-host: maybe-all-libcpp
722@endif libcpp-no-bootstrap
723@if libdecnumber-no-bootstrap
724all-host: maybe-all-libdecnumber
725@endif libdecnumber-no-bootstrap
726all-host: maybe-all-libgui
727@if libiberty-no-bootstrap
728all-host: maybe-all-libiberty
729@endif libiberty-no-bootstrap
730all-host: maybe-all-libtool
731all-host: maybe-all-m4
732all-host: maybe-all-make
733all-host: maybe-all-mmalloc
734all-host: maybe-all-patch
735all-host: maybe-all-perl
736all-host: maybe-all-prms
737all-host: maybe-all-rcs
738all-host: maybe-all-readline
739all-host: maybe-all-release
740all-host: maybe-all-recode
741all-host: maybe-all-sed
742all-host: maybe-all-send-pr
743all-host: maybe-all-shellutils
744all-host: maybe-all-sid
745all-host: maybe-all-sim
746all-host: maybe-all-tar
747all-host: maybe-all-texinfo
748all-host: maybe-all-textutils
749all-host: maybe-all-time
750all-host: maybe-all-uudecode
751all-host: maybe-all-wdiff
752all-host: maybe-all-zip
753@if zlib-no-bootstrap
754all-host: maybe-all-zlib
755@endif zlib-no-bootstrap
756all-host: maybe-all-gdb
757all-host: maybe-all-expect
758all-host: maybe-all-guile
759all-host: maybe-all-tk
760all-host: maybe-all-libtermcap
761all-host: maybe-all-utils
762all-host: maybe-all-gnattools
763
8b87bb96 764.PHONY: all-target
cc11cc9b
PB
765
766all-target: maybe-all-target-libstdc++-v3
767all-target: maybe-all-target-libmudflap
768all-target: maybe-all-target-libssp
cc11cc9b
PB
769all-target: maybe-all-target-newlib
770all-target: maybe-all-target-libgfortran
771all-target: maybe-all-target-libobjc
772all-target: maybe-all-target-libtermcap
773all-target: maybe-all-target-winsup
774all-target: maybe-all-target-libgloss
775all-target: maybe-all-target-libiberty
776all-target: maybe-all-target-gperf
777all-target: maybe-all-target-examples
778all-target: maybe-all-target-libffi
779all-target: maybe-all-target-libjava
780all-target: maybe-all-target-zlib
781all-target: maybe-all-target-boehm-gc
782all-target: maybe-all-target-qthreads
783all-target: maybe-all-target-rda
784all-target: maybe-all-target-libada
785all-target: maybe-all-target-libgomp
6599da04
JM
786
787# Do a target for all the subdirectories. A ``make do-X'' will do a
788# ``make X'' in all subdirectories (because, in general, there is a
789# dependency (below) of X upon do-X, a ``make X'' will also do this,
790# but it may do additional work as well).
4977bab6 791
1358ccea 792.PHONY: do-info
1061f99e 793do-info:
f41d6665 794 @: $(MAKE); $(unstage)
e7c84bf8
PB
795 @r=`${PWD_COMMAND}`; export r; \
796 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
797 $(MAKE) $(RECURSE_FLAGS_TO_PASS) info-host \
1061f99e 798 info-target
1061f99e 799
6599da04 800
1358ccea 801.PHONY: info-host
cc11cc9b
PB
802
803info-host: maybe-info-ash
804info-host: maybe-info-autoconf
805info-host: maybe-info-automake
806info-host: maybe-info-bash
807info-host: maybe-info-bfd
808info-host: maybe-info-opcodes
809info-host: maybe-info-binutils
810info-host: maybe-info-bison
811info-host: maybe-info-byacc
812info-host: maybe-info-bzip2
813info-host: maybe-info-dejagnu
814info-host: maybe-info-diff
815info-host: maybe-info-dosutils
816info-host: maybe-info-etc
817info-host: maybe-info-fastjar
818info-host: maybe-info-fileutils
819info-host: maybe-info-findutils
820info-host: maybe-info-find
821info-host: maybe-info-fixincludes
822info-host: maybe-info-flex
823info-host: maybe-info-gas
824info-host: maybe-info-gcc
825info-host: maybe-info-gawk
826info-host: maybe-info-gettext
827info-host: maybe-info-gnuserv
828info-host: maybe-info-gprof
829info-host: maybe-info-gzip
830info-host: maybe-info-hello
831info-host: maybe-info-indent
832info-host: maybe-info-intl
833info-host: maybe-info-tcl
834info-host: maybe-info-itcl
835info-host: maybe-info-ld
836info-host: maybe-info-libcpp
837info-host: maybe-info-libdecnumber
838info-host: maybe-info-libgui
839info-host: maybe-info-libiberty
840info-host: maybe-info-libtool
841info-host: maybe-info-m4
842info-host: maybe-info-make
843info-host: maybe-info-mmalloc
844info-host: maybe-info-patch
845info-host: maybe-info-perl
846info-host: maybe-info-prms
847info-host: maybe-info-rcs
848info-host: maybe-info-readline
849info-host: maybe-info-release
850info-host: maybe-info-recode
851info-host: maybe-info-sed
852info-host: maybe-info-send-pr
853info-host: maybe-info-shellutils
854info-host: maybe-info-sid
855info-host: maybe-info-sim
856info-host: maybe-info-tar
857info-host: maybe-info-texinfo
858info-host: maybe-info-textutils
859info-host: maybe-info-time
860info-host: maybe-info-uudecode
861info-host: maybe-info-wdiff
862info-host: maybe-info-zip
863info-host: maybe-info-zlib
864info-host: maybe-info-gdb
865info-host: maybe-info-expect
866info-host: maybe-info-guile
867info-host: maybe-info-tk
868info-host: maybe-info-libtermcap
869info-host: maybe-info-utils
870info-host: maybe-info-gnattools
6599da04 871
1358ccea 872.PHONY: info-target
cc11cc9b
PB
873
874info-target: maybe-info-target-libstdc++-v3
875info-target: maybe-info-target-libmudflap
876info-target: maybe-info-target-libssp
cc11cc9b
PB
877info-target: maybe-info-target-newlib
878info-target: maybe-info-target-libgfortran
879info-target: maybe-info-target-libobjc
880info-target: maybe-info-target-libtermcap
881info-target: maybe-info-target-winsup
882info-target: maybe-info-target-libgloss
883info-target: maybe-info-target-libiberty
884info-target: maybe-info-target-gperf
885info-target: maybe-info-target-examples
886info-target: maybe-info-target-libffi
887info-target: maybe-info-target-libjava
888info-target: maybe-info-target-zlib
889info-target: maybe-info-target-boehm-gc
890info-target: maybe-info-target-qthreads
891info-target: maybe-info-target-rda
892info-target: maybe-info-target-libada
893info-target: maybe-info-target-libgomp
6599da04 894
295f4e42 895.PHONY: do-dvi
1061f99e 896do-dvi:
f41d6665 897 @: $(MAKE); $(unstage)
e7c84bf8
PB
898 @r=`${PWD_COMMAND}`; export r; \
899 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
900 $(MAKE) $(RECURSE_FLAGS_TO_PASS) dvi-host \
1061f99e 901 dvi-target
1061f99e 902
4977bab6 903
295f4e42 904.PHONY: dvi-host
cc11cc9b
PB
905
906dvi-host: maybe-dvi-ash
907dvi-host: maybe-dvi-autoconf
908dvi-host: maybe-dvi-automake
909dvi-host: maybe-dvi-bash
910dvi-host: maybe-dvi-bfd
911dvi-host: maybe-dvi-opcodes
912dvi-host: maybe-dvi-binutils
913dvi-host: maybe-dvi-bison
914dvi-host: maybe-dvi-byacc
915dvi-host: maybe-dvi-bzip2
916dvi-host: maybe-dvi-dejagnu
917dvi-host: maybe-dvi-diff
918dvi-host: maybe-dvi-dosutils
919dvi-host: maybe-dvi-etc
920dvi-host: maybe-dvi-fastjar
921dvi-host: maybe-dvi-fileutils
922dvi-host: maybe-dvi-findutils
923dvi-host: maybe-dvi-find
924dvi-host: maybe-dvi-fixincludes
925dvi-host: maybe-dvi-flex
926dvi-host: maybe-dvi-gas
927dvi-host: maybe-dvi-gcc
928dvi-host: maybe-dvi-gawk
929dvi-host: maybe-dvi-gettext
930dvi-host: maybe-dvi-gnuserv
931dvi-host: maybe-dvi-gprof
932dvi-host: maybe-dvi-gzip
933dvi-host: maybe-dvi-hello
934dvi-host: maybe-dvi-indent
935dvi-host: maybe-dvi-intl
936dvi-host: maybe-dvi-tcl
937dvi-host: maybe-dvi-itcl
938dvi-host: maybe-dvi-ld
939dvi-host: maybe-dvi-libcpp
940dvi-host: maybe-dvi-libdecnumber
941dvi-host: maybe-dvi-libgui
942dvi-host: maybe-dvi-libiberty
943dvi-host: maybe-dvi-libtool
944dvi-host: maybe-dvi-m4
945dvi-host: maybe-dvi-make
946dvi-host: maybe-dvi-mmalloc
947dvi-host: maybe-dvi-patch
948dvi-host: maybe-dvi-perl
949dvi-host: maybe-dvi-prms
950dvi-host: maybe-dvi-rcs
951dvi-host: maybe-dvi-readline
952dvi-host: maybe-dvi-release
953dvi-host: maybe-dvi-recode
954dvi-host: maybe-dvi-sed
955dvi-host: maybe-dvi-send-pr
956dvi-host: maybe-dvi-shellutils
957dvi-host: maybe-dvi-sid
958dvi-host: maybe-dvi-sim
959dvi-host: maybe-dvi-tar
960dvi-host: maybe-dvi-texinfo
961dvi-host: maybe-dvi-textutils
962dvi-host: maybe-dvi-time
963dvi-host: maybe-dvi-uudecode
964dvi-host: maybe-dvi-wdiff
965dvi-host: maybe-dvi-zip
966dvi-host: maybe-dvi-zlib
967dvi-host: maybe-dvi-gdb
968dvi-host: maybe-dvi-expect
969dvi-host: maybe-dvi-guile
970dvi-host: maybe-dvi-tk
971dvi-host: maybe-dvi-libtermcap
972dvi-host: maybe-dvi-utils
973dvi-host: maybe-dvi-gnattools
4977bab6 974
295f4e42 975.PHONY: dvi-target
cc11cc9b
PB
976
977dvi-target: maybe-dvi-target-libstdc++-v3
978dvi-target: maybe-dvi-target-libmudflap
979dvi-target: maybe-dvi-target-libssp
cc11cc9b
PB
980dvi-target: maybe-dvi-target-newlib
981dvi-target: maybe-dvi-target-libgfortran
982dvi-target: maybe-dvi-target-libobjc
983dvi-target: maybe-dvi-target-libtermcap
984dvi-target: maybe-dvi-target-winsup
985dvi-target: maybe-dvi-target-libgloss
986dvi-target: maybe-dvi-target-libiberty
987dvi-target: maybe-dvi-target-gperf
988dvi-target: maybe-dvi-target-examples
989dvi-target: maybe-dvi-target-libffi
990dvi-target: maybe-dvi-target-libjava
991dvi-target: maybe-dvi-target-zlib
992dvi-target: maybe-dvi-target-boehm-gc
993dvi-target: maybe-dvi-target-qthreads
994dvi-target: maybe-dvi-target-rda
995dvi-target: maybe-dvi-target-libada
996dvi-target: maybe-dvi-target-libgomp
4977bab6 997
f87a2b2e 998.PHONY: do-html
1061f99e 999do-html:
f41d6665 1000 @: $(MAKE); $(unstage)
e7c84bf8
PB
1001 @r=`${PWD_COMMAND}`; export r; \
1002 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1003 $(MAKE) $(RECURSE_FLAGS_TO_PASS) html-host \
1061f99e 1004 html-target
1061f99e 1005
f87a2b2e
MS
1006
1007.PHONY: html-host
cc11cc9b
PB
1008
1009html-host: maybe-html-ash
1010html-host: maybe-html-autoconf
1011html-host: maybe-html-automake
1012html-host: maybe-html-bash
1013html-host: maybe-html-bfd
1014html-host: maybe-html-opcodes
1015html-host: maybe-html-binutils
1016html-host: maybe-html-bison
1017html-host: maybe-html-byacc
1018html-host: maybe-html-bzip2
1019html-host: maybe-html-dejagnu
1020html-host: maybe-html-diff
1021html-host: maybe-html-dosutils
1022html-host: maybe-html-etc
1023html-host: maybe-html-fastjar
1024html-host: maybe-html-fileutils
1025html-host: maybe-html-findutils
1026html-host: maybe-html-find
1027html-host: maybe-html-fixincludes
1028html-host: maybe-html-flex
1029html-host: maybe-html-gas
1030html-host: maybe-html-gcc
1031html-host: maybe-html-gawk
1032html-host: maybe-html-gettext
1033html-host: maybe-html-gnuserv
1034html-host: maybe-html-gprof
1035html-host: maybe-html-gzip
1036html-host: maybe-html-hello
1037html-host: maybe-html-indent
1038html-host: maybe-html-intl
1039html-host: maybe-html-tcl
1040html-host: maybe-html-itcl
1041html-host: maybe-html-ld
1042html-host: maybe-html-libcpp
1043html-host: maybe-html-libdecnumber
1044html-host: maybe-html-libgui
1045html-host: maybe-html-libiberty
1046html-host: maybe-html-libtool
1047html-host: maybe-html-m4
1048html-host: maybe-html-make
1049html-host: maybe-html-mmalloc
1050html-host: maybe-html-patch
1051html-host: maybe-html-perl
1052html-host: maybe-html-prms
1053html-host: maybe-html-rcs
1054html-host: maybe-html-readline
1055html-host: maybe-html-release
1056html-host: maybe-html-recode
1057html-host: maybe-html-sed
1058html-host: maybe-html-send-pr
1059html-host: maybe-html-shellutils
1060html-host: maybe-html-sid
1061html-host: maybe-html-sim
1062html-host: maybe-html-tar
1063html-host: maybe-html-texinfo
1064html-host: maybe-html-textutils
1065html-host: maybe-html-time
1066html-host: maybe-html-uudecode
1067html-host: maybe-html-wdiff
1068html-host: maybe-html-zip
1069html-host: maybe-html-zlib
1070html-host: maybe-html-gdb
1071html-host: maybe-html-expect
1072html-host: maybe-html-guile
1073html-host: maybe-html-tk
1074html-host: maybe-html-libtermcap
1075html-host: maybe-html-utils
1076html-host: maybe-html-gnattools
f87a2b2e
MS
1077
1078.PHONY: html-target
cc11cc9b
PB
1079
1080html-target: maybe-html-target-libstdc++-v3
1081html-target: maybe-html-target-libmudflap
1082html-target: maybe-html-target-libssp
cc11cc9b
PB
1083html-target: maybe-html-target-newlib
1084html-target: maybe-html-target-libgfortran
1085html-target: maybe-html-target-libobjc
1086html-target: maybe-html-target-libtermcap
1087html-target: maybe-html-target-winsup
1088html-target: maybe-html-target-libgloss
1089html-target: maybe-html-target-libiberty
1090html-target: maybe-html-target-gperf
1091html-target: maybe-html-target-examples
1092html-target: maybe-html-target-libffi
1093html-target: maybe-html-target-libjava
1094html-target: maybe-html-target-zlib
1095html-target: maybe-html-target-boehm-gc
1096html-target: maybe-html-target-qthreads
1097html-target: maybe-html-target-rda
1098html-target: maybe-html-target-libada
1099html-target: maybe-html-target-libgomp
f87a2b2e 1100
295f4e42 1101.PHONY: do-TAGS
1061f99e 1102do-TAGS:
f41d6665 1103 @: $(MAKE); $(unstage)
e7c84bf8
PB
1104 @r=`${PWD_COMMAND}`; export r; \
1105 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1106 $(MAKE) $(RECURSE_FLAGS_TO_PASS) TAGS-host \
1061f99e 1107 TAGS-target
1061f99e 1108
4977bab6 1109
295f4e42 1110.PHONY: TAGS-host
cc11cc9b
PB
1111
1112TAGS-host: maybe-TAGS-ash
1113TAGS-host: maybe-TAGS-autoconf
1114TAGS-host: maybe-TAGS-automake
1115TAGS-host: maybe-TAGS-bash
1116TAGS-host: maybe-TAGS-bfd
1117TAGS-host: maybe-TAGS-opcodes
1118TAGS-host: maybe-TAGS-binutils
1119TAGS-host: maybe-TAGS-bison
1120TAGS-host: maybe-TAGS-byacc
1121TAGS-host: maybe-TAGS-bzip2
1122TAGS-host: maybe-TAGS-dejagnu
1123TAGS-host: maybe-TAGS-diff
1124TAGS-host: maybe-TAGS-dosutils
1125TAGS-host: maybe-TAGS-etc
1126TAGS-host: maybe-TAGS-fastjar
1127TAGS-host: maybe-TAGS-fileutils
1128TAGS-host: maybe-TAGS-findutils
1129TAGS-host: maybe-TAGS-find
1130TAGS-host: maybe-TAGS-fixincludes
1131TAGS-host: maybe-TAGS-flex
1132TAGS-host: maybe-TAGS-gas
1133TAGS-host: maybe-TAGS-gcc
1134TAGS-host: maybe-TAGS-gawk
1135TAGS-host: maybe-TAGS-gettext
1136TAGS-host: maybe-TAGS-gnuserv
1137TAGS-host: maybe-TAGS-gprof
1138TAGS-host: maybe-TAGS-gzip
1139TAGS-host: maybe-TAGS-hello
1140TAGS-host: maybe-TAGS-indent
1141TAGS-host: maybe-TAGS-intl
1142TAGS-host: maybe-TAGS-tcl
1143TAGS-host: maybe-TAGS-itcl
1144TAGS-host: maybe-TAGS-ld
1145TAGS-host: maybe-TAGS-libcpp
1146TAGS-host: maybe-TAGS-libdecnumber
1147TAGS-host: maybe-TAGS-libgui
1148TAGS-host: maybe-TAGS-libiberty
1149TAGS-host: maybe-TAGS-libtool
1150TAGS-host: maybe-TAGS-m4
1151TAGS-host: maybe-TAGS-make
1152TAGS-host: maybe-TAGS-mmalloc
1153TAGS-host: maybe-TAGS-patch
1154TAGS-host: maybe-TAGS-perl
1155TAGS-host: maybe-TAGS-prms
1156TAGS-host: maybe-TAGS-rcs
1157TAGS-host: maybe-TAGS-readline
1158TAGS-host: maybe-TAGS-release
1159TAGS-host: maybe-TAGS-recode
1160TAGS-host: maybe-TAGS-sed
1161TAGS-host: maybe-TAGS-send-pr
1162TAGS-host: maybe-TAGS-shellutils
1163TAGS-host: maybe-TAGS-sid
1164TAGS-host: maybe-TAGS-sim
1165TAGS-host: maybe-TAGS-tar
1166TAGS-host: maybe-TAGS-texinfo
1167TAGS-host: maybe-TAGS-textutils
1168TAGS-host: maybe-TAGS-time
1169TAGS-host: maybe-TAGS-uudecode
1170TAGS-host: maybe-TAGS-wdiff
1171TAGS-host: maybe-TAGS-zip
1172TAGS-host: maybe-TAGS-zlib
1173TAGS-host: maybe-TAGS-gdb
1174TAGS-host: maybe-TAGS-expect
1175TAGS-host: maybe-TAGS-guile
1176TAGS-host: maybe-TAGS-tk
1177TAGS-host: maybe-TAGS-libtermcap
1178TAGS-host: maybe-TAGS-utils
1179TAGS-host: maybe-TAGS-gnattools
4977bab6 1180
295f4e42 1181.PHONY: TAGS-target
cc11cc9b
PB
1182
1183TAGS-target: maybe-TAGS-target-libstdc++-v3
1184TAGS-target: maybe-TAGS-target-libmudflap
1185TAGS-target: maybe-TAGS-target-libssp
cc11cc9b
PB
1186TAGS-target: maybe-TAGS-target-newlib
1187TAGS-target: maybe-TAGS-target-libgfortran
1188TAGS-target: maybe-TAGS-target-libobjc
1189TAGS-target: maybe-TAGS-target-libtermcap
1190TAGS-target: maybe-TAGS-target-winsup
1191TAGS-target: maybe-TAGS-target-libgloss
1192TAGS-target: maybe-TAGS-target-libiberty
1193TAGS-target: maybe-TAGS-target-gperf
1194TAGS-target: maybe-TAGS-target-examples
1195TAGS-target: maybe-TAGS-target-libffi
1196TAGS-target: maybe-TAGS-target-libjava
1197TAGS-target: maybe-TAGS-target-zlib
1198TAGS-target: maybe-TAGS-target-boehm-gc
1199TAGS-target: maybe-TAGS-target-qthreads
1200TAGS-target: maybe-TAGS-target-rda
1201TAGS-target: maybe-TAGS-target-libada
1202TAGS-target: maybe-TAGS-target-libgomp
4977bab6 1203
295f4e42 1204.PHONY: do-install-info
1061f99e 1205do-install-info:
f41d6665 1206 @: $(MAKE); $(unstage)
e7c84bf8
PB
1207 @r=`${PWD_COMMAND}`; export r; \
1208 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1209 $(MAKE) $(RECURSE_FLAGS_TO_PASS) install-info-host \
1061f99e 1210 install-info-target
1061f99e 1211
4977bab6 1212
295f4e42 1213.PHONY: install-info-host
cc11cc9b
PB
1214
1215install-info-host: maybe-install-info-ash
1216install-info-host: maybe-install-info-autoconf
1217install-info-host: maybe-install-info-automake
1218install-info-host: maybe-install-info-bash
1219install-info-host: maybe-install-info-bfd
1220install-info-host: maybe-install-info-opcodes
1221install-info-host: maybe-install-info-binutils
1222install-info-host: maybe-install-info-bison
1223install-info-host: maybe-install-info-byacc
1224install-info-host: maybe-install-info-bzip2
1225install-info-host: maybe-install-info-dejagnu
1226install-info-host: maybe-install-info-diff
1227install-info-host: maybe-install-info-dosutils
1228install-info-host: maybe-install-info-etc
1229install-info-host: maybe-install-info-fastjar
1230install-info-host: maybe-install-info-fileutils
1231install-info-host: maybe-install-info-findutils
1232install-info-host: maybe-install-info-find
1233install-info-host: maybe-install-info-fixincludes
1234install-info-host: maybe-install-info-flex
1235install-info-host: maybe-install-info-gas
1236install-info-host: maybe-install-info-gcc
1237install-info-host: maybe-install-info-gawk
1238install-info-host: maybe-install-info-gettext
1239install-info-host: maybe-install-info-gnuserv
1240install-info-host: maybe-install-info-gprof
1241install-info-host: maybe-install-info-gzip
1242install-info-host: maybe-install-info-hello
1243install-info-host: maybe-install-info-indent
1244install-info-host: maybe-install-info-intl
1245install-info-host: maybe-install-info-tcl
1246install-info-host: maybe-install-info-itcl
1247install-info-host: maybe-install-info-ld
1248install-info-host: maybe-install-info-libcpp
1249install-info-host: maybe-install-info-libdecnumber
1250install-info-host: maybe-install-info-libgui
1251install-info-host: maybe-install-info-libiberty
1252install-info-host: maybe-install-info-libtool
1253install-info-host: maybe-install-info-m4
1254install-info-host: maybe-install-info-make
1255install-info-host: maybe-install-info-mmalloc
1256install-info-host: maybe-install-info-patch
1257install-info-host: maybe-install-info-perl
1258install-info-host: maybe-install-info-prms
1259install-info-host: maybe-install-info-rcs
1260install-info-host: maybe-install-info-readline
1261install-info-host: maybe-install-info-release
1262install-info-host: maybe-install-info-recode
1263install-info-host: maybe-install-info-sed
1264install-info-host: maybe-install-info-send-pr
1265install-info-host: maybe-install-info-shellutils
1266install-info-host: maybe-install-info-sid
1267install-info-host: maybe-install-info-sim
1268install-info-host: maybe-install-info-tar
1269install-info-host: maybe-install-info-texinfo
1270install-info-host: maybe-install-info-textutils
1271install-info-host: maybe-install-info-time
1272install-info-host: maybe-install-info-uudecode
1273install-info-host: maybe-install-info-wdiff
1274install-info-host: maybe-install-info-zip
1275install-info-host: maybe-install-info-zlib
1276install-info-host: maybe-install-info-gdb
1277install-info-host: maybe-install-info-expect
1278install-info-host: maybe-install-info-guile
1279install-info-host: maybe-install-info-tk
1280install-info-host: maybe-install-info-libtermcap
1281install-info-host: maybe-install-info-utils
1282install-info-host: maybe-install-info-gnattools
1358ccea 1283
295f4e42 1284.PHONY: install-info-target
cc11cc9b
PB
1285
1286install-info-target: maybe-install-info-target-libstdc++-v3
1287install-info-target: maybe-install-info-target-libmudflap
1288install-info-target: maybe-install-info-target-libssp
cc11cc9b
PB
1289install-info-target: maybe-install-info-target-newlib
1290install-info-target: maybe-install-info-target-libgfortran
1291install-info-target: maybe-install-info-target-libobjc
1292install-info-target: maybe-install-info-target-libtermcap
1293install-info-target: maybe-install-info-target-winsup
1294install-info-target: maybe-install-info-target-libgloss
1295install-info-target: maybe-install-info-target-libiberty
1296install-info-target: maybe-install-info-target-gperf
1297install-info-target: maybe-install-info-target-examples
1298install-info-target: maybe-install-info-target-libffi
1299install-info-target: maybe-install-info-target-libjava
1300install-info-target: maybe-install-info-target-zlib
1301install-info-target: maybe-install-info-target-boehm-gc
1302install-info-target: maybe-install-info-target-qthreads
1303install-info-target: maybe-install-info-target-rda
1304install-info-target: maybe-install-info-target-libada
1305install-info-target: maybe-install-info-target-libgomp
1358ccea 1306
65d6e994
CD
1307.PHONY: do-install-html
1308do-install-html:
1309 @: $(MAKE); $(unstage)
1310 @r=`${PWD_COMMAND}`; export r; \
1311 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1312 $(MAKE) $(RECURSE_FLAGS_TO_PASS) install-html-host \
1313 install-html-target
1314
1315
1316.PHONY: install-html-host
1317
1318install-html-host: maybe-install-html-ash
1319install-html-host: maybe-install-html-autoconf
1320install-html-host: maybe-install-html-automake
1321install-html-host: maybe-install-html-bash
1322install-html-host: maybe-install-html-bfd
1323install-html-host: maybe-install-html-opcodes
1324install-html-host: maybe-install-html-binutils
1325install-html-host: maybe-install-html-bison
1326install-html-host: maybe-install-html-byacc
1327install-html-host: maybe-install-html-bzip2
1328install-html-host: maybe-install-html-dejagnu
1329install-html-host: maybe-install-html-diff
1330install-html-host: maybe-install-html-dosutils
1331install-html-host: maybe-install-html-etc
1332install-html-host: maybe-install-html-fastjar
1333install-html-host: maybe-install-html-fileutils
1334install-html-host: maybe-install-html-findutils
1335install-html-host: maybe-install-html-find
1336install-html-host: maybe-install-html-fixincludes
1337install-html-host: maybe-install-html-flex
1338install-html-host: maybe-install-html-gas
1339install-html-host: maybe-install-html-gcc
1340install-html-host: maybe-install-html-gawk
1341install-html-host: maybe-install-html-gettext
1342install-html-host: maybe-install-html-gnuserv
1343install-html-host: maybe-install-html-gprof
1344install-html-host: maybe-install-html-gzip
1345install-html-host: maybe-install-html-hello
1346install-html-host: maybe-install-html-indent
1347install-html-host: maybe-install-html-intl
1348install-html-host: maybe-install-html-tcl
1349install-html-host: maybe-install-html-itcl
1350install-html-host: maybe-install-html-ld
1351install-html-host: maybe-install-html-libcpp
1352install-html-host: maybe-install-html-libdecnumber
1353install-html-host: maybe-install-html-libgui
1354install-html-host: maybe-install-html-libiberty
1355install-html-host: maybe-install-html-libtool
1356install-html-host: maybe-install-html-m4
1357install-html-host: maybe-install-html-make
1358install-html-host: maybe-install-html-mmalloc
1359install-html-host: maybe-install-html-patch
1360install-html-host: maybe-install-html-perl
1361install-html-host: maybe-install-html-prms
1362install-html-host: maybe-install-html-rcs
1363install-html-host: maybe-install-html-readline
1364install-html-host: maybe-install-html-release
1365install-html-host: maybe-install-html-recode
1366install-html-host: maybe-install-html-sed
1367install-html-host: maybe-install-html-send-pr
1368install-html-host: maybe-install-html-shellutils
1369install-html-host: maybe-install-html-sid
1370install-html-host: maybe-install-html-sim
1371install-html-host: maybe-install-html-tar
1372install-html-host: maybe-install-html-texinfo
1373install-html-host: maybe-install-html-textutils
1374install-html-host: maybe-install-html-time
1375install-html-host: maybe-install-html-uudecode
1376install-html-host: maybe-install-html-wdiff
1377install-html-host: maybe-install-html-zip
1378install-html-host: maybe-install-html-zlib
1379install-html-host: maybe-install-html-gdb
1380install-html-host: maybe-install-html-expect
1381install-html-host: maybe-install-html-guile
1382install-html-host: maybe-install-html-tk
1383install-html-host: maybe-install-html-libtermcap
1384install-html-host: maybe-install-html-utils
1385install-html-host: maybe-install-html-gnattools
1386
1387.PHONY: install-html-target
1388
1389install-html-target: maybe-install-html-target-libstdc++-v3
1390install-html-target: maybe-install-html-target-libmudflap
1391install-html-target: maybe-install-html-target-libssp
65d6e994
CD
1392install-html-target: maybe-install-html-target-newlib
1393install-html-target: maybe-install-html-target-libgfortran
1394install-html-target: maybe-install-html-target-libobjc
1395install-html-target: maybe-install-html-target-libtermcap
1396install-html-target: maybe-install-html-target-winsup
1397install-html-target: maybe-install-html-target-libgloss
1398install-html-target: maybe-install-html-target-libiberty
1399install-html-target: maybe-install-html-target-gperf
1400install-html-target: maybe-install-html-target-examples
1401install-html-target: maybe-install-html-target-libffi
1402install-html-target: maybe-install-html-target-libjava
1403install-html-target: maybe-install-html-target-zlib
1404install-html-target: maybe-install-html-target-boehm-gc
1405install-html-target: maybe-install-html-target-qthreads
1406install-html-target: maybe-install-html-target-rda
1407install-html-target: maybe-install-html-target-libada
1408install-html-target: maybe-install-html-target-libgomp
1409
295f4e42 1410.PHONY: do-installcheck
1061f99e 1411do-installcheck:
f41d6665 1412 @: $(MAKE); $(unstage)
e7c84bf8
PB
1413 @r=`${PWD_COMMAND}`; export r; \
1414 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1415 $(MAKE) $(RECURSE_FLAGS_TO_PASS) installcheck-host \
1061f99e 1416 installcheck-target
1061f99e 1417
1358ccea 1418
295f4e42 1419.PHONY: installcheck-host
cc11cc9b
PB
1420
1421installcheck-host: maybe-installcheck-ash
1422installcheck-host: maybe-installcheck-autoconf
1423installcheck-host: maybe-installcheck-automake
1424installcheck-host: maybe-installcheck-bash
1425installcheck-host: maybe-installcheck-bfd
1426installcheck-host: maybe-installcheck-opcodes
1427installcheck-host: maybe-installcheck-binutils
1428installcheck-host: maybe-installcheck-bison
1429installcheck-host: maybe-installcheck-byacc
1430installcheck-host: maybe-installcheck-bzip2
1431installcheck-host: maybe-installcheck-dejagnu
1432installcheck-host: maybe-installcheck-diff
1433installcheck-host: maybe-installcheck-dosutils
1434installcheck-host: maybe-installcheck-etc
1435installcheck-host: maybe-installcheck-fastjar
1436installcheck-host: maybe-installcheck-fileutils
1437installcheck-host: maybe-installcheck-findutils
1438installcheck-host: maybe-installcheck-find
1439installcheck-host: maybe-installcheck-fixincludes
1440installcheck-host: maybe-installcheck-flex
1441installcheck-host: maybe-installcheck-gas
1442installcheck-host: maybe-installcheck-gcc
1443installcheck-host: maybe-installcheck-gawk
1444installcheck-host: maybe-installcheck-gettext
1445installcheck-host: maybe-installcheck-gnuserv
1446installcheck-host: maybe-installcheck-gprof
1447installcheck-host: maybe-installcheck-gzip
1448installcheck-host: maybe-installcheck-hello
1449installcheck-host: maybe-installcheck-indent
1450installcheck-host: maybe-installcheck-intl
1451installcheck-host: maybe-installcheck-tcl
1452installcheck-host: maybe-installcheck-itcl
1453installcheck-host: maybe-installcheck-ld
1454installcheck-host: maybe-installcheck-libcpp
1455installcheck-host: maybe-installcheck-libdecnumber
1456installcheck-host: maybe-installcheck-libgui
1457installcheck-host: maybe-installcheck-libiberty
1458installcheck-host: maybe-installcheck-libtool
1459installcheck-host: maybe-installcheck-m4
1460installcheck-host: maybe-installcheck-make
1461installcheck-host: maybe-installcheck-mmalloc
1462installcheck-host: maybe-installcheck-patch
1463installcheck-host: maybe-installcheck-perl
1464installcheck-host: maybe-installcheck-prms
1465installcheck-host: maybe-installcheck-rcs
1466installcheck-host: maybe-installcheck-readline
1467installcheck-host: maybe-installcheck-release
1468installcheck-host: maybe-installcheck-recode
1469installcheck-host: maybe-installcheck-sed
1470installcheck-host: maybe-installcheck-send-pr
1471installcheck-host: maybe-installcheck-shellutils
1472installcheck-host: maybe-installcheck-sid
1473installcheck-host: maybe-installcheck-sim
1474installcheck-host: maybe-installcheck-tar
1475installcheck-host: maybe-installcheck-texinfo
1476installcheck-host: maybe-installcheck-textutils
1477installcheck-host: maybe-installcheck-time
1478installcheck-host: maybe-installcheck-uudecode
1479installcheck-host: maybe-installcheck-wdiff
1480installcheck-host: maybe-installcheck-zip
1481installcheck-host: maybe-installcheck-zlib
1482installcheck-host: maybe-installcheck-gdb
1483installcheck-host: maybe-installcheck-expect
1484installcheck-host: maybe-installcheck-guile
1485installcheck-host: maybe-installcheck-tk
1486installcheck-host: maybe-installcheck-libtermcap
1487installcheck-host: maybe-installcheck-utils
1488installcheck-host: maybe-installcheck-gnattools
1358ccea 1489
295f4e42 1490.PHONY: installcheck-target
cc11cc9b
PB
1491
1492installcheck-target: maybe-installcheck-target-libstdc++-v3
1493installcheck-target: maybe-installcheck-target-libmudflap
1494installcheck-target: maybe-installcheck-target-libssp
cc11cc9b
PB
1495installcheck-target: maybe-installcheck-target-newlib
1496installcheck-target: maybe-installcheck-target-libgfortran
1497installcheck-target: maybe-installcheck-target-libobjc
1498installcheck-target: maybe-installcheck-target-libtermcap
1499installcheck-target: maybe-installcheck-target-winsup
1500installcheck-target: maybe-installcheck-target-libgloss
1501installcheck-target: maybe-installcheck-target-libiberty
1502installcheck-target: maybe-installcheck-target-gperf
1503installcheck-target: maybe-installcheck-target-examples
1504installcheck-target: maybe-installcheck-target-libffi
1505installcheck-target: maybe-installcheck-target-libjava
1506installcheck-target: maybe-installcheck-target-zlib
1507installcheck-target: maybe-installcheck-target-boehm-gc
1508installcheck-target: maybe-installcheck-target-qthreads
1509installcheck-target: maybe-installcheck-target-rda
1510installcheck-target: maybe-installcheck-target-libada
1511installcheck-target: maybe-installcheck-target-libgomp
1358ccea 1512
295f4e42 1513.PHONY: do-mostlyclean
1061f99e 1514do-mostlyclean:
f41d6665 1515 @: $(MAKE); $(unstage)
e7c84bf8
PB
1516 @r=`${PWD_COMMAND}`; export r; \
1517 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1518 $(MAKE) $(RECURSE_FLAGS_TO_PASS) mostlyclean-host \
1061f99e 1519 mostlyclean-target
1061f99e 1520
1358ccea 1521
295f4e42 1522.PHONY: mostlyclean-host
cc11cc9b
PB
1523
1524mostlyclean-host: maybe-mostlyclean-ash
1525mostlyclean-host: maybe-mostlyclean-autoconf
1526mostlyclean-host: maybe-mostlyclean-automake
1527mostlyclean-host: maybe-mostlyclean-bash
1528mostlyclean-host: maybe-mostlyclean-bfd
1529mostlyclean-host: maybe-mostlyclean-opcodes
1530mostlyclean-host: maybe-mostlyclean-binutils
1531mostlyclean-host: maybe-mostlyclean-bison
1532mostlyclean-host: maybe-mostlyclean-byacc
1533mostlyclean-host: maybe-mostlyclean-bzip2
1534mostlyclean-host: maybe-mostlyclean-dejagnu
1535mostlyclean-host: maybe-mostlyclean-diff
1536mostlyclean-host: maybe-mostlyclean-dosutils
1537mostlyclean-host: maybe-mostlyclean-etc
1538mostlyclean-host: maybe-mostlyclean-fastjar
1539mostlyclean-host: maybe-mostlyclean-fileutils
1540mostlyclean-host: maybe-mostlyclean-findutils
1541mostlyclean-host: maybe-mostlyclean-find
1542mostlyclean-host: maybe-mostlyclean-fixincludes
1543mostlyclean-host: maybe-mostlyclean-flex
1544mostlyclean-host: maybe-mostlyclean-gas
1545mostlyclean-host: maybe-mostlyclean-gcc
1546mostlyclean-host: maybe-mostlyclean-gawk
1547mostlyclean-host: maybe-mostlyclean-gettext
1548mostlyclean-host: maybe-mostlyclean-gnuserv
1549mostlyclean-host: maybe-mostlyclean-gprof
1550mostlyclean-host: maybe-mostlyclean-gzip
1551mostlyclean-host: maybe-mostlyclean-hello
1552mostlyclean-host: maybe-mostlyclean-indent
1553mostlyclean-host: maybe-mostlyclean-intl
1554mostlyclean-host: maybe-mostlyclean-tcl
1555mostlyclean-host: maybe-mostlyclean-itcl
1556mostlyclean-host: maybe-mostlyclean-ld
1557mostlyclean-host: maybe-mostlyclean-libcpp
1558mostlyclean-host: maybe-mostlyclean-libdecnumber
1559mostlyclean-host: maybe-mostlyclean-libgui
1560mostlyclean-host: maybe-mostlyclean-libiberty
1561mostlyclean-host: maybe-mostlyclean-libtool
1562mostlyclean-host: maybe-mostlyclean-m4
1563mostlyclean-host: maybe-mostlyclean-make
1564mostlyclean-host: maybe-mostlyclean-mmalloc
1565mostlyclean-host: maybe-mostlyclean-patch
1566mostlyclean-host: maybe-mostlyclean-perl
1567mostlyclean-host: maybe-mostlyclean-prms
1568mostlyclean-host: maybe-mostlyclean-rcs
1569mostlyclean-host: maybe-mostlyclean-readline
1570mostlyclean-host: maybe-mostlyclean-release
1571mostlyclean-host: maybe-mostlyclean-recode
1572mostlyclean-host: maybe-mostlyclean-sed
1573mostlyclean-host: maybe-mostlyclean-send-pr
1574mostlyclean-host: maybe-mostlyclean-shellutils
1575mostlyclean-host: maybe-mostlyclean-sid
1576mostlyclean-host: maybe-mostlyclean-sim
1577mostlyclean-host: maybe-mostlyclean-tar
1578mostlyclean-host: maybe-mostlyclean-texinfo
1579mostlyclean-host: maybe-mostlyclean-textutils
1580mostlyclean-host: maybe-mostlyclean-time
1581mostlyclean-host: maybe-mostlyclean-uudecode
1582mostlyclean-host: maybe-mostlyclean-wdiff
1583mostlyclean-host: maybe-mostlyclean-zip
1584mostlyclean-host: maybe-mostlyclean-zlib
1585mostlyclean-host: maybe-mostlyclean-gdb
1586mostlyclean-host: maybe-mostlyclean-expect
1587mostlyclean-host: maybe-mostlyclean-guile
1588mostlyclean-host: maybe-mostlyclean-tk
1589mostlyclean-host: maybe-mostlyclean-libtermcap
1590mostlyclean-host: maybe-mostlyclean-utils
1591mostlyclean-host: maybe-mostlyclean-gnattools
1358ccea 1592
295f4e42 1593.PHONY: mostlyclean-target
cc11cc9b
PB
1594
1595mostlyclean-target: maybe-mostlyclean-target-libstdc++-v3
1596mostlyclean-target: maybe-mostlyclean-target-libmudflap
1597mostlyclean-target: maybe-mostlyclean-target-libssp
cc11cc9b
PB
1598mostlyclean-target: maybe-mostlyclean-target-newlib
1599mostlyclean-target: maybe-mostlyclean-target-libgfortran
1600mostlyclean-target: maybe-mostlyclean-target-libobjc
1601mostlyclean-target: maybe-mostlyclean-target-libtermcap
1602mostlyclean-target: maybe-mostlyclean-target-winsup
1603mostlyclean-target: maybe-mostlyclean-target-libgloss
1604mostlyclean-target: maybe-mostlyclean-target-libiberty
1605mostlyclean-target: maybe-mostlyclean-target-gperf
1606mostlyclean-target: maybe-mostlyclean-target-examples
1607mostlyclean-target: maybe-mostlyclean-target-libffi
1608mostlyclean-target: maybe-mostlyclean-target-libjava
1609mostlyclean-target: maybe-mostlyclean-target-zlib
1610mostlyclean-target: maybe-mostlyclean-target-boehm-gc
1611mostlyclean-target: maybe-mostlyclean-target-qthreads
1612mostlyclean-target: maybe-mostlyclean-target-rda
1613mostlyclean-target: maybe-mostlyclean-target-libada
1614mostlyclean-target: maybe-mostlyclean-target-libgomp
1358ccea 1615
295f4e42 1616.PHONY: do-clean
1061f99e 1617do-clean:
f41d6665 1618 @: $(MAKE); $(unstage)
e7c84bf8
PB
1619 @r=`${PWD_COMMAND}`; export r; \
1620 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1621 $(MAKE) $(RECURSE_FLAGS_TO_PASS) clean-host \
1061f99e 1622 clean-target
1061f99e 1623
1358ccea 1624
295f4e42 1625.PHONY: clean-host
cc11cc9b
PB
1626
1627clean-host: maybe-clean-ash
1628clean-host: maybe-clean-autoconf
1629clean-host: maybe-clean-automake
1630clean-host: maybe-clean-bash
1631clean-host: maybe-clean-bfd
1632clean-host: maybe-clean-opcodes
1633clean-host: maybe-clean-binutils
1634clean-host: maybe-clean-bison
1635clean-host: maybe-clean-byacc
1636clean-host: maybe-clean-bzip2
1637clean-host: maybe-clean-dejagnu
1638clean-host: maybe-clean-diff
1639clean-host: maybe-clean-dosutils
1640clean-host: maybe-clean-etc
1641clean-host: maybe-clean-fastjar
1642clean-host: maybe-clean-fileutils
1643clean-host: maybe-clean-findutils
1644clean-host: maybe-clean-find
1645clean-host: maybe-clean-fixincludes
1646clean-host: maybe-clean-flex
1647clean-host: maybe-clean-gas
1648clean-host: maybe-clean-gcc
1649clean-host: maybe-clean-gawk
1650clean-host: maybe-clean-gettext
1651clean-host: maybe-clean-gnuserv
1652clean-host: maybe-clean-gprof
1653clean-host: maybe-clean-gzip
1654clean-host: maybe-clean-hello
1655clean-host: maybe-clean-indent
1656clean-host: maybe-clean-intl
1657clean-host: maybe-clean-tcl
1658clean-host: maybe-clean-itcl
1659clean-host: maybe-clean-ld
1660clean-host: maybe-clean-libcpp
1661clean-host: maybe-clean-libdecnumber
1662clean-host: maybe-clean-libgui
1663clean-host: maybe-clean-libiberty
1664clean-host: maybe-clean-libtool
1665clean-host: maybe-clean-m4
1666clean-host: maybe-clean-make
1667clean-host: maybe-clean-mmalloc
1668clean-host: maybe-clean-patch
1669clean-host: maybe-clean-perl
1670clean-host: maybe-clean-prms
1671clean-host: maybe-clean-rcs
1672clean-host: maybe-clean-readline
1673clean-host: maybe-clean-release
1674clean-host: maybe-clean-recode
1675clean-host: maybe-clean-sed
1676clean-host: maybe-clean-send-pr
1677clean-host: maybe-clean-shellutils
1678clean-host: maybe-clean-sid
1679clean-host: maybe-clean-sim
1680clean-host: maybe-clean-tar
1681clean-host: maybe-clean-texinfo
1682clean-host: maybe-clean-textutils
1683clean-host: maybe-clean-time
1684clean-host: maybe-clean-uudecode
1685clean-host: maybe-clean-wdiff
1686clean-host: maybe-clean-zip
1687clean-host: maybe-clean-zlib
1688clean-host: maybe-clean-gdb
1689clean-host: maybe-clean-expect
1690clean-host: maybe-clean-guile
1691clean-host: maybe-clean-tk
1692clean-host: maybe-clean-libtermcap
1693clean-host: maybe-clean-utils
1694clean-host: maybe-clean-gnattools
1358ccea 1695
295f4e42 1696.PHONY: clean-target
cc11cc9b
PB
1697
1698clean-target: maybe-clean-target-libstdc++-v3
1699clean-target: maybe-clean-target-libmudflap
1700clean-target: maybe-clean-target-libssp
cc11cc9b
PB
1701clean-target: maybe-clean-target-newlib
1702clean-target: maybe-clean-target-libgfortran
1703clean-target: maybe-clean-target-libobjc
1704clean-target: maybe-clean-target-libtermcap
1705clean-target: maybe-clean-target-winsup
1706clean-target: maybe-clean-target-libgloss
1707clean-target: maybe-clean-target-libiberty
1708clean-target: maybe-clean-target-gperf
1709clean-target: maybe-clean-target-examples
1710clean-target: maybe-clean-target-libffi
1711clean-target: maybe-clean-target-libjava
1712clean-target: maybe-clean-target-zlib
1713clean-target: maybe-clean-target-boehm-gc
1714clean-target: maybe-clean-target-qthreads
1715clean-target: maybe-clean-target-rda
1716clean-target: maybe-clean-target-libada
1717clean-target: maybe-clean-target-libgomp
1358ccea 1718
295f4e42 1719.PHONY: do-distclean
1061f99e 1720do-distclean:
f41d6665 1721 @: $(MAKE); $(unstage)
e7c84bf8
PB
1722 @r=`${PWD_COMMAND}`; export r; \
1723 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1724 $(MAKE) $(RECURSE_FLAGS_TO_PASS) distclean-host \
1061f99e 1725 distclean-target
1061f99e 1726
1358ccea 1727
295f4e42 1728.PHONY: distclean-host
cc11cc9b
PB
1729
1730distclean-host: maybe-distclean-ash
1731distclean-host: maybe-distclean-autoconf
1732distclean-host: maybe-distclean-automake
1733distclean-host: maybe-distclean-bash
1734distclean-host: maybe-distclean-bfd
1735distclean-host: maybe-distclean-opcodes
1736distclean-host: maybe-distclean-binutils
1737distclean-host: maybe-distclean-bison
1738distclean-host: maybe-distclean-byacc
1739distclean-host: maybe-distclean-bzip2
1740distclean-host: maybe-distclean-dejagnu
1741distclean-host: maybe-distclean-diff
1742distclean-host: maybe-distclean-dosutils
1743distclean-host: maybe-distclean-etc
1744distclean-host: maybe-distclean-fastjar
1745distclean-host: maybe-distclean-fileutils
1746distclean-host: maybe-distclean-findutils
1747distclean-host: maybe-distclean-find
1748distclean-host: maybe-distclean-fixincludes
1749distclean-host: maybe-distclean-flex
1750distclean-host: maybe-distclean-gas
1751distclean-host: maybe-distclean-gcc
1752distclean-host: maybe-distclean-gawk
1753distclean-host: maybe-distclean-gettext
1754distclean-host: maybe-distclean-gnuserv
1755distclean-host: maybe-distclean-gprof
1756distclean-host: maybe-distclean-gzip
1757distclean-host: maybe-distclean-hello
1758distclean-host: maybe-distclean-indent
1759distclean-host: maybe-distclean-intl
1760distclean-host: maybe-distclean-tcl
1761distclean-host: maybe-distclean-itcl
1762distclean-host: maybe-distclean-ld
1763distclean-host: maybe-distclean-libcpp
1764distclean-host: maybe-distclean-libdecnumber
1765distclean-host: maybe-distclean-libgui
1766distclean-host: maybe-distclean-libiberty
1767distclean-host: maybe-distclean-libtool
1768distclean-host: maybe-distclean-m4
1769distclean-host: maybe-distclean-make
1770distclean-host: maybe-distclean-mmalloc
1771distclean-host: maybe-distclean-patch
1772distclean-host: maybe-distclean-perl
1773distclean-host: maybe-distclean-prms
1774distclean-host: maybe-distclean-rcs
1775distclean-host: maybe-distclean-readline
1776distclean-host: maybe-distclean-release
1777distclean-host: maybe-distclean-recode
1778distclean-host: maybe-distclean-sed
1779distclean-host: maybe-distclean-send-pr
1780distclean-host: maybe-distclean-shellutils
1781distclean-host: maybe-distclean-sid
1782distclean-host: maybe-distclean-sim
1783distclean-host: maybe-distclean-tar
1784distclean-host: maybe-distclean-texinfo
1785distclean-host: maybe-distclean-textutils
1786distclean-host: maybe-distclean-time
1787distclean-host: maybe-distclean-uudecode
1788distclean-host: maybe-distclean-wdiff
1789distclean-host: maybe-distclean-zip
1790distclean-host: maybe-distclean-zlib
1791distclean-host: maybe-distclean-gdb
1792distclean-host: maybe-distclean-expect
1793distclean-host: maybe-distclean-guile
1794distclean-host: maybe-distclean-tk
1795distclean-host: maybe-distclean-libtermcap
1796distclean-host: maybe-distclean-utils
1797distclean-host: maybe-distclean-gnattools
1358ccea 1798
295f4e42 1799.PHONY: distclean-target
cc11cc9b
PB
1800
1801distclean-target: maybe-distclean-target-libstdc++-v3
1802distclean-target: maybe-distclean-target-libmudflap
1803distclean-target: maybe-distclean-target-libssp
cc11cc9b
PB
1804distclean-target: maybe-distclean-target-newlib
1805distclean-target: maybe-distclean-target-libgfortran
1806distclean-target: maybe-distclean-target-libobjc
1807distclean-target: maybe-distclean-target-libtermcap
1808distclean-target: maybe-distclean-target-winsup
1809distclean-target: maybe-distclean-target-libgloss
1810distclean-target: maybe-distclean-target-libiberty
1811distclean-target: maybe-distclean-target-gperf
1812distclean-target: maybe-distclean-target-examples
1813distclean-target: maybe-distclean-target-libffi
1814distclean-target: maybe-distclean-target-libjava
1815distclean-target: maybe-distclean-target-zlib
1816distclean-target: maybe-distclean-target-boehm-gc
1817distclean-target: maybe-distclean-target-qthreads
1818distclean-target: maybe-distclean-target-rda
1819distclean-target: maybe-distclean-target-libada
1820distclean-target: maybe-distclean-target-libgomp
1358ccea 1821
295f4e42 1822.PHONY: do-maintainer-clean
1061f99e 1823do-maintainer-clean:
f41d6665 1824 @: $(MAKE); $(unstage)
e7c84bf8
PB
1825 @r=`${PWD_COMMAND}`; export r; \
1826 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1827 $(MAKE) $(RECURSE_FLAGS_TO_PASS) maintainer-clean-host \
1061f99e 1828 maintainer-clean-target
1061f99e 1829
1358ccea 1830
295f4e42 1831.PHONY: maintainer-clean-host
cc11cc9b
PB
1832
1833maintainer-clean-host: maybe-maintainer-clean-ash
1834maintainer-clean-host: maybe-maintainer-clean-autoconf
1835maintainer-clean-host: maybe-maintainer-clean-automake
1836maintainer-clean-host: maybe-maintainer-clean-bash
1837maintainer-clean-host: maybe-maintainer-clean-bfd
1838maintainer-clean-host: maybe-maintainer-clean-opcodes
1839maintainer-clean-host: maybe-maintainer-clean-binutils
1840maintainer-clean-host: maybe-maintainer-clean-bison
1841maintainer-clean-host: maybe-maintainer-clean-byacc
1842maintainer-clean-host: maybe-maintainer-clean-bzip2
1843maintainer-clean-host: maybe-maintainer-clean-dejagnu
1844maintainer-clean-host: maybe-maintainer-clean-diff
1845maintainer-clean-host: maybe-maintainer-clean-dosutils
1846maintainer-clean-host: maybe-maintainer-clean-etc
1847maintainer-clean-host: maybe-maintainer-clean-fastjar
1848maintainer-clean-host: maybe-maintainer-clean-fileutils
1849maintainer-clean-host: maybe-maintainer-clean-findutils
1850maintainer-clean-host: maybe-maintainer-clean-find
1851maintainer-clean-host: maybe-maintainer-clean-fixincludes
1852maintainer-clean-host: maybe-maintainer-clean-flex
1853maintainer-clean-host: maybe-maintainer-clean-gas
1854maintainer-clean-host: maybe-maintainer-clean-gcc
1855maintainer-clean-host: maybe-maintainer-clean-gawk
1856maintainer-clean-host: maybe-maintainer-clean-gettext
1857maintainer-clean-host: maybe-maintainer-clean-gnuserv
1858maintainer-clean-host: maybe-maintainer-clean-gprof
1859maintainer-clean-host: maybe-maintainer-clean-gzip
1860maintainer-clean-host: maybe-maintainer-clean-hello
1861maintainer-clean-host: maybe-maintainer-clean-indent
1862maintainer-clean-host: maybe-maintainer-clean-intl
1863maintainer-clean-host: maybe-maintainer-clean-tcl
1864maintainer-clean-host: maybe-maintainer-clean-itcl
1865maintainer-clean-host: maybe-maintainer-clean-ld
1866maintainer-clean-host: maybe-maintainer-clean-libcpp
1867maintainer-clean-host: maybe-maintainer-clean-libdecnumber
1868maintainer-clean-host: maybe-maintainer-clean-libgui
1869maintainer-clean-host: maybe-maintainer-clean-libiberty
1870maintainer-clean-host: maybe-maintainer-clean-libtool
1871maintainer-clean-host: maybe-maintainer-clean-m4
1872maintainer-clean-host: maybe-maintainer-clean-make
1873maintainer-clean-host: maybe-maintainer-clean-mmalloc
1874maintainer-clean-host: maybe-maintainer-clean-patch
1875maintainer-clean-host: maybe-maintainer-clean-perl
1876maintainer-clean-host: maybe-maintainer-clean-prms
1877maintainer-clean-host: maybe-maintainer-clean-rcs
1878maintainer-clean-host: maybe-maintainer-clean-readline
1879maintainer-clean-host: maybe-maintainer-clean-release
1880maintainer-clean-host: maybe-maintainer-clean-recode
1881maintainer-clean-host: maybe-maintainer-clean-sed
1882maintainer-clean-host: maybe-maintainer-clean-send-pr
1883maintainer-clean-host: maybe-maintainer-clean-shellutils
1884maintainer-clean-host: maybe-maintainer-clean-sid
1885maintainer-clean-host: maybe-maintainer-clean-sim
1886maintainer-clean-host: maybe-maintainer-clean-tar
1887maintainer-clean-host: maybe-maintainer-clean-texinfo
1888maintainer-clean-host: maybe-maintainer-clean-textutils
1889maintainer-clean-host: maybe-maintainer-clean-time
1890maintainer-clean-host: maybe-maintainer-clean-uudecode
1891maintainer-clean-host: maybe-maintainer-clean-wdiff
1892maintainer-clean-host: maybe-maintainer-clean-zip
1893maintainer-clean-host: maybe-maintainer-clean-zlib
1894maintainer-clean-host: maybe-maintainer-clean-gdb
1895maintainer-clean-host: maybe-maintainer-clean-expect
1896maintainer-clean-host: maybe-maintainer-clean-guile
1897maintainer-clean-host: maybe-maintainer-clean-tk
1898maintainer-clean-host: maybe-maintainer-clean-libtermcap
1899maintainer-clean-host: maybe-maintainer-clean-utils
1900maintainer-clean-host: maybe-maintainer-clean-gnattools
1358ccea 1901
295f4e42 1902.PHONY: maintainer-clean-target
cc11cc9b
PB
1903
1904maintainer-clean-target: maybe-maintainer-clean-target-libstdc++-v3
1905maintainer-clean-target: maybe-maintainer-clean-target-libmudflap
1906maintainer-clean-target: maybe-maintainer-clean-target-libssp
cc11cc9b
PB
1907maintainer-clean-target: maybe-maintainer-clean-target-newlib
1908maintainer-clean-target: maybe-maintainer-clean-target-libgfortran
1909maintainer-clean-target: maybe-maintainer-clean-target-libobjc
1910maintainer-clean-target: maybe-maintainer-clean-target-libtermcap
1911maintainer-clean-target: maybe-maintainer-clean-target-winsup
1912maintainer-clean-target: maybe-maintainer-clean-target-libgloss
1913maintainer-clean-target: maybe-maintainer-clean-target-libiberty
1914maintainer-clean-target: maybe-maintainer-clean-target-gperf
1915maintainer-clean-target: maybe-maintainer-clean-target-examples
1916maintainer-clean-target: maybe-maintainer-clean-target-libffi
1917maintainer-clean-target: maybe-maintainer-clean-target-libjava
1918maintainer-clean-target: maybe-maintainer-clean-target-zlib
1919maintainer-clean-target: maybe-maintainer-clean-target-boehm-gc
1920maintainer-clean-target: maybe-maintainer-clean-target-qthreads
1921maintainer-clean-target: maybe-maintainer-clean-target-rda
1922maintainer-clean-target: maybe-maintainer-clean-target-libada
1923maintainer-clean-target: maybe-maintainer-clean-target-libgomp
1358ccea 1924
1358ccea 1925
295f4e42 1926# Here are the targets which correspond to the do-X targets.
1358ccea 1927
65d6e994 1928.PHONY: info installcheck dvi html install-info install-html
295f4e42
NN
1929.PHONY: clean distclean mostlyclean maintainer-clean realclean
1930.PHONY: local-clean local-distclean local-maintainer-clean
1931info: do-info
1932installcheck: do-installcheck
1933dvi: do-dvi
f87a2b2e 1934html: do-html
1358ccea 1935
295f4e42
NN
1936# Make sure makeinfo is built before we do a `make info', if we're
1937# in fact building texinfo.
1938do-info: maybe-all-texinfo
1358ccea 1939
295f4e42 1940install-info: do-install-info dir.info
8c90b13a 1941 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
295f4e42
NN
1942 if [ -f dir.info ] ; then \
1943 $(INSTALL_DATA) dir.info $(DESTDIR)$(infodir)/dir.info ; \
1944 else true ; fi
1358ccea 1945
65d6e994
CD
1946install-html: do-install-html
1947
295f4e42
NN
1948local-clean:
1949 -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
1358ccea 1950
295f4e42
NN
1951local-distclean:
1952 -rm -f Makefile config.status config.cache mh-frag mt-frag
f41d6665 1953 -rm -f maybedep.tmp serdep.tmp
295f4e42
NN
1954 -if [ "$(TARGET_SUBDIR)" != "." ]; then \
1955 rm -rf $(TARGET_SUBDIR); \
1956 else true; fi
1957 -rm -rf $(BUILD_SUBDIR)
215c351a
PB
1958 -if [ "$(HOST_SUBDIR)" != "." ]; then \
1959 rm -rf $(HOST_SUBDIR); \
1960 else true; fi
295f4e42
NN
1961 -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile
1962 -rm -f texinfo/doc/Makefile texinfo/po/POTFILES
1963 -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
1964 -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
1965 -rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null
1358ccea 1966
295f4e42
NN
1967local-maintainer-clean:
1968 @echo "This command is intended for maintainers to use;"
1969 @echo "it deletes files that may require special tools to rebuild."
1358ccea 1970
295f4e42
NN
1971clean: do-clean local-clean
1972mostlyclean: do-mostlyclean local-clean
1973distclean: do-distclean local-clean local-distclean
05750653 1974maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean
295f4e42
NN
1975maintainer-clean: local-distclean
1976realclean: maintainer-clean
1358ccea 1977
2f3bdde7 1978# Extra dependency for clean-target, owing to the mixed nature of gcc.
295f4e42
NN
1979clean-target: clean-target-libgcc
1980clean-target-libgcc:
2f3bdde7 1981 test ! -d gcc || (cd gcc && $(MAKE) $@)
1358ccea 1982
295f4e42 1983# Check target.
1358ccea 1984
295f4e42
NN
1985.PHONY: check do-check
1986check: do-check
1358ccea 1987
295f4e42 1988# Only include modules actually being configured and built.
1061f99e
PB
1989.PHONY: check-host
1990check-host: \
295f4e42
NN
1991 maybe-check-ash \
1992 maybe-check-autoconf \
1993 maybe-check-automake \
1994 maybe-check-bash \
1995 maybe-check-bfd \
1996 maybe-check-opcodes \
1997 maybe-check-binutils \
1998 maybe-check-bison \
1999 maybe-check-byacc \
2000 maybe-check-bzip2 \
2001 maybe-check-dejagnu \
2002 maybe-check-diff \
2003 maybe-check-dosutils \
2004 maybe-check-etc \
2005 maybe-check-fastjar \
2006 maybe-check-fileutils \
2007 maybe-check-findutils \
2008 maybe-check-find \
53c7ffe7 2009 maybe-check-fixincludes \
295f4e42
NN
2010 maybe-check-flex \
2011 maybe-check-gas \
d32ab992 2012 maybe-check-gcc \
295f4e42
NN
2013 maybe-check-gawk \
2014 maybe-check-gettext \
2015 maybe-check-gnuserv \
2016 maybe-check-gprof \
2017 maybe-check-gzip \
2018 maybe-check-hello \
2019 maybe-check-indent \
2020 maybe-check-intl \
2021 maybe-check-tcl \
2022 maybe-check-itcl \
2023 maybe-check-ld \
4f4e53dd 2024 maybe-check-libcpp \
a4b6c45a 2025 maybe-check-libdecnumber \
295f4e42
NN
2026 maybe-check-libgui \
2027 maybe-check-libiberty \
2028 maybe-check-libtool \
2029 maybe-check-m4 \
2030 maybe-check-make \
2031 maybe-check-mmalloc \
2032 maybe-check-patch \
2033 maybe-check-perl \
2034 maybe-check-prms \
2035 maybe-check-rcs \
2036 maybe-check-readline \
2037 maybe-check-release \
2038 maybe-check-recode \
2039 maybe-check-sed \
2040 maybe-check-send-pr \
2041 maybe-check-shellutils \
2042 maybe-check-sid \
2043 maybe-check-sim \
2044 maybe-check-tar \
2045 maybe-check-texinfo \
2046 maybe-check-textutils \
2047 maybe-check-time \
2048 maybe-check-uudecode \
2049 maybe-check-wdiff \
2050 maybe-check-zip \
2051 maybe-check-zlib \
2052 maybe-check-gdb \
2053 maybe-check-expect \
2054 maybe-check-guile \
2055 maybe-check-tk \
295f4e42
NN
2056 maybe-check-libtermcap \
2057 maybe-check-utils \
1061f99e
PB
2058 maybe-check-gnattools
2059
2060.PHONY: check-target
2061check-target: \
295f4e42 2062 maybe-check-target-libstdc++-v3 \
6de9cd9a 2063 maybe-check-target-libmudflap \
77008252 2064 maybe-check-target-libssp \
295f4e42 2065 maybe-check-target-newlib \
6de9cd9a 2066 maybe-check-target-libgfortran \
295f4e42
NN
2067 maybe-check-target-libobjc \
2068 maybe-check-target-libtermcap \
2069 maybe-check-target-winsup \
2070 maybe-check-target-libgloss \
2071 maybe-check-target-libiberty \
2072 maybe-check-target-gperf \
2073 maybe-check-target-examples \
2074 maybe-check-target-libffi \
2075 maybe-check-target-libjava \
2076 maybe-check-target-zlib \
2077 maybe-check-target-boehm-gc \
2078 maybe-check-target-qthreads \
2079 maybe-check-target-rda \
953ff289
DN
2080 maybe-check-target-libada \
2081 maybe-check-target-libgomp
1061f99e
PB
2082
2083do-check:
f41d6665 2084 @: $(MAKE); $(unstage)
e7c84bf8
PB
2085 @r=`${PWD_COMMAND}`; export r; \
2086 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2087 $(MAKE) $(RECURSE_FLAGS_TO_PASS) check-host check-target
1358ccea 2088
295f4e42 2089# Automated reporting of test results.
1358ccea 2090
295f4e42
NN
2091warning.log: build.log
2092 $(srcdir)/contrib/warn_summary build.log > $@
d9cdb878 2093
295f4e42
NN
2094mail-report.log:
2095 if test x'$(BOOT_CFLAGS)' != x''; then \
2096 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
2097 fi; \
2098 $(srcdir)/contrib/test_summary -t >$@
2099 chmod +x $@
2100 echo If you really want to send e-mail, run ./$@ now
d9cdb878 2101
295f4e42
NN
2102mail-report-with-warnings.log: warning.log
2103 if test x'$(BOOT_CFLAGS)' != x''; then \
2104 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
2105 fi; \
2106 $(srcdir)/contrib/test_summary -t -i warning.log >$@
2107 chmod +x $@
2108 echo If you really want to send e-mail, run ./$@ now
d9cdb878 2109
295f4e42 2110# Installation targets.
1358ccea 2111
295f4e42 2112.PHONY: install uninstall
1061f99e 2113install:
f41d6665 2114 @: $(MAKE); $(unstage)
e7c84bf8
PB
2115 @r=`${PWD_COMMAND}`; export r; \
2116 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2117 $(MAKE) $(RECURSE_FLAGS_TO_PASS) installdirs install-host install-target
1358ccea 2118
295f4e42
NN
2119.PHONY: install-host-nogcc
2120install-host-nogcc: \
2121 maybe-install-ash \
2122 maybe-install-autoconf \
2123 maybe-install-automake \
2124 maybe-install-bash \
2125 maybe-install-bfd \
2126 maybe-install-opcodes \
2127 maybe-install-binutils \
2128 maybe-install-bison \
2129 maybe-install-byacc \
2130 maybe-install-bzip2 \
2131 maybe-install-dejagnu \
2132 maybe-install-diff \
2133 maybe-install-dosutils \
2134 maybe-install-etc \
2135 maybe-install-fastjar \
2136 maybe-install-fileutils \
2137 maybe-install-findutils \
2138 maybe-install-find \
53c7ffe7 2139 maybe-install-fixincludes \
295f4e42
NN
2140 maybe-install-flex \
2141 maybe-install-gas \
2142 maybe-install-gawk \
2143 maybe-install-gettext \
2144 maybe-install-gnuserv \
2145 maybe-install-gprof \
2146 maybe-install-gzip \
2147 maybe-install-hello \
2148 maybe-install-indent \
2149 maybe-install-intl \
2150 maybe-install-tcl \
2151 maybe-install-itcl \
2152 maybe-install-ld \
4f4e53dd 2153 maybe-install-libcpp \
a4b6c45a 2154 maybe-install-libdecnumber \
295f4e42
NN
2155 maybe-install-libgui \
2156 maybe-install-libiberty \
2157 maybe-install-libtool \
2158 maybe-install-m4 \
2159 maybe-install-make \
2160 maybe-install-mmalloc \
2161 maybe-install-patch \
2162 maybe-install-perl \
2163 maybe-install-prms \
2164 maybe-install-rcs \
2165 maybe-install-readline \
2166 maybe-install-release \
2167 maybe-install-recode \
2168 maybe-install-sed \
2169 maybe-install-send-pr \
2170 maybe-install-shellutils \
2171 maybe-install-sid \
2172 maybe-install-sim \
2173 maybe-install-tar \
2174 maybe-install-texinfo \
2175 maybe-install-textutils \
2176 maybe-install-time \
2177 maybe-install-uudecode \
2178 maybe-install-wdiff \
2179 maybe-install-zip \
2180 maybe-install-zlib \
2181 maybe-install-gdb \
2182 maybe-install-expect \
2183 maybe-install-guile \
2184 maybe-install-tk \
295f4e42 2185 maybe-install-libtermcap \
5395b47b
NN
2186 maybe-install-utils \
2187 maybe-install-gnattools
295f4e42
NN
2188
2189.PHONY: install-host
d32ab992 2190install-host: \
295f4e42
NN
2191 maybe-install-ash \
2192 maybe-install-autoconf \
2193 maybe-install-automake \
2194 maybe-install-bash \
2195 maybe-install-bfd \
2196 maybe-install-opcodes \
2197 maybe-install-binutils \
2198 maybe-install-bison \
2199 maybe-install-byacc \
2200 maybe-install-bzip2 \
2201 maybe-install-dejagnu \
2202 maybe-install-diff \
2203 maybe-install-dosutils \
2204 maybe-install-etc \
2205 maybe-install-fastjar \
2206 maybe-install-fileutils \
2207 maybe-install-findutils \
2208 maybe-install-find \
53c7ffe7 2209 maybe-install-fixincludes \
295f4e42
NN
2210 maybe-install-flex \
2211 maybe-install-gas \
d32ab992 2212 maybe-install-gcc \
295f4e42
NN
2213 maybe-install-gawk \
2214 maybe-install-gettext \
2215 maybe-install-gnuserv \
2216 maybe-install-gprof \
2217 maybe-install-gzip \
2218 maybe-install-hello \
2219 maybe-install-indent \
2220 maybe-install-intl \
2221 maybe-install-tcl \
2222 maybe-install-itcl \
2223 maybe-install-ld \
4f4e53dd 2224 maybe-install-libcpp \
a4b6c45a 2225 maybe-install-libdecnumber \
295f4e42
NN
2226 maybe-install-libgui \
2227 maybe-install-libiberty \
2228 maybe-install-libtool \
2229 maybe-install-m4 \
2230 maybe-install-make \
2231 maybe-install-mmalloc \
2232 maybe-install-patch \
2233 maybe-install-perl \
2234 maybe-install-prms \
2235 maybe-install-rcs \
2236 maybe-install-readline \
2237 maybe-install-release \
2238 maybe-install-recode \
2239 maybe-install-sed \
2240 maybe-install-send-pr \
2241 maybe-install-shellutils \
2242 maybe-install-sid \
2243 maybe-install-sim \
2244 maybe-install-tar \
2245 maybe-install-texinfo \
2246 maybe-install-textutils \
2247 maybe-install-time \
2248 maybe-install-uudecode \
2249 maybe-install-wdiff \
2250 maybe-install-zip \
2251 maybe-install-zlib \
2252 maybe-install-gdb \
2253 maybe-install-expect \
2254 maybe-install-guile \
2255 maybe-install-tk \
295f4e42 2256 maybe-install-libtermcap \
5395b47b
NN
2257 maybe-install-utils \
2258 maybe-install-gnattools
295f4e42
NN
2259
2260.PHONY: install-target
2261install-target: \
2262 maybe-install-target-libstdc++-v3 \
6de9cd9a 2263 maybe-install-target-libmudflap \
77008252 2264 maybe-install-target-libssp \
295f4e42 2265 maybe-install-target-newlib \
6de9cd9a 2266 maybe-install-target-libgfortran \
295f4e42
NN
2267 maybe-install-target-libobjc \
2268 maybe-install-target-libtermcap \
2269 maybe-install-target-winsup \
2270 maybe-install-target-libgloss \
2271 maybe-install-target-libiberty \
2272 maybe-install-target-gperf \
2273 maybe-install-target-examples \
2274 maybe-install-target-libffi \
2275 maybe-install-target-libjava \
2276 maybe-install-target-zlib \
2277 maybe-install-target-boehm-gc \
2278 maybe-install-target-qthreads \
2279 maybe-install-target-rda \
953ff289
DN
2280 maybe-install-target-libada \
2281 maybe-install-target-libgomp
1358ccea 2282
295f4e42
NN
2283uninstall:
2284 @echo "the uninstall target is not supported in this tree"
1358ccea 2285
295f4e42
NN
2286.PHONY: install.all
2287install.all: install-no-fixedincludes
2288 @if [ -f ./gcc/Makefile ] ; then \
2289 r=`${PWD_COMMAND}` ; export r ; \
f41d6665 2290 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a52a0a7f 2291 $(HOST_EXPORTS) \
295f4e42
NN
2292 (cd ./gcc && \
2293 $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \
2294 else \
2295 true ; \
2296 fi
1358ccea 2297
295f4e42
NN
2298# install-no-fixedincludes is used because Cygnus can not distribute
2299# the fixed header files.
2300.PHONY: install-no-fixedincludes
2301install-no-fixedincludes: installdirs install-host-nogcc \
2302 install-target gcc-no-fixedincludes
1358ccea 2303
295f4e42 2304### other supporting targets
1358ccea 2305
295f4e42
NN
2306MAKEDIRS= \
2307 $(DESTDIR)$(prefix) \
2308 $(DESTDIR)$(exec_prefix)
2309.PHONY: installdirs
2310installdirs: mkinstalldirs
2311 $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
1358ccea 2312
295f4e42
NN
2313dir.info: do-install-info
2314 if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \
2315 $(srcdir)/texinfo/gen-info-dir $(DESTDIR)$(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \
2316 mv -f dir.info.new dir.info ; \
2317 else true ; \
2318 fi
1358ccea 2319
295f4e42
NN
2320dist:
2321 @echo "Building a full distribution of this tree isn't done"
05750653 2322 @echo "via 'make dist'. Check out the etc/ subdirectory"
1358ccea 2323
295f4e42 2324etags tags: TAGS
1358ccea 2325
295f4e42
NN
2326# Right now this just builds TAGS in each subdirectory. emacs19 has the
2327# ability to use several tags files at once, so there is probably no need
2328# to combine them into one big TAGS file (like CVS 1.3 does). We could
2329# (if we felt like it) have this Makefile write a piece of elisp which
2330# the user could load to tell emacs19 where all the TAGS files we just
2331# built are.
2332TAGS: do-TAGS
1358ccea 2333
25b42232
PB
2334# ------------------------------------
2335# Macros for configure and all targets
2336# ------------------------------------
2337
2338
2339
2340
2341
295f4e42
NN
2342# --------------------------------------
2343# Modules which run on the build machine
2344# --------------------------------------
1358ccea 2345
25b42232 2346
295f4e42
NN
2347.PHONY: configure-build-libiberty maybe-configure-build-libiberty
2348maybe-configure-build-libiberty:
3ff3adad
PB
2349@if gcc-bootstrap
2350configure-build-libiberty: stage_current
2351@endif gcc-bootstrap
60975492
PB
2352@if build-libiberty
2353maybe-configure-build-libiberty: configure-build-libiberty
cc11cc9b 2354configure-build-libiberty:
f41d6665 2355 @: $(MAKE); $(unstage)
cc11cc9b 2356 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 2357 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
2358 test ! -f $(BUILD_SUBDIR)/libiberty/Makefile || exit 0; \
2359 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/libiberty ; \
4fc4dd12 2360 $(BUILD_EXPORTS) \
295f4e42
NN
2361 echo Configuring in $(BUILD_SUBDIR)/libiberty; \
2362 cd "$(BUILD_SUBDIR)/libiberty" || exit 1; \
2363 case $(srcdir) in \
215c351a
PB
2364 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2365 *) topdir=`echo $(BUILD_SUBDIR)/libiberty/ | \
2366 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 2367 esac; \
215c351a
PB
2368 srcdiroption="--srcdir=$${topdir}/libiberty"; \
2369 libsrcdir="$$s/libiberty"; \
295f4e42
NN
2370 rm -f no-such-file || : ; \
2371 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 2372 $(BUILD_CONFIGARGS) $${srcdiroption} \
1358ccea 2373 || exit 1
60975492 2374@endif build-libiberty
1358ccea 2375
25b42232
PB
2376
2377
ce406537
PB
2378
2379
295f4e42
NN
2380.PHONY: all-build-libiberty maybe-all-build-libiberty
2381maybe-all-build-libiberty:
3ff3adad
PB
2382@if gcc-bootstrap
2383all-build-libiberty: stage_current
2384@endif gcc-bootstrap
60975492 2385@if build-libiberty
7c27e184 2386TARGET-build-libiberty=all
60975492 2387maybe-all-build-libiberty: all-build-libiberty
295f4e42 2388all-build-libiberty: configure-build-libiberty
f41d6665 2389 @: $(MAKE); $(unstage)
295f4e42
NN
2390 @r=`${PWD_COMMAND}`; export r; \
2391 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 2392 $(BUILD_EXPORTS) \
7c27e184 2393 (cd $(BUILD_SUBDIR)/libiberty && \
25b42232 2394 $(MAKE) $(TARGET-build-libiberty))
60975492 2395@endif build-libiberty
295f4e42 2396
25b42232
PB
2397
2398
ce406537
PB
2399
2400
23f6b2f9
PB
2401.PHONY: configure-build-bison maybe-configure-build-bison
2402maybe-configure-build-bison:
3ff3adad
PB
2403@if gcc-bootstrap
2404configure-build-bison: stage_current
2405@endif gcc-bootstrap
23f6b2f9
PB
2406@if build-bison
2407maybe-configure-build-bison: configure-build-bison
cc11cc9b 2408configure-build-bison:
f41d6665 2409 @: $(MAKE); $(unstage)
cc11cc9b 2410 @r=`${PWD_COMMAND}`; export r; \
23f6b2f9 2411 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
2412 test ! -f $(BUILD_SUBDIR)/bison/Makefile || exit 0; \
2413 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/bison ; \
23f6b2f9
PB
2414 $(BUILD_EXPORTS) \
2415 echo Configuring in $(BUILD_SUBDIR)/bison; \
2416 cd "$(BUILD_SUBDIR)/bison" || exit 1; \
2417 case $(srcdir) in \
215c351a
PB
2418 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2419 *) topdir=`echo $(BUILD_SUBDIR)/bison/ | \
2420 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23f6b2f9 2421 esac; \
215c351a
PB
2422 srcdiroption="--srcdir=$${topdir}/bison"; \
2423 libsrcdir="$$s/bison"; \
23f6b2f9
PB
2424 rm -f no-such-file || : ; \
2425 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 2426 $(BUILD_CONFIGARGS) $${srcdiroption} \
23f6b2f9
PB
2427 || exit 1
2428@endif build-bison
2429
25b42232
PB
2430
2431
ce406537
PB
2432
2433
23f6b2f9
PB
2434.PHONY: all-build-bison maybe-all-build-bison
2435maybe-all-build-bison:
3ff3adad
PB
2436@if gcc-bootstrap
2437all-build-bison: stage_current
2438@endif gcc-bootstrap
23f6b2f9 2439@if build-bison
7c27e184 2440TARGET-build-bison=all
23f6b2f9
PB
2441maybe-all-build-bison: all-build-bison
2442all-build-bison: configure-build-bison
f41d6665 2443 @: $(MAKE); $(unstage)
23f6b2f9
PB
2444 @r=`${PWD_COMMAND}`; export r; \
2445 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2446 $(BUILD_EXPORTS) \
7c27e184 2447 (cd $(BUILD_SUBDIR)/bison && \
25b42232 2448 $(MAKE) $(TARGET-build-bison))
23f6b2f9
PB
2449@endif build-bison
2450
25b42232
PB
2451
2452
ce406537
PB
2453
2454
23f6b2f9
PB
2455.PHONY: configure-build-byacc maybe-configure-build-byacc
2456maybe-configure-build-byacc:
3ff3adad
PB
2457@if gcc-bootstrap
2458configure-build-byacc: stage_current
2459@endif gcc-bootstrap
23f6b2f9
PB
2460@if build-byacc
2461maybe-configure-build-byacc: configure-build-byacc
cc11cc9b 2462configure-build-byacc:
f41d6665 2463 @: $(MAKE); $(unstage)
cc11cc9b 2464 @r=`${PWD_COMMAND}`; export r; \
23f6b2f9 2465 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
2466 test ! -f $(BUILD_SUBDIR)/byacc/Makefile || exit 0; \
2467 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/byacc ; \
23f6b2f9
PB
2468 $(BUILD_EXPORTS) \
2469 echo Configuring in $(BUILD_SUBDIR)/byacc; \
2470 cd "$(BUILD_SUBDIR)/byacc" || exit 1; \
2471 case $(srcdir) in \
215c351a
PB
2472 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2473 *) topdir=`echo $(BUILD_SUBDIR)/byacc/ | \
2474 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23f6b2f9 2475 esac; \
215c351a
PB
2476 srcdiroption="--srcdir=$${topdir}/byacc"; \
2477 libsrcdir="$$s/byacc"; \
23f6b2f9
PB
2478 rm -f no-such-file || : ; \
2479 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 2480 $(BUILD_CONFIGARGS) $${srcdiroption} \
23f6b2f9
PB
2481 || exit 1
2482@endif build-byacc
2483
25b42232
PB
2484
2485
ce406537
PB
2486
2487
23f6b2f9
PB
2488.PHONY: all-build-byacc maybe-all-build-byacc
2489maybe-all-build-byacc:
3ff3adad
PB
2490@if gcc-bootstrap
2491all-build-byacc: stage_current
2492@endif gcc-bootstrap
23f6b2f9 2493@if build-byacc
7c27e184 2494TARGET-build-byacc=all
23f6b2f9
PB
2495maybe-all-build-byacc: all-build-byacc
2496all-build-byacc: configure-build-byacc
f41d6665 2497 @: $(MAKE); $(unstage)
23f6b2f9
PB
2498 @r=`${PWD_COMMAND}`; export r; \
2499 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2500 $(BUILD_EXPORTS) \
7c27e184 2501 (cd $(BUILD_SUBDIR)/byacc && \
25b42232 2502 $(MAKE) $(TARGET-build-byacc))
23f6b2f9
PB
2503@endif build-byacc
2504
25b42232
PB
2505
2506
ce406537
PB
2507
2508
23f6b2f9
PB
2509.PHONY: configure-build-flex maybe-configure-build-flex
2510maybe-configure-build-flex:
3ff3adad
PB
2511@if gcc-bootstrap
2512configure-build-flex: stage_current
2513@endif gcc-bootstrap
23f6b2f9
PB
2514@if build-flex
2515maybe-configure-build-flex: configure-build-flex
cc11cc9b 2516configure-build-flex:
f41d6665 2517 @: $(MAKE); $(unstage)
cc11cc9b 2518 @r=`${PWD_COMMAND}`; export r; \
23f6b2f9 2519 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
2520 test ! -f $(BUILD_SUBDIR)/flex/Makefile || exit 0; \
2521 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/flex ; \
23f6b2f9
PB
2522 $(BUILD_EXPORTS) \
2523 echo Configuring in $(BUILD_SUBDIR)/flex; \
2524 cd "$(BUILD_SUBDIR)/flex" || exit 1; \
2525 case $(srcdir) in \
215c351a
PB
2526 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2527 *) topdir=`echo $(BUILD_SUBDIR)/flex/ | \
2528 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23f6b2f9 2529 esac; \
215c351a
PB
2530 srcdiroption="--srcdir=$${topdir}/flex"; \
2531 libsrcdir="$$s/flex"; \
23f6b2f9
PB
2532 rm -f no-such-file || : ; \
2533 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 2534 $(BUILD_CONFIGARGS) $${srcdiroption} \
23f6b2f9
PB
2535 || exit 1
2536@endif build-flex
2537
25b42232
PB
2538
2539
ce406537
PB
2540
2541
23f6b2f9
PB
2542.PHONY: all-build-flex maybe-all-build-flex
2543maybe-all-build-flex:
3ff3adad
PB
2544@if gcc-bootstrap
2545all-build-flex: stage_current
2546@endif gcc-bootstrap
23f6b2f9 2547@if build-flex
7c27e184 2548TARGET-build-flex=all
23f6b2f9
PB
2549maybe-all-build-flex: all-build-flex
2550all-build-flex: configure-build-flex
f41d6665 2551 @: $(MAKE); $(unstage)
23f6b2f9
PB
2552 @r=`${PWD_COMMAND}`; export r; \
2553 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2554 $(BUILD_EXPORTS) \
7c27e184 2555 (cd $(BUILD_SUBDIR)/flex && \
25b42232 2556 $(MAKE) $(TARGET-build-flex))
23f6b2f9
PB
2557@endif build-flex
2558
25b42232
PB
2559
2560
ce406537
PB
2561
2562
23f6b2f9
PB
2563.PHONY: configure-build-m4 maybe-configure-build-m4
2564maybe-configure-build-m4:
3ff3adad
PB
2565@if gcc-bootstrap
2566configure-build-m4: stage_current
2567@endif gcc-bootstrap
23f6b2f9
PB
2568@if build-m4
2569maybe-configure-build-m4: configure-build-m4
cc11cc9b 2570configure-build-m4:
f41d6665 2571 @: $(MAKE); $(unstage)
cc11cc9b 2572 @r=`${PWD_COMMAND}`; export r; \
23f6b2f9 2573 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
2574 test ! -f $(BUILD_SUBDIR)/m4/Makefile || exit 0; \
2575 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/m4 ; \
23f6b2f9
PB
2576 $(BUILD_EXPORTS) \
2577 echo Configuring in $(BUILD_SUBDIR)/m4; \
2578 cd "$(BUILD_SUBDIR)/m4" || exit 1; \
2579 case $(srcdir) in \
215c351a
PB
2580 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2581 *) topdir=`echo $(BUILD_SUBDIR)/m4/ | \
2582 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23f6b2f9 2583 esac; \
215c351a
PB
2584 srcdiroption="--srcdir=$${topdir}/m4"; \
2585 libsrcdir="$$s/m4"; \
23f6b2f9
PB
2586 rm -f no-such-file || : ; \
2587 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 2588 $(BUILD_CONFIGARGS) $${srcdiroption} \
23f6b2f9
PB
2589 || exit 1
2590@endif build-m4
2591
25b42232
PB
2592
2593
ce406537
PB
2594
2595
23f6b2f9
PB
2596.PHONY: all-build-m4 maybe-all-build-m4
2597maybe-all-build-m4:
3ff3adad
PB
2598@if gcc-bootstrap
2599all-build-m4: stage_current
2600@endif gcc-bootstrap
23f6b2f9 2601@if build-m4
7c27e184 2602TARGET-build-m4=all
23f6b2f9
PB
2603maybe-all-build-m4: all-build-m4
2604all-build-m4: configure-build-m4
f41d6665 2605 @: $(MAKE); $(unstage)
23f6b2f9
PB
2606 @r=`${PWD_COMMAND}`; export r; \
2607 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2608 $(BUILD_EXPORTS) \
7c27e184 2609 (cd $(BUILD_SUBDIR)/m4 && \
25b42232 2610 $(MAKE) $(TARGET-build-m4))
23f6b2f9
PB
2611@endif build-m4
2612
25b42232
PB
2613
2614
ce406537
PB
2615
2616
23f6b2f9
PB
2617.PHONY: configure-build-texinfo maybe-configure-build-texinfo
2618maybe-configure-build-texinfo:
3ff3adad
PB
2619@if gcc-bootstrap
2620configure-build-texinfo: stage_current
2621@endif gcc-bootstrap
23f6b2f9
PB
2622@if build-texinfo
2623maybe-configure-build-texinfo: configure-build-texinfo
cc11cc9b 2624configure-build-texinfo:
f41d6665 2625 @: $(MAKE); $(unstage)
cc11cc9b 2626 @r=`${PWD_COMMAND}`; export r; \
23f6b2f9 2627 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
2628 test ! -f $(BUILD_SUBDIR)/texinfo/Makefile || exit 0; \
2629 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/texinfo ; \
23f6b2f9
PB
2630 $(BUILD_EXPORTS) \
2631 echo Configuring in $(BUILD_SUBDIR)/texinfo; \
2632 cd "$(BUILD_SUBDIR)/texinfo" || exit 1; \
2633 case $(srcdir) in \
215c351a
PB
2634 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2635 *) topdir=`echo $(BUILD_SUBDIR)/texinfo/ | \
2636 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23f6b2f9 2637 esac; \
215c351a
PB
2638 srcdiroption="--srcdir=$${topdir}/texinfo"; \
2639 libsrcdir="$$s/texinfo"; \
23f6b2f9
PB
2640 rm -f no-such-file || : ; \
2641 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 2642 $(BUILD_CONFIGARGS) $${srcdiroption} \
23f6b2f9
PB
2643 || exit 1
2644@endif build-texinfo
2645
25b42232
PB
2646
2647
ce406537
PB
2648
2649
23f6b2f9
PB
2650.PHONY: all-build-texinfo maybe-all-build-texinfo
2651maybe-all-build-texinfo:
3ff3adad
PB
2652@if gcc-bootstrap
2653all-build-texinfo: stage_current
2654@endif gcc-bootstrap
23f6b2f9 2655@if build-texinfo
7c27e184 2656TARGET-build-texinfo=all
23f6b2f9
PB
2657maybe-all-build-texinfo: all-build-texinfo
2658all-build-texinfo: configure-build-texinfo
f41d6665 2659 @: $(MAKE); $(unstage)
23f6b2f9
PB
2660 @r=`${PWD_COMMAND}`; export r; \
2661 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2662 $(BUILD_EXPORTS) \
7c27e184 2663 (cd $(BUILD_SUBDIR)/texinfo && \
25b42232 2664 $(MAKE) $(TARGET-build-texinfo))
23f6b2f9
PB
2665@endif build-texinfo
2666
25b42232
PB
2667
2668
ce406537
PB
2669
2670
71b5d516
PB
2671.PHONY: configure-build-fixincludes maybe-configure-build-fixincludes
2672maybe-configure-build-fixincludes:
3ff3adad
PB
2673@if gcc-bootstrap
2674configure-build-fixincludes: stage_current
2675@endif gcc-bootstrap
71b5d516
PB
2676@if build-fixincludes
2677maybe-configure-build-fixincludes: configure-build-fixincludes
cc11cc9b 2678configure-build-fixincludes:
f41d6665 2679 @: $(MAKE); $(unstage)
cc11cc9b 2680 @r=`${PWD_COMMAND}`; export r; \
71b5d516 2681 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
2682 test ! -f $(BUILD_SUBDIR)/fixincludes/Makefile || exit 0; \
2683 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/fixincludes ; \
71b5d516
PB
2684 $(BUILD_EXPORTS) \
2685 echo Configuring in $(BUILD_SUBDIR)/fixincludes; \
2686 cd "$(BUILD_SUBDIR)/fixincludes" || exit 1; \
2687 case $(srcdir) in \
215c351a
PB
2688 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2689 *) topdir=`echo $(BUILD_SUBDIR)/fixincludes/ | \
2690 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
71b5d516 2691 esac; \
215c351a
PB
2692 srcdiroption="--srcdir=$${topdir}/fixincludes"; \
2693 libsrcdir="$$s/fixincludes"; \
71b5d516
PB
2694 rm -f no-such-file || : ; \
2695 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 2696 $(BUILD_CONFIGARGS) $${srcdiroption} \
71b5d516
PB
2697 || exit 1
2698@endif build-fixincludes
2699
25b42232
PB
2700
2701
ce406537
PB
2702
2703
71b5d516
PB
2704.PHONY: all-build-fixincludes maybe-all-build-fixincludes
2705maybe-all-build-fixincludes:
3ff3adad
PB
2706@if gcc-bootstrap
2707all-build-fixincludes: stage_current
2708@endif gcc-bootstrap
71b5d516
PB
2709@if build-fixincludes
2710TARGET-build-fixincludes=all
2711maybe-all-build-fixincludes: all-build-fixincludes
2712all-build-fixincludes: configure-build-fixincludes
f41d6665 2713 @: $(MAKE); $(unstage)
71b5d516
PB
2714 @r=`${PWD_COMMAND}`; export r; \
2715 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2716 $(BUILD_EXPORTS) \
2717 (cd $(BUILD_SUBDIR)/fixincludes && \
25b42232 2718 $(MAKE) $(TARGET-build-fixincludes))
71b5d516
PB
2719@endif build-fixincludes
2720
1358ccea 2721
25b42232 2722
ce406537
PB
2723
2724
295f4e42
NN
2725# --------------------------------------
2726# Modules which run on the host machine
2727# --------------------------------------
1358ccea 2728
25b42232 2729
295f4e42
NN
2730.PHONY: configure-ash maybe-configure-ash
2731maybe-configure-ash:
3ff3adad
PB
2732@if gcc-bootstrap
2733configure-ash: stage_current
2734@endif gcc-bootstrap
60975492
PB
2735@if ash
2736maybe-configure-ash: configure-ash
cc11cc9b 2737configure-ash:
f41d6665 2738 @: $(MAKE); $(unstage)
cc11cc9b 2739 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 2740 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
2741 test ! -f $(HOST_SUBDIR)/ash/Makefile || exit 0; \
2742 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ash ; \
4fc4dd12 2743 $(HOST_EXPORTS) \
25b42232
PB
2744 echo Configuring in $(HOST_SUBDIR)/ash; \
2745 cd "$(HOST_SUBDIR)/ash" || exit 1; \
295f4e42 2746 case $(srcdir) in \
215c351a
PB
2747 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2748 *) topdir=`echo $(HOST_SUBDIR)/ash/ | \
2749 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 2750 esac; \
215c351a
PB
2751 srcdiroption="--srcdir=$${topdir}/ash"; \
2752 libsrcdir="$$s/ash"; \
295f4e42 2753 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 2754 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 2755 || exit 1
60975492 2756@endif ash
1358ccea 2757
25b42232
PB
2758
2759
ce406537
PB
2760
2761
295f4e42
NN
2762.PHONY: all-ash maybe-all-ash
2763maybe-all-ash:
3ff3adad
PB
2764@if gcc-bootstrap
2765all-ash: stage_current
2766@endif gcc-bootstrap
60975492 2767@if ash
7e0b5752 2768TARGET-ash=all
60975492 2769maybe-all-ash: all-ash
295f4e42 2770all-ash: configure-ash
f41d6665 2771 @: $(MAKE); $(unstage)
295f4e42
NN
2772 @r=`${PWD_COMMAND}`; export r; \
2773 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 2774 $(HOST_EXPORTS) \
215c351a
PB
2775 (cd $(HOST_SUBDIR)/ash && \
2776 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-ash))
60975492 2777@endif ash
1358ccea 2778
25b42232 2779
ce406537
PB
2780
2781
295f4e42
NN
2782.PHONY: check-ash maybe-check-ash
2783maybe-check-ash:
60975492
PB
2784@if ash
2785maybe-check-ash: check-ash
1358ccea 2786
295f4e42 2787check-ash:
f41d6665 2788 @: $(MAKE); $(unstage)
295f4e42 2789 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 2790 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 2791 $(HOST_EXPORTS) \
215c351a
PB
2792 (cd $(HOST_SUBDIR)/ash && \
2793 $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 2794
60975492 2795@endif ash
1358ccea 2796
295f4e42
NN
2797.PHONY: install-ash maybe-install-ash
2798maybe-install-ash:
60975492
PB
2799@if ash
2800maybe-install-ash: install-ash
1358ccea 2801
295f4e42 2802install-ash: installdirs
f41d6665 2803 @: $(MAKE); $(unstage)
295f4e42 2804 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 2805 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 2806 $(HOST_EXPORTS) \
215c351a 2807 (cd $(HOST_SUBDIR)/ash && \
ace9ac7b 2808 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 2809
60975492 2810@endif ash
1358ccea 2811
295f4e42 2812# Other targets (info, dvi, etc.)
1358ccea 2813
295f4e42
NN
2814.PHONY: maybe-info-ash info-ash
2815maybe-info-ash:
60975492
PB
2816@if ash
2817maybe-info-ash: info-ash
295f4e42
NN
2818
2819info-ash: \
05750653 2820 configure-ash
f41d6665 2821 @: $(MAKE); $(unstage)
295f4e42 2822 @[ -f ./ash/Makefile ] || exit 0; \
8c90b13a
L
2823 r=`${PWD_COMMAND}`; export r; \
2824 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 2825 $(HOST_EXPORTS) \
d32ab992 2826 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
2827 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2828 done; \
295f4e42 2829 echo "Doing info in ash" ; \
215c351a 2830 (cd $(HOST_SUBDIR)/ash && \
1358ccea
NN
2831 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2832 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2833 "RANLIB=$${RANLIB}" \
2834 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 2835 info) \
1358ccea
NN
2836 || exit 1
2837
60975492 2838@endif ash
1358ccea 2839
295f4e42
NN
2840.PHONY: maybe-dvi-ash dvi-ash
2841maybe-dvi-ash:
60975492
PB
2842@if ash
2843maybe-dvi-ash: dvi-ash
1358ccea 2844
295f4e42 2845dvi-ash: \
05750653 2846 configure-ash
f41d6665 2847 @: $(MAKE); $(unstage)
295f4e42 2848 @[ -f ./ash/Makefile ] || exit 0; \
8c90b13a
L
2849 r=`${PWD_COMMAND}`; export r; \
2850 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 2851 $(HOST_EXPORTS) \
d32ab992 2852 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
2853 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2854 done; \
295f4e42 2855 echo "Doing dvi in ash" ; \
215c351a 2856 (cd $(HOST_SUBDIR)/ash && \
1358ccea
NN
2857 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2858 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2859 "RANLIB=$${RANLIB}" \
2860 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 2861 dvi) \
1358ccea
NN
2862 || exit 1
2863
60975492 2864@endif ash
1358ccea 2865
f87a2b2e
MS
2866.PHONY: maybe-html-ash html-ash
2867maybe-html-ash:
2868@if ash
2869maybe-html-ash: html-ash
2870
2871html-ash: \
05750653 2872 configure-ash
f41d6665 2873 @: $(MAKE); $(unstage)
f87a2b2e
MS
2874 @[ -f ./ash/Makefile ] || exit 0; \
2875 r=`${PWD_COMMAND}`; export r; \
2876 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
2877 $(HOST_EXPORTS) \
2878 for flag in $(EXTRA_HOST_FLAGS) ; do \
2879 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2880 done; \
2881 echo "Doing html in ash" ; \
215c351a 2882 (cd $(HOST_SUBDIR)/ash && \
f87a2b2e
MS
2883 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2884 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2885 "RANLIB=$${RANLIB}" \
2886 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2887 html) \
2888 || exit 1
2889
2890@endif ash
2891
295f4e42
NN
2892.PHONY: maybe-TAGS-ash TAGS-ash
2893maybe-TAGS-ash:
60975492
PB
2894@if ash
2895maybe-TAGS-ash: TAGS-ash
1358ccea 2896
295f4e42 2897TAGS-ash: \
05750653 2898 configure-ash
f41d6665 2899 @: $(MAKE); $(unstage)
295f4e42 2900 @[ -f ./ash/Makefile ] || exit 0; \
8c90b13a
L
2901 r=`${PWD_COMMAND}`; export r; \
2902 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 2903 $(HOST_EXPORTS) \
d32ab992 2904 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
2905 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2906 done; \
295f4e42 2907 echo "Doing TAGS in ash" ; \
215c351a 2908 (cd $(HOST_SUBDIR)/ash && \
1358ccea
NN
2909 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2910 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2911 "RANLIB=$${RANLIB}" \
2912 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 2913 TAGS) \
1358ccea
NN
2914 || exit 1
2915
60975492 2916@endif ash
1358ccea 2917
295f4e42
NN
2918.PHONY: maybe-install-info-ash install-info-ash
2919maybe-install-info-ash:
60975492
PB
2920@if ash
2921maybe-install-info-ash: install-info-ash
1358ccea 2922
295f4e42
NN
2923install-info-ash: \
2924 configure-ash \
05750653 2925 info-ash
f41d6665 2926 @: $(MAKE); $(unstage)
295f4e42 2927 @[ -f ./ash/Makefile ] || exit 0; \
8c90b13a
L
2928 r=`${PWD_COMMAND}`; export r; \
2929 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 2930 $(HOST_EXPORTS) \
d32ab992 2931 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
2932 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2933 done; \
295f4e42 2934 echo "Doing install-info in ash" ; \
215c351a 2935 (cd $(HOST_SUBDIR)/ash && \
1358ccea
NN
2936 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2937 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2938 "RANLIB=$${RANLIB}" \
2939 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 2940 install-info) \
1358ccea
NN
2941 || exit 1
2942
60975492 2943@endif ash
1358ccea 2944
65d6e994
CD
2945.PHONY: maybe-install-html-ash install-html-ash
2946maybe-install-html-ash:
2947@if ash
2948maybe-install-html-ash: install-html-ash
2949
2950install-html-ash: \
2951 configure-ash \
2952 html-ash
2953 @: $(MAKE); $(unstage)
2954 @[ -f ./ash/Makefile ] || exit 0; \
2955 r=`${PWD_COMMAND}`; export r; \
2956 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2957 $(HOST_EXPORTS) \
2958 for flag in $(EXTRA_HOST_FLAGS) ; do \
2959 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2960 done; \
2961 echo "Doing install-html in ash" ; \
2962 (cd $(HOST_SUBDIR)/ash && \
2963 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2964 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2965 "RANLIB=$${RANLIB}" \
2966 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2967 install-html) \
2968 || exit 1
2969
2970@endif ash
2971
295f4e42
NN
2972.PHONY: maybe-installcheck-ash installcheck-ash
2973maybe-installcheck-ash:
60975492
PB
2974@if ash
2975maybe-installcheck-ash: installcheck-ash
1358ccea 2976
295f4e42 2977installcheck-ash: \
05750653 2978 configure-ash
f41d6665 2979 @: $(MAKE); $(unstage)
295f4e42 2980 @[ -f ./ash/Makefile ] || exit 0; \
8c90b13a
L
2981 r=`${PWD_COMMAND}`; export r; \
2982 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 2983 $(HOST_EXPORTS) \
d32ab992 2984 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
2985 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2986 done; \
295f4e42 2987 echo "Doing installcheck in ash" ; \
215c351a 2988 (cd $(HOST_SUBDIR)/ash && \
1358ccea
NN
2989 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2990 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2991 "RANLIB=$${RANLIB}" \
2992 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 2993 installcheck) \
1358ccea
NN
2994 || exit 1
2995
60975492 2996@endif ash
1358ccea 2997
295f4e42
NN
2998.PHONY: maybe-mostlyclean-ash mostlyclean-ash
2999maybe-mostlyclean-ash:
60975492
PB
3000@if ash
3001maybe-mostlyclean-ash: mostlyclean-ash
1358ccea 3002
05750653 3003mostlyclean-ash:
f41d6665 3004 @: $(MAKE); $(unstage)
295f4e42 3005 @[ -f ./ash/Makefile ] || exit 0; \
8c90b13a
L
3006 r=`${PWD_COMMAND}`; export r; \
3007 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3008 $(HOST_EXPORTS) \
d32ab992 3009 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3010 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3011 done; \
295f4e42 3012 echo "Doing mostlyclean in ash" ; \
215c351a 3013 (cd $(HOST_SUBDIR)/ash && \
1358ccea
NN
3014 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3015 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3016 "RANLIB=$${RANLIB}" \
3017 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3018 mostlyclean) \
1358ccea
NN
3019 || exit 1
3020
60975492 3021@endif ash
1358ccea 3022
295f4e42
NN
3023.PHONY: maybe-clean-ash clean-ash
3024maybe-clean-ash:
60975492
PB
3025@if ash
3026maybe-clean-ash: clean-ash
1358ccea 3027
05750653 3028clean-ash:
f41d6665 3029 @: $(MAKE); $(unstage)
295f4e42 3030 @[ -f ./ash/Makefile ] || exit 0; \
8c90b13a
L
3031 r=`${PWD_COMMAND}`; export r; \
3032 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3033 $(HOST_EXPORTS) \
d32ab992 3034 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3035 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3036 done; \
295f4e42 3037 echo "Doing clean in ash" ; \
215c351a 3038 (cd $(HOST_SUBDIR)/ash && \
1358ccea
NN
3039 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3040 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3041 "RANLIB=$${RANLIB}" \
3042 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3043 clean) \
1358ccea
NN
3044 || exit 1
3045
60975492 3046@endif ash
1358ccea 3047
295f4e42
NN
3048.PHONY: maybe-distclean-ash distclean-ash
3049maybe-distclean-ash:
60975492
PB
3050@if ash
3051maybe-distclean-ash: distclean-ash
1358ccea 3052
05750653 3053distclean-ash:
f41d6665 3054 @: $(MAKE); $(unstage)
295f4e42 3055 @[ -f ./ash/Makefile ] || exit 0; \
8c90b13a
L
3056 r=`${PWD_COMMAND}`; export r; \
3057 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3058 $(HOST_EXPORTS) \
d32ab992 3059 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3060 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3061 done; \
295f4e42 3062 echo "Doing distclean in ash" ; \
215c351a 3063 (cd $(HOST_SUBDIR)/ash && \
1358ccea
NN
3064 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3065 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3066 "RANLIB=$${RANLIB}" \
3067 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3068 distclean) \
1358ccea
NN
3069 || exit 1
3070
60975492 3071@endif ash
1358ccea 3072
295f4e42
NN
3073.PHONY: maybe-maintainer-clean-ash maintainer-clean-ash
3074maybe-maintainer-clean-ash:
60975492
PB
3075@if ash
3076maybe-maintainer-clean-ash: maintainer-clean-ash
1358ccea 3077
05750653 3078maintainer-clean-ash:
f41d6665 3079 @: $(MAKE); $(unstage)
295f4e42 3080 @[ -f ./ash/Makefile ] || exit 0; \
8c90b13a
L
3081 r=`${PWD_COMMAND}`; export r; \
3082 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3083 $(HOST_EXPORTS) \
d32ab992 3084 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3085 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3086 done; \
295f4e42 3087 echo "Doing maintainer-clean in ash" ; \
215c351a 3088 (cd $(HOST_SUBDIR)/ash && \
1358ccea
NN
3089 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3090 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3091 "RANLIB=$${RANLIB}" \
3092 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3093 maintainer-clean) \
1358ccea
NN
3094 || exit 1
3095
60975492 3096@endif ash
1358ccea 3097
1358ccea 3098
25b42232 3099
295f4e42
NN
3100.PHONY: configure-autoconf maybe-configure-autoconf
3101maybe-configure-autoconf:
3ff3adad
PB
3102@if gcc-bootstrap
3103configure-autoconf: stage_current
3104@endif gcc-bootstrap
60975492
PB
3105@if autoconf
3106maybe-configure-autoconf: configure-autoconf
cc11cc9b 3107configure-autoconf:
f41d6665 3108 @: $(MAKE); $(unstage)
cc11cc9b 3109 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 3110 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
3111 test ! -f $(HOST_SUBDIR)/autoconf/Makefile || exit 0; \
3112 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/autoconf ; \
4fc4dd12 3113 $(HOST_EXPORTS) \
25b42232
PB
3114 echo Configuring in $(HOST_SUBDIR)/autoconf; \
3115 cd "$(HOST_SUBDIR)/autoconf" || exit 1; \
295f4e42 3116 case $(srcdir) in \
215c351a
PB
3117 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3118 *) topdir=`echo $(HOST_SUBDIR)/autoconf/ | \
3119 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 3120 esac; \
215c351a
PB
3121 srcdiroption="--srcdir=$${topdir}/autoconf"; \
3122 libsrcdir="$$s/autoconf"; \
295f4e42 3123 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 3124 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 3125 || exit 1
60975492 3126@endif autoconf
1358ccea 3127
25b42232
PB
3128
3129
ce406537
PB
3130
3131
295f4e42
NN
3132.PHONY: all-autoconf maybe-all-autoconf
3133maybe-all-autoconf:
3ff3adad
PB
3134@if gcc-bootstrap
3135all-autoconf: stage_current
3136@endif gcc-bootstrap
60975492 3137@if autoconf
7e0b5752 3138TARGET-autoconf=all
60975492 3139maybe-all-autoconf: all-autoconf
295f4e42 3140all-autoconf: configure-autoconf
f41d6665 3141 @: $(MAKE); $(unstage)
295f4e42
NN
3142 @r=`${PWD_COMMAND}`; export r; \
3143 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3144 $(HOST_EXPORTS) \
215c351a
PB
3145 (cd $(HOST_SUBDIR)/autoconf && \
3146 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-autoconf))
60975492 3147@endif autoconf
1358ccea 3148
25b42232 3149
ce406537
PB
3150
3151
295f4e42
NN
3152.PHONY: check-autoconf maybe-check-autoconf
3153maybe-check-autoconf:
60975492
PB
3154@if autoconf
3155maybe-check-autoconf: check-autoconf
1358ccea 3156
295f4e42 3157check-autoconf:
f41d6665 3158 @: $(MAKE); $(unstage)
295f4e42 3159 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 3160 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3161 $(HOST_EXPORTS) \
215c351a
PB
3162 (cd $(HOST_SUBDIR)/autoconf && \
3163 $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 3164
60975492 3165@endif autoconf
1358ccea 3166
295f4e42
NN
3167.PHONY: install-autoconf maybe-install-autoconf
3168maybe-install-autoconf:
60975492
PB
3169@if autoconf
3170maybe-install-autoconf: install-autoconf
1358ccea 3171
295f4e42 3172install-autoconf: installdirs
f41d6665 3173 @: $(MAKE); $(unstage)
295f4e42 3174 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 3175 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3176 $(HOST_EXPORTS) \
215c351a 3177 (cd $(HOST_SUBDIR)/autoconf && \
ace9ac7b 3178 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 3179
60975492 3180@endif autoconf
1358ccea 3181
295f4e42 3182# Other targets (info, dvi, etc.)
1358ccea 3183
295f4e42
NN
3184.PHONY: maybe-info-autoconf info-autoconf
3185maybe-info-autoconf:
60975492
PB
3186@if autoconf
3187maybe-info-autoconf: info-autoconf
295f4e42
NN
3188
3189info-autoconf: \
05750653 3190 configure-autoconf
f41d6665 3191 @: $(MAKE); $(unstage)
295f4e42 3192 @[ -f ./autoconf/Makefile ] || exit 0; \
8c90b13a
L
3193 r=`${PWD_COMMAND}`; export r; \
3194 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3195 $(HOST_EXPORTS) \
d32ab992 3196 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3197 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3198 done; \
295f4e42 3199 echo "Doing info in autoconf" ; \
215c351a 3200 (cd $(HOST_SUBDIR)/autoconf && \
1358ccea
NN
3201 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3202 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3203 "RANLIB=$${RANLIB}" \
3204 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3205 info) \
1358ccea
NN
3206 || exit 1
3207
60975492 3208@endif autoconf
1358ccea 3209
295f4e42
NN
3210.PHONY: maybe-dvi-autoconf dvi-autoconf
3211maybe-dvi-autoconf:
60975492
PB
3212@if autoconf
3213maybe-dvi-autoconf: dvi-autoconf
1358ccea 3214
295f4e42 3215dvi-autoconf: \
05750653 3216 configure-autoconf
f41d6665 3217 @: $(MAKE); $(unstage)
295f4e42 3218 @[ -f ./autoconf/Makefile ] || exit 0; \
8c90b13a
L
3219 r=`${PWD_COMMAND}`; export r; \
3220 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3221 $(HOST_EXPORTS) \
d32ab992 3222 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3223 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3224 done; \
295f4e42 3225 echo "Doing dvi in autoconf" ; \
215c351a 3226 (cd $(HOST_SUBDIR)/autoconf && \
1358ccea
NN
3227 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3228 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3229 "RANLIB=$${RANLIB}" \
3230 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3231 dvi) \
1358ccea
NN
3232 || exit 1
3233
60975492 3234@endif autoconf
1358ccea 3235
f87a2b2e
MS
3236.PHONY: maybe-html-autoconf html-autoconf
3237maybe-html-autoconf:
3238@if autoconf
3239maybe-html-autoconf: html-autoconf
3240
3241html-autoconf: \
05750653 3242 configure-autoconf
f41d6665 3243 @: $(MAKE); $(unstage)
f87a2b2e
MS
3244 @[ -f ./autoconf/Makefile ] || exit 0; \
3245 r=`${PWD_COMMAND}`; export r; \
3246 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
3247 $(HOST_EXPORTS) \
3248 for flag in $(EXTRA_HOST_FLAGS) ; do \
3249 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3250 done; \
3251 echo "Doing html in autoconf" ; \
215c351a 3252 (cd $(HOST_SUBDIR)/autoconf && \
f87a2b2e
MS
3253 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3254 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3255 "RANLIB=$${RANLIB}" \
3256 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3257 html) \
3258 || exit 1
3259
3260@endif autoconf
3261
295f4e42
NN
3262.PHONY: maybe-TAGS-autoconf TAGS-autoconf
3263maybe-TAGS-autoconf:
60975492
PB
3264@if autoconf
3265maybe-TAGS-autoconf: TAGS-autoconf
1358ccea 3266
295f4e42 3267TAGS-autoconf: \
05750653 3268 configure-autoconf
f41d6665 3269 @: $(MAKE); $(unstage)
295f4e42 3270 @[ -f ./autoconf/Makefile ] || exit 0; \
8c90b13a
L
3271 r=`${PWD_COMMAND}`; export r; \
3272 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3273 $(HOST_EXPORTS) \
d32ab992 3274 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3275 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3276 done; \
295f4e42 3277 echo "Doing TAGS in autoconf" ; \
215c351a 3278 (cd $(HOST_SUBDIR)/autoconf && \
1358ccea
NN
3279 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3280 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3281 "RANLIB=$${RANLIB}" \
3282 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3283 TAGS) \
1358ccea
NN
3284 || exit 1
3285
60975492 3286@endif autoconf
1358ccea 3287
295f4e42
NN
3288.PHONY: maybe-install-info-autoconf install-info-autoconf
3289maybe-install-info-autoconf:
60975492
PB
3290@if autoconf
3291maybe-install-info-autoconf: install-info-autoconf
1358ccea 3292
295f4e42
NN
3293install-info-autoconf: \
3294 configure-autoconf \
05750653 3295 info-autoconf
f41d6665 3296 @: $(MAKE); $(unstage)
295f4e42 3297 @[ -f ./autoconf/Makefile ] || exit 0; \
8c90b13a
L
3298 r=`${PWD_COMMAND}`; export r; \
3299 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3300 $(HOST_EXPORTS) \
d32ab992 3301 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3302 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3303 done; \
295f4e42 3304 echo "Doing install-info in autoconf" ; \
215c351a 3305 (cd $(HOST_SUBDIR)/autoconf && \
1358ccea
NN
3306 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3307 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3308 "RANLIB=$${RANLIB}" \
3309 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3310 install-info) \
1358ccea
NN
3311 || exit 1
3312
60975492 3313@endif autoconf
1358ccea 3314
65d6e994
CD
3315.PHONY: maybe-install-html-autoconf install-html-autoconf
3316maybe-install-html-autoconf:
3317@if autoconf
3318maybe-install-html-autoconf: install-html-autoconf
3319
3320install-html-autoconf: \
3321 configure-autoconf \
3322 html-autoconf
3323 @: $(MAKE); $(unstage)
3324 @[ -f ./autoconf/Makefile ] || exit 0; \
3325 r=`${PWD_COMMAND}`; export r; \
3326 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3327 $(HOST_EXPORTS) \
3328 for flag in $(EXTRA_HOST_FLAGS) ; do \
3329 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3330 done; \
3331 echo "Doing install-html in autoconf" ; \
3332 (cd $(HOST_SUBDIR)/autoconf && \
3333 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3334 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3335 "RANLIB=$${RANLIB}" \
3336 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3337 install-html) \
3338 || exit 1
3339
3340@endif autoconf
3341
295f4e42
NN
3342.PHONY: maybe-installcheck-autoconf installcheck-autoconf
3343maybe-installcheck-autoconf:
60975492
PB
3344@if autoconf
3345maybe-installcheck-autoconf: installcheck-autoconf
1358ccea 3346
295f4e42 3347installcheck-autoconf: \
05750653 3348 configure-autoconf
f41d6665 3349 @: $(MAKE); $(unstage)
295f4e42 3350 @[ -f ./autoconf/Makefile ] || exit 0; \
8c90b13a
L
3351 r=`${PWD_COMMAND}`; export r; \
3352 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3353 $(HOST_EXPORTS) \
d32ab992 3354 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3355 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3356 done; \
295f4e42 3357 echo "Doing installcheck in autoconf" ; \
215c351a 3358 (cd $(HOST_SUBDIR)/autoconf && \
1358ccea
NN
3359 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3360 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3361 "RANLIB=$${RANLIB}" \
3362 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3363 installcheck) \
1358ccea
NN
3364 || exit 1
3365
60975492 3366@endif autoconf
1358ccea 3367
295f4e42
NN
3368.PHONY: maybe-mostlyclean-autoconf mostlyclean-autoconf
3369maybe-mostlyclean-autoconf:
60975492
PB
3370@if autoconf
3371maybe-mostlyclean-autoconf: mostlyclean-autoconf
1358ccea 3372
05750653 3373mostlyclean-autoconf:
f41d6665 3374 @: $(MAKE); $(unstage)
295f4e42 3375 @[ -f ./autoconf/Makefile ] || exit 0; \
8c90b13a
L
3376 r=`${PWD_COMMAND}`; export r; \
3377 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3378 $(HOST_EXPORTS) \
d32ab992 3379 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3380 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3381 done; \
295f4e42 3382 echo "Doing mostlyclean in autoconf" ; \
215c351a 3383 (cd $(HOST_SUBDIR)/autoconf && \
1358ccea
NN
3384 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3385 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3386 "RANLIB=$${RANLIB}" \
3387 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3388 mostlyclean) \
1358ccea
NN
3389 || exit 1
3390
60975492 3391@endif autoconf
1358ccea 3392
295f4e42
NN
3393.PHONY: maybe-clean-autoconf clean-autoconf
3394maybe-clean-autoconf:
60975492
PB
3395@if autoconf
3396maybe-clean-autoconf: clean-autoconf
1358ccea 3397
05750653 3398clean-autoconf:
f41d6665 3399 @: $(MAKE); $(unstage)
295f4e42 3400 @[ -f ./autoconf/Makefile ] || exit 0; \
8c90b13a
L
3401 r=`${PWD_COMMAND}`; export r; \
3402 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3403 $(HOST_EXPORTS) \
d32ab992 3404 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3405 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3406 done; \
295f4e42 3407 echo "Doing clean in autoconf" ; \
215c351a 3408 (cd $(HOST_SUBDIR)/autoconf && \
1358ccea
NN
3409 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3410 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3411 "RANLIB=$${RANLIB}" \
3412 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3413 clean) \
1358ccea
NN
3414 || exit 1
3415
60975492 3416@endif autoconf
1358ccea 3417
295f4e42
NN
3418.PHONY: maybe-distclean-autoconf distclean-autoconf
3419maybe-distclean-autoconf:
60975492
PB
3420@if autoconf
3421maybe-distclean-autoconf: distclean-autoconf
1358ccea 3422
05750653 3423distclean-autoconf:
f41d6665 3424 @: $(MAKE); $(unstage)
295f4e42 3425 @[ -f ./autoconf/Makefile ] || exit 0; \
8c90b13a
L
3426 r=`${PWD_COMMAND}`; export r; \
3427 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3428 $(HOST_EXPORTS) \
d32ab992 3429 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3430 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3431 done; \
295f4e42 3432 echo "Doing distclean in autoconf" ; \
215c351a 3433 (cd $(HOST_SUBDIR)/autoconf && \
1358ccea
NN
3434 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3435 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3436 "RANLIB=$${RANLIB}" \
3437 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3438 distclean) \
1358ccea
NN
3439 || exit 1
3440
60975492 3441@endif autoconf
1358ccea 3442
295f4e42
NN
3443.PHONY: maybe-maintainer-clean-autoconf maintainer-clean-autoconf
3444maybe-maintainer-clean-autoconf:
60975492
PB
3445@if autoconf
3446maybe-maintainer-clean-autoconf: maintainer-clean-autoconf
1358ccea 3447
05750653 3448maintainer-clean-autoconf:
f41d6665 3449 @: $(MAKE); $(unstage)
295f4e42 3450 @[ -f ./autoconf/Makefile ] || exit 0; \
8c90b13a
L
3451 r=`${PWD_COMMAND}`; export r; \
3452 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3453 $(HOST_EXPORTS) \
d32ab992 3454 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3455 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3456 done; \
295f4e42 3457 echo "Doing maintainer-clean in autoconf" ; \
215c351a 3458 (cd $(HOST_SUBDIR)/autoconf && \
1358ccea
NN
3459 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3460 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3461 "RANLIB=$${RANLIB}" \
3462 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3463 maintainer-clean) \
1358ccea
NN
3464 || exit 1
3465
60975492 3466@endif autoconf
1358ccea 3467
1358ccea 3468
25b42232 3469
295f4e42
NN
3470.PHONY: configure-automake maybe-configure-automake
3471maybe-configure-automake:
3ff3adad
PB
3472@if gcc-bootstrap
3473configure-automake: stage_current
3474@endif gcc-bootstrap
60975492
PB
3475@if automake
3476maybe-configure-automake: configure-automake
cc11cc9b 3477configure-automake:
f41d6665 3478 @: $(MAKE); $(unstage)
cc11cc9b 3479 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 3480 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
3481 test ! -f $(HOST_SUBDIR)/automake/Makefile || exit 0; \
3482 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/automake ; \
4fc4dd12 3483 $(HOST_EXPORTS) \
25b42232
PB
3484 echo Configuring in $(HOST_SUBDIR)/automake; \
3485 cd "$(HOST_SUBDIR)/automake" || exit 1; \
295f4e42 3486 case $(srcdir) in \
215c351a
PB
3487 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3488 *) topdir=`echo $(HOST_SUBDIR)/automake/ | \
3489 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 3490 esac; \
215c351a
PB
3491 srcdiroption="--srcdir=$${topdir}/automake"; \
3492 libsrcdir="$$s/automake"; \
295f4e42 3493 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 3494 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 3495 || exit 1
60975492 3496@endif automake
1358ccea 3497
25b42232
PB
3498
3499
ce406537
PB
3500
3501
295f4e42
NN
3502.PHONY: all-automake maybe-all-automake
3503maybe-all-automake:
3ff3adad
PB
3504@if gcc-bootstrap
3505all-automake: stage_current
3506@endif gcc-bootstrap
60975492 3507@if automake
7e0b5752 3508TARGET-automake=all
60975492 3509maybe-all-automake: all-automake
295f4e42 3510all-automake: configure-automake
f41d6665 3511 @: $(MAKE); $(unstage)
295f4e42
NN
3512 @r=`${PWD_COMMAND}`; export r; \
3513 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3514 $(HOST_EXPORTS) \
215c351a
PB
3515 (cd $(HOST_SUBDIR)/automake && \
3516 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-automake))
60975492 3517@endif automake
1358ccea 3518
25b42232 3519
ce406537
PB
3520
3521
295f4e42
NN
3522.PHONY: check-automake maybe-check-automake
3523maybe-check-automake:
60975492
PB
3524@if automake
3525maybe-check-automake: check-automake
1358ccea 3526
295f4e42 3527check-automake:
f41d6665 3528 @: $(MAKE); $(unstage)
295f4e42 3529 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 3530 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3531 $(HOST_EXPORTS) \
215c351a
PB
3532 (cd $(HOST_SUBDIR)/automake && \
3533 $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 3534
60975492 3535@endif automake
1358ccea 3536
295f4e42
NN
3537.PHONY: install-automake maybe-install-automake
3538maybe-install-automake:
60975492
PB
3539@if automake
3540maybe-install-automake: install-automake
1358ccea 3541
295f4e42 3542install-automake: installdirs
f41d6665 3543 @: $(MAKE); $(unstage)
295f4e42 3544 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 3545 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3546 $(HOST_EXPORTS) \
215c351a 3547 (cd $(HOST_SUBDIR)/automake && \
ace9ac7b 3548 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 3549
60975492 3550@endif automake
1358ccea 3551
295f4e42 3552# Other targets (info, dvi, etc.)
1358ccea 3553
295f4e42
NN
3554.PHONY: maybe-info-automake info-automake
3555maybe-info-automake:
60975492
PB
3556@if automake
3557maybe-info-automake: info-automake
295f4e42
NN
3558
3559info-automake: \
05750653 3560 configure-automake
f41d6665 3561 @: $(MAKE); $(unstage)
295f4e42 3562 @[ -f ./automake/Makefile ] || exit 0; \
8c90b13a
L
3563 r=`${PWD_COMMAND}`; export r; \
3564 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3565 $(HOST_EXPORTS) \
d32ab992 3566 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3567 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3568 done; \
295f4e42 3569 echo "Doing info in automake" ; \
215c351a 3570 (cd $(HOST_SUBDIR)/automake && \
1358ccea
NN
3571 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3572 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3573 "RANLIB=$${RANLIB}" \
3574 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3575 info) \
1358ccea
NN
3576 || exit 1
3577
60975492 3578@endif automake
1358ccea 3579
295f4e42
NN
3580.PHONY: maybe-dvi-automake dvi-automake
3581maybe-dvi-automake:
60975492
PB
3582@if automake
3583maybe-dvi-automake: dvi-automake
1358ccea 3584
295f4e42 3585dvi-automake: \
05750653 3586 configure-automake
f41d6665 3587 @: $(MAKE); $(unstage)
295f4e42 3588 @[ -f ./automake/Makefile ] || exit 0; \
8c90b13a
L
3589 r=`${PWD_COMMAND}`; export r; \
3590 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3591 $(HOST_EXPORTS) \
d32ab992 3592 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3593 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3594 done; \
295f4e42 3595 echo "Doing dvi in automake" ; \
215c351a 3596 (cd $(HOST_SUBDIR)/automake && \
1358ccea
NN
3597 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3598 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3599 "RANLIB=$${RANLIB}" \
3600 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3601 dvi) \
1358ccea
NN
3602 || exit 1
3603
60975492 3604@endif automake
1358ccea 3605
f87a2b2e
MS
3606.PHONY: maybe-html-automake html-automake
3607maybe-html-automake:
3608@if automake
3609maybe-html-automake: html-automake
3610
3611html-automake: \
05750653 3612 configure-automake
f41d6665 3613 @: $(MAKE); $(unstage)
f87a2b2e
MS
3614 @[ -f ./automake/Makefile ] || exit 0; \
3615 r=`${PWD_COMMAND}`; export r; \
3616 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
3617 $(HOST_EXPORTS) \
3618 for flag in $(EXTRA_HOST_FLAGS) ; do \
3619 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3620 done; \
3621 echo "Doing html in automake" ; \
215c351a 3622 (cd $(HOST_SUBDIR)/automake && \
f87a2b2e
MS
3623 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3624 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3625 "RANLIB=$${RANLIB}" \
3626 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3627 html) \
3628 || exit 1
3629
3630@endif automake
3631
295f4e42
NN
3632.PHONY: maybe-TAGS-automake TAGS-automake
3633maybe-TAGS-automake:
60975492
PB
3634@if automake
3635maybe-TAGS-automake: TAGS-automake
1358ccea 3636
295f4e42 3637TAGS-automake: \
05750653 3638 configure-automake
f41d6665 3639 @: $(MAKE); $(unstage)
295f4e42 3640 @[ -f ./automake/Makefile ] || exit 0; \
8c90b13a
L
3641 r=`${PWD_COMMAND}`; export r; \
3642 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3643 $(HOST_EXPORTS) \
d32ab992 3644 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3645 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3646 done; \
295f4e42 3647 echo "Doing TAGS in automake" ; \
215c351a 3648 (cd $(HOST_SUBDIR)/automake && \
1358ccea
NN
3649 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3650 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3651 "RANLIB=$${RANLIB}" \
3652 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3653 TAGS) \
1358ccea
NN
3654 || exit 1
3655
60975492 3656@endif automake
1358ccea 3657
295f4e42
NN
3658.PHONY: maybe-install-info-automake install-info-automake
3659maybe-install-info-automake:
60975492
PB
3660@if automake
3661maybe-install-info-automake: install-info-automake
1358ccea 3662
295f4e42
NN
3663install-info-automake: \
3664 configure-automake \
05750653 3665 info-automake
f41d6665 3666 @: $(MAKE); $(unstage)
295f4e42 3667 @[ -f ./automake/Makefile ] || exit 0; \
8c90b13a
L
3668 r=`${PWD_COMMAND}`; export r; \
3669 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3670 $(HOST_EXPORTS) \
d32ab992 3671 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3672 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3673 done; \
295f4e42 3674 echo "Doing install-info in automake" ; \
215c351a 3675 (cd $(HOST_SUBDIR)/automake && \
1358ccea
NN
3676 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3677 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3678 "RANLIB=$${RANLIB}" \
3679 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3680 install-info) \
1358ccea
NN
3681 || exit 1
3682
60975492 3683@endif automake
1358ccea 3684
65d6e994
CD
3685.PHONY: maybe-install-html-automake install-html-automake
3686maybe-install-html-automake:
3687@if automake
3688maybe-install-html-automake: install-html-automake
3689
3690install-html-automake: \
3691 configure-automake \
3692 html-automake
3693 @: $(MAKE); $(unstage)
3694 @[ -f ./automake/Makefile ] || exit 0; \
3695 r=`${PWD_COMMAND}`; export r; \
3696 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3697 $(HOST_EXPORTS) \
3698 for flag in $(EXTRA_HOST_FLAGS) ; do \
3699 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3700 done; \
3701 echo "Doing install-html in automake" ; \
3702 (cd $(HOST_SUBDIR)/automake && \
3703 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3704 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3705 "RANLIB=$${RANLIB}" \
3706 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3707 install-html) \
3708 || exit 1
3709
3710@endif automake
3711
295f4e42
NN
3712.PHONY: maybe-installcheck-automake installcheck-automake
3713maybe-installcheck-automake:
60975492
PB
3714@if automake
3715maybe-installcheck-automake: installcheck-automake
1358ccea 3716
295f4e42 3717installcheck-automake: \
05750653 3718 configure-automake
f41d6665 3719 @: $(MAKE); $(unstage)
295f4e42 3720 @[ -f ./automake/Makefile ] || exit 0; \
8c90b13a
L
3721 r=`${PWD_COMMAND}`; export r; \
3722 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3723 $(HOST_EXPORTS) \
d32ab992 3724 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3725 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3726 done; \
295f4e42 3727 echo "Doing installcheck in automake" ; \
215c351a 3728 (cd $(HOST_SUBDIR)/automake && \
1358ccea
NN
3729 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3730 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3731 "RANLIB=$${RANLIB}" \
3732 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3733 installcheck) \
1358ccea
NN
3734 || exit 1
3735
60975492 3736@endif automake
1358ccea 3737
295f4e42
NN
3738.PHONY: maybe-mostlyclean-automake mostlyclean-automake
3739maybe-mostlyclean-automake:
60975492
PB
3740@if automake
3741maybe-mostlyclean-automake: mostlyclean-automake
1358ccea 3742
05750653 3743mostlyclean-automake:
f41d6665 3744 @: $(MAKE); $(unstage)
295f4e42 3745 @[ -f ./automake/Makefile ] || exit 0; \
8c90b13a
L
3746 r=`${PWD_COMMAND}`; export r; \
3747 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3748 $(HOST_EXPORTS) \
d32ab992 3749 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3750 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3751 done; \
295f4e42 3752 echo "Doing mostlyclean in automake" ; \
215c351a 3753 (cd $(HOST_SUBDIR)/automake && \
1358ccea
NN
3754 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3755 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3756 "RANLIB=$${RANLIB}" \
3757 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3758 mostlyclean) \
1358ccea
NN
3759 || exit 1
3760
60975492 3761@endif automake
1358ccea 3762
295f4e42
NN
3763.PHONY: maybe-clean-automake clean-automake
3764maybe-clean-automake:
60975492
PB
3765@if automake
3766maybe-clean-automake: clean-automake
1358ccea 3767
05750653 3768clean-automake:
f41d6665 3769 @: $(MAKE); $(unstage)
295f4e42 3770 @[ -f ./automake/Makefile ] || exit 0; \
8c90b13a
L
3771 r=`${PWD_COMMAND}`; export r; \
3772 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3773 $(HOST_EXPORTS) \
d32ab992 3774 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3775 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3776 done; \
295f4e42 3777 echo "Doing clean in automake" ; \
215c351a 3778 (cd $(HOST_SUBDIR)/automake && \
1358ccea
NN
3779 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3780 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3781 "RANLIB=$${RANLIB}" \
3782 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3783 clean) \
1358ccea
NN
3784 || exit 1
3785
60975492 3786@endif automake
1358ccea 3787
295f4e42
NN
3788.PHONY: maybe-distclean-automake distclean-automake
3789maybe-distclean-automake:
60975492
PB
3790@if automake
3791maybe-distclean-automake: distclean-automake
1358ccea 3792
05750653 3793distclean-automake:
f41d6665 3794 @: $(MAKE); $(unstage)
295f4e42 3795 @[ -f ./automake/Makefile ] || exit 0; \
8c90b13a
L
3796 r=`${PWD_COMMAND}`; export r; \
3797 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3798 $(HOST_EXPORTS) \
d32ab992 3799 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3800 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3801 done; \
295f4e42 3802 echo "Doing distclean in automake" ; \
215c351a 3803 (cd $(HOST_SUBDIR)/automake && \
1358ccea
NN
3804 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3805 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3806 "RANLIB=$${RANLIB}" \
3807 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3808 distclean) \
1358ccea
NN
3809 || exit 1
3810
60975492 3811@endif automake
1358ccea 3812
295f4e42
NN
3813.PHONY: maybe-maintainer-clean-automake maintainer-clean-automake
3814maybe-maintainer-clean-automake:
60975492
PB
3815@if automake
3816maybe-maintainer-clean-automake: maintainer-clean-automake
1358ccea 3817
05750653 3818maintainer-clean-automake:
f41d6665 3819 @: $(MAKE); $(unstage)
295f4e42 3820 @[ -f ./automake/Makefile ] || exit 0; \
8c90b13a
L
3821 r=`${PWD_COMMAND}`; export r; \
3822 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3823 $(HOST_EXPORTS) \
d32ab992 3824 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3825 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3826 done; \
295f4e42 3827 echo "Doing maintainer-clean in automake" ; \
215c351a 3828 (cd $(HOST_SUBDIR)/automake && \
1358ccea
NN
3829 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3830 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3831 "RANLIB=$${RANLIB}" \
3832 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3833 maintainer-clean) \
1358ccea
NN
3834 || exit 1
3835
60975492 3836@endif automake
1358ccea 3837
1358ccea 3838
25b42232 3839
295f4e42
NN
3840.PHONY: configure-bash maybe-configure-bash
3841maybe-configure-bash:
3ff3adad
PB
3842@if gcc-bootstrap
3843configure-bash: stage_current
3844@endif gcc-bootstrap
60975492
PB
3845@if bash
3846maybe-configure-bash: configure-bash
cc11cc9b 3847configure-bash:
f41d6665 3848 @: $(MAKE); $(unstage)
cc11cc9b 3849 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 3850 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
3851 test ! -f $(HOST_SUBDIR)/bash/Makefile || exit 0; \
3852 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bash ; \
4fc4dd12 3853 $(HOST_EXPORTS) \
25b42232
PB
3854 echo Configuring in $(HOST_SUBDIR)/bash; \
3855 cd "$(HOST_SUBDIR)/bash" || exit 1; \
295f4e42 3856 case $(srcdir) in \
215c351a
PB
3857 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3858 *) topdir=`echo $(HOST_SUBDIR)/bash/ | \
3859 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 3860 esac; \
215c351a
PB
3861 srcdiroption="--srcdir=$${topdir}/bash"; \
3862 libsrcdir="$$s/bash"; \
295f4e42 3863 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 3864 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 3865 || exit 1
60975492 3866@endif bash
1358ccea 3867
25b42232
PB
3868
3869
ce406537
PB
3870
3871
295f4e42
NN
3872.PHONY: all-bash maybe-all-bash
3873maybe-all-bash:
3ff3adad
PB
3874@if gcc-bootstrap
3875all-bash: stage_current
3876@endif gcc-bootstrap
60975492 3877@if bash
7e0b5752 3878TARGET-bash=all
60975492 3879maybe-all-bash: all-bash
295f4e42 3880all-bash: configure-bash
f41d6665 3881 @: $(MAKE); $(unstage)
295f4e42
NN
3882 @r=`${PWD_COMMAND}`; export r; \
3883 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3884 $(HOST_EXPORTS) \
215c351a
PB
3885 (cd $(HOST_SUBDIR)/bash && \
3886 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-bash))
60975492 3887@endif bash
1358ccea 3888
25b42232 3889
ce406537
PB
3890
3891
295f4e42
NN
3892.PHONY: check-bash maybe-check-bash
3893maybe-check-bash:
60975492
PB
3894@if bash
3895maybe-check-bash: check-bash
1358ccea 3896
295f4e42 3897check-bash:
f41d6665 3898 @: $(MAKE); $(unstage)
295f4e42 3899 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 3900 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3901 $(HOST_EXPORTS) \
215c351a
PB
3902 (cd $(HOST_SUBDIR)/bash && \
3903 $(MAKE) $(FLAGS_TO_PASS) check)
295f4e42 3904
60975492 3905@endif bash
1358ccea 3906
295f4e42
NN
3907.PHONY: install-bash maybe-install-bash
3908maybe-install-bash:
60975492
PB
3909@if bash
3910maybe-install-bash: install-bash
1358ccea 3911
295f4e42 3912install-bash: installdirs
f41d6665 3913 @: $(MAKE); $(unstage)
295f4e42
NN
3914 @r=`${PWD_COMMAND}`; export r; \
3915 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3916 $(HOST_EXPORTS) \
215c351a 3917 (cd $(HOST_SUBDIR)/bash && \
ace9ac7b 3918 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 3919
60975492 3920@endif bash
295f4e42
NN
3921
3922# Other targets (info, dvi, etc.)
3923
3924.PHONY: maybe-info-bash info-bash
3925maybe-info-bash:
60975492
PB
3926@if bash
3927maybe-info-bash: info-bash
295f4e42
NN
3928
3929info-bash: \
05750653 3930 configure-bash
f41d6665 3931 @: $(MAKE); $(unstage)
295f4e42 3932 @[ -f ./bash/Makefile ] || exit 0; \
8c90b13a
L
3933 r=`${PWD_COMMAND}`; export r; \
3934 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3935 $(HOST_EXPORTS) \
d32ab992 3936 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3937 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3938 done; \
295f4e42 3939 echo "Doing info in bash" ; \
215c351a 3940 (cd $(HOST_SUBDIR)/bash && \
1358ccea
NN
3941 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3942 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3943 "RANLIB=$${RANLIB}" \
3944 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3945 info) \
1358ccea
NN
3946 || exit 1
3947
60975492 3948@endif bash
1358ccea 3949
295f4e42
NN
3950.PHONY: maybe-dvi-bash dvi-bash
3951maybe-dvi-bash:
60975492
PB
3952@if bash
3953maybe-dvi-bash: dvi-bash
1358ccea 3954
295f4e42 3955dvi-bash: \
05750653 3956 configure-bash
f41d6665 3957 @: $(MAKE); $(unstage)
295f4e42 3958 @[ -f ./bash/Makefile ] || exit 0; \
8c90b13a
L
3959 r=`${PWD_COMMAND}`; export r; \
3960 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3961 $(HOST_EXPORTS) \
d32ab992 3962 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3963 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3964 done; \
295f4e42 3965 echo "Doing dvi in bash" ; \
215c351a 3966 (cd $(HOST_SUBDIR)/bash && \
1358ccea
NN
3967 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3968 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3969 "RANLIB=$${RANLIB}" \
3970 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3971 dvi) \
1358ccea
NN
3972 || exit 1
3973
60975492 3974@endif bash
1358ccea 3975
f87a2b2e
MS
3976.PHONY: maybe-html-bash html-bash
3977maybe-html-bash:
3978@if bash
3979maybe-html-bash: html-bash
3980
3981html-bash: \
05750653 3982 configure-bash
f41d6665 3983 @: $(MAKE); $(unstage)
f87a2b2e
MS
3984 @[ -f ./bash/Makefile ] || exit 0; \
3985 r=`${PWD_COMMAND}`; export r; \
3986 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
3987 $(HOST_EXPORTS) \
3988 for flag in $(EXTRA_HOST_FLAGS) ; do \
3989 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3990 done; \
3991 echo "Doing html in bash" ; \
215c351a 3992 (cd $(HOST_SUBDIR)/bash && \
f87a2b2e
MS
3993 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3994 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3995 "RANLIB=$${RANLIB}" \
3996 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3997 html) \
3998 || exit 1
3999
4000@endif bash
4001
295f4e42
NN
4002.PHONY: maybe-TAGS-bash TAGS-bash
4003maybe-TAGS-bash:
60975492
PB
4004@if bash
4005maybe-TAGS-bash: TAGS-bash
1358ccea 4006
295f4e42 4007TAGS-bash: \
05750653 4008 configure-bash
f41d6665 4009 @: $(MAKE); $(unstage)
295f4e42 4010 @[ -f ./bash/Makefile ] || exit 0; \
8c90b13a
L
4011 r=`${PWD_COMMAND}`; export r; \
4012 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4013 $(HOST_EXPORTS) \
d32ab992 4014 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4015 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4016 done; \
295f4e42 4017 echo "Doing TAGS in bash" ; \
215c351a 4018 (cd $(HOST_SUBDIR)/bash && \
1358ccea
NN
4019 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4020 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4021 "RANLIB=$${RANLIB}" \
4022 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4023 TAGS) \
1358ccea
NN
4024 || exit 1
4025
60975492 4026@endif bash
1358ccea 4027
295f4e42
NN
4028.PHONY: maybe-install-info-bash install-info-bash
4029maybe-install-info-bash:
60975492
PB
4030@if bash
4031maybe-install-info-bash: install-info-bash
1358ccea 4032
295f4e42
NN
4033install-info-bash: \
4034 configure-bash \
05750653 4035 info-bash
f41d6665 4036 @: $(MAKE); $(unstage)
295f4e42 4037 @[ -f ./bash/Makefile ] || exit 0; \
8c90b13a
L
4038 r=`${PWD_COMMAND}`; export r; \
4039 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4040 $(HOST_EXPORTS) \
d32ab992 4041 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4042 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4043 done; \
295f4e42 4044 echo "Doing install-info in bash" ; \
215c351a 4045 (cd $(HOST_SUBDIR)/bash && \
1358ccea
NN
4046 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4047 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4048 "RANLIB=$${RANLIB}" \
4049 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4050 install-info) \
1358ccea
NN
4051 || exit 1
4052
60975492 4053@endif bash
1358ccea 4054
65d6e994
CD
4055.PHONY: maybe-install-html-bash install-html-bash
4056maybe-install-html-bash:
4057@if bash
4058maybe-install-html-bash: install-html-bash
4059
4060install-html-bash: \
4061 configure-bash \
4062 html-bash
4063 @: $(MAKE); $(unstage)
4064 @[ -f ./bash/Makefile ] || exit 0; \
4065 r=`${PWD_COMMAND}`; export r; \
4066 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4067 $(HOST_EXPORTS) \
4068 for flag in $(EXTRA_HOST_FLAGS) ; do \
4069 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4070 done; \
4071 echo "Doing install-html in bash" ; \
4072 (cd $(HOST_SUBDIR)/bash && \
4073 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4074 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4075 "RANLIB=$${RANLIB}" \
4076 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4077 install-html) \
4078 || exit 1
4079
4080@endif bash
4081
295f4e42
NN
4082.PHONY: maybe-installcheck-bash installcheck-bash
4083maybe-installcheck-bash:
60975492
PB
4084@if bash
4085maybe-installcheck-bash: installcheck-bash
1358ccea 4086
295f4e42 4087installcheck-bash: \
05750653 4088 configure-bash
f41d6665 4089 @: $(MAKE); $(unstage)
295f4e42 4090 @[ -f ./bash/Makefile ] || exit 0; \
8c90b13a
L
4091 r=`${PWD_COMMAND}`; export r; \
4092 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4093 $(HOST_EXPORTS) \
d32ab992 4094 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4095 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4096 done; \
295f4e42 4097 echo "Doing installcheck in bash" ; \
215c351a 4098 (cd $(HOST_SUBDIR)/bash && \
1358ccea
NN
4099 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4100 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4101 "RANLIB=$${RANLIB}" \
4102 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4103 installcheck) \
1358ccea
NN
4104 || exit 1
4105
60975492 4106@endif bash
1358ccea 4107
295f4e42
NN
4108.PHONY: maybe-mostlyclean-bash mostlyclean-bash
4109maybe-mostlyclean-bash:
60975492
PB
4110@if bash
4111maybe-mostlyclean-bash: mostlyclean-bash
1358ccea 4112
05750653 4113mostlyclean-bash:
f41d6665 4114 @: $(MAKE); $(unstage)
295f4e42 4115 @[ -f ./bash/Makefile ] || exit 0; \
8c90b13a
L
4116 r=`${PWD_COMMAND}`; export r; \
4117 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4118 $(HOST_EXPORTS) \
d32ab992 4119 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4120 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4121 done; \
295f4e42 4122 echo "Doing mostlyclean in bash" ; \
215c351a 4123 (cd $(HOST_SUBDIR)/bash && \
1358ccea
NN
4124 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4125 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4126 "RANLIB=$${RANLIB}" \
4127 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4128 mostlyclean) \
1358ccea
NN
4129 || exit 1
4130
60975492 4131@endif bash
1358ccea 4132
295f4e42
NN
4133.PHONY: maybe-clean-bash clean-bash
4134maybe-clean-bash:
60975492
PB
4135@if bash
4136maybe-clean-bash: clean-bash
1358ccea 4137
05750653 4138clean-bash:
f41d6665 4139 @: $(MAKE); $(unstage)
295f4e42 4140 @[ -f ./bash/Makefile ] || exit 0; \
8c90b13a
L
4141 r=`${PWD_COMMAND}`; export r; \
4142 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4143 $(HOST_EXPORTS) \
d32ab992 4144 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4145 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4146 done; \
295f4e42 4147 echo "Doing clean in bash" ; \
215c351a 4148 (cd $(HOST_SUBDIR)/bash && \
1358ccea
NN
4149 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4150 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4151 "RANLIB=$${RANLIB}" \
4152 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4153 clean) \
1358ccea
NN
4154 || exit 1
4155
60975492 4156@endif bash
1358ccea 4157
295f4e42
NN
4158.PHONY: maybe-distclean-bash distclean-bash
4159maybe-distclean-bash:
60975492
PB
4160@if bash
4161maybe-distclean-bash: distclean-bash
1358ccea 4162
05750653 4163distclean-bash:
f41d6665 4164 @: $(MAKE); $(unstage)
295f4e42 4165 @[ -f ./bash/Makefile ] || exit 0; \
8c90b13a
L
4166 r=`${PWD_COMMAND}`; export r; \
4167 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4168 $(HOST_EXPORTS) \
d32ab992 4169 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4170 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4171 done; \
295f4e42 4172 echo "Doing distclean in bash" ; \
215c351a 4173 (cd $(HOST_SUBDIR)/bash && \
1358ccea
NN
4174 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4175 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4176 "RANLIB=$${RANLIB}" \
4177 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4178 distclean) \
1358ccea
NN
4179 || exit 1
4180
60975492 4181@endif bash
1358ccea 4182
295f4e42
NN
4183.PHONY: maybe-maintainer-clean-bash maintainer-clean-bash
4184maybe-maintainer-clean-bash:
60975492
PB
4185@if bash
4186maybe-maintainer-clean-bash: maintainer-clean-bash
1358ccea 4187
05750653 4188maintainer-clean-bash:
f41d6665 4189 @: $(MAKE); $(unstage)
295f4e42 4190 @[ -f ./bash/Makefile ] || exit 0; \
8c90b13a
L
4191 r=`${PWD_COMMAND}`; export r; \
4192 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4193 $(HOST_EXPORTS) \
d32ab992 4194 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4195 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4196 done; \
295f4e42 4197 echo "Doing maintainer-clean in bash" ; \
215c351a 4198 (cd $(HOST_SUBDIR)/bash && \
1358ccea
NN
4199 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4200 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4201 "RANLIB=$${RANLIB}" \
4202 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4203 maintainer-clean) \
1358ccea
NN
4204 || exit 1
4205
60975492 4206@endif bash
1358ccea 4207
1358ccea 4208
25b42232 4209
295f4e42
NN
4210.PHONY: configure-bfd maybe-configure-bfd
4211maybe-configure-bfd:
3ff3adad
PB
4212@if gcc-bootstrap
4213configure-bfd: stage_current
4214@endif gcc-bootstrap
60975492
PB
4215@if bfd
4216maybe-configure-bfd: configure-bfd
cc11cc9b 4217configure-bfd:
cc11cc9b
PB
4218 @r=`${PWD_COMMAND}`; export r; \
4219 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
215c351a
PB
4220 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
4221 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
4fc4dd12 4222 $(HOST_EXPORTS) \
25b42232
PB
4223 echo Configuring in $(HOST_SUBDIR)/bfd; \
4224 cd "$(HOST_SUBDIR)/bfd" || exit 1; \
295f4e42 4225 case $(srcdir) in \
215c351a
PB
4226 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4227 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
4228 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 4229 esac; \
215c351a
PB
4230 srcdiroption="--srcdir=$${topdir}/bfd"; \
4231 libsrcdir="$$s/bfd"; \
295f4e42 4232 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 4233 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 4234 || exit 1
60975492 4235@endif bfd
1358ccea 4236
25b42232
PB
4237
4238
ce406537
PB
4239.PHONY: configure-stage1-bfd maybe-configure-stage1-bfd
4240maybe-configure-stage1-bfd:
4241@if bfd-bootstrap
4242maybe-configure-stage1-bfd: configure-stage1-bfd
f41d6665 4243configure-stage1-bfd:
cc11cc9b 4244 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
f41d6665 4245 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
cc11cc9b
PB
4246 @r=`${PWD_COMMAND}`; export r; \
4247 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 4248 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
ce406537
PB
4249 $(HOST_EXPORTS) \
4250 echo Configuring stage 1 in $(HOST_SUBDIR)/bfd ; \
f41d6665 4251 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
ce406537
PB
4252 cd $(HOST_SUBDIR)/bfd || exit 1; \
4253 case $(srcdir) in \
4254 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4255 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
4256 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4257 esac; \
4258 srcdiroption="--srcdir=$${topdir}/bfd"; \
4259 libsrcdir="$$s/bfd"; \
4260 $(SHELL) $${libsrcdir}/configure \
4261 $(HOST_CONFIGARGS) $${srcdiroption} \
4262 --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
4263@endif bfd-bootstrap
4264
4265.PHONY: configure-stage2-bfd maybe-configure-stage2-bfd
4266maybe-configure-stage2-bfd:
4267@if bfd-bootstrap
4268maybe-configure-stage2-bfd: configure-stage2-bfd
f41d6665 4269configure-stage2-bfd:
cc11cc9b 4270 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
f41d6665 4271 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
cc11cc9b
PB
4272 @r=`${PWD_COMMAND}`; export r; \
4273 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 4274 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
ce406537
PB
4275 $(HOST_EXPORTS) \
4276 $(POSTSTAGE1_HOST_EXPORTS) \
4277 echo Configuring stage 2 in $(HOST_SUBDIR)/bfd ; \
f41d6665 4278 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
ce406537
PB
4279 cd $(HOST_SUBDIR)/bfd || exit 1; \
4280 case $(srcdir) in \
4281 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4282 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
4283 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4284 esac; \
4285 srcdiroption="--srcdir=$${topdir}/bfd"; \
4286 libsrcdir="$$s/bfd"; \
4287 $(SHELL) $${libsrcdir}/configure \
4288 $(HOST_CONFIGARGS) $${srcdiroption} \
4289 @stage2_werror_flag@
4290@endif bfd-bootstrap
4291
4292.PHONY: configure-stage3-bfd maybe-configure-stage3-bfd
4293maybe-configure-stage3-bfd:
4294@if bfd-bootstrap
4295maybe-configure-stage3-bfd: configure-stage3-bfd
f41d6665 4296configure-stage3-bfd:
cc11cc9b 4297 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
f41d6665 4298 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
cc11cc9b
PB
4299 @r=`${PWD_COMMAND}`; export r; \
4300 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 4301 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
ce406537
PB
4302 $(HOST_EXPORTS) \
4303 $(POSTSTAGE1_HOST_EXPORTS) \
4304 echo Configuring stage 3 in $(HOST_SUBDIR)/bfd ; \
f41d6665 4305 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
ce406537
PB
4306 cd $(HOST_SUBDIR)/bfd || exit 1; \
4307 case $(srcdir) in \
4308 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4309 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
4310 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4311 esac; \
4312 srcdiroption="--srcdir=$${topdir}/bfd"; \
4313 libsrcdir="$$s/bfd"; \
4314 $(SHELL) $${libsrcdir}/configure \
4315 $(HOST_CONFIGARGS) $${srcdiroption} \
4316 @stage2_werror_flag@
4317@endif bfd-bootstrap
4318
4319.PHONY: configure-stage4-bfd maybe-configure-stage4-bfd
4320maybe-configure-stage4-bfd:
4321@if bfd-bootstrap
4322maybe-configure-stage4-bfd: configure-stage4-bfd
f41d6665 4323configure-stage4-bfd:
cc11cc9b 4324 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
f41d6665 4325 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
cc11cc9b
PB
4326 @r=`${PWD_COMMAND}`; export r; \
4327 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 4328 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
ce406537
PB
4329 $(HOST_EXPORTS) \
4330 $(POSTSTAGE1_HOST_EXPORTS) \
4331 echo Configuring stage 4 in $(HOST_SUBDIR)/bfd ; \
f41d6665 4332 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
ce406537
PB
4333 cd $(HOST_SUBDIR)/bfd || exit 1; \
4334 case $(srcdir) in \
4335 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4336 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
4337 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4338 esac; \
4339 srcdiroption="--srcdir=$${topdir}/bfd"; \
4340 libsrcdir="$$s/bfd"; \
4341 $(SHELL) $${libsrcdir}/configure \
4342 $(HOST_CONFIGARGS) $${srcdiroption} \
4343 @stage2_werror_flag@
4344@endif bfd-bootstrap
4345
4346.PHONY: configure-stageprofile-bfd maybe-configure-stageprofile-bfd
4347maybe-configure-stageprofile-bfd:
4348@if bfd-bootstrap
4349maybe-configure-stageprofile-bfd: configure-stageprofile-bfd
f41d6665 4350configure-stageprofile-bfd:
cc11cc9b 4351 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
f41d6665 4352 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
cc11cc9b
PB
4353 @r=`${PWD_COMMAND}`; export r; \
4354 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 4355 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
ce406537
PB
4356 $(HOST_EXPORTS) \
4357 $(POSTSTAGE1_HOST_EXPORTS) \
4358 echo Configuring stage profile in $(HOST_SUBDIR)/bfd ; \
f41d6665 4359 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
ce406537
PB
4360 cd $(HOST_SUBDIR)/bfd || exit 1; \
4361 case $(srcdir) in \
4362 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4363 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
4364 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4365 esac; \
4366 srcdiroption="--srcdir=$${topdir}/bfd"; \
4367 libsrcdir="$$s/bfd"; \
4368 $(SHELL) $${libsrcdir}/configure \
4369 $(HOST_CONFIGARGS) $${srcdiroption} \
4370 @stage2_werror_flag@
4371@endif bfd-bootstrap
4372
4373.PHONY: configure-stagefeedback-bfd maybe-configure-stagefeedback-bfd
4374maybe-configure-stagefeedback-bfd:
4375@if bfd-bootstrap
4376maybe-configure-stagefeedback-bfd: configure-stagefeedback-bfd
f41d6665 4377configure-stagefeedback-bfd:
cc11cc9b 4378 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
f41d6665 4379 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
cc11cc9b
PB
4380 @r=`${PWD_COMMAND}`; export r; \
4381 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 4382 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
ce406537
PB
4383 $(HOST_EXPORTS) \
4384 $(POSTSTAGE1_HOST_EXPORTS) \
4385 echo Configuring stage feedback in $(HOST_SUBDIR)/bfd ; \
f41d6665 4386 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
ce406537
PB
4387 cd $(HOST_SUBDIR)/bfd || exit 1; \
4388 case $(srcdir) in \
4389 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4390 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
4391 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4392 esac; \
4393 srcdiroption="--srcdir=$${topdir}/bfd"; \
4394 libsrcdir="$$s/bfd"; \
4395 $(SHELL) $${libsrcdir}/configure \
4396 $(HOST_CONFIGARGS) $${srcdiroption} \
4397 @stage2_werror_flag@
4398@endif bfd-bootstrap
4399
4400
4401
4402
4403
295f4e42
NN
4404.PHONY: all-bfd maybe-all-bfd
4405maybe-all-bfd:
3ff3adad
PB
4406@if gcc-bootstrap
4407all-bfd: stage_current
4408@endif gcc-bootstrap
60975492 4409@if bfd
7e0b5752 4410TARGET-bfd=all
60975492 4411maybe-all-bfd: all-bfd
295f4e42 4412all-bfd: configure-bfd
cc11cc9b 4413 @r=`${PWD_COMMAND}`; export r; \
295f4e42 4414 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4415 $(HOST_EXPORTS) \
215c351a
PB
4416 (cd $(HOST_SUBDIR)/bfd && \
4417 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-bfd))
60975492 4418@endif bfd
1358ccea 4419
25b42232 4420
ce406537
PB
4421
4422.PHONY: all-stage1-bfd maybe-all-stage1-bfd
4423.PHONY: clean-stage1-bfd maybe-clean-stage1-bfd
4424maybe-all-stage1-bfd:
4425maybe-clean-stage1-bfd:
4426@if bfd-bootstrap
4427maybe-all-stage1-bfd: all-stage1-bfd
4428all-stage1: all-stage1-bfd
1061f99e 4429TARGET-stage1-bfd = $(TARGET-bfd)
ce406537 4430all-stage1-bfd: configure-stage1-bfd
cc11cc9b 4431 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
ce406537
PB
4432 @r=`${PWD_COMMAND}`; export r; \
4433 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4434 $(HOST_EXPORTS) \
4435 cd $(HOST_SUBDIR)/bfd && \
cc11cc9b 4436 $(MAKE) $(FLAGS_TO_PASS) CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" \
1061f99e 4437 $(TARGET-stage1-bfd)
ce406537
PB
4438
4439maybe-clean-stage1-bfd: clean-stage1-bfd
4440clean-stage1: clean-stage1-bfd
4441clean-stage1-bfd:
4442 @[ -f $(HOST_SUBDIR)/bfd/Makefile ] || [ -f $(HOST_SUBDIR)/stage1-bfd/Makefile ] \
4443 || exit 0 ; \
cc11cc9b 4444 [ $(current_stage) = stage1 ] || $(MAKE) stage1-start; \
ce406537
PB
4445 cd $(HOST_SUBDIR)/bfd && \
4446 $(MAKE) $(FLAGS_TO_PASS) \
cc11cc9b 4447 CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" clean
ce406537
PB
4448@endif bfd-bootstrap
4449
4450
4451.PHONY: all-stage2-bfd maybe-all-stage2-bfd
4452.PHONY: clean-stage2-bfd maybe-clean-stage2-bfd
4453maybe-all-stage2-bfd:
4454maybe-clean-stage2-bfd:
4455@if bfd-bootstrap
4456maybe-all-stage2-bfd: all-stage2-bfd
4457all-stage2: all-stage2-bfd
1061f99e 4458TARGET-stage2-bfd = $(TARGET-bfd)
ce406537 4459all-stage2-bfd: configure-stage2-bfd
cc11cc9b 4460 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
ce406537
PB
4461 @r=`${PWD_COMMAND}`; export r; \
4462 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4463 $(HOST_EXPORTS) \
4464 $(POSTSTAGE1_HOST_EXPORTS) \
4465 cd $(HOST_SUBDIR)/bfd && \
1061f99e
PB
4466 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
4467 $(TARGET-stage2-bfd)
ce406537
PB
4468
4469maybe-clean-stage2-bfd: clean-stage2-bfd
4470clean-stage2: clean-stage2-bfd
4471clean-stage2-bfd:
4472 @[ -f $(HOST_SUBDIR)/bfd/Makefile ] || [ -f $(HOST_SUBDIR)/stage2-bfd/Makefile ] \
4473 || exit 0 ; \
cc11cc9b 4474 [ $(current_stage) = stage2 ] || $(MAKE) stage2-start; \
ce406537
PB
4475 cd $(HOST_SUBDIR)/bfd && \
4476 $(MAKE) $(FLAGS_TO_PASS) \
4477 $(POSTSTAGE1_FLAGS_TO_PASS) \
4478 clean
4479@endif bfd-bootstrap
4480
4481
4482.PHONY: all-stage3-bfd maybe-all-stage3-bfd
4483.PHONY: clean-stage3-bfd maybe-clean-stage3-bfd
4484maybe-all-stage3-bfd:
4485maybe-clean-stage3-bfd:
4486@if bfd-bootstrap
4487maybe-all-stage3-bfd: all-stage3-bfd
4488all-stage3: all-stage3-bfd
1061f99e 4489TARGET-stage3-bfd = $(TARGET-bfd)
ce406537 4490all-stage3-bfd: configure-stage3-bfd
cc11cc9b 4491 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
ce406537
PB
4492 @r=`${PWD_COMMAND}`; export r; \
4493 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4494 $(HOST_EXPORTS) \
4495 $(POSTSTAGE1_HOST_EXPORTS) \
4496 cd $(HOST_SUBDIR)/bfd && \
1061f99e
PB
4497 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
4498 $(TARGET-stage3-bfd)
ce406537
PB
4499
4500maybe-clean-stage3-bfd: clean-stage3-bfd
4501clean-stage3: clean-stage3-bfd
4502clean-stage3-bfd:
4503 @[ -f $(HOST_SUBDIR)/bfd/Makefile ] || [ -f $(HOST_SUBDIR)/stage3-bfd/Makefile ] \
4504 || exit 0 ; \
cc11cc9b 4505 [ $(current_stage) = stage3 ] || $(MAKE) stage3-start; \
ce406537
PB
4506 cd $(HOST_SUBDIR)/bfd && \
4507 $(MAKE) $(FLAGS_TO_PASS) \
4508 $(POSTSTAGE1_FLAGS_TO_PASS) \
4509 clean
4510@endif bfd-bootstrap
4511
4512
4513.PHONY: all-stage4-bfd maybe-all-stage4-bfd
4514.PHONY: clean-stage4-bfd maybe-clean-stage4-bfd
4515maybe-all-stage4-bfd:
4516maybe-clean-stage4-bfd:
4517@if bfd-bootstrap
4518maybe-all-stage4-bfd: all-stage4-bfd
4519all-stage4: all-stage4-bfd
1061f99e 4520TARGET-stage4-bfd = $(TARGET-bfd)
ce406537 4521all-stage4-bfd: configure-stage4-bfd
cc11cc9b 4522 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
ce406537
PB
4523 @r=`${PWD_COMMAND}`; export r; \
4524 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4525 $(HOST_EXPORTS) \
4526 $(POSTSTAGE1_HOST_EXPORTS) \
4527 cd $(HOST_SUBDIR)/bfd && \
1061f99e
PB
4528 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
4529 $(TARGET-stage4-bfd)
ce406537
PB
4530
4531maybe-clean-stage4-bfd: clean-stage4-bfd
4532clean-stage4: clean-stage4-bfd
4533clean-stage4-bfd:
4534 @[ -f $(HOST_SUBDIR)/bfd/Makefile ] || [ -f $(HOST_SUBDIR)/stage4-bfd/Makefile ] \
4535 || exit 0 ; \
cc11cc9b 4536 [ $(current_stage) = stage4 ] || $(MAKE) stage4-start; \
ce406537
PB
4537 cd $(HOST_SUBDIR)/bfd && \
4538 $(MAKE) $(FLAGS_TO_PASS) \
4539 $(POSTSTAGE1_FLAGS_TO_PASS) \
4540 clean
4541@endif bfd-bootstrap
4542
4543
4544.PHONY: all-stageprofile-bfd maybe-all-stageprofile-bfd
4545.PHONY: clean-stageprofile-bfd maybe-clean-stageprofile-bfd
4546maybe-all-stageprofile-bfd:
4547maybe-clean-stageprofile-bfd:
4548@if bfd-bootstrap
4549maybe-all-stageprofile-bfd: all-stageprofile-bfd
4550all-stageprofile: all-stageprofile-bfd
1061f99e 4551TARGET-stageprofile-bfd = $(TARGET-bfd)
ce406537 4552all-stageprofile-bfd: configure-stageprofile-bfd
cc11cc9b 4553 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
ce406537
PB
4554 @r=`${PWD_COMMAND}`; export r; \
4555 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4556 $(HOST_EXPORTS) \
4557 $(POSTSTAGE1_HOST_EXPORTS) \
4558 cd $(HOST_SUBDIR)/bfd && \
1061f99e
PB
4559 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" \
4560 $(TARGET-stageprofile-bfd)
ce406537
PB
4561
4562maybe-clean-stageprofile-bfd: clean-stageprofile-bfd
4563clean-stageprofile: clean-stageprofile-bfd
4564clean-stageprofile-bfd:
4565 @[ -f $(HOST_SUBDIR)/bfd/Makefile ] || [ -f $(HOST_SUBDIR)/stageprofile-bfd/Makefile ] \
4566 || exit 0 ; \
cc11cc9b 4567 [ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start; \
ce406537
PB
4568 cd $(HOST_SUBDIR)/bfd && \
4569 $(MAKE) $(FLAGS_TO_PASS) \
4570 $(POSTSTAGE1_FLAGS_TO_PASS) \
4571 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean
4572@endif bfd-bootstrap
4573
4574
4575.PHONY: all-stagefeedback-bfd maybe-all-stagefeedback-bfd
4576.PHONY: clean-stagefeedback-bfd maybe-clean-stagefeedback-bfd
4577maybe-all-stagefeedback-bfd:
4578maybe-clean-stagefeedback-bfd:
4579@if bfd-bootstrap
4580maybe-all-stagefeedback-bfd: all-stagefeedback-bfd
4581all-stagefeedback: all-stagefeedback-bfd
1061f99e 4582TARGET-stagefeedback-bfd = $(TARGET-bfd)
ce406537 4583all-stagefeedback-bfd: configure-stagefeedback-bfd
cc11cc9b 4584 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
ce406537
PB
4585 @r=`${PWD_COMMAND}`; export r; \
4586 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4587 $(HOST_EXPORTS) \
4588 $(POSTSTAGE1_HOST_EXPORTS) \
4589 cd $(HOST_SUBDIR)/bfd && \
1061f99e
PB
4590 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-use" \
4591 $(TARGET-stagefeedback-bfd)
ce406537
PB
4592
4593maybe-clean-stagefeedback-bfd: clean-stagefeedback-bfd
4594clean-stagefeedback: clean-stagefeedback-bfd
4595clean-stagefeedback-bfd:
4596 @[ -f $(HOST_SUBDIR)/bfd/Makefile ] || [ -f $(HOST_SUBDIR)/stagefeedback-bfd/Makefile ] \
4597 || exit 0 ; \
cc11cc9b 4598 [ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start; \
ce406537
PB
4599 cd $(HOST_SUBDIR)/bfd && \
4600 $(MAKE) $(FLAGS_TO_PASS) \
4601 $(POSTSTAGE1_FLAGS_TO_PASS) \
4602 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean
4603@endif bfd-bootstrap
4604
4605
4606
4607
4608
295f4e42
NN
4609.PHONY: check-bfd maybe-check-bfd
4610maybe-check-bfd:
60975492
PB
4611@if bfd
4612maybe-check-bfd: check-bfd
1358ccea 4613
295f4e42 4614check-bfd:
f41d6665 4615 @: $(MAKE); $(unstage)
295f4e42 4616 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 4617 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4618 $(HOST_EXPORTS) \
215c351a
PB
4619 (cd $(HOST_SUBDIR)/bfd && \
4620 $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 4621
60975492 4622@endif bfd
1358ccea 4623
295f4e42
NN
4624.PHONY: install-bfd maybe-install-bfd
4625maybe-install-bfd:
60975492
PB
4626@if bfd
4627maybe-install-bfd: install-bfd
1358ccea 4628
295f4e42 4629install-bfd: installdirs
f41d6665 4630 @: $(MAKE); $(unstage)
295f4e42 4631 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 4632 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4633 $(HOST_EXPORTS) \
215c351a 4634 (cd $(HOST_SUBDIR)/bfd && \
ace9ac7b 4635 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 4636
60975492 4637@endif bfd
1358ccea 4638
295f4e42
NN
4639# Other targets (info, dvi, etc.)
4640
4641.PHONY: maybe-info-bfd info-bfd
4642maybe-info-bfd:
60975492
PB
4643@if bfd
4644maybe-info-bfd: info-bfd
1358ccea 4645
295f4e42 4646info-bfd: \
05750653 4647 configure-bfd
295f4e42 4648 @[ -f ./bfd/Makefile ] || exit 0; \
8c90b13a
L
4649 r=`${PWD_COMMAND}`; export r; \
4650 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4651 $(HOST_EXPORTS) \
d32ab992 4652 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4653 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4654 done; \
295f4e42 4655 echo "Doing info in bfd" ; \
215c351a 4656 (cd $(HOST_SUBDIR)/bfd && \
1358ccea
NN
4657 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4658 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4659 "RANLIB=$${RANLIB}" \
4660 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4661 info) \
1358ccea
NN
4662 || exit 1
4663
60975492 4664@endif bfd
1358ccea 4665
295f4e42
NN
4666.PHONY: maybe-dvi-bfd dvi-bfd
4667maybe-dvi-bfd:
60975492
PB
4668@if bfd
4669maybe-dvi-bfd: dvi-bfd
1358ccea 4670
295f4e42 4671dvi-bfd: \
05750653 4672 configure-bfd
295f4e42 4673 @[ -f ./bfd/Makefile ] || exit 0; \
8c90b13a
L
4674 r=`${PWD_COMMAND}`; export r; \
4675 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4676 $(HOST_EXPORTS) \
d32ab992 4677 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4678 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4679 done; \
295f4e42 4680 echo "Doing dvi in bfd" ; \
215c351a 4681 (cd $(HOST_SUBDIR)/bfd && \
1358ccea
NN
4682 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4683 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4684 "RANLIB=$${RANLIB}" \
4685 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4686 dvi) \
1358ccea
NN
4687 || exit 1
4688
60975492 4689@endif bfd
1358ccea 4690
f87a2b2e
MS
4691.PHONY: maybe-html-bfd html-bfd
4692maybe-html-bfd:
4693@if bfd
4694maybe-html-bfd: html-bfd
4695
4696html-bfd: \
05750653 4697 configure-bfd
f87a2b2e
MS
4698 @[ -f ./bfd/Makefile ] || exit 0; \
4699 r=`${PWD_COMMAND}`; export r; \
4700 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
4701 $(HOST_EXPORTS) \
4702 for flag in $(EXTRA_HOST_FLAGS) ; do \
4703 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4704 done; \
4705 echo "Doing html in bfd" ; \
215c351a 4706 (cd $(HOST_SUBDIR)/bfd && \
f87a2b2e
MS
4707 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4708 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4709 "RANLIB=$${RANLIB}" \
4710 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4711 html) \
4712 || exit 1
4713
4714@endif bfd
4715
295f4e42
NN
4716.PHONY: maybe-TAGS-bfd TAGS-bfd
4717maybe-TAGS-bfd:
60975492
PB
4718@if bfd
4719maybe-TAGS-bfd: TAGS-bfd
1358ccea 4720
295f4e42 4721TAGS-bfd: \
05750653 4722 configure-bfd
295f4e42 4723 @[ -f ./bfd/Makefile ] || exit 0; \
8c90b13a
L
4724 r=`${PWD_COMMAND}`; export r; \
4725 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4726 $(HOST_EXPORTS) \
d32ab992 4727 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4728 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4729 done; \
295f4e42 4730 echo "Doing TAGS in bfd" ; \
215c351a 4731 (cd $(HOST_SUBDIR)/bfd && \
1358ccea
NN
4732 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4733 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4734 "RANLIB=$${RANLIB}" \
4735 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4736 TAGS) \
1358ccea
NN
4737 || exit 1
4738
60975492 4739@endif bfd
1358ccea 4740
295f4e42
NN
4741.PHONY: maybe-install-info-bfd install-info-bfd
4742maybe-install-info-bfd:
60975492
PB
4743@if bfd
4744maybe-install-info-bfd: install-info-bfd
1358ccea 4745
295f4e42
NN
4746install-info-bfd: \
4747 configure-bfd \
05750653 4748 info-bfd
295f4e42 4749 @[ -f ./bfd/Makefile ] || exit 0; \
8c90b13a
L
4750 r=`${PWD_COMMAND}`; export r; \
4751 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4752 $(HOST_EXPORTS) \
d32ab992 4753 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4754 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4755 done; \
295f4e42 4756 echo "Doing install-info in bfd" ; \
215c351a 4757 (cd $(HOST_SUBDIR)/bfd && \
1358ccea
NN
4758 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4759 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4760 "RANLIB=$${RANLIB}" \
4761 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4762 install-info) \
1358ccea
NN
4763 || exit 1
4764
60975492 4765@endif bfd
1358ccea 4766
65d6e994
CD
4767.PHONY: maybe-install-html-bfd install-html-bfd
4768maybe-install-html-bfd:
4769@if bfd
4770maybe-install-html-bfd: install-html-bfd
4771
4772install-html-bfd: \
4773 configure-bfd \
4774 html-bfd
4775 @[ -f ./bfd/Makefile ] || exit 0; \
4776 r=`${PWD_COMMAND}`; export r; \
4777 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4778 $(HOST_EXPORTS) \
4779 for flag in $(EXTRA_HOST_FLAGS) ; do \
4780 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4781 done; \
4782 echo "Doing install-html in bfd" ; \
4783 (cd $(HOST_SUBDIR)/bfd && \
4784 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4785 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4786 "RANLIB=$${RANLIB}" \
4787 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4788 install-html) \
4789 || exit 1
4790
4791@endif bfd
4792
295f4e42
NN
4793.PHONY: maybe-installcheck-bfd installcheck-bfd
4794maybe-installcheck-bfd:
60975492
PB
4795@if bfd
4796maybe-installcheck-bfd: installcheck-bfd
1358ccea 4797
295f4e42 4798installcheck-bfd: \
05750653 4799 configure-bfd
295f4e42 4800 @[ -f ./bfd/Makefile ] || exit 0; \
8c90b13a
L
4801 r=`${PWD_COMMAND}`; export r; \
4802 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4803 $(HOST_EXPORTS) \
d32ab992 4804 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4805 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4806 done; \
295f4e42 4807 echo "Doing installcheck in bfd" ; \
215c351a 4808 (cd $(HOST_SUBDIR)/bfd && \
1358ccea
NN
4809 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4810 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4811 "RANLIB=$${RANLIB}" \
4812 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4813 installcheck) \
1358ccea
NN
4814 || exit 1
4815
60975492 4816@endif bfd
1358ccea 4817
295f4e42
NN
4818.PHONY: maybe-mostlyclean-bfd mostlyclean-bfd
4819maybe-mostlyclean-bfd:
60975492
PB
4820@if bfd
4821maybe-mostlyclean-bfd: mostlyclean-bfd
1358ccea 4822
05750653 4823mostlyclean-bfd:
295f4e42 4824 @[ -f ./bfd/Makefile ] || exit 0; \
8c90b13a
L
4825 r=`${PWD_COMMAND}`; export r; \
4826 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4827 $(HOST_EXPORTS) \
d32ab992 4828 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4829 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4830 done; \
295f4e42 4831 echo "Doing mostlyclean in bfd" ; \
215c351a 4832 (cd $(HOST_SUBDIR)/bfd && \
1358ccea
NN
4833 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4834 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4835 "RANLIB=$${RANLIB}" \
4836 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4837 mostlyclean) \
1358ccea
NN
4838 || exit 1
4839
60975492 4840@endif bfd
1358ccea 4841
295f4e42
NN
4842.PHONY: maybe-clean-bfd clean-bfd
4843maybe-clean-bfd:
60975492
PB
4844@if bfd
4845maybe-clean-bfd: clean-bfd
1358ccea 4846
05750653 4847clean-bfd:
295f4e42 4848 @[ -f ./bfd/Makefile ] || exit 0; \
8c90b13a
L
4849 r=`${PWD_COMMAND}`; export r; \
4850 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4851 $(HOST_EXPORTS) \
d32ab992 4852 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4853 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4854 done; \
295f4e42 4855 echo "Doing clean in bfd" ; \
215c351a 4856 (cd $(HOST_SUBDIR)/bfd && \
1358ccea
NN
4857 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4858 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4859 "RANLIB=$${RANLIB}" \
4860 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4861 clean) \
1358ccea
NN
4862 || exit 1
4863
60975492 4864@endif bfd
1358ccea 4865
295f4e42
NN
4866.PHONY: maybe-distclean-bfd distclean-bfd
4867maybe-distclean-bfd:
60975492
PB
4868@if bfd
4869maybe-distclean-bfd: distclean-bfd
1358ccea 4870
05750653 4871distclean-bfd:
295f4e42 4872 @[ -f ./bfd/Makefile ] || exit 0; \
8c90b13a
L
4873 r=`${PWD_COMMAND}`; export r; \
4874 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4875 $(HOST_EXPORTS) \
d32ab992 4876 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4877 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4878 done; \
295f4e42 4879 echo "Doing distclean in bfd" ; \
215c351a 4880 (cd $(HOST_SUBDIR)/bfd && \
1358ccea
NN
4881 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4882 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4883 "RANLIB=$${RANLIB}" \
4884 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4885 distclean) \
1358ccea
NN
4886 || exit 1
4887
60975492 4888@endif bfd
1358ccea 4889
295f4e42
NN
4890.PHONY: maybe-maintainer-clean-bfd maintainer-clean-bfd
4891maybe-maintainer-clean-bfd:
60975492
PB
4892@if bfd
4893maybe-maintainer-clean-bfd: maintainer-clean-bfd
1358ccea 4894
05750653 4895maintainer-clean-bfd:
295f4e42 4896 @[ -f ./bfd/Makefile ] || exit 0; \
8c90b13a
L
4897 r=`${PWD_COMMAND}`; export r; \
4898 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4899 $(HOST_EXPORTS) \
d32ab992 4900 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4901 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4902 done; \
295f4e42 4903 echo "Doing maintainer-clean in bfd" ; \
215c351a 4904 (cd $(HOST_SUBDIR)/bfd && \
1358ccea
NN
4905 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4906 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4907 "RANLIB=$${RANLIB}" \
4908 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4909 maintainer-clean) \
1358ccea
NN
4910 || exit 1
4911
60975492 4912@endif bfd
1358ccea 4913
1358ccea 4914
25b42232 4915
295f4e42
NN
4916.PHONY: configure-opcodes maybe-configure-opcodes
4917maybe-configure-opcodes:
3ff3adad
PB
4918@if gcc-bootstrap
4919configure-opcodes: stage_current
4920@endif gcc-bootstrap
60975492
PB
4921@if opcodes
4922maybe-configure-opcodes: configure-opcodes
cc11cc9b 4923configure-opcodes:
cc11cc9b
PB
4924 @r=`${PWD_COMMAND}`; export r; \
4925 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
215c351a
PB
4926 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
4927 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
4fc4dd12 4928 $(HOST_EXPORTS) \
25b42232
PB
4929 echo Configuring in $(HOST_SUBDIR)/opcodes; \
4930 cd "$(HOST_SUBDIR)/opcodes" || exit 1; \
295f4e42 4931 case $(srcdir) in \
215c351a
PB
4932 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4933 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4934 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 4935 esac; \
215c351a
PB
4936 srcdiroption="--srcdir=$${topdir}/opcodes"; \
4937 libsrcdir="$$s/opcodes"; \
295f4e42 4938 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 4939 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 4940 || exit 1
60975492 4941@endif opcodes
1358ccea 4942
25b42232
PB
4943
4944
ce406537
PB
4945.PHONY: configure-stage1-opcodes maybe-configure-stage1-opcodes
4946maybe-configure-stage1-opcodes:
4947@if opcodes-bootstrap
4948maybe-configure-stage1-opcodes: configure-stage1-opcodes
f41d6665 4949configure-stage1-opcodes:
cc11cc9b 4950 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
f41d6665 4951 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
cc11cc9b
PB
4952 @r=`${PWD_COMMAND}`; export r; \
4953 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 4954 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
ce406537
PB
4955 $(HOST_EXPORTS) \
4956 echo Configuring stage 1 in $(HOST_SUBDIR)/opcodes ; \
f41d6665 4957 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
ce406537
PB
4958 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4959 case $(srcdir) in \
4960 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4961 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4962 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4963 esac; \
4964 srcdiroption="--srcdir=$${topdir}/opcodes"; \
4965 libsrcdir="$$s/opcodes"; \
4966 $(SHELL) $${libsrcdir}/configure \
4967 $(HOST_CONFIGARGS) $${srcdiroption} \
4968 --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
4969@endif opcodes-bootstrap
4970
4971.PHONY: configure-stage2-opcodes maybe-configure-stage2-opcodes
4972maybe-configure-stage2-opcodes:
4973@if opcodes-bootstrap
4974maybe-configure-stage2-opcodes: configure-stage2-opcodes
f41d6665 4975configure-stage2-opcodes:
cc11cc9b 4976 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
f41d6665 4977 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
cc11cc9b
PB
4978 @r=`${PWD_COMMAND}`; export r; \
4979 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 4980 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
ce406537
PB
4981 $(HOST_EXPORTS) \
4982 $(POSTSTAGE1_HOST_EXPORTS) \
4983 echo Configuring stage 2 in $(HOST_SUBDIR)/opcodes ; \
f41d6665 4984 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
ce406537
PB
4985 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4986 case $(srcdir) in \
4987 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4988 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4989 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4990 esac; \
4991 srcdiroption="--srcdir=$${topdir}/opcodes"; \
4992 libsrcdir="$$s/opcodes"; \
4993 $(SHELL) $${libsrcdir}/configure \
4994 $(HOST_CONFIGARGS) $${srcdiroption} \
4995 @stage2_werror_flag@
4996@endif opcodes-bootstrap
4997
4998.PHONY: configure-stage3-opcodes maybe-configure-stage3-opcodes
4999maybe-configure-stage3-opcodes:
5000@if opcodes-bootstrap
5001maybe-configure-stage3-opcodes: configure-stage3-opcodes
f41d6665 5002configure-stage3-opcodes:
cc11cc9b 5003 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
f41d6665 5004 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
cc11cc9b
PB
5005 @r=`${PWD_COMMAND}`; export r; \
5006 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 5007 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
ce406537
PB
5008 $(HOST_EXPORTS) \
5009 $(POSTSTAGE1_HOST_EXPORTS) \
5010 echo Configuring stage 3 in $(HOST_SUBDIR)/opcodes ; \
f41d6665 5011 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
ce406537
PB
5012 cd $(HOST_SUBDIR)/opcodes || exit 1; \
5013 case $(srcdir) in \
5014 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
5015 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
5016 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5017 esac; \
5018 srcdiroption="--srcdir=$${topdir}/opcodes"; \
5019 libsrcdir="$$s/opcodes"; \
5020 $(SHELL) $${libsrcdir}/configure \
5021 $(HOST_CONFIGARGS) $${srcdiroption} \
5022 @stage2_werror_flag@
5023@endif opcodes-bootstrap
5024
5025.PHONY: configure-stage4-opcodes maybe-configure-stage4-opcodes
5026maybe-configure-stage4-opcodes:
5027@if opcodes-bootstrap
5028maybe-configure-stage4-opcodes: configure-stage4-opcodes
f41d6665 5029configure-stage4-opcodes:
cc11cc9b 5030 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
f41d6665 5031 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
cc11cc9b
PB
5032 @r=`${PWD_COMMAND}`; export r; \
5033 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 5034 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
ce406537
PB
5035 $(HOST_EXPORTS) \
5036 $(POSTSTAGE1_HOST_EXPORTS) \
5037 echo Configuring stage 4 in $(HOST_SUBDIR)/opcodes ; \
f41d6665 5038 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
ce406537
PB
5039 cd $(HOST_SUBDIR)/opcodes || exit 1; \
5040 case $(srcdir) in \
5041 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
5042 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
5043 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5044 esac; \
5045 srcdiroption="--srcdir=$${topdir}/opcodes"; \
5046 libsrcdir="$$s/opcodes"; \
5047 $(SHELL) $${libsrcdir}/configure \
5048 $(HOST_CONFIGARGS) $${srcdiroption} \
5049 @stage2_werror_flag@
5050@endif opcodes-bootstrap
5051
5052.PHONY: configure-stageprofile-opcodes maybe-configure-stageprofile-opcodes
5053maybe-configure-stageprofile-opcodes:
5054@if opcodes-bootstrap
5055maybe-configure-stageprofile-opcodes: configure-stageprofile-opcodes
f41d6665 5056configure-stageprofile-opcodes:
cc11cc9b 5057 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
f41d6665 5058 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
cc11cc9b
PB
5059 @r=`${PWD_COMMAND}`; export r; \
5060 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 5061 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
ce406537
PB
5062 $(HOST_EXPORTS) \
5063 $(POSTSTAGE1_HOST_EXPORTS) \
5064 echo Configuring stage profile in $(HOST_SUBDIR)/opcodes ; \
f41d6665 5065 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
ce406537
PB
5066 cd $(HOST_SUBDIR)/opcodes || exit 1; \
5067 case $(srcdir) in \
5068 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
5069 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
5070 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5071 esac; \
5072 srcdiroption="--srcdir=$${topdir}/opcodes"; \
5073 libsrcdir="$$s/opcodes"; \
5074 $(SHELL) $${libsrcdir}/configure \
5075 $(HOST_CONFIGARGS) $${srcdiroption} \
5076 @stage2_werror_flag@
5077@endif opcodes-bootstrap
5078
5079.PHONY: configure-stagefeedback-opcodes maybe-configure-stagefeedback-opcodes
5080maybe-configure-stagefeedback-opcodes:
5081@if opcodes-bootstrap
5082maybe-configure-stagefeedback-opcodes: configure-stagefeedback-opcodes
f41d6665 5083configure-stagefeedback-opcodes:
cc11cc9b 5084 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
f41d6665 5085 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
cc11cc9b
PB
5086 @r=`${PWD_COMMAND}`; export r; \
5087 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 5088 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
ce406537
PB
5089 $(HOST_EXPORTS) \
5090 $(POSTSTAGE1_HOST_EXPORTS) \
5091 echo Configuring stage feedback in $(HOST_SUBDIR)/opcodes ; \
f41d6665 5092 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
ce406537
PB
5093 cd $(HOST_SUBDIR)/opcodes || exit 1; \
5094 case $(srcdir) in \
5095 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
5096 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
5097 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5098 esac; \
5099 srcdiroption="--srcdir=$${topdir}/opcodes"; \
5100 libsrcdir="$$s/opcodes"; \
5101 $(SHELL) $${libsrcdir}/configure \
5102 $(HOST_CONFIGARGS) $${srcdiroption} \
5103 @stage2_werror_flag@
5104@endif opcodes-bootstrap
5105
5106
5107
5108
5109
295f4e42
NN
5110.PHONY: all-opcodes maybe-all-opcodes
5111maybe-all-opcodes:
3ff3adad
PB
5112@if gcc-bootstrap
5113all-opcodes: stage_current
5114@endif gcc-bootstrap
60975492 5115@if opcodes
7e0b5752 5116TARGET-opcodes=all
60975492 5117maybe-all-opcodes: all-opcodes
295f4e42 5118all-opcodes: configure-opcodes
cc11cc9b 5119 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 5120 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5121 $(HOST_EXPORTS) \
215c351a
PB
5122 (cd $(HOST_SUBDIR)/opcodes && \
5123 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-opcodes))
60975492 5124@endif opcodes
1358ccea 5125
25b42232 5126
ce406537
PB
5127
5128.PHONY: all-stage1-opcodes maybe-all-stage1-opcodes
5129.PHONY: clean-stage1-opcodes maybe-clean-stage1-opcodes
5130maybe-all-stage1-opcodes:
5131maybe-clean-stage1-opcodes:
5132@if opcodes-bootstrap
5133maybe-all-stage1-opcodes: all-stage1-opcodes
5134all-stage1: all-stage1-opcodes
1061f99e 5135TARGET-stage1-opcodes = $(TARGET-opcodes)
ce406537 5136all-stage1-opcodes: configure-stage1-opcodes
cc11cc9b 5137 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
ce406537
PB
5138 @r=`${PWD_COMMAND}`; export r; \
5139 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5140 $(HOST_EXPORTS) \
5141 cd $(HOST_SUBDIR)/opcodes && \
cc11cc9b 5142 $(MAKE) $(FLAGS_TO_PASS) CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" \
1061f99e 5143 $(TARGET-stage1-opcodes)
ce406537
PB
5144
5145maybe-clean-stage1-opcodes: clean-stage1-opcodes
5146clean-stage1: clean-stage1-opcodes
5147clean-stage1-opcodes:
5148 @[ -f $(HOST_SUBDIR)/opcodes/Makefile ] || [ -f $(HOST_SUBDIR)/stage1-opcodes/Makefile ] \
5149 || exit 0 ; \
cc11cc9b 5150 [ $(current_stage) = stage1 ] || $(MAKE) stage1-start; \
ce406537
PB
5151 cd $(HOST_SUBDIR)/opcodes && \
5152 $(MAKE) $(FLAGS_TO_PASS) \
cc11cc9b 5153 CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" clean
ce406537
PB
5154@endif opcodes-bootstrap
5155
5156
5157.PHONY: all-stage2-opcodes maybe-all-stage2-opcodes
5158.PHONY: clean-stage2-opcodes maybe-clean-stage2-opcodes
5159maybe-all-stage2-opcodes:
5160maybe-clean-stage2-opcodes:
5161@if opcodes-bootstrap
5162maybe-all-stage2-opcodes: all-stage2-opcodes
5163all-stage2: all-stage2-opcodes
1061f99e 5164TARGET-stage2-opcodes = $(TARGET-opcodes)
ce406537 5165all-stage2-opcodes: configure-stage2-opcodes
cc11cc9b 5166 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
ce406537
PB
5167 @r=`${PWD_COMMAND}`; export r; \
5168 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5169 $(HOST_EXPORTS) \
5170 $(POSTSTAGE1_HOST_EXPORTS) \
5171 cd $(HOST_SUBDIR)/opcodes && \
1061f99e
PB
5172 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
5173 $(TARGET-stage2-opcodes)
ce406537
PB
5174
5175maybe-clean-stage2-opcodes: clean-stage2-opcodes
5176clean-stage2: clean-stage2-opcodes
5177clean-stage2-opcodes:
5178 @[ -f $(HOST_SUBDIR)/opcodes/Makefile ] || [ -f $(HOST_SUBDIR)/stage2-opcodes/Makefile ] \
5179 || exit 0 ; \
cc11cc9b 5180 [ $(current_stage) = stage2 ] || $(MAKE) stage2-start; \
ce406537
PB
5181 cd $(HOST_SUBDIR)/opcodes && \
5182 $(MAKE) $(FLAGS_TO_PASS) \
5183 $(POSTSTAGE1_FLAGS_TO_PASS) \
5184 clean
5185@endif opcodes-bootstrap
5186
5187
5188.PHONY: all-stage3-opcodes maybe-all-stage3-opcodes
5189.PHONY: clean-stage3-opcodes maybe-clean-stage3-opcodes
5190maybe-all-stage3-opcodes:
5191maybe-clean-stage3-opcodes:
5192@if opcodes-bootstrap
5193maybe-all-stage3-opcodes: all-stage3-opcodes
5194all-stage3: all-stage3-opcodes
1061f99e 5195TARGET-stage3-opcodes = $(TARGET-opcodes)
ce406537 5196all-stage3-opcodes: configure-stage3-opcodes
cc11cc9b 5197 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
ce406537
PB
5198 @r=`${PWD_COMMAND}`; export r; \
5199 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5200 $(HOST_EXPORTS) \
5201 $(POSTSTAGE1_HOST_EXPORTS) \
5202 cd $(HOST_SUBDIR)/opcodes && \
1061f99e
PB
5203 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
5204 $(TARGET-stage3-opcodes)
ce406537
PB
5205
5206maybe-clean-stage3-opcodes: clean-stage3-opcodes
5207clean-stage3: clean-stage3-opcodes
5208clean-stage3-opcodes:
5209 @[ -f $(HOST_SUBDIR)/opcodes/Makefile ] || [ -f $(HOST_SUBDIR)/stage3-opcodes/Makefile ] \
5210 || exit 0 ; \
cc11cc9b 5211 [ $(current_stage) = stage3 ] || $(MAKE) stage3-start; \
ce406537
PB
5212 cd $(HOST_SUBDIR)/opcodes && \
5213 $(MAKE) $(FLAGS_TO_PASS) \
5214 $(POSTSTAGE1_FLAGS_TO_PASS) \
5215 clean
5216@endif opcodes-bootstrap
5217
5218
5219.PHONY: all-stage4-opcodes maybe-all-stage4-opcodes
5220.PHONY: clean-stage4-opcodes maybe-clean-stage4-opcodes
5221maybe-all-stage4-opcodes:
5222maybe-clean-stage4-opcodes:
5223@if opcodes-bootstrap
5224maybe-all-stage4-opcodes: all-stage4-opcodes
5225all-stage4: all-stage4-opcodes
1061f99e 5226TARGET-stage4-opcodes = $(TARGET-opcodes)
ce406537 5227all-stage4-opcodes: configure-stage4-opcodes
cc11cc9b 5228 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
ce406537
PB
5229 @r=`${PWD_COMMAND}`; export r; \
5230 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5231 $(HOST_EXPORTS) \
5232 $(POSTSTAGE1_HOST_EXPORTS) \
5233 cd $(HOST_SUBDIR)/opcodes && \
1061f99e
PB
5234 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
5235 $(TARGET-stage4-opcodes)
ce406537
PB
5236
5237maybe-clean-stage4-opcodes: clean-stage4-opcodes
5238clean-stage4: clean-stage4-opcodes
5239clean-stage4-opcodes:
5240 @[ -f $(HOST_SUBDIR)/opcodes/Makefile ] || [ -f $(HOST_SUBDIR)/stage4-opcodes/Makefile ] \
5241 || exit 0 ; \
cc11cc9b 5242 [ $(current_stage) = stage4 ] || $(MAKE) stage4-start; \
ce406537
PB
5243 cd $(HOST_SUBDIR)/opcodes && \
5244 $(MAKE) $(FLAGS_TO_PASS) \
5245 $(POSTSTAGE1_FLAGS_TO_PASS) \
5246 clean
5247@endif opcodes-bootstrap
5248
5249
5250.PHONY: all-stageprofile-opcodes maybe-all-stageprofile-opcodes
5251.PHONY: clean-stageprofile-opcodes maybe-clean-stageprofile-opcodes
5252maybe-all-stageprofile-opcodes:
5253maybe-clean-stageprofile-opcodes:
5254@if opcodes-bootstrap
5255maybe-all-stageprofile-opcodes: all-stageprofile-opcodes
5256all-stageprofile: all-stageprofile-opcodes
1061f99e 5257TARGET-stageprofile-opcodes = $(TARGET-opcodes)
ce406537 5258all-stageprofile-opcodes: configure-stageprofile-opcodes
cc11cc9b 5259 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
ce406537
PB
5260 @r=`${PWD_COMMAND}`; export r; \
5261 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5262 $(HOST_EXPORTS) \
5263 $(POSTSTAGE1_HOST_EXPORTS) \
5264 cd $(HOST_SUBDIR)/opcodes && \
1061f99e
PB
5265 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" \
5266 $(TARGET-stageprofile-opcodes)
ce406537
PB
5267
5268maybe-clean-stageprofile-opcodes: clean-stageprofile-opcodes
5269clean-stageprofile: clean-stageprofile-opcodes
5270clean-stageprofile-opcodes:
5271 @[ -f $(HOST_SUBDIR)/opcodes/Makefile ] || [ -f $(HOST_SUBDIR)/stageprofile-opcodes/Makefile ] \
5272 || exit 0 ; \
cc11cc9b 5273 [ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start; \
ce406537
PB
5274 cd $(HOST_SUBDIR)/opcodes && \
5275 $(MAKE) $(FLAGS_TO_PASS) \
5276 $(POSTSTAGE1_FLAGS_TO_PASS) \
5277 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean
5278@endif opcodes-bootstrap
5279
5280
5281.PHONY: all-stagefeedback-opcodes maybe-all-stagefeedback-opcodes
5282.PHONY: clean-stagefeedback-opcodes maybe-clean-stagefeedback-opcodes
5283maybe-all-stagefeedback-opcodes:
5284maybe-clean-stagefeedback-opcodes:
5285@if opcodes-bootstrap
5286maybe-all-stagefeedback-opcodes: all-stagefeedback-opcodes
5287all-stagefeedback: all-stagefeedback-opcodes
1061f99e 5288TARGET-stagefeedback-opcodes = $(TARGET-opcodes)
ce406537 5289all-stagefeedback-opcodes: configure-stagefeedback-opcodes
cc11cc9b 5290 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
ce406537
PB
5291 @r=`${PWD_COMMAND}`; export r; \
5292 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5293 $(HOST_EXPORTS) \
5294 $(POSTSTAGE1_HOST_EXPORTS) \
5295 cd $(HOST_SUBDIR)/opcodes && \
1061f99e
PB
5296 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-use" \
5297 $(TARGET-stagefeedback-opcodes)
ce406537
PB
5298
5299maybe-clean-stagefeedback-opcodes: clean-stagefeedback-opcodes
5300clean-stagefeedback: clean-stagefeedback-opcodes
5301clean-stagefeedback-opcodes:
5302 @[ -f $(HOST_SUBDIR)/opcodes/Makefile ] || [ -f $(HOST_SUBDIR)/stagefeedback-opcodes/Makefile ] \
5303 || exit 0 ; \
cc11cc9b 5304 [ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start; \
ce406537
PB
5305 cd $(HOST_SUBDIR)/opcodes && \
5306 $(MAKE) $(FLAGS_TO_PASS) \
5307 $(POSTSTAGE1_FLAGS_TO_PASS) \
5308 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean
5309@endif opcodes-bootstrap
5310
5311
5312
5313
5314
295f4e42
NN
5315.PHONY: check-opcodes maybe-check-opcodes
5316maybe-check-opcodes:
60975492
PB
5317@if opcodes
5318maybe-check-opcodes: check-opcodes
1358ccea 5319
295f4e42 5320check-opcodes:
f41d6665 5321 @: $(MAKE); $(unstage)
295f4e42
NN
5322 @r=`${PWD_COMMAND}`; export r; \
5323 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5324 $(HOST_EXPORTS) \
215c351a
PB
5325 (cd $(HOST_SUBDIR)/opcodes && \
5326 $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 5327
60975492 5328@endif opcodes
1358ccea 5329
295f4e42
NN
5330.PHONY: install-opcodes maybe-install-opcodes
5331maybe-install-opcodes:
60975492
PB
5332@if opcodes
5333maybe-install-opcodes: install-opcodes
1358ccea 5334
295f4e42 5335install-opcodes: installdirs
f41d6665 5336 @: $(MAKE); $(unstage)
295f4e42 5337 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 5338 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5339 $(HOST_EXPORTS) \
215c351a 5340 (cd $(HOST_SUBDIR)/opcodes && \
ace9ac7b 5341 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 5342
60975492 5343@endif opcodes
1358ccea 5344
295f4e42 5345# Other targets (info, dvi, etc.)
1358ccea 5346
295f4e42
NN
5347.PHONY: maybe-info-opcodes info-opcodes
5348maybe-info-opcodes:
60975492
PB
5349@if opcodes
5350maybe-info-opcodes: info-opcodes
295f4e42
NN
5351
5352info-opcodes: \
05750653 5353 configure-opcodes
295f4e42 5354 @[ -f ./opcodes/Makefile ] || exit 0; \
8c90b13a
L
5355 r=`${PWD_COMMAND}`; export r; \
5356 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5357 $(HOST_EXPORTS) \
d32ab992 5358 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5359 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5360 done; \
295f4e42 5361 echo "Doing info in opcodes" ; \
215c351a 5362 (cd $(HOST_SUBDIR)/opcodes && \
1358ccea
NN
5363 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5364 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5365 "RANLIB=$${RANLIB}" \
5366 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 5367 info) \
1358ccea
NN
5368 || exit 1
5369
60975492 5370@endif opcodes
1358ccea 5371
295f4e42
NN
5372.PHONY: maybe-dvi-opcodes dvi-opcodes
5373maybe-dvi-opcodes:
60975492
PB
5374@if opcodes
5375maybe-dvi-opcodes: dvi-opcodes
1358ccea 5376
295f4e42 5377dvi-opcodes: \
05750653 5378 configure-opcodes
295f4e42 5379 @[ -f ./opcodes/Makefile ] || exit 0; \
8c90b13a
L
5380 r=`${PWD_COMMAND}`; export r; \
5381 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5382 $(HOST_EXPORTS) \
d32ab992 5383 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5384 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5385 done; \
295f4e42 5386 echo "Doing dvi in opcodes" ; \
215c351a 5387 (cd $(HOST_SUBDIR)/opcodes && \
1358ccea
NN
5388 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5389 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5390 "RANLIB=$${RANLIB}" \
5391 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 5392 dvi) \
1358ccea
NN
5393 || exit 1
5394
60975492 5395@endif opcodes
1358ccea 5396
f87a2b2e
MS
5397.PHONY: maybe-html-opcodes html-opcodes
5398maybe-html-opcodes:
5399@if opcodes
5400maybe-html-opcodes: html-opcodes
5401
5402html-opcodes: \
05750653 5403 configure-opcodes
f87a2b2e
MS
5404 @[ -f ./opcodes/Makefile ] || exit 0; \
5405 r=`${PWD_COMMAND}`; export r; \
5406 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
5407 $(HOST_EXPORTS) \
5408 for flag in $(EXTRA_HOST_FLAGS) ; do \
5409 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5410 done; \
5411 echo "Doing html in opcodes" ; \
215c351a 5412 (cd $(HOST_SUBDIR)/opcodes && \
f87a2b2e
MS
5413 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5414 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5415 "RANLIB=$${RANLIB}" \
5416 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5417 html) \
5418 || exit 1
5419
5420@endif opcodes
5421
295f4e42
NN
5422.PHONY: maybe-TAGS-opcodes TAGS-opcodes
5423maybe-TAGS-opcodes:
60975492
PB
5424@if opcodes
5425maybe-TAGS-opcodes: TAGS-opcodes
1358ccea 5426
295f4e42 5427TAGS-opcodes: \
05750653 5428 configure-opcodes
295f4e42 5429 @[ -f ./opcodes/Makefile ] || exit 0; \
8c90b13a
L
5430 r=`${PWD_COMMAND}`; export r; \
5431 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5432 $(HOST_EXPORTS) \
d32ab992 5433 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5434 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5435 done; \
295f4e42 5436 echo "Doing TAGS in opcodes" ; \
215c351a 5437 (cd $(HOST_SUBDIR)/opcodes && \
1358ccea
NN
5438 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5439 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5440 "RANLIB=$${RANLIB}" \
5441 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 5442 TAGS) \
1358ccea
NN
5443 || exit 1
5444
60975492 5445@endif opcodes
1358ccea 5446
295f4e42
NN
5447.PHONY: maybe-install-info-opcodes install-info-opcodes
5448maybe-install-info-opcodes:
60975492
PB
5449@if opcodes
5450maybe-install-info-opcodes: install-info-opcodes
1358ccea 5451
295f4e42
NN
5452install-info-opcodes: \
5453 configure-opcodes \
05750653 5454 info-opcodes
295f4e42 5455 @[ -f ./opcodes/Makefile ] || exit 0; \
8c90b13a
L
5456 r=`${PWD_COMMAND}`; export r; \
5457 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5458 $(HOST_EXPORTS) \
d32ab992 5459 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5460 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5461 done; \
295f4e42 5462 echo "Doing install-info in opcodes" ; \
215c351a 5463 (cd $(HOST_SUBDIR)/opcodes && \
1358ccea
NN
5464 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5465 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5466 "RANLIB=$${RANLIB}" \
5467 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 5468 install-info) \
1358ccea
NN
5469 || exit 1
5470
60975492 5471@endif opcodes
1358ccea 5472
65d6e994
CD
5473.PHONY: maybe-install-html-opcodes install-html-opcodes
5474maybe-install-html-opcodes:
5475@if opcodes
5476maybe-install-html-opcodes: install-html-opcodes
5477
5478install-html-opcodes: \
5479 configure-opcodes \
5480 html-opcodes
5481 @[ -f ./opcodes/Makefile ] || exit 0; \
5482 r=`${PWD_COMMAND}`; export r; \
5483 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5484 $(HOST_EXPORTS) \
5485 for flag in $(EXTRA_HOST_FLAGS) ; do \
5486 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5487 done; \
5488 echo "Doing install-html in opcodes" ; \
5489 (cd $(HOST_SUBDIR)/opcodes && \
5490 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5491 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5492 "RANLIB=$${RANLIB}" \
5493 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5494 install-html) \
5495 || exit 1
5496
5497@endif opcodes
5498
295f4e42
NN
5499.PHONY: maybe-installcheck-opcodes installcheck-opcodes
5500maybe-installcheck-opcodes:
60975492
PB
5501@if opcodes
5502maybe-installcheck-opcodes: installcheck-opcodes
1358ccea 5503
295f4e42 5504installcheck-opcodes: \
05750653 5505 configure-opcodes
295f4e42 5506 @[ -f ./opcodes/Makefile ] || exit 0; \
8c90b13a
L
5507 r=`${PWD_COMMAND}`; export r; \
5508 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5509 $(HOST_EXPORTS) \
d32ab992 5510 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5511 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5512 done; \
295f4e42 5513 echo "Doing installcheck in opcodes" ; \
215c351a 5514 (cd $(HOST_SUBDIR)/opcodes && \
1358ccea
NN
5515 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5516 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5517 "RANLIB=$${RANLIB}" \
5518 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 5519 installcheck) \
1358ccea
NN
5520 || exit 1
5521
60975492 5522@endif opcodes
1358ccea 5523
295f4e42
NN
5524.PHONY: maybe-mostlyclean-opcodes mostlyclean-opcodes
5525maybe-mostlyclean-opcodes:
60975492
PB
5526@if opcodes
5527maybe-mostlyclean-opcodes: mostlyclean-opcodes
1358ccea 5528
05750653 5529mostlyclean-opcodes:
295f4e42 5530 @[ -f ./opcodes/Makefile ] || exit 0; \
8c90b13a
L
5531 r=`${PWD_COMMAND}`; export r; \
5532 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5533 $(HOST_EXPORTS) \
d32ab992 5534 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5535 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5536 done; \
295f4e42 5537 echo "Doing mostlyclean in opcodes" ; \
215c351a 5538 (cd $(HOST_SUBDIR)/opcodes && \
1358ccea
NN
5539 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5540 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5541 "RANLIB=$${RANLIB}" \
5542 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 5543 mostlyclean) \
1358ccea
NN
5544 || exit 1
5545
60975492 5546@endif opcodes
1358ccea 5547
295f4e42
NN
5548.PHONY: maybe-clean-opcodes clean-opcodes
5549maybe-clean-opcodes:
60975492
PB
5550@if opcodes
5551maybe-clean-opcodes: clean-opcodes
1358ccea 5552
05750653 5553clean-opcodes:
295f4e42 5554 @[ -f ./opcodes/Makefile ] || exit 0; \
8c90b13a
L
5555 r=`${PWD_COMMAND}`; export r; \
5556 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5557 $(HOST_EXPORTS) \
d32ab992 5558 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5559 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5560 done; \
295f4e42 5561 echo "Doing clean in opcodes" ; \
215c351a 5562 (cd $(HOST_SUBDIR)/opcodes && \
1358ccea
NN
5563 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5564 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5565 "RANLIB=$${RANLIB}" \
5566 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 5567 clean) \
1358ccea
NN
5568 || exit 1
5569
60975492 5570@endif opcodes
1358ccea 5571
295f4e42
NN
5572.PHONY: maybe-distclean-opcodes distclean-opcodes
5573maybe-distclean-opcodes:
60975492
PB
5574@if opcodes
5575maybe-distclean-opcodes: distclean-opcodes
1358ccea 5576
05750653 5577distclean-opcodes:
295f4e42 5578 @[ -f ./opcodes/Makefile ] || exit 0; \
8c90b13a
L
5579 r=`${PWD_COMMAND}`; export r; \
5580 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5581 $(HOST_EXPORTS) \
d32ab992 5582 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5583 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5584 done; \
295f4e42 5585 echo "Doing distclean in opcodes" ; \
215c351a 5586 (cd $(HOST_SUBDIR)/opcodes && \
1358ccea
NN
5587 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5588 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5589 "RANLIB=$${RANLIB}" \
5590 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 5591 distclean) \
1358ccea
NN
5592 || exit 1
5593
60975492 5594@endif opcodes
1358ccea 5595
295f4e42
NN
5596.PHONY: maybe-maintainer-clean-opcodes maintainer-clean-opcodes
5597maybe-maintainer-clean-opcodes:
60975492
PB
5598@if opcodes
5599maybe-maintainer-clean-opcodes: maintainer-clean-opcodes
1358ccea 5600
05750653 5601maintainer-clean-opcodes:
295f4e42 5602 @[ -f ./opcodes/Makefile ] || exit 0; \
8c90b13a
L
5603 r=`${PWD_COMMAND}`; export r; \
5604 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5605 $(HOST_EXPORTS) \
d32ab992 5606 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5607 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5608 done; \
295f4e42 5609 echo "Doing maintainer-clean in opcodes" ; \
215c351a 5610 (cd $(HOST_SUBDIR)/opcodes && \
1358ccea
NN
5611 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5612 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5613 "RANLIB=$${RANLIB}" \
5614 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 5615 maintainer-clean) \
1358ccea
NN
5616 || exit 1
5617
60975492 5618@endif opcodes
1358ccea 5619
1358ccea 5620
25b42232 5621
295f4e42
NN
5622.PHONY: configure-binutils maybe-configure-binutils
5623maybe-configure-binutils:
3ff3adad
PB
5624@if gcc-bootstrap
5625configure-binutils: stage_current
5626@endif gcc-bootstrap
60975492
PB
5627@if binutils
5628maybe-configure-binutils: configure-binutils
cc11cc9b 5629configure-binutils:
cc11cc9b
PB
5630 @r=`${PWD_COMMAND}`; export r; \
5631 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
215c351a
PB
5632 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
5633 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
4fc4dd12 5634 $(HOST_EXPORTS) \
25b42232
PB
5635 echo Configuring in $(HOST_SUBDIR)/binutils; \
5636 cd "$(HOST_SUBDIR)/binutils" || exit 1; \
295f4e42 5637 case $(srcdir) in \
215c351a
PB
5638 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
5639 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
5640 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 5641 esac; \
215c351a
PB
5642 srcdiroption="--srcdir=$${topdir}/binutils"; \
5643 libsrcdir="$$s/binutils"; \
295f4e42 5644 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 5645 $(HOST_CONFIGARGS) $${srcdiroption} \
295f4e42 5646 || exit 1
60975492 5647@endif binutils
295f4e42 5648
25b42232
PB
5649
5650
ce406537
PB
5651.PHONY: configure-stage1-binutils maybe-configure-stage1-binutils
5652maybe-configure-stage1-binutils:
5653@if binutils-bootstrap
5654maybe-configure-stage1-binutils: configure-stage1-binutils
f41d6665 5655configure-stage1-binutils:
cc11cc9b 5656 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
f41d6665 5657 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
cc11cc9b
PB
5658 @r=`${PWD_COMMAND}`; export r; \
5659 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 5660 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
ce406537
PB
5661 $(HOST_EXPORTS) \
5662 echo Configuring stage 1 in $(HOST_SUBDIR)/binutils ; \
f41d6665 5663 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
ce406537
PB
5664 cd $(HOST_SUBDIR)/binutils || exit 1; \
5665 case $(srcdir) in \
5666 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
5667 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
5668 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5669 esac; \
5670 srcdiroption="--srcdir=$${topdir}/binutils"; \
5671 libsrcdir="$$s/binutils"; \
5672 $(SHELL) $${libsrcdir}/configure \
5673 $(HOST_CONFIGARGS) $${srcdiroption} \
5674 --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
5675@endif binutils-bootstrap
5676
5677.PHONY: configure-stage2-binutils maybe-configure-stage2-binutils
5678maybe-configure-stage2-binutils:
5679@if binutils-bootstrap
5680maybe-configure-stage2-binutils: configure-stage2-binutils
f41d6665 5681configure-stage2-binutils:
cc11cc9b 5682 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
f41d6665 5683 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
cc11cc9b
PB
5684 @r=`${PWD_COMMAND}`; export r; \
5685 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 5686 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
ce406537
PB
5687 $(HOST_EXPORTS) \
5688 $(POSTSTAGE1_HOST_EXPORTS) \
5689 echo Configuring stage 2 in $(HOST_SUBDIR)/binutils ; \
f41d6665 5690 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
ce406537
PB
5691 cd $(HOST_SUBDIR)/binutils || exit 1; \
5692 case $(srcdir) in \
5693 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
5694 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
5695 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5696 esac; \
5697 srcdiroption="--srcdir=$${topdir}/binutils"; \
5698 libsrcdir="$$s/binutils"; \
5699 $(SHELL) $${libsrcdir}/configure \
5700 $(HOST_CONFIGARGS) $${srcdiroption} \
5701 @stage2_werror_flag@
5702@endif binutils-bootstrap
5703
5704.PHONY: configure-stage3-binutils maybe-configure-stage3-binutils
5705maybe-configure-stage3-binutils:
5706@if binutils-bootstrap
5707maybe-configure-stage3-binutils: configure-stage3-binutils
f41d6665 5708configure-stage3-binutils:
cc11cc9b 5709 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
f41d6665 5710 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
cc11cc9b
PB
5711 @r=`${PWD_COMMAND}`; export r; \
5712 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 5713 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
ce406537
PB
5714 $(HOST_EXPORTS) \
5715 $(POSTSTAGE1_HOST_EXPORTS) \
5716 echo Configuring stage 3 in $(HOST_SUBDIR)/binutils ; \
f41d6665 5717 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
ce406537
PB
5718 cd $(HOST_SUBDIR)/binutils || exit 1; \
5719 case $(srcdir) in \
5720 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
5721 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
5722 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5723 esac; \
5724 srcdiroption="--srcdir=$${topdir}/binutils"; \
5725 libsrcdir="$$s/binutils"; \
5726 $(SHELL) $${libsrcdir}/configure \
5727 $(HOST_CONFIGARGS) $${srcdiroption} \
5728 @stage2_werror_flag@
5729@endif binutils-bootstrap
5730
5731.PHONY: configure-stage4-binutils maybe-configure-stage4-binutils
5732maybe-configure-stage4-binutils:
5733@if binutils-bootstrap
5734maybe-configure-stage4-binutils: configure-stage4-binutils
f41d6665 5735configure-stage4-binutils:
cc11cc9b 5736 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
f41d6665 5737 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
cc11cc9b
PB
5738 @r=`${PWD_COMMAND}`; export r; \
5739 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 5740 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
ce406537
PB
5741 $(HOST_EXPORTS) \
5742 $(POSTSTAGE1_HOST_EXPORTS) \
5743 echo Configuring stage 4 in $(HOST_SUBDIR)/binutils ; \
f41d6665 5744 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
ce406537
PB
5745 cd $(HOST_SUBDIR)/binutils || exit 1; \
5746 case $(srcdir) in \
5747 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
5748 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
5749 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5750 esac; \
5751 srcdiroption="--srcdir=$${topdir}/binutils"; \
5752 libsrcdir="$$s/binutils"; \
5753 $(SHELL) $${libsrcdir}/configure \
5754 $(HOST_CONFIGARGS) $${srcdiroption} \
5755 @stage2_werror_flag@
5756@endif binutils-bootstrap
5757
5758.PHONY: configure-stageprofile-binutils maybe-configure-stageprofile-binutils
5759maybe-configure-stageprofile-binutils:
5760@if binutils-bootstrap
5761maybe-configure-stageprofile-binutils: configure-stageprofile-binutils
f41d6665 5762configure-stageprofile-binutils:
cc11cc9b 5763 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
f41d6665 5764 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
cc11cc9b
PB
5765 @r=`${PWD_COMMAND}`; export r; \
5766 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 5767 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
ce406537
PB
5768 $(HOST_EXPORTS) \
5769 $(POSTSTAGE1_HOST_EXPORTS) \
5770 echo Configuring stage profile in $(HOST_SUBDIR)/binutils ; \
f41d6665 5771 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
ce406537
PB
5772 cd $(HOST_SUBDIR)/binutils || exit 1; \
5773 case $(srcdir) in \
5774 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
5775 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
5776 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5777 esac; \
5778 srcdiroption="--srcdir=$${topdir}/binutils"; \
5779 libsrcdir="$$s/binutils"; \
5780 $(SHELL) $${libsrcdir}/configure \
5781 $(HOST_CONFIGARGS) $${srcdiroption} \
5782 @stage2_werror_flag@
5783@endif binutils-bootstrap
5784
5785.PHONY: configure-stagefeedback-binutils maybe-configure-stagefeedback-binutils
5786maybe-configure-stagefeedback-binutils:
5787@if binutils-bootstrap
5788maybe-configure-stagefeedback-binutils: configure-stagefeedback-binutils
f41d6665 5789configure-stagefeedback-binutils:
cc11cc9b 5790 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
f41d6665 5791 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
cc11cc9b
PB
5792 @r=`${PWD_COMMAND}`; export r; \
5793 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 5794 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
ce406537
PB
5795 $(HOST_EXPORTS) \
5796 $(POSTSTAGE1_HOST_EXPORTS) \
5797 echo Configuring stage feedback in $(HOST_SUBDIR)/binutils ; \
f41d6665 5798 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
ce406537
PB
5799 cd $(HOST_SUBDIR)/binutils || exit 1; \
5800 case $(srcdir) in \
5801 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
5802 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
5803 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5804 esac; \
5805 srcdiroption="--srcdir=$${topdir}/binutils"; \
5806 libsrcdir="$$s/binutils"; \
5807 $(SHELL) $${libsrcdir}/configure \
5808 $(HOST_CONFIGARGS) $${srcdiroption} \
5809 @stage2_werror_flag@
5810@endif binutils-bootstrap
5811
5812
5813
5814
5815
295f4e42
NN
5816.PHONY: all-binutils maybe-all-binutils
5817maybe-all-binutils:
3ff3adad
PB
5818@if gcc-bootstrap
5819all-binutils: stage_current
5820@endif gcc-bootstrap
60975492 5821@if binutils
7e0b5752 5822TARGET-binutils=all
60975492 5823maybe-all-binutils: all-binutils
295f4e42 5824all-binutils: configure-binutils
cc11cc9b 5825 @r=`${PWD_COMMAND}`; export r; \
295f4e42 5826 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5827 $(HOST_EXPORTS) \
215c351a
PB
5828 (cd $(HOST_SUBDIR)/binutils && \
5829 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-binutils))
60975492 5830@endif binutils
295f4e42 5831
25b42232 5832
295f4e42 5833
ce406537
PB
5834.PHONY: all-stage1-binutils maybe-all-stage1-binutils
5835.PHONY: clean-stage1-binutils maybe-clean-stage1-binutils
5836maybe-all-stage1-binutils:
5837maybe-clean-stage1-binutils:
5838@if binutils-bootstrap
5839maybe-all-stage1-binutils: all-stage1-binutils
5840all-stage1: all-stage1-binutils
1061f99e 5841TARGET-stage1-binutils = $(TARGET-binutils)
ce406537 5842all-stage1-binutils: configure-stage1-binutils
cc11cc9b 5843 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
295f4e42
NN
5844 @r=`${PWD_COMMAND}`; export r; \
5845 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5846 $(HOST_EXPORTS) \
ce406537 5847 cd $(HOST_SUBDIR)/binutils && \
cc11cc9b 5848 $(MAKE) $(FLAGS_TO_PASS) CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" \
1061f99e 5849 $(TARGET-stage1-binutils)
295f4e42 5850
ce406537
PB
5851maybe-clean-stage1-binutils: clean-stage1-binutils
5852clean-stage1: clean-stage1-binutils
5853clean-stage1-binutils:
5854 @[ -f $(HOST_SUBDIR)/binutils/Makefile ] || [ -f $(HOST_SUBDIR)/stage1-binutils/Makefile ] \
5855 || exit 0 ; \
cc11cc9b 5856 [ $(current_stage) = stage1 ] || $(MAKE) stage1-start; \
ce406537
PB
5857 cd $(HOST_SUBDIR)/binutils && \
5858 $(MAKE) $(FLAGS_TO_PASS) \
cc11cc9b 5859 CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" clean
ce406537 5860@endif binutils-bootstrap
295f4e42 5861
295f4e42 5862
ce406537
PB
5863.PHONY: all-stage2-binutils maybe-all-stage2-binutils
5864.PHONY: clean-stage2-binutils maybe-clean-stage2-binutils
5865maybe-all-stage2-binutils:
5866maybe-clean-stage2-binutils:
5867@if binutils-bootstrap
5868maybe-all-stage2-binutils: all-stage2-binutils
5869all-stage2: all-stage2-binutils
1061f99e 5870TARGET-stage2-binutils = $(TARGET-binutils)
ce406537 5871all-stage2-binutils: configure-stage2-binutils
cc11cc9b 5872 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
295f4e42
NN
5873 @r=`${PWD_COMMAND}`; export r; \
5874 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5875 $(HOST_EXPORTS) \
ce406537
PB
5876 $(POSTSTAGE1_HOST_EXPORTS) \
5877 cd $(HOST_SUBDIR)/binutils && \
1061f99e
PB
5878 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
5879 $(TARGET-stage2-binutils)
295f4e42 5880
ce406537
PB
5881maybe-clean-stage2-binutils: clean-stage2-binutils
5882clean-stage2: clean-stage2-binutils
5883clean-stage2-binutils:
5884 @[ -f $(HOST_SUBDIR)/binutils/Makefile ] || [ -f $(HOST_SUBDIR)/stage2-binutils/Makefile ] \
5885 || exit 0 ; \
cc11cc9b 5886 [ $(current_stage) = stage2 ] || $(MAKE) stage2-start; \
ce406537
PB
5887 cd $(HOST_SUBDIR)/binutils && \
5888 $(MAKE) $(FLAGS_TO_PASS) \
5889 $(POSTSTAGE1_FLAGS_TO_PASS) \
5890 clean
5891@endif binutils-bootstrap
295f4e42 5892
295f4e42 5893
ce406537
PB
5894.PHONY: all-stage3-binutils maybe-all-stage3-binutils
5895.PHONY: clean-stage3-binutils maybe-clean-stage3-binutils
5896maybe-all-stage3-binutils:
5897maybe-clean-stage3-binutils:
5898@if binutils-bootstrap
5899maybe-all-stage3-binutils: all-stage3-binutils
5900all-stage3: all-stage3-binutils
1061f99e 5901TARGET-stage3-binutils = $(TARGET-binutils)
ce406537 5902all-stage3-binutils: configure-stage3-binutils
cc11cc9b 5903 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
ce406537 5904 @r=`${PWD_COMMAND}`; export r; \
295f4e42 5905 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5906 $(HOST_EXPORTS) \
ce406537
PB
5907 $(POSTSTAGE1_HOST_EXPORTS) \
5908 cd $(HOST_SUBDIR)/binutils && \
1061f99e
PB
5909 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
5910 $(TARGET-stage3-binutils)
1358ccea 5911
ce406537
PB
5912maybe-clean-stage3-binutils: clean-stage3-binutils
5913clean-stage3: clean-stage3-binutils
5914clean-stage3-binutils:
5915 @[ -f $(HOST_SUBDIR)/binutils/Makefile ] || [ -f $(HOST_SUBDIR)/stage3-binutils/Makefile ] \
5916 || exit 0 ; \
cc11cc9b 5917 [ $(current_stage) = stage3 ] || $(MAKE) stage3-start; \
ce406537
PB
5918 cd $(HOST_SUBDIR)/binutils && \
5919 $(MAKE) $(FLAGS_TO_PASS) \
5920 $(POSTSTAGE1_FLAGS_TO_PASS) \
5921 clean
5922@endif binutils-bootstrap
1358ccea 5923
1358ccea 5924
ce406537
PB
5925.PHONY: all-stage4-binutils maybe-all-stage4-binutils
5926.PHONY: clean-stage4-binutils maybe-clean-stage4-binutils
5927maybe-all-stage4-binutils:
5928maybe-clean-stage4-binutils:
5929@if binutils-bootstrap
5930maybe-all-stage4-binutils: all-stage4-binutils
5931all-stage4: all-stage4-binutils
1061f99e 5932TARGET-stage4-binutils = $(TARGET-binutils)
ce406537 5933all-stage4-binutils: configure-stage4-binutils
cc11cc9b 5934 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
ce406537 5935 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 5936 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5937 $(HOST_EXPORTS) \
ce406537
PB
5938 $(POSTSTAGE1_HOST_EXPORTS) \
5939 cd $(HOST_SUBDIR)/binutils && \
1061f99e
PB
5940 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
5941 $(TARGET-stage4-binutils)
ce406537
PB
5942
5943maybe-clean-stage4-binutils: clean-stage4-binutils
5944clean-stage4: clean-stage4-binutils
5945clean-stage4-binutils:
5946 @[ -f $(HOST_SUBDIR)/binutils/Makefile ] || [ -f $(HOST_SUBDIR)/stage4-binutils/Makefile ] \
5947 || exit 0 ; \
cc11cc9b 5948 [ $(current_stage) = stage4 ] || $(MAKE) stage4-start; \
ce406537
PB
5949 cd $(HOST_SUBDIR)/binutils && \
5950 $(MAKE) $(FLAGS_TO_PASS) \
5951 $(POSTSTAGE1_FLAGS_TO_PASS) \
5952 clean
5953@endif binutils-bootstrap
5954
5955
5956.PHONY: all-stageprofile-binutils maybe-all-stageprofile-binutils
5957.PHONY: clean-stageprofile-binutils maybe-clean-stageprofile-binutils
5958maybe-all-stageprofile-binutils:
5959maybe-clean-stageprofile-binutils:
5960@if binutils-bootstrap
5961maybe-all-stageprofile-binutils: all-stageprofile-binutils
5962all-stageprofile: all-stageprofile-binutils
1061f99e 5963TARGET-stageprofile-binutils = $(TARGET-binutils)
ce406537 5964all-stageprofile-binutils: configure-stageprofile-binutils
cc11cc9b 5965 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
ce406537
PB
5966 @r=`${PWD_COMMAND}`; export r; \
5967 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5968 $(HOST_EXPORTS) \
5969 $(POSTSTAGE1_HOST_EXPORTS) \
5970 cd $(HOST_SUBDIR)/binutils && \
1061f99e
PB
5971 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" \
5972 $(TARGET-stageprofile-binutils)
ce406537
PB
5973
5974maybe-clean-stageprofile-binutils: clean-stageprofile-binutils
5975clean-stageprofile: clean-stageprofile-binutils
5976clean-stageprofile-binutils:
5977 @[ -f $(HOST_SUBDIR)/binutils/Makefile ] || [ -f $(HOST_SUBDIR)/stageprofile-binutils/Makefile ] \
5978 || exit 0 ; \
cc11cc9b 5979 [ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start; \
ce406537
PB
5980 cd $(HOST_SUBDIR)/binutils && \
5981 $(MAKE) $(FLAGS_TO_PASS) \
5982 $(POSTSTAGE1_FLAGS_TO_PASS) \
5983 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean
5984@endif binutils-bootstrap
5985
5986
5987.PHONY: all-stagefeedback-binutils maybe-all-stagefeedback-binutils
5988.PHONY: clean-stagefeedback-binutils maybe-clean-stagefeedback-binutils
5989maybe-all-stagefeedback-binutils:
5990maybe-clean-stagefeedback-binutils:
5991@if binutils-bootstrap
5992maybe-all-stagefeedback-binutils: all-stagefeedback-binutils
5993all-stagefeedback: all-stagefeedback-binutils
1061f99e 5994TARGET-stagefeedback-binutils = $(TARGET-binutils)
ce406537 5995all-stagefeedback-binutils: configure-stagefeedback-binutils
cc11cc9b 5996 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
ce406537
PB
5997 @r=`${PWD_COMMAND}`; export r; \
5998 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5999 $(HOST_EXPORTS) \
6000 $(POSTSTAGE1_HOST_EXPORTS) \
6001 cd $(HOST_SUBDIR)/binutils && \
1061f99e
PB
6002 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-use" \
6003 $(TARGET-stagefeedback-binutils)
ce406537
PB
6004
6005maybe-clean-stagefeedback-binutils: clean-stagefeedback-binutils
6006clean-stagefeedback: clean-stagefeedback-binutils
6007clean-stagefeedback-binutils:
6008 @[ -f $(HOST_SUBDIR)/binutils/Makefile ] || [ -f $(HOST_SUBDIR)/stagefeedback-binutils/Makefile ] \
6009 || exit 0 ; \
cc11cc9b 6010 [ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start; \
ce406537
PB
6011 cd $(HOST_SUBDIR)/binutils && \
6012 $(MAKE) $(FLAGS_TO_PASS) \
6013 $(POSTSTAGE1_FLAGS_TO_PASS) \
6014 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean
6015@endif binutils-bootstrap
6016
6017
6018
6019
6020
6021.PHONY: check-binutils maybe-check-binutils
6022maybe-check-binutils:
6023@if binutils
6024maybe-check-binutils: check-binutils
6025
6026check-binutils:
f41d6665 6027 @: $(MAKE); $(unstage)
ce406537
PB
6028 @r=`${PWD_COMMAND}`; export r; \
6029 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6030 $(HOST_EXPORTS) \
6031 (cd $(HOST_SUBDIR)/binutils && \
6032 $(MAKE) $(FLAGS_TO_PASS) check)
6033
6034@endif binutils
6035
6036.PHONY: install-binutils maybe-install-binutils
6037maybe-install-binutils:
6038@if binutils
6039maybe-install-binutils: install-binutils
6040
6041install-binutils: installdirs
f41d6665 6042 @: $(MAKE); $(unstage)
ce406537
PB
6043 @r=`${PWD_COMMAND}`; export r; \
6044 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6045 $(HOST_EXPORTS) \
6046 (cd $(HOST_SUBDIR)/binutils && \
6047 $(MAKE) $(FLAGS_TO_PASS) install)
6048
6049@endif binutils
6050
6051# Other targets (info, dvi, etc.)
6052
6053.PHONY: maybe-info-binutils info-binutils
6054maybe-info-binutils:
6055@if binutils
6056maybe-info-binutils: info-binutils
6057
6058info-binutils: \
6059 configure-binutils
6060 @[ -f ./binutils/Makefile ] || exit 0; \
6061 r=`${PWD_COMMAND}`; export r; \
6062 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6063 $(HOST_EXPORTS) \
6064 for flag in $(EXTRA_HOST_FLAGS) ; do \
6065 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6066 done; \
6067 echo "Doing info in binutils" ; \
6068 (cd $(HOST_SUBDIR)/binutils && \
6069 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6070 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6071 "RANLIB=$${RANLIB}" \
6072 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6073 info) \
6074 || exit 1
6075
6076@endif binutils
6077
6078.PHONY: maybe-dvi-binutils dvi-binutils
6079maybe-dvi-binutils:
6080@if binutils
6081maybe-dvi-binutils: dvi-binutils
6082
6083dvi-binutils: \
6084 configure-binutils
6085 @[ -f ./binutils/Makefile ] || exit 0; \
6086 r=`${PWD_COMMAND}`; export r; \
6087 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6088 $(HOST_EXPORTS) \
6089 for flag in $(EXTRA_HOST_FLAGS) ; do \
6090 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6091 done; \
6092 echo "Doing dvi in binutils" ; \
6093 (cd $(HOST_SUBDIR)/binutils && \
1358ccea
NN
6094 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6095 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6096 "RANLIB=$${RANLIB}" \
6097 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6098 dvi) \
1358ccea
NN
6099 || exit 1
6100
60975492 6101@endif binutils
1358ccea 6102
f87a2b2e
MS
6103.PHONY: maybe-html-binutils html-binutils
6104maybe-html-binutils:
6105@if binutils
6106maybe-html-binutils: html-binutils
6107
6108html-binutils: \
05750653 6109 configure-binutils
f87a2b2e
MS
6110 @[ -f ./binutils/Makefile ] || exit 0; \
6111 r=`${PWD_COMMAND}`; export r; \
6112 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
6113 $(HOST_EXPORTS) \
6114 for flag in $(EXTRA_HOST_FLAGS) ; do \
6115 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6116 done; \
6117 echo "Doing html in binutils" ; \
215c351a 6118 (cd $(HOST_SUBDIR)/binutils && \
f87a2b2e
MS
6119 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6120 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6121 "RANLIB=$${RANLIB}" \
6122 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6123 html) \
6124 || exit 1
6125
6126@endif binutils
6127
295f4e42
NN
6128.PHONY: maybe-TAGS-binutils TAGS-binutils
6129maybe-TAGS-binutils:
60975492
PB
6130@if binutils
6131maybe-TAGS-binutils: TAGS-binutils
1358ccea 6132
295f4e42 6133TAGS-binutils: \
05750653 6134 configure-binutils
295f4e42 6135 @[ -f ./binutils/Makefile ] || exit 0; \
8c90b13a
L
6136 r=`${PWD_COMMAND}`; export r; \
6137 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6138 $(HOST_EXPORTS) \
d32ab992 6139 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6140 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6141 done; \
295f4e42 6142 echo "Doing TAGS in binutils" ; \
215c351a 6143 (cd $(HOST_SUBDIR)/binutils && \
1358ccea
NN
6144 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6145 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6146 "RANLIB=$${RANLIB}" \
6147 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6148 TAGS) \
1358ccea
NN
6149 || exit 1
6150
60975492 6151@endif binutils
1358ccea 6152
295f4e42
NN
6153.PHONY: maybe-install-info-binutils install-info-binutils
6154maybe-install-info-binutils:
60975492
PB
6155@if binutils
6156maybe-install-info-binutils: install-info-binutils
1358ccea 6157
295f4e42
NN
6158install-info-binutils: \
6159 configure-binutils \
05750653 6160 info-binutils
295f4e42 6161 @[ -f ./binutils/Makefile ] || exit 0; \
8c90b13a
L
6162 r=`${PWD_COMMAND}`; export r; \
6163 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6164 $(HOST_EXPORTS) \
d32ab992 6165 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6166 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6167 done; \
295f4e42 6168 echo "Doing install-info in binutils" ; \
215c351a 6169 (cd $(HOST_SUBDIR)/binutils && \
1358ccea
NN
6170 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6171 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6172 "RANLIB=$${RANLIB}" \
6173 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6174 install-info) \
1358ccea
NN
6175 || exit 1
6176
60975492 6177@endif binutils
1358ccea 6178
65d6e994
CD
6179.PHONY: maybe-install-html-binutils install-html-binutils
6180maybe-install-html-binutils:
6181@if binutils
6182maybe-install-html-binutils: install-html-binutils
6183
6184install-html-binutils: \
6185 configure-binutils \
6186 html-binutils
6187 @[ -f ./binutils/Makefile ] || exit 0; \
6188 r=`${PWD_COMMAND}`; export r; \
6189 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6190 $(HOST_EXPORTS) \
6191 for flag in $(EXTRA_HOST_FLAGS) ; do \
6192 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6193 done; \
6194 echo "Doing install-html in binutils" ; \
6195 (cd $(HOST_SUBDIR)/binutils && \
6196 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6197 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6198 "RANLIB=$${RANLIB}" \
6199 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6200 install-html) \
6201 || exit 1
6202
6203@endif binutils
6204
295f4e42
NN
6205.PHONY: maybe-installcheck-binutils installcheck-binutils
6206maybe-installcheck-binutils:
60975492
PB
6207@if binutils
6208maybe-installcheck-binutils: installcheck-binutils
1358ccea 6209
295f4e42 6210installcheck-binutils: \
05750653 6211 configure-binutils
295f4e42 6212 @[ -f ./binutils/Makefile ] || exit 0; \
8c90b13a
L
6213 r=`${PWD_COMMAND}`; export r; \
6214 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6215 $(HOST_EXPORTS) \
d32ab992 6216 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6217 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6218 done; \
295f4e42 6219 echo "Doing installcheck in binutils" ; \
215c351a 6220 (cd $(HOST_SUBDIR)/binutils && \
1358ccea
NN
6221 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6222 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6223 "RANLIB=$${RANLIB}" \
6224 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6225 installcheck) \
1358ccea
NN
6226 || exit 1
6227
60975492 6228@endif binutils
1358ccea 6229
295f4e42
NN
6230.PHONY: maybe-mostlyclean-binutils mostlyclean-binutils
6231maybe-mostlyclean-binutils:
60975492
PB
6232@if binutils
6233maybe-mostlyclean-binutils: mostlyclean-binutils
1358ccea 6234
05750653 6235mostlyclean-binutils:
295f4e42 6236 @[ -f ./binutils/Makefile ] || exit 0; \
8c90b13a
L
6237 r=`${PWD_COMMAND}`; export r; \
6238 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6239 $(HOST_EXPORTS) \
d32ab992 6240 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6241 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6242 done; \
295f4e42 6243 echo "Doing mostlyclean in binutils" ; \
215c351a 6244 (cd $(HOST_SUBDIR)/binutils && \
1358ccea
NN
6245 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6246 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6247 "RANLIB=$${RANLIB}" \
6248 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6249 mostlyclean) \
1358ccea
NN
6250 || exit 1
6251
60975492 6252@endif binutils
1358ccea 6253
295f4e42
NN
6254.PHONY: maybe-clean-binutils clean-binutils
6255maybe-clean-binutils:
60975492
PB
6256@if binutils
6257maybe-clean-binutils: clean-binutils
d9cdb878 6258
05750653 6259clean-binutils:
295f4e42 6260 @[ -f ./binutils/Makefile ] || exit 0; \
d9cdb878
AC
6261 r=`${PWD_COMMAND}`; export r; \
6262 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6263 $(HOST_EXPORTS) \
d32ab992 6264 for flag in $(EXTRA_HOST_FLAGS) ; do \
d9cdb878
AC
6265 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6266 done; \
295f4e42 6267 echo "Doing clean in binutils" ; \
215c351a 6268 (cd $(HOST_SUBDIR)/binutils && \
d9cdb878
AC
6269 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6270 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6271 "RANLIB=$${RANLIB}" \
6272 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6273 clean) \
d9cdb878
AC
6274 || exit 1
6275
60975492 6276@endif binutils
d9cdb878 6277
295f4e42
NN
6278.PHONY: maybe-distclean-binutils distclean-binutils
6279maybe-distclean-binutils:
60975492
PB
6280@if binutils
6281maybe-distclean-binutils: distclean-binutils
1358ccea 6282
05750653 6283distclean-binutils:
295f4e42 6284 @[ -f ./binutils/Makefile ] || exit 0; \
8c90b13a
L
6285 r=`${PWD_COMMAND}`; export r; \
6286 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6287 $(HOST_EXPORTS) \
d32ab992 6288 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6289 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6290 done; \
295f4e42 6291 echo "Doing distclean in binutils" ; \
215c351a 6292 (cd $(HOST_SUBDIR)/binutils && \
1358ccea
NN
6293 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6294 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6295 "RANLIB=$${RANLIB}" \
6296 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6297 distclean) \
1358ccea
NN
6298 || exit 1
6299
60975492 6300@endif binutils
1358ccea 6301
295f4e42
NN
6302.PHONY: maybe-maintainer-clean-binutils maintainer-clean-binutils
6303maybe-maintainer-clean-binutils:
60975492
PB
6304@if binutils
6305maybe-maintainer-clean-binutils: maintainer-clean-binutils
1358ccea 6306
05750653 6307maintainer-clean-binutils:
295f4e42 6308 @[ -f ./binutils/Makefile ] || exit 0; \
8c90b13a
L
6309 r=`${PWD_COMMAND}`; export r; \
6310 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6311 $(HOST_EXPORTS) \
d32ab992 6312 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6313 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6314 done; \
295f4e42 6315 echo "Doing maintainer-clean in binutils" ; \
215c351a 6316 (cd $(HOST_SUBDIR)/binutils && \
1358ccea
NN
6317 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6318 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6319 "RANLIB=$${RANLIB}" \
6320 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6321 maintainer-clean) \
295f4e42
NN
6322 || exit 1
6323
60975492 6324@endif binutils
295f4e42
NN
6325
6326
25b42232 6327
295f4e42
NN
6328.PHONY: configure-bison maybe-configure-bison
6329maybe-configure-bison:
3ff3adad
PB
6330@if gcc-bootstrap
6331configure-bison: stage_current
6332@endif gcc-bootstrap
60975492
PB
6333@if bison
6334maybe-configure-bison: configure-bison
cc11cc9b 6335configure-bison:
f41d6665 6336 @: $(MAKE); $(unstage)
cc11cc9b 6337 @r=`${PWD_COMMAND}`; export r; \
295f4e42 6338 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
6339 test ! -f $(HOST_SUBDIR)/bison/Makefile || exit 0; \
6340 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bison ; \
4fc4dd12 6341 $(HOST_EXPORTS) \
25b42232
PB
6342 echo Configuring in $(HOST_SUBDIR)/bison; \
6343 cd "$(HOST_SUBDIR)/bison" || exit 1; \
295f4e42 6344 case $(srcdir) in \
215c351a
PB
6345 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
6346 *) topdir=`echo $(HOST_SUBDIR)/bison/ | \
6347 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 6348 esac; \
215c351a
PB
6349 srcdiroption="--srcdir=$${topdir}/bison"; \
6350 libsrcdir="$$s/bison"; \
295f4e42 6351 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 6352 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 6353 || exit 1
60975492 6354@endif bison
1358ccea 6355
25b42232
PB
6356
6357
ce406537
PB
6358
6359
295f4e42
NN
6360.PHONY: all-bison maybe-all-bison
6361maybe-all-bison:
3ff3adad
PB
6362@if gcc-bootstrap
6363all-bison: stage_current
6364@endif gcc-bootstrap
60975492 6365@if bison
7e0b5752 6366TARGET-bison=all
60975492 6367maybe-all-bison: all-bison
295f4e42 6368all-bison: configure-bison
f41d6665 6369 @: $(MAKE); $(unstage)
295f4e42
NN
6370 @r=`${PWD_COMMAND}`; export r; \
6371 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6372 $(HOST_EXPORTS) \
215c351a
PB
6373 (cd $(HOST_SUBDIR)/bison && \
6374 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-bison))
60975492 6375@endif bison
295f4e42 6376
25b42232 6377
ce406537
PB
6378
6379
295f4e42
NN
6380.PHONY: check-bison maybe-check-bison
6381maybe-check-bison:
60975492
PB
6382@if bison
6383maybe-check-bison: check-bison
295f4e42
NN
6384
6385# This module is only tested in a native toolchain.
6386check-bison:
f41d6665 6387 @: $(MAKE); $(unstage)
295f4e42
NN
6388 @if [ '$(host)' = '$(target)' ] ; then \
6389 r=`${PWD_COMMAND}`; export r; \
6390 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6391 $(HOST_EXPORTS) \
215c351a 6392 (cd $(HOST_SUBDIR)/bison && \
ef6e9bc0 6393 $(MAKE) $(FLAGS_TO_PASS) check); \
295f4e42
NN
6394 fi
6395
60975492 6396@endif bison
1358ccea 6397
295f4e42
NN
6398.PHONY: install-bison maybe-install-bison
6399maybe-install-bison:
60975492
PB
6400@if bison
6401maybe-install-bison: install-bison
1358ccea 6402
295f4e42 6403install-bison: installdirs
f41d6665 6404 @: $(MAKE); $(unstage)
295f4e42 6405 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 6406 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6407 $(HOST_EXPORTS) \
215c351a 6408 (cd $(HOST_SUBDIR)/bison && \
ace9ac7b 6409 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 6410
60975492 6411@endif bison
1358ccea 6412
295f4e42 6413# Other targets (info, dvi, etc.)
1358ccea 6414
295f4e42
NN
6415.PHONY: maybe-info-bison info-bison
6416maybe-info-bison:
60975492
PB
6417@if bison
6418maybe-info-bison: info-bison
295f4e42
NN
6419
6420info-bison: \
05750653 6421 configure-bison
f41d6665 6422 @: $(MAKE); $(unstage)
295f4e42 6423 @[ -f ./bison/Makefile ] || exit 0; \
8c90b13a
L
6424 r=`${PWD_COMMAND}`; export r; \
6425 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6426 $(HOST_EXPORTS) \
d32ab992 6427 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6428 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6429 done; \
295f4e42 6430 echo "Doing info in bison" ; \
215c351a 6431 (cd $(HOST_SUBDIR)/bison && \
1358ccea
NN
6432 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6433 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6434 "RANLIB=$${RANLIB}" \
6435 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6436 info) \
1358ccea
NN
6437 || exit 1
6438
60975492 6439@endif bison
1358ccea 6440
295f4e42
NN
6441.PHONY: maybe-dvi-bison dvi-bison
6442maybe-dvi-bison:
60975492
PB
6443@if bison
6444maybe-dvi-bison: dvi-bison
1358ccea 6445
295f4e42 6446dvi-bison: \
05750653 6447 configure-bison
f41d6665 6448 @: $(MAKE); $(unstage)
295f4e42 6449 @[ -f ./bison/Makefile ] || exit 0; \
8c90b13a
L
6450 r=`${PWD_COMMAND}`; export r; \
6451 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6452 $(HOST_EXPORTS) \
d32ab992 6453 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6454 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6455 done; \
295f4e42 6456 echo "Doing dvi in bison" ; \
215c351a 6457 (cd $(HOST_SUBDIR)/bison && \
1358ccea
NN
6458 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6459 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6460 "RANLIB=$${RANLIB}" \
6461 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6462 dvi) \
1358ccea
NN
6463 || exit 1
6464
60975492 6465@endif bison
1358ccea 6466
f87a2b2e
MS
6467.PHONY: maybe-html-bison html-bison
6468maybe-html-bison:
6469@if bison
6470maybe-html-bison: html-bison
6471
6472html-bison: \
05750653 6473 configure-bison
f41d6665 6474 @: $(MAKE); $(unstage)
f87a2b2e
MS
6475 @[ -f ./bison/Makefile ] || exit 0; \
6476 r=`${PWD_COMMAND}`; export r; \
6477 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
6478 $(HOST_EXPORTS) \
6479 for flag in $(EXTRA_HOST_FLAGS) ; do \
6480 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6481 done; \
6482 echo "Doing html in bison" ; \
215c351a 6483 (cd $(HOST_SUBDIR)/bison && \
f87a2b2e
MS
6484 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6485 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6486 "RANLIB=$${RANLIB}" \
6487 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6488 html) \
6489 || exit 1
6490
6491@endif bison
6492
295f4e42
NN
6493.PHONY: maybe-TAGS-bison TAGS-bison
6494maybe-TAGS-bison:
60975492
PB
6495@if bison
6496maybe-TAGS-bison: TAGS-bison
1358ccea 6497
295f4e42 6498TAGS-bison: \
05750653 6499 configure-bison
f41d6665 6500 @: $(MAKE); $(unstage)
295f4e42 6501 @[ -f ./bison/Makefile ] || exit 0; \
8c90b13a
L
6502 r=`${PWD_COMMAND}`; export r; \
6503 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6504 $(HOST_EXPORTS) \
d32ab992 6505 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6506 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6507 done; \
295f4e42 6508 echo "Doing TAGS in bison" ; \
215c351a 6509 (cd $(HOST_SUBDIR)/bison && \
1358ccea
NN
6510 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6511 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6512 "RANLIB=$${RANLIB}" \
6513 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6514 TAGS) \
1358ccea
NN
6515 || exit 1
6516
60975492 6517@endif bison
1358ccea 6518
295f4e42
NN
6519.PHONY: maybe-install-info-bison install-info-bison
6520maybe-install-info-bison:
60975492
PB
6521@if bison
6522maybe-install-info-bison: install-info-bison
1358ccea 6523
295f4e42
NN
6524install-info-bison: \
6525 configure-bison \
05750653 6526 info-bison
f41d6665 6527 @: $(MAKE); $(unstage)
295f4e42 6528 @[ -f ./bison/Makefile ] || exit 0; \
8c90b13a
L
6529 r=`${PWD_COMMAND}`; export r; \
6530 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6531 $(HOST_EXPORTS) \
d32ab992 6532 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6533 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6534 done; \
295f4e42 6535 echo "Doing install-info in bison" ; \
215c351a 6536 (cd $(HOST_SUBDIR)/bison && \
1358ccea
NN
6537 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6538 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6539 "RANLIB=$${RANLIB}" \
6540 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6541 install-info) \
1358ccea
NN
6542 || exit 1
6543
60975492 6544@endif bison
1358ccea 6545
65d6e994
CD
6546.PHONY: maybe-install-html-bison install-html-bison
6547maybe-install-html-bison:
6548@if bison
6549maybe-install-html-bison: install-html-bison
6550
6551install-html-bison: \
6552 configure-bison \
6553 html-bison
6554 @: $(MAKE); $(unstage)
6555 @[ -f ./bison/Makefile ] || exit 0; \
6556 r=`${PWD_COMMAND}`; export r; \
6557 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6558 $(HOST_EXPORTS) \
6559 for flag in $(EXTRA_HOST_FLAGS) ; do \
6560 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6561 done; \
6562 echo "Doing install-html in bison" ; \
6563 (cd $(HOST_SUBDIR)/bison && \
6564 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6565 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6566 "RANLIB=$${RANLIB}" \
6567 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6568 install-html) \
6569 || exit 1
6570
6571@endif bison
6572
295f4e42
NN
6573.PHONY: maybe-installcheck-bison installcheck-bison
6574maybe-installcheck-bison:
60975492
PB
6575@if bison
6576maybe-installcheck-bison: installcheck-bison
1358ccea 6577
295f4e42 6578installcheck-bison: \
05750653 6579 configure-bison
f41d6665 6580 @: $(MAKE); $(unstage)
295f4e42 6581 @[ -f ./bison/Makefile ] || exit 0; \
8c90b13a
L
6582 r=`${PWD_COMMAND}`; export r; \
6583 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6584 $(HOST_EXPORTS) \
d32ab992 6585 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6586 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6587 done; \
295f4e42 6588 echo "Doing installcheck in bison" ; \
215c351a 6589 (cd $(HOST_SUBDIR)/bison && \
1358ccea
NN
6590 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6591 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6592 "RANLIB=$${RANLIB}" \
6593 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6594 installcheck) \
1358ccea
NN
6595 || exit 1
6596
60975492 6597@endif bison
1358ccea
NN
6598
6599.PHONY: maybe-mostlyclean-bison mostlyclean-bison
6600maybe-mostlyclean-bison:
60975492
PB
6601@if bison
6602maybe-mostlyclean-bison: mostlyclean-bison
1358ccea 6603
05750653 6604mostlyclean-bison:
f41d6665 6605 @: $(MAKE); $(unstage)
1358ccea 6606 @[ -f ./bison/Makefile ] || exit 0; \
8c90b13a
L
6607 r=`${PWD_COMMAND}`; export r; \
6608 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6609 $(HOST_EXPORTS) \
d32ab992 6610 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6611 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6612 done; \
6613 echo "Doing mostlyclean in bison" ; \
215c351a 6614 (cd $(HOST_SUBDIR)/bison && \
1358ccea
NN
6615 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6616 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6617 "RANLIB=$${RANLIB}" \
6618 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6619 mostlyclean) \
1358ccea
NN
6620 || exit 1
6621
60975492 6622@endif bison
1358ccea 6623
295f4e42
NN
6624.PHONY: maybe-clean-bison clean-bison
6625maybe-clean-bison:
60975492
PB
6626@if bison
6627maybe-clean-bison: clean-bison
1358ccea 6628
05750653 6629clean-bison:
f41d6665 6630 @: $(MAKE); $(unstage)
295f4e42 6631 @[ -f ./bison/Makefile ] || exit 0; \
8c90b13a
L
6632 r=`${PWD_COMMAND}`; export r; \
6633 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6634 $(HOST_EXPORTS) \
d32ab992 6635 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6636 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6637 done; \
295f4e42 6638 echo "Doing clean in bison" ; \
215c351a 6639 (cd $(HOST_SUBDIR)/bison && \
1358ccea
NN
6640 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6641 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6642 "RANLIB=$${RANLIB}" \
6643 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6644 clean) \
1358ccea
NN
6645 || exit 1
6646
60975492 6647@endif bison
1358ccea 6648
295f4e42
NN
6649.PHONY: maybe-distclean-bison distclean-bison
6650maybe-distclean-bison:
60975492
PB
6651@if bison
6652maybe-distclean-bison: distclean-bison
1358ccea 6653
05750653 6654distclean-bison:
f41d6665 6655 @: $(MAKE); $(unstage)
295f4e42 6656 @[ -f ./bison/Makefile ] || exit 0; \
8c90b13a
L
6657 r=`${PWD_COMMAND}`; export r; \
6658 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6659 $(HOST_EXPORTS) \
d32ab992 6660 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6661 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6662 done; \
295f4e42 6663 echo "Doing distclean in bison" ; \
215c351a 6664 (cd $(HOST_SUBDIR)/bison && \
1358ccea
NN
6665 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6666 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6667 "RANLIB=$${RANLIB}" \
6668 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6669 distclean) \
1358ccea
NN
6670 || exit 1
6671
60975492 6672@endif bison
1358ccea 6673
295f4e42
NN
6674.PHONY: maybe-maintainer-clean-bison maintainer-clean-bison
6675maybe-maintainer-clean-bison:
60975492
PB
6676@if bison
6677maybe-maintainer-clean-bison: maintainer-clean-bison
1358ccea 6678
05750653 6679maintainer-clean-bison:
f41d6665 6680 @: $(MAKE); $(unstage)
295f4e42 6681 @[ -f ./bison/Makefile ] || exit 0; \
8c90b13a
L
6682 r=`${PWD_COMMAND}`; export r; \
6683 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6684 $(HOST_EXPORTS) \
d32ab992 6685 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6686 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6687 done; \
295f4e42 6688 echo "Doing maintainer-clean in bison" ; \
215c351a 6689 (cd $(HOST_SUBDIR)/bison && \
1358ccea
NN
6690 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6691 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6692 "RANLIB=$${RANLIB}" \
6693 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6694 maintainer-clean) \
1358ccea
NN
6695 || exit 1
6696
60975492 6697@endif bison
1358ccea 6698
1358ccea 6699
25b42232 6700
295f4e42
NN
6701.PHONY: configure-byacc maybe-configure-byacc
6702maybe-configure-byacc:
3ff3adad
PB
6703@if gcc-bootstrap
6704configure-byacc: stage_current
6705@endif gcc-bootstrap
60975492
PB
6706@if byacc
6707maybe-configure-byacc: configure-byacc
cc11cc9b 6708configure-byacc:
f41d6665 6709 @: $(MAKE); $(unstage)
cc11cc9b 6710 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 6711 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
6712 test ! -f $(HOST_SUBDIR)/byacc/Makefile || exit 0; \
6713 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/byacc ; \
4fc4dd12 6714 $(HOST_EXPORTS) \
25b42232
PB
6715 echo Configuring in $(HOST_SUBDIR)/byacc; \
6716 cd "$(HOST_SUBDIR)/byacc" || exit 1; \
295f4e42 6717 case $(srcdir) in \
215c351a
PB
6718 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
6719 *) topdir=`echo $(HOST_SUBDIR)/byacc/ | \
6720 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 6721 esac; \
215c351a
PB
6722 srcdiroption="--srcdir=$${topdir}/byacc"; \
6723 libsrcdir="$$s/byacc"; \
295f4e42 6724 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 6725 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 6726 || exit 1
60975492 6727@endif byacc
1358ccea 6728
25b42232
PB
6729
6730
ce406537
PB
6731
6732
295f4e42
NN
6733.PHONY: all-byacc maybe-all-byacc
6734maybe-all-byacc:
3ff3adad
PB
6735@if gcc-bootstrap
6736all-byacc: stage_current
6737@endif gcc-bootstrap
60975492 6738@if byacc
7e0b5752 6739TARGET-byacc=all
60975492 6740maybe-all-byacc: all-byacc
295f4e42 6741all-byacc: configure-byacc
f41d6665 6742 @: $(MAKE); $(unstage)
295f4e42 6743 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 6744 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6745 $(HOST_EXPORTS) \
215c351a
PB
6746 (cd $(HOST_SUBDIR)/byacc && \
6747 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-byacc))
60975492 6748@endif byacc
1358ccea 6749
25b42232 6750
ce406537
PB
6751
6752
295f4e42
NN
6753.PHONY: check-byacc maybe-check-byacc
6754maybe-check-byacc:
60975492
PB
6755@if byacc
6756maybe-check-byacc: check-byacc
1358ccea 6757
295f4e42
NN
6758# This module is only tested in a native toolchain.
6759check-byacc:
f41d6665 6760 @: $(MAKE); $(unstage)
295f4e42
NN
6761 @if [ '$(host)' = '$(target)' ] ; then \
6762 r=`${PWD_COMMAND}`; export r; \
6763 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6764 $(HOST_EXPORTS) \
215c351a 6765 (cd $(HOST_SUBDIR)/byacc && \
ef6e9bc0 6766 $(MAKE) $(FLAGS_TO_PASS) check); \
295f4e42 6767 fi
1358ccea 6768
60975492 6769@endif byacc
295f4e42
NN
6770
6771.PHONY: install-byacc maybe-install-byacc
6772maybe-install-byacc:
60975492
PB
6773@if byacc
6774maybe-install-byacc: install-byacc
295f4e42
NN
6775
6776install-byacc: installdirs
f41d6665 6777 @: $(MAKE); $(unstage)
295f4e42 6778 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 6779 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6780 $(HOST_EXPORTS) \
215c351a 6781 (cd $(HOST_SUBDIR)/byacc && \
ace9ac7b 6782 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 6783
60975492 6784@endif byacc
1358ccea 6785
295f4e42 6786# Other targets (info, dvi, etc.)
1358ccea 6787
295f4e42
NN
6788.PHONY: maybe-info-byacc info-byacc
6789maybe-info-byacc:
60975492
PB
6790@if byacc
6791maybe-info-byacc: info-byacc
295f4e42
NN
6792
6793info-byacc: \
05750653 6794 configure-byacc
f41d6665 6795 @: $(MAKE); $(unstage)
295f4e42 6796 @[ -f ./byacc/Makefile ] || exit 0; \
8c90b13a
L
6797 r=`${PWD_COMMAND}`; export r; \
6798 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6799 $(HOST_EXPORTS) \
d32ab992 6800 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6801 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6802 done; \
295f4e42 6803 echo "Doing info in byacc" ; \
215c351a 6804 (cd $(HOST_SUBDIR)/byacc && \
1358ccea
NN
6805 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6806 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6807 "RANLIB=$${RANLIB}" \
6808 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6809 info) \
1358ccea
NN
6810 || exit 1
6811
60975492 6812@endif byacc
1358ccea 6813
295f4e42
NN
6814.PHONY: maybe-dvi-byacc dvi-byacc
6815maybe-dvi-byacc:
60975492
PB
6816@if byacc
6817maybe-dvi-byacc: dvi-byacc
1358ccea 6818
295f4e42 6819dvi-byacc: \
05750653 6820 configure-byacc
f41d6665 6821 @: $(MAKE); $(unstage)
295f4e42 6822 @[ -f ./byacc/Makefile ] || exit 0; \
8c90b13a
L
6823 r=`${PWD_COMMAND}`; export r; \
6824 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6825 $(HOST_EXPORTS) \
d32ab992 6826 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6827 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6828 done; \
295f4e42 6829 echo "Doing dvi in byacc" ; \
215c351a 6830 (cd $(HOST_SUBDIR)/byacc && \
1358ccea
NN
6831 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6832 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6833 "RANLIB=$${RANLIB}" \
6834 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6835 dvi) \
1358ccea
NN
6836 || exit 1
6837
60975492 6838@endif byacc
1358ccea 6839
f87a2b2e
MS
6840.PHONY: maybe-html-byacc html-byacc
6841maybe-html-byacc:
6842@if byacc
6843maybe-html-byacc: html-byacc
6844
6845html-byacc: \
05750653 6846 configure-byacc
f41d6665 6847 @: $(MAKE); $(unstage)
f87a2b2e
MS
6848 @[ -f ./byacc/Makefile ] || exit 0; \
6849 r=`${PWD_COMMAND}`; export r; \
6850 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
6851 $(HOST_EXPORTS) \
6852 for flag in $(EXTRA_HOST_FLAGS) ; do \
6853 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6854 done; \
6855 echo "Doing html in byacc" ; \
215c351a 6856 (cd $(HOST_SUBDIR)/byacc && \
f87a2b2e
MS
6857 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6858 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6859 "RANLIB=$${RANLIB}" \
6860 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6861 html) \
6862 || exit 1
6863
6864@endif byacc
6865
295f4e42
NN
6866.PHONY: maybe-TAGS-byacc TAGS-byacc
6867maybe-TAGS-byacc:
60975492
PB
6868@if byacc
6869maybe-TAGS-byacc: TAGS-byacc
1358ccea 6870
295f4e42 6871TAGS-byacc: \
05750653 6872 configure-byacc
f41d6665 6873 @: $(MAKE); $(unstage)
295f4e42 6874 @[ -f ./byacc/Makefile ] || exit 0; \
8c90b13a
L
6875 r=`${PWD_COMMAND}`; export r; \
6876 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6877 $(HOST_EXPORTS) \
d32ab992 6878 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6879 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6880 done; \
295f4e42 6881 echo "Doing TAGS in byacc" ; \
215c351a 6882 (cd $(HOST_SUBDIR)/byacc && \
1358ccea
NN
6883 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6884 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6885 "RANLIB=$${RANLIB}" \
6886 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6887 TAGS) \
1358ccea
NN
6888 || exit 1
6889
60975492 6890@endif byacc
1358ccea 6891
295f4e42
NN
6892.PHONY: maybe-install-info-byacc install-info-byacc
6893maybe-install-info-byacc:
60975492
PB
6894@if byacc
6895maybe-install-info-byacc: install-info-byacc
1358ccea 6896
295f4e42
NN
6897install-info-byacc: \
6898 configure-byacc \
05750653 6899 info-byacc
f41d6665 6900 @: $(MAKE); $(unstage)
295f4e42 6901 @[ -f ./byacc/Makefile ] || exit 0; \
8c90b13a
L
6902 r=`${PWD_COMMAND}`; export r; \
6903 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6904 $(HOST_EXPORTS) \
d32ab992 6905 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6906 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6907 done; \
295f4e42 6908 echo "Doing install-info in byacc" ; \
215c351a 6909 (cd $(HOST_SUBDIR)/byacc && \
1358ccea
NN
6910 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6911 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6912 "RANLIB=$${RANLIB}" \
6913 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6914 install-info) \
1358ccea
NN
6915 || exit 1
6916
60975492 6917@endif byacc
1358ccea 6918
65d6e994
CD
6919.PHONY: maybe-install-html-byacc install-html-byacc
6920maybe-install-html-byacc:
6921@if byacc
6922maybe-install-html-byacc: install-html-byacc
6923
6924install-html-byacc: \
6925 configure-byacc \
6926 html-byacc
6927 @: $(MAKE); $(unstage)
6928 @[ -f ./byacc/Makefile ] || exit 0; \
6929 r=`${PWD_COMMAND}`; export r; \
6930 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6931 $(HOST_EXPORTS) \
6932 for flag in $(EXTRA_HOST_FLAGS) ; do \
6933 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6934 done; \
6935 echo "Doing install-html in byacc" ; \
6936 (cd $(HOST_SUBDIR)/byacc && \
6937 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6938 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6939 "RANLIB=$${RANLIB}" \
6940 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6941 install-html) \
6942 || exit 1
6943
6944@endif byacc
6945
295f4e42
NN
6946.PHONY: maybe-installcheck-byacc installcheck-byacc
6947maybe-installcheck-byacc:
60975492
PB
6948@if byacc
6949maybe-installcheck-byacc: installcheck-byacc
1358ccea 6950
295f4e42 6951installcheck-byacc: \
05750653 6952 configure-byacc
f41d6665 6953 @: $(MAKE); $(unstage)
295f4e42 6954 @[ -f ./byacc/Makefile ] || exit 0; \
8c90b13a
L
6955 r=`${PWD_COMMAND}`; export r; \
6956 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6957 $(HOST_EXPORTS) \
d32ab992 6958 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6959 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6960 done; \
295f4e42 6961 echo "Doing installcheck in byacc" ; \
215c351a 6962 (cd $(HOST_SUBDIR)/byacc && \
1358ccea
NN
6963 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6964 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6965 "RANLIB=$${RANLIB}" \
6966 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6967 installcheck) \
1358ccea
NN
6968 || exit 1
6969
60975492 6970@endif byacc
1358ccea 6971
295f4e42
NN
6972.PHONY: maybe-mostlyclean-byacc mostlyclean-byacc
6973maybe-mostlyclean-byacc:
60975492
PB
6974@if byacc
6975maybe-mostlyclean-byacc: mostlyclean-byacc
1358ccea 6976
05750653 6977mostlyclean-byacc:
f41d6665 6978 @: $(MAKE); $(unstage)
295f4e42 6979 @[ -f ./byacc/Makefile ] || exit 0; \
8c90b13a
L
6980 r=`${PWD_COMMAND}`; export r; \
6981 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6982 $(HOST_EXPORTS) \
d32ab992 6983 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6984 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6985 done; \
295f4e42 6986 echo "Doing mostlyclean in byacc" ; \
215c351a 6987 (cd $(HOST_SUBDIR)/byacc && \
1358ccea
NN
6988 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6989 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6990 "RANLIB=$${RANLIB}" \
6991 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6992 mostlyclean) \
1358ccea
NN
6993 || exit 1
6994
60975492 6995@endif byacc
1358ccea 6996
295f4e42
NN
6997.PHONY: maybe-clean-byacc clean-byacc
6998maybe-clean-byacc:
60975492
PB
6999@if byacc
7000maybe-clean-byacc: clean-byacc
1358ccea 7001
05750653 7002clean-byacc:
f41d6665 7003 @: $(MAKE); $(unstage)
295f4e42 7004 @[ -f ./byacc/Makefile ] || exit 0; \
8c90b13a
L
7005 r=`${PWD_COMMAND}`; export r; \
7006 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7007 $(HOST_EXPORTS) \
d32ab992 7008 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7009 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7010 done; \
295f4e42 7011 echo "Doing clean in byacc" ; \
215c351a 7012 (cd $(HOST_SUBDIR)/byacc && \
1358ccea
NN
7013 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7014 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7015 "RANLIB=$${RANLIB}" \
7016 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7017 clean) \
1358ccea
NN
7018 || exit 1
7019
60975492 7020@endif byacc
1358ccea 7021
295f4e42
NN
7022.PHONY: maybe-distclean-byacc distclean-byacc
7023maybe-distclean-byacc:
60975492
PB
7024@if byacc
7025maybe-distclean-byacc: distclean-byacc
1358ccea 7026
05750653 7027distclean-byacc:
f41d6665 7028 @: $(MAKE); $(unstage)
295f4e42 7029 @[ -f ./byacc/Makefile ] || exit 0; \
8c90b13a
L
7030 r=`${PWD_COMMAND}`; export r; \
7031 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7032 $(HOST_EXPORTS) \
d32ab992 7033 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7034 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7035 done; \
295f4e42 7036 echo "Doing distclean in byacc" ; \
215c351a 7037 (cd $(HOST_SUBDIR)/byacc && \
1358ccea
NN
7038 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7039 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7040 "RANLIB=$${RANLIB}" \
7041 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7042 distclean) \
1358ccea
NN
7043 || exit 1
7044
60975492 7045@endif byacc
1358ccea 7046
295f4e42
NN
7047.PHONY: maybe-maintainer-clean-byacc maintainer-clean-byacc
7048maybe-maintainer-clean-byacc:
60975492
PB
7049@if byacc
7050maybe-maintainer-clean-byacc: maintainer-clean-byacc
1358ccea 7051
05750653 7052maintainer-clean-byacc:
f41d6665 7053 @: $(MAKE); $(unstage)
295f4e42 7054 @[ -f ./byacc/Makefile ] || exit 0; \
8c90b13a
L
7055 r=`${PWD_COMMAND}`; export r; \
7056 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7057 $(HOST_EXPORTS) \
d32ab992 7058 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7059 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7060 done; \
295f4e42 7061 echo "Doing maintainer-clean in byacc" ; \
215c351a 7062 (cd $(HOST_SUBDIR)/byacc && \
1358ccea
NN
7063 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7064 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7065 "RANLIB=$${RANLIB}" \
7066 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7067 maintainer-clean) \
1358ccea
NN
7068 || exit 1
7069
60975492 7070@endif byacc
1358ccea 7071
1358ccea 7072
25b42232 7073
295f4e42
NN
7074.PHONY: configure-bzip2 maybe-configure-bzip2
7075maybe-configure-bzip2:
3ff3adad
PB
7076@if gcc-bootstrap
7077configure-bzip2: stage_current
7078@endif gcc-bootstrap
60975492
PB
7079@if bzip2
7080maybe-configure-bzip2: configure-bzip2
cc11cc9b 7081configure-bzip2:
f41d6665 7082 @: $(MAKE); $(unstage)
cc11cc9b 7083 @r=`${PWD_COMMAND}`; export r; \
295f4e42 7084 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
7085 test ! -f $(HOST_SUBDIR)/bzip2/Makefile || exit 0; \
7086 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bzip2 ; \
4fc4dd12 7087 $(HOST_EXPORTS) \
25b42232
PB
7088 echo Configuring in $(HOST_SUBDIR)/bzip2; \
7089 cd "$(HOST_SUBDIR)/bzip2" || exit 1; \
295f4e42 7090 case $(srcdir) in \
215c351a
PB
7091 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7092 *) topdir=`echo $(HOST_SUBDIR)/bzip2/ | \
7093 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 7094 esac; \
215c351a
PB
7095 srcdiroption="--srcdir=$${topdir}/bzip2"; \
7096 libsrcdir="$$s/bzip2"; \
295f4e42 7097 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 7098 $(HOST_CONFIGARGS) $${srcdiroption} \
295f4e42 7099 || exit 1
60975492 7100@endif bzip2
295f4e42 7101
25b42232
PB
7102
7103
ce406537
PB
7104
7105
295f4e42
NN
7106.PHONY: all-bzip2 maybe-all-bzip2
7107maybe-all-bzip2:
3ff3adad
PB
7108@if gcc-bootstrap
7109all-bzip2: stage_current
7110@endif gcc-bootstrap
60975492 7111@if bzip2
7e0b5752 7112TARGET-bzip2=all
60975492 7113maybe-all-bzip2: all-bzip2
295f4e42 7114all-bzip2: configure-bzip2
f41d6665 7115 @: $(MAKE); $(unstage)
295f4e42
NN
7116 @r=`${PWD_COMMAND}`; export r; \
7117 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7118 $(HOST_EXPORTS) \
215c351a
PB
7119 (cd $(HOST_SUBDIR)/bzip2 && \
7120 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-bzip2))
60975492 7121@endif bzip2
295f4e42 7122
25b42232 7123
ce406537
PB
7124
7125
295f4e42
NN
7126.PHONY: check-bzip2 maybe-check-bzip2
7127maybe-check-bzip2:
60975492
PB
7128@if bzip2
7129maybe-check-bzip2: check-bzip2
295f4e42
NN
7130
7131check-bzip2:
f41d6665 7132 @: $(MAKE); $(unstage)
295f4e42
NN
7133 @r=`${PWD_COMMAND}`; export r; \
7134 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7135 $(HOST_EXPORTS) \
215c351a
PB
7136 (cd $(HOST_SUBDIR)/bzip2 && \
7137 $(MAKE) $(FLAGS_TO_PASS) check)
295f4e42 7138
60975492 7139@endif bzip2
295f4e42
NN
7140
7141.PHONY: install-bzip2 maybe-install-bzip2
7142maybe-install-bzip2:
60975492
PB
7143@if bzip2
7144maybe-install-bzip2: install-bzip2
295f4e42
NN
7145
7146install-bzip2: installdirs
f41d6665 7147 @: $(MAKE); $(unstage)
295f4e42
NN
7148 @r=`${PWD_COMMAND}`; export r; \
7149 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7150 $(HOST_EXPORTS) \
215c351a 7151 (cd $(HOST_SUBDIR)/bzip2 && \
ace9ac7b 7152 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 7153
60975492 7154@endif bzip2
295f4e42
NN
7155
7156# Other targets (info, dvi, etc.)
7157
7158.PHONY: maybe-info-bzip2 info-bzip2
7159maybe-info-bzip2:
60975492
PB
7160@if bzip2
7161maybe-info-bzip2: info-bzip2
295f4e42
NN
7162
7163info-bzip2: \
05750653 7164 configure-bzip2
f41d6665 7165 @: $(MAKE); $(unstage)
295f4e42 7166 @[ -f ./bzip2/Makefile ] || exit 0; \
8c90b13a
L
7167 r=`${PWD_COMMAND}`; export r; \
7168 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7169 $(HOST_EXPORTS) \
d32ab992 7170 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7171 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7172 done; \
295f4e42 7173 echo "Doing info in bzip2" ; \
215c351a 7174 (cd $(HOST_SUBDIR)/bzip2 && \
1358ccea
NN
7175 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7176 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7177 "RANLIB=$${RANLIB}" \
7178 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7179 info) \
1358ccea
NN
7180 || exit 1
7181
60975492 7182@endif bzip2
1358ccea 7183
295f4e42
NN
7184.PHONY: maybe-dvi-bzip2 dvi-bzip2
7185maybe-dvi-bzip2:
60975492
PB
7186@if bzip2
7187maybe-dvi-bzip2: dvi-bzip2
1358ccea 7188
295f4e42 7189dvi-bzip2: \
05750653 7190 configure-bzip2
f41d6665 7191 @: $(MAKE); $(unstage)
295f4e42 7192 @[ -f ./bzip2/Makefile ] || exit 0; \
8c90b13a
L
7193 r=`${PWD_COMMAND}`; export r; \
7194 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7195 $(HOST_EXPORTS) \
d32ab992 7196 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7197 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7198 done; \
295f4e42 7199 echo "Doing dvi in bzip2" ; \
215c351a 7200 (cd $(HOST_SUBDIR)/bzip2 && \
1358ccea
NN
7201 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7202 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7203 "RANLIB=$${RANLIB}" \
7204 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7205 dvi) \
1358ccea
NN
7206 || exit 1
7207
60975492 7208@endif bzip2
1358ccea 7209
f87a2b2e
MS
7210.PHONY: maybe-html-bzip2 html-bzip2
7211maybe-html-bzip2:
7212@if bzip2
7213maybe-html-bzip2: html-bzip2
7214
7215html-bzip2: \
05750653 7216 configure-bzip2
f41d6665 7217 @: $(MAKE); $(unstage)
f87a2b2e
MS
7218 @[ -f ./bzip2/Makefile ] || exit 0; \
7219 r=`${PWD_COMMAND}`; export r; \
7220 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
7221 $(HOST_EXPORTS) \
7222 for flag in $(EXTRA_HOST_FLAGS) ; do \
7223 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7224 done; \
7225 echo "Doing html in bzip2" ; \
215c351a 7226 (cd $(HOST_SUBDIR)/bzip2 && \
f87a2b2e
MS
7227 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7228 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7229 "RANLIB=$${RANLIB}" \
7230 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7231 html) \
7232 || exit 1
7233
7234@endif bzip2
7235
295f4e42
NN
7236.PHONY: maybe-TAGS-bzip2 TAGS-bzip2
7237maybe-TAGS-bzip2:
60975492
PB
7238@if bzip2
7239maybe-TAGS-bzip2: TAGS-bzip2
1358ccea 7240
295f4e42 7241TAGS-bzip2: \
05750653 7242 configure-bzip2
f41d6665 7243 @: $(MAKE); $(unstage)
295f4e42 7244 @[ -f ./bzip2/Makefile ] || exit 0; \
8c90b13a
L
7245 r=`${PWD_COMMAND}`; export r; \
7246 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7247 $(HOST_EXPORTS) \
d32ab992 7248 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7249 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7250 done; \
295f4e42 7251 echo "Doing TAGS in bzip2" ; \
215c351a 7252 (cd $(HOST_SUBDIR)/bzip2 && \
1358ccea
NN
7253 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7254 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7255 "RANLIB=$${RANLIB}" \
7256 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7257 TAGS) \
1358ccea
NN
7258 || exit 1
7259
60975492 7260@endif bzip2
1358ccea 7261
295f4e42
NN
7262.PHONY: maybe-install-info-bzip2 install-info-bzip2
7263maybe-install-info-bzip2:
60975492
PB
7264@if bzip2
7265maybe-install-info-bzip2: install-info-bzip2
1358ccea 7266
295f4e42
NN
7267install-info-bzip2: \
7268 configure-bzip2 \
05750653 7269 info-bzip2
f41d6665 7270 @: $(MAKE); $(unstage)
295f4e42 7271 @[ -f ./bzip2/Makefile ] || exit 0; \
8c90b13a
L
7272 r=`${PWD_COMMAND}`; export r; \
7273 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7274 $(HOST_EXPORTS) \
d32ab992 7275 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7276 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7277 done; \
295f4e42 7278 echo "Doing install-info in bzip2" ; \
215c351a 7279 (cd $(HOST_SUBDIR)/bzip2 && \
1358ccea
NN
7280 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7281 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7282 "RANLIB=$${RANLIB}" \
7283 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7284 install-info) \
1358ccea
NN
7285 || exit 1
7286
60975492 7287@endif bzip2
1358ccea 7288
65d6e994
CD
7289.PHONY: maybe-install-html-bzip2 install-html-bzip2
7290maybe-install-html-bzip2:
7291@if bzip2
7292maybe-install-html-bzip2: install-html-bzip2
7293
7294install-html-bzip2: \
7295 configure-bzip2 \
7296 html-bzip2
7297 @: $(MAKE); $(unstage)
7298 @[ -f ./bzip2/Makefile ] || exit 0; \
7299 r=`${PWD_COMMAND}`; export r; \
7300 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7301 $(HOST_EXPORTS) \
7302 for flag in $(EXTRA_HOST_FLAGS) ; do \
7303 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7304 done; \
7305 echo "Doing install-html in bzip2" ; \
7306 (cd $(HOST_SUBDIR)/bzip2 && \
7307 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7308 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7309 "RANLIB=$${RANLIB}" \
7310 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7311 install-html) \
7312 || exit 1
7313
7314@endif bzip2
7315
295f4e42
NN
7316.PHONY: maybe-installcheck-bzip2 installcheck-bzip2
7317maybe-installcheck-bzip2:
60975492
PB
7318@if bzip2
7319maybe-installcheck-bzip2: installcheck-bzip2
295f4e42
NN
7320
7321installcheck-bzip2: \
05750653 7322 configure-bzip2
f41d6665 7323 @: $(MAKE); $(unstage)
295f4e42 7324 @[ -f ./bzip2/Makefile ] || exit 0; \
8c90b13a
L
7325 r=`${PWD_COMMAND}`; export r; \
7326 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7327 $(HOST_EXPORTS) \
d32ab992 7328 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7329 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7330 done; \
295f4e42 7331 echo "Doing installcheck in bzip2" ; \
215c351a 7332 (cd $(HOST_SUBDIR)/bzip2 && \
1358ccea
NN
7333 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7334 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7335 "RANLIB=$${RANLIB}" \
7336 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7337 installcheck) \
1358ccea
NN
7338 || exit 1
7339
60975492 7340@endif bzip2
1358ccea 7341
295f4e42
NN
7342.PHONY: maybe-mostlyclean-bzip2 mostlyclean-bzip2
7343maybe-mostlyclean-bzip2:
60975492
PB
7344@if bzip2
7345maybe-mostlyclean-bzip2: mostlyclean-bzip2
1358ccea 7346
05750653 7347mostlyclean-bzip2:
f41d6665 7348 @: $(MAKE); $(unstage)
295f4e42 7349 @[ -f ./bzip2/Makefile ] || exit 0; \
8c90b13a
L
7350 r=`${PWD_COMMAND}`; export r; \
7351 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7352 $(HOST_EXPORTS) \
d32ab992 7353 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7354 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7355 done; \
295f4e42 7356 echo "Doing mostlyclean in bzip2" ; \
215c351a 7357 (cd $(HOST_SUBDIR)/bzip2 && \
1358ccea
NN
7358 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7359 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7360 "RANLIB=$${RANLIB}" \
7361 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7362 mostlyclean) \
1358ccea
NN
7363 || exit 1
7364
60975492 7365@endif bzip2
1358ccea 7366
295f4e42
NN
7367.PHONY: maybe-clean-bzip2 clean-bzip2
7368maybe-clean-bzip2:
60975492
PB
7369@if bzip2
7370maybe-clean-bzip2: clean-bzip2
1358ccea 7371
05750653 7372clean-bzip2:
f41d6665 7373 @: $(MAKE); $(unstage)
295f4e42 7374 @[ -f ./bzip2/Makefile ] || exit 0; \
8c90b13a
L
7375 r=`${PWD_COMMAND}`; export r; \
7376 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7377 $(HOST_EXPORTS) \
d32ab992 7378 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7379 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7380 done; \
295f4e42 7381 echo "Doing clean in bzip2" ; \
215c351a 7382 (cd $(HOST_SUBDIR)/bzip2 && \
1358ccea
NN
7383 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7384 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7385 "RANLIB=$${RANLIB}" \
7386 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7387 clean) \
1358ccea
NN
7388 || exit 1
7389
60975492 7390@endif bzip2
1358ccea 7391
295f4e42
NN
7392.PHONY: maybe-distclean-bzip2 distclean-bzip2
7393maybe-distclean-bzip2:
60975492
PB
7394@if bzip2
7395maybe-distclean-bzip2: distclean-bzip2
1358ccea 7396
05750653 7397distclean-bzip2:
f41d6665 7398 @: $(MAKE); $(unstage)
295f4e42 7399 @[ -f ./bzip2/Makefile ] || exit 0; \
8c90b13a
L
7400 r=`${PWD_COMMAND}`; export r; \
7401 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7402 $(HOST_EXPORTS) \
d32ab992 7403 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7404 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7405 done; \
295f4e42 7406 echo "Doing distclean in bzip2" ; \
215c351a 7407 (cd $(HOST_SUBDIR)/bzip2 && \
1358ccea
NN
7408 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7409 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7410 "RANLIB=$${RANLIB}" \
7411 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7412 distclean) \
1358ccea
NN
7413 || exit 1
7414
60975492 7415@endif bzip2
1358ccea 7416
295f4e42
NN
7417.PHONY: maybe-maintainer-clean-bzip2 maintainer-clean-bzip2
7418maybe-maintainer-clean-bzip2:
60975492
PB
7419@if bzip2
7420maybe-maintainer-clean-bzip2: maintainer-clean-bzip2
1358ccea 7421
05750653 7422maintainer-clean-bzip2:
f41d6665 7423 @: $(MAKE); $(unstage)
295f4e42 7424 @[ -f ./bzip2/Makefile ] || exit 0; \
8c90b13a
L
7425 r=`${PWD_COMMAND}`; export r; \
7426 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7427 $(HOST_EXPORTS) \
d32ab992 7428 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7429 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7430 done; \
295f4e42 7431 echo "Doing maintainer-clean in bzip2" ; \
215c351a 7432 (cd $(HOST_SUBDIR)/bzip2 && \
1358ccea
NN
7433 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7434 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7435 "RANLIB=$${RANLIB}" \
7436 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7437 maintainer-clean) \
1358ccea
NN
7438 || exit 1
7439
60975492 7440@endif bzip2
1358ccea 7441
1358ccea 7442
25b42232 7443
295f4e42
NN
7444.PHONY: configure-dejagnu maybe-configure-dejagnu
7445maybe-configure-dejagnu:
3ff3adad
PB
7446@if gcc-bootstrap
7447configure-dejagnu: stage_current
7448@endif gcc-bootstrap
60975492
PB
7449@if dejagnu
7450maybe-configure-dejagnu: configure-dejagnu
cc11cc9b 7451configure-dejagnu:
f41d6665 7452 @: $(MAKE); $(unstage)
cc11cc9b 7453 @r=`${PWD_COMMAND}`; export r; \
295f4e42 7454 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
7455 test ! -f $(HOST_SUBDIR)/dejagnu/Makefile || exit 0; \
7456 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/dejagnu ; \
4fc4dd12 7457 $(HOST_EXPORTS) \
25b42232
PB
7458 echo Configuring in $(HOST_SUBDIR)/dejagnu; \
7459 cd "$(HOST_SUBDIR)/dejagnu" || exit 1; \
295f4e42 7460 case $(srcdir) in \
215c351a
PB
7461 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7462 *) topdir=`echo $(HOST_SUBDIR)/dejagnu/ | \
7463 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 7464 esac; \
215c351a
PB
7465 srcdiroption="--srcdir=$${topdir}/dejagnu"; \
7466 libsrcdir="$$s/dejagnu"; \
295f4e42 7467 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 7468 $(HOST_CONFIGARGS) $${srcdiroption} \
295f4e42 7469 || exit 1
60975492 7470@endif dejagnu
295f4e42 7471
25b42232
PB
7472
7473
ce406537
PB
7474
7475
295f4e42
NN
7476.PHONY: all-dejagnu maybe-all-dejagnu
7477maybe-all-dejagnu:
3ff3adad
PB
7478@if gcc-bootstrap
7479all-dejagnu: stage_current
7480@endif gcc-bootstrap
60975492 7481@if dejagnu
7e0b5752 7482TARGET-dejagnu=all
60975492 7483maybe-all-dejagnu: all-dejagnu
295f4e42 7484all-dejagnu: configure-dejagnu
f41d6665 7485 @: $(MAKE); $(unstage)
295f4e42
NN
7486 @r=`${PWD_COMMAND}`; export r; \
7487 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7488 $(HOST_EXPORTS) \
215c351a
PB
7489 (cd $(HOST_SUBDIR)/dejagnu && \
7490 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-dejagnu))
60975492 7491@endif dejagnu
295f4e42 7492
25b42232 7493
ce406537
PB
7494
7495
295f4e42
NN
7496.PHONY: check-dejagnu maybe-check-dejagnu
7497maybe-check-dejagnu:
60975492
PB
7498@if dejagnu
7499maybe-check-dejagnu: check-dejagnu
295f4e42
NN
7500
7501check-dejagnu:
f41d6665 7502 @: $(MAKE); $(unstage)
295f4e42
NN
7503 @r=`${PWD_COMMAND}`; export r; \
7504 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7505 $(HOST_EXPORTS) \
215c351a
PB
7506 (cd $(HOST_SUBDIR)/dejagnu && \
7507 $(MAKE) $(FLAGS_TO_PASS) check)
295f4e42 7508
60975492 7509@endif dejagnu
295f4e42
NN
7510
7511.PHONY: install-dejagnu maybe-install-dejagnu
7512maybe-install-dejagnu:
60975492
PB
7513@if dejagnu
7514maybe-install-dejagnu: install-dejagnu
295f4e42
NN
7515
7516install-dejagnu: installdirs
f41d6665 7517 @: $(MAKE); $(unstage)
295f4e42
NN
7518 @r=`${PWD_COMMAND}`; export r; \
7519 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7520 $(HOST_EXPORTS) \
215c351a 7521 (cd $(HOST_SUBDIR)/dejagnu && \
ace9ac7b 7522 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 7523
60975492 7524@endif dejagnu
295f4e42
NN
7525
7526# Other targets (info, dvi, etc.)
7527
7528.PHONY: maybe-info-dejagnu info-dejagnu
7529maybe-info-dejagnu:
60975492
PB
7530@if dejagnu
7531maybe-info-dejagnu: info-dejagnu
295f4e42
NN
7532
7533info-dejagnu: \
05750653 7534 configure-dejagnu
f41d6665 7535 @: $(MAKE); $(unstage)
295f4e42 7536 @[ -f ./dejagnu/Makefile ] || exit 0; \
8c90b13a
L
7537 r=`${PWD_COMMAND}`; export r; \
7538 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7539 $(HOST_EXPORTS) \
d32ab992 7540 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7541 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7542 done; \
295f4e42 7543 echo "Doing info in dejagnu" ; \
215c351a 7544 (cd $(HOST_SUBDIR)/dejagnu && \
1358ccea
NN
7545 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7546 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7547 "RANLIB=$${RANLIB}" \
7548 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7549 info) \
1358ccea
NN
7550 || exit 1
7551
60975492 7552@endif dejagnu
1358ccea 7553
295f4e42
NN
7554.PHONY: maybe-dvi-dejagnu dvi-dejagnu
7555maybe-dvi-dejagnu:
60975492
PB
7556@if dejagnu
7557maybe-dvi-dejagnu: dvi-dejagnu
1358ccea 7558
295f4e42 7559dvi-dejagnu: \
05750653 7560 configure-dejagnu
f41d6665 7561 @: $(MAKE); $(unstage)
295f4e42 7562 @[ -f ./dejagnu/Makefile ] || exit 0; \
8c90b13a
L
7563 r=`${PWD_COMMAND}`; export r; \
7564 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7565 $(HOST_EXPORTS) \
d32ab992 7566 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7567 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7568 done; \
295f4e42 7569 echo "Doing dvi in dejagnu" ; \
215c351a 7570 (cd $(HOST_SUBDIR)/dejagnu && \
1358ccea
NN
7571 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7572 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7573 "RANLIB=$${RANLIB}" \
7574 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7575 dvi) \
1358ccea
NN
7576 || exit 1
7577
60975492 7578@endif dejagnu
1358ccea 7579
f87a2b2e
MS
7580.PHONY: maybe-html-dejagnu html-dejagnu
7581maybe-html-dejagnu:
7582@if dejagnu
7583maybe-html-dejagnu: html-dejagnu
7584
7585html-dejagnu: \
05750653 7586 configure-dejagnu
f41d6665 7587 @: $(MAKE); $(unstage)
f87a2b2e
MS
7588 @[ -f ./dejagnu/Makefile ] || exit 0; \
7589 r=`${PWD_COMMAND}`; export r; \
7590 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
7591 $(HOST_EXPORTS) \
7592 for flag in $(EXTRA_HOST_FLAGS) ; do \
7593 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7594 done; \
7595 echo "Doing html in dejagnu" ; \
215c351a 7596 (cd $(HOST_SUBDIR)/dejagnu && \
f87a2b2e
MS
7597 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7598 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7599 "RANLIB=$${RANLIB}" \
7600 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7601 html) \
7602 || exit 1
7603
7604@endif dejagnu
7605
295f4e42
NN
7606.PHONY: maybe-TAGS-dejagnu TAGS-dejagnu
7607maybe-TAGS-dejagnu:
60975492
PB
7608@if dejagnu
7609maybe-TAGS-dejagnu: TAGS-dejagnu
1358ccea 7610
295f4e42 7611TAGS-dejagnu: \
05750653 7612 configure-dejagnu
f41d6665 7613 @: $(MAKE); $(unstage)
295f4e42 7614 @[ -f ./dejagnu/Makefile ] || exit 0; \
8c90b13a
L
7615 r=`${PWD_COMMAND}`; export r; \
7616 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7617 $(HOST_EXPORTS) \
d32ab992 7618 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7619 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7620 done; \
295f4e42 7621 echo "Doing TAGS in dejagnu" ; \
215c351a 7622 (cd $(HOST_SUBDIR)/dejagnu && \
1358ccea
NN
7623 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7624 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7625 "RANLIB=$${RANLIB}" \
7626 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7627 TAGS) \
1358ccea
NN
7628 || exit 1
7629
60975492 7630@endif dejagnu
1358ccea 7631
295f4e42
NN
7632.PHONY: maybe-install-info-dejagnu install-info-dejagnu
7633maybe-install-info-dejagnu:
60975492
PB
7634@if dejagnu
7635maybe-install-info-dejagnu: install-info-dejagnu
1358ccea 7636
295f4e42
NN
7637install-info-dejagnu: \
7638 configure-dejagnu \
05750653 7639 info-dejagnu
f41d6665 7640 @: $(MAKE); $(unstage)
295f4e42 7641 @[ -f ./dejagnu/Makefile ] || exit 0; \
8c90b13a
L
7642 r=`${PWD_COMMAND}`; export r; \
7643 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7644 $(HOST_EXPORTS) \
d32ab992 7645 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7646 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7647 done; \
295f4e42 7648 echo "Doing install-info in dejagnu" ; \
215c351a 7649 (cd $(HOST_SUBDIR)/dejagnu && \
1358ccea
NN
7650 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7651 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7652 "RANLIB=$${RANLIB}" \
7653 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7654 install-info) \
1358ccea
NN
7655 || exit 1
7656
60975492 7657@endif dejagnu
1358ccea 7658
65d6e994
CD
7659.PHONY: maybe-install-html-dejagnu install-html-dejagnu
7660maybe-install-html-dejagnu:
7661@if dejagnu
7662maybe-install-html-dejagnu: install-html-dejagnu
7663
7664install-html-dejagnu: \
7665 configure-dejagnu \
7666 html-dejagnu
7667 @: $(MAKE); $(unstage)
7668 @[ -f ./dejagnu/Makefile ] || exit 0; \
7669 r=`${PWD_COMMAND}`; export r; \
7670 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7671 $(HOST_EXPORTS) \
7672 for flag in $(EXTRA_HOST_FLAGS) ; do \
7673 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7674 done; \
7675 echo "Doing install-html in dejagnu" ; \
7676 (cd $(HOST_SUBDIR)/dejagnu && \
7677 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7678 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7679 "RANLIB=$${RANLIB}" \
7680 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7681 install-html) \
7682 || exit 1
7683
7684@endif dejagnu
7685
295f4e42
NN
7686.PHONY: maybe-installcheck-dejagnu installcheck-dejagnu
7687maybe-installcheck-dejagnu:
60975492
PB
7688@if dejagnu
7689maybe-installcheck-dejagnu: installcheck-dejagnu
1358ccea 7690
295f4e42 7691installcheck-dejagnu: \
05750653 7692 configure-dejagnu
f41d6665 7693 @: $(MAKE); $(unstage)
295f4e42 7694 @[ -f ./dejagnu/Makefile ] || exit 0; \
8c90b13a
L
7695 r=`${PWD_COMMAND}`; export r; \
7696 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7697 $(HOST_EXPORTS) \
d32ab992 7698 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7699 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7700 done; \
295f4e42 7701 echo "Doing installcheck in dejagnu" ; \
215c351a 7702 (cd $(HOST_SUBDIR)/dejagnu && \
1358ccea
NN
7703 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7704 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7705 "RANLIB=$${RANLIB}" \
7706 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7707 installcheck) \
1358ccea
NN
7708 || exit 1
7709
60975492 7710@endif dejagnu
1358ccea 7711
295f4e42
NN
7712.PHONY: maybe-mostlyclean-dejagnu mostlyclean-dejagnu
7713maybe-mostlyclean-dejagnu:
60975492
PB
7714@if dejagnu
7715maybe-mostlyclean-dejagnu: mostlyclean-dejagnu
1358ccea 7716
05750653 7717mostlyclean-dejagnu:
f41d6665 7718 @: $(MAKE); $(unstage)
295f4e42 7719 @[ -f ./dejagnu/Makefile ] || exit 0; \
8c90b13a
L
7720 r=`${PWD_COMMAND}`; export r; \
7721 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7722 $(HOST_EXPORTS) \
d32ab992 7723 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7724 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7725 done; \
295f4e42 7726 echo "Doing mostlyclean in dejagnu" ; \
215c351a 7727 (cd $(HOST_SUBDIR)/dejagnu && \
1358ccea
NN
7728 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7729 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7730 "RANLIB=$${RANLIB}" \
7731 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7732 mostlyclean) \
1358ccea
NN
7733 || exit 1
7734
60975492 7735@endif dejagnu
1358ccea 7736
295f4e42
NN
7737.PHONY: maybe-clean-dejagnu clean-dejagnu
7738maybe-clean-dejagnu:
60975492
PB
7739@if dejagnu
7740maybe-clean-dejagnu: clean-dejagnu
1358ccea 7741
05750653 7742clean-dejagnu:
f41d6665 7743 @: $(MAKE); $(unstage)
295f4e42 7744 @[ -f ./dejagnu/Makefile ] || exit 0; \
8c90b13a
L
7745 r=`${PWD_COMMAND}`; export r; \
7746 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7747 $(HOST_EXPORTS) \
d32ab992 7748 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7749 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7750 done; \
295f4e42 7751 echo "Doing clean in dejagnu" ; \
215c351a 7752 (cd $(HOST_SUBDIR)/dejagnu && \
1358ccea
NN
7753 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7754 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7755 "RANLIB=$${RANLIB}" \
7756 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7757 clean) \
1358ccea
NN
7758 || exit 1
7759
60975492 7760@endif dejagnu
1358ccea 7761
295f4e42
NN
7762.PHONY: maybe-distclean-dejagnu distclean-dejagnu
7763maybe-distclean-dejagnu:
60975492
PB
7764@if dejagnu
7765maybe-distclean-dejagnu: distclean-dejagnu
1358ccea 7766
05750653 7767distclean-dejagnu:
f41d6665 7768 @: $(MAKE); $(unstage)
295f4e42 7769 @[ -f ./dejagnu/Makefile ] || exit 0; \
8c90b13a
L
7770 r=`${PWD_COMMAND}`; export r; \
7771 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7772 $(HOST_EXPORTS) \
d32ab992 7773 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7774 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7775 done; \
295f4e42 7776 echo "Doing distclean in dejagnu" ; \
215c351a 7777 (cd $(HOST_SUBDIR)/dejagnu && \
1358ccea
NN
7778 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7779 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7780 "RANLIB=$${RANLIB}" \
7781 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7782 distclean) \
1358ccea
NN
7783 || exit 1
7784
60975492 7785@endif dejagnu
1358ccea 7786
295f4e42
NN
7787.PHONY: maybe-maintainer-clean-dejagnu maintainer-clean-dejagnu
7788maybe-maintainer-clean-dejagnu:
60975492
PB
7789@if dejagnu
7790maybe-maintainer-clean-dejagnu: maintainer-clean-dejagnu
1358ccea 7791
05750653 7792maintainer-clean-dejagnu:
f41d6665 7793 @: $(MAKE); $(unstage)
295f4e42 7794 @[ -f ./dejagnu/Makefile ] || exit 0; \
8c90b13a
L
7795 r=`${PWD_COMMAND}`; export r; \
7796 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7797 $(HOST_EXPORTS) \
d32ab992 7798 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7799 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7800 done; \
295f4e42 7801 echo "Doing maintainer-clean in dejagnu" ; \
215c351a 7802 (cd $(HOST_SUBDIR)/dejagnu && \
1358ccea
NN
7803 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7804 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7805 "RANLIB=$${RANLIB}" \
7806 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7807 maintainer-clean) \
1358ccea
NN
7808 || exit 1
7809
60975492 7810@endif dejagnu
1358ccea 7811
1358ccea 7812
25b42232 7813
295f4e42
NN
7814.PHONY: configure-diff maybe-configure-diff
7815maybe-configure-diff:
3ff3adad
PB
7816@if gcc-bootstrap
7817configure-diff: stage_current
7818@endif gcc-bootstrap
60975492
PB
7819@if diff
7820maybe-configure-diff: configure-diff
cc11cc9b 7821configure-diff:
f41d6665 7822 @: $(MAKE); $(unstage)
cc11cc9b 7823 @r=`${PWD_COMMAND}`; export r; \
295f4e42 7824 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
7825 test ! -f $(HOST_SUBDIR)/diff/Makefile || exit 0; \
7826 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/diff ; \
4fc4dd12 7827 $(HOST_EXPORTS) \
25b42232
PB
7828 echo Configuring in $(HOST_SUBDIR)/diff; \
7829 cd "$(HOST_SUBDIR)/diff" || exit 1; \
295f4e42 7830 case $(srcdir) in \
215c351a
PB
7831 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7832 *) topdir=`echo $(HOST_SUBDIR)/diff/ | \
7833 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 7834 esac; \
215c351a
PB
7835 srcdiroption="--srcdir=$${topdir}/diff"; \
7836 libsrcdir="$$s/diff"; \
295f4e42 7837 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 7838 $(HOST_CONFIGARGS) $${srcdiroption} \
295f4e42 7839 || exit 1
60975492 7840@endif diff
295f4e42 7841
25b42232
PB
7842
7843
ce406537
PB
7844
7845
295f4e42
NN
7846.PHONY: all-diff maybe-all-diff
7847maybe-all-diff:
3ff3adad
PB
7848@if gcc-bootstrap
7849all-diff: stage_current
7850@endif gcc-bootstrap
60975492 7851@if diff
7e0b5752 7852TARGET-diff=all
60975492 7853maybe-all-diff: all-diff
295f4e42 7854all-diff: configure-diff
f41d6665 7855 @: $(MAKE); $(unstage)
295f4e42
NN
7856 @r=`${PWD_COMMAND}`; export r; \
7857 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7858 $(HOST_EXPORTS) \
215c351a
PB
7859 (cd $(HOST_SUBDIR)/diff && \
7860 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-diff))
60975492 7861@endif diff
295f4e42 7862
25b42232 7863
ce406537
PB
7864
7865
295f4e42
NN
7866.PHONY: check-diff maybe-check-diff
7867maybe-check-diff:
60975492
PB
7868@if diff
7869maybe-check-diff: check-diff
295f4e42
NN
7870
7871check-diff:
f41d6665 7872 @: $(MAKE); $(unstage)
295f4e42
NN
7873 @r=`${PWD_COMMAND}`; export r; \
7874 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7875 $(HOST_EXPORTS) \
215c351a
PB
7876 (cd $(HOST_SUBDIR)/diff && \
7877 $(MAKE) $(FLAGS_TO_PASS) check)
295f4e42 7878
60975492 7879@endif diff
295f4e42
NN
7880
7881.PHONY: install-diff maybe-install-diff
7882maybe-install-diff:
60975492
PB
7883@if diff
7884maybe-install-diff: install-diff
295f4e42
NN
7885
7886install-diff: installdirs
f41d6665 7887 @: $(MAKE); $(unstage)
295f4e42
NN
7888 @r=`${PWD_COMMAND}`; export r; \
7889 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7890 $(HOST_EXPORTS) \
215c351a 7891 (cd $(HOST_SUBDIR)/diff && \
ace9ac7b 7892 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 7893
60975492 7894@endif diff
295f4e42
NN
7895
7896# Other targets (info, dvi, etc.)
7897
7898.PHONY: maybe-info-diff info-diff
7899maybe-info-diff:
60975492
PB
7900@if diff
7901maybe-info-diff: info-diff
295f4e42
NN
7902
7903info-diff: \
05750653 7904 configure-diff
f41d6665 7905 @: $(MAKE); $(unstage)
295f4e42 7906 @[ -f ./diff/Makefile ] || exit 0; \
8c90b13a
L
7907 r=`${PWD_COMMAND}`; export r; \
7908 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7909 $(HOST_EXPORTS) \
d32ab992 7910 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7911 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7912 done; \
295f4e42 7913 echo "Doing info in diff" ; \
215c351a 7914 (cd $(HOST_SUBDIR)/diff && \
1358ccea
NN
7915 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7916 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7917 "RANLIB=$${RANLIB}" \
7918 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7919 info) \
1358ccea
NN
7920 || exit 1
7921
60975492 7922@endif diff
1358ccea 7923
295f4e42
NN
7924.PHONY: maybe-dvi-diff dvi-diff
7925maybe-dvi-diff:
60975492
PB
7926@if diff
7927maybe-dvi-diff: dvi-diff
1358ccea 7928
295f4e42 7929dvi-diff: \
05750653 7930 configure-diff
f41d6665 7931 @: $(MAKE); $(unstage)
295f4e42 7932 @[ -f ./diff/Makefile ] || exit 0; \
8c90b13a
L
7933 r=`${PWD_COMMAND}`; export r; \
7934 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7935 $(HOST_EXPORTS) \
d32ab992 7936 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7937 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7938 done; \
295f4e42 7939 echo "Doing dvi in diff" ; \
215c351a 7940 (cd $(HOST_SUBDIR)/diff && \
1358ccea
NN
7941 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7942 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7943 "RANLIB=$${RANLIB}" \
7944 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7945 dvi) \
1358ccea
NN
7946 || exit 1
7947
60975492 7948@endif diff
1358ccea 7949
f87a2b2e
MS
7950.PHONY: maybe-html-diff html-diff
7951maybe-html-diff:
7952@if diff
7953maybe-html-diff: html-diff
7954
7955html-diff: \
05750653 7956 configure-diff
f41d6665 7957 @: $(MAKE); $(unstage)
f87a2b2e
MS
7958 @[ -f ./diff/Makefile ] || exit 0; \
7959 r=`${PWD_COMMAND}`; export r; \
7960 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
7961 $(HOST_EXPORTS) \
7962 for flag in $(EXTRA_HOST_FLAGS) ; do \
7963 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7964 done; \
7965 echo "Doing html in diff" ; \
215c351a 7966 (cd $(HOST_SUBDIR)/diff && \
f87a2b2e
MS
7967 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7968 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7969 "RANLIB=$${RANLIB}" \
7970 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7971 html) \
7972 || exit 1
7973
7974@endif diff
7975
295f4e42
NN
7976.PHONY: maybe-TAGS-diff TAGS-diff
7977maybe-TAGS-diff:
60975492
PB
7978@if diff
7979maybe-TAGS-diff: TAGS-diff
1358ccea 7980
295f4e42 7981TAGS-diff: \
05750653 7982 configure-diff
f41d6665 7983 @: $(MAKE); $(unstage)
295f4e42 7984 @[ -f ./diff/Makefile ] || exit 0; \
8c90b13a
L
7985 r=`${PWD_COMMAND}`; export r; \
7986 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7987 $(HOST_EXPORTS) \
d32ab992 7988 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7989 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7990 done; \
295f4e42 7991 echo "Doing TAGS in diff" ; \
215c351a 7992 (cd $(HOST_SUBDIR)/diff && \
1358ccea
NN
7993 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7994 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7995 "RANLIB=$${RANLIB}" \
7996 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7997 TAGS) \
1358ccea
NN
7998 || exit 1
7999
60975492 8000@endif diff
1358ccea 8001
295f4e42
NN
8002.PHONY: maybe-install-info-diff install-info-diff
8003maybe-install-info-diff:
60975492
PB
8004@if diff
8005maybe-install-info-diff: install-info-diff
1358ccea 8006
295f4e42
NN
8007install-info-diff: \
8008 configure-diff \
05750653 8009 info-diff
f41d6665 8010 @: $(MAKE); $(unstage)
295f4e42 8011 @[ -f ./diff/Makefile ] || exit 0; \
8c90b13a
L
8012 r=`${PWD_COMMAND}`; export r; \
8013 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8014 $(HOST_EXPORTS) \
d32ab992 8015 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8016 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8017 done; \
295f4e42 8018 echo "Doing install-info in diff" ; \
215c351a 8019 (cd $(HOST_SUBDIR)/diff && \
1358ccea
NN
8020 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8021 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8022 "RANLIB=$${RANLIB}" \
8023 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8024 install-info) \
1358ccea
NN
8025 || exit 1
8026
60975492 8027@endif diff
1358ccea 8028
65d6e994
CD
8029.PHONY: maybe-install-html-diff install-html-diff
8030maybe-install-html-diff:
8031@if diff
8032maybe-install-html-diff: install-html-diff
8033
8034install-html-diff: \
8035 configure-diff \
8036 html-diff
8037 @: $(MAKE); $(unstage)
8038 @[ -f ./diff/Makefile ] || exit 0; \
8039 r=`${PWD_COMMAND}`; export r; \
8040 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8041 $(HOST_EXPORTS) \
8042 for flag in $(EXTRA_HOST_FLAGS) ; do \
8043 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8044 done; \
8045 echo "Doing install-html in diff" ; \
8046 (cd $(HOST_SUBDIR)/diff && \
8047 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8048 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8049 "RANLIB=$${RANLIB}" \
8050 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8051 install-html) \
8052 || exit 1
8053
8054@endif diff
8055
295f4e42
NN
8056.PHONY: maybe-installcheck-diff installcheck-diff
8057maybe-installcheck-diff:
60975492
PB
8058@if diff
8059maybe-installcheck-diff: installcheck-diff
1358ccea 8060
295f4e42 8061installcheck-diff: \
05750653 8062 configure-diff
f41d6665 8063 @: $(MAKE); $(unstage)
295f4e42 8064 @[ -f ./diff/Makefile ] || exit 0; \
8c90b13a
L
8065 r=`${PWD_COMMAND}`; export r; \
8066 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8067 $(HOST_EXPORTS) \
d32ab992 8068 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8069 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8070 done; \
295f4e42 8071 echo "Doing installcheck in diff" ; \
215c351a 8072 (cd $(HOST_SUBDIR)/diff && \
1358ccea
NN
8073 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8074 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8075 "RANLIB=$${RANLIB}" \
8076 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8077 installcheck) \
1358ccea
NN
8078 || exit 1
8079
60975492 8080@endif diff
1358ccea 8081
295f4e42
NN
8082.PHONY: maybe-mostlyclean-diff mostlyclean-diff
8083maybe-mostlyclean-diff:
60975492
PB
8084@if diff
8085maybe-mostlyclean-diff: mostlyclean-diff
1358ccea 8086
05750653 8087mostlyclean-diff:
f41d6665 8088 @: $(MAKE); $(unstage)
295f4e42 8089 @[ -f ./diff/Makefile ] || exit 0; \
8c90b13a
L
8090 r=`${PWD_COMMAND}`; export r; \
8091 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8092 $(HOST_EXPORTS) \
d32ab992 8093 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8094 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8095 done; \
295f4e42 8096 echo "Doing mostlyclean in diff" ; \
215c351a 8097 (cd $(HOST_SUBDIR)/diff && \
1358ccea
NN
8098 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8099 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8100 "RANLIB=$${RANLIB}" \
8101 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8102 mostlyclean) \
1358ccea
NN
8103 || exit 1
8104
60975492 8105@endif diff
1358ccea 8106
295f4e42
NN
8107.PHONY: maybe-clean-diff clean-diff
8108maybe-clean-diff:
60975492
PB
8109@if diff
8110maybe-clean-diff: clean-diff
1358ccea 8111
05750653 8112clean-diff:
f41d6665 8113 @: $(MAKE); $(unstage)
295f4e42 8114 @[ -f ./diff/Makefile ] || exit 0; \
8c90b13a
L
8115 r=`${PWD_COMMAND}`; export r; \
8116 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8117 $(HOST_EXPORTS) \
d32ab992 8118 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8119 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8120 done; \
295f4e42 8121 echo "Doing clean in diff" ; \
215c351a 8122 (cd $(HOST_SUBDIR)/diff && \
1358ccea
NN
8123 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8124 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8125 "RANLIB=$${RANLIB}" \
8126 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8127 clean) \
1358ccea
NN
8128 || exit 1
8129
60975492 8130@endif diff
1358ccea 8131
295f4e42
NN
8132.PHONY: maybe-distclean-diff distclean-diff
8133maybe-distclean-diff:
60975492
PB
8134@if diff
8135maybe-distclean-diff: distclean-diff
1358ccea 8136
05750653 8137distclean-diff:
f41d6665 8138 @: $(MAKE); $(unstage)
295f4e42 8139 @[ -f ./diff/Makefile ] || exit 0; \
8c90b13a
L
8140 r=`${PWD_COMMAND}`; export r; \
8141 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8142 $(HOST_EXPORTS) \
d32ab992 8143 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8144 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8145 done; \
295f4e42 8146 echo "Doing distclean in diff" ; \
215c351a 8147 (cd $(HOST_SUBDIR)/diff && \
1358ccea
NN
8148 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8149 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8150 "RANLIB=$${RANLIB}" \
8151 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8152 distclean) \
1358ccea
NN
8153 || exit 1
8154
60975492 8155@endif diff
1358ccea 8156
295f4e42
NN
8157.PHONY: maybe-maintainer-clean-diff maintainer-clean-diff
8158maybe-maintainer-clean-diff:
60975492
PB
8159@if diff
8160maybe-maintainer-clean-diff: maintainer-clean-diff
1358ccea 8161
05750653 8162maintainer-clean-diff:
f41d6665 8163 @: $(MAKE); $(unstage)
295f4e42 8164 @[ -f ./diff/Makefile ] || exit 0; \
8c90b13a
L
8165 r=`${PWD_COMMAND}`; export r; \
8166 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8167 $(HOST_EXPORTS) \
d32ab992 8168 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8169 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8170 done; \
295f4e42 8171 echo "Doing maintainer-clean in diff" ; \
215c351a 8172 (cd $(HOST_SUBDIR)/diff && \
1358ccea
NN
8173 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8174 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8175 "RANLIB=$${RANLIB}" \
8176 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8177 maintainer-clean) \
295f4e42
NN
8178 || exit 1
8179
60975492 8180@endif diff
295f4e42
NN
8181
8182
25b42232 8183
295f4e42
NN
8184.PHONY: configure-dosutils maybe-configure-dosutils
8185maybe-configure-dosutils:
3ff3adad
PB
8186@if gcc-bootstrap
8187configure-dosutils: stage_current
8188@endif gcc-bootstrap
60975492
PB
8189@if dosutils
8190maybe-configure-dosutils: configure-dosutils
cc11cc9b 8191configure-dosutils:
f41d6665 8192 @: $(MAKE); $(unstage)
cc11cc9b 8193 @r=`${PWD_COMMAND}`; export r; \
295f4e42 8194 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
8195 test ! -f $(HOST_SUBDIR)/dosutils/Makefile || exit 0; \
8196 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/dosutils ; \
4fc4dd12 8197 $(HOST_EXPORTS) \
25b42232
PB
8198 echo Configuring in $(HOST_SUBDIR)/dosutils; \
8199 cd "$(HOST_SUBDIR)/dosutils" || exit 1; \
295f4e42 8200 case $(srcdir) in \
215c351a
PB
8201 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8202 *) topdir=`echo $(HOST_SUBDIR)/dosutils/ | \
8203 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 8204 esac; \
215c351a
PB
8205 srcdiroption="--srcdir=$${topdir}/dosutils"; \
8206 libsrcdir="$$s/dosutils"; \
295f4e42 8207 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 8208 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 8209 || exit 1
60975492 8210@endif dosutils
1358ccea 8211
25b42232
PB
8212
8213
ce406537
PB
8214
8215
295f4e42
NN
8216.PHONY: all-dosutils maybe-all-dosutils
8217maybe-all-dosutils:
3ff3adad
PB
8218@if gcc-bootstrap
8219all-dosutils: stage_current
8220@endif gcc-bootstrap
60975492 8221@if dosutils
7e0b5752 8222TARGET-dosutils=all
60975492 8223maybe-all-dosutils: all-dosutils
295f4e42 8224all-dosutils: configure-dosutils
f41d6665 8225 @: $(MAKE); $(unstage)
295f4e42 8226 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 8227 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8228 $(HOST_EXPORTS) \
215c351a
PB
8229 (cd $(HOST_SUBDIR)/dosutils && \
8230 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-dosutils))
60975492 8231@endif dosutils
1358ccea 8232
25b42232 8233
ce406537
PB
8234
8235
295f4e42
NN
8236.PHONY: check-dosutils maybe-check-dosutils
8237maybe-check-dosutils:
60975492
PB
8238@if dosutils
8239maybe-check-dosutils: check-dosutils
1358ccea 8240
295f4e42 8241check-dosutils:
1358ccea 8242
60975492 8243@endif dosutils
1358ccea 8244
295f4e42
NN
8245.PHONY: install-dosutils maybe-install-dosutils
8246maybe-install-dosutils:
60975492
PB
8247@if dosutils
8248maybe-install-dosutils: install-dosutils
1358ccea 8249
295f4e42 8250install-dosutils: installdirs
f41d6665 8251 @: $(MAKE); $(unstage)
295f4e42 8252 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 8253 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8254 $(HOST_EXPORTS) \
215c351a 8255 (cd $(HOST_SUBDIR)/dosutils && \
ace9ac7b 8256 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 8257
60975492 8258@endif dosutils
1358ccea 8259
295f4e42 8260# Other targets (info, dvi, etc.)
1358ccea 8261
295f4e42
NN
8262.PHONY: maybe-info-dosutils info-dosutils
8263maybe-info-dosutils:
60975492
PB
8264@if dosutils
8265maybe-info-dosutils: info-dosutils
295f4e42
NN
8266
8267info-dosutils: \
05750653 8268 configure-dosutils
f41d6665 8269 @: $(MAKE); $(unstage)
295f4e42 8270 @[ -f ./dosutils/Makefile ] || exit 0; \
8c90b13a
L
8271 r=`${PWD_COMMAND}`; export r; \
8272 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8273 $(HOST_EXPORTS) \
d32ab992 8274 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8275 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8276 done; \
295f4e42 8277 echo "Doing info in dosutils" ; \
215c351a 8278 (cd $(HOST_SUBDIR)/dosutils && \
1358ccea
NN
8279 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8280 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8281 "RANLIB=$${RANLIB}" \
8282 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8283 info) \
1358ccea
NN
8284 || exit 1
8285
60975492 8286@endif dosutils
1358ccea 8287
295f4e42
NN
8288.PHONY: maybe-dvi-dosutils dvi-dosutils
8289maybe-dvi-dosutils:
60975492
PB
8290@if dosutils
8291maybe-dvi-dosutils: dvi-dosutils
1358ccea 8292
295f4e42 8293dvi-dosutils: \
05750653 8294 configure-dosutils
f41d6665 8295 @: $(MAKE); $(unstage)
295f4e42 8296 @[ -f ./dosutils/Makefile ] || exit 0; \
8c90b13a
L
8297 r=`${PWD_COMMAND}`; export r; \
8298 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8299 $(HOST_EXPORTS) \
d32ab992 8300 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8301 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8302 done; \
295f4e42 8303 echo "Doing dvi in dosutils" ; \
215c351a 8304 (cd $(HOST_SUBDIR)/dosutils && \
1358ccea
NN
8305 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8306 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8307 "RANLIB=$${RANLIB}" \
8308 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8309 dvi) \
1358ccea
NN
8310 || exit 1
8311
60975492 8312@endif dosutils
1358ccea 8313
f87a2b2e
MS
8314.PHONY: maybe-html-dosutils html-dosutils
8315maybe-html-dosutils:
60975492 8316@if dosutils
f87a2b2e 8317maybe-html-dosutils: html-dosutils
1358ccea 8318
f87a2b2e 8319html-dosutils: \
05750653 8320 configure-dosutils
f41d6665 8321 @: $(MAKE); $(unstage)
295f4e42 8322 @[ -f ./dosutils/Makefile ] || exit 0; \
8c90b13a
L
8323 r=`${PWD_COMMAND}`; export r; \
8324 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8325 $(HOST_EXPORTS) \
d32ab992 8326 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8327 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8328 done; \
f87a2b2e 8329 echo "Doing html in dosutils" ; \
215c351a 8330 (cd $(HOST_SUBDIR)/dosutils && \
1358ccea
NN
8331 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8332 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8333 "RANLIB=$${RANLIB}" \
8334 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
f87a2b2e 8335 html) \
1358ccea
NN
8336 || exit 1
8337
60975492 8338@endif dosutils
1358ccea 8339
f87a2b2e
MS
8340.PHONY: maybe-TAGS-dosutils TAGS-dosutils
8341maybe-TAGS-dosutils:
60975492 8342@if dosutils
f87a2b2e 8343maybe-TAGS-dosutils: TAGS-dosutils
1358ccea 8344
f87a2b2e 8345TAGS-dosutils: \
05750653 8346 configure-dosutils
f41d6665 8347 @: $(MAKE); $(unstage)
f87a2b2e
MS
8348 @[ -f ./dosutils/Makefile ] || exit 0; \
8349 r=`${PWD_COMMAND}`; export r; \
8350 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
8351 $(HOST_EXPORTS) \
8352 for flag in $(EXTRA_HOST_FLAGS) ; do \
8353 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8354 done; \
8355 echo "Doing TAGS in dosutils" ; \
215c351a 8356 (cd $(HOST_SUBDIR)/dosutils && \
f87a2b2e
MS
8357 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8358 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8359 "RANLIB=$${RANLIB}" \
8360 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8361 TAGS) \
8362 || exit 1
8363
8364@endif dosutils
8365
8366.PHONY: maybe-install-info-dosutils install-info-dosutils
8367maybe-install-info-dosutils:
8368@if dosutils
8369maybe-install-info-dosutils: install-info-dosutils
8370
8371install-info-dosutils: \
8372 configure-dosutils \
05750653 8373 info-dosutils
f41d6665 8374 @: $(MAKE); $(unstage)
295f4e42 8375 @[ -f ./dosutils/Makefile ] || exit 0; \
8c90b13a
L
8376 r=`${PWD_COMMAND}`; export r; \
8377 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8378 $(HOST_EXPORTS) \
d32ab992 8379 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8380 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8381 done; \
295f4e42 8382 echo "Doing install-info in dosutils" ; \
215c351a 8383 (cd $(HOST_SUBDIR)/dosutils && \
1358ccea
NN
8384 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8385 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8386 "RANLIB=$${RANLIB}" \
8387 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8388 install-info) \
1358ccea
NN
8389 || exit 1
8390
60975492 8391@endif dosutils
1358ccea 8392
65d6e994
CD
8393.PHONY: maybe-install-html-dosutils install-html-dosutils
8394maybe-install-html-dosutils:
8395@if dosutils
8396maybe-install-html-dosutils: install-html-dosutils
8397
8398install-html-dosutils: \
8399 configure-dosutils \
8400 html-dosutils
8401 @: $(MAKE); $(unstage)
8402 @[ -f ./dosutils/Makefile ] || exit 0; \
8403 r=`${PWD_COMMAND}`; export r; \
8404 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8405 $(HOST_EXPORTS) \
8406 for flag in $(EXTRA_HOST_FLAGS) ; do \
8407 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8408 done; \
8409 echo "Doing install-html in dosutils" ; \
8410 (cd $(HOST_SUBDIR)/dosutils && \
8411 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8412 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8413 "RANLIB=$${RANLIB}" \
8414 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8415 install-html) \
8416 || exit 1
8417
8418@endif dosutils
8419
295f4e42
NN
8420.PHONY: maybe-installcheck-dosutils installcheck-dosutils
8421maybe-installcheck-dosutils:
60975492
PB
8422@if dosutils
8423maybe-installcheck-dosutils: installcheck-dosutils
1358ccea 8424
295f4e42 8425installcheck-dosutils: \
05750653 8426 configure-dosutils
f41d6665 8427 @: $(MAKE); $(unstage)
295f4e42 8428 @[ -f ./dosutils/Makefile ] || exit 0; \
8c90b13a
L
8429 r=`${PWD_COMMAND}`; export r; \
8430 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8431 $(HOST_EXPORTS) \
d32ab992 8432 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8433 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8434 done; \
295f4e42 8435 echo "Doing installcheck in dosutils" ; \
215c351a 8436 (cd $(HOST_SUBDIR)/dosutils && \
1358ccea
NN
8437 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8438 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8439 "RANLIB=$${RANLIB}" \
8440 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8441 installcheck) \
1358ccea
NN
8442 || exit 1
8443
60975492 8444@endif dosutils
1358ccea 8445
295f4e42
NN
8446.PHONY: maybe-mostlyclean-dosutils mostlyclean-dosutils
8447maybe-mostlyclean-dosutils:
60975492
PB
8448@if dosutils
8449maybe-mostlyclean-dosutils: mostlyclean-dosutils
1358ccea 8450
05750653 8451mostlyclean-dosutils:
f41d6665 8452 @: $(MAKE); $(unstage)
295f4e42 8453 @[ -f ./dosutils/Makefile ] || exit 0; \
8c90b13a
L
8454 r=`${PWD_COMMAND}`; export r; \
8455 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8456 $(HOST_EXPORTS) \
d32ab992 8457 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8458 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8459 done; \
295f4e42 8460 echo "Doing mostlyclean in dosutils" ; \
215c351a 8461 (cd $(HOST_SUBDIR)/dosutils && \
1358ccea
NN
8462 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8463 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8464 "RANLIB=$${RANLIB}" \
8465 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8466 mostlyclean) \
1358ccea
NN
8467 || exit 1
8468
60975492 8469@endif dosutils
1358ccea 8470
295f4e42
NN
8471.PHONY: maybe-clean-dosutils clean-dosutils
8472maybe-clean-dosutils:
60975492
PB
8473@if dosutils
8474maybe-clean-dosutils: clean-dosutils
1358ccea 8475
05750653 8476clean-dosutils:
f41d6665 8477 @: $(MAKE); $(unstage)
295f4e42 8478 @[ -f ./dosutils/Makefile ] || exit 0; \
8c90b13a
L
8479 r=`${PWD_COMMAND}`; export r; \
8480 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8481 $(HOST_EXPORTS) \
d32ab992 8482 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8483 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8484 done; \
295f4e42 8485 echo "Doing clean in dosutils" ; \
215c351a 8486 (cd $(HOST_SUBDIR)/dosutils && \
1358ccea
NN
8487 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8488 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8489 "RANLIB=$${RANLIB}" \
8490 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8491 clean) \
1358ccea
NN
8492 || exit 1
8493
60975492 8494@endif dosutils
1358ccea 8495
295f4e42
NN
8496.PHONY: maybe-distclean-dosutils distclean-dosutils
8497maybe-distclean-dosutils:
60975492
PB
8498@if dosutils
8499maybe-distclean-dosutils: distclean-dosutils
1358ccea 8500
05750653 8501distclean-dosutils:
f41d6665 8502 @: $(MAKE); $(unstage)
295f4e42 8503 @[ -f ./dosutils/Makefile ] || exit 0; \
8c90b13a
L
8504 r=`${PWD_COMMAND}`; export r; \
8505 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8506 $(HOST_EXPORTS) \
d32ab992 8507 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8508 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8509 done; \
295f4e42 8510 echo "Doing distclean in dosutils" ; \
215c351a 8511 (cd $(HOST_SUBDIR)/dosutils && \
1358ccea
NN
8512 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8513 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8514 "RANLIB=$${RANLIB}" \
8515 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8516 distclean) \
1358ccea
NN
8517 || exit 1
8518
60975492 8519@endif dosutils
1358ccea 8520
295f4e42
NN
8521.PHONY: maybe-maintainer-clean-dosutils maintainer-clean-dosutils
8522maybe-maintainer-clean-dosutils:
60975492
PB
8523@if dosutils
8524maybe-maintainer-clean-dosutils: maintainer-clean-dosutils
1358ccea 8525
05750653 8526maintainer-clean-dosutils:
f41d6665 8527 @: $(MAKE); $(unstage)
295f4e42 8528 @[ -f ./dosutils/Makefile ] || exit 0; \
8c90b13a
L
8529 r=`${PWD_COMMAND}`; export r; \
8530 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8531 $(HOST_EXPORTS) \
d32ab992 8532 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8533 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8534 done; \
295f4e42 8535 echo "Doing maintainer-clean in dosutils" ; \
215c351a 8536 (cd $(HOST_SUBDIR)/dosutils && \
1358ccea
NN
8537 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8538 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8539 "RANLIB=$${RANLIB}" \
8540 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8541 maintainer-clean) \
1358ccea
NN
8542 || exit 1
8543
60975492 8544@endif dosutils
1358ccea
NN
8545
8546
25b42232 8547
295f4e42
NN
8548.PHONY: configure-etc maybe-configure-etc
8549maybe-configure-etc:
3ff3adad
PB
8550@if gcc-bootstrap
8551configure-etc: stage_current
8552@endif gcc-bootstrap
60975492
PB
8553@if etc
8554maybe-configure-etc: configure-etc
cc11cc9b 8555configure-etc:
f41d6665 8556 @: $(MAKE); $(unstage)
cc11cc9b 8557 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 8558 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
8559 test ! -f $(HOST_SUBDIR)/etc/Makefile || exit 0; \
8560 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/etc ; \
4fc4dd12 8561 $(HOST_EXPORTS) \
25b42232
PB
8562 echo Configuring in $(HOST_SUBDIR)/etc; \
8563 cd "$(HOST_SUBDIR)/etc" || exit 1; \
295f4e42 8564 case $(srcdir) in \
215c351a
PB
8565 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8566 *) topdir=`echo $(HOST_SUBDIR)/etc/ | \
8567 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 8568 esac; \
215c351a
PB
8569 srcdiroption="--srcdir=$${topdir}/etc"; \
8570 libsrcdir="$$s/etc"; \
295f4e42 8571 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 8572 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 8573 || exit 1
60975492 8574@endif etc
1358ccea 8575
25b42232
PB
8576
8577
ce406537
PB
8578
8579
295f4e42
NN
8580.PHONY: all-etc maybe-all-etc
8581maybe-all-etc:
3ff3adad
PB
8582@if gcc-bootstrap
8583all-etc: stage_current
8584@endif gcc-bootstrap
60975492 8585@if etc
7e0b5752 8586TARGET-etc=all
60975492 8587maybe-all-etc: all-etc
295f4e42 8588all-etc: configure-etc
f41d6665 8589 @: $(MAKE); $(unstage)
295f4e42
NN
8590 @r=`${PWD_COMMAND}`; export r; \
8591 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8592 $(HOST_EXPORTS) \
215c351a
PB
8593 (cd $(HOST_SUBDIR)/etc && \
8594 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-etc))
60975492 8595@endif etc
1358ccea 8596
25b42232 8597
ce406537
PB
8598
8599
295f4e42
NN
8600.PHONY: check-etc maybe-check-etc
8601maybe-check-etc:
60975492
PB
8602@if etc
8603maybe-check-etc: check-etc
1358ccea 8604
295f4e42 8605check-etc:
f41d6665 8606 @: $(MAKE); $(unstage)
295f4e42 8607 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 8608 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8609 $(HOST_EXPORTS) \
215c351a
PB
8610 (cd $(HOST_SUBDIR)/etc && \
8611 $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 8612
60975492 8613@endif etc
1358ccea 8614
295f4e42
NN
8615.PHONY: install-etc maybe-install-etc
8616maybe-install-etc:
60975492
PB
8617@if etc
8618maybe-install-etc: install-etc
1358ccea 8619
295f4e42 8620install-etc: installdirs
f41d6665 8621 @: $(MAKE); $(unstage)
295f4e42 8622 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 8623 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8624 $(HOST_EXPORTS) \
215c351a 8625 (cd $(HOST_SUBDIR)/etc && \
ace9ac7b 8626 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 8627
60975492 8628@endif etc
1358ccea 8629
295f4e42 8630# Other targets (info, dvi, etc.)
1358ccea 8631
295f4e42
NN
8632.PHONY: maybe-info-etc info-etc
8633maybe-info-etc:
60975492
PB
8634@if etc
8635maybe-info-etc: info-etc
295f4e42
NN
8636
8637info-etc: \
05750653 8638 configure-etc
f41d6665 8639 @: $(MAKE); $(unstage)
295f4e42 8640 @[ -f ./etc/Makefile ] || exit 0; \
8c90b13a
L
8641 r=`${PWD_COMMAND}`; export r; \
8642 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8643 $(HOST_EXPORTS) \
d32ab992 8644 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8645 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8646 done; \
295f4e42 8647 echo "Doing info in etc" ; \
215c351a 8648 (cd $(HOST_SUBDIR)/etc && \
1358ccea
NN
8649 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8650 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8651 "RANLIB=$${RANLIB}" \
8652 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8653 info) \
1358ccea
NN
8654 || exit 1
8655
60975492 8656@endif etc
1358ccea 8657
295f4e42
NN
8658.PHONY: maybe-dvi-etc dvi-etc
8659maybe-dvi-etc:
60975492
PB
8660@if etc
8661maybe-dvi-etc: dvi-etc
1358ccea 8662
295f4e42 8663dvi-etc: \
05750653 8664 configure-etc
f41d6665 8665 @: $(MAKE); $(unstage)
295f4e42 8666 @[ -f ./etc/Makefile ] || exit 0; \
8c90b13a
L
8667 r=`${PWD_COMMAND}`; export r; \
8668 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8669 $(HOST_EXPORTS) \
d32ab992 8670 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8671 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8672 done; \
295f4e42 8673 echo "Doing dvi in etc" ; \
215c351a 8674 (cd $(HOST_SUBDIR)/etc && \
1358ccea
NN
8675 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8676 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8677 "RANLIB=$${RANLIB}" \
8678 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8679 dvi) \
1358ccea
NN
8680 || exit 1
8681
60975492 8682@endif etc
1358ccea 8683
f87a2b2e
MS
8684.PHONY: maybe-html-etc html-etc
8685maybe-html-etc:
8686@if etc
8687maybe-html-etc: html-etc
8688
8689html-etc: \
05750653 8690 configure-etc
f41d6665 8691 @: $(MAKE); $(unstage)
f87a2b2e
MS
8692 @[ -f ./etc/Makefile ] || exit 0; \
8693 r=`${PWD_COMMAND}`; export r; \
8694 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
8695 $(HOST_EXPORTS) \
8696 for flag in $(EXTRA_HOST_FLAGS) ; do \
8697 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8698 done; \
8699 echo "Doing html in etc" ; \
215c351a 8700 (cd $(HOST_SUBDIR)/etc && \
f87a2b2e
MS
8701 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8702 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8703 "RANLIB=$${RANLIB}" \
8704 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8705 html) \
8706 || exit 1
8707
8708@endif etc
8709
295f4e42
NN
8710.PHONY: maybe-TAGS-etc TAGS-etc
8711maybe-TAGS-etc:
60975492
PB
8712@if etc
8713maybe-TAGS-etc: TAGS-etc
1358ccea 8714
295f4e42 8715TAGS-etc: \
05750653 8716 configure-etc
f41d6665 8717 @: $(MAKE); $(unstage)
295f4e42 8718 @[ -f ./etc/Makefile ] || exit 0; \
8c90b13a
L
8719 r=`${PWD_COMMAND}`; export r; \
8720 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8721 $(HOST_EXPORTS) \
d32ab992 8722 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8723 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8724 done; \
295f4e42 8725 echo "Doing TAGS in etc" ; \
215c351a 8726 (cd $(HOST_SUBDIR)/etc && \
1358ccea
NN
8727 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8728 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8729 "RANLIB=$${RANLIB}" \
8730 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8731 TAGS) \
1358ccea
NN
8732 || exit 1
8733
60975492 8734@endif etc
1358ccea 8735
295f4e42
NN
8736.PHONY: maybe-install-info-etc install-info-etc
8737maybe-install-info-etc:
60975492
PB
8738@if etc
8739maybe-install-info-etc: install-info-etc
1358ccea 8740
295f4e42
NN
8741install-info-etc: \
8742 configure-etc \
05750653 8743 info-etc
f41d6665 8744 @: $(MAKE); $(unstage)
295f4e42 8745 @[ -f ./etc/Makefile ] || exit 0; \
8c90b13a
L
8746 r=`${PWD_COMMAND}`; export r; \
8747 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8748 $(HOST_EXPORTS) \
d32ab992 8749 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8750 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8751 done; \
295f4e42 8752 echo "Doing install-info in etc" ; \
215c351a 8753 (cd $(HOST_SUBDIR)/etc && \
1358ccea
NN
8754 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8755 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8756 "RANLIB=$${RANLIB}" \
8757 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8758 install-info) \
1358ccea
NN
8759 || exit 1
8760
60975492 8761@endif etc
1358ccea 8762
65d6e994
CD
8763.PHONY: maybe-install-html-etc install-html-etc
8764maybe-install-html-etc:
8765@if etc
8766maybe-install-html-etc: install-html-etc
8767
8768install-html-etc: \
8769 configure-etc \
8770 html-etc
8771 @: $(MAKE); $(unstage)
8772 @[ -f ./etc/Makefile ] || exit 0; \
8773 r=`${PWD_COMMAND}`; export r; \
8774 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8775 $(HOST_EXPORTS) \
8776 for flag in $(EXTRA_HOST_FLAGS) ; do \
8777 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8778 done; \
8779 echo "Doing install-html in etc" ; \
8780 (cd $(HOST_SUBDIR)/etc && \
8781 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8782 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8783 "RANLIB=$${RANLIB}" \
8784 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8785 install-html) \
8786 || exit 1
8787
8788@endif etc
8789
295f4e42
NN
8790.PHONY: maybe-installcheck-etc installcheck-etc
8791maybe-installcheck-etc:
60975492
PB
8792@if etc
8793maybe-installcheck-etc: installcheck-etc
1358ccea 8794
295f4e42 8795installcheck-etc: \
05750653 8796 configure-etc
f41d6665 8797 @: $(MAKE); $(unstage)
295f4e42 8798 @[ -f ./etc/Makefile ] || exit 0; \
8c90b13a
L
8799 r=`${PWD_COMMAND}`; export r; \
8800 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8801 $(HOST_EXPORTS) \
d32ab992 8802 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8803 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8804 done; \
295f4e42 8805 echo "Doing installcheck in etc" ; \
215c351a 8806 (cd $(HOST_SUBDIR)/etc && \
1358ccea
NN
8807 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8808 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8809 "RANLIB=$${RANLIB}" \
8810 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8811 installcheck) \
1358ccea
NN
8812 || exit 1
8813
60975492 8814@endif etc
1358ccea 8815
295f4e42
NN
8816.PHONY: maybe-mostlyclean-etc mostlyclean-etc
8817maybe-mostlyclean-etc:
60975492
PB
8818@if etc
8819maybe-mostlyclean-etc: mostlyclean-etc
1358ccea 8820
05750653 8821mostlyclean-etc:
f41d6665 8822 @: $(MAKE); $(unstage)
295f4e42 8823 @[ -f ./etc/Makefile ] || exit 0; \
8c90b13a
L
8824 r=`${PWD_COMMAND}`; export r; \
8825 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8826 $(HOST_EXPORTS) \
d32ab992 8827 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8828 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8829 done; \
295f4e42 8830 echo "Doing mostlyclean in etc" ; \
215c351a 8831 (cd $(HOST_SUBDIR)/etc && \
1358ccea
NN
8832 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8833 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8834 "RANLIB=$${RANLIB}" \
8835 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8836 mostlyclean) \
1358ccea
NN
8837 || exit 1
8838
60975492 8839@endif etc
1358ccea 8840
295f4e42
NN
8841.PHONY: maybe-clean-etc clean-etc
8842maybe-clean-etc:
60975492
PB
8843@if etc
8844maybe-clean-etc: clean-etc
1358ccea 8845
05750653 8846clean-etc:
f41d6665 8847 @: $(MAKE); $(unstage)
295f4e42 8848 @[ -f ./etc/Makefile ] || exit 0; \
8c90b13a
L
8849 r=`${PWD_COMMAND}`; export r; \
8850 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8851 $(HOST_EXPORTS) \
d32ab992 8852 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8853 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8854 done; \
295f4e42 8855 echo "Doing clean in etc" ; \
215c351a 8856 (cd $(HOST_SUBDIR)/etc && \
1358ccea
NN
8857 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8858 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8859 "RANLIB=$${RANLIB}" \
8860 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8861 clean) \
1358ccea
NN
8862 || exit 1
8863
60975492 8864@endif etc
1358ccea 8865
295f4e42
NN
8866.PHONY: maybe-distclean-etc distclean-etc
8867maybe-distclean-etc:
60975492
PB
8868@if etc
8869maybe-distclean-etc: distclean-etc
1358ccea 8870
05750653 8871distclean-etc:
f41d6665 8872 @: $(MAKE); $(unstage)
295f4e42 8873 @[ -f ./etc/Makefile ] || exit 0; \
8c90b13a
L
8874 r=`${PWD_COMMAND}`; export r; \
8875 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8876 $(HOST_EXPORTS) \
d32ab992 8877 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8878 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8879 done; \
295f4e42 8880 echo "Doing distclean in etc" ; \
215c351a 8881 (cd $(HOST_SUBDIR)/etc && \
1358ccea
NN
8882 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8883 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8884 "RANLIB=$${RANLIB}" \
8885 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8886 distclean) \
1358ccea
NN
8887 || exit 1
8888
60975492 8889@endif etc
1358ccea 8890
295f4e42
NN
8891.PHONY: maybe-maintainer-clean-etc maintainer-clean-etc
8892maybe-maintainer-clean-etc:
60975492
PB
8893@if etc
8894maybe-maintainer-clean-etc: maintainer-clean-etc
1358ccea 8895
05750653 8896maintainer-clean-etc:
f41d6665 8897 @: $(MAKE); $(unstage)
295f4e42 8898 @[ -f ./etc/Makefile ] || exit 0; \
8c90b13a
L
8899 r=`${PWD_COMMAND}`; export r; \
8900 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8901 $(HOST_EXPORTS) \
d32ab992 8902 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8903 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8904 done; \
295f4e42 8905 echo "Doing maintainer-clean in etc" ; \
215c351a 8906 (cd $(HOST_SUBDIR)/etc && \
1358ccea
NN
8907 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8908 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8909 "RANLIB=$${RANLIB}" \
8910 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8911 maintainer-clean) \
1358ccea
NN
8912 || exit 1
8913
60975492 8914@endif etc
1358ccea 8915
1358ccea 8916
25b42232 8917
295f4e42
NN
8918.PHONY: configure-fastjar maybe-configure-fastjar
8919maybe-configure-fastjar:
3ff3adad
PB
8920@if gcc-bootstrap
8921configure-fastjar: stage_current
8922@endif gcc-bootstrap
60975492
PB
8923@if fastjar
8924maybe-configure-fastjar: configure-fastjar
cc11cc9b 8925configure-fastjar:
f41d6665 8926 @: $(MAKE); $(unstage)
cc11cc9b 8927 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 8928 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
8929 test ! -f $(HOST_SUBDIR)/fastjar/Makefile || exit 0; \
8930 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fastjar ; \
4fc4dd12 8931 $(HOST_EXPORTS) \
25b42232
PB
8932 echo Configuring in $(HOST_SUBDIR)/fastjar; \
8933 cd "$(HOST_SUBDIR)/fastjar" || exit 1; \
295f4e42 8934 case $(srcdir) in \
215c351a
PB
8935 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8936 *) topdir=`echo $(HOST_SUBDIR)/fastjar/ | \
8937 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 8938 esac; \
215c351a
PB
8939 srcdiroption="--srcdir=$${topdir}/fastjar"; \
8940 libsrcdir="$$s/fastjar"; \
295f4e42 8941 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 8942 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 8943 || exit 1
60975492 8944@endif fastjar
1358ccea 8945
25b42232
PB
8946
8947
ce406537
PB
8948
8949
295f4e42
NN
8950.PHONY: all-fastjar maybe-all-fastjar
8951maybe-all-fastjar:
3ff3adad
PB
8952@if gcc-bootstrap
8953all-fastjar: stage_current
8954@endif gcc-bootstrap
60975492 8955@if fastjar
7e0b5752 8956TARGET-fastjar=all
60975492 8957maybe-all-fastjar: all-fastjar
295f4e42 8958all-fastjar: configure-fastjar
f41d6665 8959 @: $(MAKE); $(unstage)
295f4e42 8960 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 8961 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8962 $(HOST_EXPORTS) \
215c351a
PB
8963 (cd $(HOST_SUBDIR)/fastjar && \
8964 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-fastjar))
60975492 8965@endif fastjar
1358ccea 8966
25b42232 8967
ce406537
PB
8968
8969
295f4e42
NN
8970.PHONY: check-fastjar maybe-check-fastjar
8971maybe-check-fastjar:
60975492
PB
8972@if fastjar
8973maybe-check-fastjar: check-fastjar
1358ccea 8974
295f4e42
NN
8975# This module is only tested in a native toolchain.
8976check-fastjar:
f41d6665 8977 @: $(MAKE); $(unstage)
295f4e42
NN
8978 @if [ '$(host)' = '$(target)' ] ; then \
8979 r=`${PWD_COMMAND}`; export r; \
8980 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8981 $(HOST_EXPORTS) \
215c351a 8982 (cd $(HOST_SUBDIR)/fastjar && \
ef6e9bc0 8983 $(MAKE) $(FLAGS_TO_PASS) check); \
295f4e42 8984 fi
1358ccea 8985
60975492 8986@endif fastjar
295f4e42
NN
8987
8988.PHONY: install-fastjar maybe-install-fastjar
8989maybe-install-fastjar:
60975492
PB
8990@if fastjar
8991maybe-install-fastjar: install-fastjar
295f4e42
NN
8992
8993install-fastjar: installdirs
f41d6665 8994 @: $(MAKE); $(unstage)
295f4e42 8995 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 8996 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8997 $(HOST_EXPORTS) \
215c351a 8998 (cd $(HOST_SUBDIR)/fastjar && \
ace9ac7b 8999 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 9000
60975492 9001@endif fastjar
1358ccea 9002
295f4e42 9003# Other targets (info, dvi, etc.)
d9cdb878 9004
295f4e42
NN
9005.PHONY: maybe-info-fastjar info-fastjar
9006maybe-info-fastjar:
60975492
PB
9007@if fastjar
9008maybe-info-fastjar: info-fastjar
295f4e42
NN
9009
9010info-fastjar: \
05750653 9011 configure-fastjar
f41d6665 9012 @: $(MAKE); $(unstage)
295f4e42 9013 @[ -f ./fastjar/Makefile ] || exit 0; \
d9cdb878
AC
9014 r=`${PWD_COMMAND}`; export r; \
9015 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9016 $(HOST_EXPORTS) \
d32ab992 9017 for flag in $(EXTRA_HOST_FLAGS) ; do \
d9cdb878
AC
9018 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9019 done; \
295f4e42 9020 echo "Doing info in fastjar" ; \
215c351a 9021 (cd $(HOST_SUBDIR)/fastjar && \
d9cdb878
AC
9022 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9023 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9024 "RANLIB=$${RANLIB}" \
9025 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9026 info) \
d9cdb878
AC
9027 || exit 1
9028
60975492 9029@endif fastjar
d9cdb878 9030
295f4e42
NN
9031.PHONY: maybe-dvi-fastjar dvi-fastjar
9032maybe-dvi-fastjar:
60975492
PB
9033@if fastjar
9034maybe-dvi-fastjar: dvi-fastjar
1358ccea 9035
295f4e42 9036dvi-fastjar: \
05750653 9037 configure-fastjar
f41d6665 9038 @: $(MAKE); $(unstage)
295f4e42 9039 @[ -f ./fastjar/Makefile ] || exit 0; \
8c90b13a
L
9040 r=`${PWD_COMMAND}`; export r; \
9041 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9042 $(HOST_EXPORTS) \
d32ab992 9043 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9044 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9045 done; \
295f4e42 9046 echo "Doing dvi in fastjar" ; \
215c351a 9047 (cd $(HOST_SUBDIR)/fastjar && \
1358ccea
NN
9048 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9049 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9050 "RANLIB=$${RANLIB}" \
9051 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9052 dvi) \
1358ccea
NN
9053 || exit 1
9054
60975492 9055@endif fastjar
1358ccea 9056
f87a2b2e
MS
9057.PHONY: maybe-html-fastjar html-fastjar
9058maybe-html-fastjar:
9059@if fastjar
9060maybe-html-fastjar: html-fastjar
9061
9062html-fastjar: \
05750653 9063 configure-fastjar
f41d6665 9064 @: $(MAKE); $(unstage)
f87a2b2e
MS
9065 @[ -f ./fastjar/Makefile ] || exit 0; \
9066 r=`${PWD_COMMAND}`; export r; \
9067 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
9068 $(HOST_EXPORTS) \
9069 for flag in $(EXTRA_HOST_FLAGS) ; do \
9070 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9071 done; \
9072 echo "Doing html in fastjar" ; \
215c351a 9073 (cd $(HOST_SUBDIR)/fastjar && \
f87a2b2e
MS
9074 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9075 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9076 "RANLIB=$${RANLIB}" \
9077 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9078 html) \
9079 || exit 1
9080
9081@endif fastjar
9082
295f4e42
NN
9083.PHONY: maybe-TAGS-fastjar TAGS-fastjar
9084maybe-TAGS-fastjar:
60975492
PB
9085@if fastjar
9086maybe-TAGS-fastjar: TAGS-fastjar
1358ccea 9087
295f4e42 9088TAGS-fastjar: \
05750653 9089 configure-fastjar
f41d6665 9090 @: $(MAKE); $(unstage)
295f4e42 9091 @[ -f ./fastjar/Makefile ] || exit 0; \
8c90b13a
L
9092 r=`${PWD_COMMAND}`; export r; \
9093 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9094 $(HOST_EXPORTS) \
d32ab992 9095 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9096 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9097 done; \
295f4e42 9098 echo "Doing TAGS in fastjar" ; \
215c351a 9099 (cd $(HOST_SUBDIR)/fastjar && \
1358ccea
NN
9100 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9101 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9102 "RANLIB=$${RANLIB}" \
9103 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9104 TAGS) \
1358ccea
NN
9105 || exit 1
9106
60975492 9107@endif fastjar
1358ccea 9108
295f4e42
NN
9109.PHONY: maybe-install-info-fastjar install-info-fastjar
9110maybe-install-info-fastjar:
60975492
PB
9111@if fastjar
9112maybe-install-info-fastjar: install-info-fastjar
1358ccea 9113
295f4e42
NN
9114install-info-fastjar: \
9115 configure-fastjar \
05750653 9116 info-fastjar
f41d6665 9117 @: $(MAKE); $(unstage)
295f4e42 9118 @[ -f ./fastjar/Makefile ] || exit 0; \
8c90b13a
L
9119 r=`${PWD_COMMAND}`; export r; \
9120 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9121 $(HOST_EXPORTS) \
d32ab992 9122 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9123 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9124 done; \
295f4e42 9125 echo "Doing install-info in fastjar" ; \
215c351a 9126 (cd $(HOST_SUBDIR)/fastjar && \
1358ccea
NN
9127 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9128 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9129 "RANLIB=$${RANLIB}" \
9130 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9131 install-info) \
1358ccea
NN
9132 || exit 1
9133
60975492 9134@endif fastjar
1358ccea 9135
65d6e994
CD
9136.PHONY: maybe-install-html-fastjar install-html-fastjar
9137maybe-install-html-fastjar:
9138@if fastjar
9139maybe-install-html-fastjar: install-html-fastjar
9140
9141install-html-fastjar: \
9142 configure-fastjar \
9143 html-fastjar
9144 @: $(MAKE); $(unstage)
9145 @[ -f ./fastjar/Makefile ] || exit 0; \
9146 r=`${PWD_COMMAND}`; export r; \
9147 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9148 $(HOST_EXPORTS) \
9149 for flag in $(EXTRA_HOST_FLAGS) ; do \
9150 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9151 done; \
9152 echo "Doing install-html in fastjar" ; \
9153 (cd $(HOST_SUBDIR)/fastjar && \
9154 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9155 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9156 "RANLIB=$${RANLIB}" \
9157 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9158 install-html) \
9159 || exit 1
9160
9161@endif fastjar
9162
295f4e42
NN
9163.PHONY: maybe-installcheck-fastjar installcheck-fastjar
9164maybe-installcheck-fastjar:
60975492
PB
9165@if fastjar
9166maybe-installcheck-fastjar: installcheck-fastjar
1358ccea 9167
295f4e42 9168installcheck-fastjar: \
05750653 9169 configure-fastjar
f41d6665 9170 @: $(MAKE); $(unstage)
295f4e42 9171 @[ -f ./fastjar/Makefile ] || exit 0; \
8c90b13a
L
9172 r=`${PWD_COMMAND}`; export r; \
9173 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9174 $(HOST_EXPORTS) \
d32ab992 9175 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9176 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9177 done; \
295f4e42 9178 echo "Doing installcheck in fastjar" ; \
215c351a 9179 (cd $(HOST_SUBDIR)/fastjar && \
1358ccea
NN
9180 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9181 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9182 "RANLIB=$${RANLIB}" \
9183 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9184 installcheck) \
1358ccea
NN
9185 || exit 1
9186
60975492 9187@endif fastjar
1358ccea 9188
295f4e42
NN
9189.PHONY: maybe-mostlyclean-fastjar mostlyclean-fastjar
9190maybe-mostlyclean-fastjar:
60975492
PB
9191@if fastjar
9192maybe-mostlyclean-fastjar: mostlyclean-fastjar
1358ccea 9193
05750653 9194mostlyclean-fastjar:
f41d6665 9195 @: $(MAKE); $(unstage)
295f4e42 9196 @[ -f ./fastjar/Makefile ] || exit 0; \
8c90b13a
L
9197 r=`${PWD_COMMAND}`; export r; \
9198 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9199 $(HOST_EXPORTS) \
d32ab992 9200 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9201 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9202 done; \
295f4e42 9203 echo "Doing mostlyclean in fastjar" ; \
215c351a 9204 (cd $(HOST_SUBDIR)/fastjar && \
1358ccea
NN
9205 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9206 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9207 "RANLIB=$${RANLIB}" \
9208 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9209 mostlyclean) \
1358ccea
NN
9210 || exit 1
9211
60975492 9212@endif fastjar
1358ccea 9213
295f4e42
NN
9214.PHONY: maybe-clean-fastjar clean-fastjar
9215maybe-clean-fastjar:
60975492
PB
9216@if fastjar
9217maybe-clean-fastjar: clean-fastjar
1358ccea 9218
05750653 9219clean-fastjar:
f41d6665 9220 @: $(MAKE); $(unstage)
295f4e42 9221 @[ -f ./fastjar/Makefile ] || exit 0; \
8c90b13a
L
9222 r=`${PWD_COMMAND}`; export r; \
9223 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9224 $(HOST_EXPORTS) \
d32ab992 9225 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9226 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9227 done; \
295f4e42 9228 echo "Doing clean in fastjar" ; \
215c351a 9229 (cd $(HOST_SUBDIR)/fastjar && \
1358ccea
NN
9230 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9231 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9232 "RANLIB=$${RANLIB}" \
9233 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9234 clean) \
1358ccea
NN
9235 || exit 1
9236
60975492 9237@endif fastjar
1358ccea 9238
295f4e42
NN
9239.PHONY: maybe-distclean-fastjar distclean-fastjar
9240maybe-distclean-fastjar:
60975492
PB
9241@if fastjar
9242maybe-distclean-fastjar: distclean-fastjar
1358ccea 9243
05750653 9244distclean-fastjar:
f41d6665 9245 @: $(MAKE); $(unstage)
295f4e42 9246 @[ -f ./fastjar/Makefile ] || exit 0; \
8c90b13a
L
9247 r=`${PWD_COMMAND}`; export r; \
9248 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9249 $(HOST_EXPORTS) \
d32ab992 9250 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9251 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9252 done; \
295f4e42 9253 echo "Doing distclean in fastjar" ; \
215c351a 9254 (cd $(HOST_SUBDIR)/fastjar && \
1358ccea
NN
9255 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9256 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9257 "RANLIB=$${RANLIB}" \
9258 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9259 distclean) \
1358ccea
NN
9260 || exit 1
9261
60975492 9262@endif fastjar
1358ccea 9263
295f4e42
NN
9264.PHONY: maybe-maintainer-clean-fastjar maintainer-clean-fastjar
9265maybe-maintainer-clean-fastjar:
60975492
PB
9266@if fastjar
9267maybe-maintainer-clean-fastjar: maintainer-clean-fastjar
1358ccea 9268
05750653 9269maintainer-clean-fastjar:
f41d6665 9270 @: $(MAKE); $(unstage)
295f4e42 9271 @[ -f ./fastjar/Makefile ] || exit 0; \
8c90b13a
L
9272 r=`${PWD_COMMAND}`; export r; \
9273 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9274 $(HOST_EXPORTS) \
d32ab992 9275 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9276 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9277 done; \
295f4e42 9278 echo "Doing maintainer-clean in fastjar" ; \
215c351a 9279 (cd $(HOST_SUBDIR)/fastjar && \
1358ccea
NN
9280 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9281 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9282 "RANLIB=$${RANLIB}" \
9283 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9284 maintainer-clean) \
1358ccea
NN
9285 || exit 1
9286
60975492 9287@endif fastjar
1358ccea 9288
1358ccea 9289
25b42232 9290
295f4e42
NN
9291.PHONY: configure-fileutils maybe-configure-fileutils
9292maybe-configure-fileutils:
3ff3adad
PB
9293@if gcc-bootstrap
9294configure-fileutils: stage_current
9295@endif gcc-bootstrap
60975492
PB
9296@if fileutils
9297maybe-configure-fileutils: configure-fileutils
cc11cc9b 9298configure-fileutils:
f41d6665 9299 @: $(MAKE); $(unstage)
cc11cc9b 9300 @r=`${PWD_COMMAND}`; export r; \
295f4e42 9301 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
9302 test ! -f $(HOST_SUBDIR)/fileutils/Makefile || exit 0; \
9303 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fileutils ; \
4fc4dd12 9304 $(HOST_EXPORTS) \
25b42232
PB
9305 echo Configuring in $(HOST_SUBDIR)/fileutils; \
9306 cd "$(HOST_SUBDIR)/fileutils" || exit 1; \
295f4e42 9307 case $(srcdir) in \
215c351a
PB
9308 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9309 *) topdir=`echo $(HOST_SUBDIR)/fileutils/ | \
9310 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 9311 esac; \
215c351a
PB
9312 srcdiroption="--srcdir=$${topdir}/fileutils"; \
9313 libsrcdir="$$s/fileutils"; \
295f4e42 9314 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 9315 $(HOST_CONFIGARGS) $${srcdiroption} \
295f4e42 9316 || exit 1
60975492 9317@endif fileutils
295f4e42 9318
25b42232
PB
9319
9320
ce406537
PB
9321
9322
295f4e42
NN
9323.PHONY: all-fileutils maybe-all-fileutils
9324maybe-all-fileutils:
3ff3adad
PB
9325@if gcc-bootstrap
9326all-fileutils: stage_current
9327@endif gcc-bootstrap
60975492 9328@if fileutils
7e0b5752 9329TARGET-fileutils=all
60975492 9330maybe-all-fileutils: all-fileutils
295f4e42 9331all-fileutils: configure-fileutils
f41d6665 9332 @: $(MAKE); $(unstage)
295f4e42
NN
9333 @r=`${PWD_COMMAND}`; export r; \
9334 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9335 $(HOST_EXPORTS) \
215c351a
PB
9336 (cd $(HOST_SUBDIR)/fileutils && \
9337 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-fileutils))
60975492 9338@endif fileutils
295f4e42 9339
25b42232 9340
ce406537
PB
9341
9342
295f4e42
NN
9343.PHONY: check-fileutils maybe-check-fileutils
9344maybe-check-fileutils:
60975492
PB
9345@if fileutils
9346maybe-check-fileutils: check-fileutils
295f4e42
NN
9347
9348check-fileutils:
f41d6665 9349 @: $(MAKE); $(unstage)
295f4e42
NN
9350 @r=`${PWD_COMMAND}`; export r; \
9351 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9352 $(HOST_EXPORTS) \
215c351a
PB
9353 (cd $(HOST_SUBDIR)/fileutils && \
9354 $(MAKE) $(FLAGS_TO_PASS) check)
295f4e42 9355
60975492 9356@endif fileutils
295f4e42
NN
9357
9358.PHONY: install-fileutils maybe-install-fileutils
9359maybe-install-fileutils:
60975492
PB
9360@if fileutils
9361maybe-install-fileutils: install-fileutils
295f4e42
NN
9362
9363install-fileutils: installdirs
f41d6665 9364 @: $(MAKE); $(unstage)
295f4e42
NN
9365 @r=`${PWD_COMMAND}`; export r; \
9366 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9367 $(HOST_EXPORTS) \
215c351a 9368 (cd $(HOST_SUBDIR)/fileutils && \
ace9ac7b 9369 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 9370
60975492 9371@endif fileutils
295f4e42
NN
9372
9373# Other targets (info, dvi, etc.)
9374
9375.PHONY: maybe-info-fileutils info-fileutils
9376maybe-info-fileutils:
60975492
PB
9377@if fileutils
9378maybe-info-fileutils: info-fileutils
295f4e42
NN
9379
9380info-fileutils: \
05750653 9381 configure-fileutils
f41d6665 9382 @: $(MAKE); $(unstage)
295f4e42 9383 @[ -f ./fileutils/Makefile ] || exit 0; \
8c90b13a
L
9384 r=`${PWD_COMMAND}`; export r; \
9385 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9386 $(HOST_EXPORTS) \
d32ab992 9387 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9388 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9389 done; \
295f4e42 9390 echo "Doing info in fileutils" ; \
215c351a 9391 (cd $(HOST_SUBDIR)/fileutils && \
1358ccea
NN
9392 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9393 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9394 "RANLIB=$${RANLIB}" \
9395 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9396 info) \
1358ccea
NN
9397 || exit 1
9398
60975492 9399@endif fileutils
1358ccea 9400
295f4e42
NN
9401.PHONY: maybe-dvi-fileutils dvi-fileutils
9402maybe-dvi-fileutils:
60975492
PB
9403@if fileutils
9404maybe-dvi-fileutils: dvi-fileutils
1358ccea 9405
295f4e42 9406dvi-fileutils: \
05750653 9407 configure-fileutils
f41d6665 9408 @: $(MAKE); $(unstage)
295f4e42 9409 @[ -f ./fileutils/Makefile ] || exit 0; \
8c90b13a
L
9410 r=`${PWD_COMMAND}`; export r; \
9411 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9412 $(HOST_EXPORTS) \
d32ab992 9413 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9414 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9415 done; \
295f4e42 9416 echo "Doing dvi in fileutils" ; \
215c351a 9417 (cd $(HOST_SUBDIR)/fileutils && \
1358ccea
NN
9418 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9419 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9420 "RANLIB=$${RANLIB}" \
9421 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9422 dvi) \
1358ccea
NN
9423 || exit 1
9424
60975492 9425@endif fileutils
1358ccea 9426
f87a2b2e
MS
9427.PHONY: maybe-html-fileutils html-fileutils
9428maybe-html-fileutils:
9429@if fileutils
9430maybe-html-fileutils: html-fileutils
9431
9432html-fileutils: \
05750653 9433 configure-fileutils
f41d6665 9434 @: $(MAKE); $(unstage)
f87a2b2e
MS
9435 @[ -f ./fileutils/Makefile ] || exit 0; \
9436 r=`${PWD_COMMAND}`; export r; \
9437 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
9438 $(HOST_EXPORTS) \
9439 for flag in $(EXTRA_HOST_FLAGS) ; do \
9440 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9441 done; \
9442 echo "Doing html in fileutils" ; \
215c351a 9443 (cd $(HOST_SUBDIR)/fileutils && \
f87a2b2e
MS
9444 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9445 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9446 "RANLIB=$${RANLIB}" \
9447 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9448 html) \
9449 || exit 1
9450
9451@endif fileutils
9452
295f4e42
NN
9453.PHONY: maybe-TAGS-fileutils TAGS-fileutils
9454maybe-TAGS-fileutils:
60975492
PB
9455@if fileutils
9456maybe-TAGS-fileutils: TAGS-fileutils
1358ccea 9457
295f4e42 9458TAGS-fileutils: \
05750653 9459 configure-fileutils
f41d6665 9460 @: $(MAKE); $(unstage)
295f4e42 9461 @[ -f ./fileutils/Makefile ] || exit 0; \
8c90b13a
L
9462 r=`${PWD_COMMAND}`; export r; \
9463 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9464 $(HOST_EXPORTS) \
d32ab992 9465 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9466 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9467 done; \
295f4e42 9468 echo "Doing TAGS in fileutils" ; \
215c351a 9469 (cd $(HOST_SUBDIR)/fileutils && \
1358ccea
NN
9470 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9471 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9472 "RANLIB=$${RANLIB}" \
9473 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9474 TAGS) \
1358ccea
NN
9475 || exit 1
9476
60975492 9477@endif fileutils
1358ccea 9478
295f4e42
NN
9479.PHONY: maybe-install-info-fileutils install-info-fileutils
9480maybe-install-info-fileutils:
60975492
PB
9481@if fileutils
9482maybe-install-info-fileutils: install-info-fileutils
1358ccea 9483
295f4e42
NN
9484install-info-fileutils: \
9485 configure-fileutils \
05750653 9486 info-fileutils
f41d6665 9487 @: $(MAKE); $(unstage)
295f4e42 9488 @[ -f ./fileutils/Makefile ] || exit 0; \
8c90b13a
L
9489 r=`${PWD_COMMAND}`; export r; \
9490 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9491 $(HOST_EXPORTS) \
d32ab992 9492 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9493 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9494 done; \
295f4e42 9495 echo "Doing install-info in fileutils" ; \
215c351a 9496 (cd $(HOST_SUBDIR)/fileutils && \
1358ccea
NN
9497 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9498 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9499 "RANLIB=$${RANLIB}" \
9500 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9501 install-info) \
1358ccea
NN
9502 || exit 1
9503
60975492 9504@endif fileutils
1358ccea 9505
65d6e994
CD
9506.PHONY: maybe-install-html-fileutils install-html-fileutils
9507maybe-install-html-fileutils:
9508@if fileutils
9509maybe-install-html-fileutils: install-html-fileutils
9510
9511install-html-fileutils: \
9512 configure-fileutils \
9513 html-fileutils
9514 @: $(MAKE); $(unstage)
9515 @[ -f ./fileutils/Makefile ] || exit 0; \
9516 r=`${PWD_COMMAND}`; export r; \
9517 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9518 $(HOST_EXPORTS) \
9519 for flag in $(EXTRA_HOST_FLAGS) ; do \
9520 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9521 done; \
9522 echo "Doing install-html in fileutils" ; \
9523 (cd $(HOST_SUBDIR)/fileutils && \
9524 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9525 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9526 "RANLIB=$${RANLIB}" \
9527 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9528 install-html) \
9529 || exit 1
9530
9531@endif fileutils
9532
295f4e42
NN
9533.PHONY: maybe-installcheck-fileutils installcheck-fileutils
9534maybe-installcheck-fileutils:
60975492
PB
9535@if fileutils
9536maybe-installcheck-fileutils: installcheck-fileutils
1358ccea 9537
295f4e42 9538installcheck-fileutils: \
05750653 9539 configure-fileutils
f41d6665 9540 @: $(MAKE); $(unstage)
295f4e42 9541 @[ -f ./fileutils/Makefile ] || exit 0; \
8c90b13a
L
9542 r=`${PWD_COMMAND}`; export r; \
9543 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9544 $(HOST_EXPORTS) \
d32ab992 9545 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9546 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9547 done; \
295f4e42 9548 echo "Doing installcheck in fileutils" ; \
215c351a 9549 (cd $(HOST_SUBDIR)/fileutils && \
1358ccea
NN
9550 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9551 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9552 "RANLIB=$${RANLIB}" \
9553 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9554 installcheck) \
1358ccea
NN
9555 || exit 1
9556
60975492 9557@endif fileutils
1358ccea 9558
295f4e42
NN
9559.PHONY: maybe-mostlyclean-fileutils mostlyclean-fileutils
9560maybe-mostlyclean-fileutils:
60975492
PB
9561@if fileutils
9562maybe-mostlyclean-fileutils: mostlyclean-fileutils
1358ccea 9563
05750653 9564mostlyclean-fileutils:
f41d6665 9565 @: $(MAKE); $(unstage)
295f4e42 9566 @[ -f ./fileutils/Makefile ] || exit 0; \
8c90b13a
L
9567 r=`${PWD_COMMAND}`; export r; \
9568 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9569 $(HOST_EXPORTS) \
d32ab992 9570 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9571 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9572 done; \
295f4e42 9573 echo "Doing mostlyclean in fileutils" ; \
215c351a 9574 (cd $(HOST_SUBDIR)/fileutils && \
1358ccea
NN
9575 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9576 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9577 "RANLIB=$${RANLIB}" \
9578 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9579 mostlyclean) \
1358ccea
NN
9580 || exit 1
9581
60975492 9582@endif fileutils
1358ccea 9583
295f4e42
NN
9584.PHONY: maybe-clean-fileutils clean-fileutils
9585maybe-clean-fileutils:
60975492
PB
9586@if fileutils
9587maybe-clean-fileutils: clean-fileutils
1358ccea 9588
05750653 9589clean-fileutils:
f41d6665 9590 @: $(MAKE); $(unstage)
295f4e42 9591 @[ -f ./fileutils/Makefile ] || exit 0; \
8c90b13a
L
9592 r=`${PWD_COMMAND}`; export r; \
9593 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9594 $(HOST_EXPORTS) \
d32ab992 9595 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9596 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9597 done; \
295f4e42 9598 echo "Doing clean in fileutils" ; \
215c351a 9599 (cd $(HOST_SUBDIR)/fileutils && \
1358ccea
NN
9600 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9601 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9602 "RANLIB=$${RANLIB}" \
9603 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9604 clean) \
1358ccea
NN
9605 || exit 1
9606
60975492 9607@endif fileutils
1358ccea 9608
295f4e42
NN
9609.PHONY: maybe-distclean-fileutils distclean-fileutils
9610maybe-distclean-fileutils:
60975492
PB
9611@if fileutils
9612maybe-distclean-fileutils: distclean-fileutils
1358ccea 9613
05750653 9614distclean-fileutils:
f41d6665 9615 @: $(MAKE); $(unstage)
295f4e42 9616 @[ -f ./fileutils/Makefile ] || exit 0; \
8c90b13a
L
9617 r=`${PWD_COMMAND}`; export r; \
9618 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9619 $(HOST_EXPORTS) \
d32ab992 9620 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9621 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9622 done; \
295f4e42 9623 echo "Doing distclean in fileutils" ; \
215c351a 9624 (cd $(HOST_SUBDIR)/fileutils && \
1358ccea
NN
9625 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9626 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9627 "RANLIB=$${RANLIB}" \
9628 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9629 distclean) \
1358ccea
NN
9630 || exit 1
9631
60975492 9632@endif fileutils
1358ccea 9633
295f4e42
NN
9634.PHONY: maybe-maintainer-clean-fileutils maintainer-clean-fileutils
9635maybe-maintainer-clean-fileutils:
60975492
PB
9636@if fileutils
9637maybe-maintainer-clean-fileutils: maintainer-clean-fileutils
1358ccea 9638
05750653 9639maintainer-clean-fileutils:
f41d6665 9640 @: $(MAKE); $(unstage)
1358ccea 9641 @[ -f ./fileutils/Makefile ] || exit 0; \
8c90b13a
L
9642 r=`${PWD_COMMAND}`; export r; \
9643 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9644 $(HOST_EXPORTS) \
d32ab992 9645 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9646 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9647 done; \
295f4e42 9648 echo "Doing maintainer-clean in fileutils" ; \
215c351a 9649 (cd $(HOST_SUBDIR)/fileutils && \
1358ccea
NN
9650 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9651 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9652 "RANLIB=$${RANLIB}" \
9653 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9654 maintainer-clean) \
295f4e42
NN
9655 || exit 1
9656
60975492 9657@endif fileutils
295f4e42
NN
9658
9659
25b42232 9660
295f4e42
NN
9661.PHONY: configure-findutils maybe-configure-findutils
9662maybe-configure-findutils:
3ff3adad
PB
9663@if gcc-bootstrap
9664configure-findutils: stage_current
9665@endif gcc-bootstrap
60975492
PB
9666@if findutils
9667maybe-configure-findutils: configure-findutils
cc11cc9b 9668configure-findutils:
f41d6665 9669 @: $(MAKE); $(unstage)
cc11cc9b 9670 @r=`${PWD_COMMAND}`; export r; \
295f4e42 9671 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
9672 test ! -f $(HOST_SUBDIR)/findutils/Makefile || exit 0; \
9673 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/findutils ; \
4fc4dd12 9674 $(HOST_EXPORTS) \
25b42232
PB
9675 echo Configuring in $(HOST_SUBDIR)/findutils; \
9676 cd "$(HOST_SUBDIR)/findutils" || exit 1; \
295f4e42 9677 case $(srcdir) in \
215c351a
PB
9678 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9679 *) topdir=`echo $(HOST_SUBDIR)/findutils/ | \
9680 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 9681 esac; \
215c351a
PB
9682 srcdiroption="--srcdir=$${topdir}/findutils"; \
9683 libsrcdir="$$s/findutils"; \
295f4e42 9684 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 9685 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 9686 || exit 1
60975492 9687@endif findutils
1358ccea 9688
25b42232
PB
9689
9690
ce406537
PB
9691
9692
295f4e42
NN
9693.PHONY: all-findutils maybe-all-findutils
9694maybe-all-findutils:
3ff3adad
PB
9695@if gcc-bootstrap
9696all-findutils: stage_current
9697@endif gcc-bootstrap
60975492 9698@if findutils
7e0b5752 9699TARGET-findutils=all
60975492 9700maybe-all-findutils: all-findutils
295f4e42 9701all-findutils: configure-findutils
f41d6665 9702 @: $(MAKE); $(unstage)
295f4e42 9703 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 9704 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9705 $(HOST_EXPORTS) \
215c351a
PB
9706 (cd $(HOST_SUBDIR)/findutils && \
9707 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-findutils))
60975492 9708@endif findutils
1358ccea 9709
25b42232 9710
ce406537
PB
9711
9712
295f4e42
NN
9713.PHONY: check-findutils maybe-check-findutils
9714maybe-check-findutils:
60975492
PB
9715@if findutils
9716maybe-check-findutils: check-findutils
1358ccea 9717
295f4e42 9718check-findutils:
f41d6665 9719 @: $(MAKE); $(unstage)
295f4e42 9720 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 9721 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9722 $(HOST_EXPORTS) \
215c351a
PB
9723 (cd $(HOST_SUBDIR)/findutils && \
9724 $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 9725
60975492 9726@endif findutils
1358ccea 9727
295f4e42
NN
9728.PHONY: install-findutils maybe-install-findutils
9729maybe-install-findutils:
60975492
PB
9730@if findutils
9731maybe-install-findutils: install-findutils
1358ccea 9732
295f4e42 9733install-findutils: installdirs
f41d6665 9734 @: $(MAKE); $(unstage)
295f4e42 9735 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 9736 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9737 $(HOST_EXPORTS) \
215c351a 9738 (cd $(HOST_SUBDIR)/findutils && \
ace9ac7b 9739 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 9740
60975492 9741@endif findutils
1358ccea 9742
295f4e42 9743# Other targets (info, dvi, etc.)
1358ccea 9744
295f4e42
NN
9745.PHONY: maybe-info-findutils info-findutils
9746maybe-info-findutils:
60975492
PB
9747@if findutils
9748maybe-info-findutils: info-findutils
295f4e42
NN
9749
9750info-findutils: \
05750653 9751 configure-findutils
f41d6665 9752 @: $(MAKE); $(unstage)
295f4e42 9753 @[ -f ./findutils/Makefile ] || exit 0; \
8c90b13a
L
9754 r=`${PWD_COMMAND}`; export r; \
9755 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9756 $(HOST_EXPORTS) \
d32ab992 9757 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9758 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9759 done; \
295f4e42 9760 echo "Doing info in findutils" ; \
215c351a 9761 (cd $(HOST_SUBDIR)/findutils && \
1358ccea
NN
9762 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9763 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9764 "RANLIB=$${RANLIB}" \
9765 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9766 info) \
1358ccea
NN
9767 || exit 1
9768
60975492 9769@endif findutils
1358ccea 9770
295f4e42
NN
9771.PHONY: maybe-dvi-findutils dvi-findutils
9772maybe-dvi-findutils:
60975492
PB
9773@if findutils
9774maybe-dvi-findutils: dvi-findutils
1358ccea 9775
295f4e42 9776dvi-findutils: \
05750653 9777 configure-findutils
f41d6665 9778 @: $(MAKE); $(unstage)
295f4e42 9779 @[ -f ./findutils/Makefile ] || exit 0; \
8c90b13a
L
9780 r=`${PWD_COMMAND}`; export r; \
9781 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9782 $(HOST_EXPORTS) \
d32ab992 9783 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9784 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9785 done; \
295f4e42 9786 echo "Doing dvi in findutils" ; \
215c351a 9787 (cd $(HOST_SUBDIR)/findutils && \
1358ccea
NN
9788 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9789 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9790 "RANLIB=$${RANLIB}" \
9791 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9792 dvi) \
1358ccea
NN
9793 || exit 1
9794
60975492 9795@endif findutils
1358ccea 9796
f87a2b2e
MS
9797.PHONY: maybe-html-findutils html-findutils
9798maybe-html-findutils:
9799@if findutils
9800maybe-html-findutils: html-findutils
9801
9802html-findutils: \
05750653 9803 configure-findutils
f41d6665 9804 @: $(MAKE); $(unstage)
f87a2b2e
MS
9805 @[ -f ./findutils/Makefile ] || exit 0; \
9806 r=`${PWD_COMMAND}`; export r; \
9807 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
9808 $(HOST_EXPORTS) \
9809 for flag in $(EXTRA_HOST_FLAGS) ; do \
9810 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9811 done; \
9812 echo "Doing html in findutils" ; \
215c351a 9813 (cd $(HOST_SUBDIR)/findutils && \
f87a2b2e
MS
9814 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9815 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9816 "RANLIB=$${RANLIB}" \
9817 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9818 html) \
9819 || exit 1
9820
9821@endif findutils
9822
295f4e42
NN
9823.PHONY: maybe-TAGS-findutils TAGS-findutils
9824maybe-TAGS-findutils:
60975492
PB
9825@if findutils
9826maybe-TAGS-findutils: TAGS-findutils
1358ccea 9827
295f4e42 9828TAGS-findutils: \
05750653 9829 configure-findutils
f41d6665 9830 @: $(MAKE); $(unstage)
295f4e42 9831 @[ -f ./findutils/Makefile ] || exit 0; \
8c90b13a
L
9832 r=`${PWD_COMMAND}`; export r; \
9833 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9834 $(HOST_EXPORTS) \
d32ab992 9835 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9836 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9837 done; \
295f4e42 9838 echo "Doing TAGS in findutils" ; \
215c351a 9839 (cd $(HOST_SUBDIR)/findutils && \
1358ccea
NN
9840 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9841 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9842 "RANLIB=$${RANLIB}" \
9843 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9844 TAGS) \
1358ccea
NN
9845 || exit 1
9846
60975492 9847@endif findutils
1358ccea 9848
295f4e42
NN
9849.PHONY: maybe-install-info-findutils install-info-findutils
9850maybe-install-info-findutils:
60975492
PB
9851@if findutils
9852maybe-install-info-findutils: install-info-findutils
1358ccea 9853
295f4e42
NN
9854install-info-findutils: \
9855 configure-findutils \
05750653 9856 info-findutils
f41d6665 9857 @: $(MAKE); $(unstage)
295f4e42 9858 @[ -f ./findutils/Makefile ] || exit 0; \
8c90b13a
L
9859 r=`${PWD_COMMAND}`; export r; \
9860 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9861 $(HOST_EXPORTS) \
d32ab992 9862 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9863 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9864 done; \
295f4e42 9865 echo "Doing install-info in findutils" ; \
215c351a 9866 (cd $(HOST_SUBDIR)/findutils && \
1358ccea
NN
9867 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9868 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9869 "RANLIB=$${RANLIB}" \
9870 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9871 install-info) \
1358ccea
NN
9872 || exit 1
9873
60975492 9874@endif findutils
1358ccea 9875
65d6e994
CD
9876.PHONY: maybe-install-html-findutils install-html-findutils
9877maybe-install-html-findutils:
9878@if findutils
9879maybe-install-html-findutils: install-html-findutils
9880
9881install-html-findutils: \
9882 configure-findutils \
9883 html-findutils
9884 @: $(MAKE); $(unstage)
9885 @[ -f ./findutils/Makefile ] || exit 0; \
9886 r=`${PWD_COMMAND}`; export r; \
9887 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9888 $(HOST_EXPORTS) \
9889 for flag in $(EXTRA_HOST_FLAGS) ; do \
9890 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9891 done; \
9892 echo "Doing install-html in findutils" ; \
9893 (cd $(HOST_SUBDIR)/findutils && \
9894 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9895 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9896 "RANLIB=$${RANLIB}" \
9897 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9898 install-html) \
9899 || exit 1
9900
9901@endif findutils
9902
295f4e42
NN
9903.PHONY: maybe-installcheck-findutils installcheck-findutils
9904maybe-installcheck-findutils:
60975492
PB
9905@if findutils
9906maybe-installcheck-findutils: installcheck-findutils
1358ccea 9907
295f4e42 9908installcheck-findutils: \
05750653 9909 configure-findutils
f41d6665 9910 @: $(MAKE); $(unstage)
295f4e42 9911 @[ -f ./findutils/Makefile ] || exit 0; \
8c90b13a
L
9912 r=`${PWD_COMMAND}`; export r; \
9913 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9914 $(HOST_EXPORTS) \
d32ab992 9915 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9916 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9917 done; \
295f4e42 9918 echo "Doing installcheck in findutils" ; \
215c351a 9919 (cd $(HOST_SUBDIR)/findutils && \
1358ccea
NN
9920 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9921 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9922 "RANLIB=$${RANLIB}" \
9923 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9924 installcheck) \
1358ccea
NN
9925 || exit 1
9926
60975492 9927@endif findutils
1358ccea 9928
295f4e42
NN
9929.PHONY: maybe-mostlyclean-findutils mostlyclean-findutils
9930maybe-mostlyclean-findutils:
60975492
PB
9931@if findutils
9932maybe-mostlyclean-findutils: mostlyclean-findutils
1358ccea 9933
05750653 9934mostlyclean-findutils:
f41d6665 9935 @: $(MAKE); $(unstage)
295f4e42 9936 @[ -f ./findutils/Makefile ] || exit 0; \
8c90b13a
L
9937 r=`${PWD_COMMAND}`; export r; \
9938 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9939 $(HOST_EXPORTS) \
d32ab992 9940 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9941 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9942 done; \
295f4e42 9943 echo "Doing mostlyclean in findutils" ; \
215c351a 9944 (cd $(HOST_SUBDIR)/findutils && \
1358ccea
NN
9945 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9946 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9947 "RANLIB=$${RANLIB}" \
9948 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9949 mostlyclean) \
1358ccea
NN
9950 || exit 1
9951
60975492 9952@endif findutils
1358ccea 9953
295f4e42
NN
9954.PHONY: maybe-clean-findutils clean-findutils
9955maybe-clean-findutils:
60975492
PB
9956@if findutils
9957maybe-clean-findutils: clean-findutils
1358ccea 9958
05750653 9959clean-findutils:
f41d6665 9960 @: $(MAKE); $(unstage)
295f4e42 9961 @[ -f ./findutils/Makefile ] || exit 0; \
8c90b13a
L
9962 r=`${PWD_COMMAND}`; export r; \
9963 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9964 $(HOST_EXPORTS) \
d32ab992 9965 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9966 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9967 done; \
295f4e42 9968 echo "Doing clean in findutils" ; \
215c351a 9969 (cd $(HOST_SUBDIR)/findutils && \
1358ccea
NN
9970 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9971 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9972 "RANLIB=$${RANLIB}" \
9973 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9974 clean) \
1358ccea
NN
9975 || exit 1
9976
60975492 9977@endif findutils
1358ccea 9978
295f4e42
NN
9979.PHONY: maybe-distclean-findutils distclean-findutils
9980maybe-distclean-findutils:
60975492
PB
9981@if findutils
9982maybe-distclean-findutils: distclean-findutils
1358ccea 9983
05750653 9984distclean-findutils:
f41d6665 9985 @: $(MAKE); $(unstage)
295f4e42 9986 @[ -f ./findutils/Makefile ] || exit 0; \
8c90b13a
L
9987 r=`${PWD_COMMAND}`; export r; \
9988 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9989 $(HOST_EXPORTS) \
d32ab992 9990 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9991 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9992 done; \
295f4e42 9993 echo "Doing distclean in findutils" ; \
215c351a 9994 (cd $(HOST_SUBDIR)/findutils && \
1358ccea
NN
9995 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9996 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9997 "RANLIB=$${RANLIB}" \
9998 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9999 distclean) \
1358ccea
NN
10000 || exit 1
10001
60975492 10002@endif findutils
1358ccea 10003
295f4e42
NN
10004.PHONY: maybe-maintainer-clean-findutils maintainer-clean-findutils
10005maybe-maintainer-clean-findutils:
60975492
PB
10006@if findutils
10007maybe-maintainer-clean-findutils: maintainer-clean-findutils
1358ccea 10008
05750653 10009maintainer-clean-findutils:
f41d6665 10010 @: $(MAKE); $(unstage)
295f4e42 10011 @[ -f ./findutils/Makefile ] || exit 0; \
8c90b13a
L
10012 r=`${PWD_COMMAND}`; export r; \
10013 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10014 $(HOST_EXPORTS) \
d32ab992 10015 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10016 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10017 done; \
295f4e42 10018 echo "Doing maintainer-clean in findutils" ; \
215c351a 10019 (cd $(HOST_SUBDIR)/findutils && \
1358ccea
NN
10020 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10021 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10022 "RANLIB=$${RANLIB}" \
10023 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10024 maintainer-clean) \
1358ccea
NN
10025 || exit 1
10026
60975492 10027@endif findutils
1358ccea 10028
1358ccea 10029
25b42232 10030
295f4e42
NN
10031.PHONY: configure-find maybe-configure-find
10032maybe-configure-find:
3ff3adad
PB
10033@if gcc-bootstrap
10034configure-find: stage_current
10035@endif gcc-bootstrap
60975492
PB
10036@if find
10037maybe-configure-find: configure-find
cc11cc9b 10038configure-find:
f41d6665 10039 @: $(MAKE); $(unstage)
cc11cc9b 10040 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 10041 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
10042 test ! -f $(HOST_SUBDIR)/find/Makefile || exit 0; \
10043 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/find ; \
4fc4dd12 10044 $(HOST_EXPORTS) \
25b42232
PB
10045 echo Configuring in $(HOST_SUBDIR)/find; \
10046 cd "$(HOST_SUBDIR)/find" || exit 1; \
295f4e42 10047 case $(srcdir) in \
215c351a
PB
10048 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10049 *) topdir=`echo $(HOST_SUBDIR)/find/ | \
10050 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 10051 esac; \
215c351a
PB
10052 srcdiroption="--srcdir=$${topdir}/find"; \
10053 libsrcdir="$$s/find"; \
295f4e42 10054 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 10055 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 10056 || exit 1
60975492 10057@endif find
1358ccea 10058
25b42232
PB
10059
10060
ce406537
PB
10061
10062
295f4e42
NN
10063.PHONY: all-find maybe-all-find
10064maybe-all-find:
3ff3adad
PB
10065@if gcc-bootstrap
10066all-find: stage_current
10067@endif gcc-bootstrap
60975492 10068@if find
7e0b5752 10069TARGET-find=all
60975492 10070maybe-all-find: all-find
295f4e42 10071all-find: configure-find
f41d6665 10072 @: $(MAKE); $(unstage)
295f4e42
NN
10073 @r=`${PWD_COMMAND}`; export r; \
10074 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10075 $(HOST_EXPORTS) \
215c351a
PB
10076 (cd $(HOST_SUBDIR)/find && \
10077 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-find))
60975492 10078@endif find
1358ccea 10079
25b42232 10080
ce406537
PB
10081
10082
295f4e42
NN
10083.PHONY: check-find maybe-check-find
10084maybe-check-find:
60975492
PB
10085@if find
10086maybe-check-find: check-find
1358ccea 10087
295f4e42 10088check-find:
f41d6665 10089 @: $(MAKE); $(unstage)
295f4e42 10090 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 10091 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10092 $(HOST_EXPORTS) \
215c351a
PB
10093 (cd $(HOST_SUBDIR)/find && \
10094 $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 10095
60975492 10096@endif find
1358ccea 10097
295f4e42
NN
10098.PHONY: install-find maybe-install-find
10099maybe-install-find:
60975492
PB
10100@if find
10101maybe-install-find: install-find
1358ccea 10102
295f4e42 10103install-find: installdirs
f41d6665 10104 @: $(MAKE); $(unstage)
295f4e42 10105 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 10106 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10107 $(HOST_EXPORTS) \
215c351a 10108 (cd $(HOST_SUBDIR)/find && \
ace9ac7b 10109 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 10110
60975492 10111@endif find
1358ccea 10112
295f4e42 10113# Other targets (info, dvi, etc.)
1358ccea 10114
295f4e42
NN
10115.PHONY: maybe-info-find info-find
10116maybe-info-find:
60975492
PB
10117@if find
10118maybe-info-find: info-find
295f4e42
NN
10119
10120info-find: \
05750653 10121 configure-find
f41d6665 10122 @: $(MAKE); $(unstage)
295f4e42 10123 @[ -f ./find/Makefile ] || exit 0; \
8c90b13a
L
10124 r=`${PWD_COMMAND}`; export r; \
10125 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10126 $(HOST_EXPORTS) \
d32ab992 10127 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10128 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10129 done; \
295f4e42 10130 echo "Doing info in find" ; \
215c351a 10131 (cd $(HOST_SUBDIR)/find && \
1358ccea
NN
10132 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10133 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10134 "RANLIB=$${RANLIB}" \
10135 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10136 info) \
1358ccea
NN
10137 || exit 1
10138
60975492 10139@endif find
1358ccea 10140
295f4e42
NN
10141.PHONY: maybe-dvi-find dvi-find
10142maybe-dvi-find:
60975492
PB
10143@if find
10144maybe-dvi-find: dvi-find
1358ccea 10145
295f4e42 10146dvi-find: \
05750653 10147 configure-find
f41d6665 10148 @: $(MAKE); $(unstage)
295f4e42 10149 @[ -f ./find/Makefile ] || exit 0; \
8c90b13a
L
10150 r=`${PWD_COMMAND}`; export r; \
10151 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10152 $(HOST_EXPORTS) \
d32ab992 10153 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10154 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10155 done; \
295f4e42 10156 echo "Doing dvi in find" ; \
215c351a 10157 (cd $(HOST_SUBDIR)/find && \
1358ccea
NN
10158 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10159 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10160 "RANLIB=$${RANLIB}" \
10161 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10162 dvi) \
1358ccea
NN
10163 || exit 1
10164
60975492 10165@endif find
1358ccea 10166
f87a2b2e
MS
10167.PHONY: maybe-html-find html-find
10168maybe-html-find:
10169@if find
10170maybe-html-find: html-find
10171
10172html-find: \
05750653 10173 configure-find
f41d6665 10174 @: $(MAKE); $(unstage)
f87a2b2e
MS
10175 @[ -f ./find/Makefile ] || exit 0; \
10176 r=`${PWD_COMMAND}`; export r; \
10177 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
10178 $(HOST_EXPORTS) \
10179 for flag in $(EXTRA_HOST_FLAGS) ; do \
10180 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10181 done; \
10182 echo "Doing html in find" ; \
215c351a 10183 (cd $(HOST_SUBDIR)/find && \
f87a2b2e
MS
10184 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10185 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10186 "RANLIB=$${RANLIB}" \
10187 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10188 html) \
10189 || exit 1
10190
10191@endif find
10192
295f4e42
NN
10193.PHONY: maybe-TAGS-find TAGS-find
10194maybe-TAGS-find:
60975492
PB
10195@if find
10196maybe-TAGS-find: TAGS-find
1358ccea 10197
295f4e42 10198TAGS-find: \
05750653 10199 configure-find
f41d6665 10200 @: $(MAKE); $(unstage)
295f4e42 10201 @[ -f ./find/Makefile ] || exit 0; \
8c90b13a
L
10202 r=`${PWD_COMMAND}`; export r; \
10203 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10204 $(HOST_EXPORTS) \
d32ab992 10205 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10206 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10207 done; \
295f4e42 10208 echo "Doing TAGS in find" ; \
215c351a 10209 (cd $(HOST_SUBDIR)/find && \
1358ccea
NN
10210 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10211 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10212 "RANLIB=$${RANLIB}" \
10213 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10214 TAGS) \
1358ccea
NN
10215 || exit 1
10216
60975492 10217@endif find
1358ccea 10218
295f4e42
NN
10219.PHONY: maybe-install-info-find install-info-find
10220maybe-install-info-find:
60975492
PB
10221@if find
10222maybe-install-info-find: install-info-find
1358ccea 10223
295f4e42
NN
10224install-info-find: \
10225 configure-find \
05750653 10226 info-find
f41d6665 10227 @: $(MAKE); $(unstage)
295f4e42 10228 @[ -f ./find/Makefile ] || exit 0; \
8c90b13a
L
10229 r=`${PWD_COMMAND}`; export r; \
10230 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10231 $(HOST_EXPORTS) \
d32ab992 10232 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10233 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10234 done; \
295f4e42 10235 echo "Doing install-info in find" ; \
215c351a 10236 (cd $(HOST_SUBDIR)/find && \
1358ccea
NN
10237 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10238 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10239 "RANLIB=$${RANLIB}" \
10240 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10241 install-info) \
1358ccea
NN
10242 || exit 1
10243
60975492 10244@endif find
1358ccea 10245
65d6e994
CD
10246.PHONY: maybe-install-html-find install-html-find
10247maybe-install-html-find:
10248@if find
10249maybe-install-html-find: install-html-find
10250
10251install-html-find: \
10252 configure-find \
10253 html-find
10254 @: $(MAKE); $(unstage)
10255 @[ -f ./find/Makefile ] || exit 0; \
10256 r=`${PWD_COMMAND}`; export r; \
10257 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10258 $(HOST_EXPORTS) \
10259 for flag in $(EXTRA_HOST_FLAGS) ; do \
10260 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10261 done; \
10262 echo "Doing install-html in find" ; \
10263 (cd $(HOST_SUBDIR)/find && \
10264 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10265 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10266 "RANLIB=$${RANLIB}" \
10267 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10268 install-html) \
10269 || exit 1
10270
10271@endif find
10272
295f4e42
NN
10273.PHONY: maybe-installcheck-find installcheck-find
10274maybe-installcheck-find:
60975492
PB
10275@if find
10276maybe-installcheck-find: installcheck-find
1358ccea 10277
295f4e42 10278installcheck-find: \
05750653 10279 configure-find
f41d6665 10280 @: $(MAKE); $(unstage)
295f4e42 10281 @[ -f ./find/Makefile ] || exit 0; \
8c90b13a
L
10282 r=`${PWD_COMMAND}`; export r; \
10283 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10284 $(HOST_EXPORTS) \
d32ab992 10285 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10286 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10287 done; \
295f4e42 10288 echo "Doing installcheck in find" ; \
215c351a 10289 (cd $(HOST_SUBDIR)/find && \
1358ccea
NN
10290 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10291 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10292 "RANLIB=$${RANLIB}" \
10293 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10294 installcheck) \
1358ccea
NN
10295 || exit 1
10296
60975492 10297@endif find
1358ccea 10298
295f4e42
NN
10299.PHONY: maybe-mostlyclean-find mostlyclean-find
10300maybe-mostlyclean-find:
60975492
PB
10301@if find
10302maybe-mostlyclean-find: mostlyclean-find
1358ccea 10303
05750653 10304mostlyclean-find:
f41d6665 10305 @: $(MAKE); $(unstage)
295f4e42 10306 @[ -f ./find/Makefile ] || exit 0; \
8c90b13a
L
10307 r=`${PWD_COMMAND}`; export r; \
10308 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10309 $(HOST_EXPORTS) \
d32ab992 10310 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10311 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10312 done; \
295f4e42 10313 echo "Doing mostlyclean in find" ; \
215c351a 10314 (cd $(HOST_SUBDIR)/find && \
1358ccea
NN
10315 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10316 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10317 "RANLIB=$${RANLIB}" \
10318 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10319 mostlyclean) \
1358ccea
NN
10320 || exit 1
10321
60975492 10322@endif find
1358ccea 10323
295f4e42
NN
10324.PHONY: maybe-clean-find clean-find
10325maybe-clean-find:
60975492
PB
10326@if find
10327maybe-clean-find: clean-find
1358ccea 10328
05750653 10329clean-find:
f41d6665 10330 @: $(MAKE); $(unstage)
295f4e42 10331 @[ -f ./find/Makefile ] || exit 0; \
8c90b13a
L
10332 r=`${PWD_COMMAND}`; export r; \
10333 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10334 $(HOST_EXPORTS) \
d32ab992 10335 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10336 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10337 done; \
295f4e42 10338 echo "Doing clean in find" ; \
215c351a 10339 (cd $(HOST_SUBDIR)/find && \
1358ccea
NN
10340 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10341 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10342 "RANLIB=$${RANLIB}" \
10343 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10344 clean) \
1358ccea
NN
10345 || exit 1
10346
60975492 10347@endif find
1358ccea 10348
295f4e42
NN
10349.PHONY: maybe-distclean-find distclean-find
10350maybe-distclean-find:
60975492
PB
10351@if find
10352maybe-distclean-find: distclean-find
1358ccea 10353
05750653 10354distclean-find:
f41d6665 10355 @: $(MAKE); $(unstage)
295f4e42 10356 @[ -f ./find/Makefile ] || exit 0; \
8c90b13a
L
10357 r=`${PWD_COMMAND}`; export r; \
10358 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10359 $(HOST_EXPORTS) \
d32ab992 10360 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10361 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10362 done; \
295f4e42 10363 echo "Doing distclean in find" ; \
215c351a 10364 (cd $(HOST_SUBDIR)/find && \
1358ccea
NN
10365 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10366 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10367 "RANLIB=$${RANLIB}" \
10368 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10369 distclean) \
1358ccea
NN
10370 || exit 1
10371
60975492 10372@endif find
1358ccea 10373
295f4e42
NN
10374.PHONY: maybe-maintainer-clean-find maintainer-clean-find
10375maybe-maintainer-clean-find:
60975492
PB
10376@if find
10377maybe-maintainer-clean-find: maintainer-clean-find
1358ccea 10378
05750653 10379maintainer-clean-find:
f41d6665 10380 @: $(MAKE); $(unstage)
295f4e42 10381 @[ -f ./find/Makefile ] || exit 0; \
8c90b13a
L
10382 r=`${PWD_COMMAND}`; export r; \
10383 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10384 $(HOST_EXPORTS) \
d32ab992 10385 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10386 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10387 done; \
295f4e42 10388 echo "Doing maintainer-clean in find" ; \
215c351a 10389 (cd $(HOST_SUBDIR)/find && \
1358ccea
NN
10390 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10391 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10392 "RANLIB=$${RANLIB}" \
10393 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10394 maintainer-clean) \
1358ccea
NN
10395 || exit 1
10396
60975492 10397@endif find
1358ccea 10398
1358ccea 10399
25b42232 10400
53c7ffe7
GK
10401.PHONY: configure-fixincludes maybe-configure-fixincludes
10402maybe-configure-fixincludes:
3ff3adad
PB
10403@if gcc-bootstrap
10404configure-fixincludes: stage_current
10405@endif gcc-bootstrap
53c7ffe7
GK
10406@if fixincludes
10407maybe-configure-fixincludes: configure-fixincludes
cc11cc9b 10408configure-fixincludes:
f41d6665 10409 @: $(MAKE); $(unstage)
cc11cc9b 10410 @r=`${PWD_COMMAND}`; export r; \
53c7ffe7 10411 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
10412 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
10413 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes ; \
53c7ffe7 10414 $(HOST_EXPORTS) \
25b42232
PB
10415 echo Configuring in $(HOST_SUBDIR)/fixincludes; \
10416 cd "$(HOST_SUBDIR)/fixincludes" || exit 1; \
53c7ffe7 10417 case $(srcdir) in \
215c351a
PB
10418 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10419 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
10420 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
53c7ffe7 10421 esac; \
215c351a
PB
10422 srcdiroption="--srcdir=$${topdir}/fixincludes"; \
10423 libsrcdir="$$s/fixincludes"; \
53c7ffe7
GK
10424 $(SHELL) $${libsrcdir}/configure \
10425 $(HOST_CONFIGARGS) $${srcdiroption} \
10426 || exit 1
10427@endif fixincludes
10428
25b42232
PB
10429
10430
ce406537
PB
10431
10432
53c7ffe7
GK
10433.PHONY: all-fixincludes maybe-all-fixincludes
10434maybe-all-fixincludes:
3ff3adad
PB
10435@if gcc-bootstrap
10436all-fixincludes: stage_current
10437@endif gcc-bootstrap
53c7ffe7
GK
10438@if fixincludes
10439TARGET-fixincludes=all
10440maybe-all-fixincludes: all-fixincludes
10441all-fixincludes: configure-fixincludes
f41d6665 10442 @: $(MAKE); $(unstage)
53c7ffe7
GK
10443 @r=`${PWD_COMMAND}`; export r; \
10444 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53c7ffe7 10445 $(HOST_EXPORTS) \
215c351a
PB
10446 (cd $(HOST_SUBDIR)/fixincludes && \
10447 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-fixincludes))
53c7ffe7
GK
10448@endif fixincludes
10449
25b42232 10450
ce406537
PB
10451
10452
53c7ffe7
GK
10453.PHONY: check-fixincludes maybe-check-fixincludes
10454maybe-check-fixincludes:
10455@if fixincludes
10456maybe-check-fixincludes: check-fixincludes
10457
10458check-fixincludes:
f41d6665 10459 @: $(MAKE); $(unstage)
53c7ffe7
GK
10460 @r=`${PWD_COMMAND}`; export r; \
10461 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53c7ffe7 10462 $(HOST_EXPORTS) \
215c351a
PB
10463 (cd $(HOST_SUBDIR)/fixincludes && \
10464 $(MAKE) $(FLAGS_TO_PASS) check)
53c7ffe7
GK
10465
10466@endif fixincludes
10467
10468.PHONY: install-fixincludes maybe-install-fixincludes
10469maybe-install-fixincludes:
10470@if fixincludes
10471maybe-install-fixincludes: install-fixincludes
10472
10473install-fixincludes: installdirs
f41d6665 10474 @: $(MAKE); $(unstage)
53c7ffe7
GK
10475 @r=`${PWD_COMMAND}`; export r; \
10476 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53c7ffe7 10477 $(HOST_EXPORTS) \
215c351a 10478 (cd $(HOST_SUBDIR)/fixincludes && \
ace9ac7b 10479 $(MAKE) $(FLAGS_TO_PASS) install)
53c7ffe7
GK
10480
10481@endif fixincludes
10482
10483# Other targets (info, dvi, etc.)
10484
10485.PHONY: maybe-info-fixincludes info-fixincludes
10486maybe-info-fixincludes:
10487@if fixincludes
10488maybe-info-fixincludes: info-fixincludes
10489
54f88091
PB
10490# fixincludes doesn't support info.
10491info-fixincludes:
53c7ffe7
GK
10492
10493@endif fixincludes
10494
10495.PHONY: maybe-dvi-fixincludes dvi-fixincludes
10496maybe-dvi-fixincludes:
10497@if fixincludes
10498maybe-dvi-fixincludes: dvi-fixincludes
10499
54f88091
PB
10500# fixincludes doesn't support dvi.
10501dvi-fixincludes:
53c7ffe7
GK
10502
10503@endif fixincludes
10504
f87a2b2e
MS
10505.PHONY: maybe-html-fixincludes html-fixincludes
10506maybe-html-fixincludes:
10507@if fixincludes
10508maybe-html-fixincludes: html-fixincludes
10509
10510html-fixincludes: \
05750653 10511 configure-fixincludes
f41d6665 10512 @: $(MAKE); $(unstage)
f87a2b2e
MS
10513 @[ -f ./fixincludes/Makefile ] || exit 0; \
10514 r=`${PWD_COMMAND}`; export r; \
10515 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
10516 $(HOST_EXPORTS) \
10517 for flag in $(EXTRA_HOST_FLAGS) ; do \
10518 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10519 done; \
10520 echo "Doing html in fixincludes" ; \
215c351a 10521 (cd $(HOST_SUBDIR)/fixincludes && \
f87a2b2e
MS
10522 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10523 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10524 "RANLIB=$${RANLIB}" \
10525 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10526 html) \
10527 || exit 1
10528
10529@endif fixincludes
10530
53c7ffe7
GK
10531.PHONY: maybe-TAGS-fixincludes TAGS-fixincludes
10532maybe-TAGS-fixincludes:
10533@if fixincludes
10534maybe-TAGS-fixincludes: TAGS-fixincludes
10535
54f88091
PB
10536# fixincludes doesn't support TAGS.
10537TAGS-fixincludes:
53c7ffe7
GK
10538
10539@endif fixincludes
10540
10541.PHONY: maybe-install-info-fixincludes install-info-fixincludes
10542maybe-install-info-fixincludes:
10543@if fixincludes
10544maybe-install-info-fixincludes: install-info-fixincludes
10545
54f88091
PB
10546# fixincludes doesn't support install-info.
10547install-info-fixincludes:
53c7ffe7
GK
10548
10549@endif fixincludes
10550
65d6e994
CD
10551.PHONY: maybe-install-html-fixincludes install-html-fixincludes
10552maybe-install-html-fixincludes:
10553@if fixincludes
10554maybe-install-html-fixincludes: install-html-fixincludes
10555
10556install-html-fixincludes: \
10557 configure-fixincludes \
10558 html-fixincludes
10559 @: $(MAKE); $(unstage)
10560 @[ -f ./fixincludes/Makefile ] || exit 0; \
10561 r=`${PWD_COMMAND}`; export r; \
10562 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10563 $(HOST_EXPORTS) \
10564 for flag in $(EXTRA_HOST_FLAGS) ; do \
10565 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10566 done; \
10567 echo "Doing install-html in fixincludes" ; \
10568 (cd $(HOST_SUBDIR)/fixincludes && \
10569 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10570 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10571 "RANLIB=$${RANLIB}" \
10572 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10573 install-html) \
10574 || exit 1
10575
10576@endif fixincludes
10577
53c7ffe7
GK
10578.PHONY: maybe-installcheck-fixincludes installcheck-fixincludes
10579maybe-installcheck-fixincludes:
10580@if fixincludes
10581maybe-installcheck-fixincludes: installcheck-fixincludes
10582
54f88091
PB
10583# fixincludes doesn't support installcheck.
10584installcheck-fixincludes:
53c7ffe7
GK
10585
10586@endif fixincludes
10587
10588.PHONY: maybe-mostlyclean-fixincludes mostlyclean-fixincludes
10589maybe-mostlyclean-fixincludes:
10590@if fixincludes
10591maybe-mostlyclean-fixincludes: mostlyclean-fixincludes
10592
05750653 10593mostlyclean-fixincludes:
f41d6665 10594 @: $(MAKE); $(unstage)
53c7ffe7
GK
10595 @[ -f ./fixincludes/Makefile ] || exit 0; \
10596 r=`${PWD_COMMAND}`; export r; \
10597 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53c7ffe7
GK
10598 $(HOST_EXPORTS) \
10599 for flag in $(EXTRA_HOST_FLAGS) ; do \
10600 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10601 done; \
10602 echo "Doing mostlyclean in fixincludes" ; \
215c351a 10603 (cd $(HOST_SUBDIR)/fixincludes && \
53c7ffe7
GK
10604 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10605 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10606 "RANLIB=$${RANLIB}" \
10607 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10608 mostlyclean) \
10609 || exit 1
10610
10611@endif fixincludes
10612
10613.PHONY: maybe-clean-fixincludes clean-fixincludes
10614maybe-clean-fixincludes:
10615@if fixincludes
10616maybe-clean-fixincludes: clean-fixincludes
10617
05750653 10618clean-fixincludes:
f41d6665 10619 @: $(MAKE); $(unstage)
53c7ffe7
GK
10620 @[ -f ./fixincludes/Makefile ] || exit 0; \
10621 r=`${PWD_COMMAND}`; export r; \
10622 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53c7ffe7
GK
10623 $(HOST_EXPORTS) \
10624 for flag in $(EXTRA_HOST_FLAGS) ; do \
10625 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10626 done; \
10627 echo "Doing clean in fixincludes" ; \
215c351a 10628 (cd $(HOST_SUBDIR)/fixincludes && \
53c7ffe7
GK
10629 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10630 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10631 "RANLIB=$${RANLIB}" \
10632 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10633 clean) \
10634 || exit 1
10635
10636@endif fixincludes
10637
10638.PHONY: maybe-distclean-fixincludes distclean-fixincludes
10639maybe-distclean-fixincludes:
10640@if fixincludes
10641maybe-distclean-fixincludes: distclean-fixincludes
10642
05750653 10643distclean-fixincludes:
f41d6665 10644 @: $(MAKE); $(unstage)
53c7ffe7
GK
10645 @[ -f ./fixincludes/Makefile ] || exit 0; \
10646 r=`${PWD_COMMAND}`; export r; \
10647 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53c7ffe7
GK
10648 $(HOST_EXPORTS) \
10649 for flag in $(EXTRA_HOST_FLAGS) ; do \
10650 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10651 done; \
10652 echo "Doing distclean in fixincludes" ; \
215c351a 10653 (cd $(HOST_SUBDIR)/fixincludes && \
53c7ffe7
GK
10654 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10655 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10656 "RANLIB=$${RANLIB}" \
10657 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10658 distclean) \
10659 || exit 1
10660
10661@endif fixincludes
10662
10663.PHONY: maybe-maintainer-clean-fixincludes maintainer-clean-fixincludes
10664maybe-maintainer-clean-fixincludes:
10665@if fixincludes
10666maybe-maintainer-clean-fixincludes: maintainer-clean-fixincludes
10667
05750653 10668maintainer-clean-fixincludes:
f41d6665 10669 @: $(MAKE); $(unstage)
53c7ffe7
GK
10670 @[ -f ./fixincludes/Makefile ] || exit 0; \
10671 r=`${PWD_COMMAND}`; export r; \
10672 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53c7ffe7
GK
10673 $(HOST_EXPORTS) \
10674 for flag in $(EXTRA_HOST_FLAGS) ; do \
10675 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10676 done; \
10677 echo "Doing maintainer-clean in fixincludes" ; \
215c351a 10678 (cd $(HOST_SUBDIR)/fixincludes && \
53c7ffe7
GK
10679 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10680 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10681 "RANLIB=$${RANLIB}" \
10682 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10683 maintainer-clean) \
10684 || exit 1
10685
10686@endif fixincludes
10687
10688
25b42232 10689
295f4e42
NN
10690.PHONY: configure-flex maybe-configure-flex
10691maybe-configure-flex:
3ff3adad
PB
10692@if gcc-bootstrap
10693configure-flex: stage_current
10694@endif gcc-bootstrap
60975492
PB
10695@if flex
10696maybe-configure-flex: configure-flex
cc11cc9b 10697configure-flex:
f41d6665 10698 @: $(MAKE); $(unstage)
cc11cc9b 10699 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 10700 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
10701 test ! -f $(HOST_SUBDIR)/flex/Makefile || exit 0; \
10702 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/flex ; \
4fc4dd12 10703 $(HOST_EXPORTS) \
25b42232
PB
10704 echo Configuring in $(HOST_SUBDIR)/flex; \
10705 cd "$(HOST_SUBDIR)/flex" || exit 1; \
295f4e42 10706 case $(srcdir) in \
215c351a
PB
10707 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10708 *) topdir=`echo $(HOST_SUBDIR)/flex/ | \
10709 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 10710 esac; \
215c351a
PB
10711 srcdiroption="--srcdir=$${topdir}/flex"; \
10712 libsrcdir="$$s/flex"; \
295f4e42 10713 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 10714 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 10715 || exit 1
60975492 10716@endif flex
1358ccea 10717
25b42232
PB
10718
10719
ce406537
PB
10720
10721
295f4e42
NN
10722.PHONY: all-flex maybe-all-flex
10723maybe-all-flex:
3ff3adad
PB
10724@if gcc-bootstrap
10725all-flex: stage_current
10726@endif gcc-bootstrap
60975492 10727@if flex
7e0b5752 10728TARGET-flex=all
60975492 10729maybe-all-flex: all-flex
295f4e42 10730all-flex: configure-flex
f41d6665 10731 @: $(MAKE); $(unstage)
295f4e42 10732 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 10733 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10734 $(HOST_EXPORTS) \
215c351a
PB
10735 (cd $(HOST_SUBDIR)/flex && \
10736 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-flex))
60975492 10737@endif flex
295f4e42 10738
25b42232 10739
ce406537
PB
10740
10741
295f4e42
NN
10742.PHONY: check-flex maybe-check-flex
10743maybe-check-flex:
60975492
PB
10744@if flex
10745maybe-check-flex: check-flex
295f4e42
NN
10746
10747# This module is only tested in a native toolchain.
10748check-flex:
f41d6665 10749 @: $(MAKE); $(unstage)
295f4e42
NN
10750 @if [ '$(host)' = '$(target)' ] ; then \
10751 r=`${PWD_COMMAND}`; export r; \
10752 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10753 $(HOST_EXPORTS) \
215c351a 10754 (cd $(HOST_SUBDIR)/flex && \
ef6e9bc0 10755 $(MAKE) $(FLAGS_TO_PASS) check); \
295f4e42 10756 fi
1358ccea 10757
60975492 10758@endif flex
1358ccea 10759
295f4e42
NN
10760.PHONY: install-flex maybe-install-flex
10761maybe-install-flex:
60975492
PB
10762@if flex
10763maybe-install-flex: install-flex
1358ccea 10764
295f4e42 10765install-flex: installdirs
f41d6665 10766 @: $(MAKE); $(unstage)
295f4e42 10767 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 10768 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10769 $(HOST_EXPORTS) \
215c351a 10770 (cd $(HOST_SUBDIR)/flex && \
ace9ac7b 10771 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 10772
60975492 10773@endif flex
1358ccea 10774
295f4e42 10775# Other targets (info, dvi, etc.)
1358ccea 10776
295f4e42
NN
10777.PHONY: maybe-info-flex info-flex
10778maybe-info-flex:
60975492
PB
10779@if flex
10780maybe-info-flex: info-flex
295f4e42
NN
10781
10782info-flex: \
05750653 10783 configure-flex
f41d6665 10784 @: $(MAKE); $(unstage)
295f4e42 10785 @[ -f ./flex/Makefile ] || exit 0; \
8c90b13a
L
10786 r=`${PWD_COMMAND}`; export r; \
10787 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10788 $(HOST_EXPORTS) \
d32ab992 10789 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10790 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10791 done; \
295f4e42 10792 echo "Doing info in flex" ; \
215c351a 10793 (cd $(HOST_SUBDIR)/flex && \
1358ccea
NN
10794 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10795 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10796 "RANLIB=$${RANLIB}" \
10797 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10798 info) \
1358ccea
NN
10799 || exit 1
10800
60975492 10801@endif flex
1358ccea 10802
295f4e42
NN
10803.PHONY: maybe-dvi-flex dvi-flex
10804maybe-dvi-flex:
60975492
PB
10805@if flex
10806maybe-dvi-flex: dvi-flex
1358ccea 10807
295f4e42 10808dvi-flex: \
05750653 10809 configure-flex
f41d6665 10810 @: $(MAKE); $(unstage)
295f4e42 10811 @[ -f ./flex/Makefile ] || exit 0; \
8c90b13a
L
10812 r=`${PWD_COMMAND}`; export r; \
10813 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10814 $(HOST_EXPORTS) \
d32ab992 10815 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10816 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10817 done; \
295f4e42 10818 echo "Doing dvi in flex" ; \
215c351a 10819 (cd $(HOST_SUBDIR)/flex && \
1358ccea
NN
10820 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10821 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10822 "RANLIB=$${RANLIB}" \
10823 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10824 dvi) \
1358ccea
NN
10825 || exit 1
10826
60975492 10827@endif flex
1358ccea 10828
f87a2b2e
MS
10829.PHONY: maybe-html-flex html-flex
10830maybe-html-flex:
10831@if flex
10832maybe-html-flex: html-flex
10833
10834html-flex: \
05750653 10835 configure-flex
f41d6665 10836 @: $(MAKE); $(unstage)
f87a2b2e
MS
10837 @[ -f ./flex/Makefile ] || exit 0; \
10838 r=`${PWD_COMMAND}`; export r; \
10839 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
10840 $(HOST_EXPORTS) \
10841 for flag in $(EXTRA_HOST_FLAGS) ; do \
10842 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10843 done; \
10844 echo "Doing html in flex" ; \
215c351a 10845 (cd $(HOST_SUBDIR)/flex && \
f87a2b2e
MS
10846 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10847 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10848 "RANLIB=$${RANLIB}" \
10849 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10850 html) \
10851 || exit 1
10852
10853@endif flex
10854
295f4e42
NN
10855.PHONY: maybe-TAGS-flex TAGS-flex
10856maybe-TAGS-flex:
60975492
PB
10857@if flex
10858maybe-TAGS-flex: TAGS-flex
1358ccea 10859
295f4e42 10860TAGS-flex: \
05750653 10861 configure-flex
f41d6665 10862 @: $(MAKE); $(unstage)
295f4e42 10863 @[ -f ./flex/Makefile ] || exit 0; \
8c90b13a
L
10864 r=`${PWD_COMMAND}`; export r; \
10865 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10866 $(HOST_EXPORTS) \
d32ab992 10867 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10868 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10869 done; \
295f4e42 10870 echo "Doing TAGS in flex" ; \
215c351a 10871 (cd $(HOST_SUBDIR)/flex && \
1358ccea
NN
10872 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10873 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10874 "RANLIB=$${RANLIB}" \
10875 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10876 TAGS) \
1358ccea
NN
10877 || exit 1
10878
60975492 10879@endif flex
1358ccea 10880
295f4e42
NN
10881.PHONY: maybe-install-info-flex install-info-flex
10882maybe-install-info-flex:
60975492
PB
10883@if flex
10884maybe-install-info-flex: install-info-flex
1358ccea 10885
295f4e42
NN
10886install-info-flex: \
10887 configure-flex \
05750653 10888 info-flex
f41d6665 10889 @: $(MAKE); $(unstage)
295f4e42 10890 @[ -f ./flex/Makefile ] || exit 0; \
8c90b13a
L
10891 r=`${PWD_COMMAND}`; export r; \
10892 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10893 $(HOST_EXPORTS) \
d32ab992 10894 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10895 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10896 done; \
295f4e42 10897 echo "Doing install-info in flex" ; \
215c351a 10898 (cd $(HOST_SUBDIR)/flex && \
1358ccea
NN
10899 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10900 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10901 "RANLIB=$${RANLIB}" \
10902 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10903 install-info) \
1358ccea
NN
10904 || exit 1
10905
60975492 10906@endif flex
1358ccea 10907
65d6e994
CD
10908.PHONY: maybe-install-html-flex install-html-flex
10909maybe-install-html-flex:
10910@if flex
10911maybe-install-html-flex: install-html-flex
10912
10913install-html-flex: \
10914 configure-flex \
10915 html-flex
10916 @: $(MAKE); $(unstage)
10917 @[ -f ./flex/Makefile ] || exit 0; \
10918 r=`${PWD_COMMAND}`; export r; \
10919 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10920 $(HOST_EXPORTS) \
10921 for flag in $(EXTRA_HOST_FLAGS) ; do \
10922 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10923 done; \
10924 echo "Doing install-html in flex" ; \
10925 (cd $(HOST_SUBDIR)/flex && \
10926 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10927 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10928 "RANLIB=$${RANLIB}" \
10929 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10930 install-html) \
10931 || exit 1
10932
10933@endif flex
10934
295f4e42
NN
10935.PHONY: maybe-installcheck-flex installcheck-flex
10936maybe-installcheck-flex:
60975492
PB
10937@if flex
10938maybe-installcheck-flex: installcheck-flex
1358ccea 10939
295f4e42 10940installcheck-flex: \
05750653 10941 configure-flex
f41d6665 10942 @: $(MAKE); $(unstage)
295f4e42 10943 @[ -f ./flex/Makefile ] || exit 0; \
8c90b13a
L
10944 r=`${PWD_COMMAND}`; export r; \
10945 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10946 $(HOST_EXPORTS) \
d32ab992 10947 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10948 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10949 done; \
295f4e42 10950 echo "Doing installcheck in flex" ; \
215c351a 10951 (cd $(HOST_SUBDIR)/flex && \
1358ccea
NN
10952 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10953 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10954 "RANLIB=$${RANLIB}" \
10955 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10956 installcheck) \
1358ccea
NN
10957 || exit 1
10958
60975492 10959@endif flex
1358ccea 10960
295f4e42
NN
10961.PHONY: maybe-mostlyclean-flex mostlyclean-flex
10962maybe-mostlyclean-flex:
60975492
PB
10963@if flex
10964maybe-mostlyclean-flex: mostlyclean-flex
1358ccea 10965
05750653 10966mostlyclean-flex:
f41d6665 10967 @: $(MAKE); $(unstage)
295f4e42 10968 @[ -f ./flex/Makefile ] || exit 0; \
8c90b13a
L
10969 r=`${PWD_COMMAND}`; export r; \
10970 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10971 $(HOST_EXPORTS) \
d32ab992 10972 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10973 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10974 done; \
295f4e42 10975 echo "Doing mostlyclean in flex" ; \
215c351a 10976 (cd $(HOST_SUBDIR)/flex && \
1358ccea
NN
10977 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10978 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10979 "RANLIB=$${RANLIB}" \
10980 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10981 mostlyclean) \
1358ccea
NN
10982 || exit 1
10983
60975492 10984@endif flex
1358ccea 10985
295f4e42
NN
10986.PHONY: maybe-clean-flex clean-flex
10987maybe-clean-flex:
60975492
PB
10988@if flex
10989maybe-clean-flex: clean-flex
1358ccea 10990
05750653 10991clean-flex:
f41d6665 10992 @: $(MAKE); $(unstage)
295f4e42 10993 @[ -f ./flex/Makefile ] || exit 0; \
8c90b13a
L
10994 r=`${PWD_COMMAND}`; export r; \
10995 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10996 $(HOST_EXPORTS) \
d32ab992 10997 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10998 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10999 done; \
295f4e42 11000 echo "Doing clean in flex" ; \
215c351a 11001 (cd $(HOST_SUBDIR)/flex && \
1358ccea
NN
11002 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11003 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11004 "RANLIB=$${RANLIB}" \
11005 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 11006 clean) \
1358ccea
NN
11007 || exit 1
11008
60975492 11009@endif flex
1358ccea 11010
295f4e42
NN
11011.PHONY: maybe-distclean-flex distclean-flex
11012maybe-distclean-flex:
60975492
PB
11013@if flex
11014maybe-distclean-flex: distclean-flex
1358ccea 11015
05750653 11016distclean-flex:
f41d6665 11017 @: $(MAKE); $(unstage)
295f4e42 11018 @[ -f ./flex/Makefile ] || exit 0; \
8c90b13a
L
11019 r=`${PWD_COMMAND}`; export r; \
11020 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 11021 $(HOST_EXPORTS) \
d32ab992 11022 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11023 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11024 done; \
295f4e42 11025 echo "Doing distclean in flex" ; \
215c351a 11026 (cd $(HOST_SUBDIR)/flex && \
1358ccea
NN
11027 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11028 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11029 "RANLIB=$${RANLIB}" \
11030 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 11031 distclean) \
1358ccea
NN
11032 || exit 1
11033
60975492 11034@endif flex
1358ccea 11035
295f4e42
NN
11036.PHONY: maybe-maintainer-clean-flex maintainer-clean-flex
11037maybe-maintainer-clean-flex:
60975492
PB
11038@if flex
11039maybe-maintainer-clean-flex: maintainer-clean-flex
1358ccea 11040
05750653 11041maintainer-clean-flex:
f41d6665 11042 @: $(MAKE); $(unstage)
295f4e42 11043 @[ -f ./flex/Makefile ] || exit 0; \
8c90b13a
L
11044 r=`${PWD_COMMAND}`; export r; \
11045 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 11046 $(HOST_EXPORTS) \
d32ab992 11047 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11048 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11049 done; \
295f4e42 11050 echo "Doing maintainer-clean in flex" ; \
215c351a 11051 (cd $(HOST_SUBDIR)/flex && \
1358ccea
NN
11052 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11053 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11054 "RANLIB=$${RANLIB}" \
11055 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 11056 maintainer-clean) \
1358ccea
NN
11057 || exit 1
11058
60975492 11059@endif flex
1358ccea 11060
1358ccea 11061
25b42232 11062
295f4e42
NN
11063.PHONY: configure-gas maybe-configure-gas
11064maybe-configure-gas:
3ff3adad
PB
11065@if gcc-bootstrap
11066configure-gas: stage_current
11067@endif gcc-bootstrap
60975492
PB
11068@if gas
11069maybe-configure-gas: configure-gas
cc11cc9b 11070configure-gas:
cc11cc9b
PB
11071 @r=`${PWD_COMMAND}`; export r; \
11072 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
215c351a
PB
11073 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
11074 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
4fc4dd12 11075 $(HOST_EXPORTS) \
25b42232
PB
11076 echo Configuring in $(HOST_SUBDIR)/gas; \
11077 cd "$(HOST_SUBDIR)/gas" || exit 1; \
295f4e42 11078 case $(srcdir) in \
215c351a
PB
11079 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11080 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
11081 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 11082 esac; \
215c351a
PB
11083 srcdiroption="--srcdir=$${topdir}/gas"; \
11084 libsrcdir="$$s/gas"; \
295f4e42 11085 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 11086 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 11087 || exit 1
60975492 11088@endif gas
1358ccea 11089
25b42232
PB
11090
11091
ce406537
PB
11092.PHONY: configure-stage1-gas maybe-configure-stage1-gas
11093maybe-configure-stage1-gas:
11094@if gas-bootstrap
11095maybe-configure-stage1-gas: configure-stage1-gas
f41d6665 11096configure-stage1-gas:
cc11cc9b 11097 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
f41d6665 11098 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
cc11cc9b
PB
11099 @r=`${PWD_COMMAND}`; export r; \
11100 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 11101 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
ce406537
PB
11102 $(HOST_EXPORTS) \
11103 echo Configuring stage 1 in $(HOST_SUBDIR)/gas ; \
f41d6665 11104 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
ce406537
PB
11105 cd $(HOST_SUBDIR)/gas || exit 1; \
11106 case $(srcdir) in \
11107 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11108 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
11109 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11110 esac; \
11111 srcdiroption="--srcdir=$${topdir}/gas"; \
11112 libsrcdir="$$s/gas"; \
11113 $(SHELL) $${libsrcdir}/configure \
11114 $(HOST_CONFIGARGS) $${srcdiroption} \
11115 --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
11116@endif gas-bootstrap
11117
11118.PHONY: configure-stage2-gas maybe-configure-stage2-gas
11119maybe-configure-stage2-gas:
11120@if gas-bootstrap
11121maybe-configure-stage2-gas: configure-stage2-gas
f41d6665 11122configure-stage2-gas:
cc11cc9b 11123 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
f41d6665 11124 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
cc11cc9b
PB
11125 @r=`${PWD_COMMAND}`; export r; \
11126 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 11127 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
ce406537
PB
11128 $(HOST_EXPORTS) \
11129 $(POSTSTAGE1_HOST_EXPORTS) \
11130 echo Configuring stage 2 in $(HOST_SUBDIR)/gas ; \
f41d6665 11131 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
ce406537
PB
11132 cd $(HOST_SUBDIR)/gas || exit 1; \
11133 case $(srcdir) in \
11134 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11135 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
11136 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11137 esac; \
11138 srcdiroption="--srcdir=$${topdir}/gas"; \
11139 libsrcdir="$$s/gas"; \
11140 $(SHELL) $${libsrcdir}/configure \
11141 $(HOST_CONFIGARGS) $${srcdiroption} \
11142 @stage2_werror_flag@
11143@endif gas-bootstrap
11144
11145.PHONY: configure-stage3-gas maybe-configure-stage3-gas
11146maybe-configure-stage3-gas:
11147@if gas-bootstrap
11148maybe-configure-stage3-gas: configure-stage3-gas
f41d6665 11149configure-stage3-gas:
cc11cc9b 11150 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
f41d6665 11151 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
cc11cc9b
PB
11152 @r=`${PWD_COMMAND}`; export r; \
11153 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 11154 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
ce406537
PB
11155 $(HOST_EXPORTS) \
11156 $(POSTSTAGE1_HOST_EXPORTS) \
11157 echo Configuring stage 3 in $(HOST_SUBDIR)/gas ; \
f41d6665 11158 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
ce406537
PB
11159 cd $(HOST_SUBDIR)/gas || exit 1; \
11160 case $(srcdir) in \
11161 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11162 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
11163 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11164 esac; \
11165 srcdiroption="--srcdir=$${topdir}/gas"; \
11166 libsrcdir="$$s/gas"; \
11167 $(SHELL) $${libsrcdir}/configure \
11168 $(HOST_CONFIGARGS) $${srcdiroption} \
11169 @stage2_werror_flag@
11170@endif gas-bootstrap
11171
11172.PHONY: configure-stage4-gas maybe-configure-stage4-gas
11173maybe-configure-stage4-gas:
11174@if gas-bootstrap
11175maybe-configure-stage4-gas: configure-stage4-gas
f41d6665 11176configure-stage4-gas:
cc11cc9b 11177 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
f41d6665 11178 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
cc11cc9b
PB
11179 @r=`${PWD_COMMAND}`; export r; \
11180 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 11181 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
ce406537
PB
11182 $(HOST_EXPORTS) \
11183 $(POSTSTAGE1_HOST_EXPORTS) \
11184 echo Configuring stage 4 in $(HOST_SUBDIR)/gas ; \
f41d6665 11185 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
ce406537
PB
11186 cd $(HOST_SUBDIR)/gas || exit 1; \
11187 case $(srcdir) in \
11188 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11189 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
11190 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11191 esac; \
11192 srcdiroption="--srcdir=$${topdir}/gas"; \
11193 libsrcdir="$$s/gas"; \
11194 $(SHELL) $${libsrcdir}/configure \
11195 $(HOST_CONFIGARGS) $${srcdiroption} \
11196 @stage2_werror_flag@
11197@endif gas-bootstrap
11198
11199.PHONY: configure-stageprofile-gas maybe-configure-stageprofile-gas
11200maybe-configure-stageprofile-gas:
11201@if gas-bootstrap
11202maybe-configure-stageprofile-gas: configure-stageprofile-gas
f41d6665 11203configure-stageprofile-gas:
cc11cc9b 11204 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
f41d6665 11205 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
cc11cc9b
PB
11206 @r=`${PWD_COMMAND}`; export r; \
11207 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 11208 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
ce406537
PB
11209 $(HOST_EXPORTS) \
11210 $(POSTSTAGE1_HOST_EXPORTS) \
11211 echo Configuring stage profile in $(HOST_SUBDIR)/gas ; \
f41d6665 11212 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
ce406537
PB
11213 cd $(HOST_SUBDIR)/gas || exit 1; \
11214 case $(srcdir) in \
11215 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11216 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
11217 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11218 esac; \
11219 srcdiroption="--srcdir=$${topdir}/gas"; \
11220 libsrcdir="$$s/gas"; \
11221 $(SHELL) $${libsrcdir}/configure \
11222 $(HOST_CONFIGARGS) $${srcdiroption} \
11223 @stage2_werror_flag@
11224@endif gas-bootstrap
11225
11226.PHONY: configure-stagefeedback-gas maybe-configure-stagefeedback-gas
11227maybe-configure-stagefeedback-gas:
11228@if gas-bootstrap
11229maybe-configure-stagefeedback-gas: configure-stagefeedback-gas
f41d6665 11230configure-stagefeedback-gas:
cc11cc9b 11231 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
f41d6665 11232 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
cc11cc9b
PB
11233 @r=`${PWD_COMMAND}`; export r; \
11234 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 11235 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
ce406537
PB
11236 $(HOST_EXPORTS) \
11237 $(POSTSTAGE1_HOST_EXPORTS) \
11238 echo Configuring stage feedback in $(HOST_SUBDIR)/gas ; \
f41d6665 11239 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
ce406537
PB
11240 cd $(HOST_SUBDIR)/gas || exit 1; \
11241 case $(srcdir) in \
11242 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11243 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
11244 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11245 esac; \
11246 srcdiroption="--srcdir=$${topdir}/gas"; \
11247 libsrcdir="$$s/gas"; \
11248 $(SHELL) $${libsrcdir}/configure \
11249 $(HOST_CONFIGARGS) $${srcdiroption} \
11250 @stage2_werror_flag@
11251@endif gas-bootstrap
11252
11253
11254
11255
11256
295f4e42
NN
11257.PHONY: all-gas maybe-all-gas
11258maybe-all-gas:
3ff3adad
PB
11259@if gcc-bootstrap
11260all-gas: stage_current
11261@endif gcc-bootstrap
60975492 11262@if gas
7e0b5752 11263TARGET-gas=all
60975492 11264maybe-all-gas: all-gas
295f4e42 11265all-gas: configure-gas
cc11cc9b 11266 @r=`${PWD_COMMAND}`; export r; \
295f4e42 11267 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 11268 $(HOST_EXPORTS) \
215c351a
PB
11269 (cd $(HOST_SUBDIR)/gas && \
11270 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-gas))
60975492 11271@endif gas
1358ccea 11272
25b42232 11273
ce406537
PB
11274
11275.PHONY: all-stage1-gas maybe-all-stage1-gas
11276.PHONY: clean-stage1-gas maybe-clean-stage1-gas
11277maybe-all-stage1-gas:
11278maybe-clean-stage1-gas:
11279@if gas-bootstrap
11280maybe-all-stage1-gas: all-stage1-gas
11281all-stage1: all-stage1-gas
1061f99e 11282TARGET-stage1-gas = $(TARGET-gas)
ce406537 11283all-stage1-gas: configure-stage1-gas
cc11cc9b 11284 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
ce406537
PB
11285 @r=`${PWD_COMMAND}`; export r; \
11286 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11287 $(HOST_EXPORTS) \
11288 cd $(HOST_SUBDIR)/gas && \
cc11cc9b 11289 $(MAKE) $(FLAGS_TO_PASS) CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" \
1061f99e 11290 $(TARGET-stage1-gas)
ce406537
PB
11291
11292maybe-clean-stage1-gas: clean-stage1-gas
11293clean-stage1: clean-stage1-gas
11294clean-stage1-gas:
11295 @[ -f $(HOST_SUBDIR)/gas/Makefile ] || [ -f $(HOST_SUBDIR)/stage1-gas/Makefile ] \
11296 || exit 0 ; \
cc11cc9b 11297 [ $(current_stage) = stage1 ] || $(MAKE) stage1-start; \
ce406537
PB
11298 cd $(HOST_SUBDIR)/gas && \
11299 $(MAKE) $(FLAGS_TO_PASS) \
cc11cc9b 11300 CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" clean
ce406537
PB
11301@endif gas-bootstrap
11302
11303
11304.PHONY: all-stage2-gas maybe-all-stage2-gas
11305.PHONY: clean-stage2-gas maybe-clean-stage2-gas
11306maybe-all-stage2-gas:
11307maybe-clean-stage2-gas:
11308@if gas-bootstrap
11309maybe-all-stage2-gas: all-stage2-gas
11310all-stage2: all-stage2-gas
1061f99e 11311TARGET-stage2-gas = $(TARGET-gas)
ce406537 11312all-stage2-gas: configure-stage2-gas
cc11cc9b 11313 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
ce406537
PB
11314 @r=`${PWD_COMMAND}`; export r; \
11315 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11316 $(HOST_EXPORTS) \
11317 $(POSTSTAGE1_HOST_EXPORTS) \
11318 cd $(HOST_SUBDIR)/gas && \
1061f99e
PB
11319 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
11320 $(TARGET-stage2-gas)
ce406537
PB
11321
11322maybe-clean-stage2-gas: clean-stage2-gas
11323clean-stage2: clean-stage2-gas
11324clean-stage2-gas:
11325 @[ -f $(HOST_SUBDIR)/gas/Makefile ] || [ -f $(HOST_SUBDIR)/stage2-gas/Makefile ] \
11326 || exit 0 ; \
cc11cc9b 11327 [ $(current_stage) = stage2 ] || $(MAKE) stage2-start; \
ce406537
PB
11328 cd $(HOST_SUBDIR)/gas && \
11329 $(MAKE) $(FLAGS_TO_PASS) \
11330 $(POSTSTAGE1_FLAGS_TO_PASS) \
11331 clean
11332@endif gas-bootstrap
11333
11334
11335.PHONY: all-stage3-gas maybe-all-stage3-gas
11336.PHONY: clean-stage3-gas maybe-clean-stage3-gas
11337maybe-all-stage3-gas:
11338maybe-clean-stage3-gas:
11339@if gas-bootstrap
11340maybe-all-stage3-gas: all-stage3-gas
11341all-stage3: all-stage3-gas
1061f99e 11342TARGET-stage3-gas = $(TARGET-gas)
ce406537 11343all-stage3-gas: configure-stage3-gas
cc11cc9b 11344 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
ce406537
PB
11345 @r=`${PWD_COMMAND}`; export r; \
11346 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11347 $(HOST_EXPORTS) \
11348 $(POSTSTAGE1_HOST_EXPORTS) \
11349 cd $(HOST_SUBDIR)/gas && \
1061f99e
PB
11350 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
11351 $(TARGET-stage3-gas)
ce406537
PB
11352
11353maybe-clean-stage3-gas: clean-stage3-gas
11354clean-stage3: clean-stage3-gas
11355clean-stage3-gas:
11356 @[ -f $(HOST_SUBDIR)/gas/Makefile ] || [ -f $(HOST_SUBDIR)/stage3-gas/Makefile ] \
11357 || exit 0 ; \
cc11cc9b 11358 [ $(current_stage) = stage3 ] || $(MAKE) stage3-start; \
ce406537
PB
11359 cd $(HOST_SUBDIR)/gas && \
11360 $(MAKE) $(FLAGS_TO_PASS) \
11361 $(POSTSTAGE1_FLAGS_TO_PASS) \
11362 clean
11363@endif gas-bootstrap
11364
11365
11366.PHONY: all-stage4-gas maybe-all-stage4-gas
11367.PHONY: clean-stage4-gas maybe-clean-stage4-gas
11368maybe-all-stage4-gas:
11369maybe-clean-stage4-gas:
11370@if gas-bootstrap
11371maybe-all-stage4-gas: all-stage4-gas
11372all-stage4: all-stage4-gas
1061f99e 11373TARGET-stage4-gas = $(TARGET-gas)
ce406537 11374all-stage4-gas: configure-stage4-gas
cc11cc9b 11375 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
ce406537
PB
11376 @r=`${PWD_COMMAND}`; export r; \
11377 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11378 $(HOST_EXPORTS) \
11379 $(POSTSTAGE1_HOST_EXPORTS) \
11380 cd $(HOST_SUBDIR)/gas && \
1061f99e
PB
11381 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
11382 $(TARGET-stage4-gas)
ce406537
PB
11383
11384maybe-clean-stage4-gas: clean-stage4-gas
11385clean-stage4: clean-stage4-gas
11386clean-stage4-gas:
11387 @[ -f $(HOST_SUBDIR)/gas/Makefile ] || [ -f $(HOST_SUBDIR)/stage4-gas/Makefile ] \
11388 || exit 0 ; \
cc11cc9b 11389 [ $(current_stage) = stage4 ] || $(MAKE) stage4-start; \
ce406537
PB
11390 cd $(HOST_SUBDIR)/gas && \
11391 $(MAKE) $(FLAGS_TO_PASS) \
11392 $(POSTSTAGE1_FLAGS_TO_PASS) \
11393 clean
11394@endif gas-bootstrap
11395
11396
11397.PHONY: all-stageprofile-gas maybe-all-stageprofile-gas
11398.PHONY: clean-stageprofile-gas maybe-clean-stageprofile-gas
11399maybe-all-stageprofile-gas:
11400maybe-clean-stageprofile-gas:
11401@if gas-bootstrap
11402maybe-all-stageprofile-gas: all-stageprofile-gas
11403all-stageprofile: all-stageprofile-gas
1061f99e 11404TARGET-stageprofile-gas = $(TARGET-gas)
ce406537 11405all-stageprofile-gas: configure-stageprofile-gas
cc11cc9b 11406 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
ce406537
PB
11407 @r=`${PWD_COMMAND}`; export r; \
11408 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11409 $(HOST_EXPORTS) \
11410 $(POSTSTAGE1_HOST_EXPORTS) \
11411 cd $(HOST_SUBDIR)/gas && \
1061f99e
PB
11412 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" \
11413 $(TARGET-stageprofile-gas)
ce406537
PB
11414
11415maybe-clean-stageprofile-gas: clean-stageprofile-gas
11416clean-stageprofile: clean-stageprofile-gas
11417clean-stageprofile-gas:
11418 @[ -f $(HOST_SUBDIR)/gas/Makefile ] || [ -f $(HOST_SUBDIR)/stageprofile-gas/Makefile ] \
11419 || exit 0 ; \
cc11cc9b 11420 [ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start; \
ce406537
PB
11421 cd $(HOST_SUBDIR)/gas && \
11422 $(MAKE) $(FLAGS_TO_PASS) \
11423 $(POSTSTAGE1_FLAGS_TO_PASS) \
11424 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean
11425@endif gas-bootstrap
11426
11427
11428.PHONY: all-stagefeedback-gas maybe-all-stagefeedback-gas
11429.PHONY: clean-stagefeedback-gas maybe-clean-stagefeedback-gas
11430maybe-all-stagefeedback-gas:
11431maybe-clean-stagefeedback-gas:
11432@if gas-bootstrap
11433maybe-all-stagefeedback-gas: all-stagefeedback-gas
11434all-stagefeedback: all-stagefeedback-gas
1061f99e 11435TARGET-stagefeedback-gas = $(TARGET-gas)
ce406537 11436all-stagefeedback-gas: configure-stagefeedback-gas
cc11cc9b 11437 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
ce406537
PB
11438 @r=`${PWD_COMMAND}`; export r; \
11439 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11440 $(HOST_EXPORTS) \
11441 $(POSTSTAGE1_HOST_EXPORTS) \
11442 cd $(HOST_SUBDIR)/gas && \
1061f99e
PB
11443 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-use" \
11444 $(TARGET-stagefeedback-gas)
ce406537
PB
11445
11446maybe-clean-stagefeedback-gas: clean-stagefeedback-gas
11447clean-stagefeedback: clean-stagefeedback-gas
11448clean-stagefeedback-gas:
11449 @[ -f $(HOST_SUBDIR)/gas/Makefile ] || [ -f $(HOST_SUBDIR)/stagefeedback-gas/Makefile ] \
11450 || exit 0 ; \
cc11cc9b 11451 [ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start; \
ce406537
PB
11452 cd $(HOST_SUBDIR)/gas && \
11453 $(MAKE) $(FLAGS_TO_PASS) \
11454 $(POSTSTAGE1_FLAGS_TO_PASS) \
11455 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean
11456@endif gas-bootstrap
11457
11458
11459
11460
11461
295f4e42
NN
11462.PHONY: check-gas maybe-check-gas
11463maybe-check-gas:
60975492
PB
11464@if gas
11465maybe-check-gas: check-gas
1358ccea 11466
295f4e42 11467check-gas:
f41d6665 11468 @: $(MAKE); $(unstage)
295f4e42 11469 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 11470 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 11471 $(HOST_EXPORTS) \
215c351a
PB
11472 (cd $(HOST_SUBDIR)/gas && \
11473 $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 11474
60975492 11475@endif gas
1358ccea 11476
295f4e42
NN
11477.PHONY: install-gas maybe-install-gas
11478maybe-install-gas:
60975492
PB
11479@if gas
11480maybe-install-gas: install-gas
1358ccea 11481
295f4e42 11482install-gas: installdirs
f41d6665 11483 @: $(MAKE); $(unstage)
295f4e42 11484 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 11485 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 11486 $(HOST_EXPORTS) \
215c351a 11487 (cd $(HOST_SUBDIR)/gas && \
ace9ac7b 11488 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 11489
60975492 11490@endif gas
1358ccea 11491
295f4e42 11492# Other targets (info, dvi, etc.)
1358ccea 11493
295f4e42
NN
11494.PHONY: maybe-info-gas info-gas
11495maybe-info-gas:
60975492
PB
11496@if gas
11497maybe-info-gas: info-gas
295f4e42
NN
11498
11499info-gas: \
05750653 11500 configure-gas
295f4e42 11501 @[ -f ./gas/Makefile ] || exit 0; \
8c90b13a
L
11502 r=`${PWD_COMMAND}`; export r; \
11503 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 11504 $(HOST_EXPORTS) \
d32ab992 11505 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11506 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11507 done; \
295f4e42 11508 echo "Doing info in gas" ; \
215c351a 11509 (cd $(HOST_SUBDIR)/gas && \
1358ccea
NN
11510 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11511 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11512 "RANLIB=$${RANLIB}" \
11513 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 11514 info) \
1358ccea
NN
11515 || exit 1
11516
60975492 11517@endif gas
1358ccea 11518
295f4e42
NN
11519.PHONY: maybe-dvi-gas dvi-gas
11520maybe-dvi-gas:
60975492
PB
11521@if gas
11522maybe-dvi-gas: dvi-gas
1358ccea 11523
295f4e42 11524dvi-gas: \
05750653 11525 configure-gas
295f4e42 11526 @[ -f ./gas/Makefile ] || exit 0; \
8c90b13a
L
11527 r=`${PWD_COMMAND}`; export r; \
11528 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 11529 $(HOST_EXPORTS) \
d32ab992 11530 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11531 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11532 done; \
295f4e42 11533 echo "Doing dvi in gas" ; \
215c351a 11534 (cd $(HOST_SUBDIR)/gas && \
1358ccea
NN
11535 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11536 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11537 "RANLIB=$${RANLIB}" \
11538 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 11539 dvi) \
1358ccea
NN
11540 || exit 1
11541
60975492 11542@endif gas
1358ccea 11543
f87a2b2e
MS
11544.PHONY: maybe-html-gas html-gas
11545maybe-html-gas:
11546@if gas
11547maybe-html-gas: html-gas
11548
11549html-gas: \
05750653 11550 configure-gas
f87a2b2e
MS
11551 @[ -f ./gas/Makefile ] || exit 0; \
11552 r=`${PWD_COMMAND}`; export r; \
11553 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
11554 $(HOST_EXPORTS) \
11555 for flag in $(EXTRA_HOST_FLAGS) ; do \
11556 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11557 done; \
11558 echo "Doing html in gas" ; \
215c351a 11559 (cd $(HOST_SUBDIR)/gas && \
f87a2b2e
MS
11560 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11561 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11562 "RANLIB=$${RANLIB}" \
11563 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11564 html) \
11565 || exit 1
11566
11567@endif gas
11568
295f4e42
NN
11569.PHONY: maybe-TAGS-gas TAGS-gas
11570maybe-TAGS-gas:
60975492
PB
11571@if gas
11572maybe-TAGS-gas: TAGS-gas
1358ccea 11573
295f4e42 11574TAGS-gas: \
05750653 11575 configure-gas
295f4e42 11576 @[ -f ./gas/Makefile ] || exit 0; \
8c90b13a
L
11577 r=`${PWD_COMMAND}`; export r; \
11578 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 11579 $(HOST_EXPORTS) \
d32ab992 11580 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11581 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11582 done; \
295f4e42 11583 echo "Doing TAGS in gas" ; \
215c351a 11584 (cd $(HOST_SUBDIR)/gas && \
1358ccea
NN
11585 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11586 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11587 "RANLIB=$${RANLIB}" \
11588 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 11589 TAGS) \
1358ccea
NN
11590 || exit 1
11591
60975492 11592@endif gas
1358ccea 11593
295f4e42
NN
11594.PHONY: maybe-install-info-gas install-info-gas
11595maybe-install-info-gas:
60975492
PB
11596@if gas
11597maybe-install-info-gas: install-info-gas
1358ccea 11598
295f4e42
NN
11599install-info-gas: \
11600 configure-gas \
05750653 11601 info-gas
295f4e42 11602 @[ -f ./gas/Makefile ] || exit 0; \
8c90b13a
L
11603 r=`${PWD_COMMAND}`; export r; \
11604 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 11605 $(HOST_EXPORTS) \
d32ab992 11606 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11607 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11608 done; \
295f4e42 11609 echo "Doing install-info in gas" ; \
215c351a 11610 (cd $(HOST_SUBDIR)/gas && \
1358ccea
NN
11611 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11612 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11613 "RANLIB=$${RANLIB}" \
11614 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 11615 install-info) \
1358ccea
NN
11616 || exit 1
11617
60975492 11618@endif gas
1358ccea 11619
65d6e994
CD
11620.PHONY: maybe-install-html-gas install-html-gas
11621maybe-install-html-gas:
11622@if gas
11623maybe-install-html-gas: install-html-gas
11624
11625install-html-gas: \
11626 configure-gas \
11627 html-gas
11628 @[ -f ./gas/Makefile ] || exit 0; \
11629 r=`${PWD_COMMAND}`; export r; \
11630 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11631 $(HOST_EXPORTS) \
11632 for flag in $(EXTRA_HOST_FLAGS) ; do \
11633 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11634 done; \
11635 echo "Doing install-html in gas" ; \
11636 (cd $(HOST_SUBDIR)/gas && \
11637 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11638 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11639 "RANLIB=$${RANLIB}" \
11640 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11641 install-html) \
11642 || exit 1
11643
11644@endif gas
11645
295f4e42
NN
11646.PHONY: maybe-installcheck-gas installcheck-gas
11647maybe-installcheck-gas:
60975492
PB
11648@if gas
11649maybe-installcheck-gas: installcheck-gas
1358ccea 11650
295f4e42 11651installcheck-gas: \
05750653 11652 configure-gas
295f4e42 11653 @[ -f ./gas/Makefile ] || exit 0; \
8c90b13a
L
11654 r=`${PWD_COMMAND}`; export r; \
11655 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 11656 $(HOST_EXPORTS) \
d32ab992 11657 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11658 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11659 done; \
295f4e42 11660 echo "Doing installcheck in gas" ; \
215c351a 11661 (cd $(HOST_SUBDIR)/gas && \
1358ccea
NN
11662 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11663 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11664 "RANLIB=$${RANLIB}" \
11665 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 11666 installcheck) \
1358ccea
NN
11667 || exit 1
11668
60975492 11669@endif gas
1358ccea 11670
295f4e42
NN
11671.PHONY: maybe-mostlyclean-gas mostlyclean-gas
11672maybe-mostlyclean-gas:
60975492
PB
11673@if gas
11674maybe-mostlyclean-gas: mostlyclean-gas
1358ccea 11675
05750653 11676mostlyclean-gas:
295f4e42 11677 @[ -f ./gas/Makefile ] || exit 0; \
8c90b13a
L
11678 r=`${PWD_COMMAND}`; export r; \
11679 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 11680 $(HOST_EXPORTS) \
d32ab992 11681 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11682 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11683 done; \
295f4e42 11684 echo "Doing mostlyclean in gas" ; \
215c351a 11685 (cd $(HOST_SUBDIR)/gas && \
1358ccea
NN
11686 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11687 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11688 "RANLIB=$${RANLIB}" \
11689 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 11690 mostlyclean) \
1358ccea
NN
11691 || exit 1
11692
60975492 11693@endif gas
1358ccea 11694
295f4e42
NN
11695.PHONY: maybe-clean-gas clean-gas
11696maybe-clean-gas:
60975492
PB
11697@if gas
11698maybe-clean-gas: clean-gas
1358ccea 11699
05750653 11700clean-gas:
295f4e42 11701 @[ -f ./gas/Makefile ] || exit 0; \
8c90b13a
L
11702 r=`${PWD_COMMAND}`; export r; \
11703 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 11704 $(HOST_EXPORTS) \
d32ab992 11705 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11706 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11707 done; \
295f4e42 11708 echo "Doing clean in gas" ; \
215c351a 11709 (cd $(HOST_SUBDIR)/gas && \
1358ccea
NN
11710 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11711 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11712 "RANLIB=$${RANLIB}" \
11713 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 11714 clean) \
1358ccea
NN
11715 || exit 1
11716
60975492 11717@endif gas
1358ccea 11718
295f4e42
NN
11719.PHONY: maybe-distclean-gas distclean-gas
11720maybe-distclean-gas:
60975492
PB
11721@if gas
11722maybe-distclean-gas: distclean-gas
1358ccea 11723
05750653 11724distclean-gas:
295f4e42 11725 @[ -f ./gas/Makefile ] || exit 0; \
8c90b13a
L
11726 r=`${PWD_COMMAND}`; export r; \
11727 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 11728 $(HOST_EXPORTS) \
d32ab992 11729 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11730 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11731 done; \
295f4e42 11732 echo "Doing distclean in gas" ; \
215c351a 11733 (cd $(HOST_SUBDIR)/gas && \
1358ccea
NN
11734 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11735 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11736 "RANLIB=$${RANLIB}" \
11737 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 11738 distclean) \
1358ccea
NN
11739 || exit 1
11740
60975492 11741@endif gas
1358ccea 11742
295f4e42
NN
11743.PHONY: maybe-maintainer-clean-gas maintainer-clean-gas
11744maybe-maintainer-clean-gas:
60975492
PB
11745@if gas
11746maybe-maintainer-clean-gas: maintainer-clean-gas
1358ccea 11747
05750653 11748maintainer-clean-gas:
295f4e42 11749 @[ -f ./gas/Makefile ] || exit 0; \
8c90b13a
L
11750 r=`${PWD_COMMAND}`; export r; \
11751 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 11752 $(HOST_EXPORTS) \
d32ab992 11753 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11754 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11755 done; \
295f4e42 11756 echo "Doing maintainer-clean in gas" ; \
215c351a 11757 (cd $(HOST_SUBDIR)/gas && \
1358ccea
NN
11758 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11759 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11760 "RANLIB=$${RANLIB}" \
11761 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 11762 maintainer-clean) \
1358ccea
NN
11763 || exit 1
11764
60975492 11765@endif gas
1358ccea 11766
1358ccea 11767
25b42232 11768
d32ab992
PB
11769.PHONY: configure-gcc maybe-configure-gcc
11770maybe-configure-gcc:
cc11cc9b 11771@if gcc-bootstrap
3ff3adad 11772configure-gcc: stage_current
cc11cc9b
PB
11773@endif gcc-bootstrap
11774@if gcc
3ff3adad
PB
11775maybe-configure-gcc: configure-gcc
11776configure-gcc:
cc11cc9b
PB
11777 @r=`${PWD_COMMAND}`; export r; \
11778 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
215c351a
PB
11779 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
11780 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \
4fc4dd12 11781 $(HOST_EXPORTS) \
25b42232
PB
11782 echo Configuring in $(HOST_SUBDIR)/gcc; \
11783 cd "$(HOST_SUBDIR)/gcc" || exit 1; \
295f4e42 11784 case $(srcdir) in \
215c351a
PB
11785 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11786 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
11787 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 11788 esac; \
215c351a
PB
11789 srcdiroption="--srcdir=$${topdir}/gcc"; \
11790 libsrcdir="$$s/gcc"; \
295f4e42 11791 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 11792 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 11793 || exit 1
d32ab992 11794@endif gcc
1358ccea 11795
25b42232
PB
11796
11797
ce406537
PB
11798.PHONY: configure-stage1-gcc maybe-configure-stage1-gcc
11799maybe-configure-stage1-gcc:
11800@if gcc-bootstrap
11801maybe-configure-stage1-gcc: configure-stage1-gcc
f41d6665 11802configure-stage1-gcc:
cc11cc9b 11803 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
f41d6665 11804 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
cc11cc9b
PB
11805 @r=`${PWD_COMMAND}`; export r; \
11806 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 11807 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
ce406537
PB
11808 $(HOST_EXPORTS) \
11809 echo Configuring stage 1 in $(HOST_SUBDIR)/gcc ; \
f41d6665 11810 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \
ce406537
PB
11811 cd $(HOST_SUBDIR)/gcc || exit 1; \
11812 case $(srcdir) in \
11813 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11814 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
11815 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11816 esac; \
11817 srcdiroption="--srcdir=$${topdir}/gcc"; \
11818 libsrcdir="$$s/gcc"; \
11819 $(SHELL) $${libsrcdir}/configure \
11820 $(HOST_CONFIGARGS) $${srcdiroption} \
11821 --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
11822@endif gcc-bootstrap
11823
11824.PHONY: configure-stage2-gcc maybe-configure-stage2-gcc
11825maybe-configure-stage2-gcc:
11826@if gcc-bootstrap
11827maybe-configure-stage2-gcc: configure-stage2-gcc
f41d6665 11828configure-stage2-gcc:
cc11cc9b 11829 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
f41d6665 11830 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
cc11cc9b
PB
11831 @r=`${PWD_COMMAND}`; export r; \
11832 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 11833 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
ce406537
PB
11834 $(HOST_EXPORTS) \
11835 $(POSTSTAGE1_HOST_EXPORTS) \
11836 echo Configuring stage 2 in $(HOST_SUBDIR)/gcc ; \
f41d6665 11837 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \
ce406537
PB
11838 cd $(HOST_SUBDIR)/gcc || exit 1; \
11839 case $(srcdir) in \
11840 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11841 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
11842 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11843 esac; \
11844 srcdiroption="--srcdir=$${topdir}/gcc"; \
11845 libsrcdir="$$s/gcc"; \
11846 $(SHELL) $${libsrcdir}/configure \
11847 $(HOST_CONFIGARGS) $${srcdiroption} \
11848 @stage2_werror_flag@
11849@endif gcc-bootstrap
11850
11851.PHONY: configure-stage3-gcc maybe-configure-stage3-gcc
11852maybe-configure-stage3-gcc:
11853@if gcc-bootstrap
11854maybe-configure-stage3-gcc: configure-stage3-gcc
f41d6665 11855configure-stage3-gcc:
cc11cc9b 11856 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
f41d6665 11857 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
cc11cc9b
PB
11858 @r=`${PWD_COMMAND}`; export r; \
11859 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 11860 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
ce406537
PB
11861 $(HOST_EXPORTS) \
11862 $(POSTSTAGE1_HOST_EXPORTS) \
11863 echo Configuring stage 3 in $(HOST_SUBDIR)/gcc ; \
f41d6665 11864 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \
ce406537
PB
11865 cd $(HOST_SUBDIR)/gcc || exit 1; \
11866 case $(srcdir) in \
11867 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11868 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
11869 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11870 esac; \
11871 srcdiroption="--srcdir=$${topdir}/gcc"; \
11872 libsrcdir="$$s/gcc"; \
11873 $(SHELL) $${libsrcdir}/configure \
11874 $(HOST_CONFIGARGS) $${srcdiroption} \
11875 @stage2_werror_flag@
11876@endif gcc-bootstrap
11877
11878.PHONY: configure-stage4-gcc maybe-configure-stage4-gcc
11879maybe-configure-stage4-gcc:
11880@if gcc-bootstrap
11881maybe-configure-stage4-gcc: configure-stage4-gcc
f41d6665 11882configure-stage4-gcc:
cc11cc9b 11883 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
f41d6665 11884 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
cc11cc9b
PB
11885 @r=`${PWD_COMMAND}`; export r; \
11886 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 11887 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
ce406537
PB
11888 $(HOST_EXPORTS) \
11889 $(POSTSTAGE1_HOST_EXPORTS) \
11890 echo Configuring stage 4 in $(HOST_SUBDIR)/gcc ; \
f41d6665 11891 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \
ce406537
PB
11892 cd $(HOST_SUBDIR)/gcc || exit 1; \
11893 case $(srcdir) in \
11894 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11895 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
11896 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11897 esac; \
11898 srcdiroption="--srcdir=$${topdir}/gcc"; \
11899 libsrcdir="$$s/gcc"; \
11900 $(SHELL) $${libsrcdir}/configure \
11901 $(HOST_CONFIGARGS) $${srcdiroption} \
11902 @stage2_werror_flag@
11903@endif gcc-bootstrap
11904
11905.PHONY: configure-stageprofile-gcc maybe-configure-stageprofile-gcc
11906maybe-configure-stageprofile-gcc:
11907@if gcc-bootstrap
11908maybe-configure-stageprofile-gcc: configure-stageprofile-gcc
f41d6665 11909configure-stageprofile-gcc:
cc11cc9b 11910 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
f41d6665 11911 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
cc11cc9b
PB
11912 @r=`${PWD_COMMAND}`; export r; \
11913 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 11914 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
ce406537
PB
11915 $(HOST_EXPORTS) \
11916 $(POSTSTAGE1_HOST_EXPORTS) \
11917 echo Configuring stage profile in $(HOST_SUBDIR)/gcc ; \
f41d6665 11918 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \
ce406537
PB
11919 cd $(HOST_SUBDIR)/gcc || exit 1; \
11920 case $(srcdir) in \
11921 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11922 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
11923 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11924 esac; \
11925 srcdiroption="--srcdir=$${topdir}/gcc"; \
11926 libsrcdir="$$s/gcc"; \
11927 $(SHELL) $${libsrcdir}/configure \
11928 $(HOST_CONFIGARGS) $${srcdiroption} \
11929 @stage2_werror_flag@
11930@endif gcc-bootstrap
11931
11932.PHONY: configure-stagefeedback-gcc maybe-configure-stagefeedback-gcc
11933maybe-configure-stagefeedback-gcc:
11934@if gcc-bootstrap
11935maybe-configure-stagefeedback-gcc: configure-stagefeedback-gcc
f41d6665 11936configure-stagefeedback-gcc:
cc11cc9b 11937 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
f41d6665 11938 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
cc11cc9b
PB
11939 @r=`${PWD_COMMAND}`; export r; \
11940 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 11941 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
ce406537
PB
11942 $(HOST_EXPORTS) \
11943 $(POSTSTAGE1_HOST_EXPORTS) \
11944 echo Configuring stage feedback in $(HOST_SUBDIR)/gcc ; \
f41d6665 11945 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \
ce406537
PB
11946 cd $(HOST_SUBDIR)/gcc || exit 1; \
11947 case $(srcdir) in \
11948 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11949 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
11950 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11951 esac; \
11952 srcdiroption="--srcdir=$${topdir}/gcc"; \
11953 libsrcdir="$$s/gcc"; \
11954 $(SHELL) $${libsrcdir}/configure \
11955 $(HOST_CONFIGARGS) $${srcdiroption} \
11956 @stage2_werror_flag@
11957@endif gcc-bootstrap
11958
11959
11960
11961
11962
d32ab992
PB
11963.PHONY: all-gcc maybe-all-gcc
11964maybe-all-gcc:
3ff3adad
PB
11965@if gcc-bootstrap
11966all-gcc: stage_current
11967@endif gcc-bootstrap
d32ab992 11968@if gcc
b88a7564 11969TARGET-gcc=`if [ -f stage_last ]; then echo quickstrap ; else echo all; fi`
d32ab992
PB
11970maybe-all-gcc: all-gcc
11971all-gcc: configure-gcc
cc11cc9b 11972 @r=`${PWD_COMMAND}`; export r; \
295f4e42 11973 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 11974 $(HOST_EXPORTS) \
215c351a
PB
11975 (cd $(HOST_SUBDIR)/gcc && \
11976 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) $(TARGET-gcc))
d32ab992 11977@endif gcc
1358ccea 11978
25b42232 11979
ce406537
PB
11980
11981.PHONY: all-stage1-gcc maybe-all-stage1-gcc
11982.PHONY: clean-stage1-gcc maybe-clean-stage1-gcc
11983maybe-all-stage1-gcc:
11984maybe-clean-stage1-gcc:
11985@if gcc-bootstrap
11986maybe-all-stage1-gcc: all-stage1-gcc
11987all-stage1: all-stage1-gcc
1061f99e 11988TARGET-stage1-gcc = $(TARGET-gcc)
ce406537 11989all-stage1-gcc: configure-stage1-gcc
cc11cc9b 11990 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
ce406537
PB
11991 @r=`${PWD_COMMAND}`; export r; \
11992 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11993 $(HOST_EXPORTS) \
11994 cd $(HOST_SUBDIR)/gcc && \
cc11cc9b 11995 $(MAKE) $(FLAGS_TO_PASS) CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" $(EXTRA_GCC_FLAGS) \
1061f99e 11996 $(TARGET-stage1-gcc)
ce406537
PB
11997
11998maybe-clean-stage1-gcc: clean-stage1-gcc
11999clean-stage1: clean-stage1-gcc
12000clean-stage1-gcc:
12001 @[ -f $(HOST_SUBDIR)/gcc/Makefile ] || [ -f $(HOST_SUBDIR)/stage1-gcc/Makefile ] \
12002 || exit 0 ; \
cc11cc9b 12003 [ $(current_stage) = stage1 ] || $(MAKE) stage1-start; \
ce406537
PB
12004 cd $(HOST_SUBDIR)/gcc && \
12005 $(MAKE) $(FLAGS_TO_PASS) \
cc11cc9b 12006 CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" $(EXTRA_GCC_FLAGS) clean
ce406537
PB
12007@endif gcc-bootstrap
12008
12009
12010.PHONY: all-stage2-gcc maybe-all-stage2-gcc
12011.PHONY: clean-stage2-gcc maybe-clean-stage2-gcc
12012maybe-all-stage2-gcc:
12013maybe-clean-stage2-gcc:
12014@if gcc-bootstrap
12015maybe-all-stage2-gcc: all-stage2-gcc
12016all-stage2: all-stage2-gcc
1061f99e 12017TARGET-stage2-gcc = $(TARGET-gcc)
ce406537 12018all-stage2-gcc: configure-stage2-gcc
cc11cc9b 12019 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
ce406537
PB
12020 @r=`${PWD_COMMAND}`; export r; \
12021 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12022 $(HOST_EXPORTS) \
12023 $(POSTSTAGE1_HOST_EXPORTS) \
12024 cd $(HOST_SUBDIR)/gcc && \
1061f99e
PB
12025 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
12026 $(TARGET-stage2-gcc)
ce406537
PB
12027
12028maybe-clean-stage2-gcc: clean-stage2-gcc
12029clean-stage2: clean-stage2-gcc
12030clean-stage2-gcc:
12031 @[ -f $(HOST_SUBDIR)/gcc/Makefile ] || [ -f $(HOST_SUBDIR)/stage2-gcc/Makefile ] \
12032 || exit 0 ; \
cc11cc9b 12033 [ $(current_stage) = stage2 ] || $(MAKE) stage2-start; \
ce406537
PB
12034 cd $(HOST_SUBDIR)/gcc && \
12035 $(MAKE) $(FLAGS_TO_PASS) \
12036 $(POSTSTAGE1_FLAGS_TO_PASS) \
12037 $(EXTRA_GCC_FLAGS) clean
12038@endif gcc-bootstrap
12039
12040
12041.PHONY: all-stage3-gcc maybe-all-stage3-gcc
12042.PHONY: clean-stage3-gcc maybe-clean-stage3-gcc
12043maybe-all-stage3-gcc:
12044maybe-clean-stage3-gcc:
12045@if gcc-bootstrap
12046maybe-all-stage3-gcc: all-stage3-gcc
12047all-stage3: all-stage3-gcc
1061f99e 12048TARGET-stage3-gcc = $(TARGET-gcc)
ce406537 12049all-stage3-gcc: configure-stage3-gcc
cc11cc9b 12050 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
ce406537
PB
12051 @r=`${PWD_COMMAND}`; export r; \
12052 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12053 $(HOST_EXPORTS) \
12054 $(POSTSTAGE1_HOST_EXPORTS) \
12055 cd $(HOST_SUBDIR)/gcc && \
1061f99e
PB
12056 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
12057 $(TARGET-stage3-gcc)
ce406537
PB
12058
12059maybe-clean-stage3-gcc: clean-stage3-gcc
12060clean-stage3: clean-stage3-gcc
12061clean-stage3-gcc:
12062 @[ -f $(HOST_SUBDIR)/gcc/Makefile ] || [ -f $(HOST_SUBDIR)/stage3-gcc/Makefile ] \
12063 || exit 0 ; \
cc11cc9b 12064 [ $(current_stage) = stage3 ] || $(MAKE) stage3-start; \
ce406537
PB
12065 cd $(HOST_SUBDIR)/gcc && \
12066 $(MAKE) $(FLAGS_TO_PASS) \
12067 $(POSTSTAGE1_FLAGS_TO_PASS) \
12068 $(EXTRA_GCC_FLAGS) clean
12069@endif gcc-bootstrap
12070
12071
12072.PHONY: all-stage4-gcc maybe-all-stage4-gcc
12073.PHONY: clean-stage4-gcc maybe-clean-stage4-gcc
12074maybe-all-stage4-gcc:
12075maybe-clean-stage4-gcc:
12076@if gcc-bootstrap
12077maybe-all-stage4-gcc: all-stage4-gcc
12078all-stage4: all-stage4-gcc
1061f99e 12079TARGET-stage4-gcc = $(TARGET-gcc)
ce406537 12080all-stage4-gcc: configure-stage4-gcc
cc11cc9b 12081 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
ce406537
PB
12082 @r=`${PWD_COMMAND}`; export r; \
12083 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12084 $(HOST_EXPORTS) \
12085 $(POSTSTAGE1_HOST_EXPORTS) \
12086 cd $(HOST_SUBDIR)/gcc && \
1061f99e
PB
12087 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
12088 $(TARGET-stage4-gcc)
ce406537
PB
12089
12090maybe-clean-stage4-gcc: clean-stage4-gcc
12091clean-stage4: clean-stage4-gcc
12092clean-stage4-gcc:
12093 @[ -f $(HOST_SUBDIR)/gcc/Makefile ] || [ -f $(HOST_SUBDIR)/stage4-gcc/Makefile ] \
12094 || exit 0 ; \
cc11cc9b 12095 [ $(current_stage) = stage4 ] || $(MAKE) stage4-start; \
ce406537
PB
12096 cd $(HOST_SUBDIR)/gcc && \
12097 $(MAKE) $(FLAGS_TO_PASS) \
12098 $(POSTSTAGE1_FLAGS_TO_PASS) \
12099 $(EXTRA_GCC_FLAGS) clean
12100@endif gcc-bootstrap
12101
12102
12103.PHONY: all-stageprofile-gcc maybe-all-stageprofile-gcc
12104.PHONY: clean-stageprofile-gcc maybe-clean-stageprofile-gcc
12105maybe-all-stageprofile-gcc:
12106maybe-clean-stageprofile-gcc:
12107@if gcc-bootstrap
12108maybe-all-stageprofile-gcc: all-stageprofile-gcc
12109all-stageprofile: all-stageprofile-gcc
1061f99e 12110TARGET-stageprofile-gcc = $(TARGET-gcc)
ce406537 12111all-stageprofile-gcc: configure-stageprofile-gcc
cc11cc9b 12112 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
ce406537
PB
12113 @r=`${PWD_COMMAND}`; export r; \
12114 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12115 $(HOST_EXPORTS) \
12116 $(POSTSTAGE1_HOST_EXPORTS) \
12117 cd $(HOST_SUBDIR)/gcc && \
1061f99e
PB
12118 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" $(EXTRA_GCC_FLAGS) \
12119 $(TARGET-stageprofile-gcc)
ce406537
PB
12120
12121maybe-clean-stageprofile-gcc: clean-stageprofile-gcc
12122clean-stageprofile: clean-stageprofile-gcc
12123clean-stageprofile-gcc:
12124 @[ -f $(HOST_SUBDIR)/gcc/Makefile ] || [ -f $(HOST_SUBDIR)/stageprofile-gcc/Makefile ] \
12125 || exit 0 ; \
cc11cc9b 12126 [ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start; \
ce406537
PB
12127 cd $(HOST_SUBDIR)/gcc && \
12128 $(MAKE) $(FLAGS_TO_PASS) \
12129 $(POSTSTAGE1_FLAGS_TO_PASS) \
12130 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" $(EXTRA_GCC_FLAGS) clean
12131@endif gcc-bootstrap
12132
12133
12134.PHONY: all-stagefeedback-gcc maybe-all-stagefeedback-gcc
12135.PHONY: clean-stagefeedback-gcc maybe-clean-stagefeedback-gcc
12136maybe-all-stagefeedback-gcc:
12137maybe-clean-stagefeedback-gcc:
12138@if gcc-bootstrap
12139maybe-all-stagefeedback-gcc: all-stagefeedback-gcc
12140all-stagefeedback: all-stagefeedback-gcc
1061f99e 12141TARGET-stagefeedback-gcc = $(TARGET-gcc)
ce406537 12142all-stagefeedback-gcc: configure-stagefeedback-gcc
cc11cc9b 12143 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
ce406537
PB
12144 @r=`${PWD_COMMAND}`; export r; \
12145 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12146 $(HOST_EXPORTS) \
12147 $(POSTSTAGE1_HOST_EXPORTS) \
12148 cd $(HOST_SUBDIR)/gcc && \
1061f99e
PB
12149 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-use" $(EXTRA_GCC_FLAGS) \
12150 $(TARGET-stagefeedback-gcc)
ce406537
PB
12151
12152maybe-clean-stagefeedback-gcc: clean-stagefeedback-gcc
12153clean-stagefeedback: clean-stagefeedback-gcc
12154clean-stagefeedback-gcc:
12155 @[ -f $(HOST_SUBDIR)/gcc/Makefile ] || [ -f $(HOST_SUBDIR)/stagefeedback-gcc/Makefile ] \
12156 || exit 0 ; \
cc11cc9b 12157 [ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start; \
ce406537
PB
12158 cd $(HOST_SUBDIR)/gcc && \
12159 $(MAKE) $(FLAGS_TO_PASS) \
12160 $(POSTSTAGE1_FLAGS_TO_PASS) \
12161 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" $(EXTRA_GCC_FLAGS) clean
12162@endif gcc-bootstrap
12163
12164
12165
12166
12167
d32ab992
PB
12168.PHONY: check-gcc maybe-check-gcc
12169maybe-check-gcc:
12170@if gcc
12171maybe-check-gcc: check-gcc
1358ccea 12172
d32ab992 12173check-gcc:
f41d6665 12174 @: $(MAKE); $(unstage)
295f4e42 12175 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 12176 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12177 $(HOST_EXPORTS) \
215c351a
PB
12178 (cd $(HOST_SUBDIR)/gcc && \
12179 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) check)
1358ccea 12180
d32ab992 12181@endif gcc
1358ccea 12182
d32ab992
PB
12183.PHONY: install-gcc maybe-install-gcc
12184maybe-install-gcc:
12185@if gcc
12186maybe-install-gcc: install-gcc
1358ccea 12187
d32ab992 12188install-gcc: installdirs
f41d6665 12189 @: $(MAKE); $(unstage)
295f4e42 12190 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 12191 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12192 $(HOST_EXPORTS) \
215c351a 12193 (cd $(HOST_SUBDIR)/gcc && \
ace9ac7b 12194 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) install)
1358ccea 12195
d32ab992 12196@endif gcc
1358ccea 12197
295f4e42 12198# Other targets (info, dvi, etc.)
1358ccea 12199
d32ab992
PB
12200.PHONY: maybe-info-gcc info-gcc
12201maybe-info-gcc:
12202@if gcc
12203maybe-info-gcc: info-gcc
1358ccea 12204
d32ab992 12205info-gcc: \
05750653 12206 configure-gcc
d32ab992 12207 @[ -f ./gcc/Makefile ] || exit 0; \
8c90b13a
L
12208 r=`${PWD_COMMAND}`; export r; \
12209 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12210 $(HOST_EXPORTS) \
d32ab992 12211 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
1358ccea
NN
12212 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12213 done; \
d32ab992 12214 echo "Doing info in gcc" ; \
215c351a 12215 (cd $(HOST_SUBDIR)/gcc && \
1358ccea
NN
12216 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12217 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12218 "RANLIB=$${RANLIB}" \
12219 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12220 info) \
1358ccea
NN
12221 || exit 1
12222
d32ab992 12223@endif gcc
1358ccea 12224
d32ab992
PB
12225.PHONY: maybe-dvi-gcc dvi-gcc
12226maybe-dvi-gcc:
12227@if gcc
12228maybe-dvi-gcc: dvi-gcc
1358ccea 12229
d32ab992 12230dvi-gcc: \
05750653 12231 configure-gcc
d32ab992 12232 @[ -f ./gcc/Makefile ] || exit 0; \
8c90b13a
L
12233 r=`${PWD_COMMAND}`; export r; \
12234 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12235 $(HOST_EXPORTS) \
d32ab992 12236 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
1358ccea
NN
12237 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12238 done; \
d32ab992 12239 echo "Doing dvi in gcc" ; \
215c351a 12240 (cd $(HOST_SUBDIR)/gcc && \
1358ccea
NN
12241 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12242 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12243 "RANLIB=$${RANLIB}" \
12244 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12245 dvi) \
1358ccea
NN
12246 || exit 1
12247
d32ab992 12248@endif gcc
1358ccea 12249
f87a2b2e
MS
12250.PHONY: maybe-html-gcc html-gcc
12251maybe-html-gcc:
12252@if gcc
12253maybe-html-gcc: html-gcc
12254
12255html-gcc: \
05750653 12256 configure-gcc
f87a2b2e
MS
12257 @[ -f ./gcc/Makefile ] || exit 0; \
12258 r=`${PWD_COMMAND}`; export r; \
12259 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
12260 $(HOST_EXPORTS) \
12261 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
12262 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12263 done; \
12264 echo "Doing html in gcc" ; \
215c351a 12265 (cd $(HOST_SUBDIR)/gcc && \
f87a2b2e
MS
12266 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12267 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12268 "RANLIB=$${RANLIB}" \
12269 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12270 html) \
12271 || exit 1
12272
12273@endif gcc
12274
d32ab992
PB
12275.PHONY: maybe-TAGS-gcc TAGS-gcc
12276maybe-TAGS-gcc:
12277@if gcc
12278maybe-TAGS-gcc: TAGS-gcc
1358ccea 12279
d32ab992 12280TAGS-gcc: \
05750653 12281 configure-gcc
d32ab992 12282 @[ -f ./gcc/Makefile ] || exit 0; \
8c90b13a
L
12283 r=`${PWD_COMMAND}`; export r; \
12284 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12285 $(HOST_EXPORTS) \
d32ab992 12286 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
1358ccea
NN
12287 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12288 done; \
d32ab992 12289 echo "Doing TAGS in gcc" ; \
215c351a 12290 (cd $(HOST_SUBDIR)/gcc && \
1358ccea
NN
12291 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12292 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12293 "RANLIB=$${RANLIB}" \
12294 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12295 TAGS) \
1358ccea
NN
12296 || exit 1
12297
d32ab992 12298@endif gcc
1358ccea 12299
d32ab992
PB
12300.PHONY: maybe-install-info-gcc install-info-gcc
12301maybe-install-info-gcc:
12302@if gcc
12303maybe-install-info-gcc: install-info-gcc
1358ccea 12304
d32ab992
PB
12305install-info-gcc: \
12306 configure-gcc \
05750653 12307 info-gcc
d32ab992 12308 @[ -f ./gcc/Makefile ] || exit 0; \
8c90b13a
L
12309 r=`${PWD_COMMAND}`; export r; \
12310 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12311 $(HOST_EXPORTS) \
d32ab992 12312 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
1358ccea
NN
12313 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12314 done; \
d32ab992 12315 echo "Doing install-info in gcc" ; \
215c351a 12316 (cd $(HOST_SUBDIR)/gcc && \
1358ccea
NN
12317 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12318 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12319 "RANLIB=$${RANLIB}" \
12320 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12321 install-info) \
1358ccea
NN
12322 || exit 1
12323
d32ab992 12324@endif gcc
1358ccea 12325
65d6e994
CD
12326.PHONY: maybe-install-html-gcc install-html-gcc
12327maybe-install-html-gcc:
12328@if gcc
12329maybe-install-html-gcc: install-html-gcc
12330
12331install-html-gcc: \
12332 configure-gcc \
12333 html-gcc
12334 @[ -f ./gcc/Makefile ] || exit 0; \
12335 r=`${PWD_COMMAND}`; export r; \
12336 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12337 $(HOST_EXPORTS) \
12338 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
12339 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12340 done; \
12341 echo "Doing install-html in gcc" ; \
12342 (cd $(HOST_SUBDIR)/gcc && \
12343 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12344 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12345 "RANLIB=$${RANLIB}" \
12346 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12347 install-html) \
12348 || exit 1
12349
12350@endif gcc
12351
d32ab992
PB
12352.PHONY: maybe-installcheck-gcc installcheck-gcc
12353maybe-installcheck-gcc:
12354@if gcc
12355maybe-installcheck-gcc: installcheck-gcc
1358ccea 12356
d32ab992 12357installcheck-gcc: \
05750653 12358 configure-gcc
d32ab992 12359 @[ -f ./gcc/Makefile ] || exit 0; \
8c90b13a
L
12360 r=`${PWD_COMMAND}`; export r; \
12361 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12362 $(HOST_EXPORTS) \
d32ab992 12363 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
1358ccea
NN
12364 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12365 done; \
d32ab992 12366 echo "Doing installcheck in gcc" ; \
215c351a 12367 (cd $(HOST_SUBDIR)/gcc && \
1358ccea
NN
12368 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12369 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12370 "RANLIB=$${RANLIB}" \
12371 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12372 installcheck) \
1358ccea
NN
12373 || exit 1
12374
d32ab992 12375@endif gcc
1358ccea 12376
d32ab992
PB
12377.PHONY: maybe-mostlyclean-gcc mostlyclean-gcc
12378maybe-mostlyclean-gcc:
12379@if gcc
12380maybe-mostlyclean-gcc: mostlyclean-gcc
1358ccea 12381
05750653 12382mostlyclean-gcc:
d32ab992 12383 @[ -f ./gcc/Makefile ] || exit 0; \
8c90b13a
L
12384 r=`${PWD_COMMAND}`; export r; \
12385 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12386 $(HOST_EXPORTS) \
d32ab992 12387 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
1358ccea
NN
12388 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12389 done; \
d32ab992 12390 echo "Doing mostlyclean in gcc" ; \
215c351a 12391 (cd $(HOST_SUBDIR)/gcc && \
1358ccea
NN
12392 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12393 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12394 "RANLIB=$${RANLIB}" \
12395 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12396 mostlyclean) \
1358ccea
NN
12397 || exit 1
12398
d32ab992 12399@endif gcc
1358ccea 12400
d32ab992
PB
12401.PHONY: maybe-clean-gcc clean-gcc
12402maybe-clean-gcc:
12403@if gcc
12404maybe-clean-gcc: clean-gcc
1358ccea 12405
05750653 12406clean-gcc:
d32ab992 12407 @[ -f ./gcc/Makefile ] || exit 0; \
8c90b13a
L
12408 r=`${PWD_COMMAND}`; export r; \
12409 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12410 $(HOST_EXPORTS) \
d32ab992 12411 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
1358ccea
NN
12412 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12413 done; \
d32ab992 12414 echo "Doing clean in gcc" ; \
215c351a 12415 (cd $(HOST_SUBDIR)/gcc && \
1358ccea
NN
12416 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12417 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12418 "RANLIB=$${RANLIB}" \
12419 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12420 clean) \
1358ccea
NN
12421 || exit 1
12422
d32ab992 12423@endif gcc
1358ccea 12424
d32ab992
PB
12425.PHONY: maybe-distclean-gcc distclean-gcc
12426maybe-distclean-gcc:
12427@if gcc
12428maybe-distclean-gcc: distclean-gcc
1358ccea 12429
05750653 12430distclean-gcc:
d32ab992 12431 @[ -f ./gcc/Makefile ] || exit 0; \
8c90b13a
L
12432 r=`${PWD_COMMAND}`; export r; \
12433 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12434 $(HOST_EXPORTS) \
d32ab992 12435 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
1358ccea
NN
12436 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12437 done; \
d32ab992 12438 echo "Doing distclean in gcc" ; \
215c351a 12439 (cd $(HOST_SUBDIR)/gcc && \
1358ccea
NN
12440 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12441 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12442 "RANLIB=$${RANLIB}" \
12443 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12444 distclean) \
1358ccea
NN
12445 || exit 1
12446
d32ab992 12447@endif gcc
1358ccea 12448
d32ab992
PB
12449.PHONY: maybe-maintainer-clean-gcc maintainer-clean-gcc
12450maybe-maintainer-clean-gcc:
12451@if gcc
12452maybe-maintainer-clean-gcc: maintainer-clean-gcc
1358ccea 12453
05750653 12454maintainer-clean-gcc:
d32ab992 12455 @[ -f ./gcc/Makefile ] || exit 0; \
8c90b13a
L
12456 r=`${PWD_COMMAND}`; export r; \
12457 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12458 $(HOST_EXPORTS) \
d32ab992 12459 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
1358ccea
NN
12460 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12461 done; \
d32ab992 12462 echo "Doing maintainer-clean in gcc" ; \
215c351a 12463 (cd $(HOST_SUBDIR)/gcc && \
1358ccea
NN
12464 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12465 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12466 "RANLIB=$${RANLIB}" \
12467 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12468 maintainer-clean) \
1358ccea
NN
12469 || exit 1
12470
d32ab992 12471@endif gcc
1358ccea 12472
1358ccea 12473
25b42232 12474
d32ab992
PB
12475.PHONY: configure-gawk maybe-configure-gawk
12476maybe-configure-gawk:
3ff3adad
PB
12477@if gcc-bootstrap
12478configure-gawk: stage_current
12479@endif gcc-bootstrap
d32ab992
PB
12480@if gawk
12481maybe-configure-gawk: configure-gawk
cc11cc9b 12482configure-gawk:
f41d6665 12483 @: $(MAKE); $(unstage)
cc11cc9b 12484 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 12485 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
12486 test ! -f $(HOST_SUBDIR)/gawk/Makefile || exit 0; \
12487 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gawk ; \
4fc4dd12 12488 $(HOST_EXPORTS) \
25b42232
PB
12489 echo Configuring in $(HOST_SUBDIR)/gawk; \
12490 cd "$(HOST_SUBDIR)/gawk" || exit 1; \
295f4e42 12491 case $(srcdir) in \
215c351a
PB
12492 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12493 *) topdir=`echo $(HOST_SUBDIR)/gawk/ | \
12494 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 12495 esac; \
215c351a
PB
12496 srcdiroption="--srcdir=$${topdir}/gawk"; \
12497 libsrcdir="$$s/gawk"; \
295f4e42 12498 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 12499 $(HOST_CONFIGARGS) $${srcdiroption} \
295f4e42 12500 || exit 1
d32ab992 12501@endif gawk
295f4e42 12502
25b42232
PB
12503
12504
ce406537
PB
12505
12506
d32ab992
PB
12507.PHONY: all-gawk maybe-all-gawk
12508maybe-all-gawk:
3ff3adad
PB
12509@if gcc-bootstrap
12510all-gawk: stage_current
12511@endif gcc-bootstrap
d32ab992 12512@if gawk
7e0b5752 12513TARGET-gawk=all
d32ab992
PB
12514maybe-all-gawk: all-gawk
12515all-gawk: configure-gawk
f41d6665 12516 @: $(MAKE); $(unstage)
295f4e42
NN
12517 @r=`${PWD_COMMAND}`; export r; \
12518 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12519 $(HOST_EXPORTS) \
215c351a
PB
12520 (cd $(HOST_SUBDIR)/gawk && \
12521 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-gawk))
d32ab992 12522@endif gawk
295f4e42 12523
25b42232 12524
ce406537
PB
12525
12526
d32ab992
PB
12527.PHONY: check-gawk maybe-check-gawk
12528maybe-check-gawk:
12529@if gawk
12530maybe-check-gawk: check-gawk
295f4e42 12531
d32ab992 12532check-gawk:
f41d6665 12533 @: $(MAKE); $(unstage)
295f4e42
NN
12534 @r=`${PWD_COMMAND}`; export r; \
12535 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12536 $(HOST_EXPORTS) \
215c351a
PB
12537 (cd $(HOST_SUBDIR)/gawk && \
12538 $(MAKE) $(FLAGS_TO_PASS) check)
295f4e42 12539
d32ab992 12540@endif gawk
295f4e42 12541
d32ab992
PB
12542.PHONY: install-gawk maybe-install-gawk
12543maybe-install-gawk:
12544@if gawk
12545maybe-install-gawk: install-gawk
295f4e42 12546
d32ab992 12547install-gawk: installdirs
f41d6665 12548 @: $(MAKE); $(unstage)
295f4e42
NN
12549 @r=`${PWD_COMMAND}`; export r; \
12550 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12551 $(HOST_EXPORTS) \
215c351a 12552 (cd $(HOST_SUBDIR)/gawk && \
ace9ac7b 12553 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 12554
d32ab992 12555@endif gawk
295f4e42
NN
12556
12557# Other targets (info, dvi, etc.)
12558
d32ab992
PB
12559.PHONY: maybe-info-gawk info-gawk
12560maybe-info-gawk:
12561@if gawk
12562maybe-info-gawk: info-gawk
295f4e42 12563
d32ab992 12564info-gawk: \
05750653 12565 configure-gawk
f41d6665 12566 @: $(MAKE); $(unstage)
d32ab992 12567 @[ -f ./gawk/Makefile ] || exit 0; \
295f4e42
NN
12568 r=`${PWD_COMMAND}`; export r; \
12569 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12570 $(HOST_EXPORTS) \
d32ab992 12571 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
12572 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12573 done; \
d32ab992 12574 echo "Doing info in gawk" ; \
215c351a 12575 (cd $(HOST_SUBDIR)/gawk && \
1358ccea
NN
12576 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12577 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12578 "RANLIB=$${RANLIB}" \
12579 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12580 info) \
1358ccea
NN
12581 || exit 1
12582
d32ab992 12583@endif gawk
1358ccea 12584
d32ab992
PB
12585.PHONY: maybe-dvi-gawk dvi-gawk
12586maybe-dvi-gawk:
12587@if gawk
12588maybe-dvi-gawk: dvi-gawk
1358ccea 12589
d32ab992 12590dvi-gawk: \
05750653 12591 configure-gawk
f41d6665 12592 @: $(MAKE); $(unstage)
d32ab992 12593 @[ -f ./gawk/Makefile ] || exit 0; \
8c90b13a
L
12594 r=`${PWD_COMMAND}`; export r; \
12595 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12596 $(HOST_EXPORTS) \
d32ab992 12597 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
12598 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12599 done; \
d32ab992 12600 echo "Doing dvi in gawk" ; \
215c351a 12601 (cd $(HOST_SUBDIR)/gawk && \
1358ccea
NN
12602 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12603 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12604 "RANLIB=$${RANLIB}" \
12605 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12606 dvi) \
1358ccea
NN
12607 || exit 1
12608
d32ab992 12609@endif gawk
1358ccea 12610
f87a2b2e
MS
12611.PHONY: maybe-html-gawk html-gawk
12612maybe-html-gawk:
12613@if gawk
12614maybe-html-gawk: html-gawk
12615
12616html-gawk: \
05750653 12617 configure-gawk
f41d6665 12618 @: $(MAKE); $(unstage)
f87a2b2e
MS
12619 @[ -f ./gawk/Makefile ] || exit 0; \
12620 r=`${PWD_COMMAND}`; export r; \
12621 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
12622 $(HOST_EXPORTS) \
12623 for flag in $(EXTRA_HOST_FLAGS) ; do \
12624 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12625 done; \
12626 echo "Doing html in gawk" ; \
215c351a 12627 (cd $(HOST_SUBDIR)/gawk && \
f87a2b2e
MS
12628 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12629 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12630 "RANLIB=$${RANLIB}" \
12631 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12632 html) \
12633 || exit 1
12634
12635@endif gawk
12636
d32ab992
PB
12637.PHONY: maybe-TAGS-gawk TAGS-gawk
12638maybe-TAGS-gawk:
12639@if gawk
12640maybe-TAGS-gawk: TAGS-gawk
d9cdb878 12641
d32ab992 12642TAGS-gawk: \
05750653 12643 configure-gawk
f41d6665 12644 @: $(MAKE); $(unstage)
d32ab992 12645 @[ -f ./gawk/Makefile ] || exit 0; \
d9cdb878
AC
12646 r=`${PWD_COMMAND}`; export r; \
12647 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12648 $(HOST_EXPORTS) \
d32ab992 12649 for flag in $(EXTRA_HOST_FLAGS) ; do \
d9cdb878
AC
12650 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12651 done; \
d32ab992 12652 echo "Doing TAGS in gawk" ; \
215c351a 12653 (cd $(HOST_SUBDIR)/gawk && \
d9cdb878
AC
12654 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12655 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12656 "RANLIB=$${RANLIB}" \
12657 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12658 TAGS) \
d9cdb878
AC
12659 || exit 1
12660
d32ab992 12661@endif gawk
d9cdb878 12662
d32ab992
PB
12663.PHONY: maybe-install-info-gawk install-info-gawk
12664maybe-install-info-gawk:
12665@if gawk
12666maybe-install-info-gawk: install-info-gawk
1358ccea 12667
d32ab992
PB
12668install-info-gawk: \
12669 configure-gawk \
05750653 12670 info-gawk
f41d6665 12671 @: $(MAKE); $(unstage)
d32ab992 12672 @[ -f ./gawk/Makefile ] || exit 0; \
8c90b13a
L
12673 r=`${PWD_COMMAND}`; export r; \
12674 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12675 $(HOST_EXPORTS) \
d32ab992 12676 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
12677 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12678 done; \
d32ab992 12679 echo "Doing install-info in gawk" ; \
215c351a 12680 (cd $(HOST_SUBDIR)/gawk && \
1358ccea
NN
12681 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12682 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12683 "RANLIB=$${RANLIB}" \
12684 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12685 install-info) \
1358ccea
NN
12686 || exit 1
12687
d32ab992 12688@endif gawk
1358ccea 12689
65d6e994
CD
12690.PHONY: maybe-install-html-gawk install-html-gawk
12691maybe-install-html-gawk:
12692@if gawk
12693maybe-install-html-gawk: install-html-gawk
12694
12695install-html-gawk: \
12696 configure-gawk \
12697 html-gawk
12698 @: $(MAKE); $(unstage)
12699 @[ -f ./gawk/Makefile ] || exit 0; \
12700 r=`${PWD_COMMAND}`; export r; \
12701 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12702 $(HOST_EXPORTS) \
12703 for flag in $(EXTRA_HOST_FLAGS) ; do \
12704 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12705 done; \
12706 echo "Doing install-html in gawk" ; \
12707 (cd $(HOST_SUBDIR)/gawk && \
12708 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12709 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12710 "RANLIB=$${RANLIB}" \
12711 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12712 install-html) \
12713 || exit 1
12714
12715@endif gawk
12716
d32ab992
PB
12717.PHONY: maybe-installcheck-gawk installcheck-gawk
12718maybe-installcheck-gawk:
12719@if gawk
12720maybe-installcheck-gawk: installcheck-gawk
1358ccea 12721
d32ab992 12722installcheck-gawk: \
05750653 12723 configure-gawk
f41d6665 12724 @: $(MAKE); $(unstage)
d32ab992 12725 @[ -f ./gawk/Makefile ] || exit 0; \
8c90b13a
L
12726 r=`${PWD_COMMAND}`; export r; \
12727 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12728 $(HOST_EXPORTS) \
d32ab992 12729 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
12730 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12731 done; \
d32ab992 12732 echo "Doing installcheck in gawk" ; \
215c351a 12733 (cd $(HOST_SUBDIR)/gawk && \
1358ccea
NN
12734 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12735 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12736 "RANLIB=$${RANLIB}" \
12737 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12738 installcheck) \
1358ccea
NN
12739 || exit 1
12740
d32ab992 12741@endif gawk
1358ccea 12742
d32ab992
PB
12743.PHONY: maybe-mostlyclean-gawk mostlyclean-gawk
12744maybe-mostlyclean-gawk:
12745@if gawk
12746maybe-mostlyclean-gawk: mostlyclean-gawk
1358ccea 12747
05750653 12748mostlyclean-gawk:
f41d6665 12749 @: $(MAKE); $(unstage)
d32ab992 12750 @[ -f ./gawk/Makefile ] || exit 0; \
8c90b13a
L
12751 r=`${PWD_COMMAND}`; export r; \
12752 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12753 $(HOST_EXPORTS) \
d32ab992 12754 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
12755 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12756 done; \
d32ab992 12757 echo "Doing mostlyclean in gawk" ; \
215c351a 12758 (cd $(HOST_SUBDIR)/gawk && \
1358ccea
NN
12759 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12760 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12761 "RANLIB=$${RANLIB}" \
12762 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12763 mostlyclean) \
1358ccea
NN
12764 || exit 1
12765
d32ab992 12766@endif gawk
1358ccea 12767
d32ab992
PB
12768.PHONY: maybe-clean-gawk clean-gawk
12769maybe-clean-gawk:
12770@if gawk
12771maybe-clean-gawk: clean-gawk
1358ccea 12772
05750653 12773clean-gawk:
f41d6665 12774 @: $(MAKE); $(unstage)
d32ab992 12775 @[ -f ./gawk/Makefile ] || exit 0; \
8c90b13a
L
12776 r=`${PWD_COMMAND}`; export r; \
12777 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12778 $(HOST_EXPORTS) \
d32ab992 12779 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
12780 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12781 done; \
d32ab992 12782 echo "Doing clean in gawk" ; \
215c351a 12783 (cd $(HOST_SUBDIR)/gawk && \
1358ccea
NN
12784 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12785 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12786 "RANLIB=$${RANLIB}" \
12787 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12788 clean) \
1358ccea
NN
12789 || exit 1
12790
d32ab992 12791@endif gawk
1358ccea 12792
d32ab992
PB
12793.PHONY: maybe-distclean-gawk distclean-gawk
12794maybe-distclean-gawk:
12795@if gawk
12796maybe-distclean-gawk: distclean-gawk
1358ccea 12797
05750653 12798distclean-gawk:
f41d6665 12799 @: $(MAKE); $(unstage)
d32ab992 12800 @[ -f ./gawk/Makefile ] || exit 0; \
8c90b13a
L
12801 r=`${PWD_COMMAND}`; export r; \
12802 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12803 $(HOST_EXPORTS) \
d32ab992 12804 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
12805 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12806 done; \
d32ab992 12807 echo "Doing distclean in gawk" ; \
215c351a 12808 (cd $(HOST_SUBDIR)/gawk && \
1358ccea
NN
12809 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12810 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12811 "RANLIB=$${RANLIB}" \
12812 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12813 distclean) \
1358ccea
NN
12814 || exit 1
12815
d32ab992 12816@endif gawk
1358ccea 12817
d32ab992
PB
12818.PHONY: maybe-maintainer-clean-gawk maintainer-clean-gawk
12819maybe-maintainer-clean-gawk:
12820@if gawk
12821maybe-maintainer-clean-gawk: maintainer-clean-gawk
1358ccea 12822
05750653 12823maintainer-clean-gawk:
f41d6665 12824 @: $(MAKE); $(unstage)
d32ab992 12825 @[ -f ./gawk/Makefile ] || exit 0; \
8c90b13a
L
12826 r=`${PWD_COMMAND}`; export r; \
12827 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12828 $(HOST_EXPORTS) \
d32ab992 12829 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
12830 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12831 done; \
d32ab992 12832 echo "Doing maintainer-clean in gawk" ; \
215c351a 12833 (cd $(HOST_SUBDIR)/gawk && \
1358ccea
NN
12834 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12835 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12836 "RANLIB=$${RANLIB}" \
12837 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12838 maintainer-clean) \
1358ccea
NN
12839 || exit 1
12840
d32ab992 12841@endif gawk
1358ccea 12842
1358ccea 12843
25b42232 12844
d32ab992
PB
12845.PHONY: configure-gettext maybe-configure-gettext
12846maybe-configure-gettext:
3ff3adad
PB
12847@if gcc-bootstrap
12848configure-gettext: stage_current
12849@endif gcc-bootstrap
d32ab992
PB
12850@if gettext
12851maybe-configure-gettext: configure-gettext
cc11cc9b 12852configure-gettext:
f41d6665 12853 @: $(MAKE); $(unstage)
cc11cc9b 12854 @r=`${PWD_COMMAND}`; export r; \
295f4e42 12855 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
12856 test ! -f $(HOST_SUBDIR)/gettext/Makefile || exit 0; \
12857 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gettext ; \
4fc4dd12 12858 $(HOST_EXPORTS) \
25b42232
PB
12859 echo Configuring in $(HOST_SUBDIR)/gettext; \
12860 cd "$(HOST_SUBDIR)/gettext" || exit 1; \
295f4e42 12861 case $(srcdir) in \
215c351a
PB
12862 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12863 *) topdir=`echo $(HOST_SUBDIR)/gettext/ | \
12864 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 12865 esac; \
215c351a
PB
12866 srcdiroption="--srcdir=$${topdir}/gettext"; \
12867 libsrcdir="$$s/gettext"; \
295f4e42 12868 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 12869 $(HOST_CONFIGARGS) $${srcdiroption} \
295f4e42 12870 || exit 1
d32ab992 12871@endif gettext
295f4e42 12872
25b42232
PB
12873
12874
ce406537
PB
12875
12876
d32ab992
PB
12877.PHONY: all-gettext maybe-all-gettext
12878maybe-all-gettext:
3ff3adad
PB
12879@if gcc-bootstrap
12880all-gettext: stage_current
12881@endif gcc-bootstrap
d32ab992 12882@if gettext
7e0b5752 12883TARGET-gettext=all
d32ab992
PB
12884maybe-all-gettext: all-gettext
12885all-gettext: configure-gettext
f41d6665 12886 @: $(MAKE); $(unstage)
295f4e42
NN
12887 @r=`${PWD_COMMAND}`; export r; \
12888 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12889 $(HOST_EXPORTS) \
215c351a
PB
12890 (cd $(HOST_SUBDIR)/gettext && \
12891 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-gettext))
d32ab992 12892@endif gettext
295f4e42 12893
25b42232 12894
ce406537
PB
12895
12896
d32ab992
PB
12897.PHONY: check-gettext maybe-check-gettext
12898maybe-check-gettext:
12899@if gettext
12900maybe-check-gettext: check-gettext
295f4e42 12901
d32ab992 12902check-gettext:
f41d6665 12903 @: $(MAKE); $(unstage)
295f4e42
NN
12904 @r=`${PWD_COMMAND}`; export r; \
12905 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12906 $(HOST_EXPORTS) \
215c351a
PB
12907 (cd $(HOST_SUBDIR)/gettext && \
12908 $(MAKE) $(FLAGS_TO_PASS) check)
295f4e42 12909
d32ab992 12910@endif gettext
295f4e42 12911
d32ab992
PB
12912.PHONY: install-gettext maybe-install-gettext
12913maybe-install-gettext:
12914@if gettext
12915maybe-install-gettext: install-gettext
295f4e42 12916
d32ab992 12917install-gettext: installdirs
f41d6665 12918 @: $(MAKE); $(unstage)
295f4e42
NN
12919 @r=`${PWD_COMMAND}`; export r; \
12920 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12921 $(HOST_EXPORTS) \
215c351a 12922 (cd $(HOST_SUBDIR)/gettext && \
ace9ac7b 12923 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 12924
d32ab992 12925@endif gettext
295f4e42
NN
12926
12927# Other targets (info, dvi, etc.)
12928
d32ab992
PB
12929.PHONY: maybe-info-gettext info-gettext
12930maybe-info-gettext:
12931@if gettext
12932maybe-info-gettext: info-gettext
295f4e42 12933
d32ab992 12934info-gettext: \
05750653 12935 configure-gettext
f41d6665 12936 @: $(MAKE); $(unstage)
d32ab992 12937 @[ -f ./gettext/Makefile ] || exit 0; \
8c90b13a
L
12938 r=`${PWD_COMMAND}`; export r; \
12939 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12940 $(HOST_EXPORTS) \
d32ab992 12941 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
12942 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12943 done; \
d32ab992 12944 echo "Doing info in gettext" ; \
215c351a 12945 (cd $(HOST_SUBDIR)/gettext && \
1358ccea
NN
12946 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12947 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12948 "RANLIB=$${RANLIB}" \
12949 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12950 info) \
1358ccea
NN
12951 || exit 1
12952
d32ab992 12953@endif gettext
1358ccea 12954
d32ab992
PB
12955.PHONY: maybe-dvi-gettext dvi-gettext
12956maybe-dvi-gettext:
12957@if gettext
12958maybe-dvi-gettext: dvi-gettext
1358ccea 12959
d32ab992 12960dvi-gettext: \
05750653 12961 configure-gettext
f41d6665 12962 @: $(MAKE); $(unstage)
d32ab992 12963 @[ -f ./gettext/Makefile ] || exit 0; \
8c90b13a
L
12964 r=`${PWD_COMMAND}`; export r; \
12965 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12966 $(HOST_EXPORTS) \
d32ab992 12967 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
12968 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12969 done; \
d32ab992 12970 echo "Doing dvi in gettext" ; \
215c351a 12971 (cd $(HOST_SUBDIR)/gettext && \
1358ccea
NN
12972 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12973 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12974 "RANLIB=$${RANLIB}" \
12975 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12976 dvi) \
1358ccea
NN
12977 || exit 1
12978
d32ab992 12979@endif gettext
1358ccea 12980
f87a2b2e
MS
12981.PHONY: maybe-html-gettext html-gettext
12982maybe-html-gettext:
12983@if gettext
12984maybe-html-gettext: html-gettext
12985
12986html-gettext: \
05750653 12987 configure-gettext
f41d6665 12988 @: $(MAKE); $(unstage)
f87a2b2e
MS
12989 @[ -f ./gettext/Makefile ] || exit 0; \
12990 r=`${PWD_COMMAND}`; export r; \
12991 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
12992 $(HOST_EXPORTS) \
12993 for flag in $(EXTRA_HOST_FLAGS) ; do \
12994 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12995 done; \
12996 echo "Doing html in gettext" ; \
215c351a 12997 (cd $(HOST_SUBDIR)/gettext && \
f87a2b2e
MS
12998 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12999 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13000 "RANLIB=$${RANLIB}" \
13001 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13002 html) \
13003 || exit 1
13004
13005@endif gettext
13006
d32ab992
PB
13007.PHONY: maybe-TAGS-gettext TAGS-gettext
13008maybe-TAGS-gettext:
13009@if gettext
13010maybe-TAGS-gettext: TAGS-gettext
1358ccea 13011
d32ab992 13012TAGS-gettext: \
05750653 13013 configure-gettext
f41d6665 13014 @: $(MAKE); $(unstage)
d32ab992 13015 @[ -f ./gettext/Makefile ] || exit 0; \
8c90b13a
L
13016 r=`${PWD_COMMAND}`; export r; \
13017 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13018 $(HOST_EXPORTS) \
d32ab992 13019 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13020 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13021 done; \
d32ab992 13022 echo "Doing TAGS in gettext" ; \
215c351a 13023 (cd $(HOST_SUBDIR)/gettext && \
1358ccea
NN
13024 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13025 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13026 "RANLIB=$${RANLIB}" \
13027 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13028 TAGS) \
1358ccea
NN
13029 || exit 1
13030
d32ab992 13031@endif gettext
1358ccea 13032
d32ab992
PB
13033.PHONY: maybe-install-info-gettext install-info-gettext
13034maybe-install-info-gettext:
13035@if gettext
13036maybe-install-info-gettext: install-info-gettext
13037
13038install-info-gettext: \
13039 configure-gettext \
05750653 13040 info-gettext
f41d6665 13041 @: $(MAKE); $(unstage)
d32ab992 13042 @[ -f ./gettext/Makefile ] || exit 0; \
8c90b13a
L
13043 r=`${PWD_COMMAND}`; export r; \
13044 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13045 $(HOST_EXPORTS) \
d32ab992 13046 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13047 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13048 done; \
d32ab992 13049 echo "Doing install-info in gettext" ; \
215c351a 13050 (cd $(HOST_SUBDIR)/gettext && \
1358ccea
NN
13051 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13052 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13053 "RANLIB=$${RANLIB}" \
13054 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13055 install-info) \
1358ccea
NN
13056 || exit 1
13057
d32ab992 13058@endif gettext
1358ccea 13059
65d6e994
CD
13060.PHONY: maybe-install-html-gettext install-html-gettext
13061maybe-install-html-gettext:
13062@if gettext
13063maybe-install-html-gettext: install-html-gettext
13064
13065install-html-gettext: \
13066 configure-gettext \
13067 html-gettext
13068 @: $(MAKE); $(unstage)
13069 @[ -f ./gettext/Makefile ] || exit 0; \
13070 r=`${PWD_COMMAND}`; export r; \
13071 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13072 $(HOST_EXPORTS) \
13073 for flag in $(EXTRA_HOST_FLAGS) ; do \
13074 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13075 done; \
13076 echo "Doing install-html in gettext" ; \
13077 (cd $(HOST_SUBDIR)/gettext && \
13078 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13079 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13080 "RANLIB=$${RANLIB}" \
13081 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13082 install-html) \
13083 || exit 1
13084
13085@endif gettext
13086
d32ab992
PB
13087.PHONY: maybe-installcheck-gettext installcheck-gettext
13088maybe-installcheck-gettext:
13089@if gettext
13090maybe-installcheck-gettext: installcheck-gettext
1358ccea 13091
d32ab992 13092installcheck-gettext: \
05750653 13093 configure-gettext
f41d6665 13094 @: $(MAKE); $(unstage)
d32ab992 13095 @[ -f ./gettext/Makefile ] || exit 0; \
8c90b13a
L
13096 r=`${PWD_COMMAND}`; export r; \
13097 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13098 $(HOST_EXPORTS) \
d32ab992 13099 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13100 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13101 done; \
d32ab992 13102 echo "Doing installcheck in gettext" ; \
215c351a 13103 (cd $(HOST_SUBDIR)/gettext && \
1358ccea
NN
13104 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13105 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13106 "RANLIB=$${RANLIB}" \
13107 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13108 installcheck) \
1358ccea
NN
13109 || exit 1
13110
d32ab992 13111@endif gettext
1358ccea 13112
d32ab992
PB
13113.PHONY: maybe-mostlyclean-gettext mostlyclean-gettext
13114maybe-mostlyclean-gettext:
13115@if gettext
13116maybe-mostlyclean-gettext: mostlyclean-gettext
1358ccea 13117
05750653 13118mostlyclean-gettext:
f41d6665 13119 @: $(MAKE); $(unstage)
d32ab992 13120 @[ -f ./gettext/Makefile ] || exit 0; \
8c90b13a
L
13121 r=`${PWD_COMMAND}`; export r; \
13122 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13123 $(HOST_EXPORTS) \
d32ab992 13124 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13125 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13126 done; \
d32ab992 13127 echo "Doing mostlyclean in gettext" ; \
215c351a 13128 (cd $(HOST_SUBDIR)/gettext && \
1358ccea
NN
13129 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13130 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13131 "RANLIB=$${RANLIB}" \
13132 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13133 mostlyclean) \
1358ccea
NN
13134 || exit 1
13135
d32ab992 13136@endif gettext
1358ccea 13137
d32ab992
PB
13138.PHONY: maybe-clean-gettext clean-gettext
13139maybe-clean-gettext:
13140@if gettext
13141maybe-clean-gettext: clean-gettext
1358ccea 13142
05750653 13143clean-gettext:
f41d6665 13144 @: $(MAKE); $(unstage)
d32ab992 13145 @[ -f ./gettext/Makefile ] || exit 0; \
8c90b13a
L
13146 r=`${PWD_COMMAND}`; export r; \
13147 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13148 $(HOST_EXPORTS) \
d32ab992 13149 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13150 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13151 done; \
d32ab992 13152 echo "Doing clean in gettext" ; \
215c351a 13153 (cd $(HOST_SUBDIR)/gettext && \
1358ccea
NN
13154 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13155 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13156 "RANLIB=$${RANLIB}" \
13157 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13158 clean) \
1358ccea
NN
13159 || exit 1
13160
d32ab992 13161@endif gettext
1358ccea 13162
d32ab992
PB
13163.PHONY: maybe-distclean-gettext distclean-gettext
13164maybe-distclean-gettext:
13165@if gettext
13166maybe-distclean-gettext: distclean-gettext
1358ccea 13167
05750653 13168distclean-gettext:
f41d6665 13169 @: $(MAKE); $(unstage)
d32ab992 13170 @[ -f ./gettext/Makefile ] || exit 0; \
8c90b13a
L
13171 r=`${PWD_COMMAND}`; export r; \
13172 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13173 $(HOST_EXPORTS) \
d32ab992 13174 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13175 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13176 done; \
d32ab992 13177 echo "Doing distclean in gettext" ; \
215c351a 13178 (cd $(HOST_SUBDIR)/gettext && \
1358ccea
NN
13179 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13180 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13181 "RANLIB=$${RANLIB}" \
13182 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13183 distclean) \
1358ccea
NN
13184 || exit 1
13185
d32ab992 13186@endif gettext
1358ccea 13187
d32ab992
PB
13188.PHONY: maybe-maintainer-clean-gettext maintainer-clean-gettext
13189maybe-maintainer-clean-gettext:
13190@if gettext
13191maybe-maintainer-clean-gettext: maintainer-clean-gettext
1358ccea 13192
05750653 13193maintainer-clean-gettext:
f41d6665 13194 @: $(MAKE); $(unstage)
d32ab992 13195 @[ -f ./gettext/Makefile ] || exit 0; \
8c90b13a
L
13196 r=`${PWD_COMMAND}`; export r; \
13197 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13198 $(HOST_EXPORTS) \
d32ab992 13199 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13200 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13201 done; \
d32ab992 13202 echo "Doing maintainer-clean in gettext" ; \
215c351a 13203 (cd $(HOST_SUBDIR)/gettext && \
1358ccea
NN
13204 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13205 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13206 "RANLIB=$${RANLIB}" \
13207 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13208 maintainer-clean) \
1358ccea
NN
13209 || exit 1
13210
d32ab992 13211@endif gettext
1358ccea 13212
1358ccea 13213
25b42232 13214
d32ab992
PB
13215.PHONY: configure-gnuserv maybe-configure-gnuserv
13216maybe-configure-gnuserv:
3ff3adad
PB
13217@if gcc-bootstrap
13218configure-gnuserv: stage_current
13219@endif gcc-bootstrap
d32ab992
PB
13220@if gnuserv
13221maybe-configure-gnuserv: configure-gnuserv
cc11cc9b 13222configure-gnuserv:
f41d6665 13223 @: $(MAKE); $(unstage)
cc11cc9b 13224 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 13225 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
13226 test ! -f $(HOST_SUBDIR)/gnuserv/Makefile || exit 0; \
13227 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gnuserv ; \
4fc4dd12 13228 $(HOST_EXPORTS) \
25b42232
PB
13229 echo Configuring in $(HOST_SUBDIR)/gnuserv; \
13230 cd "$(HOST_SUBDIR)/gnuserv" || exit 1; \
295f4e42 13231 case $(srcdir) in \
215c351a
PB
13232 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
13233 *) topdir=`echo $(HOST_SUBDIR)/gnuserv/ | \
13234 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 13235 esac; \
215c351a
PB
13236 srcdiroption="--srcdir=$${topdir}/gnuserv"; \
13237 libsrcdir="$$s/gnuserv"; \
295f4e42 13238 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 13239 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 13240 || exit 1
d32ab992 13241@endif gnuserv
1358ccea 13242
25b42232
PB
13243
13244
ce406537
PB
13245
13246
d32ab992
PB
13247.PHONY: all-gnuserv maybe-all-gnuserv
13248maybe-all-gnuserv:
3ff3adad
PB
13249@if gcc-bootstrap
13250all-gnuserv: stage_current
13251@endif gcc-bootstrap
d32ab992 13252@if gnuserv
7e0b5752 13253TARGET-gnuserv=all
d32ab992
PB
13254maybe-all-gnuserv: all-gnuserv
13255all-gnuserv: configure-gnuserv
f41d6665 13256 @: $(MAKE); $(unstage)
295f4e42
NN
13257 @r=`${PWD_COMMAND}`; export r; \
13258 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13259 $(HOST_EXPORTS) \
215c351a
PB
13260 (cd $(HOST_SUBDIR)/gnuserv && \
13261 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-gnuserv))
d32ab992 13262@endif gnuserv
1358ccea 13263
25b42232 13264
ce406537
PB
13265
13266
d32ab992
PB
13267.PHONY: check-gnuserv maybe-check-gnuserv
13268maybe-check-gnuserv:
13269@if gnuserv
13270maybe-check-gnuserv: check-gnuserv
1358ccea 13271
d32ab992 13272check-gnuserv:
f41d6665 13273 @: $(MAKE); $(unstage)
295f4e42 13274 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 13275 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13276 $(HOST_EXPORTS) \
215c351a
PB
13277 (cd $(HOST_SUBDIR)/gnuserv && \
13278 $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 13279
d32ab992 13280@endif gnuserv
1358ccea 13281
d32ab992
PB
13282.PHONY: install-gnuserv maybe-install-gnuserv
13283maybe-install-gnuserv:
13284@if gnuserv
13285maybe-install-gnuserv: install-gnuserv
1358ccea 13286
d32ab992 13287install-gnuserv: installdirs
f41d6665 13288 @: $(MAKE); $(unstage)
295f4e42
NN
13289 @r=`${PWD_COMMAND}`; export r; \
13290 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13291 $(HOST_EXPORTS) \
215c351a 13292 (cd $(HOST_SUBDIR)/gnuserv && \
ace9ac7b 13293 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 13294
d32ab992 13295@endif gnuserv
295f4e42
NN
13296
13297# Other targets (info, dvi, etc.)
13298
d32ab992
PB
13299.PHONY: maybe-info-gnuserv info-gnuserv
13300maybe-info-gnuserv:
13301@if gnuserv
13302maybe-info-gnuserv: info-gnuserv
295f4e42 13303
d32ab992 13304info-gnuserv: \
05750653 13305 configure-gnuserv
f41d6665 13306 @: $(MAKE); $(unstage)
d32ab992 13307 @[ -f ./gnuserv/Makefile ] || exit 0; \
8c90b13a
L
13308 r=`${PWD_COMMAND}`; export r; \
13309 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13310 $(HOST_EXPORTS) \
d32ab992 13311 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13312 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13313 done; \
d32ab992 13314 echo "Doing info in gnuserv" ; \
215c351a 13315 (cd $(HOST_SUBDIR)/gnuserv && \
1358ccea
NN
13316 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13317 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13318 "RANLIB=$${RANLIB}" \
13319 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13320 info) \
1358ccea
NN
13321 || exit 1
13322
d32ab992 13323@endif gnuserv
1358ccea 13324
d32ab992
PB
13325.PHONY: maybe-dvi-gnuserv dvi-gnuserv
13326maybe-dvi-gnuserv:
13327@if gnuserv
13328maybe-dvi-gnuserv: dvi-gnuserv
1358ccea 13329
d32ab992 13330dvi-gnuserv: \
05750653 13331 configure-gnuserv
f41d6665 13332 @: $(MAKE); $(unstage)
d32ab992 13333 @[ -f ./gnuserv/Makefile ] || exit 0; \
8c90b13a
L
13334 r=`${PWD_COMMAND}`; export r; \
13335 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13336 $(HOST_EXPORTS) \
d32ab992 13337 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13338 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13339 done; \
d32ab992 13340 echo "Doing dvi in gnuserv" ; \
215c351a 13341 (cd $(HOST_SUBDIR)/gnuserv && \
1358ccea
NN
13342 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13343 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13344 "RANLIB=$${RANLIB}" \
13345 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13346 dvi) \
1358ccea
NN
13347 || exit 1
13348
d32ab992 13349@endif gnuserv
1358ccea 13350
f87a2b2e
MS
13351.PHONY: maybe-html-gnuserv html-gnuserv
13352maybe-html-gnuserv:
13353@if gnuserv
13354maybe-html-gnuserv: html-gnuserv
13355
13356html-gnuserv: \
05750653 13357 configure-gnuserv
f41d6665 13358 @: $(MAKE); $(unstage)
f87a2b2e
MS
13359 @[ -f ./gnuserv/Makefile ] || exit 0; \
13360 r=`${PWD_COMMAND}`; export r; \
13361 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
13362 $(HOST_EXPORTS) \
13363 for flag in $(EXTRA_HOST_FLAGS) ; do \
13364 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13365 done; \
13366 echo "Doing html in gnuserv" ; \
215c351a 13367 (cd $(HOST_SUBDIR)/gnuserv && \
f87a2b2e
MS
13368 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13369 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13370 "RANLIB=$${RANLIB}" \
13371 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13372 html) \
13373 || exit 1
13374
13375@endif gnuserv
13376
d32ab992
PB
13377.PHONY: maybe-TAGS-gnuserv TAGS-gnuserv
13378maybe-TAGS-gnuserv:
13379@if gnuserv
13380maybe-TAGS-gnuserv: TAGS-gnuserv
1358ccea 13381
d32ab992 13382TAGS-gnuserv: \
05750653 13383 configure-gnuserv
f41d6665 13384 @: $(MAKE); $(unstage)
d32ab992 13385 @[ -f ./gnuserv/Makefile ] || exit 0; \
8c90b13a
L
13386 r=`${PWD_COMMAND}`; export r; \
13387 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13388 $(HOST_EXPORTS) \
d32ab992 13389 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13390 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13391 done; \
d32ab992 13392 echo "Doing TAGS in gnuserv" ; \
215c351a 13393 (cd $(HOST_SUBDIR)/gnuserv && \
1358ccea
NN
13394 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13395 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13396 "RANLIB=$${RANLIB}" \
13397 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13398 TAGS) \
1358ccea
NN
13399 || exit 1
13400
d32ab992 13401@endif gnuserv
1358ccea 13402
d32ab992
PB
13403.PHONY: maybe-install-info-gnuserv install-info-gnuserv
13404maybe-install-info-gnuserv:
13405@if gnuserv
13406maybe-install-info-gnuserv: install-info-gnuserv
1358ccea 13407
d32ab992
PB
13408install-info-gnuserv: \
13409 configure-gnuserv \
05750653 13410 info-gnuserv
f41d6665 13411 @: $(MAKE); $(unstage)
d32ab992 13412 @[ -f ./gnuserv/Makefile ] || exit 0; \
8c90b13a
L
13413 r=`${PWD_COMMAND}`; export r; \
13414 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13415 $(HOST_EXPORTS) \
d32ab992 13416 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13417 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13418 done; \
d32ab992 13419 echo "Doing install-info in gnuserv" ; \
215c351a 13420 (cd $(HOST_SUBDIR)/gnuserv && \
1358ccea
NN
13421 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13422 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13423 "RANLIB=$${RANLIB}" \
13424 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13425 install-info) \
1358ccea
NN
13426 || exit 1
13427
d32ab992 13428@endif gnuserv
1358ccea 13429
65d6e994
CD
13430.PHONY: maybe-install-html-gnuserv install-html-gnuserv
13431maybe-install-html-gnuserv:
13432@if gnuserv
13433maybe-install-html-gnuserv: install-html-gnuserv
13434
13435install-html-gnuserv: \
13436 configure-gnuserv \
13437 html-gnuserv
13438 @: $(MAKE); $(unstage)
13439 @[ -f ./gnuserv/Makefile ] || exit 0; \
13440 r=`${PWD_COMMAND}`; export r; \
13441 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13442 $(HOST_EXPORTS) \
13443 for flag in $(EXTRA_HOST_FLAGS) ; do \
13444 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13445 done; \
13446 echo "Doing install-html in gnuserv" ; \
13447 (cd $(HOST_SUBDIR)/gnuserv && \
13448 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13449 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13450 "RANLIB=$${RANLIB}" \
13451 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13452 install-html) \
13453 || exit 1
13454
13455@endif gnuserv
13456
d32ab992
PB
13457.PHONY: maybe-installcheck-gnuserv installcheck-gnuserv
13458maybe-installcheck-gnuserv:
13459@if gnuserv
13460maybe-installcheck-gnuserv: installcheck-gnuserv
1358ccea 13461
d32ab992 13462installcheck-gnuserv: \
05750653 13463 configure-gnuserv
f41d6665 13464 @: $(MAKE); $(unstage)
d32ab992 13465 @[ -f ./gnuserv/Makefile ] || exit 0; \
8c90b13a
L
13466 r=`${PWD_COMMAND}`; export r; \
13467 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13468 $(HOST_EXPORTS) \
d32ab992 13469 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13470 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13471 done; \
d32ab992 13472 echo "Doing installcheck in gnuserv" ; \
215c351a 13473 (cd $(HOST_SUBDIR)/gnuserv && \
1358ccea
NN
13474 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13475 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13476 "RANLIB=$${RANLIB}" \
13477 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13478 installcheck) \
1358ccea
NN
13479 || exit 1
13480
d32ab992 13481@endif gnuserv
1358ccea 13482
d32ab992
PB
13483.PHONY: maybe-mostlyclean-gnuserv mostlyclean-gnuserv
13484maybe-mostlyclean-gnuserv:
13485@if gnuserv
13486maybe-mostlyclean-gnuserv: mostlyclean-gnuserv
1358ccea 13487
05750653 13488mostlyclean-gnuserv:
f41d6665 13489 @: $(MAKE); $(unstage)
d32ab992 13490 @[ -f ./gnuserv/Makefile ] || exit 0; \
8c90b13a
L
13491 r=`${PWD_COMMAND}`; export r; \
13492 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13493 $(HOST_EXPORTS) \
d32ab992 13494 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13495 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13496 done; \
d32ab992 13497 echo "Doing mostlyclean in gnuserv" ; \
215c351a 13498 (cd $(HOST_SUBDIR)/gnuserv && \
1358ccea
NN
13499 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13500 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13501 "RANLIB=$${RANLIB}" \
13502 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13503 mostlyclean) \
1358ccea
NN
13504 || exit 1
13505
d32ab992 13506@endif gnuserv
1358ccea 13507
d32ab992
PB
13508.PHONY: maybe-clean-gnuserv clean-gnuserv
13509maybe-clean-gnuserv:
13510@if gnuserv
13511maybe-clean-gnuserv: clean-gnuserv
1358ccea 13512
05750653 13513clean-gnuserv:
f41d6665 13514 @: $(MAKE); $(unstage)
d32ab992 13515 @[ -f ./gnuserv/Makefile ] || exit 0; \
8c90b13a
L
13516 r=`${PWD_COMMAND}`; export r; \
13517 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13518 $(HOST_EXPORTS) \
d32ab992 13519 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13520 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13521 done; \
d32ab992 13522 echo "Doing clean in gnuserv" ; \
215c351a 13523 (cd $(HOST_SUBDIR)/gnuserv && \
1358ccea
NN
13524 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13525 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13526 "RANLIB=$${RANLIB}" \
13527 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13528 clean) \
1358ccea
NN
13529 || exit 1
13530
d32ab992 13531@endif gnuserv
1358ccea 13532
d32ab992
PB
13533.PHONY: maybe-distclean-gnuserv distclean-gnuserv
13534maybe-distclean-gnuserv:
13535@if gnuserv
13536maybe-distclean-gnuserv: distclean-gnuserv
1358ccea 13537
05750653 13538distclean-gnuserv:
f41d6665 13539 @: $(MAKE); $(unstage)
d32ab992 13540 @[ -f ./gnuserv/Makefile ] || exit 0; \
8c90b13a
L
13541 r=`${PWD_COMMAND}`; export r; \
13542 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13543 $(HOST_EXPORTS) \
d32ab992 13544 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13545 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13546 done; \
d32ab992 13547 echo "Doing distclean in gnuserv" ; \
215c351a 13548 (cd $(HOST_SUBDIR)/gnuserv && \
1358ccea
NN
13549 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13550 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13551 "RANLIB=$${RANLIB}" \
13552 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13553 distclean) \
1358ccea
NN
13554 || exit 1
13555
d32ab992 13556@endif gnuserv
1358ccea 13557
d32ab992
PB
13558.PHONY: maybe-maintainer-clean-gnuserv maintainer-clean-gnuserv
13559maybe-maintainer-clean-gnuserv:
13560@if gnuserv
13561maybe-maintainer-clean-gnuserv: maintainer-clean-gnuserv
1358ccea 13562
05750653 13563maintainer-clean-gnuserv:
f41d6665 13564 @: $(MAKE); $(unstage)
d32ab992 13565 @[ -f ./gnuserv/Makefile ] || exit 0; \
8c90b13a
L
13566 r=`${PWD_COMMAND}`; export r; \
13567 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13568 $(HOST_EXPORTS) \
d32ab992 13569 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13570 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13571 done; \
d32ab992 13572 echo "Doing maintainer-clean in gnuserv" ; \
215c351a 13573 (cd $(HOST_SUBDIR)/gnuserv && \
1358ccea
NN
13574 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13575 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13576 "RANLIB=$${RANLIB}" \
13577 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13578 maintainer-clean) \
1358ccea
NN
13579 || exit 1
13580
d32ab992 13581@endif gnuserv
1358ccea 13582
1358ccea 13583
25b42232 13584
d32ab992
PB
13585.PHONY: configure-gprof maybe-configure-gprof
13586maybe-configure-gprof:
3ff3adad
PB
13587@if gcc-bootstrap
13588configure-gprof: stage_current
13589@endif gcc-bootstrap
d32ab992
PB
13590@if gprof
13591maybe-configure-gprof: configure-gprof
cc11cc9b 13592configure-gprof:
f41d6665 13593 @: $(MAKE); $(unstage)
cc11cc9b 13594 @r=`${PWD_COMMAND}`; export r; \
295f4e42 13595 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
13596 test ! -f $(HOST_SUBDIR)/gprof/Makefile || exit 0; \
13597 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gprof ; \
4fc4dd12 13598 $(HOST_EXPORTS) \
25b42232
PB
13599 echo Configuring in $(HOST_SUBDIR)/gprof; \
13600 cd "$(HOST_SUBDIR)/gprof" || exit 1; \
295f4e42 13601 case $(srcdir) in \
215c351a
PB
13602 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
13603 *) topdir=`echo $(HOST_SUBDIR)/gprof/ | \
13604 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 13605 esac; \
215c351a
PB
13606 srcdiroption="--srcdir=$${topdir}/gprof"; \
13607 libsrcdir="$$s/gprof"; \
295f4e42 13608 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 13609 $(HOST_CONFIGARGS) $${srcdiroption} \
295f4e42 13610 || exit 1
d32ab992 13611@endif gprof
295f4e42 13612
25b42232
PB
13613
13614
ce406537
PB
13615
13616
d32ab992
PB
13617.PHONY: all-gprof maybe-all-gprof
13618maybe-all-gprof:
3ff3adad
PB
13619@if gcc-bootstrap
13620all-gprof: stage_current
13621@endif gcc-bootstrap
d32ab992 13622@if gprof
7e0b5752 13623TARGET-gprof=all
d32ab992
PB
13624maybe-all-gprof: all-gprof
13625all-gprof: configure-gprof
f41d6665 13626 @: $(MAKE); $(unstage)
295f4e42
NN
13627 @r=`${PWD_COMMAND}`; export r; \
13628 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13629 $(HOST_EXPORTS) \
215c351a
PB
13630 (cd $(HOST_SUBDIR)/gprof && \
13631 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-gprof))
d32ab992 13632@endif gprof
295f4e42 13633
25b42232 13634
ce406537
PB
13635
13636
d32ab992
PB
13637.PHONY: check-gprof maybe-check-gprof
13638maybe-check-gprof:
13639@if gprof
13640maybe-check-gprof: check-gprof
295f4e42 13641
d32ab992 13642check-gprof:
f41d6665 13643 @: $(MAKE); $(unstage)
295f4e42
NN
13644 @r=`${PWD_COMMAND}`; export r; \
13645 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13646 $(HOST_EXPORTS) \
215c351a
PB
13647 (cd $(HOST_SUBDIR)/gprof && \
13648 $(MAKE) $(FLAGS_TO_PASS) check)
295f4e42 13649
d32ab992 13650@endif gprof
295f4e42 13651
d32ab992
PB
13652.PHONY: install-gprof maybe-install-gprof
13653maybe-install-gprof:
13654@if gprof
13655maybe-install-gprof: install-gprof
295f4e42 13656
d32ab992 13657install-gprof: installdirs
f41d6665 13658 @: $(MAKE); $(unstage)
295f4e42
NN
13659 @r=`${PWD_COMMAND}`; export r; \
13660 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13661 $(HOST_EXPORTS) \
215c351a 13662 (cd $(HOST_SUBDIR)/gprof && \
ace9ac7b 13663 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 13664
d32ab992 13665@endif gprof
295f4e42
NN
13666
13667# Other targets (info, dvi, etc.)
13668
d32ab992
PB
13669.PHONY: maybe-info-gprof info-gprof
13670maybe-info-gprof:
13671@if gprof
13672maybe-info-gprof: info-gprof
295f4e42 13673
d32ab992 13674info-gprof: \
05750653 13675 configure-gprof
f41d6665 13676 @: $(MAKE); $(unstage)
d32ab992 13677 @[ -f ./gprof/Makefile ] || exit 0; \
8c90b13a
L
13678 r=`${PWD_COMMAND}`; export r; \
13679 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13680 $(HOST_EXPORTS) \
d32ab992 13681 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13682 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13683 done; \
d32ab992 13684 echo "Doing info in gprof" ; \
215c351a 13685 (cd $(HOST_SUBDIR)/gprof && \
1358ccea
NN
13686 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13687 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13688 "RANLIB=$${RANLIB}" \
13689 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13690 info) \
1358ccea
NN
13691 || exit 1
13692
d32ab992 13693@endif gprof
1358ccea 13694
d32ab992
PB
13695.PHONY: maybe-dvi-gprof dvi-gprof
13696maybe-dvi-gprof:
13697@if gprof
13698maybe-dvi-gprof: dvi-gprof
1358ccea 13699
d32ab992 13700dvi-gprof: \
05750653 13701 configure-gprof
f41d6665 13702 @: $(MAKE); $(unstage)
d32ab992 13703 @[ -f ./gprof/Makefile ] || exit 0; \
8c90b13a
L
13704 r=`${PWD_COMMAND}`; export r; \
13705 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13706 $(HOST_EXPORTS) \
d32ab992 13707 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13708 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13709 done; \
d32ab992 13710 echo "Doing dvi in gprof" ; \
215c351a 13711 (cd $(HOST_SUBDIR)/gprof && \
1358ccea
NN
13712 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13713 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13714 "RANLIB=$${RANLIB}" \
13715 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13716 dvi) \
1358ccea
NN
13717 || exit 1
13718
d32ab992 13719@endif gprof
1358ccea 13720
f87a2b2e
MS
13721.PHONY: maybe-html-gprof html-gprof
13722maybe-html-gprof:
13723@if gprof
13724maybe-html-gprof: html-gprof
13725
13726html-gprof: \
05750653 13727 configure-gprof
f41d6665 13728 @: $(MAKE); $(unstage)
f87a2b2e
MS
13729 @[ -f ./gprof/Makefile ] || exit 0; \
13730 r=`${PWD_COMMAND}`; export r; \
13731 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
13732 $(HOST_EXPORTS) \
13733 for flag in $(EXTRA_HOST_FLAGS) ; do \
13734 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13735 done; \
13736 echo "Doing html in gprof" ; \
215c351a 13737 (cd $(HOST_SUBDIR)/gprof && \
f87a2b2e
MS
13738 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13739 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13740 "RANLIB=$${RANLIB}" \
13741 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13742 html) \
13743 || exit 1
13744
13745@endif gprof
13746
d32ab992
PB
13747.PHONY: maybe-TAGS-gprof TAGS-gprof
13748maybe-TAGS-gprof:
13749@if gprof
13750maybe-TAGS-gprof: TAGS-gprof
1358ccea 13751
d32ab992 13752TAGS-gprof: \
05750653 13753 configure-gprof
f41d6665 13754 @: $(MAKE); $(unstage)
d32ab992 13755 @[ -f ./gprof/Makefile ] || exit 0; \
8c90b13a
L
13756 r=`${PWD_COMMAND}`; export r; \
13757 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13758 $(HOST_EXPORTS) \
d32ab992 13759 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13760 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13761 done; \
d32ab992 13762 echo "Doing TAGS in gprof" ; \
215c351a 13763 (cd $(HOST_SUBDIR)/gprof && \
1358ccea
NN
13764 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13765 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13766 "RANLIB=$${RANLIB}" \
13767 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13768 TAGS) \
1358ccea
NN
13769 || exit 1
13770
d32ab992 13771@endif gprof
1358ccea 13772
d32ab992
PB
13773.PHONY: maybe-install-info-gprof install-info-gprof
13774maybe-install-info-gprof:
13775@if gprof
13776maybe-install-info-gprof: install-info-gprof
1358ccea 13777
d32ab992
PB
13778install-info-gprof: \
13779 configure-gprof \
05750653 13780 info-gprof
f41d6665 13781 @: $(MAKE); $(unstage)
d32ab992 13782 @[ -f ./gprof/Makefile ] || exit 0; \
8c90b13a
L
13783 r=`${PWD_COMMAND}`; export r; \
13784 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13785 $(HOST_EXPORTS) \
d32ab992 13786 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13787 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13788 done; \
d32ab992 13789 echo "Doing install-info in gprof" ; \
215c351a 13790 (cd $(HOST_SUBDIR)/gprof && \
1358ccea
NN
13791 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13792 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13793 "RANLIB=$${RANLIB}" \
13794 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13795 install-info) \
1358ccea
NN
13796 || exit 1
13797
d32ab992 13798@endif gprof
1358ccea 13799
65d6e994
CD
13800.PHONY: maybe-install-html-gprof install-html-gprof
13801maybe-install-html-gprof:
13802@if gprof
13803maybe-install-html-gprof: install-html-gprof
13804
13805install-html-gprof: \
13806 configure-gprof \
13807 html-gprof
13808 @: $(MAKE); $(unstage)
13809 @[ -f ./gprof/Makefile ] || exit 0; \
13810 r=`${PWD_COMMAND}`; export r; \
13811 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13812 $(HOST_EXPORTS) \
13813 for flag in $(EXTRA_HOST_FLAGS) ; do \
13814 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13815 done; \
13816 echo "Doing install-html in gprof" ; \
13817 (cd $(HOST_SUBDIR)/gprof && \
13818 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13819 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13820 "RANLIB=$${RANLIB}" \
13821 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13822 install-html) \
13823 || exit 1
13824
13825@endif gprof
13826
d32ab992
PB
13827.PHONY: maybe-installcheck-gprof installcheck-gprof
13828maybe-installcheck-gprof:
13829@if gprof
13830maybe-installcheck-gprof: installcheck-gprof
1358ccea 13831
d32ab992 13832installcheck-gprof: \
05750653 13833 configure-gprof
f41d6665 13834 @: $(MAKE); $(unstage)
d32ab992 13835 @[ -f ./gprof/Makefile ] || exit 0; \
8c90b13a
L
13836 r=`${PWD_COMMAND}`; export r; \
13837 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13838 $(HOST_EXPORTS) \
d32ab992 13839 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13840 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13841 done; \
d32ab992 13842 echo "Doing installcheck in gprof" ; \
215c351a 13843 (cd $(HOST_SUBDIR)/gprof && \
1358ccea
NN
13844 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13845 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13846 "RANLIB=$${RANLIB}" \
13847 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13848 installcheck) \
1358ccea
NN
13849 || exit 1
13850
d32ab992 13851@endif gprof
1358ccea 13852
d32ab992
PB
13853.PHONY: maybe-mostlyclean-gprof mostlyclean-gprof
13854maybe-mostlyclean-gprof:
13855@if gprof
13856maybe-mostlyclean-gprof: mostlyclean-gprof
1358ccea 13857
05750653 13858mostlyclean-gprof:
f41d6665 13859 @: $(MAKE); $(unstage)
d32ab992 13860 @[ -f ./gprof/Makefile ] || exit 0; \
8c90b13a
L
13861 r=`${PWD_COMMAND}`; export r; \
13862 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13863 $(HOST_EXPORTS) \
d32ab992 13864 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13865 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13866 done; \
d32ab992 13867 echo "Doing mostlyclean in gprof" ; \
215c351a 13868 (cd $(HOST_SUBDIR)/gprof && \
1358ccea
NN
13869 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13870 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13871 "RANLIB=$${RANLIB}" \
13872 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13873 mostlyclean) \
1358ccea
NN
13874 || exit 1
13875
d32ab992 13876@endif gprof
1358ccea 13877
d32ab992
PB
13878.PHONY: maybe-clean-gprof clean-gprof
13879maybe-clean-gprof:
13880@if gprof
13881maybe-clean-gprof: clean-gprof
1358ccea 13882
05750653 13883clean-gprof:
f41d6665 13884 @: $(MAKE); $(unstage)
d32ab992 13885 @[ -f ./gprof/Makefile ] || exit 0; \
8c90b13a
L
13886 r=`${PWD_COMMAND}`; export r; \
13887 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13888 $(HOST_EXPORTS) \
d32ab992 13889 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13890 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13891 done; \
d32ab992 13892 echo "Doing clean in gprof" ; \
215c351a 13893 (cd $(HOST_SUBDIR)/gprof && \
1358ccea
NN
13894 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13895 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13896 "RANLIB=$${RANLIB}" \
13897 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13898 clean) \
1358ccea
NN
13899 || exit 1
13900
d32ab992 13901@endif gprof
1358ccea 13902
d32ab992
PB
13903.PHONY: maybe-distclean-gprof distclean-gprof
13904maybe-distclean-gprof:
13905@if gprof
13906maybe-distclean-gprof: distclean-gprof
1358ccea 13907
05750653 13908distclean-gprof:
f41d6665 13909 @: $(MAKE); $(unstage)
d32ab992 13910 @[ -f ./gprof/Makefile ] || exit 0; \
8c90b13a
L
13911 r=`${PWD_COMMAND}`; export r; \
13912 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13913 $(HOST_EXPORTS) \
d32ab992 13914 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13915 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13916 done; \
d32ab992 13917 echo "Doing distclean in gprof" ; \
215c351a 13918 (cd $(HOST_SUBDIR)/gprof && \
1358ccea
NN
13919 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13920 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13921 "RANLIB=$${RANLIB}" \
13922 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13923 distclean) \
1358ccea
NN
13924 || exit 1
13925
d32ab992 13926@endif gprof
1358ccea 13927
d32ab992
PB
13928.PHONY: maybe-maintainer-clean-gprof maintainer-clean-gprof
13929maybe-maintainer-clean-gprof:
13930@if gprof
13931maybe-maintainer-clean-gprof: maintainer-clean-gprof
1358ccea 13932
05750653 13933maintainer-clean-gprof:
f41d6665 13934 @: $(MAKE); $(unstage)
d32ab992 13935 @[ -f ./gprof/Makefile ] || exit 0; \
8c90b13a
L
13936 r=`${PWD_COMMAND}`; export r; \
13937 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13938 $(HOST_EXPORTS) \
d32ab992 13939 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13940 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13941 done; \
d32ab992 13942 echo "Doing maintainer-clean in gprof" ; \
215c351a 13943 (cd $(HOST_SUBDIR)/gprof && \
1358ccea
NN
13944 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13945 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13946 "RANLIB=$${RANLIB}" \
13947 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13948 maintainer-clean) \
1358ccea
NN
13949 || exit 1
13950
d32ab992 13951@endif gprof
1358ccea 13952
1358ccea 13953
25b42232 13954
d32ab992
PB
13955.PHONY: configure-gzip maybe-configure-gzip
13956maybe-configure-gzip:
3ff3adad
PB
13957@if gcc-bootstrap
13958configure-gzip: stage_current
13959@endif gcc-bootstrap
d32ab992
PB
13960@if gzip
13961maybe-configure-gzip: configure-gzip
cc11cc9b 13962configure-gzip:
f41d6665 13963 @: $(MAKE); $(unstage)
cc11cc9b 13964 @r=`${PWD_COMMAND}`; export r; \
295f4e42 13965 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
13966 test ! -f $(HOST_SUBDIR)/gzip/Makefile || exit 0; \
13967 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gzip ; \
4fc4dd12 13968 $(HOST_EXPORTS) \
25b42232
PB
13969 echo Configuring in $(HOST_SUBDIR)/gzip; \
13970 cd "$(HOST_SUBDIR)/gzip" || exit 1; \
295f4e42 13971 case $(srcdir) in \
215c351a
PB
13972 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
13973 *) topdir=`echo $(HOST_SUBDIR)/gzip/ | \
13974 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 13975 esac; \
215c351a
PB
13976 srcdiroption="--srcdir=$${topdir}/gzip"; \
13977 libsrcdir="$$s/gzip"; \
295f4e42 13978 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 13979 $(HOST_CONFIGARGS) $${srcdiroption} \
295f4e42 13980 || exit 1
d32ab992 13981@endif gzip
295f4e42 13982
25b42232
PB
13983
13984
ce406537
PB
13985
13986
d32ab992
PB
13987.PHONY: all-gzip maybe-all-gzip
13988maybe-all-gzip:
3ff3adad
PB
13989@if gcc-bootstrap
13990all-gzip: stage_current
13991@endif gcc-bootstrap
d32ab992 13992@if gzip
7e0b5752 13993TARGET-gzip=all
d32ab992
PB
13994maybe-all-gzip: all-gzip
13995all-gzip: configure-gzip
f41d6665 13996 @: $(MAKE); $(unstage)
295f4e42
NN
13997 @r=`${PWD_COMMAND}`; export r; \
13998 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13999 $(HOST_EXPORTS) \
215c351a
PB
14000 (cd $(HOST_SUBDIR)/gzip && \
14001 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-gzip))
d32ab992 14002@endif gzip
295f4e42 14003
25b42232 14004
ce406537
PB
14005
14006
d32ab992
PB
14007.PHONY: check-gzip maybe-check-gzip
14008maybe-check-gzip:
14009@if gzip
14010maybe-check-gzip: check-gzip
295f4e42 14011
d32ab992 14012check-gzip:
f41d6665 14013 @: $(MAKE); $(unstage)
295f4e42
NN
14014 @r=`${PWD_COMMAND}`; export r; \
14015 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14016 $(HOST_EXPORTS) \
215c351a
PB
14017 (cd $(HOST_SUBDIR)/gzip && \
14018 $(MAKE) $(FLAGS_TO_PASS) check)
295f4e42 14019
d32ab992 14020@endif gzip
295f4e42 14021
d32ab992
PB
14022.PHONY: install-gzip maybe-install-gzip
14023maybe-install-gzip:
14024@if gzip
14025maybe-install-gzip: install-gzip
295f4e42 14026
d32ab992 14027install-gzip: installdirs
f41d6665 14028 @: $(MAKE); $(unstage)
295f4e42
NN
14029 @r=`${PWD_COMMAND}`; export r; \
14030 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14031 $(HOST_EXPORTS) \
215c351a 14032 (cd $(HOST_SUBDIR)/gzip && \
ace9ac7b 14033 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 14034
d32ab992 14035@endif gzip
295f4e42
NN
14036
14037# Other targets (info, dvi, etc.)
14038
d32ab992
PB
14039.PHONY: maybe-info-gzip info-gzip
14040maybe-info-gzip:
14041@if gzip
14042maybe-info-gzip: info-gzip
295f4e42 14043
d32ab992 14044info-gzip: \
05750653 14045 configure-gzip
f41d6665 14046 @: $(MAKE); $(unstage)
d32ab992 14047 @[ -f ./gzip/Makefile ] || exit 0; \
8c90b13a
L
14048 r=`${PWD_COMMAND}`; export r; \
14049 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14050 $(HOST_EXPORTS) \
d32ab992 14051 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14052 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14053 done; \
d32ab992 14054 echo "Doing info in gzip" ; \
215c351a 14055 (cd $(HOST_SUBDIR)/gzip && \
1358ccea
NN
14056 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14057 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14058 "RANLIB=$${RANLIB}" \
14059 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14060 info) \
1358ccea
NN
14061 || exit 1
14062
d32ab992 14063@endif gzip
1358ccea 14064
d32ab992
PB
14065.PHONY: maybe-dvi-gzip dvi-gzip
14066maybe-dvi-gzip:
14067@if gzip
14068maybe-dvi-gzip: dvi-gzip
1358ccea 14069
d32ab992 14070dvi-gzip: \
05750653 14071 configure-gzip
f41d6665 14072 @: $(MAKE); $(unstage)
d32ab992 14073 @[ -f ./gzip/Makefile ] || exit 0; \
8c90b13a
L
14074 r=`${PWD_COMMAND}`; export r; \
14075 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14076 $(HOST_EXPORTS) \
d32ab992 14077 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14078 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14079 done; \
d32ab992 14080 echo "Doing dvi in gzip" ; \
215c351a 14081 (cd $(HOST_SUBDIR)/gzip && \
1358ccea
NN
14082 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14083 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14084 "RANLIB=$${RANLIB}" \
14085 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14086 dvi) \
1358ccea
NN
14087 || exit 1
14088
d32ab992 14089@endif gzip
1358ccea 14090
f87a2b2e
MS
14091.PHONY: maybe-html-gzip html-gzip
14092maybe-html-gzip:
14093@if gzip
14094maybe-html-gzip: html-gzip
14095
14096html-gzip: \
05750653 14097 configure-gzip
f41d6665 14098 @: $(MAKE); $(unstage)
f87a2b2e
MS
14099 @[ -f ./gzip/Makefile ] || exit 0; \
14100 r=`${PWD_COMMAND}`; export r; \
14101 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
14102 $(HOST_EXPORTS) \
14103 for flag in $(EXTRA_HOST_FLAGS) ; do \
14104 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14105 done; \
14106 echo "Doing html in gzip" ; \
215c351a 14107 (cd $(HOST_SUBDIR)/gzip && \
f87a2b2e
MS
14108 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14109 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14110 "RANLIB=$${RANLIB}" \
14111 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14112 html) \
14113 || exit 1
14114
14115@endif gzip
14116
d32ab992
PB
14117.PHONY: maybe-TAGS-gzip TAGS-gzip
14118maybe-TAGS-gzip:
14119@if gzip
14120maybe-TAGS-gzip: TAGS-gzip
1358ccea 14121
d32ab992 14122TAGS-gzip: \
05750653 14123 configure-gzip
f41d6665 14124 @: $(MAKE); $(unstage)
d32ab992 14125 @[ -f ./gzip/Makefile ] || exit 0; \
8c90b13a
L
14126 r=`${PWD_COMMAND}`; export r; \
14127 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14128 $(HOST_EXPORTS) \
d32ab992 14129 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14130 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14131 done; \
d32ab992 14132 echo "Doing TAGS in gzip" ; \
215c351a 14133 (cd $(HOST_SUBDIR)/gzip && \
1358ccea
NN
14134 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14135 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14136 "RANLIB=$${RANLIB}" \
14137 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14138 TAGS) \
1358ccea
NN
14139 || exit 1
14140
d32ab992 14141@endif gzip
1358ccea 14142
d32ab992
PB
14143.PHONY: maybe-install-info-gzip install-info-gzip
14144maybe-install-info-gzip:
14145@if gzip
14146maybe-install-info-gzip: install-info-gzip
1358ccea 14147
d32ab992
PB
14148install-info-gzip: \
14149 configure-gzip \
05750653 14150 info-gzip
f41d6665 14151 @: $(MAKE); $(unstage)
d32ab992 14152 @[ -f ./gzip/Makefile ] || exit 0; \
8c90b13a
L
14153 r=`${PWD_COMMAND}`; export r; \
14154 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14155 $(HOST_EXPORTS) \
d32ab992 14156 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14157 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14158 done; \
d32ab992 14159 echo "Doing install-info in gzip" ; \
215c351a 14160 (cd $(HOST_SUBDIR)/gzip && \
1358ccea
NN
14161 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14162 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14163 "RANLIB=$${RANLIB}" \
14164 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14165 install-info) \
1358ccea
NN
14166 || exit 1
14167
d32ab992 14168@endif gzip
1358ccea 14169
65d6e994
CD
14170.PHONY: maybe-install-html-gzip install-html-gzip
14171maybe-install-html-gzip:
14172@if gzip
14173maybe-install-html-gzip: install-html-gzip
14174
14175install-html-gzip: \
14176 configure-gzip \
14177 html-gzip
14178 @: $(MAKE); $(unstage)
14179 @[ -f ./gzip/Makefile ] || exit 0; \
14180 r=`${PWD_COMMAND}`; export r; \
14181 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14182 $(HOST_EXPORTS) \
14183 for flag in $(EXTRA_HOST_FLAGS) ; do \
14184 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14185 done; \
14186 echo "Doing install-html in gzip" ; \
14187 (cd $(HOST_SUBDIR)/gzip && \
14188 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14189 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14190 "RANLIB=$${RANLIB}" \
14191 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14192 install-html) \
14193 || exit 1
14194
14195@endif gzip
14196
d32ab992
PB
14197.PHONY: maybe-installcheck-gzip installcheck-gzip
14198maybe-installcheck-gzip:
14199@if gzip
14200maybe-installcheck-gzip: installcheck-gzip
1358ccea 14201
d32ab992 14202installcheck-gzip: \
05750653 14203 configure-gzip
f41d6665 14204 @: $(MAKE); $(unstage)
d32ab992 14205 @[ -f ./gzip/Makefile ] || exit 0; \
8c90b13a
L
14206 r=`${PWD_COMMAND}`; export r; \
14207 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14208 $(HOST_EXPORTS) \
d32ab992 14209 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14210 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14211 done; \
d32ab992 14212 echo "Doing installcheck in gzip" ; \
215c351a 14213 (cd $(HOST_SUBDIR)/gzip && \
1358ccea
NN
14214 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14215 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14216 "RANLIB=$${RANLIB}" \
14217 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14218 installcheck) \
1358ccea
NN
14219 || exit 1
14220
d32ab992 14221@endif gzip
1358ccea 14222
d32ab992
PB
14223.PHONY: maybe-mostlyclean-gzip mostlyclean-gzip
14224maybe-mostlyclean-gzip:
14225@if gzip
14226maybe-mostlyclean-gzip: mostlyclean-gzip
1358ccea 14227
05750653 14228mostlyclean-gzip:
f41d6665 14229 @: $(MAKE); $(unstage)
d32ab992 14230 @[ -f ./gzip/Makefile ] || exit 0; \
8c90b13a
L
14231 r=`${PWD_COMMAND}`; export r; \
14232 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14233 $(HOST_EXPORTS) \
d32ab992 14234 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14235 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14236 done; \
d32ab992 14237 echo "Doing mostlyclean in gzip" ; \
215c351a 14238 (cd $(HOST_SUBDIR)/gzip && \
1358ccea
NN
14239 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14240 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14241 "RANLIB=$${RANLIB}" \
14242 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14243 mostlyclean) \
1358ccea
NN
14244 || exit 1
14245
d32ab992 14246@endif gzip
1358ccea 14247
d32ab992
PB
14248.PHONY: maybe-clean-gzip clean-gzip
14249maybe-clean-gzip:
14250@if gzip
14251maybe-clean-gzip: clean-gzip
1358ccea 14252
05750653 14253clean-gzip:
f41d6665 14254 @: $(MAKE); $(unstage)
d32ab992 14255 @[ -f ./gzip/Makefile ] || exit 0; \
8c90b13a
L
14256 r=`${PWD_COMMAND}`; export r; \
14257 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14258 $(HOST_EXPORTS) \
d32ab992 14259 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14260 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14261 done; \
d32ab992 14262 echo "Doing clean in gzip" ; \
215c351a 14263 (cd $(HOST_SUBDIR)/gzip && \
1358ccea
NN
14264 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14265 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14266 "RANLIB=$${RANLIB}" \
14267 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14268 clean) \
1358ccea
NN
14269 || exit 1
14270
d32ab992 14271@endif gzip
1358ccea 14272
d32ab992
PB
14273.PHONY: maybe-distclean-gzip distclean-gzip
14274maybe-distclean-gzip:
14275@if gzip
14276maybe-distclean-gzip: distclean-gzip
1358ccea 14277
05750653 14278distclean-gzip:
f41d6665 14279 @: $(MAKE); $(unstage)
d32ab992 14280 @[ -f ./gzip/Makefile ] || exit 0; \
8c90b13a
L
14281 r=`${PWD_COMMAND}`; export r; \
14282 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14283 $(HOST_EXPORTS) \
d32ab992 14284 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14285 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14286 done; \
d32ab992 14287 echo "Doing distclean in gzip" ; \
215c351a 14288 (cd $(HOST_SUBDIR)/gzip && \
1358ccea
NN
14289 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14290 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14291 "RANLIB=$${RANLIB}" \
14292 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14293 distclean) \
1358ccea
NN
14294 || exit 1
14295
d32ab992 14296@endif gzip
1358ccea 14297
d32ab992
PB
14298.PHONY: maybe-maintainer-clean-gzip maintainer-clean-gzip
14299maybe-maintainer-clean-gzip:
14300@if gzip
14301maybe-maintainer-clean-gzip: maintainer-clean-gzip
1358ccea 14302
05750653 14303maintainer-clean-gzip:
f41d6665 14304 @: $(MAKE); $(unstage)
d32ab992 14305 @[ -f ./gzip/Makefile ] || exit 0; \
8c90b13a
L
14306 r=`${PWD_COMMAND}`; export r; \
14307 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14308 $(HOST_EXPORTS) \
d32ab992 14309 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14310 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14311 done; \
d32ab992 14312 echo "Doing maintainer-clean in gzip" ; \
215c351a 14313 (cd $(HOST_SUBDIR)/gzip && \
1358ccea
NN
14314 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14315 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14316 "RANLIB=$${RANLIB}" \
14317 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14318 maintainer-clean) \
295f4e42
NN
14319 || exit 1
14320
d32ab992 14321@endif gzip
295f4e42
NN
14322
14323
25b42232 14324
d32ab992
PB
14325.PHONY: configure-hello maybe-configure-hello
14326maybe-configure-hello:
3ff3adad
PB
14327@if gcc-bootstrap
14328configure-hello: stage_current
14329@endif gcc-bootstrap
d32ab992
PB
14330@if hello
14331maybe-configure-hello: configure-hello
cc11cc9b 14332configure-hello:
f41d6665 14333 @: $(MAKE); $(unstage)
cc11cc9b 14334 @r=`${PWD_COMMAND}`; export r; \
295f4e42 14335 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
14336 test ! -f $(HOST_SUBDIR)/hello/Makefile || exit 0; \
14337 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/hello ; \
4fc4dd12 14338 $(HOST_EXPORTS) \
25b42232
PB
14339 echo Configuring in $(HOST_SUBDIR)/hello; \
14340 cd "$(HOST_SUBDIR)/hello" || exit 1; \
295f4e42 14341 case $(srcdir) in \
215c351a
PB
14342 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
14343 *) topdir=`echo $(HOST_SUBDIR)/hello/ | \
14344 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 14345 esac; \
215c351a
PB
14346 srcdiroption="--srcdir=$${topdir}/hello"; \
14347 libsrcdir="$$s/hello"; \
295f4e42 14348 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 14349 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 14350 || exit 1
d32ab992 14351@endif hello
1358ccea 14352
25b42232
PB
14353
14354
ce406537
PB
14355
14356
d32ab992
PB
14357.PHONY: all-hello maybe-all-hello
14358maybe-all-hello:
3ff3adad
PB
14359@if gcc-bootstrap
14360all-hello: stage_current
14361@endif gcc-bootstrap
d32ab992 14362@if hello
7e0b5752 14363TARGET-hello=all
d32ab992
PB
14364maybe-all-hello: all-hello
14365all-hello: configure-hello
f41d6665 14366 @: $(MAKE); $(unstage)
295f4e42 14367 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 14368 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14369 $(HOST_EXPORTS) \
215c351a
PB
14370 (cd $(HOST_SUBDIR)/hello && \
14371 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-hello))
d32ab992 14372@endif hello
1358ccea 14373
25b42232 14374
ce406537
PB
14375
14376
d32ab992
PB
14377.PHONY: check-hello maybe-check-hello
14378maybe-check-hello:
14379@if hello
14380maybe-check-hello: check-hello
1358ccea 14381
d32ab992 14382check-hello:
f41d6665 14383 @: $(MAKE); $(unstage)
295f4e42 14384 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 14385 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14386 $(HOST_EXPORTS) \
215c351a
PB
14387 (cd $(HOST_SUBDIR)/hello && \
14388 $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 14389
d32ab992 14390@endif hello
1358ccea 14391
d32ab992
PB
14392.PHONY: install-hello maybe-install-hello
14393maybe-install-hello:
14394@if hello
14395maybe-install-hello: install-hello
1358ccea 14396
d32ab992 14397install-hello: installdirs
f41d6665 14398 @: $(MAKE); $(unstage)
295f4e42 14399 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 14400 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14401 $(HOST_EXPORTS) \
215c351a 14402 (cd $(HOST_SUBDIR)/hello && \
ace9ac7b 14403 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 14404
d32ab992 14405@endif hello
1358ccea 14406
295f4e42 14407# Other targets (info, dvi, etc.)
1358ccea 14408
d32ab992
PB
14409.PHONY: maybe-info-hello info-hello
14410maybe-info-hello:
14411@if hello
14412maybe-info-hello: info-hello
295f4e42 14413
d32ab992 14414info-hello: \
05750653 14415 configure-hello
f41d6665 14416 @: $(MAKE); $(unstage)
d32ab992 14417 @[ -f ./hello/Makefile ] || exit 0; \
8c90b13a
L
14418 r=`${PWD_COMMAND}`; export r; \
14419 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14420 $(HOST_EXPORTS) \
d32ab992 14421 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14422 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14423 done; \
d32ab992 14424 echo "Doing info in hello" ; \
215c351a 14425 (cd $(HOST_SUBDIR)/hello && \
1358ccea
NN
14426 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14427 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14428 "RANLIB=$${RANLIB}" \
14429 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14430 info) \
1358ccea
NN
14431 || exit 1
14432
d32ab992 14433@endif hello
1358ccea 14434
d32ab992
PB
14435.PHONY: maybe-dvi-hello dvi-hello
14436maybe-dvi-hello:
14437@if hello
14438maybe-dvi-hello: dvi-hello
1358ccea 14439
d32ab992 14440dvi-hello: \
05750653 14441 configure-hello
f41d6665 14442 @: $(MAKE); $(unstage)
d32ab992 14443 @[ -f ./hello/Makefile ] || exit 0; \
8c90b13a
L
14444 r=`${PWD_COMMAND}`; export r; \
14445 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14446 $(HOST_EXPORTS) \
d32ab992 14447 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14448 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14449 done; \
d32ab992 14450 echo "Doing dvi in hello" ; \
215c351a 14451 (cd $(HOST_SUBDIR)/hello && \
1358ccea
NN
14452 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14453 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14454 "RANLIB=$${RANLIB}" \
14455 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14456 dvi) \
1358ccea
NN
14457 || exit 1
14458
d32ab992 14459@endif hello
1358ccea 14460
f87a2b2e
MS
14461.PHONY: maybe-html-hello html-hello
14462maybe-html-hello:
14463@if hello
14464maybe-html-hello: html-hello
14465
14466html-hello: \
05750653 14467 configure-hello
f41d6665 14468 @: $(MAKE); $(unstage)
f87a2b2e
MS
14469 @[ -f ./hello/Makefile ] || exit 0; \
14470 r=`${PWD_COMMAND}`; export r; \
14471 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
14472 $(HOST_EXPORTS) \
14473 for flag in $(EXTRA_HOST_FLAGS) ; do \
14474 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14475 done; \
14476 echo "Doing html in hello" ; \
215c351a 14477 (cd $(HOST_SUBDIR)/hello && \
f87a2b2e
MS
14478 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14479 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14480 "RANLIB=$${RANLIB}" \
14481 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14482 html) \
14483 || exit 1
14484
14485@endif hello
14486
d32ab992
PB
14487.PHONY: maybe-TAGS-hello TAGS-hello
14488maybe-TAGS-hello:
14489@if hello
14490maybe-TAGS-hello: TAGS-hello
1358ccea 14491
d32ab992 14492TAGS-hello: \
05750653 14493 configure-hello
f41d6665 14494 @: $(MAKE); $(unstage)
d32ab992 14495 @[ -f ./hello/Makefile ] || exit 0; \
8c90b13a
L
14496 r=`${PWD_COMMAND}`; export r; \
14497 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14498 $(HOST_EXPORTS) \
d32ab992 14499 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14500 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14501 done; \
d32ab992 14502 echo "Doing TAGS in hello" ; \
215c351a 14503 (cd $(HOST_SUBDIR)/hello && \
1358ccea
NN
14504 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14505 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14506 "RANLIB=$${RANLIB}" \
14507 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14508 TAGS) \
1358ccea
NN
14509 || exit 1
14510
d32ab992 14511@endif hello
1358ccea 14512
d32ab992
PB
14513.PHONY: maybe-install-info-hello install-info-hello
14514maybe-install-info-hello:
14515@if hello
14516maybe-install-info-hello: install-info-hello
1358ccea 14517
d32ab992
PB
14518install-info-hello: \
14519 configure-hello \
05750653 14520 info-hello
f41d6665 14521 @: $(MAKE); $(unstage)
d32ab992 14522 @[ -f ./hello/Makefile ] || exit 0; \
8c90b13a
L
14523 r=`${PWD_COMMAND}`; export r; \
14524 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14525 $(HOST_EXPORTS) \
d32ab992 14526 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14527 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14528 done; \
d32ab992 14529 echo "Doing install-info in hello" ; \
215c351a 14530 (cd $(HOST_SUBDIR)/hello && \
1358ccea
NN
14531 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14532 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14533 "RANLIB=$${RANLIB}" \
14534 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14535 install-info) \
1358ccea
NN
14536 || exit 1
14537
d32ab992 14538@endif hello
1358ccea 14539
65d6e994
CD
14540.PHONY: maybe-install-html-hello install-html-hello
14541maybe-install-html-hello:
14542@if hello
14543maybe-install-html-hello: install-html-hello
14544
14545install-html-hello: \
14546 configure-hello \
14547 html-hello
14548 @: $(MAKE); $(unstage)
14549 @[ -f ./hello/Makefile ] || exit 0; \
14550 r=`${PWD_COMMAND}`; export r; \
14551 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14552 $(HOST_EXPORTS) \
14553 for flag in $(EXTRA_HOST_FLAGS) ; do \
14554 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14555 done; \
14556 echo "Doing install-html in hello" ; \
14557 (cd $(HOST_SUBDIR)/hello && \
14558 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14559 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14560 "RANLIB=$${RANLIB}" \
14561 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14562 install-html) \
14563 || exit 1
14564
14565@endif hello
14566
d32ab992
PB
14567.PHONY: maybe-installcheck-hello installcheck-hello
14568maybe-installcheck-hello:
14569@if hello
14570maybe-installcheck-hello: installcheck-hello
1358ccea 14571
d32ab992 14572installcheck-hello: \
05750653 14573 configure-hello
f41d6665 14574 @: $(MAKE); $(unstage)
d32ab992 14575 @[ -f ./hello/Makefile ] || exit 0; \
8c90b13a
L
14576 r=`${PWD_COMMAND}`; export r; \
14577 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14578 $(HOST_EXPORTS) \
d32ab992 14579 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14580 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14581 done; \
d32ab992 14582 echo "Doing installcheck in hello" ; \
215c351a 14583 (cd $(HOST_SUBDIR)/hello && \
1358ccea
NN
14584 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14585 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14586 "RANLIB=$${RANLIB}" \
14587 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14588 installcheck) \
1358ccea
NN
14589 || exit 1
14590
d32ab992 14591@endif hello
1358ccea 14592
d32ab992
PB
14593.PHONY: maybe-mostlyclean-hello mostlyclean-hello
14594maybe-mostlyclean-hello:
14595@if hello
14596maybe-mostlyclean-hello: mostlyclean-hello
1358ccea 14597
05750653 14598mostlyclean-hello:
f41d6665 14599 @: $(MAKE); $(unstage)
d32ab992 14600 @[ -f ./hello/Makefile ] || exit 0; \
8c90b13a
L
14601 r=`${PWD_COMMAND}`; export r; \
14602 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14603 $(HOST_EXPORTS) \
d32ab992 14604 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14605 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14606 done; \
d32ab992 14607 echo "Doing mostlyclean in hello" ; \
215c351a 14608 (cd $(HOST_SUBDIR)/hello && \
1358ccea
NN
14609 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14610 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14611 "RANLIB=$${RANLIB}" \
14612 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14613 mostlyclean) \
1358ccea
NN
14614 || exit 1
14615
d32ab992 14616@endif hello
1358ccea 14617
d32ab992
PB
14618.PHONY: maybe-clean-hello clean-hello
14619maybe-clean-hello:
14620@if hello
14621maybe-clean-hello: clean-hello
1358ccea 14622
05750653 14623clean-hello:
f41d6665 14624 @: $(MAKE); $(unstage)
d32ab992 14625 @[ -f ./hello/Makefile ] || exit 0; \
8c90b13a
L
14626 r=`${PWD_COMMAND}`; export r; \
14627 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14628 $(HOST_EXPORTS) \
d32ab992 14629 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14630 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14631 done; \
d32ab992 14632 echo "Doing clean in hello" ; \
215c351a 14633 (cd $(HOST_SUBDIR)/hello && \
1358ccea
NN
14634 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14635 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14636 "RANLIB=$${RANLIB}" \
14637 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14638 clean) \
1358ccea
NN
14639 || exit 1
14640
d32ab992 14641@endif hello
1358ccea 14642
d32ab992
PB
14643.PHONY: maybe-distclean-hello distclean-hello
14644maybe-distclean-hello:
14645@if hello
14646maybe-distclean-hello: distclean-hello
1358ccea 14647
05750653 14648distclean-hello:
f41d6665 14649 @: $(MAKE); $(unstage)
d32ab992 14650 @[ -f ./hello/Makefile ] || exit 0; \
8c90b13a
L
14651 r=`${PWD_COMMAND}`; export r; \
14652 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14653 $(HOST_EXPORTS) \
d32ab992 14654 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14655 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14656 done; \
d32ab992 14657 echo "Doing distclean in hello" ; \
215c351a 14658 (cd $(HOST_SUBDIR)/hello && \
1358ccea
NN
14659 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14660 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14661 "RANLIB=$${RANLIB}" \
14662 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14663 distclean) \
1358ccea
NN
14664 || exit 1
14665
d32ab992 14666@endif hello
1358ccea 14667
d32ab992
PB
14668.PHONY: maybe-maintainer-clean-hello maintainer-clean-hello
14669maybe-maintainer-clean-hello:
14670@if hello
14671maybe-maintainer-clean-hello: maintainer-clean-hello
1358ccea 14672
05750653 14673maintainer-clean-hello:
f41d6665 14674 @: $(MAKE); $(unstage)
d32ab992 14675 @[ -f ./hello/Makefile ] || exit 0; \
8c90b13a
L
14676 r=`${PWD_COMMAND}`; export r; \
14677 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14678 $(HOST_EXPORTS) \
d32ab992 14679 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14680 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14681 done; \
d32ab992 14682 echo "Doing maintainer-clean in hello" ; \
215c351a 14683 (cd $(HOST_SUBDIR)/hello && \
1358ccea
NN
14684 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14685 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14686 "RANLIB=$${RANLIB}" \
14687 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14688 maintainer-clean) \
1358ccea
NN
14689 || exit 1
14690
d32ab992 14691@endif hello
1358ccea 14692
1358ccea 14693
25b42232 14694
d32ab992
PB
14695.PHONY: configure-indent maybe-configure-indent
14696maybe-configure-indent:
3ff3adad
PB
14697@if gcc-bootstrap
14698configure-indent: stage_current
14699@endif gcc-bootstrap
d32ab992
PB
14700@if indent
14701maybe-configure-indent: configure-indent
cc11cc9b 14702configure-indent:
f41d6665 14703 @: $(MAKE); $(unstage)
cc11cc9b 14704 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 14705 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
14706 test ! -f $(HOST_SUBDIR)/indent/Makefile || exit 0; \
14707 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/indent ; \
4fc4dd12 14708 $(HOST_EXPORTS) \
25b42232
PB
14709 echo Configuring in $(HOST_SUBDIR)/indent; \
14710 cd "$(HOST_SUBDIR)/indent" || exit 1; \
295f4e42 14711 case $(srcdir) in \
215c351a
PB
14712 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
14713 *) topdir=`echo $(HOST_SUBDIR)/indent/ | \
14714 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 14715 esac; \
215c351a
PB
14716 srcdiroption="--srcdir=$${topdir}/indent"; \
14717 libsrcdir="$$s/indent"; \
295f4e42 14718 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 14719 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 14720 || exit 1
d32ab992 14721@endif indent
1358ccea 14722
25b42232
PB
14723
14724
ce406537
PB
14725
14726
d32ab992
PB
14727.PHONY: all-indent maybe-all-indent
14728maybe-all-indent:
3ff3adad
PB
14729@if gcc-bootstrap
14730all-indent: stage_current
14731@endif gcc-bootstrap
d32ab992 14732@if indent
7e0b5752 14733TARGET-indent=all
d32ab992
PB
14734maybe-all-indent: all-indent
14735all-indent: configure-indent
f41d6665 14736 @: $(MAKE); $(unstage)
295f4e42
NN
14737 @r=`${PWD_COMMAND}`; export r; \
14738 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14739 $(HOST_EXPORTS) \
215c351a
PB
14740 (cd $(HOST_SUBDIR)/indent && \
14741 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-indent))
d32ab992 14742@endif indent
1358ccea 14743
25b42232 14744
ce406537
PB
14745
14746
d32ab992
PB
14747.PHONY: check-indent maybe-check-indent
14748maybe-check-indent:
14749@if indent
14750maybe-check-indent: check-indent
1358ccea 14751
d32ab992 14752check-indent:
f41d6665 14753 @: $(MAKE); $(unstage)
295f4e42 14754 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 14755 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14756 $(HOST_EXPORTS) \
215c351a
PB
14757 (cd $(HOST_SUBDIR)/indent && \
14758 $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 14759
d32ab992 14760@endif indent
1358ccea 14761
d32ab992
PB
14762.PHONY: install-indent maybe-install-indent
14763maybe-install-indent:
14764@if indent
14765maybe-install-indent: install-indent
1358ccea 14766
d32ab992 14767install-indent: installdirs
f41d6665 14768 @: $(MAKE); $(unstage)
295f4e42 14769 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 14770 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14771 $(HOST_EXPORTS) \
215c351a 14772 (cd $(HOST_SUBDIR)/indent && \
ace9ac7b 14773 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 14774
d32ab992 14775@endif indent
1358ccea 14776
295f4e42 14777# Other targets (info, dvi, etc.)
1358ccea 14778
d32ab992
PB
14779.PHONY: maybe-info-indent info-indent
14780maybe-info-indent:
14781@if indent
14782maybe-info-indent: info-indent
295f4e42 14783
d32ab992 14784info-indent: \
05750653 14785 configure-indent
f41d6665 14786 @: $(MAKE); $(unstage)
d32ab992 14787 @[ -f ./indent/Makefile ] || exit 0; \
8c90b13a
L
14788 r=`${PWD_COMMAND}`; export r; \
14789 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14790 $(HOST_EXPORTS) \
d32ab992 14791 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14792 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14793 done; \
d32ab992 14794 echo "Doing info in indent" ; \
215c351a 14795 (cd $(HOST_SUBDIR)/indent && \
1358ccea
NN
14796 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14797 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14798 "RANLIB=$${RANLIB}" \
14799 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14800 info) \
1358ccea
NN
14801 || exit 1
14802
d32ab992 14803@endif indent
1358ccea 14804
d32ab992
PB
14805.PHONY: maybe-dvi-indent dvi-indent
14806maybe-dvi-indent:
14807@if indent
14808maybe-dvi-indent: dvi-indent
1358ccea 14809
d32ab992 14810dvi-indent: \
05750653 14811 configure-indent
f41d6665 14812 @: $(MAKE); $(unstage)
d32ab992 14813 @[ -f ./indent/Makefile ] || exit 0; \
8c90b13a
L
14814 r=`${PWD_COMMAND}`; export r; \
14815 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14816 $(HOST_EXPORTS) \
d32ab992 14817 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14818 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14819 done; \
d32ab992 14820 echo "Doing dvi in indent" ; \
215c351a 14821 (cd $(HOST_SUBDIR)/indent && \
1358ccea
NN
14822 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14823 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14824 "RANLIB=$${RANLIB}" \
14825 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14826 dvi) \
1358ccea
NN
14827 || exit 1
14828
d32ab992 14829@endif indent
1358ccea 14830
f87a2b2e
MS
14831.PHONY: maybe-html-indent html-indent
14832maybe-html-indent:
14833@if indent
14834maybe-html-indent: html-indent
14835
14836html-indent: \
05750653 14837 configure-indent
f41d6665 14838 @: $(MAKE); $(unstage)
f87a2b2e
MS
14839 @[ -f ./indent/Makefile ] || exit 0; \
14840 r=`${PWD_COMMAND}`; export r; \
14841 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
14842 $(HOST_EXPORTS) \
14843 for flag in $(EXTRA_HOST_FLAGS) ; do \
14844 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14845 done; \
14846 echo "Doing html in indent" ; \
215c351a 14847 (cd $(HOST_SUBDIR)/indent && \
f87a2b2e
MS
14848 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14849 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14850 "RANLIB=$${RANLIB}" \
14851 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14852 html) \
14853 || exit 1
14854
14855@endif indent
14856
d32ab992
PB
14857.PHONY: maybe-TAGS-indent TAGS-indent
14858maybe-TAGS-indent:
14859@if indent
14860maybe-TAGS-indent: TAGS-indent
1358ccea 14861
d32ab992 14862TAGS-indent: \
05750653 14863 configure-indent
f41d6665 14864 @: $(MAKE); $(unstage)
d32ab992 14865 @[ -f ./indent/Makefile ] || exit 0; \
8c90b13a
L
14866 r=`${PWD_COMMAND}`; export r; \
14867 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14868 $(HOST_EXPORTS) \
d32ab992 14869 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14870 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14871 done; \
d32ab992 14872 echo "Doing TAGS in indent" ; \
215c351a 14873 (cd $(HOST_SUBDIR)/indent && \
1358ccea
NN
14874 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14875 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14876 "RANLIB=$${RANLIB}" \
14877 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14878 TAGS) \
1358ccea
NN
14879 || exit 1
14880
d32ab992 14881@endif indent
1358ccea 14882
d32ab992
PB
14883.PHONY: maybe-install-info-indent install-info-indent
14884maybe-install-info-indent:
14885@if indent
14886maybe-install-info-indent: install-info-indent
1358ccea 14887
d32ab992
PB
14888install-info-indent: \
14889 configure-indent \
05750653 14890 info-indent
f41d6665 14891 @: $(MAKE); $(unstage)
d32ab992 14892 @[ -f ./indent/Makefile ] || exit 0; \
8c90b13a
L
14893 r=`${PWD_COMMAND}`; export r; \
14894 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14895 $(HOST_EXPORTS) \
d32ab992 14896 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14897 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14898 done; \
d32ab992 14899 echo "Doing install-info in indent" ; \
215c351a 14900 (cd $(HOST_SUBDIR)/indent && \
1358ccea
NN
14901 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14902 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14903 "RANLIB=$${RANLIB}" \
14904 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14905 install-info) \
1358ccea
NN
14906 || exit 1
14907
d32ab992 14908@endif indent
1358ccea 14909
65d6e994
CD
14910.PHONY: maybe-install-html-indent install-html-indent
14911maybe-install-html-indent:
14912@if indent
14913maybe-install-html-indent: install-html-indent
14914
14915install-html-indent: \
14916 configure-indent \
14917 html-indent
14918 @: $(MAKE); $(unstage)
14919 @[ -f ./indent/Makefile ] || exit 0; \
14920 r=`${PWD_COMMAND}`; export r; \
14921 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14922 $(HOST_EXPORTS) \
14923 for flag in $(EXTRA_HOST_FLAGS) ; do \
14924 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14925 done; \
14926 echo "Doing install-html in indent" ; \
14927 (cd $(HOST_SUBDIR)/indent && \
14928 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14929 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14930 "RANLIB=$${RANLIB}" \
14931 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14932 install-html) \
14933 || exit 1
14934
14935@endif indent
14936
d32ab992
PB
14937.PHONY: maybe-installcheck-indent installcheck-indent
14938maybe-installcheck-indent:
14939@if indent
14940maybe-installcheck-indent: installcheck-indent
1358ccea 14941
d32ab992 14942installcheck-indent: \
05750653 14943 configure-indent
f41d6665 14944 @: $(MAKE); $(unstage)
d32ab992 14945 @[ -f ./indent/Makefile ] || exit 0; \
8c90b13a
L
14946 r=`${PWD_COMMAND}`; export r; \
14947 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14948 $(HOST_EXPORTS) \
d32ab992 14949 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14950 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14951 done; \
d32ab992 14952 echo "Doing installcheck in indent" ; \
215c351a 14953 (cd $(HOST_SUBDIR)/indent && \
1358ccea
NN
14954 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14955 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14956 "RANLIB=$${RANLIB}" \
14957 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14958 installcheck) \
1358ccea
NN
14959 || exit 1
14960
d32ab992 14961@endif indent
1358ccea 14962
d32ab992
PB
14963.PHONY: maybe-mostlyclean-indent mostlyclean-indent
14964maybe-mostlyclean-indent:
14965@if indent
14966maybe-mostlyclean-indent: mostlyclean-indent
1358ccea 14967
05750653 14968mostlyclean-indent:
f41d6665 14969 @: $(MAKE); $(unstage)
d32ab992 14970 @[ -f ./indent/Makefile ] || exit 0; \
8c90b13a
L
14971 r=`${PWD_COMMAND}`; export r; \
14972 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14973 $(HOST_EXPORTS) \
d32ab992 14974 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14975 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14976 done; \
d32ab992 14977 echo "Doing mostlyclean in indent" ; \
215c351a 14978 (cd $(HOST_SUBDIR)/indent && \
1358ccea
NN
14979 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14980 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14981 "RANLIB=$${RANLIB}" \
14982 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14983 mostlyclean) \
1358ccea
NN
14984 || exit 1
14985
d32ab992 14986@endif indent
1358ccea 14987
d32ab992
PB
14988.PHONY: maybe-clean-indent clean-indent
14989maybe-clean-indent:
14990@if indent
14991maybe-clean-indent: clean-indent
1358ccea 14992
05750653 14993clean-indent:
f41d6665 14994 @: $(MAKE); $(unstage)
d32ab992 14995 @[ -f ./indent/Makefile ] || exit 0; \
8c90b13a
L
14996 r=`${PWD_COMMAND}`; export r; \
14997 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14998 $(HOST_EXPORTS) \
d32ab992 14999 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
15000 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15001 done; \
d32ab992 15002 echo "Doing clean in indent" ; \
215c351a 15003 (cd $(HOST_SUBDIR)/indent && \
1358ccea
NN
15004 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15005 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15006 "RANLIB=$${RANLIB}" \
15007 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15008 clean) \
1358ccea
NN
15009 || exit 1
15010
d32ab992 15011@endif indent
1358ccea 15012
d32ab992
PB
15013.PHONY: maybe-distclean-indent distclean-indent
15014maybe-distclean-indent:
15015@if indent
15016maybe-distclean-indent: distclean-indent
1358ccea 15017
05750653 15018distclean-indent:
f41d6665 15019 @: $(MAKE); $(unstage)
d32ab992 15020 @[ -f ./indent/Makefile ] || exit 0; \
8c90b13a
L
15021 r=`${PWD_COMMAND}`; export r; \
15022 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15023 $(HOST_EXPORTS) \
d32ab992 15024 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
15025 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15026 done; \
d32ab992 15027 echo "Doing distclean in indent" ; \
215c351a 15028 (cd $(HOST_SUBDIR)/indent && \
1358ccea
NN
15029 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15030 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15031 "RANLIB=$${RANLIB}" \
15032 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15033 distclean) \
1358ccea
NN
15034 || exit 1
15035
d32ab992 15036@endif indent
1358ccea 15037
d32ab992
PB
15038.PHONY: maybe-maintainer-clean-indent maintainer-clean-indent
15039maybe-maintainer-clean-indent:
15040@if indent
15041maybe-maintainer-clean-indent: maintainer-clean-indent
1358ccea 15042
05750653 15043maintainer-clean-indent:
f41d6665 15044 @: $(MAKE); $(unstage)
d32ab992 15045 @[ -f ./indent/Makefile ] || exit 0; \
8c90b13a
L
15046 r=`${PWD_COMMAND}`; export r; \
15047 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15048 $(HOST_EXPORTS) \
d32ab992 15049 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
15050 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15051 done; \
d32ab992 15052 echo "Doing maintainer-clean in indent" ; \
215c351a 15053 (cd $(HOST_SUBDIR)/indent && \
1358ccea
NN
15054 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15055 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15056 "RANLIB=$${RANLIB}" \
15057 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15058 maintainer-clean) \
1358ccea
NN
15059 || exit 1
15060
d32ab992 15061@endif indent
1358ccea 15062
1358ccea 15063
25b42232 15064
d32ab992
PB
15065.PHONY: configure-intl maybe-configure-intl
15066maybe-configure-intl:
3ff3adad
PB
15067@if gcc-bootstrap
15068configure-intl: stage_current
15069@endif gcc-bootstrap
d32ab992
PB
15070@if intl
15071maybe-configure-intl: configure-intl
cc11cc9b 15072configure-intl:
cc11cc9b
PB
15073 @r=`${PWD_COMMAND}`; export r; \
15074 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
215c351a
PB
15075 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
15076 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
4fc4dd12 15077 $(HOST_EXPORTS) \
25b42232
PB
15078 echo Configuring in $(HOST_SUBDIR)/intl; \
15079 cd "$(HOST_SUBDIR)/intl" || exit 1; \
295f4e42 15080 case $(srcdir) in \
215c351a
PB
15081 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15082 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
15083 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 15084 esac; \
215c351a
PB
15085 srcdiroption="--srcdir=$${topdir}/intl"; \
15086 libsrcdir="$$s/intl"; \
295f4e42 15087 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 15088 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 15089 || exit 1
d32ab992 15090@endif intl
1358ccea 15091
25b42232
PB
15092
15093
ce406537
PB
15094.PHONY: configure-stage1-intl maybe-configure-stage1-intl
15095maybe-configure-stage1-intl:
15096@if intl-bootstrap
15097maybe-configure-stage1-intl: configure-stage1-intl
f41d6665 15098configure-stage1-intl:
cc11cc9b 15099 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
f41d6665 15100 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
cc11cc9b
PB
15101 @r=`${PWD_COMMAND}`; export r; \
15102 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 15103 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
ce406537
PB
15104 $(HOST_EXPORTS) \
15105 echo Configuring stage 1 in $(HOST_SUBDIR)/intl ; \
f41d6665 15106 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
ce406537
PB
15107 cd $(HOST_SUBDIR)/intl || exit 1; \
15108 case $(srcdir) in \
15109 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15110 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
15111 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15112 esac; \
15113 srcdiroption="--srcdir=$${topdir}/intl"; \
15114 libsrcdir="$$s/intl"; \
15115 $(SHELL) $${libsrcdir}/configure \
15116 $(HOST_CONFIGARGS) $${srcdiroption} \
15117 --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
15118@endif intl-bootstrap
15119
15120.PHONY: configure-stage2-intl maybe-configure-stage2-intl
15121maybe-configure-stage2-intl:
15122@if intl-bootstrap
15123maybe-configure-stage2-intl: configure-stage2-intl
f41d6665 15124configure-stage2-intl:
cc11cc9b 15125 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
f41d6665 15126 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
cc11cc9b
PB
15127 @r=`${PWD_COMMAND}`; export r; \
15128 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 15129 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
ce406537
PB
15130 $(HOST_EXPORTS) \
15131 $(POSTSTAGE1_HOST_EXPORTS) \
15132 echo Configuring stage 2 in $(HOST_SUBDIR)/intl ; \
f41d6665 15133 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
ce406537
PB
15134 cd $(HOST_SUBDIR)/intl || exit 1; \
15135 case $(srcdir) in \
15136 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15137 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
15138 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15139 esac; \
15140 srcdiroption="--srcdir=$${topdir}/intl"; \
15141 libsrcdir="$$s/intl"; \
15142 $(SHELL) $${libsrcdir}/configure \
15143 $(HOST_CONFIGARGS) $${srcdiroption} \
15144 @stage2_werror_flag@
15145@endif intl-bootstrap
15146
15147.PHONY: configure-stage3-intl maybe-configure-stage3-intl
15148maybe-configure-stage3-intl:
15149@if intl-bootstrap
15150maybe-configure-stage3-intl: configure-stage3-intl
f41d6665 15151configure-stage3-intl:
cc11cc9b 15152 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
f41d6665 15153 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
cc11cc9b
PB
15154 @r=`${PWD_COMMAND}`; export r; \
15155 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 15156 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
ce406537
PB
15157 $(HOST_EXPORTS) \
15158 $(POSTSTAGE1_HOST_EXPORTS) \
15159 echo Configuring stage 3 in $(HOST_SUBDIR)/intl ; \
f41d6665 15160 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
ce406537
PB
15161 cd $(HOST_SUBDIR)/intl || exit 1; \
15162 case $(srcdir) in \
15163 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15164 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
15165 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15166 esac; \
15167 srcdiroption="--srcdir=$${topdir}/intl"; \
15168 libsrcdir="$$s/intl"; \
15169 $(SHELL) $${libsrcdir}/configure \
15170 $(HOST_CONFIGARGS) $${srcdiroption} \
15171 @stage2_werror_flag@
15172@endif intl-bootstrap
15173
15174.PHONY: configure-stage4-intl maybe-configure-stage4-intl
15175maybe-configure-stage4-intl:
15176@if intl-bootstrap
15177maybe-configure-stage4-intl: configure-stage4-intl
f41d6665 15178configure-stage4-intl:
cc11cc9b 15179 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
f41d6665 15180 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
cc11cc9b
PB
15181 @r=`${PWD_COMMAND}`; export r; \
15182 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 15183 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
ce406537
PB
15184 $(HOST_EXPORTS) \
15185 $(POSTSTAGE1_HOST_EXPORTS) \
15186 echo Configuring stage 4 in $(HOST_SUBDIR)/intl ; \
f41d6665 15187 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
ce406537
PB
15188 cd $(HOST_SUBDIR)/intl || exit 1; \
15189 case $(srcdir) in \
15190 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15191 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
15192 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15193 esac; \
15194 srcdiroption="--srcdir=$${topdir}/intl"; \
15195 libsrcdir="$$s/intl"; \
15196 $(SHELL) $${libsrcdir}/configure \
15197 $(HOST_CONFIGARGS) $${srcdiroption} \
15198 @stage2_werror_flag@
15199@endif intl-bootstrap
15200
15201.PHONY: configure-stageprofile-intl maybe-configure-stageprofile-intl
15202maybe-configure-stageprofile-intl:
15203@if intl-bootstrap
15204maybe-configure-stageprofile-intl: configure-stageprofile-intl
f41d6665 15205configure-stageprofile-intl:
cc11cc9b 15206 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
f41d6665 15207 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
cc11cc9b
PB
15208 @r=`${PWD_COMMAND}`; export r; \
15209 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 15210 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
ce406537
PB
15211 $(HOST_EXPORTS) \
15212 $(POSTSTAGE1_HOST_EXPORTS) \
15213 echo Configuring stage profile in $(HOST_SUBDIR)/intl ; \
f41d6665 15214 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
ce406537
PB
15215 cd $(HOST_SUBDIR)/intl || exit 1; \
15216 case $(srcdir) in \
15217 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15218 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
15219 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15220 esac; \
15221 srcdiroption="--srcdir=$${topdir}/intl"; \
15222 libsrcdir="$$s/intl"; \
15223 $(SHELL) $${libsrcdir}/configure \
15224 $(HOST_CONFIGARGS) $${srcdiroption} \
15225 @stage2_werror_flag@
15226@endif intl-bootstrap
15227
15228.PHONY: configure-stagefeedback-intl maybe-configure-stagefeedback-intl
15229maybe-configure-stagefeedback-intl:
15230@if intl-bootstrap
15231maybe-configure-stagefeedback-intl: configure-stagefeedback-intl
f41d6665 15232configure-stagefeedback-intl:
cc11cc9b 15233 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
f41d6665 15234 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
cc11cc9b
PB
15235 @r=`${PWD_COMMAND}`; export r; \
15236 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 15237 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
ce406537
PB
15238 $(HOST_EXPORTS) \
15239 $(POSTSTAGE1_HOST_EXPORTS) \
15240 echo Configuring stage feedback in $(HOST_SUBDIR)/intl ; \
f41d6665 15241 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
ce406537
PB
15242 cd $(HOST_SUBDIR)/intl || exit 1; \
15243 case $(srcdir) in \
15244 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15245 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
15246 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15247 esac; \
15248 srcdiroption="--srcdir=$${topdir}/intl"; \
15249 libsrcdir="$$s/intl"; \
15250 $(SHELL) $${libsrcdir}/configure \
15251 $(HOST_CONFIGARGS) $${srcdiroption} \
15252 @stage2_werror_flag@
15253@endif intl-bootstrap
15254
15255
15256
15257
15258
d32ab992
PB
15259.PHONY: all-intl maybe-all-intl
15260maybe-all-intl:
3ff3adad
PB
15261@if gcc-bootstrap
15262all-intl: stage_current
15263@endif gcc-bootstrap
d32ab992 15264@if intl
7e0b5752 15265TARGET-intl=all
d32ab992
PB
15266maybe-all-intl: all-intl
15267all-intl: configure-intl
cc11cc9b 15268 @r=`${PWD_COMMAND}`; export r; \
295f4e42 15269 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15270 $(HOST_EXPORTS) \
215c351a
PB
15271 (cd $(HOST_SUBDIR)/intl && \
15272 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-intl))
d32ab992 15273@endif intl
295f4e42 15274
25b42232 15275
ce406537
PB
15276
15277.PHONY: all-stage1-intl maybe-all-stage1-intl
15278.PHONY: clean-stage1-intl maybe-clean-stage1-intl
15279maybe-all-stage1-intl:
15280maybe-clean-stage1-intl:
15281@if intl-bootstrap
15282maybe-all-stage1-intl: all-stage1-intl
15283all-stage1: all-stage1-intl
1061f99e 15284TARGET-stage1-intl = $(TARGET-intl)
ce406537 15285all-stage1-intl: configure-stage1-intl
cc11cc9b 15286 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
ce406537
PB
15287 @r=`${PWD_COMMAND}`; export r; \
15288 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15289 $(HOST_EXPORTS) \
15290 cd $(HOST_SUBDIR)/intl && \
cc11cc9b 15291 $(MAKE) $(FLAGS_TO_PASS) CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" \
1061f99e 15292 $(TARGET-stage1-intl)
ce406537
PB
15293
15294maybe-clean-stage1-intl: clean-stage1-intl
15295clean-stage1: clean-stage1-intl
15296clean-stage1-intl:
15297 @[ -f $(HOST_SUBDIR)/intl/Makefile ] || [ -f $(HOST_SUBDIR)/stage1-intl/Makefile ] \
15298 || exit 0 ; \
cc11cc9b 15299 [ $(current_stage) = stage1 ] || $(MAKE) stage1-start; \
ce406537
PB
15300 cd $(HOST_SUBDIR)/intl && \
15301 $(MAKE) $(FLAGS_TO_PASS) \
cc11cc9b 15302 CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" clean
ce406537
PB
15303@endif intl-bootstrap
15304
15305
15306.PHONY: all-stage2-intl maybe-all-stage2-intl
15307.PHONY: clean-stage2-intl maybe-clean-stage2-intl
15308maybe-all-stage2-intl:
15309maybe-clean-stage2-intl:
15310@if intl-bootstrap
15311maybe-all-stage2-intl: all-stage2-intl
15312all-stage2: all-stage2-intl
1061f99e 15313TARGET-stage2-intl = $(TARGET-intl)
ce406537 15314all-stage2-intl: configure-stage2-intl
cc11cc9b 15315 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
ce406537
PB
15316 @r=`${PWD_COMMAND}`; export r; \
15317 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15318 $(HOST_EXPORTS) \
15319 $(POSTSTAGE1_HOST_EXPORTS) \
15320 cd $(HOST_SUBDIR)/intl && \
1061f99e
PB
15321 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
15322 $(TARGET-stage2-intl)
ce406537
PB
15323
15324maybe-clean-stage2-intl: clean-stage2-intl
15325clean-stage2: clean-stage2-intl
15326clean-stage2-intl:
15327 @[ -f $(HOST_SUBDIR)/intl/Makefile ] || [ -f $(HOST_SUBDIR)/stage2-intl/Makefile ] \
15328 || exit 0 ; \
cc11cc9b 15329 [ $(current_stage) = stage2 ] || $(MAKE) stage2-start; \
ce406537
PB
15330 cd $(HOST_SUBDIR)/intl && \
15331 $(MAKE) $(FLAGS_TO_PASS) \
15332 $(POSTSTAGE1_FLAGS_TO_PASS) \
15333 clean
15334@endif intl-bootstrap
15335
15336
15337.PHONY: all-stage3-intl maybe-all-stage3-intl
15338.PHONY: clean-stage3-intl maybe-clean-stage3-intl
15339maybe-all-stage3-intl:
15340maybe-clean-stage3-intl:
15341@if intl-bootstrap
15342maybe-all-stage3-intl: all-stage3-intl
15343all-stage3: all-stage3-intl
1061f99e 15344TARGET-stage3-intl = $(TARGET-intl)
ce406537 15345all-stage3-intl: configure-stage3-intl
cc11cc9b 15346 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
ce406537
PB
15347 @r=`${PWD_COMMAND}`; export r; \
15348 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15349 $(HOST_EXPORTS) \
15350 $(POSTSTAGE1_HOST_EXPORTS) \
15351 cd $(HOST_SUBDIR)/intl && \
1061f99e
PB
15352 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
15353 $(TARGET-stage3-intl)
ce406537
PB
15354
15355maybe-clean-stage3-intl: clean-stage3-intl
15356clean-stage3: clean-stage3-intl
15357clean-stage3-intl:
15358 @[ -f $(HOST_SUBDIR)/intl/Makefile ] || [ -f $(HOST_SUBDIR)/stage3-intl/Makefile ] \
15359 || exit 0 ; \
cc11cc9b 15360 [ $(current_stage) = stage3 ] || $(MAKE) stage3-start; \
ce406537
PB
15361 cd $(HOST_SUBDIR)/intl && \
15362 $(MAKE) $(FLAGS_TO_PASS) \
15363 $(POSTSTAGE1_FLAGS_TO_PASS) \
15364 clean
15365@endif intl-bootstrap
15366
15367
15368.PHONY: all-stage4-intl maybe-all-stage4-intl
15369.PHONY: clean-stage4-intl maybe-clean-stage4-intl
15370maybe-all-stage4-intl:
15371maybe-clean-stage4-intl:
15372@if intl-bootstrap
15373maybe-all-stage4-intl: all-stage4-intl
15374all-stage4: all-stage4-intl
1061f99e 15375TARGET-stage4-intl = $(TARGET-intl)
ce406537 15376all-stage4-intl: configure-stage4-intl
cc11cc9b 15377 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
ce406537
PB
15378 @r=`${PWD_COMMAND}`; export r; \
15379 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15380 $(HOST_EXPORTS) \
15381 $(POSTSTAGE1_HOST_EXPORTS) \
15382 cd $(HOST_SUBDIR)/intl && \
1061f99e
PB
15383 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
15384 $(TARGET-stage4-intl)
ce406537
PB
15385
15386maybe-clean-stage4-intl: clean-stage4-intl
15387clean-stage4: clean-stage4-intl
15388clean-stage4-intl:
15389 @[ -f $(HOST_SUBDIR)/intl/Makefile ] || [ -f $(HOST_SUBDIR)/stage4-intl/Makefile ] \
15390 || exit 0 ; \
cc11cc9b 15391 [ $(current_stage) = stage4 ] || $(MAKE) stage4-start; \
ce406537
PB
15392 cd $(HOST_SUBDIR)/intl && \
15393 $(MAKE) $(FLAGS_TO_PASS) \
15394 $(POSTSTAGE1_FLAGS_TO_PASS) \
15395 clean
15396@endif intl-bootstrap
15397
15398
15399.PHONY: all-stageprofile-intl maybe-all-stageprofile-intl
15400.PHONY: clean-stageprofile-intl maybe-clean-stageprofile-intl
15401maybe-all-stageprofile-intl:
15402maybe-clean-stageprofile-intl:
15403@if intl-bootstrap
15404maybe-all-stageprofile-intl: all-stageprofile-intl
15405all-stageprofile: all-stageprofile-intl
1061f99e 15406TARGET-stageprofile-intl = $(TARGET-intl)
ce406537 15407all-stageprofile-intl: configure-stageprofile-intl
cc11cc9b 15408 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
ce406537
PB
15409 @r=`${PWD_COMMAND}`; export r; \
15410 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15411 $(HOST_EXPORTS) \
15412 $(POSTSTAGE1_HOST_EXPORTS) \
15413 cd $(HOST_SUBDIR)/intl && \
1061f99e
PB
15414 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" \
15415 $(TARGET-stageprofile-intl)
ce406537
PB
15416
15417maybe-clean-stageprofile-intl: clean-stageprofile-intl
15418clean-stageprofile: clean-stageprofile-intl
15419clean-stageprofile-intl:
15420 @[ -f $(HOST_SUBDIR)/intl/Makefile ] || [ -f $(HOST_SUBDIR)/stageprofile-intl/Makefile ] \
15421 || exit 0 ; \
cc11cc9b 15422 [ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start; \
ce406537
PB
15423 cd $(HOST_SUBDIR)/intl && \
15424 $(MAKE) $(FLAGS_TO_PASS) \
15425 $(POSTSTAGE1_FLAGS_TO_PASS) \
15426 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean
15427@endif intl-bootstrap
15428
15429
15430.PHONY: all-stagefeedback-intl maybe-all-stagefeedback-intl
15431.PHONY: clean-stagefeedback-intl maybe-clean-stagefeedback-intl
15432maybe-all-stagefeedback-intl:
15433maybe-clean-stagefeedback-intl:
15434@if intl-bootstrap
15435maybe-all-stagefeedback-intl: all-stagefeedback-intl
15436all-stagefeedback: all-stagefeedback-intl
1061f99e 15437TARGET-stagefeedback-intl = $(TARGET-intl)
ce406537 15438all-stagefeedback-intl: configure-stagefeedback-intl
cc11cc9b 15439 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
ce406537
PB
15440 @r=`${PWD_COMMAND}`; export r; \
15441 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15442 $(HOST_EXPORTS) \
15443 $(POSTSTAGE1_HOST_EXPORTS) \
15444 cd $(HOST_SUBDIR)/intl && \
1061f99e
PB
15445 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-use" \
15446 $(TARGET-stagefeedback-intl)
ce406537
PB
15447
15448maybe-clean-stagefeedback-intl: clean-stagefeedback-intl
15449clean-stagefeedback: clean-stagefeedback-intl
15450clean-stagefeedback-intl:
15451 @[ -f $(HOST_SUBDIR)/intl/Makefile ] || [ -f $(HOST_SUBDIR)/stagefeedback-intl/Makefile ] \
15452 || exit 0 ; \
cc11cc9b 15453 [ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start; \
ce406537
PB
15454 cd $(HOST_SUBDIR)/intl && \
15455 $(MAKE) $(FLAGS_TO_PASS) \
15456 $(POSTSTAGE1_FLAGS_TO_PASS) \
15457 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean
15458@endif intl-bootstrap
15459
15460
15461
15462
15463
d32ab992
PB
15464.PHONY: check-intl maybe-check-intl
15465maybe-check-intl:
15466@if intl
15467maybe-check-intl: check-intl
295f4e42 15468
d32ab992 15469check-intl:
f41d6665 15470 @: $(MAKE); $(unstage)
295f4e42
NN
15471 @r=`${PWD_COMMAND}`; export r; \
15472 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15473 $(HOST_EXPORTS) \
215c351a
PB
15474 (cd $(HOST_SUBDIR)/intl && \
15475 $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 15476
d32ab992 15477@endif intl
1358ccea 15478
d32ab992
PB
15479.PHONY: install-intl maybe-install-intl
15480maybe-install-intl:
15481@if intl
15482maybe-install-intl: install-intl
295f4e42 15483
d32ab992 15484install-intl: installdirs
f41d6665 15485 @: $(MAKE); $(unstage)
295f4e42 15486 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 15487 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15488 $(HOST_EXPORTS) \
215c351a 15489 (cd $(HOST_SUBDIR)/intl && \
ace9ac7b 15490 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 15491
d32ab992 15492@endif intl
1358ccea 15493
295f4e42 15494# Other targets (info, dvi, etc.)
1358ccea 15495
d32ab992
PB
15496.PHONY: maybe-info-intl info-intl
15497maybe-info-intl:
15498@if intl
15499maybe-info-intl: info-intl
295f4e42 15500
d32ab992 15501info-intl: \
05750653 15502 configure-intl
d32ab992 15503 @[ -f ./intl/Makefile ] || exit 0; \
8c90b13a
L
15504 r=`${PWD_COMMAND}`; export r; \
15505 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15506 $(HOST_EXPORTS) \
d32ab992 15507 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
15508 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15509 done; \
d32ab992 15510 echo "Doing info in intl" ; \
215c351a 15511 (cd $(HOST_SUBDIR)/intl && \
1358ccea
NN
15512 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15513 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15514 "RANLIB=$${RANLIB}" \
15515 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15516 info) \
1358ccea
NN
15517 || exit 1
15518
d32ab992 15519@endif intl
1358ccea 15520
d32ab992
PB
15521.PHONY: maybe-dvi-intl dvi-intl
15522maybe-dvi-intl:
15523@if intl
15524maybe-dvi-intl: dvi-intl
1358ccea 15525
d32ab992 15526dvi-intl: \
05750653 15527 configure-intl
d32ab992
PB
15528 @[ -f ./intl/Makefile ] || exit 0; \
15529 r=`${PWD_COMMAND}`; export r; \
8c90b13a 15530 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15531 $(HOST_EXPORTS) \
d32ab992 15532 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
15533 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15534 done; \
d32ab992 15535 echo "Doing dvi in intl" ; \
215c351a 15536 (cd $(HOST_SUBDIR)/intl && \
1358ccea
NN
15537 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15538 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15539 "RANLIB=$${RANLIB}" \
15540 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15541 dvi) \
1358ccea
NN
15542 || exit 1
15543
d32ab992 15544@endif intl
1358ccea 15545
f87a2b2e
MS
15546.PHONY: maybe-html-intl html-intl
15547maybe-html-intl:
15548@if intl
15549maybe-html-intl: html-intl
15550
15551html-intl: \
05750653 15552 configure-intl
f87a2b2e
MS
15553 @[ -f ./intl/Makefile ] || exit 0; \
15554 r=`${PWD_COMMAND}`; export r; \
15555 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
15556 $(HOST_EXPORTS) \
15557 for flag in $(EXTRA_HOST_FLAGS) ; do \
15558 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15559 done; \
15560 echo "Doing html in intl" ; \
215c351a 15561 (cd $(HOST_SUBDIR)/intl && \
f87a2b2e
MS
15562 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15563 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15564 "RANLIB=$${RANLIB}" \
15565 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15566 html) \
15567 || exit 1
15568
15569@endif intl
15570
d32ab992
PB
15571.PHONY: maybe-TAGS-intl TAGS-intl
15572maybe-TAGS-intl:
15573@if intl
15574maybe-TAGS-intl: TAGS-intl
1358ccea 15575
d32ab992 15576TAGS-intl: \
05750653 15577 configure-intl
d32ab992 15578 @[ -f ./intl/Makefile ] || exit 0; \
8c90b13a
L
15579 r=`${PWD_COMMAND}`; export r; \
15580 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15581 $(HOST_EXPORTS) \
d32ab992 15582 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
15583 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15584 done; \
d32ab992 15585 echo "Doing TAGS in intl" ; \
215c351a 15586 (cd $(HOST_SUBDIR)/intl && \
1358ccea
NN
15587 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15588 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15589 "RANLIB=$${RANLIB}" \
15590 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15591 TAGS) \
1358ccea
NN
15592 || exit 1
15593
d32ab992 15594@endif intl
1358ccea 15595
d32ab992
PB
15596.PHONY: maybe-install-info-intl install-info-intl
15597maybe-install-info-intl:
15598@if intl
15599maybe-install-info-intl: install-info-intl
1358ccea 15600
d32ab992
PB
15601install-info-intl: \
15602 configure-intl \
05750653 15603 info-intl
d32ab992 15604 @[ -f ./intl/Makefile ] || exit 0; \
8c90b13a
L
15605 r=`${PWD_COMMAND}`; export r; \
15606 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15607 $(HOST_EXPORTS) \
d32ab992 15608 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
15609 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15610 done; \
d32ab992 15611 echo "Doing install-info in intl" ; \
215c351a 15612 (cd $(HOST_SUBDIR)/intl && \
1358ccea
NN
15613 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15614 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15615 "RANLIB=$${RANLIB}" \
15616 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15617 install-info) \
1358ccea
NN
15618 || exit 1
15619
d32ab992 15620@endif intl
1358ccea 15621
65d6e994
CD
15622.PHONY: maybe-install-html-intl install-html-intl
15623maybe-install-html-intl:
15624@if intl
15625maybe-install-html-intl: install-html-intl
15626
15627install-html-intl: \
15628 configure-intl \
15629 html-intl
15630 @[ -f ./intl/Makefile ] || exit 0; \
15631 r=`${PWD_COMMAND}`; export r; \
15632 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15633 $(HOST_EXPORTS) \
15634 for flag in $(EXTRA_HOST_FLAGS) ; do \
15635 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15636 done; \
15637 echo "Doing install-html in intl" ; \
15638 (cd $(HOST_SUBDIR)/intl && \
15639 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15640 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15641 "RANLIB=$${RANLIB}" \
15642 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15643 install-html) \
15644 || exit 1
15645
15646@endif intl
15647
d32ab992
PB
15648.PHONY: maybe-installcheck-intl installcheck-intl
15649maybe-installcheck-intl:
15650@if intl
15651maybe-installcheck-intl: installcheck-intl
1358ccea 15652
d32ab992 15653installcheck-intl: \
05750653 15654 configure-intl
d32ab992 15655 @[ -f ./intl/Makefile ] || exit 0; \
8c90b13a
L
15656 r=`${PWD_COMMAND}`; export r; \
15657 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15658 $(HOST_EXPORTS) \
d32ab992 15659 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
15660 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15661 done; \
d32ab992 15662 echo "Doing installcheck in intl" ; \
215c351a 15663 (cd $(HOST_SUBDIR)/intl && \
1358ccea
NN
15664 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15665 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15666 "RANLIB=$${RANLIB}" \
15667 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15668 installcheck) \
1358ccea
NN
15669 || exit 1
15670
d32ab992 15671@endif intl
1358ccea 15672
d32ab992
PB
15673.PHONY: maybe-mostlyclean-intl mostlyclean-intl
15674maybe-mostlyclean-intl:
15675@if intl
15676maybe-mostlyclean-intl: mostlyclean-intl
1358ccea 15677
05750653 15678mostlyclean-intl:
d32ab992
PB
15679 @[ -f ./intl/Makefile ] || exit 0; \
15680 r=`${PWD_COMMAND}`; export r; \
15681 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d32ab992
PB
15682 $(HOST_EXPORTS) \
15683 for flag in $(EXTRA_HOST_FLAGS) ; do \
15684 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15685 done; \
15686 echo "Doing mostlyclean in intl" ; \
215c351a 15687 (cd $(HOST_SUBDIR)/intl && \
d32ab992
PB
15688 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15689 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15690 "RANLIB=$${RANLIB}" \
15691 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15692 mostlyclean) \
15693 || exit 1
295f4e42 15694
d32ab992 15695@endif intl
295f4e42 15696
d32ab992
PB
15697.PHONY: maybe-clean-intl clean-intl
15698maybe-clean-intl:
15699@if intl
15700maybe-clean-intl: clean-intl
295f4e42 15701
05750653 15702clean-intl:
d32ab992 15703 @[ -f ./intl/Makefile ] || exit 0; \
8c90b13a
L
15704 r=`${PWD_COMMAND}`; export r; \
15705 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15706 $(HOST_EXPORTS) \
d32ab992 15707 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
15708 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15709 done; \
d32ab992 15710 echo "Doing clean in intl" ; \
215c351a 15711 (cd $(HOST_SUBDIR)/intl && \
1358ccea
NN
15712 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15713 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15714 "RANLIB=$${RANLIB}" \
15715 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15716 clean) \
1358ccea
NN
15717 || exit 1
15718
d32ab992 15719@endif intl
1358ccea 15720
d32ab992
PB
15721.PHONY: maybe-distclean-intl distclean-intl
15722maybe-distclean-intl:
15723@if intl
15724maybe-distclean-intl: distclean-intl
1358ccea 15725
05750653 15726distclean-intl:
d32ab992 15727 @[ -f ./intl/Makefile ] || exit 0; \
8c90b13a
L
15728 r=`${PWD_COMMAND}`; export r; \
15729 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15730 $(HOST_EXPORTS) \
d32ab992 15731 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
15732 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15733 done; \
d32ab992 15734 echo "Doing distclean in intl" ; \
215c351a 15735 (cd $(HOST_SUBDIR)/intl && \
1358ccea
NN
15736 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15737 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15738 "RANLIB=$${RANLIB}" \
15739 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15740 distclean) \
1358ccea
NN
15741 || exit 1
15742
d32ab992 15743@endif intl
1358ccea 15744
d32ab992
PB
15745.PHONY: maybe-maintainer-clean-intl maintainer-clean-intl
15746maybe-maintainer-clean-intl:
15747@if intl
15748maybe-maintainer-clean-intl: maintainer-clean-intl
1358ccea 15749
05750653 15750maintainer-clean-intl:
d32ab992 15751 @[ -f ./intl/Makefile ] || exit 0; \
8c90b13a
L
15752 r=`${PWD_COMMAND}`; export r; \
15753 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15754 $(HOST_EXPORTS) \
d32ab992 15755 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
15756 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15757 done; \
d32ab992 15758 echo "Doing maintainer-clean in intl" ; \
215c351a 15759 (cd $(HOST_SUBDIR)/intl && \
1358ccea
NN
15760 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15761 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15762 "RANLIB=$${RANLIB}" \
15763 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15764 maintainer-clean) \
1358ccea
NN
15765 || exit 1
15766
d32ab992 15767@endif intl
1358ccea 15768
1358ccea 15769
25b42232 15770
d32ab992
PB
15771.PHONY: configure-tcl maybe-configure-tcl
15772maybe-configure-tcl:
3ff3adad
PB
15773@if gcc-bootstrap
15774configure-tcl: stage_current
15775@endif gcc-bootstrap
d32ab992
PB
15776@if tcl
15777maybe-configure-tcl: configure-tcl
cc11cc9b 15778configure-tcl:
f41d6665 15779 @: $(MAKE); $(unstage)
cc11cc9b 15780 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 15781 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
15782 test ! -f $(HOST_SUBDIR)/tcl/Makefile || exit 0; \
15783 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/tcl ; \
4fc4dd12 15784 $(HOST_EXPORTS) \
25b42232
PB
15785 echo Configuring in $(HOST_SUBDIR)/tcl; \
15786 cd "$(HOST_SUBDIR)/tcl" || exit 1; \
295f4e42 15787 case $(srcdir) in \
215c351a
PB
15788 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15789 *) topdir=`echo $(HOST_SUBDIR)/tcl/ | \
15790 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 15791 esac; \
215c351a
PB
15792 srcdiroption="--srcdir=$${topdir}/tcl"; \
15793 libsrcdir="$$s/tcl"; \
295f4e42 15794 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 15795 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 15796 || exit 1
d32ab992 15797@endif tcl
1358ccea 15798
25b42232
PB
15799
15800
ce406537
PB
15801
15802
d32ab992
PB
15803.PHONY: all-tcl maybe-all-tcl
15804maybe-all-tcl:
3ff3adad
PB
15805@if gcc-bootstrap
15806all-tcl: stage_current
15807@endif gcc-bootstrap
d32ab992 15808@if tcl
7e0b5752 15809TARGET-tcl=all
d32ab992
PB
15810maybe-all-tcl: all-tcl
15811all-tcl: configure-tcl
f41d6665 15812 @: $(MAKE); $(unstage)
295f4e42
NN
15813 @r=`${PWD_COMMAND}`; export r; \
15814 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15815 $(HOST_EXPORTS) \
215c351a
PB
15816 (cd $(HOST_SUBDIR)/tcl && \
15817 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-tcl))
d32ab992 15818@endif tcl
1358ccea 15819
25b42232 15820
ce406537
PB
15821
15822
d32ab992
PB
15823.PHONY: check-tcl maybe-check-tcl
15824maybe-check-tcl:
15825@if tcl
15826maybe-check-tcl: check-tcl
d9cdb878 15827
d32ab992 15828check-tcl:
f41d6665 15829 @: $(MAKE); $(unstage)
295f4e42 15830 @r=`${PWD_COMMAND}`; export r; \
d9cdb878 15831 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15832 $(HOST_EXPORTS) \
215c351a
PB
15833 (cd $(HOST_SUBDIR)/tcl && \
15834 $(MAKE) $(FLAGS_TO_PASS) check)
d9cdb878 15835
d32ab992 15836@endif tcl
d9cdb878 15837
d32ab992
PB
15838.PHONY: install-tcl maybe-install-tcl
15839maybe-install-tcl:
15840@if tcl
15841maybe-install-tcl: install-tcl
1358ccea 15842
d32ab992 15843install-tcl: installdirs
f41d6665 15844 @: $(MAKE); $(unstage)
295f4e42
NN
15845 @r=`${PWD_COMMAND}`; export r; \
15846 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15847 $(HOST_EXPORTS) \
215c351a 15848 (cd $(HOST_SUBDIR)/tcl && \
ace9ac7b 15849 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 15850
d32ab992 15851@endif tcl
1358ccea 15852
295f4e42 15853# Other targets (info, dvi, etc.)
1358ccea 15854
d32ab992
PB
15855.PHONY: maybe-info-tcl info-tcl
15856maybe-info-tcl:
15857@if tcl
15858maybe-info-tcl: info-tcl
295f4e42 15859
d32ab992 15860info-tcl: \
05750653 15861 configure-tcl
f41d6665 15862 @: $(MAKE); $(unstage)
d32ab992 15863 @[ -f ./tcl/Makefile ] || exit 0; \
8c90b13a
L
15864 r=`${PWD_COMMAND}`; export r; \
15865 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15866 $(HOST_EXPORTS) \
d32ab992 15867 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
15868 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15869 done; \
d32ab992 15870 echo "Doing info in tcl" ; \
215c351a 15871 (cd $(HOST_SUBDIR)/tcl && \
1358ccea
NN
15872 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15873 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15874 "RANLIB=$${RANLIB}" \
15875 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15876 info) \
1358ccea
NN
15877 || exit 1
15878
d32ab992 15879@endif tcl
1358ccea 15880
d32ab992
PB
15881.PHONY: maybe-dvi-tcl dvi-tcl
15882maybe-dvi-tcl:
15883@if tcl
15884maybe-dvi-tcl: dvi-tcl
1358ccea 15885
d32ab992 15886dvi-tcl: \
05750653 15887 configure-tcl
f41d6665 15888 @: $(MAKE); $(unstage)
d32ab992 15889 @[ -f ./tcl/Makefile ] || exit 0; \
8c90b13a
L
15890 r=`${PWD_COMMAND}`; export r; \
15891 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15892 $(HOST_EXPORTS) \
d32ab992 15893 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
15894 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15895 done; \
d32ab992 15896 echo "Doing dvi in tcl" ; \
215c351a 15897 (cd $(HOST_SUBDIR)/tcl && \
1358ccea
NN
15898 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15899 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15900 "RANLIB=$${RANLIB}" \
15901 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15902 dvi) \
1358ccea
NN
15903 || exit 1
15904
d32ab992 15905@endif tcl
1358ccea 15906
f87a2b2e
MS
15907.PHONY: maybe-html-tcl html-tcl
15908maybe-html-tcl:
15909@if tcl
15910maybe-html-tcl: html-tcl
15911
15912html-tcl: \
05750653 15913 configure-tcl
f41d6665 15914 @: $(MAKE); $(unstage)
f87a2b2e
MS
15915 @[ -f ./tcl/Makefile ] || exit 0; \
15916 r=`${PWD_COMMAND}`; export r; \
15917 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
15918 $(HOST_EXPORTS) \
15919 for flag in $(EXTRA_HOST_FLAGS) ; do \
15920 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15921 done; \
15922 echo "Doing html in tcl" ; \
215c351a 15923 (cd $(HOST_SUBDIR)/tcl && \
f87a2b2e
MS
15924 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15925 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15926 "RANLIB=$${RANLIB}" \
15927 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15928 html) \
15929 || exit 1
15930
15931@endif tcl
15932
d32ab992
PB
15933.PHONY: maybe-TAGS-tcl TAGS-tcl
15934maybe-TAGS-tcl:
15935@if tcl
15936maybe-TAGS-tcl: TAGS-tcl
1358ccea 15937
d32ab992 15938TAGS-tcl: \
05750653 15939 configure-tcl
f41d6665 15940 @: $(MAKE); $(unstage)
d32ab992 15941 @[ -f ./tcl/Makefile ] || exit 0; \
8c90b13a
L
15942 r=`${PWD_COMMAND}`; export r; \
15943 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15944 $(HOST_EXPORTS) \
d32ab992 15945 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
15946 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15947 done; \
d32ab992 15948 echo "Doing TAGS in tcl" ; \
215c351a 15949 (cd $(HOST_SUBDIR)/tcl && \
1358ccea
NN
15950 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15951 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15952 "RANLIB=$${RANLIB}" \
15953 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15954 TAGS) \
1358ccea
NN
15955 || exit 1
15956
d32ab992 15957@endif tcl
1358ccea 15958
d32ab992
PB
15959.PHONY: maybe-install-info-tcl install-info-tcl
15960maybe-install-info-tcl:
15961@if tcl
15962maybe-install-info-tcl: install-info-tcl
1358ccea 15963
d32ab992
PB
15964install-info-tcl: \
15965 configure-tcl \
05750653 15966 info-tcl
f41d6665 15967 @: $(MAKE); $(unstage)
d32ab992 15968 @[ -f ./tcl/Makefile ] || exit 0; \
8c90b13a
L
15969 r=`${PWD_COMMAND}`; export r; \
15970 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15971 $(HOST_EXPORTS) \
d32ab992 15972 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
15973 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15974 done; \
d32ab992 15975 echo "Doing install-info in tcl" ; \
215c351a 15976 (cd $(HOST_SUBDIR)/tcl && \
1358ccea
NN
15977 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15978 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15979 "RANLIB=$${RANLIB}" \
15980 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15981 install-info) \
1358ccea
NN
15982 || exit 1
15983
d32ab992 15984@endif tcl
1358ccea 15985
65d6e994
CD
15986.PHONY: maybe-install-html-tcl install-html-tcl
15987maybe-install-html-tcl:
15988@if tcl
15989maybe-install-html-tcl: install-html-tcl
15990
15991install-html-tcl: \
15992 configure-tcl \
15993 html-tcl
15994 @: $(MAKE); $(unstage)
15995 @[ -f ./tcl/Makefile ] || exit 0; \
15996 r=`${PWD_COMMAND}`; export r; \
15997 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15998 $(HOST_EXPORTS) \
15999 for flag in $(EXTRA_HOST_FLAGS) ; do \
16000 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16001 done; \
16002 echo "Doing install-html in tcl" ; \
16003 (cd $(HOST_SUBDIR)/tcl && \
16004 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16005 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16006 "RANLIB=$${RANLIB}" \
16007 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16008 install-html) \
16009 || exit 1
16010
16011@endif tcl
16012
d32ab992
PB
16013.PHONY: maybe-installcheck-tcl installcheck-tcl
16014maybe-installcheck-tcl:
16015@if tcl
16016maybe-installcheck-tcl: installcheck-tcl
1358ccea 16017
d32ab992 16018installcheck-tcl: \
05750653 16019 configure-tcl
f41d6665 16020 @: $(MAKE); $(unstage)
d32ab992 16021 @[ -f ./tcl/Makefile ] || exit 0; \
8c90b13a
L
16022 r=`${PWD_COMMAND}`; export r; \
16023 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16024 $(HOST_EXPORTS) \
d32ab992 16025 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
16026 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16027 done; \
d32ab992 16028 echo "Doing installcheck in tcl" ; \
215c351a 16029 (cd $(HOST_SUBDIR)/tcl && \
1358ccea
NN
16030 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16031 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16032 "RANLIB=$${RANLIB}" \
16033 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16034 installcheck) \
1358ccea
NN
16035 || exit 1
16036
d32ab992 16037@endif tcl
1358ccea 16038
d32ab992
PB
16039.PHONY: maybe-mostlyclean-tcl mostlyclean-tcl
16040maybe-mostlyclean-tcl:
16041@if tcl
16042maybe-mostlyclean-tcl: mostlyclean-tcl
1358ccea 16043
d32ab992
PB
16044# tcl doesn't support mostlyclean.
16045mostlyclean-tcl:
1358ccea 16046
d32ab992 16047@endif tcl
1358ccea 16048
d32ab992
PB
16049.PHONY: maybe-clean-tcl clean-tcl
16050maybe-clean-tcl:
16051@if tcl
16052maybe-clean-tcl: clean-tcl
1358ccea 16053
05750653 16054clean-tcl:
f41d6665 16055 @: $(MAKE); $(unstage)
d32ab992 16056 @[ -f ./tcl/Makefile ] || exit 0; \
8c90b13a
L
16057 r=`${PWD_COMMAND}`; export r; \
16058 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16059 $(HOST_EXPORTS) \
d32ab992 16060 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
16061 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16062 done; \
d32ab992 16063 echo "Doing clean in tcl" ; \
215c351a 16064 (cd $(HOST_SUBDIR)/tcl && \
1358ccea
NN
16065 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16066 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16067 "RANLIB=$${RANLIB}" \
16068 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16069 clean) \
1358ccea
NN
16070 || exit 1
16071
d32ab992 16072@endif tcl
1358ccea 16073
d32ab992
PB
16074.PHONY: maybe-distclean-tcl distclean-tcl
16075maybe-distclean-tcl:
16076@if tcl
16077maybe-distclean-tcl: distclean-tcl
1358ccea 16078
05750653 16079distclean-tcl:
f41d6665 16080 @: $(MAKE); $(unstage)
d32ab992 16081 @[ -f ./tcl/Makefile ] || exit 0; \
8c90b13a
L
16082 r=`${PWD_COMMAND}`; export r; \
16083 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16084 $(HOST_EXPORTS) \
d32ab992 16085 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
16086 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16087 done; \
d32ab992 16088 echo "Doing distclean in tcl" ; \
215c351a 16089 (cd $(HOST_SUBDIR)/tcl && \
1358ccea
NN
16090 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16091 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16092 "RANLIB=$${RANLIB}" \
16093 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16094 distclean) \
1358ccea
NN
16095 || exit 1
16096
d32ab992 16097@endif tcl
1358ccea 16098
d32ab992
PB
16099.PHONY: maybe-maintainer-clean-tcl maintainer-clean-tcl
16100maybe-maintainer-clean-tcl:
16101@if tcl
16102maybe-maintainer-clean-tcl: maintainer-clean-tcl
1358ccea 16103
05750653 16104maintainer-clean-tcl:
f41d6665 16105 @: $(MAKE); $(unstage)
d32ab992 16106 @[ -f ./tcl/Makefile ] || exit 0; \
8c90b13a
L
16107 r=`${PWD_COMMAND}`; export r; \
16108 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16109 $(HOST_EXPORTS) \
d32ab992 16110 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
16111 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16112 done; \
d32ab992 16113 echo "Doing maintainer-clean in tcl" ; \
215c351a 16114 (cd $(HOST_SUBDIR)/tcl && \
1358ccea
NN
16115 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16116 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16117 "RANLIB=$${RANLIB}" \
16118 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16119 maintainer-clean) \
1358ccea
NN
16120 || exit 1
16121
d32ab992 16122@endif tcl
295f4e42
NN
16123
16124
25b42232 16125
d32ab992
PB
16126.PHONY: configure-itcl maybe-configure-itcl
16127maybe-configure-itcl:
3ff3adad
PB
16128@if gcc-bootstrap
16129configure-itcl: stage_current
16130@endif gcc-bootstrap
d32ab992
PB
16131@if itcl
16132maybe-configure-itcl: configure-itcl
cc11cc9b 16133configure-itcl:
f41d6665 16134 @: $(MAKE); $(unstage)
cc11cc9b 16135 @r=`${PWD_COMMAND}`; export r; \
295f4e42 16136 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
16137 test ! -f $(HOST_SUBDIR)/itcl/Makefile || exit 0; \
16138 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/itcl ; \
4fc4dd12 16139 $(HOST_EXPORTS) \
25b42232
PB
16140 echo Configuring in $(HOST_SUBDIR)/itcl; \
16141 cd "$(HOST_SUBDIR)/itcl" || exit 1; \
295f4e42 16142 case $(srcdir) in \
215c351a
PB
16143 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
16144 *) topdir=`echo $(HOST_SUBDIR)/itcl/ | \
16145 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 16146 esac; \
215c351a
PB
16147 srcdiroption="--srcdir=$${topdir}/itcl"; \
16148 libsrcdir="$$s/itcl"; \
295f4e42 16149 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 16150 $(HOST_CONFIGARGS) $${srcdiroption} \
295f4e42 16151 || exit 1
d32ab992 16152@endif itcl
295f4e42 16153
25b42232
PB
16154
16155
ce406537
PB
16156
16157
d32ab992
PB
16158.PHONY: all-itcl maybe-all-itcl
16159maybe-all-itcl:
3ff3adad
PB
16160@if gcc-bootstrap
16161all-itcl: stage_current
16162@endif gcc-bootstrap
d32ab992 16163@if itcl
7e0b5752 16164TARGET-itcl=all
d32ab992
PB
16165maybe-all-itcl: all-itcl
16166all-itcl: configure-itcl
f41d6665 16167 @: $(MAKE); $(unstage)
295f4e42 16168 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 16169 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16170 $(HOST_EXPORTS) \
215c351a
PB
16171 (cd $(HOST_SUBDIR)/itcl && \
16172 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-itcl))
d32ab992 16173@endif itcl
1358ccea 16174
25b42232 16175
ce406537
PB
16176
16177
d32ab992
PB
16178.PHONY: check-itcl maybe-check-itcl
16179maybe-check-itcl:
16180@if itcl
16181maybe-check-itcl: check-itcl
1358ccea 16182
d32ab992 16183check-itcl:
f41d6665 16184 @: $(MAKE); $(unstage)
295f4e42 16185 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 16186 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16187 $(HOST_EXPORTS) \
215c351a
PB
16188 (cd $(HOST_SUBDIR)/itcl && \
16189 $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 16190
d32ab992 16191@endif itcl
1358ccea 16192
d32ab992
PB
16193.PHONY: install-itcl maybe-install-itcl
16194maybe-install-itcl:
16195@if itcl
16196maybe-install-itcl: install-itcl
1358ccea 16197
d32ab992 16198install-itcl: installdirs
f41d6665 16199 @: $(MAKE); $(unstage)
295f4e42 16200 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 16201 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16202 $(HOST_EXPORTS) \
215c351a 16203 (cd $(HOST_SUBDIR)/itcl && \
ace9ac7b 16204 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 16205
d32ab992 16206@endif itcl
1358ccea 16207
295f4e42 16208# Other targets (info, dvi, etc.)
1358ccea 16209
d32ab992
PB
16210.PHONY: maybe-info-itcl info-itcl
16211maybe-info-itcl:
16212@if itcl
16213maybe-info-itcl: info-itcl
295f4e42 16214
d32ab992 16215info-itcl: \
05750653 16216 configure-itcl
f41d6665 16217 @: $(MAKE); $(unstage)
d32ab992 16218 @[ -f ./itcl/Makefile ] || exit 0; \
8c90b13a
L
16219 r=`${PWD_COMMAND}`; export r; \
16220 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16221 $(HOST_EXPORTS) \
d32ab992 16222 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
16223 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16224 done; \
d32ab992 16225 echo "Doing info in itcl" ; \
215c351a 16226 (cd $(HOST_SUBDIR)/itcl && \
1358ccea
NN
16227 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16228 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16229 "RANLIB=$${RANLIB}" \
16230 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16231 info) \
1358ccea
NN
16232 || exit 1
16233
d32ab992 16234@endif itcl
1358ccea 16235
d32ab992
PB
16236.PHONY: maybe-dvi-itcl dvi-itcl
16237maybe-dvi-itcl:
16238@if itcl
16239maybe-dvi-itcl: dvi-itcl
1358ccea 16240
d32ab992 16241dvi-itcl: \
05750653 16242 configure-itcl
f41d6665 16243 @: $(MAKE); $(unstage)
d32ab992 16244 @[ -f ./itcl/Makefile ] || exit 0; \
8c90b13a
L
16245 r=`${PWD_COMMAND}`; export r; \
16246 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16247 $(HOST_EXPORTS) \
d32ab992 16248 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
16249 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16250 done; \
d32ab992 16251 echo "Doing dvi in itcl" ; \
215c351a 16252 (cd $(HOST_SUBDIR)/itcl && \
1358ccea
NN
16253 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16254 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16255 "RANLIB=$${RANLIB}" \
16256 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16257 dvi) \
1358ccea
NN
16258 || exit 1
16259
d32ab992 16260@endif itcl
1358ccea 16261
f87a2b2e
MS
16262.PHONY: maybe-html-itcl html-itcl
16263maybe-html-itcl:
16264@if itcl
16265maybe-html-itcl: html-itcl
16266
16267html-itcl: \
05750653 16268 configure-itcl
f41d6665 16269 @: $(MAKE); $(unstage)
f87a2b2e
MS
16270 @[ -f ./itcl/Makefile ] || exit 0; \
16271 r=`${PWD_COMMAND}`; export r; \
16272 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
16273 $(HOST_EXPORTS) \
16274 for flag in $(EXTRA_HOST_FLAGS) ; do \
16275 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16276 done; \
16277 echo "Doing html in itcl" ; \
215c351a 16278 (cd $(HOST_SUBDIR)/itcl && \
f87a2b2e
MS
16279 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16280 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16281 "RANLIB=$${RANLIB}" \
16282 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16283 html) \
16284 || exit 1
16285
16286@endif itcl
16287
d32ab992
PB
16288.PHONY: maybe-TAGS-itcl TAGS-itcl
16289maybe-TAGS-itcl:
16290@if itcl
16291maybe-TAGS-itcl: TAGS-itcl
1358ccea 16292
d32ab992 16293TAGS-itcl: \
05750653 16294 configure-itcl
f41d6665 16295 @: $(MAKE); $(unstage)
d32ab992 16296 @[ -f ./itcl/Makefile ] || exit 0; \
8c90b13a
L
16297 r=`${PWD_COMMAND}`; export r; \
16298 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16299 $(HOST_EXPORTS) \
d32ab992 16300 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
16301 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16302 done; \
d32ab992 16303 echo "Doing TAGS in itcl" ; \
215c351a 16304 (cd $(HOST_SUBDIR)/itcl && \
1358ccea
NN
16305 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16306 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16307 "RANLIB=$${RANLIB}" \
16308 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16309 TAGS) \
1358ccea
NN
16310 || exit 1
16311
d32ab992 16312@endif itcl
1358ccea 16313
d32ab992
PB
16314.PHONY: maybe-install-info-itcl install-info-itcl
16315maybe-install-info-itcl:
16316@if itcl
16317maybe-install-info-itcl: install-info-itcl
1358ccea 16318
d32ab992
PB
16319install-info-itcl: \
16320 configure-itcl \
05750653 16321 info-itcl
f41d6665 16322 @: $(MAKE); $(unstage)
d32ab992 16323 @[ -f ./itcl/Makefile ] || exit 0; \
8c90b13a
L
16324 r=`${PWD_COMMAND}`; export r; \
16325 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16326 $(HOST_EXPORTS) \
d32ab992 16327 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
16328 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16329 done; \
d32ab992 16330 echo "Doing install-info in itcl" ; \
215c351a 16331 (cd $(HOST_SUBDIR)/itcl && \
1358ccea
NN
16332 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16333 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16334 "RANLIB=$${RANLIB}" \
16335 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16336 install-info) \
1358ccea
NN
16337 || exit 1
16338
d32ab992 16339@endif itcl
1358ccea 16340
65d6e994
CD
16341.PHONY: maybe-install-html-itcl install-html-itcl
16342maybe-install-html-itcl:
16343@if itcl
16344maybe-install-html-itcl: install-html-itcl
16345
16346install-html-itcl: \
16347 configure-itcl \
16348 html-itcl
16349 @: $(MAKE); $(unstage)
16350 @[ -f ./itcl/Makefile ] || exit 0; \
16351 r=`${PWD_COMMAND}`; export r; \
16352 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16353 $(HOST_EXPORTS) \
16354 for flag in $(EXTRA_HOST_FLAGS) ; do \
16355 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16356 done; \
16357 echo "Doing install-html in itcl" ; \
16358 (cd $(HOST_SUBDIR)/itcl && \
16359 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16360 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16361 "RANLIB=$${RANLIB}" \
16362 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16363 install-html) \
16364 || exit 1
16365
16366@endif itcl
16367
d32ab992
PB
16368.PHONY: maybe-installcheck-itcl installcheck-itcl
16369maybe-installcheck-itcl:
16370@if itcl
16371maybe-installcheck-itcl: installcheck-itcl
1358ccea 16372
d32ab992 16373installcheck-itcl: \
05750653 16374 configure-itcl
f41d6665 16375 @: $(MAKE); $(unstage)
d32ab992 16376 @[ -f ./itcl/Makefile ] || exit 0; \
8c90b13a
L
16377 r=`${PWD_COMMAND}`; export r; \
16378 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16379 $(HOST_EXPORTS) \
d32ab992 16380 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
16381 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16382 done; \
d32ab992 16383 echo "Doing installcheck in itcl" ; \
215c351a 16384 (cd $(HOST_SUBDIR)/itcl && \
1358ccea
NN
16385 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16386 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16387 "RANLIB=$${RANLIB}" \
16388 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16389 installcheck) \
1358ccea
NN
16390 || exit 1
16391
d32ab992 16392@endif itcl
1358ccea 16393
d32ab992
PB
16394.PHONY: maybe-mostlyclean-itcl mostlyclean-itcl
16395maybe-mostlyclean-itcl:
16396@if itcl
16397maybe-mostlyclean-itcl: mostlyclean-itcl
1358ccea 16398
05750653 16399mostlyclean-itcl:
f41d6665 16400 @: $(MAKE); $(unstage)
d32ab992 16401 @[ -f ./itcl/Makefile ] || exit 0; \
8c90b13a
L
16402 r=`${PWD_COMMAND}`; export r; \
16403 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16404 $(HOST_EXPORTS) \
d32ab992 16405 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
16406 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16407 done; \
d32ab992 16408 echo "Doing mostlyclean in itcl" ; \
215c351a 16409 (cd $(HOST_SUBDIR)/itcl && \
1358ccea
NN
16410 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16411 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16412 "RANLIB=$${RANLIB}" \
16413 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16414 mostlyclean) \
1358ccea
NN
16415 || exit 1
16416
d32ab992 16417@endif itcl
1358ccea 16418
d32ab992
PB
16419.PHONY: maybe-clean-itcl clean-itcl
16420maybe-clean-itcl:
16421@if itcl
16422maybe-clean-itcl: clean-itcl
1358ccea 16423
05750653 16424clean-itcl:
f41d6665 16425 @: $(MAKE); $(unstage)
d32ab992 16426 @[ -f ./itcl/Makefile ] || exit 0; \
8c90b13a
L
16427 r=`${PWD_COMMAND}`; export r; \
16428 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16429 $(HOST_EXPORTS) \
d32ab992 16430 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
16431 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16432 done; \
d32ab992 16433 echo "Doing clean in itcl" ; \
215c351a 16434 (cd $(HOST_SUBDIR)/itcl && \
1358ccea
NN
16435 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16436 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16437 "RANLIB=$${RANLIB}" \
16438 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16439 clean) \
1358ccea
NN
16440 || exit 1
16441
d32ab992 16442@endif itcl
1358ccea 16443
d32ab992
PB
16444.PHONY: maybe-distclean-itcl distclean-itcl
16445maybe-distclean-itcl:
16446@if itcl
16447maybe-distclean-itcl: distclean-itcl
1358ccea 16448
05750653 16449distclean-itcl:
f41d6665 16450 @: $(MAKE); $(unstage)
d32ab992 16451 @[ -f ./itcl/Makefile ] || exit 0; \
8c90b13a
L
16452 r=`${PWD_COMMAND}`; export r; \
16453 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16454 $(HOST_EXPORTS) \
d32ab992 16455 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
16456 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16457 done; \
d32ab992 16458 echo "Doing distclean in itcl" ; \
215c351a 16459 (cd $(HOST_SUBDIR)/itcl && \
1358ccea
NN
16460 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16461 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16462 "RANLIB=$${RANLIB}" \
16463 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16464 distclean) \
1358ccea
NN
16465 || exit 1
16466
d32ab992 16467@endif itcl
1358ccea 16468
d32ab992
PB
16469.PHONY: maybe-maintainer-clean-itcl maintainer-clean-itcl
16470maybe-maintainer-clean-itcl:
16471@if itcl
16472maybe-maintainer-clean-itcl: maintainer-clean-itcl
1358ccea 16473
05750653 16474maintainer-clean-itcl:
f41d6665 16475 @: $(MAKE); $(unstage)
d32ab992 16476 @[ -f ./itcl/Makefile ] || exit 0; \
8c90b13a
L
16477 r=`${PWD_COMMAND}`; export r; \
16478 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16479 $(HOST_EXPORTS) \
d32ab992 16480 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
16481 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16482 done; \
d32ab992 16483 echo "Doing maintainer-clean in itcl" ; \
215c351a 16484 (cd $(HOST_SUBDIR)/itcl && \
1358ccea
NN
16485 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16486 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16487 "RANLIB=$${RANLIB}" \
16488 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16489 maintainer-clean) \
1358ccea
NN
16490 || exit 1
16491
d32ab992 16492@endif itcl
1358ccea 16493
1358ccea 16494
25b42232 16495
d32ab992
PB
16496.PHONY: configure-ld maybe-configure-ld
16497maybe-configure-ld:
3ff3adad
PB
16498@if gcc-bootstrap
16499configure-ld: stage_current
16500@endif gcc-bootstrap
d32ab992
PB
16501@if ld
16502maybe-configure-ld: configure-ld
cc11cc9b 16503configure-ld:
cc11cc9b
PB
16504 @r=`${PWD_COMMAND}`; export r; \
16505 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
215c351a
PB
16506 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
16507 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
4fc4dd12 16508 $(HOST_EXPORTS) \
25b42232
PB
16509 echo Configuring in $(HOST_SUBDIR)/ld; \
16510 cd "$(HOST_SUBDIR)/ld" || exit 1; \
4f4e53dd 16511 case $(srcdir) in \
215c351a
PB
16512 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
16513 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
16514 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4f4e53dd 16515 esac; \
215c351a
PB
16516 srcdiroption="--srcdir=$${topdir}/ld"; \
16517 libsrcdir="$$s/ld"; \
4f4e53dd 16518 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 16519 $(HOST_CONFIGARGS) $${srcdiroption} \
4f4e53dd 16520 || exit 1
d32ab992 16521@endif ld
4f4e53dd 16522
25b42232
PB
16523
16524
ce406537
PB
16525.PHONY: configure-stage1-ld maybe-configure-stage1-ld
16526maybe-configure-stage1-ld:
16527@if ld-bootstrap
16528maybe-configure-stage1-ld: configure-stage1-ld
f41d6665 16529configure-stage1-ld:
cc11cc9b 16530 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
f41d6665 16531 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
cc11cc9b
PB
16532 @r=`${PWD_COMMAND}`; export r; \
16533 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 16534 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
ce406537
PB
16535 $(HOST_EXPORTS) \
16536 echo Configuring stage 1 in $(HOST_SUBDIR)/ld ; \
f41d6665 16537 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
ce406537
PB
16538 cd $(HOST_SUBDIR)/ld || exit 1; \
16539 case $(srcdir) in \
16540 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
16541 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
16542 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16543 esac; \
16544 srcdiroption="--srcdir=$${topdir}/ld"; \
16545 libsrcdir="$$s/ld"; \
16546 $(SHELL) $${libsrcdir}/configure \
16547 $(HOST_CONFIGARGS) $${srcdiroption} \
16548 --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
16549@endif ld-bootstrap
16550
16551.PHONY: configure-stage2-ld maybe-configure-stage2-ld
16552maybe-configure-stage2-ld:
16553@if ld-bootstrap
16554maybe-configure-stage2-ld: configure-stage2-ld
f41d6665 16555configure-stage2-ld:
cc11cc9b 16556 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
f41d6665 16557 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
cc11cc9b
PB
16558 @r=`${PWD_COMMAND}`; export r; \
16559 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 16560 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
ce406537
PB
16561 $(HOST_EXPORTS) \
16562 $(POSTSTAGE1_HOST_EXPORTS) \
16563 echo Configuring stage 2 in $(HOST_SUBDIR)/ld ; \
f41d6665 16564 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
ce406537
PB
16565 cd $(HOST_SUBDIR)/ld || exit 1; \
16566 case $(srcdir) in \
16567 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
16568 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
16569 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16570 esac; \
16571 srcdiroption="--srcdir=$${topdir}/ld"; \
16572 libsrcdir="$$s/ld"; \
16573 $(SHELL) $${libsrcdir}/configure \
16574 $(HOST_CONFIGARGS) $${srcdiroption} \
16575 @stage2_werror_flag@
16576@endif ld-bootstrap
16577
16578.PHONY: configure-stage3-ld maybe-configure-stage3-ld
16579maybe-configure-stage3-ld:
16580@if ld-bootstrap
16581maybe-configure-stage3-ld: configure-stage3-ld
f41d6665 16582configure-stage3-ld:
cc11cc9b 16583 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
f41d6665 16584 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
cc11cc9b
PB
16585 @r=`${PWD_COMMAND}`; export r; \
16586 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 16587 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
ce406537
PB
16588 $(HOST_EXPORTS) \
16589 $(POSTSTAGE1_HOST_EXPORTS) \
16590 echo Configuring stage 3 in $(HOST_SUBDIR)/ld ; \
f41d6665 16591 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
ce406537
PB
16592 cd $(HOST_SUBDIR)/ld || exit 1; \
16593 case $(srcdir) in \
16594 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
16595 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
16596 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16597 esac; \
16598 srcdiroption="--srcdir=$${topdir}/ld"; \
16599 libsrcdir="$$s/ld"; \
16600 $(SHELL) $${libsrcdir}/configure \
16601 $(HOST_CONFIGARGS) $${srcdiroption} \
16602 @stage2_werror_flag@
16603@endif ld-bootstrap
16604
16605.PHONY: configure-stage4-ld maybe-configure-stage4-ld
16606maybe-configure-stage4-ld:
16607@if ld-bootstrap
16608maybe-configure-stage4-ld: configure-stage4-ld
f41d6665 16609configure-stage4-ld:
cc11cc9b 16610 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
f41d6665 16611 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
cc11cc9b
PB
16612 @r=`${PWD_COMMAND}`; export r; \
16613 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 16614 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
ce406537
PB
16615 $(HOST_EXPORTS) \
16616 $(POSTSTAGE1_HOST_EXPORTS) \
16617 echo Configuring stage 4 in $(HOST_SUBDIR)/ld ; \
f41d6665 16618 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
ce406537
PB
16619 cd $(HOST_SUBDIR)/ld || exit 1; \
16620 case $(srcdir) in \
16621 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
16622 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
16623 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16624 esac; \
16625 srcdiroption="--srcdir=$${topdir}/ld"; \
16626 libsrcdir="$$s/ld"; \
16627 $(SHELL) $${libsrcdir}/configure \
16628 $(HOST_CONFIGARGS) $${srcdiroption} \
16629 @stage2_werror_flag@
16630@endif ld-bootstrap
16631
16632.PHONY: configure-stageprofile-ld maybe-configure-stageprofile-ld
16633maybe-configure-stageprofile-ld:
16634@if ld-bootstrap
16635maybe-configure-stageprofile-ld: configure-stageprofile-ld
f41d6665 16636configure-stageprofile-ld:
cc11cc9b 16637 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
f41d6665 16638 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
cc11cc9b
PB
16639 @r=`${PWD_COMMAND}`; export r; \
16640 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 16641 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
ce406537
PB
16642 $(HOST_EXPORTS) \
16643 $(POSTSTAGE1_HOST_EXPORTS) \
16644 echo Configuring stage profile in $(HOST_SUBDIR)/ld ; \
f41d6665 16645 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
ce406537
PB
16646 cd $(HOST_SUBDIR)/ld || exit 1; \
16647 case $(srcdir) in \
16648 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
16649 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
16650 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16651 esac; \
16652 srcdiroption="--srcdir=$${topdir}/ld"; \
16653 libsrcdir="$$s/ld"; \
16654 $(SHELL) $${libsrcdir}/configure \
16655 $(HOST_CONFIGARGS) $${srcdiroption} \
16656 @stage2_werror_flag@
16657@endif ld-bootstrap
16658
16659.PHONY: configure-stagefeedback-ld maybe-configure-stagefeedback-ld
16660maybe-configure-stagefeedback-ld:
16661@if ld-bootstrap
16662maybe-configure-stagefeedback-ld: configure-stagefeedback-ld
f41d6665 16663configure-stagefeedback-ld:
cc11cc9b 16664 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
f41d6665 16665 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
cc11cc9b
PB
16666 @r=`${PWD_COMMAND}`; export r; \
16667 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 16668 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
ce406537
PB
16669 $(HOST_EXPORTS) \
16670 $(POSTSTAGE1_HOST_EXPORTS) \
16671 echo Configuring stage feedback in $(HOST_SUBDIR)/ld ; \
f41d6665 16672 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
ce406537
PB
16673 cd $(HOST_SUBDIR)/ld || exit 1; \
16674 case $(srcdir) in \
16675 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
16676 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
16677 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16678 esac; \
16679 srcdiroption="--srcdir=$${topdir}/ld"; \
16680 libsrcdir="$$s/ld"; \
16681 $(SHELL) $${libsrcdir}/configure \
16682 $(HOST_CONFIGARGS) $${srcdiroption} \
16683 @stage2_werror_flag@
16684@endif ld-bootstrap
16685
16686
16687
16688
16689
d32ab992
PB
16690.PHONY: all-ld maybe-all-ld
16691maybe-all-ld:
3ff3adad
PB
16692@if gcc-bootstrap
16693all-ld: stage_current
16694@endif gcc-bootstrap
d32ab992 16695@if ld
7e0b5752 16696TARGET-ld=all
d32ab992
PB
16697maybe-all-ld: all-ld
16698all-ld: configure-ld
cc11cc9b 16699 @r=`${PWD_COMMAND}`; export r; \
4f4e53dd 16700 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16701 $(HOST_EXPORTS) \
215c351a
PB
16702 (cd $(HOST_SUBDIR)/ld && \
16703 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-ld))
d32ab992 16704@endif ld
4f4e53dd 16705
25b42232 16706
ce406537
PB
16707
16708.PHONY: all-stage1-ld maybe-all-stage1-ld
16709.PHONY: clean-stage1-ld maybe-clean-stage1-ld
16710maybe-all-stage1-ld:
16711maybe-clean-stage1-ld:
16712@if ld-bootstrap
16713maybe-all-stage1-ld: all-stage1-ld
16714all-stage1: all-stage1-ld
1061f99e 16715TARGET-stage1-ld = $(TARGET-ld)
ce406537 16716all-stage1-ld: configure-stage1-ld
cc11cc9b 16717 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
ce406537
PB
16718 @r=`${PWD_COMMAND}`; export r; \
16719 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16720 $(HOST_EXPORTS) \
16721 cd $(HOST_SUBDIR)/ld && \
cc11cc9b 16722 $(MAKE) $(FLAGS_TO_PASS) CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" \
1061f99e 16723 $(TARGET-stage1-ld)
ce406537
PB
16724
16725maybe-clean-stage1-ld: clean-stage1-ld
16726clean-stage1: clean-stage1-ld
16727clean-stage1-ld:
16728 @[ -f $(HOST_SUBDIR)/ld/Makefile ] || [ -f $(HOST_SUBDIR)/stage1-ld/Makefile ] \
16729 || exit 0 ; \
cc11cc9b 16730 [ $(current_stage) = stage1 ] || $(MAKE) stage1-start; \
ce406537
PB
16731 cd $(HOST_SUBDIR)/ld && \
16732 $(MAKE) $(FLAGS_TO_PASS) \
cc11cc9b 16733 CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" clean
ce406537
PB
16734@endif ld-bootstrap
16735
16736
16737.PHONY: all-stage2-ld maybe-all-stage2-ld
16738.PHONY: clean-stage2-ld maybe-clean-stage2-ld
16739maybe-all-stage2-ld:
16740maybe-clean-stage2-ld:
16741@if ld-bootstrap
16742maybe-all-stage2-ld: all-stage2-ld
16743all-stage2: all-stage2-ld
1061f99e 16744TARGET-stage2-ld = $(TARGET-ld)
ce406537 16745all-stage2-ld: configure-stage2-ld
cc11cc9b 16746 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
ce406537
PB
16747 @r=`${PWD_COMMAND}`; export r; \
16748 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16749 $(HOST_EXPORTS) \
16750 $(POSTSTAGE1_HOST_EXPORTS) \
16751 cd $(HOST_SUBDIR)/ld && \
1061f99e
PB
16752 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
16753 $(TARGET-stage2-ld)
ce406537
PB
16754
16755maybe-clean-stage2-ld: clean-stage2-ld
16756clean-stage2: clean-stage2-ld
16757clean-stage2-ld:
16758 @[ -f $(HOST_SUBDIR)/ld/Makefile ] || [ -f $(HOST_SUBDIR)/stage2-ld/Makefile ] \
16759 || exit 0 ; \
cc11cc9b 16760 [ $(current_stage) = stage2 ] || $(MAKE) stage2-start; \
ce406537
PB
16761 cd $(HOST_SUBDIR)/ld && \
16762 $(MAKE) $(FLAGS_TO_PASS) \
16763 $(POSTSTAGE1_FLAGS_TO_PASS) \
16764 clean
16765@endif ld-bootstrap
16766
16767
16768.PHONY: all-stage3-ld maybe-all-stage3-ld
16769.PHONY: clean-stage3-ld maybe-clean-stage3-ld
16770maybe-all-stage3-ld:
16771maybe-clean-stage3-ld:
16772@if ld-bootstrap
16773maybe-all-stage3-ld: all-stage3-ld
16774all-stage3: all-stage3-ld
1061f99e 16775TARGET-stage3-ld = $(TARGET-ld)
ce406537 16776all-stage3-ld: configure-stage3-ld
cc11cc9b 16777 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
ce406537
PB
16778 @r=`${PWD_COMMAND}`; export r; \
16779 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16780 $(HOST_EXPORTS) \
16781 $(POSTSTAGE1_HOST_EXPORTS) \
16782 cd $(HOST_SUBDIR)/ld && \
1061f99e
PB
16783 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
16784 $(TARGET-stage3-ld)
ce406537
PB
16785
16786maybe-clean-stage3-ld: clean-stage3-ld
16787clean-stage3: clean-stage3-ld
16788clean-stage3-ld:
16789 @[ -f $(HOST_SUBDIR)/ld/Makefile ] || [ -f $(HOST_SUBDIR)/stage3-ld/Makefile ] \
16790 || exit 0 ; \
cc11cc9b 16791 [ $(current_stage) = stage3 ] || $(MAKE) stage3-start; \
ce406537
PB
16792 cd $(HOST_SUBDIR)/ld && \
16793 $(MAKE) $(FLAGS_TO_PASS) \
16794 $(POSTSTAGE1_FLAGS_TO_PASS) \
16795 clean
16796@endif ld-bootstrap
16797
16798
16799.PHONY: all-stage4-ld maybe-all-stage4-ld
16800.PHONY: clean-stage4-ld maybe-clean-stage4-ld
16801maybe-all-stage4-ld:
16802maybe-clean-stage4-ld:
16803@if ld-bootstrap
16804maybe-all-stage4-ld: all-stage4-ld
16805all-stage4: all-stage4-ld
1061f99e 16806TARGET-stage4-ld = $(TARGET-ld)
ce406537 16807all-stage4-ld: configure-stage4-ld
cc11cc9b 16808 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
ce406537
PB
16809 @r=`${PWD_COMMAND}`; export r; \
16810 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16811 $(HOST_EXPORTS) \
16812 $(POSTSTAGE1_HOST_EXPORTS) \
16813 cd $(HOST_SUBDIR)/ld && \
1061f99e
PB
16814 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
16815 $(TARGET-stage4-ld)
ce406537
PB
16816
16817maybe-clean-stage4-ld: clean-stage4-ld
16818clean-stage4: clean-stage4-ld
16819clean-stage4-ld:
16820 @[ -f $(HOST_SUBDIR)/ld/Makefile ] || [ -f $(HOST_SUBDIR)/stage4-ld/Makefile ] \
16821 || exit 0 ; \
cc11cc9b 16822 [ $(current_stage) = stage4 ] || $(MAKE) stage4-start; \
ce406537
PB
16823 cd $(HOST_SUBDIR)/ld && \
16824 $(MAKE) $(FLAGS_TO_PASS) \
16825 $(POSTSTAGE1_FLAGS_TO_PASS) \
16826 clean
16827@endif ld-bootstrap
16828
16829
16830.PHONY: all-stageprofile-ld maybe-all-stageprofile-ld
16831.PHONY: clean-stageprofile-ld maybe-clean-stageprofile-ld
16832maybe-all-stageprofile-ld:
16833maybe-clean-stageprofile-ld:
16834@if ld-bootstrap
16835maybe-all-stageprofile-ld: all-stageprofile-ld
16836all-stageprofile: all-stageprofile-ld
1061f99e 16837TARGET-stageprofile-ld = $(TARGET-ld)
ce406537 16838all-stageprofile-ld: configure-stageprofile-ld
cc11cc9b 16839 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
ce406537
PB
16840 @r=`${PWD_COMMAND}`; export r; \
16841 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16842 $(HOST_EXPORTS) \
16843 $(POSTSTAGE1_HOST_EXPORTS) \
16844 cd $(HOST_SUBDIR)/ld && \
1061f99e
PB
16845 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" \
16846 $(TARGET-stageprofile-ld)
ce406537
PB
16847
16848maybe-clean-stageprofile-ld: clean-stageprofile-ld
16849clean-stageprofile: clean-stageprofile-ld
16850clean-stageprofile-ld:
16851 @[ -f $(HOST_SUBDIR)/ld/Makefile ] || [ -f $(HOST_SUBDIR)/stageprofile-ld/Makefile ] \
16852 || exit 0 ; \
cc11cc9b 16853 [ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start; \
ce406537
PB
16854 cd $(HOST_SUBDIR)/ld && \
16855 $(MAKE) $(FLAGS_TO_PASS) \
16856 $(POSTSTAGE1_FLAGS_TO_PASS) \
16857 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean
16858@endif ld-bootstrap
16859
16860
16861.PHONY: all-stagefeedback-ld maybe-all-stagefeedback-ld
16862.PHONY: clean-stagefeedback-ld maybe-clean-stagefeedback-ld
16863maybe-all-stagefeedback-ld:
16864maybe-clean-stagefeedback-ld:
16865@if ld-bootstrap
16866maybe-all-stagefeedback-ld: all-stagefeedback-ld
16867all-stagefeedback: all-stagefeedback-ld
1061f99e 16868TARGET-stagefeedback-ld = $(TARGET-ld)
ce406537 16869all-stagefeedback-ld: configure-stagefeedback-ld
cc11cc9b 16870 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
ce406537
PB
16871 @r=`${PWD_COMMAND}`; export r; \
16872 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16873 $(HOST_EXPORTS) \
16874 $(POSTSTAGE1_HOST_EXPORTS) \
16875 cd $(HOST_SUBDIR)/ld && \
1061f99e
PB
16876 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-use" \
16877 $(TARGET-stagefeedback-ld)
ce406537
PB
16878
16879maybe-clean-stagefeedback-ld: clean-stagefeedback-ld
16880clean-stagefeedback: clean-stagefeedback-ld
16881clean-stagefeedback-ld:
16882 @[ -f $(HOST_SUBDIR)/ld/Makefile ] || [ -f $(HOST_SUBDIR)/stagefeedback-ld/Makefile ] \
16883 || exit 0 ; \
cc11cc9b 16884 [ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start; \
ce406537
PB
16885 cd $(HOST_SUBDIR)/ld && \
16886 $(MAKE) $(FLAGS_TO_PASS) \
16887 $(POSTSTAGE1_FLAGS_TO_PASS) \
16888 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean
16889@endif ld-bootstrap
16890
16891
16892
16893
16894
d32ab992
PB
16895.PHONY: check-ld maybe-check-ld
16896maybe-check-ld:
16897@if ld
16898maybe-check-ld: check-ld
4f4e53dd 16899
d32ab992 16900check-ld:
f41d6665 16901 @: $(MAKE); $(unstage)
4f4e53dd
PB
16902 @r=`${PWD_COMMAND}`; export r; \
16903 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16904 $(HOST_EXPORTS) \
215c351a
PB
16905 (cd $(HOST_SUBDIR)/ld && \
16906 $(MAKE) $(FLAGS_TO_PASS) check)
4f4e53dd 16907
d32ab992 16908@endif ld
4f4e53dd 16909
d32ab992
PB
16910.PHONY: install-ld maybe-install-ld
16911maybe-install-ld:
16912@if ld
16913maybe-install-ld: install-ld
4f4e53dd 16914
d32ab992 16915install-ld: installdirs
f41d6665 16916 @: $(MAKE); $(unstage)
4f4e53dd
PB
16917 @r=`${PWD_COMMAND}`; export r; \
16918 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16919 $(HOST_EXPORTS) \
215c351a 16920 (cd $(HOST_SUBDIR)/ld && \
ace9ac7b 16921 $(MAKE) $(FLAGS_TO_PASS) install)
4f4e53dd 16922
d32ab992 16923@endif ld
4f4e53dd
PB
16924
16925# Other targets (info, dvi, etc.)
16926
d32ab992
PB
16927.PHONY: maybe-info-ld info-ld
16928maybe-info-ld:
16929@if ld
16930maybe-info-ld: info-ld
4f4e53dd 16931
d32ab992 16932info-ld: \
05750653 16933 configure-ld
d32ab992 16934 @[ -f ./ld/Makefile ] || exit 0; \
4f4e53dd
PB
16935 r=`${PWD_COMMAND}`; export r; \
16936 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16937 $(HOST_EXPORTS) \
d32ab992 16938 for flag in $(EXTRA_HOST_FLAGS) ; do \
4f4e53dd
PB
16939 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16940 done; \
d32ab992 16941 echo "Doing info in ld" ; \
215c351a 16942 (cd $(HOST_SUBDIR)/ld && \
4f4e53dd
PB
16943 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16944 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16945 "RANLIB=$${RANLIB}" \
16946 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16947 info) \
4f4e53dd
PB
16948 || exit 1
16949
d32ab992 16950@endif ld
4f4e53dd 16951
d32ab992
PB
16952.PHONY: maybe-dvi-ld dvi-ld
16953maybe-dvi-ld:
16954@if ld
16955maybe-dvi-ld: dvi-ld
4f4e53dd 16956
d32ab992 16957dvi-ld: \
05750653 16958 configure-ld
d32ab992 16959 @[ -f ./ld/Makefile ] || exit 0; \
4f4e53dd
PB
16960 r=`${PWD_COMMAND}`; export r; \
16961 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16962 $(HOST_EXPORTS) \
d32ab992 16963 for flag in $(EXTRA_HOST_FLAGS) ; do \
4f4e53dd
PB
16964 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16965 done; \
d32ab992 16966 echo "Doing dvi in ld" ; \
215c351a 16967 (cd $(HOST_SUBDIR)/ld && \
4f4e53dd
PB
16968 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16969 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16970 "RANLIB=$${RANLIB}" \
16971 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16972 dvi) \
4f4e53dd
PB
16973 || exit 1
16974
d32ab992 16975@endif ld
4f4e53dd 16976
f87a2b2e
MS
16977.PHONY: maybe-html-ld html-ld
16978maybe-html-ld:
16979@if ld
16980maybe-html-ld: html-ld
16981
16982html-ld: \
05750653 16983 configure-ld
f87a2b2e
MS
16984 @[ -f ./ld/Makefile ] || exit 0; \
16985 r=`${PWD_COMMAND}`; export r; \
16986 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
16987 $(HOST_EXPORTS) \
16988 for flag in $(EXTRA_HOST_FLAGS) ; do \
16989 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16990 done; \
16991 echo "Doing html in ld" ; \
215c351a 16992 (cd $(HOST_SUBDIR)/ld && \
f87a2b2e
MS
16993 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16994 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16995 "RANLIB=$${RANLIB}" \
16996 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16997 html) \
16998 || exit 1
16999
17000@endif ld
17001
d32ab992
PB
17002.PHONY: maybe-TAGS-ld TAGS-ld
17003maybe-TAGS-ld:
17004@if ld
17005maybe-TAGS-ld: TAGS-ld
4f4e53dd 17006
d32ab992 17007TAGS-ld: \
05750653 17008 configure-ld
d32ab992 17009 @[ -f ./ld/Makefile ] || exit 0; \
4f4e53dd
PB
17010 r=`${PWD_COMMAND}`; export r; \
17011 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 17012 $(HOST_EXPORTS) \
d32ab992 17013 for flag in $(EXTRA_HOST_FLAGS) ; do \
4f4e53dd
PB
17014 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17015 done; \
d32ab992 17016 echo "Doing TAGS in ld" ; \
215c351a 17017 (cd $(HOST_SUBDIR)/ld && \
4f4e53dd
PB
17018 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17019 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17020 "RANLIB=$${RANLIB}" \
17021 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17022 TAGS) \
4f4e53dd
PB
17023 || exit 1
17024
d32ab992 17025@endif ld
4f4e53dd 17026
d32ab992
PB
17027.PHONY: maybe-install-info-ld install-info-ld
17028maybe-install-info-ld:
17029@if ld
17030maybe-install-info-ld: install-info-ld
4f4e53dd 17031
d32ab992
PB
17032install-info-ld: \
17033 configure-ld \
05750653 17034 info-ld
d32ab992 17035 @[ -f ./ld/Makefile ] || exit 0; \
4f4e53dd
PB
17036 r=`${PWD_COMMAND}`; export r; \
17037 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 17038 $(HOST_EXPORTS) \
d32ab992 17039 for flag in $(EXTRA_HOST_FLAGS) ; do \
4f4e53dd
PB
17040 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17041 done; \
d32ab992 17042 echo "Doing install-info in ld" ; \
215c351a 17043 (cd $(HOST_SUBDIR)/ld && \
4f4e53dd
PB
17044 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17045 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17046 "RANLIB=$${RANLIB}" \
17047 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17048 install-info) \
4f4e53dd
PB
17049 || exit 1
17050
d32ab992 17051@endif ld
4f4e53dd 17052
65d6e994
CD
17053.PHONY: maybe-install-html-ld install-html-ld
17054maybe-install-html-ld:
17055@if ld
17056maybe-install-html-ld: install-html-ld
17057
17058install-html-ld: \
17059 configure-ld \
17060 html-ld
17061 @[ -f ./ld/Makefile ] || exit 0; \
17062 r=`${PWD_COMMAND}`; export r; \
17063 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17064 $(HOST_EXPORTS) \
17065 for flag in $(EXTRA_HOST_FLAGS) ; do \
17066 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17067 done; \
17068 echo "Doing install-html in ld" ; \
17069 (cd $(HOST_SUBDIR)/ld && \
17070 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17071 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17072 "RANLIB=$${RANLIB}" \
17073 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17074 install-html) \
17075 || exit 1
17076
17077@endif ld
17078
d32ab992
PB
17079.PHONY: maybe-installcheck-ld installcheck-ld
17080maybe-installcheck-ld:
17081@if ld
17082maybe-installcheck-ld: installcheck-ld
4f4e53dd 17083
d32ab992 17084installcheck-ld: \
05750653 17085 configure-ld
d32ab992 17086 @[ -f ./ld/Makefile ] || exit 0; \
4f4e53dd
PB
17087 r=`${PWD_COMMAND}`; export r; \
17088 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 17089 $(HOST_EXPORTS) \
d32ab992 17090 for flag in $(EXTRA_HOST_FLAGS) ; do \
4f4e53dd
PB
17091 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17092 done; \
d32ab992 17093 echo "Doing installcheck in ld" ; \
215c351a 17094 (cd $(HOST_SUBDIR)/ld && \
4f4e53dd
PB
17095 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17096 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17097 "RANLIB=$${RANLIB}" \
17098 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17099 installcheck) \
4f4e53dd
PB
17100 || exit 1
17101
d32ab992 17102@endif ld
4f4e53dd 17103
d32ab992
PB
17104.PHONY: maybe-mostlyclean-ld mostlyclean-ld
17105maybe-mostlyclean-ld:
17106@if ld
17107maybe-mostlyclean-ld: mostlyclean-ld
4f4e53dd 17108
05750653 17109mostlyclean-ld:
d32ab992 17110 @[ -f ./ld/Makefile ] || exit 0; \
4f4e53dd
PB
17111 r=`${PWD_COMMAND}`; export r; \
17112 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 17113 $(HOST_EXPORTS) \
d32ab992 17114 for flag in $(EXTRA_HOST_FLAGS) ; do \
4f4e53dd
PB
17115 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17116 done; \
d32ab992 17117 echo "Doing mostlyclean in ld" ; \
215c351a 17118 (cd $(HOST_SUBDIR)/ld && \
4f4e53dd
PB
17119 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17120 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17121 "RANLIB=$${RANLIB}" \
17122 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17123 mostlyclean) \
4f4e53dd
PB
17124 || exit 1
17125
d32ab992 17126@endif ld
4f4e53dd 17127
d32ab992
PB
17128.PHONY: maybe-clean-ld clean-ld
17129maybe-clean-ld:
17130@if ld
17131maybe-clean-ld: clean-ld
4f4e53dd 17132
05750653 17133clean-ld:
d32ab992 17134 @[ -f ./ld/Makefile ] || exit 0; \
4f4e53dd
PB
17135 r=`${PWD_COMMAND}`; export r; \
17136 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 17137 $(HOST_EXPORTS) \
d32ab992 17138 for flag in $(EXTRA_HOST_FLAGS) ; do \
4f4e53dd
PB
17139 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17140 done; \
d32ab992 17141 echo "Doing clean in ld" ; \
215c351a 17142 (cd $(HOST_SUBDIR)/ld && \
4f4e53dd
PB
17143 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17144 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17145 "RANLIB=$${RANLIB}" \
17146 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17147 clean) \
4f4e53dd
PB
17148 || exit 1
17149
d32ab992 17150@endif ld
4f4e53dd 17151
d32ab992
PB
17152.PHONY: maybe-distclean-ld distclean-ld
17153maybe-distclean-ld:
17154@if ld
17155maybe-distclean-ld: distclean-ld
4f4e53dd 17156
05750653 17157distclean-ld:
d32ab992 17158 @[ -f ./ld/Makefile ] || exit 0; \
4f4e53dd
PB
17159 r=`${PWD_COMMAND}`; export r; \
17160 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 17161 $(HOST_EXPORTS) \
d32ab992 17162 for flag in $(EXTRA_HOST_FLAGS) ; do \
4f4e53dd
PB
17163 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17164 done; \
d32ab992 17165 echo "Doing distclean in ld" ; \
215c351a 17166 (cd $(HOST_SUBDIR)/ld && \
4f4e53dd
PB
17167 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17168 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17169 "RANLIB=$${RANLIB}" \
17170 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17171 distclean) \
4f4e53dd
PB
17172 || exit 1
17173
d32ab992 17174@endif ld
4f4e53dd 17175
d32ab992
PB
17176.PHONY: maybe-maintainer-clean-ld maintainer-clean-ld
17177maybe-maintainer-clean-ld:
17178@if ld
17179maybe-maintainer-clean-ld: maintainer-clean-ld
4f4e53dd 17180
05750653 17181maintainer-clean-ld:
d32ab992 17182 @[ -f ./ld/Makefile ] || exit 0; \
4f4e53dd
PB
17183 r=`${PWD_COMMAND}`; export r; \
17184 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 17185 $(HOST_EXPORTS) \
d32ab992 17186 for flag in $(EXTRA_HOST_FLAGS) ; do \
4f4e53dd
PB
17187 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17188 done; \
d32ab992 17189 echo "Doing maintainer-clean in ld" ; \
215c351a 17190 (cd $(HOST_SUBDIR)/ld && \
4f4e53dd
PB
17191 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17192 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17193 "RANLIB=$${RANLIB}" \
17194 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17195 maintainer-clean) \
4f4e53dd
PB
17196 || exit 1
17197
d32ab992 17198@endif ld
4f4e53dd
PB
17199
17200
25b42232 17201
d32ab992
PB
17202.PHONY: configure-libcpp maybe-configure-libcpp
17203maybe-configure-libcpp:
3ff3adad
PB
17204@if gcc-bootstrap
17205configure-libcpp: stage_current
17206@endif gcc-bootstrap
d32ab992
PB
17207@if libcpp
17208maybe-configure-libcpp: configure-libcpp
cc11cc9b 17209configure-libcpp:
cc11cc9b
PB
17210 @r=`${PWD_COMMAND}`; export r; \
17211 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
215c351a
PB
17212 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
17213 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
4fc4dd12 17214 $(HOST_EXPORTS) \
25b42232
PB
17215 echo Configuring in $(HOST_SUBDIR)/libcpp; \
17216 cd "$(HOST_SUBDIR)/libcpp" || exit 1; \
295f4e42 17217 case $(srcdir) in \
215c351a
PB
17218 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
17219 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
17220 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 17221 esac; \
215c351a
PB
17222 srcdiroption="--srcdir=$${topdir}/libcpp"; \
17223 libsrcdir="$$s/libcpp"; \
295f4e42 17224 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 17225 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 17226 || exit 1
d32ab992 17227@endif libcpp
1358ccea 17228
25b42232
PB
17229
17230
ce406537
PB
17231.PHONY: configure-stage1-libcpp maybe-configure-stage1-libcpp
17232maybe-configure-stage1-libcpp:
17233@if libcpp-bootstrap
17234maybe-configure-stage1-libcpp: configure-stage1-libcpp
f41d6665 17235configure-stage1-libcpp:
cc11cc9b 17236 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
f41d6665 17237 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
cc11cc9b
PB
17238 @r=`${PWD_COMMAND}`; export r; \
17239 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 17240 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
ce406537
PB
17241 $(HOST_EXPORTS) \
17242 echo Configuring stage 1 in $(HOST_SUBDIR)/libcpp ; \
f41d6665 17243 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
ce406537
PB
17244 cd $(HOST_SUBDIR)/libcpp || exit 1; \
17245 case $(srcdir) in \
17246 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
17247 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
17248 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17249 esac; \
17250 srcdiroption="--srcdir=$${topdir}/libcpp"; \
17251 libsrcdir="$$s/libcpp"; \
17252 $(SHELL) $${libsrcdir}/configure \
17253 $(HOST_CONFIGARGS) $${srcdiroption} \
17254 --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
17255@endif libcpp-bootstrap
17256
17257.PHONY: configure-stage2-libcpp maybe-configure-stage2-libcpp
17258maybe-configure-stage2-libcpp:
17259@if libcpp-bootstrap
17260maybe-configure-stage2-libcpp: configure-stage2-libcpp
f41d6665 17261configure-stage2-libcpp:
cc11cc9b 17262 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
f41d6665 17263 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
cc11cc9b
PB
17264 @r=`${PWD_COMMAND}`; export r; \
17265 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 17266 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
ce406537
PB
17267 $(HOST_EXPORTS) \
17268 $(POSTSTAGE1_HOST_EXPORTS) \
17269 echo Configuring stage 2 in $(HOST_SUBDIR)/libcpp ; \
f41d6665 17270 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
ce406537
PB
17271 cd $(HOST_SUBDIR)/libcpp || exit 1; \
17272 case $(srcdir) in \
17273 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
17274 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
17275 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17276 esac; \
17277 srcdiroption="--srcdir=$${topdir}/libcpp"; \
17278 libsrcdir="$$s/libcpp"; \
17279 $(SHELL) $${libsrcdir}/configure \
17280 $(HOST_CONFIGARGS) $${srcdiroption} \
17281 @stage2_werror_flag@
17282@endif libcpp-bootstrap
17283
17284.PHONY: configure-stage3-libcpp maybe-configure-stage3-libcpp
17285maybe-configure-stage3-libcpp:
17286@if libcpp-bootstrap
17287maybe-configure-stage3-libcpp: configure-stage3-libcpp
f41d6665 17288configure-stage3-libcpp:
cc11cc9b 17289 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
f41d6665 17290 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
cc11cc9b
PB
17291 @r=`${PWD_COMMAND}`; export r; \
17292 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 17293 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
ce406537
PB
17294 $(HOST_EXPORTS) \
17295 $(POSTSTAGE1_HOST_EXPORTS) \
17296 echo Configuring stage 3 in $(HOST_SUBDIR)/libcpp ; \
f41d6665 17297 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
ce406537
PB
17298 cd $(HOST_SUBDIR)/libcpp || exit 1; \
17299 case $(srcdir) in \
17300 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
17301 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
17302 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17303 esac; \
17304 srcdiroption="--srcdir=$${topdir}/libcpp"; \
17305 libsrcdir="$$s/libcpp"; \
17306 $(SHELL) $${libsrcdir}/configure \
17307 $(HOST_CONFIGARGS) $${srcdiroption} \
17308 @stage2_werror_flag@
17309@endif libcpp-bootstrap
17310
17311.PHONY: configure-stage4-libcpp maybe-configure-stage4-libcpp
17312maybe-configure-stage4-libcpp:
17313@if libcpp-bootstrap
17314maybe-configure-stage4-libcpp: configure-stage4-libcpp
f41d6665 17315configure-stage4-libcpp:
cc11cc9b 17316 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
f41d6665 17317 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
cc11cc9b
PB
17318 @r=`${PWD_COMMAND}`; export r; \
17319 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 17320 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
ce406537
PB
17321 $(HOST_EXPORTS) \
17322 $(POSTSTAGE1_HOST_EXPORTS) \
17323 echo Configuring stage 4 in $(HOST_SUBDIR)/libcpp ; \
f41d6665 17324 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
ce406537
PB
17325 cd $(HOST_SUBDIR)/libcpp || exit 1; \
17326 case $(srcdir) in \
17327 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
17328 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
17329 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17330 esac; \
17331 srcdiroption="--srcdir=$${topdir}/libcpp"; \
17332 libsrcdir="$$s/libcpp"; \
17333 $(SHELL) $${libsrcdir}/configure \
17334 $(HOST_CONFIGARGS) $${srcdiroption} \
17335 @stage2_werror_flag@
17336@endif libcpp-bootstrap
17337
17338.PHONY: configure-stageprofile-libcpp maybe-configure-stageprofile-libcpp
17339maybe-configure-stageprofile-libcpp:
17340@if libcpp-bootstrap
17341maybe-configure-stageprofile-libcpp: configure-stageprofile-libcpp
f41d6665 17342configure-stageprofile-libcpp:
cc11cc9b 17343 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
f41d6665 17344 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
cc11cc9b
PB
17345 @r=`${PWD_COMMAND}`; export r; \
17346 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 17347 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
ce406537
PB
17348 $(HOST_EXPORTS) \
17349 $(POSTSTAGE1_HOST_EXPORTS) \
17350 echo Configuring stage profile in $(HOST_SUBDIR)/libcpp ; \
f41d6665 17351 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
ce406537
PB
17352 cd $(HOST_SUBDIR)/libcpp || exit 1; \
17353 case $(srcdir) in \
17354 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
17355 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
17356 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17357 esac; \
17358 srcdiroption="--srcdir=$${topdir}/libcpp"; \
17359 libsrcdir="$$s/libcpp"; \
17360 $(SHELL) $${libsrcdir}/configure \
17361 $(HOST_CONFIGARGS) $${srcdiroption} \
17362 @stage2_werror_flag@
17363@endif libcpp-bootstrap
17364
17365.PHONY: configure-stagefeedback-libcpp maybe-configure-stagefeedback-libcpp
17366maybe-configure-stagefeedback-libcpp:
17367@if libcpp-bootstrap
17368maybe-configure-stagefeedback-libcpp: configure-stagefeedback-libcpp
f41d6665 17369configure-stagefeedback-libcpp:
cc11cc9b 17370 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
f41d6665 17371 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
cc11cc9b
PB
17372 @r=`${PWD_COMMAND}`; export r; \
17373 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 17374 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
ce406537
PB
17375 $(HOST_EXPORTS) \
17376 $(POSTSTAGE1_HOST_EXPORTS) \
17377 echo Configuring stage feedback in $(HOST_SUBDIR)/libcpp ; \
f41d6665 17378 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
ce406537
PB
17379 cd $(HOST_SUBDIR)/libcpp || exit 1; \
17380 case $(srcdir) in \
17381 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
17382 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
17383 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17384 esac; \
17385 srcdiroption="--srcdir=$${topdir}/libcpp"; \
17386 libsrcdir="$$s/libcpp"; \
17387 $(SHELL) $${libsrcdir}/configure \
17388 $(HOST_CONFIGARGS) $${srcdiroption} \
17389 @stage2_werror_flag@
17390@endif libcpp-bootstrap
17391
17392
17393
17394
17395
d32ab992
PB
17396.PHONY: all-libcpp maybe-all-libcpp
17397maybe-all-libcpp:
3ff3adad
PB
17398@if gcc-bootstrap
17399all-libcpp: stage_current
17400@endif gcc-bootstrap
d32ab992 17401@if libcpp
7e0b5752 17402TARGET-libcpp=all
d32ab992
PB
17403maybe-all-libcpp: all-libcpp
17404all-libcpp: configure-libcpp
cc11cc9b 17405 @r=`${PWD_COMMAND}`; export r; \
295f4e42 17406 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 17407 $(HOST_EXPORTS) \
215c351a
PB
17408 (cd $(HOST_SUBDIR)/libcpp && \
17409 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-libcpp))
d32ab992 17410@endif libcpp
1358ccea 17411
25b42232 17412
ce406537
PB
17413
17414.PHONY: all-stage1-libcpp maybe-all-stage1-libcpp
17415.PHONY: clean-stage1-libcpp maybe-clean-stage1-libcpp
17416maybe-all-stage1-libcpp:
17417maybe-clean-stage1-libcpp:
17418@if libcpp-bootstrap
17419maybe-all-stage1-libcpp: all-stage1-libcpp
17420all-stage1: all-stage1-libcpp
1061f99e 17421TARGET-stage1-libcpp = $(TARGET-libcpp)
ce406537 17422all-stage1-libcpp: configure-stage1-libcpp
cc11cc9b 17423 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
ce406537
PB
17424 @r=`${PWD_COMMAND}`; export r; \
17425 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17426 $(HOST_EXPORTS) \
17427 cd $(HOST_SUBDIR)/libcpp && \
cc11cc9b 17428 $(MAKE) $(FLAGS_TO_PASS) CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" \
1061f99e 17429 $(TARGET-stage1-libcpp)
ce406537
PB
17430
17431maybe-clean-stage1-libcpp: clean-stage1-libcpp
17432clean-stage1: clean-stage1-libcpp
17433clean-stage1-libcpp:
17434 @[ -f $(HOST_SUBDIR)/libcpp/Makefile ] || [ -f $(HOST_SUBDIR)/stage1-libcpp/Makefile ] \
17435 || exit 0 ; \
cc11cc9b 17436 [ $(current_stage) = stage1 ] || $(MAKE) stage1-start; \
ce406537
PB
17437 cd $(HOST_SUBDIR)/libcpp && \
17438 $(MAKE) $(FLAGS_TO_PASS) \
cc11cc9b 17439 CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" clean
ce406537
PB
17440@endif libcpp-bootstrap
17441
17442
17443.PHONY: all-stage2-libcpp maybe-all-stage2-libcpp
17444.PHONY: clean-stage2-libcpp maybe-clean-stage2-libcpp
17445maybe-all-stage2-libcpp:
17446maybe-clean-stage2-libcpp:
17447@if libcpp-bootstrap
17448maybe-all-stage2-libcpp: all-stage2-libcpp
17449all-stage2: all-stage2-libcpp
1061f99e 17450TARGET-stage2-libcpp = $(TARGET-libcpp)
ce406537 17451all-stage2-libcpp: configure-stage2-libcpp
cc11cc9b 17452 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
ce406537
PB
17453 @r=`${PWD_COMMAND}`; export r; \
17454 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17455 $(HOST_EXPORTS) \
17456 $(POSTSTAGE1_HOST_EXPORTS) \
17457 cd $(HOST_SUBDIR)/libcpp && \
1061f99e
PB
17458 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
17459 $(TARGET-stage2-libcpp)
ce406537
PB
17460
17461maybe-clean-stage2-libcpp: clean-stage2-libcpp
17462clean-stage2: clean-stage2-libcpp
17463clean-stage2-libcpp:
17464 @[ -f $(HOST_SUBDIR)/libcpp/Makefile ] || [ -f $(HOST_SUBDIR)/stage2-libcpp/Makefile ] \
17465 || exit 0 ; \
cc11cc9b 17466 [ $(current_stage) = stage2 ] || $(MAKE) stage2-start; \
ce406537
PB
17467 cd $(HOST_SUBDIR)/libcpp && \
17468 $(MAKE) $(FLAGS_TO_PASS) \
17469 $(POSTSTAGE1_FLAGS_TO_PASS) \
17470 clean
17471@endif libcpp-bootstrap
17472
17473
17474.PHONY: all-stage3-libcpp maybe-all-stage3-libcpp
17475.PHONY: clean-stage3-libcpp maybe-clean-stage3-libcpp
17476maybe-all-stage3-libcpp:
17477maybe-clean-stage3-libcpp:
17478@if libcpp-bootstrap
17479maybe-all-stage3-libcpp: all-stage3-libcpp
17480all-stage3: all-stage3-libcpp
1061f99e 17481TARGET-stage3-libcpp = $(TARGET-libcpp)
ce406537 17482all-stage3-libcpp: configure-stage3-libcpp
cc11cc9b 17483 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
ce406537
PB
17484 @r=`${PWD_COMMAND}`; export r; \
17485 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17486 $(HOST_EXPORTS) \
17487 $(POSTSTAGE1_HOST_EXPORTS) \
17488 cd $(HOST_SUBDIR)/libcpp && \
1061f99e
PB
17489 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
17490 $(TARGET-stage3-libcpp)
ce406537
PB
17491
17492maybe-clean-stage3-libcpp: clean-stage3-libcpp
17493clean-stage3: clean-stage3-libcpp
17494clean-stage3-libcpp:
17495 @[ -f $(HOST_SUBDIR)/libcpp/Makefile ] || [ -f $(HOST_SUBDIR)/stage3-libcpp/Makefile ] \
17496 || exit 0 ; \
cc11cc9b 17497 [ $(current_stage) = stage3 ] || $(MAKE) stage3-start; \
ce406537
PB
17498 cd $(HOST_SUBDIR)/libcpp && \
17499 $(MAKE) $(FLAGS_TO_PASS) \
17500 $(POSTSTAGE1_FLAGS_TO_PASS) \
17501 clean
17502@endif libcpp-bootstrap
17503
17504
17505.PHONY: all-stage4-libcpp maybe-all-stage4-libcpp
17506.PHONY: clean-stage4-libcpp maybe-clean-stage4-libcpp
17507maybe-all-stage4-libcpp:
17508maybe-clean-stage4-libcpp:
17509@if libcpp-bootstrap
17510maybe-all-stage4-libcpp: all-stage4-libcpp
17511all-stage4: all-stage4-libcpp
1061f99e 17512TARGET-stage4-libcpp = $(TARGET-libcpp)
ce406537 17513all-stage4-libcpp: configure-stage4-libcpp
cc11cc9b 17514 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
ce406537
PB
17515 @r=`${PWD_COMMAND}`; export r; \
17516 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17517 $(HOST_EXPORTS) \
17518 $(POSTSTAGE1_HOST_EXPORTS) \
17519 cd $(HOST_SUBDIR)/libcpp && \
1061f99e
PB
17520 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
17521 $(TARGET-stage4-libcpp)
ce406537
PB
17522
17523maybe-clean-stage4-libcpp: clean-stage4-libcpp
17524clean-stage4: clean-stage4-libcpp
17525clean-stage4-libcpp:
17526 @[ -f $(HOST_SUBDIR)/libcpp/Makefile ] || [ -f $(HOST_SUBDIR)/stage4-libcpp/Makefile ] \
17527 || exit 0 ; \
cc11cc9b 17528 [ $(current_stage) = stage4 ] || $(MAKE) stage4-start; \
ce406537
PB
17529 cd $(HOST_SUBDIR)/libcpp && \
17530 $(MAKE) $(FLAGS_TO_PASS) \
17531 $(POSTSTAGE1_FLAGS_TO_PASS) \
17532 clean
17533@endif libcpp-bootstrap
17534
17535
17536.PHONY: all-stageprofile-libcpp maybe-all-stageprofile-libcpp
17537.PHONY: clean-stageprofile-libcpp maybe-clean-stageprofile-libcpp
17538maybe-all-stageprofile-libcpp:
17539maybe-clean-stageprofile-libcpp:
17540@if libcpp-bootstrap
17541maybe-all-stageprofile-libcpp: all-stageprofile-libcpp
17542all-stageprofile: all-stageprofile-libcpp
1061f99e 17543TARGET-stageprofile-libcpp = $(TARGET-libcpp)
ce406537 17544all-stageprofile-libcpp: configure-stageprofile-libcpp
cc11cc9b 17545 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
ce406537
PB
17546 @r=`${PWD_COMMAND}`; export r; \
17547 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17548 $(HOST_EXPORTS) \
17549 $(POSTSTAGE1_HOST_EXPORTS) \
17550 cd $(HOST_SUBDIR)/libcpp && \
1061f99e
PB
17551 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" \
17552 $(TARGET-stageprofile-libcpp)
ce406537
PB
17553
17554maybe-clean-stageprofile-libcpp: clean-stageprofile-libcpp
17555clean-stageprofile: clean-stageprofile-libcpp
17556clean-stageprofile-libcpp:
17557 @[ -f $(HOST_SUBDIR)/libcpp/Makefile ] || [ -f $(HOST_SUBDIR)/stageprofile-libcpp/Makefile ] \
17558 || exit 0 ; \
cc11cc9b 17559 [ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start; \
ce406537
PB
17560 cd $(HOST_SUBDIR)/libcpp && \
17561 $(MAKE) $(FLAGS_TO_PASS) \
17562 $(POSTSTAGE1_FLAGS_TO_PASS) \
17563 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean
17564@endif libcpp-bootstrap
17565
17566
17567.PHONY: all-stagefeedback-libcpp maybe-all-stagefeedback-libcpp
17568.PHONY: clean-stagefeedback-libcpp maybe-clean-stagefeedback-libcpp
17569maybe-all-stagefeedback-libcpp:
17570maybe-clean-stagefeedback-libcpp:
17571@if libcpp-bootstrap
17572maybe-all-stagefeedback-libcpp: all-stagefeedback-libcpp
17573all-stagefeedback: all-stagefeedback-libcpp
1061f99e 17574TARGET-stagefeedback-libcpp = $(TARGET-libcpp)
ce406537 17575all-stagefeedback-libcpp: configure-stagefeedback-libcpp
cc11cc9b 17576 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
ce406537
PB
17577 @r=`${PWD_COMMAND}`; export r; \
17578 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17579 $(HOST_EXPORTS) \
17580 $(POSTSTAGE1_HOST_EXPORTS) \
17581 cd $(HOST_SUBDIR)/libcpp && \
1061f99e
PB
17582 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-use" \
17583 $(TARGET-stagefeedback-libcpp)
ce406537
PB
17584
17585maybe-clean-stagefeedback-libcpp: clean-stagefeedback-libcpp
17586clean-stagefeedback: clean-stagefeedback-libcpp
17587clean-stagefeedback-libcpp:
17588 @[ -f $(HOST_SUBDIR)/libcpp/Makefile ] || [ -f $(HOST_SUBDIR)/stagefeedback-libcpp/Makefile ] \
17589 || exit 0 ; \
cc11cc9b 17590 [ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start; \
ce406537
PB
17591 cd $(HOST_SUBDIR)/libcpp && \
17592 $(MAKE) $(FLAGS_TO_PASS) \
17593 $(POSTSTAGE1_FLAGS_TO_PASS) \
17594 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean
17595@endif libcpp-bootstrap
17596
17597
17598
17599
17600
d32ab992
PB
17601.PHONY: check-libcpp maybe-check-libcpp
17602maybe-check-libcpp:
17603@if libcpp
17604maybe-check-libcpp: check-libcpp
1358ccea 17605
d32ab992 17606check-libcpp:
f41d6665 17607 @: $(MAKE); $(unstage)
295f4e42 17608 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 17609 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 17610 $(HOST_EXPORTS) \
215c351a
PB
17611 (cd $(HOST_SUBDIR)/libcpp && \
17612 $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 17613
d32ab992 17614@endif libcpp
1358ccea 17615
d32ab992
PB
17616.PHONY: install-libcpp maybe-install-libcpp
17617maybe-install-libcpp:
17618@if libcpp
17619maybe-install-libcpp: install-libcpp
17620
17621install-libcpp: installdirs
f41d6665 17622 @: $(MAKE); $(unstage)
295f4e42 17623 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 17624 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 17625 $(HOST_EXPORTS) \
215c351a 17626 (cd $(HOST_SUBDIR)/libcpp && \
ace9ac7b 17627 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 17628
d32ab992 17629@endif libcpp
1358ccea 17630
295f4e42 17631# Other targets (info, dvi, etc.)
1358ccea 17632
d32ab992
PB
17633.PHONY: maybe-info-libcpp info-libcpp
17634maybe-info-libcpp:
17635@if libcpp
17636maybe-info-libcpp: info-libcpp
295f4e42 17637
d32ab992 17638info-libcpp: \
05750653 17639 configure-libcpp
d32ab992 17640 @[ -f ./libcpp/Makefile ] || exit 0; \
8c90b13a
L
17641 r=`${PWD_COMMAND}`; export r; \
17642 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 17643 $(HOST_EXPORTS) \
d32ab992 17644 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
17645 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17646 done; \
d32ab992 17647 echo "Doing info in libcpp" ; \
215c351a 17648 (cd $(HOST_SUBDIR)/libcpp && \
1358ccea
NN
17649 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17650 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17651 "RANLIB=$${RANLIB}" \
17652 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17653 info) \
1358ccea
NN
17654 || exit 1
17655
d32ab992 17656@endif libcpp
1358ccea 17657
d32ab992
PB
17658.PHONY: maybe-dvi-libcpp dvi-libcpp
17659maybe-dvi-libcpp:
17660@if libcpp
17661maybe-dvi-libcpp: dvi-libcpp
1358ccea 17662
d32ab992 17663dvi-libcpp: \
05750653 17664 configure-libcpp
d32ab992 17665 @[ -f ./libcpp/Makefile ] || exit 0; \
8c90b13a
L
17666 r=`${PWD_COMMAND}`; export r; \
17667 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 17668 $(HOST_EXPORTS) \
d32ab992 17669 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
17670 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17671 done; \
d32ab992 17672 echo "Doing dvi in libcpp" ; \
215c351a 17673 (cd $(HOST_SUBDIR)/libcpp && \
1358ccea
NN
17674 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17675 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17676 "RANLIB=$${RANLIB}" \
17677 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17678 dvi) \
1358ccea
NN
17679 || exit 1
17680
d32ab992 17681@endif libcpp
1358ccea 17682
f87a2b2e
MS
17683.PHONY: maybe-html-libcpp html-libcpp
17684maybe-html-libcpp:
17685@if libcpp
17686maybe-html-libcpp: html-libcpp
17687
17688html-libcpp: \
05750653 17689 configure-libcpp
f87a2b2e
MS
17690 @[ -f ./libcpp/Makefile ] || exit 0; \
17691 r=`${PWD_COMMAND}`; export r; \
17692 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
17693 $(HOST_EXPORTS) \
17694 for flag in $(EXTRA_HOST_FLAGS) ; do \
17695 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17696 done; \
17697 echo "Doing html in libcpp" ; \
215c351a 17698 (cd $(HOST_SUBDIR)/libcpp && \
f87a2b2e
MS
17699 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17700 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17701 "RANLIB=$${RANLIB}" \
17702 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17703 html) \
17704 || exit 1
17705
17706@endif libcpp
17707
d32ab992
PB
17708.PHONY: maybe-TAGS-libcpp TAGS-libcpp
17709maybe-TAGS-libcpp:
17710@if libcpp
17711maybe-TAGS-libcpp: TAGS-libcpp
1358ccea 17712
d32ab992 17713TAGS-libcpp: \
05750653 17714 configure-libcpp
d32ab992 17715 @[ -f ./libcpp/Makefile ] || exit 0; \
8c90b13a
L
17716 r=`${PWD_COMMAND}`; export r; \
17717 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 17718 $(HOST_EXPORTS) \
d32ab992 17719 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
17720 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17721 done; \
d32ab992 17722 echo "Doing TAGS in libcpp" ; \
215c351a 17723 (cd $(HOST_SUBDIR)/libcpp && \
1358ccea
NN
17724 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17725 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17726 "RANLIB=$${RANLIB}" \
17727 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17728 TAGS) \
1358ccea
NN
17729 || exit 1
17730
d32ab992 17731@endif libcpp
1358ccea 17732
d32ab992
PB
17733.PHONY: maybe-install-info-libcpp install-info-libcpp
17734maybe-install-info-libcpp:
17735@if libcpp
17736maybe-install-info-libcpp: install-info-libcpp
1358ccea 17737
d32ab992
PB
17738install-info-libcpp: \
17739 configure-libcpp \
05750653 17740 info-libcpp
d32ab992 17741 @[ -f ./libcpp/Makefile ] || exit 0; \
8c90b13a
L
17742 r=`${PWD_COMMAND}`; export r; \
17743 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 17744 $(HOST_EXPORTS) \
d32ab992 17745 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
17746 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17747 done; \
d32ab992 17748 echo "Doing install-info in libcpp" ; \
215c351a 17749 (cd $(HOST_SUBDIR)/libcpp && \
1358ccea
NN
17750 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17751 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17752 "RANLIB=$${RANLIB}" \
17753 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17754 install-info) \
1358ccea
NN
17755 || exit 1
17756
d32ab992 17757@endif libcpp
1358ccea 17758
65d6e994
CD
17759.PHONY: maybe-install-html-libcpp install-html-libcpp
17760maybe-install-html-libcpp:
17761@if libcpp
17762maybe-install-html-libcpp: install-html-libcpp
17763
17764install-html-libcpp: \
17765 configure-libcpp \
17766 html-libcpp
17767 @[ -f ./libcpp/Makefile ] || exit 0; \
17768 r=`${PWD_COMMAND}`; export r; \
17769 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17770 $(HOST_EXPORTS) \
17771 for flag in $(EXTRA_HOST_FLAGS) ; do \
17772 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17773 done; \
17774 echo "Doing install-html in libcpp" ; \
17775 (cd $(HOST_SUBDIR)/libcpp && \
17776 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17777 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17778 "RANLIB=$${RANLIB}" \
17779 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17780 install-html) \
17781 || exit 1
17782
17783@endif libcpp
17784
d32ab992
PB
17785.PHONY: maybe-installcheck-libcpp installcheck-libcpp
17786maybe-installcheck-libcpp:
17787@if libcpp
17788maybe-installcheck-libcpp: installcheck-libcpp
1358ccea 17789
d32ab992 17790installcheck-libcpp: \
05750653 17791 configure-libcpp
d32ab992 17792 @[ -f ./libcpp/Makefile ] || exit 0; \
8c90b13a
L
17793 r=`${PWD_COMMAND}`; export r; \
17794 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 17795 $(HOST_EXPORTS) \
d32ab992 17796 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
17797 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17798 done; \
d32ab992 17799 echo "Doing installcheck in libcpp" ; \
215c351a 17800 (cd $(HOST_SUBDIR)/libcpp && \
1358ccea
NN
17801 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17802 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17803 "RANLIB=$${RANLIB}" \
17804 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17805 installcheck) \
1358ccea
NN
17806 || exit 1
17807
d32ab992 17808@endif libcpp
1358ccea 17809
d32ab992
PB
17810.PHONY: maybe-mostlyclean-libcpp mostlyclean-libcpp
17811maybe-mostlyclean-libcpp:
17812@if libcpp
17813maybe-mostlyclean-libcpp: mostlyclean-libcpp
1358ccea 17814
05750653 17815mostlyclean-libcpp:
d32ab992 17816 @[ -f ./libcpp/Makefile ] || exit 0; \
8c90b13a
L
17817 r=`${PWD_COMMAND}`; export r; \
17818 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 17819 $(HOST_EXPORTS) \
d32ab992 17820 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
17821 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17822 done; \
d32ab992 17823 echo "Doing mostlyclean in libcpp" ; \
215c351a 17824 (cd $(HOST_SUBDIR)/libcpp && \
1358ccea
NN
17825 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17826 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17827 "RANLIB=$${RANLIB}" \
17828 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17829 mostlyclean) \
1358ccea
NN
17830 || exit 1
17831
d32ab992 17832@endif libcpp
1358ccea 17833
d32ab992
PB
17834.PHONY: maybe-clean-libcpp clean-libcpp
17835maybe-clean-libcpp:
17836@if libcpp
17837maybe-clean-libcpp: clean-libcpp
1358ccea 17838
05750653 17839clean-libcpp:
d32ab992 17840 @[ -f ./libcpp/Makefile ] || exit 0; \
8c90b13a
L
17841 r=`${PWD_COMMAND}`; export r; \
17842 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 17843 $(HOST_EXPORTS) \
d32ab992 17844 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
17845 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17846 done; \
d32ab992 17847 echo "Doing clean in libcpp" ; \
215c351a 17848 (cd $(HOST_SUBDIR)/libcpp && \
1358ccea
NN
17849 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17850 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17851 "RANLIB=$${RANLIB}" \
17852 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17853 clean) \
1358ccea
NN
17854 || exit 1
17855
d32ab992 17856@endif libcpp
1358ccea 17857
d32ab992
PB
17858.PHONY: maybe-distclean-libcpp distclean-libcpp
17859maybe-distclean-libcpp:
17860@if libcpp
17861maybe-distclean-libcpp: distclean-libcpp
1358ccea 17862
05750653 17863distclean-libcpp:
d32ab992 17864 @[ -f ./libcpp/Makefile ] || exit 0; \
8c90b13a
L
17865 r=`${PWD_COMMAND}`; export r; \
17866 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 17867 $(HOST_EXPORTS) \
d32ab992 17868 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
17869 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17870 done; \
d32ab992 17871 echo "Doing distclean in libcpp" ; \
215c351a 17872 (cd $(HOST_SUBDIR)/libcpp && \
1358ccea
NN
17873 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17874 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17875 "RANLIB=$${RANLIB}" \
17876 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17877 distclean) \
1358ccea
NN
17878 || exit 1
17879
d32ab992 17880@endif libcpp
1358ccea 17881
d32ab992
PB
17882.PHONY: maybe-maintainer-clean-libcpp maintainer-clean-libcpp
17883maybe-maintainer-clean-libcpp:
17884@if libcpp
17885maybe-maintainer-clean-libcpp: maintainer-clean-libcpp
1358ccea 17886
05750653 17887maintainer-clean-libcpp:
d32ab992 17888 @[ -f ./libcpp/Makefile ] || exit 0; \
8c90b13a
L
17889 r=`${PWD_COMMAND}`; export r; \
17890 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 17891 $(HOST_EXPORTS) \
d32ab992 17892 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
17893 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17894 done; \
d32ab992 17895 echo "Doing maintainer-clean in libcpp" ; \
215c351a 17896 (cd $(HOST_SUBDIR)/libcpp && \
1358ccea
NN
17897 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17898 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17899 "RANLIB=$${RANLIB}" \
17900 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17901 maintainer-clean) \
1358ccea
NN
17902 || exit 1
17903
d32ab992 17904@endif libcpp
1358ccea 17905
1358ccea 17906
25b42232 17907
a4b6c45a
BE
17908.PHONY: configure-libdecnumber maybe-configure-libdecnumber
17909maybe-configure-libdecnumber:
3ff3adad
PB
17910@if gcc-bootstrap
17911configure-libdecnumber: stage_current
17912@endif gcc-bootstrap
a4b6c45a
BE
17913@if libdecnumber
17914maybe-configure-libdecnumber: configure-libdecnumber
cc11cc9b 17915configure-libdecnumber:
cc11cc9b
PB
17916 @r=`${PWD_COMMAND}`; export r; \
17917 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a4b6c45a
BE
17918 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
17919 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \
a4b6c45a
BE
17920 $(HOST_EXPORTS) \
17921 echo Configuring in $(HOST_SUBDIR)/libdecnumber; \
17922 cd "$(HOST_SUBDIR)/libdecnumber" || exit 1; \
17923 case $(srcdir) in \
17924 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
17925 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
17926 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17927 esac; \
17928 srcdiroption="--srcdir=$${topdir}/libdecnumber"; \
17929 libsrcdir="$$s/libdecnumber"; \
17930 $(SHELL) $${libsrcdir}/configure \
17931 $(HOST_CONFIGARGS) $${srcdiroption} \
17932 || exit 1
17933@endif libdecnumber
17934
17935
17936
17937.PHONY: configure-stage1-libdecnumber maybe-configure-stage1-libdecnumber
17938maybe-configure-stage1-libdecnumber:
17939@if libdecnumber-bootstrap
17940maybe-configure-stage1-libdecnumber: configure-stage1-libdecnumber
f41d6665 17941configure-stage1-libdecnumber:
cc11cc9b 17942 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
f41d6665 17943 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
cc11cc9b
PB
17944 @r=`${PWD_COMMAND}`; export r; \
17945 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 17946 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
a4b6c45a
BE
17947 $(HOST_EXPORTS) \
17948 echo Configuring stage 1 in $(HOST_SUBDIR)/libdecnumber ; \
f41d6665 17949 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \
a4b6c45a
BE
17950 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
17951 case $(srcdir) in \
17952 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
17953 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
17954 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17955 esac; \
17956 srcdiroption="--srcdir=$${topdir}/libdecnumber"; \
17957 libsrcdir="$$s/libdecnumber"; \
17958 $(SHELL) $${libsrcdir}/configure \
17959 $(HOST_CONFIGARGS) $${srcdiroption} \
17960 --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
17961@endif libdecnumber-bootstrap
17962
17963.PHONY: configure-stage2-libdecnumber maybe-configure-stage2-libdecnumber
17964maybe-configure-stage2-libdecnumber:
17965@if libdecnumber-bootstrap
17966maybe-configure-stage2-libdecnumber: configure-stage2-libdecnumber
f41d6665 17967configure-stage2-libdecnumber:
cc11cc9b 17968 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
f41d6665 17969 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
cc11cc9b
PB
17970 @r=`${PWD_COMMAND}`; export r; \
17971 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 17972 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
a4b6c45a
BE
17973 $(HOST_EXPORTS) \
17974 $(POSTSTAGE1_HOST_EXPORTS) \
17975 echo Configuring stage 2 in $(HOST_SUBDIR)/libdecnumber ; \
f41d6665 17976 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \
a4b6c45a
BE
17977 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
17978 case $(srcdir) in \
17979 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
17980 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
17981 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17982 esac; \
17983 srcdiroption="--srcdir=$${topdir}/libdecnumber"; \
17984 libsrcdir="$$s/libdecnumber"; \
17985 $(SHELL) $${libsrcdir}/configure \
17986 $(HOST_CONFIGARGS) $${srcdiroption} \
17987 @stage2_werror_flag@
17988@endif libdecnumber-bootstrap
17989
17990.PHONY: configure-stage3-libdecnumber maybe-configure-stage3-libdecnumber
17991maybe-configure-stage3-libdecnumber:
17992@if libdecnumber-bootstrap
17993maybe-configure-stage3-libdecnumber: configure-stage3-libdecnumber
f41d6665 17994configure-stage3-libdecnumber:
cc11cc9b 17995 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
f41d6665 17996 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
cc11cc9b
PB
17997 @r=`${PWD_COMMAND}`; export r; \
17998 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 17999 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
a4b6c45a
BE
18000 $(HOST_EXPORTS) \
18001 $(POSTSTAGE1_HOST_EXPORTS) \
18002 echo Configuring stage 3 in $(HOST_SUBDIR)/libdecnumber ; \
f41d6665 18003 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \
a4b6c45a
BE
18004 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
18005 case $(srcdir) in \
18006 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
18007 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
18008 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18009 esac; \
18010 srcdiroption="--srcdir=$${topdir}/libdecnumber"; \
18011 libsrcdir="$$s/libdecnumber"; \
18012 $(SHELL) $${libsrcdir}/configure \
18013 $(HOST_CONFIGARGS) $${srcdiroption} \
18014 @stage2_werror_flag@
18015@endif libdecnumber-bootstrap
18016
18017.PHONY: configure-stage4-libdecnumber maybe-configure-stage4-libdecnumber
18018maybe-configure-stage4-libdecnumber:
18019@if libdecnumber-bootstrap
18020maybe-configure-stage4-libdecnumber: configure-stage4-libdecnumber
f41d6665 18021configure-stage4-libdecnumber:
cc11cc9b 18022 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
f41d6665 18023 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
cc11cc9b
PB
18024 @r=`${PWD_COMMAND}`; export r; \
18025 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 18026 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
a4b6c45a
BE
18027 $(HOST_EXPORTS) \
18028 $(POSTSTAGE1_HOST_EXPORTS) \
18029 echo Configuring stage 4 in $(HOST_SUBDIR)/libdecnumber ; \
f41d6665 18030 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \
a4b6c45a
BE
18031 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
18032 case $(srcdir) in \
18033 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
18034 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
18035 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18036 esac; \
18037 srcdiroption="--srcdir=$${topdir}/libdecnumber"; \
18038 libsrcdir="$$s/libdecnumber"; \
18039 $(SHELL) $${libsrcdir}/configure \
18040 $(HOST_CONFIGARGS) $${srcdiroption} \
18041 @stage2_werror_flag@
18042@endif libdecnumber-bootstrap
18043
18044.PHONY: configure-stageprofile-libdecnumber maybe-configure-stageprofile-libdecnumber
18045maybe-configure-stageprofile-libdecnumber:
18046@if libdecnumber-bootstrap
18047maybe-configure-stageprofile-libdecnumber: configure-stageprofile-libdecnumber
f41d6665 18048configure-stageprofile-libdecnumber:
cc11cc9b 18049 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
f41d6665 18050 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
cc11cc9b
PB
18051 @r=`${PWD_COMMAND}`; export r; \
18052 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 18053 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
a4b6c45a
BE
18054 $(HOST_EXPORTS) \
18055 $(POSTSTAGE1_HOST_EXPORTS) \
18056 echo Configuring stage profile in $(HOST_SUBDIR)/libdecnumber ; \
f41d6665 18057 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \
a4b6c45a
BE
18058 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
18059 case $(srcdir) in \
18060 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
18061 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
18062 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18063 esac; \
18064 srcdiroption="--srcdir=$${topdir}/libdecnumber"; \
18065 libsrcdir="$$s/libdecnumber"; \
18066 $(SHELL) $${libsrcdir}/configure \
18067 $(HOST_CONFIGARGS) $${srcdiroption} \
18068 @stage2_werror_flag@
18069@endif libdecnumber-bootstrap
18070
18071.PHONY: configure-stagefeedback-libdecnumber maybe-configure-stagefeedback-libdecnumber
18072maybe-configure-stagefeedback-libdecnumber:
18073@if libdecnumber-bootstrap
18074maybe-configure-stagefeedback-libdecnumber: configure-stagefeedback-libdecnumber
f41d6665 18075configure-stagefeedback-libdecnumber:
cc11cc9b 18076 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
f41d6665 18077 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
cc11cc9b
PB
18078 @r=`${PWD_COMMAND}`; export r; \
18079 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 18080 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
a4b6c45a
BE
18081 $(HOST_EXPORTS) \
18082 $(POSTSTAGE1_HOST_EXPORTS) \
18083 echo Configuring stage feedback in $(HOST_SUBDIR)/libdecnumber ; \
f41d6665 18084 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \
a4b6c45a
BE
18085 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
18086 case $(srcdir) in \
18087 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
18088 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
18089 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18090 esac; \
18091 srcdiroption="--srcdir=$${topdir}/libdecnumber"; \
18092 libsrcdir="$$s/libdecnumber"; \
18093 $(SHELL) $${libsrcdir}/configure \
18094 $(HOST_CONFIGARGS) $${srcdiroption} \
18095 @stage2_werror_flag@
18096@endif libdecnumber-bootstrap
18097
18098
18099
18100
18101
18102.PHONY: all-libdecnumber maybe-all-libdecnumber
18103maybe-all-libdecnumber:
3ff3adad
PB
18104@if gcc-bootstrap
18105all-libdecnumber: stage_current
18106@endif gcc-bootstrap
a4b6c45a
BE
18107@if libdecnumber
18108TARGET-libdecnumber=all
18109maybe-all-libdecnumber: all-libdecnumber
18110all-libdecnumber: configure-libdecnumber
cc11cc9b 18111 @r=`${PWD_COMMAND}`; export r; \
a4b6c45a
BE
18112 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18113 $(HOST_EXPORTS) \
18114 (cd $(HOST_SUBDIR)/libdecnumber && \
18115 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-libdecnumber))
18116@endif libdecnumber
18117
18118
18119
18120.PHONY: all-stage1-libdecnumber maybe-all-stage1-libdecnumber
18121.PHONY: clean-stage1-libdecnumber maybe-clean-stage1-libdecnumber
18122maybe-all-stage1-libdecnumber:
18123maybe-clean-stage1-libdecnumber:
18124@if libdecnumber-bootstrap
18125maybe-all-stage1-libdecnumber: all-stage1-libdecnumber
18126all-stage1: all-stage1-libdecnumber
18127TARGET-stage1-libdecnumber = $(TARGET-libdecnumber)
18128all-stage1-libdecnumber: configure-stage1-libdecnumber
cc11cc9b 18129 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a4b6c45a
BE
18130 @r=`${PWD_COMMAND}`; export r; \
18131 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18132 $(HOST_EXPORTS) \
18133 cd $(HOST_SUBDIR)/libdecnumber && \
cc11cc9b 18134 $(MAKE) $(FLAGS_TO_PASS) CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" \
a4b6c45a
BE
18135 $(TARGET-stage1-libdecnumber)
18136
18137maybe-clean-stage1-libdecnumber: clean-stage1-libdecnumber
18138clean-stage1: clean-stage1-libdecnumber
18139clean-stage1-libdecnumber:
18140 @[ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || [ -f $(HOST_SUBDIR)/stage1-libdecnumber/Makefile ] \
18141 || exit 0 ; \
cc11cc9b 18142 [ $(current_stage) = stage1 ] || $(MAKE) stage1-start; \
a4b6c45a
BE
18143 cd $(HOST_SUBDIR)/libdecnumber && \
18144 $(MAKE) $(FLAGS_TO_PASS) \
cc11cc9b 18145 CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" clean
a4b6c45a
BE
18146@endif libdecnumber-bootstrap
18147
18148
18149.PHONY: all-stage2-libdecnumber maybe-all-stage2-libdecnumber
18150.PHONY: clean-stage2-libdecnumber maybe-clean-stage2-libdecnumber
18151maybe-all-stage2-libdecnumber:
18152maybe-clean-stage2-libdecnumber:
18153@if libdecnumber-bootstrap
18154maybe-all-stage2-libdecnumber: all-stage2-libdecnumber
18155all-stage2: all-stage2-libdecnumber
18156TARGET-stage2-libdecnumber = $(TARGET-libdecnumber)
18157all-stage2-libdecnumber: configure-stage2-libdecnumber
cc11cc9b 18158 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a4b6c45a
BE
18159 @r=`${PWD_COMMAND}`; export r; \
18160 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18161 $(HOST_EXPORTS) \
18162 $(POSTSTAGE1_HOST_EXPORTS) \
18163 cd $(HOST_SUBDIR)/libdecnumber && \
18164 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
18165 $(TARGET-stage2-libdecnumber)
18166
18167maybe-clean-stage2-libdecnumber: clean-stage2-libdecnumber
18168clean-stage2: clean-stage2-libdecnumber
18169clean-stage2-libdecnumber:
18170 @[ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || [ -f $(HOST_SUBDIR)/stage2-libdecnumber/Makefile ] \
18171 || exit 0 ; \
cc11cc9b 18172 [ $(current_stage) = stage2 ] || $(MAKE) stage2-start; \
a4b6c45a
BE
18173 cd $(HOST_SUBDIR)/libdecnumber && \
18174 $(MAKE) $(FLAGS_TO_PASS) \
18175 $(POSTSTAGE1_FLAGS_TO_PASS) \
18176 clean
18177@endif libdecnumber-bootstrap
18178
18179
18180.PHONY: all-stage3-libdecnumber maybe-all-stage3-libdecnumber
18181.PHONY: clean-stage3-libdecnumber maybe-clean-stage3-libdecnumber
18182maybe-all-stage3-libdecnumber:
18183maybe-clean-stage3-libdecnumber:
18184@if libdecnumber-bootstrap
18185maybe-all-stage3-libdecnumber: all-stage3-libdecnumber
18186all-stage3: all-stage3-libdecnumber
18187TARGET-stage3-libdecnumber = $(TARGET-libdecnumber)
18188all-stage3-libdecnumber: configure-stage3-libdecnumber
cc11cc9b 18189 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a4b6c45a
BE
18190 @r=`${PWD_COMMAND}`; export r; \
18191 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18192 $(HOST_EXPORTS) \
18193 $(POSTSTAGE1_HOST_EXPORTS) \
18194 cd $(HOST_SUBDIR)/libdecnumber && \
18195 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
18196 $(TARGET-stage3-libdecnumber)
18197
18198maybe-clean-stage3-libdecnumber: clean-stage3-libdecnumber
18199clean-stage3: clean-stage3-libdecnumber
18200clean-stage3-libdecnumber:
18201 @[ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || [ -f $(HOST_SUBDIR)/stage3-libdecnumber/Makefile ] \
18202 || exit 0 ; \
cc11cc9b 18203 [ $(current_stage) = stage3 ] || $(MAKE) stage3-start; \
a4b6c45a
BE
18204 cd $(HOST_SUBDIR)/libdecnumber && \
18205 $(MAKE) $(FLAGS_TO_PASS) \
18206 $(POSTSTAGE1_FLAGS_TO_PASS) \
18207 clean
18208@endif libdecnumber-bootstrap
18209
18210
18211.PHONY: all-stage4-libdecnumber maybe-all-stage4-libdecnumber
18212.PHONY: clean-stage4-libdecnumber maybe-clean-stage4-libdecnumber
18213maybe-all-stage4-libdecnumber:
18214maybe-clean-stage4-libdecnumber:
18215@if libdecnumber-bootstrap
18216maybe-all-stage4-libdecnumber: all-stage4-libdecnumber
18217all-stage4: all-stage4-libdecnumber
18218TARGET-stage4-libdecnumber = $(TARGET-libdecnumber)
18219all-stage4-libdecnumber: configure-stage4-libdecnumber
cc11cc9b 18220 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a4b6c45a
BE
18221 @r=`${PWD_COMMAND}`; export r; \
18222 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18223 $(HOST_EXPORTS) \
18224 $(POSTSTAGE1_HOST_EXPORTS) \
18225 cd $(HOST_SUBDIR)/libdecnumber && \
18226 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
18227 $(TARGET-stage4-libdecnumber)
18228
18229maybe-clean-stage4-libdecnumber: clean-stage4-libdecnumber
18230clean-stage4: clean-stage4-libdecnumber
18231clean-stage4-libdecnumber:
18232 @[ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || [ -f $(HOST_SUBDIR)/stage4-libdecnumber/Makefile ] \
18233 || exit 0 ; \
cc11cc9b 18234 [ $(current_stage) = stage4 ] || $(MAKE) stage4-start; \
a4b6c45a
BE
18235 cd $(HOST_SUBDIR)/libdecnumber && \
18236 $(MAKE) $(FLAGS_TO_PASS) \
18237 $(POSTSTAGE1_FLAGS_TO_PASS) \
18238 clean
18239@endif libdecnumber-bootstrap
18240
18241
18242.PHONY: all-stageprofile-libdecnumber maybe-all-stageprofile-libdecnumber
18243.PHONY: clean-stageprofile-libdecnumber maybe-clean-stageprofile-libdecnumber
18244maybe-all-stageprofile-libdecnumber:
18245maybe-clean-stageprofile-libdecnumber:
18246@if libdecnumber-bootstrap
18247maybe-all-stageprofile-libdecnumber: all-stageprofile-libdecnumber
18248all-stageprofile: all-stageprofile-libdecnumber
18249TARGET-stageprofile-libdecnumber = $(TARGET-libdecnumber)
18250all-stageprofile-libdecnumber: configure-stageprofile-libdecnumber
cc11cc9b 18251 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a4b6c45a
BE
18252 @r=`${PWD_COMMAND}`; export r; \
18253 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18254 $(HOST_EXPORTS) \
18255 $(POSTSTAGE1_HOST_EXPORTS) \
18256 cd $(HOST_SUBDIR)/libdecnumber && \
18257 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" \
18258 $(TARGET-stageprofile-libdecnumber)
18259
18260maybe-clean-stageprofile-libdecnumber: clean-stageprofile-libdecnumber
18261clean-stageprofile: clean-stageprofile-libdecnumber
18262clean-stageprofile-libdecnumber:
18263 @[ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || [ -f $(HOST_SUBDIR)/stageprofile-libdecnumber/Makefile ] \
18264 || exit 0 ; \
cc11cc9b 18265 [ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start; \
a4b6c45a
BE
18266 cd $(HOST_SUBDIR)/libdecnumber && \
18267 $(MAKE) $(FLAGS_TO_PASS) \
18268 $(POSTSTAGE1_FLAGS_TO_PASS) \
18269 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean
18270@endif libdecnumber-bootstrap
18271
18272
18273.PHONY: all-stagefeedback-libdecnumber maybe-all-stagefeedback-libdecnumber
18274.PHONY: clean-stagefeedback-libdecnumber maybe-clean-stagefeedback-libdecnumber
18275maybe-all-stagefeedback-libdecnumber:
18276maybe-clean-stagefeedback-libdecnumber:
18277@if libdecnumber-bootstrap
18278maybe-all-stagefeedback-libdecnumber: all-stagefeedback-libdecnumber
18279all-stagefeedback: all-stagefeedback-libdecnumber
18280TARGET-stagefeedback-libdecnumber = $(TARGET-libdecnumber)
18281all-stagefeedback-libdecnumber: configure-stagefeedback-libdecnumber
cc11cc9b 18282 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a4b6c45a
BE
18283 @r=`${PWD_COMMAND}`; export r; \
18284 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18285 $(HOST_EXPORTS) \
18286 $(POSTSTAGE1_HOST_EXPORTS) \
18287 cd $(HOST_SUBDIR)/libdecnumber && \
18288 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-use" \
18289 $(TARGET-stagefeedback-libdecnumber)
18290
18291maybe-clean-stagefeedback-libdecnumber: clean-stagefeedback-libdecnumber
18292clean-stagefeedback: clean-stagefeedback-libdecnumber
18293clean-stagefeedback-libdecnumber:
18294 @[ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || [ -f $(HOST_SUBDIR)/stagefeedback-libdecnumber/Makefile ] \
18295 || exit 0 ; \
cc11cc9b 18296 [ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start; \
a4b6c45a
BE
18297 cd $(HOST_SUBDIR)/libdecnumber && \
18298 $(MAKE) $(FLAGS_TO_PASS) \
18299 $(POSTSTAGE1_FLAGS_TO_PASS) \
18300 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean
18301@endif libdecnumber-bootstrap
18302
18303
18304
18305
18306
18307.PHONY: check-libdecnumber maybe-check-libdecnumber
18308maybe-check-libdecnumber:
18309@if libdecnumber
18310maybe-check-libdecnumber: check-libdecnumber
18311
18312check-libdecnumber:
f41d6665 18313 @: $(MAKE); $(unstage)
a4b6c45a
BE
18314 @r=`${PWD_COMMAND}`; export r; \
18315 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18316 $(HOST_EXPORTS) \
18317 (cd $(HOST_SUBDIR)/libdecnumber && \
18318 $(MAKE) $(FLAGS_TO_PASS) check)
18319
18320@endif libdecnumber
18321
18322.PHONY: install-libdecnumber maybe-install-libdecnumber
18323maybe-install-libdecnumber:
18324@if libdecnumber
18325maybe-install-libdecnumber: install-libdecnumber
18326
18327install-libdecnumber: installdirs
f41d6665 18328 @: $(MAKE); $(unstage)
a4b6c45a
BE
18329 @r=`${PWD_COMMAND}`; export r; \
18330 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18331 $(HOST_EXPORTS) \
18332 (cd $(HOST_SUBDIR)/libdecnumber && \
18333 $(MAKE) $(FLAGS_TO_PASS) install)
18334
18335@endif libdecnumber
18336
18337# Other targets (info, dvi, etc.)
18338
18339.PHONY: maybe-info-libdecnumber info-libdecnumber
18340maybe-info-libdecnumber:
18341@if libdecnumber
18342maybe-info-libdecnumber: info-libdecnumber
18343
18344info-libdecnumber: \
18345 configure-libdecnumber
18346 @[ -f ./libdecnumber/Makefile ] || exit 0; \
18347 r=`${PWD_COMMAND}`; export r; \
18348 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18349 $(HOST_EXPORTS) \
18350 for flag in $(EXTRA_HOST_FLAGS) ; do \
18351 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18352 done; \
18353 echo "Doing info in libdecnumber" ; \
18354 (cd $(HOST_SUBDIR)/libdecnumber && \
18355 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18356 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18357 "RANLIB=$${RANLIB}" \
18358 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18359 info) \
18360 || exit 1
18361
18362@endif libdecnumber
18363
18364.PHONY: maybe-dvi-libdecnumber dvi-libdecnumber
18365maybe-dvi-libdecnumber:
18366@if libdecnumber
18367maybe-dvi-libdecnumber: dvi-libdecnumber
18368
18369dvi-libdecnumber: \
18370 configure-libdecnumber
18371 @[ -f ./libdecnumber/Makefile ] || exit 0; \
18372 r=`${PWD_COMMAND}`; export r; \
18373 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18374 $(HOST_EXPORTS) \
18375 for flag in $(EXTRA_HOST_FLAGS) ; do \
18376 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18377 done; \
18378 echo "Doing dvi in libdecnumber" ; \
18379 (cd $(HOST_SUBDIR)/libdecnumber && \
18380 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18381 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18382 "RANLIB=$${RANLIB}" \
18383 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18384 dvi) \
18385 || exit 1
18386
18387@endif libdecnumber
18388
18389.PHONY: maybe-html-libdecnumber html-libdecnumber
18390maybe-html-libdecnumber:
18391@if libdecnumber
18392maybe-html-libdecnumber: html-libdecnumber
18393
18394html-libdecnumber: \
18395 configure-libdecnumber
18396 @[ -f ./libdecnumber/Makefile ] || exit 0; \
18397 r=`${PWD_COMMAND}`; export r; \
18398 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18399 $(HOST_EXPORTS) \
18400 for flag in $(EXTRA_HOST_FLAGS) ; do \
18401 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18402 done; \
18403 echo "Doing html in libdecnumber" ; \
18404 (cd $(HOST_SUBDIR)/libdecnumber && \
18405 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18406 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18407 "RANLIB=$${RANLIB}" \
18408 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18409 html) \
18410 || exit 1
18411
18412@endif libdecnumber
18413
18414.PHONY: maybe-TAGS-libdecnumber TAGS-libdecnumber
18415maybe-TAGS-libdecnumber:
18416@if libdecnumber
18417maybe-TAGS-libdecnumber: TAGS-libdecnumber
18418
18419TAGS-libdecnumber: \
18420 configure-libdecnumber
18421 @[ -f ./libdecnumber/Makefile ] || exit 0; \
18422 r=`${PWD_COMMAND}`; export r; \
18423 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18424 $(HOST_EXPORTS) \
18425 for flag in $(EXTRA_HOST_FLAGS) ; do \
18426 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18427 done; \
18428 echo "Doing TAGS in libdecnumber" ; \
18429 (cd $(HOST_SUBDIR)/libdecnumber && \
18430 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18431 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18432 "RANLIB=$${RANLIB}" \
18433 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18434 TAGS) \
18435 || exit 1
18436
18437@endif libdecnumber
18438
18439.PHONY: maybe-install-info-libdecnumber install-info-libdecnumber
18440maybe-install-info-libdecnumber:
18441@if libdecnumber
18442maybe-install-info-libdecnumber: install-info-libdecnumber
18443
18444install-info-libdecnumber: \
18445 configure-libdecnumber \
18446 info-libdecnumber
18447 @[ -f ./libdecnumber/Makefile ] || exit 0; \
18448 r=`${PWD_COMMAND}`; export r; \
18449 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18450 $(HOST_EXPORTS) \
18451 for flag in $(EXTRA_HOST_FLAGS) ; do \
18452 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18453 done; \
18454 echo "Doing install-info in libdecnumber" ; \
18455 (cd $(HOST_SUBDIR)/libdecnumber && \
18456 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18457 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18458 "RANLIB=$${RANLIB}" \
18459 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18460 install-info) \
18461 || exit 1
18462
18463@endif libdecnumber
18464
65d6e994
CD
18465.PHONY: maybe-install-html-libdecnumber install-html-libdecnumber
18466maybe-install-html-libdecnumber:
18467@if libdecnumber
18468maybe-install-html-libdecnumber: install-html-libdecnumber
18469
18470install-html-libdecnumber: \
18471 configure-libdecnumber \
18472 html-libdecnumber
18473 @[ -f ./libdecnumber/Makefile ] || exit 0; \
18474 r=`${PWD_COMMAND}`; export r; \
18475 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18476 $(HOST_EXPORTS) \
18477 for flag in $(EXTRA_HOST_FLAGS) ; do \
18478 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18479 done; \
18480 echo "Doing install-html in libdecnumber" ; \
18481 (cd $(HOST_SUBDIR)/libdecnumber && \
18482 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18483 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18484 "RANLIB=$${RANLIB}" \
18485 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18486 install-html) \
18487 || exit 1
18488
18489@endif libdecnumber
18490
a4b6c45a
BE
18491.PHONY: maybe-installcheck-libdecnumber installcheck-libdecnumber
18492maybe-installcheck-libdecnumber:
18493@if libdecnumber
18494maybe-installcheck-libdecnumber: installcheck-libdecnumber
18495
18496installcheck-libdecnumber: \
18497 configure-libdecnumber
18498 @[ -f ./libdecnumber/Makefile ] || exit 0; \
18499 r=`${PWD_COMMAND}`; export r; \
18500 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18501 $(HOST_EXPORTS) \
18502 for flag in $(EXTRA_HOST_FLAGS) ; do \
18503 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18504 done; \
18505 echo "Doing installcheck in libdecnumber" ; \
18506 (cd $(HOST_SUBDIR)/libdecnumber && \
18507 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18508 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18509 "RANLIB=$${RANLIB}" \
18510 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18511 installcheck) \
18512 || exit 1
18513
18514@endif libdecnumber
18515
18516.PHONY: maybe-mostlyclean-libdecnumber mostlyclean-libdecnumber
18517maybe-mostlyclean-libdecnumber:
18518@if libdecnumber
18519maybe-mostlyclean-libdecnumber: mostlyclean-libdecnumber
18520
18521mostlyclean-libdecnumber:
18522 @[ -f ./libdecnumber/Makefile ] || exit 0; \
18523 r=`${PWD_COMMAND}`; export r; \
18524 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18525 $(HOST_EXPORTS) \
18526 for flag in $(EXTRA_HOST_FLAGS) ; do \
18527 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18528 done; \
18529 echo "Doing mostlyclean in libdecnumber" ; \
18530 (cd $(HOST_SUBDIR)/libdecnumber && \
18531 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18532 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18533 "RANLIB=$${RANLIB}" \
18534 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18535 mostlyclean) \
18536 || exit 1
18537
18538@endif libdecnumber
18539
18540.PHONY: maybe-clean-libdecnumber clean-libdecnumber
18541maybe-clean-libdecnumber:
18542@if libdecnumber
18543maybe-clean-libdecnumber: clean-libdecnumber
18544
18545clean-libdecnumber:
18546 @[ -f ./libdecnumber/Makefile ] || exit 0; \
18547 r=`${PWD_COMMAND}`; export r; \
18548 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18549 $(HOST_EXPORTS) \
18550 for flag in $(EXTRA_HOST_FLAGS) ; do \
18551 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18552 done; \
18553 echo "Doing clean in libdecnumber" ; \
18554 (cd $(HOST_SUBDIR)/libdecnumber && \
18555 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18556 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18557 "RANLIB=$${RANLIB}" \
18558 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18559 clean) \
18560 || exit 1
18561
18562@endif libdecnumber
18563
18564.PHONY: maybe-distclean-libdecnumber distclean-libdecnumber
18565maybe-distclean-libdecnumber:
18566@if libdecnumber
18567maybe-distclean-libdecnumber: distclean-libdecnumber
18568
18569distclean-libdecnumber:
18570 @[ -f ./libdecnumber/Makefile ] || exit 0; \
18571 r=`${PWD_COMMAND}`; export r; \
18572 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18573 $(HOST_EXPORTS) \
18574 for flag in $(EXTRA_HOST_FLAGS) ; do \
18575 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18576 done; \
18577 echo "Doing distclean in libdecnumber" ; \
18578 (cd $(HOST_SUBDIR)/libdecnumber && \
18579 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18580 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18581 "RANLIB=$${RANLIB}" \
18582 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18583 distclean) \
18584 || exit 1
18585
18586@endif libdecnumber
18587
18588.PHONY: maybe-maintainer-clean-libdecnumber maintainer-clean-libdecnumber
18589maybe-maintainer-clean-libdecnumber:
18590@if libdecnumber
18591maybe-maintainer-clean-libdecnumber: maintainer-clean-libdecnumber
18592
18593maintainer-clean-libdecnumber:
18594 @[ -f ./libdecnumber/Makefile ] || exit 0; \
18595 r=`${PWD_COMMAND}`; export r; \
18596 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18597 $(HOST_EXPORTS) \
18598 for flag in $(EXTRA_HOST_FLAGS) ; do \
18599 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18600 done; \
18601 echo "Doing maintainer-clean in libdecnumber" ; \
18602 (cd $(HOST_SUBDIR)/libdecnumber && \
18603 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18604 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18605 "RANLIB=$${RANLIB}" \
18606 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18607 maintainer-clean) \
18608 || exit 1
18609
18610@endif libdecnumber
18611
18612
18613
d32ab992
PB
18614.PHONY: configure-libgui maybe-configure-libgui
18615maybe-configure-libgui:
3ff3adad
PB
18616@if gcc-bootstrap
18617configure-libgui: stage_current
18618@endif gcc-bootstrap
d32ab992
PB
18619@if libgui
18620maybe-configure-libgui: configure-libgui
cc11cc9b 18621configure-libgui:
f41d6665 18622 @: $(MAKE); $(unstage)
cc11cc9b 18623 @r=`${PWD_COMMAND}`; export r; \
6de9cd9a 18624 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
18625 test ! -f $(HOST_SUBDIR)/libgui/Makefile || exit 0; \
18626 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libgui ; \
4fc4dd12 18627 $(HOST_EXPORTS) \
25b42232
PB
18628 echo Configuring in $(HOST_SUBDIR)/libgui; \
18629 cd "$(HOST_SUBDIR)/libgui" || exit 1; \
6de9cd9a 18630 case $(srcdir) in \
215c351a
PB
18631 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
18632 *) topdir=`echo $(HOST_SUBDIR)/libgui/ | \
18633 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6de9cd9a 18634 esac; \
215c351a
PB
18635 srcdiroption="--srcdir=$${topdir}/libgui"; \
18636 libsrcdir="$$s/libgui"; \
6de9cd9a 18637 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 18638 $(HOST_CONFIGARGS) $${srcdiroption} \
6de9cd9a 18639 || exit 1
d32ab992 18640@endif libgui
6de9cd9a 18641
25b42232
PB
18642
18643
ce406537
PB
18644
18645
d32ab992
PB
18646.PHONY: all-libgui maybe-all-libgui
18647maybe-all-libgui:
3ff3adad
PB
18648@if gcc-bootstrap
18649all-libgui: stage_current
18650@endif gcc-bootstrap
d32ab992 18651@if libgui
7e0b5752 18652TARGET-libgui=all
d32ab992
PB
18653maybe-all-libgui: all-libgui
18654all-libgui: configure-libgui
f41d6665 18655 @: $(MAKE); $(unstage)
6de9cd9a
DN
18656 @r=`${PWD_COMMAND}`; export r; \
18657 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 18658 $(HOST_EXPORTS) \
215c351a
PB
18659 (cd $(HOST_SUBDIR)/libgui && \
18660 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-libgui))
d32ab992 18661@endif libgui
6de9cd9a 18662
25b42232 18663
ce406537
PB
18664
18665
d32ab992
PB
18666.PHONY: check-libgui maybe-check-libgui
18667maybe-check-libgui:
18668@if libgui
18669maybe-check-libgui: check-libgui
6de9cd9a 18670
d32ab992 18671check-libgui:
f41d6665 18672 @: $(MAKE); $(unstage)
6de9cd9a
DN
18673 @r=`${PWD_COMMAND}`; export r; \
18674 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 18675 $(HOST_EXPORTS) \
215c351a
PB
18676 (cd $(HOST_SUBDIR)/libgui && \
18677 $(MAKE) $(FLAGS_TO_PASS) check)
6de9cd9a 18678
d32ab992 18679@endif libgui
6de9cd9a 18680
d32ab992
PB
18681.PHONY: install-libgui maybe-install-libgui
18682maybe-install-libgui:
18683@if libgui
18684maybe-install-libgui: install-libgui
6de9cd9a 18685
d32ab992 18686install-libgui: installdirs
f41d6665 18687 @: $(MAKE); $(unstage)
d32ab992
PB
18688 @r=`${PWD_COMMAND}`; export r; \
18689 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d32ab992 18690 $(HOST_EXPORTS) \
215c351a 18691 (cd $(HOST_SUBDIR)/libgui && \
ace9ac7b 18692 $(MAKE) $(FLAGS_TO_PASS) install)
6de9cd9a 18693
d32ab992 18694@endif libgui
6de9cd9a
DN
18695
18696# Other targets (info, dvi, etc.)
18697
d32ab992
PB
18698.PHONY: maybe-info-libgui info-libgui
18699maybe-info-libgui:
18700@if libgui
18701maybe-info-libgui: info-libgui
6de9cd9a 18702
d32ab992 18703info-libgui: \
05750653 18704 configure-libgui
f41d6665 18705 @: $(MAKE); $(unstage)
d32ab992 18706 @[ -f ./libgui/Makefile ] || exit 0; \
6de9cd9a
DN
18707 r=`${PWD_COMMAND}`; export r; \
18708 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 18709 $(HOST_EXPORTS) \
d32ab992 18710 for flag in $(EXTRA_HOST_FLAGS) ; do \
6de9cd9a
DN
18711 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18712 done; \
d32ab992 18713 echo "Doing info in libgui" ; \
215c351a 18714 (cd $(HOST_SUBDIR)/libgui && \
6de9cd9a
DN
18715 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18716 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18717 "RANLIB=$${RANLIB}" \
18718 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 18719 info) \
6de9cd9a
DN
18720 || exit 1
18721
d32ab992 18722@endif libgui
6de9cd9a 18723
d32ab992
PB
18724.PHONY: maybe-dvi-libgui dvi-libgui
18725maybe-dvi-libgui:
18726@if libgui
18727maybe-dvi-libgui: dvi-libgui
6de9cd9a 18728
d32ab992 18729dvi-libgui: \
05750653 18730 configure-libgui
f41d6665 18731 @: $(MAKE); $(unstage)
d32ab992 18732 @[ -f ./libgui/Makefile ] || exit 0; \
6de9cd9a
DN
18733 r=`${PWD_COMMAND}`; export r; \
18734 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 18735 $(HOST_EXPORTS) \
d32ab992 18736 for flag in $(EXTRA_HOST_FLAGS) ; do \
6de9cd9a
DN
18737 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18738 done; \
d32ab992 18739 echo "Doing dvi in libgui" ; \
215c351a 18740 (cd $(HOST_SUBDIR)/libgui && \
6de9cd9a
DN
18741 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18742 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18743 "RANLIB=$${RANLIB}" \
18744 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 18745 dvi) \
6de9cd9a
DN
18746 || exit 1
18747
d32ab992 18748@endif libgui
6de9cd9a 18749
f87a2b2e
MS
18750.PHONY: maybe-html-libgui html-libgui
18751maybe-html-libgui:
18752@if libgui
18753maybe-html-libgui: html-libgui
18754
18755html-libgui: \
05750653 18756 configure-libgui
f41d6665 18757 @: $(MAKE); $(unstage)
f87a2b2e
MS
18758 @[ -f ./libgui/Makefile ] || exit 0; \
18759 r=`${PWD_COMMAND}`; export r; \
18760 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
18761 $(HOST_EXPORTS) \
18762 for flag in $(EXTRA_HOST_FLAGS) ; do \
18763 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18764 done; \
18765 echo "Doing html in libgui" ; \
215c351a 18766 (cd $(HOST_SUBDIR)/libgui && \
f87a2b2e
MS
18767 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18768 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18769 "RANLIB=$${RANLIB}" \
18770 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18771 html) \
18772 || exit 1
18773
18774@endif libgui
18775
d32ab992
PB
18776.PHONY: maybe-TAGS-libgui TAGS-libgui
18777maybe-TAGS-libgui:
18778@if libgui
18779maybe-TAGS-libgui: TAGS-libgui
6de9cd9a 18780
d32ab992 18781TAGS-libgui: \
05750653 18782 configure-libgui
f41d6665 18783 @: $(MAKE); $(unstage)
d32ab992 18784 @[ -f ./libgui/Makefile ] || exit 0; \
6de9cd9a
DN
18785 r=`${PWD_COMMAND}`; export r; \
18786 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 18787 $(HOST_EXPORTS) \
d32ab992 18788 for flag in $(EXTRA_HOST_FLAGS) ; do \
6de9cd9a
DN
18789 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18790 done; \
d32ab992 18791 echo "Doing TAGS in libgui" ; \
215c351a 18792 (cd $(HOST_SUBDIR)/libgui && \
6de9cd9a
DN
18793 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18794 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18795 "RANLIB=$${RANLIB}" \
18796 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 18797 TAGS) \
6de9cd9a
DN
18798 || exit 1
18799
d32ab992 18800@endif libgui
6de9cd9a 18801
d32ab992
PB
18802.PHONY: maybe-install-info-libgui install-info-libgui
18803maybe-install-info-libgui:
18804@if libgui
18805maybe-install-info-libgui: install-info-libgui
6de9cd9a 18806
d32ab992
PB
18807install-info-libgui: \
18808 configure-libgui \
05750653 18809 info-libgui
f41d6665 18810 @: $(MAKE); $(unstage)
d32ab992 18811 @[ -f ./libgui/Makefile ] || exit 0; \
6de9cd9a
DN
18812 r=`${PWD_COMMAND}`; export r; \
18813 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 18814 $(HOST_EXPORTS) \
d32ab992 18815 for flag in $(EXTRA_HOST_FLAGS) ; do \
6de9cd9a
DN
18816 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18817 done; \
d32ab992 18818 echo "Doing install-info in libgui" ; \
215c351a 18819 (cd $(HOST_SUBDIR)/libgui && \
6de9cd9a
DN
18820 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18821 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18822 "RANLIB=$${RANLIB}" \
18823 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 18824 install-info) \
6de9cd9a
DN
18825 || exit 1
18826
d32ab992 18827@endif libgui
6de9cd9a 18828
65d6e994
CD
18829.PHONY: maybe-install-html-libgui install-html-libgui
18830maybe-install-html-libgui:
18831@if libgui
18832maybe-install-html-libgui: install-html-libgui
18833
18834install-html-libgui: \
18835 configure-libgui \
18836 html-libgui
18837 @: $(MAKE); $(unstage)
18838 @[ -f ./libgui/Makefile ] || exit 0; \
18839 r=`${PWD_COMMAND}`; export r; \
18840 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18841 $(HOST_EXPORTS) \
18842 for flag in $(EXTRA_HOST_FLAGS) ; do \
18843 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18844 done; \
18845 echo "Doing install-html in libgui" ; \
18846 (cd $(HOST_SUBDIR)/libgui && \
18847 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18848 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18849 "RANLIB=$${RANLIB}" \
18850 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18851 install-html) \
18852 || exit 1
18853
18854@endif libgui
18855
d32ab992
PB
18856.PHONY: maybe-installcheck-libgui installcheck-libgui
18857maybe-installcheck-libgui:
18858@if libgui
18859maybe-installcheck-libgui: installcheck-libgui
6de9cd9a 18860
d32ab992 18861installcheck-libgui: \
05750653 18862 configure-libgui
f41d6665 18863 @: $(MAKE); $(unstage)
d32ab992 18864 @[ -f ./libgui/Makefile ] || exit 0; \
6de9cd9a
DN
18865 r=`${PWD_COMMAND}`; export r; \
18866 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 18867 $(HOST_EXPORTS) \
d32ab992 18868 for flag in $(EXTRA_HOST_FLAGS) ; do \
6de9cd9a
DN
18869 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18870 done; \
d32ab992 18871 echo "Doing installcheck in libgui" ; \
215c351a 18872 (cd $(HOST_SUBDIR)/libgui && \
6de9cd9a
DN
18873 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18874 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18875 "RANLIB=$${RANLIB}" \
18876 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 18877 installcheck) \
6de9cd9a
DN
18878 || exit 1
18879
d32ab992 18880@endif libgui
6de9cd9a 18881
d32ab992
PB
18882.PHONY: maybe-mostlyclean-libgui mostlyclean-libgui
18883maybe-mostlyclean-libgui:
18884@if libgui
18885maybe-mostlyclean-libgui: mostlyclean-libgui
6de9cd9a 18886
05750653 18887mostlyclean-libgui:
f41d6665 18888 @: $(MAKE); $(unstage)
d32ab992 18889 @[ -f ./libgui/Makefile ] || exit 0; \
6de9cd9a
DN
18890 r=`${PWD_COMMAND}`; export r; \
18891 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 18892 $(HOST_EXPORTS) \
d32ab992 18893 for flag in $(EXTRA_HOST_FLAGS) ; do \
6de9cd9a
DN
18894 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18895 done; \
d32ab992 18896 echo "Doing mostlyclean in libgui" ; \
215c351a 18897 (cd $(HOST_SUBDIR)/libgui && \
6de9cd9a
DN
18898 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18899 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18900 "RANLIB=$${RANLIB}" \
18901 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 18902 mostlyclean) \
6de9cd9a
DN
18903 || exit 1
18904
d32ab992 18905@endif libgui
6de9cd9a 18906
d32ab992
PB
18907.PHONY: maybe-clean-libgui clean-libgui
18908maybe-clean-libgui:
18909@if libgui
18910maybe-clean-libgui: clean-libgui
6de9cd9a 18911
05750653 18912clean-libgui:
f41d6665 18913 @: $(MAKE); $(unstage)
d32ab992 18914 @[ -f ./libgui/Makefile ] || exit 0; \
6de9cd9a
DN
18915 r=`${PWD_COMMAND}`; export r; \
18916 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 18917 $(HOST_EXPORTS) \
d32ab992 18918 for flag in $(EXTRA_HOST_FLAGS) ; do \
6de9cd9a
DN
18919 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18920 done; \
d32ab992 18921 echo "Doing clean in libgui" ; \
215c351a 18922 (cd $(HOST_SUBDIR)/libgui && \
6de9cd9a
DN
18923 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18924 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18925 "RANLIB=$${RANLIB}" \
18926 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 18927 clean) \
6de9cd9a
DN
18928 || exit 1
18929
d32ab992 18930@endif libgui
6de9cd9a 18931
d32ab992
PB
18932.PHONY: maybe-distclean-libgui distclean-libgui
18933maybe-distclean-libgui:
18934@if libgui
18935maybe-distclean-libgui: distclean-libgui
6de9cd9a 18936
05750653 18937distclean-libgui:
f41d6665 18938 @: $(MAKE); $(unstage)
d32ab992 18939 @[ -f ./libgui/Makefile ] || exit 0; \
6de9cd9a
DN
18940 r=`${PWD_COMMAND}`; export r; \
18941 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 18942 $(HOST_EXPORTS) \
d32ab992 18943 for flag in $(EXTRA_HOST_FLAGS) ; do \
6de9cd9a
DN
18944 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18945 done; \
d32ab992 18946 echo "Doing distclean in libgui" ; \
215c351a 18947 (cd $(HOST_SUBDIR)/libgui && \
6de9cd9a
DN
18948 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18949 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18950 "RANLIB=$${RANLIB}" \
18951 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 18952 distclean) \
6de9cd9a
DN
18953 || exit 1
18954
d32ab992 18955@endif libgui
6de9cd9a 18956
d32ab992
PB
18957.PHONY: maybe-maintainer-clean-libgui maintainer-clean-libgui
18958maybe-maintainer-clean-libgui:
18959@if libgui
18960maybe-maintainer-clean-libgui: maintainer-clean-libgui
6de9cd9a 18961
05750653 18962maintainer-clean-libgui:
f41d6665 18963 @: $(MAKE); $(unstage)
d32ab992 18964 @[ -f ./libgui/Makefile ] || exit 0; \
6de9cd9a
DN
18965 r=`${PWD_COMMAND}`; export r; \
18966 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 18967 $(HOST_EXPORTS) \
d32ab992 18968 for flag in $(EXTRA_HOST_FLAGS) ; do \
6de9cd9a
DN
18969 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18970 done; \
d32ab992 18971 echo "Doing maintainer-clean in libgui" ; \
215c351a 18972 (cd $(HOST_SUBDIR)/libgui && \
6de9cd9a
DN
18973 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18974 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18975 "RANLIB=$${RANLIB}" \
18976 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 18977 maintainer-clean) \
6de9cd9a
DN
18978 || exit 1
18979
d32ab992 18980@endif libgui
6de9cd9a
DN
18981
18982
25b42232 18983
d32ab992
PB
18984.PHONY: configure-libiberty maybe-configure-libiberty
18985maybe-configure-libiberty:
3ff3adad
PB
18986@if gcc-bootstrap
18987configure-libiberty: stage_current
18988@endif gcc-bootstrap
d32ab992
PB
18989@if libiberty
18990maybe-configure-libiberty: configure-libiberty
cc11cc9b 18991configure-libiberty:
cc11cc9b
PB
18992 @r=`${PWD_COMMAND}`; export r; \
18993 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
215c351a
PB
18994 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
18995 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
4fc4dd12 18996 $(HOST_EXPORTS) \
25b42232
PB
18997 echo Configuring in $(HOST_SUBDIR)/libiberty; \
18998 cd "$(HOST_SUBDIR)/libiberty" || exit 1; \
295f4e42 18999 case $(srcdir) in \
215c351a
PB
19000 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19001 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
19002 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 19003 esac; \
215c351a
PB
19004 srcdiroption="--srcdir=$${topdir}/libiberty"; \
19005 libsrcdir="$$s/libiberty"; \
295f4e42 19006 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 19007 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 19008 || exit 1
d32ab992 19009@endif libiberty
1358ccea 19010
25b42232
PB
19011
19012
ce406537
PB
19013.PHONY: configure-stage1-libiberty maybe-configure-stage1-libiberty
19014maybe-configure-stage1-libiberty:
19015@if libiberty-bootstrap
19016maybe-configure-stage1-libiberty: configure-stage1-libiberty
f41d6665 19017configure-stage1-libiberty:
cc11cc9b 19018 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
f41d6665 19019 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
cc11cc9b
PB
19020 @r=`${PWD_COMMAND}`; export r; \
19021 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 19022 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
ce406537
PB
19023 $(HOST_EXPORTS) \
19024 echo Configuring stage 1 in $(HOST_SUBDIR)/libiberty ; \
f41d6665 19025 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
ce406537
PB
19026 cd $(HOST_SUBDIR)/libiberty || exit 1; \
19027 case $(srcdir) in \
19028 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19029 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
19030 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19031 esac; \
19032 srcdiroption="--srcdir=$${topdir}/libiberty"; \
19033 libsrcdir="$$s/libiberty"; \
19034 $(SHELL) $${libsrcdir}/configure \
19035 $(HOST_CONFIGARGS) $${srcdiroption} \
19036 --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
19037@endif libiberty-bootstrap
19038
19039.PHONY: configure-stage2-libiberty maybe-configure-stage2-libiberty
19040maybe-configure-stage2-libiberty:
19041@if libiberty-bootstrap
19042maybe-configure-stage2-libiberty: configure-stage2-libiberty
f41d6665 19043configure-stage2-libiberty:
cc11cc9b 19044 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
f41d6665 19045 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
cc11cc9b
PB
19046 @r=`${PWD_COMMAND}`; export r; \
19047 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 19048 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
ce406537
PB
19049 $(HOST_EXPORTS) \
19050 $(POSTSTAGE1_HOST_EXPORTS) \
19051 echo Configuring stage 2 in $(HOST_SUBDIR)/libiberty ; \
f41d6665 19052 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
ce406537
PB
19053 cd $(HOST_SUBDIR)/libiberty || exit 1; \
19054 case $(srcdir) in \
19055 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19056 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
19057 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19058 esac; \
19059 srcdiroption="--srcdir=$${topdir}/libiberty"; \
19060 libsrcdir="$$s/libiberty"; \
19061 $(SHELL) $${libsrcdir}/configure \
19062 $(HOST_CONFIGARGS) $${srcdiroption} \
19063 @stage2_werror_flag@
19064@endif libiberty-bootstrap
19065
19066.PHONY: configure-stage3-libiberty maybe-configure-stage3-libiberty
19067maybe-configure-stage3-libiberty:
19068@if libiberty-bootstrap
19069maybe-configure-stage3-libiberty: configure-stage3-libiberty
f41d6665 19070configure-stage3-libiberty:
cc11cc9b 19071 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
f41d6665 19072 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
cc11cc9b
PB
19073 @r=`${PWD_COMMAND}`; export r; \
19074 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 19075 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
ce406537
PB
19076 $(HOST_EXPORTS) \
19077 $(POSTSTAGE1_HOST_EXPORTS) \
19078 echo Configuring stage 3 in $(HOST_SUBDIR)/libiberty ; \
f41d6665 19079 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
ce406537
PB
19080 cd $(HOST_SUBDIR)/libiberty || exit 1; \
19081 case $(srcdir) in \
19082 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19083 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
19084 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19085 esac; \
19086 srcdiroption="--srcdir=$${topdir}/libiberty"; \
19087 libsrcdir="$$s/libiberty"; \
19088 $(SHELL) $${libsrcdir}/configure \
19089 $(HOST_CONFIGARGS) $${srcdiroption} \
19090 @stage2_werror_flag@
19091@endif libiberty-bootstrap
19092
19093.PHONY: configure-stage4-libiberty maybe-configure-stage4-libiberty
19094maybe-configure-stage4-libiberty:
19095@if libiberty-bootstrap
19096maybe-configure-stage4-libiberty: configure-stage4-libiberty
f41d6665 19097configure-stage4-libiberty:
cc11cc9b 19098 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
f41d6665 19099 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
cc11cc9b
PB
19100 @r=`${PWD_COMMAND}`; export r; \
19101 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 19102 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
ce406537
PB
19103 $(HOST_EXPORTS) \
19104 $(POSTSTAGE1_HOST_EXPORTS) \
19105 echo Configuring stage 4 in $(HOST_SUBDIR)/libiberty ; \
f41d6665 19106 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
ce406537
PB
19107 cd $(HOST_SUBDIR)/libiberty || exit 1; \
19108 case $(srcdir) in \
19109 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19110 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
19111 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19112 esac; \
19113 srcdiroption="--srcdir=$${topdir}/libiberty"; \
19114 libsrcdir="$$s/libiberty"; \
19115 $(SHELL) $${libsrcdir}/configure \
19116 $(HOST_CONFIGARGS) $${srcdiroption} \
19117 @stage2_werror_flag@
19118@endif libiberty-bootstrap
19119
19120.PHONY: configure-stageprofile-libiberty maybe-configure-stageprofile-libiberty
19121maybe-configure-stageprofile-libiberty:
19122@if libiberty-bootstrap
19123maybe-configure-stageprofile-libiberty: configure-stageprofile-libiberty
f41d6665 19124configure-stageprofile-libiberty:
cc11cc9b 19125 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
f41d6665 19126 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
cc11cc9b
PB
19127 @r=`${PWD_COMMAND}`; export r; \
19128 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 19129 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
ce406537
PB
19130 $(HOST_EXPORTS) \
19131 $(POSTSTAGE1_HOST_EXPORTS) \
19132 echo Configuring stage profile in $(HOST_SUBDIR)/libiberty ; \
f41d6665 19133 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
ce406537
PB
19134 cd $(HOST_SUBDIR)/libiberty || exit 1; \
19135 case $(srcdir) in \
19136 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19137 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
19138 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19139 esac; \
19140 srcdiroption="--srcdir=$${topdir}/libiberty"; \
19141 libsrcdir="$$s/libiberty"; \
19142 $(SHELL) $${libsrcdir}/configure \
19143 $(HOST_CONFIGARGS) $${srcdiroption} \
19144 @stage2_werror_flag@
19145@endif libiberty-bootstrap
19146
19147.PHONY: configure-stagefeedback-libiberty maybe-configure-stagefeedback-libiberty
19148maybe-configure-stagefeedback-libiberty:
19149@if libiberty-bootstrap
19150maybe-configure-stagefeedback-libiberty: configure-stagefeedback-libiberty
f41d6665 19151configure-stagefeedback-libiberty:
cc11cc9b 19152 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
f41d6665 19153 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
cc11cc9b
PB
19154 @r=`${PWD_COMMAND}`; export r; \
19155 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 19156 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
ce406537
PB
19157 $(HOST_EXPORTS) \
19158 $(POSTSTAGE1_HOST_EXPORTS) \
19159 echo Configuring stage feedback in $(HOST_SUBDIR)/libiberty ; \
f41d6665 19160 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
ce406537
PB
19161 cd $(HOST_SUBDIR)/libiberty || exit 1; \
19162 case $(srcdir) in \
19163 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19164 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
19165 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19166 esac; \
19167 srcdiroption="--srcdir=$${topdir}/libiberty"; \
19168 libsrcdir="$$s/libiberty"; \
19169 $(SHELL) $${libsrcdir}/configure \
19170 $(HOST_CONFIGARGS) $${srcdiroption} \
19171 @stage2_werror_flag@
19172@endif libiberty-bootstrap
19173
19174
19175
19176
19177
d32ab992
PB
19178.PHONY: all-libiberty maybe-all-libiberty
19179maybe-all-libiberty:
3ff3adad
PB
19180@if gcc-bootstrap
19181all-libiberty: stage_current
19182@endif gcc-bootstrap
d32ab992 19183@if libiberty
7e0b5752 19184TARGET-libiberty=all
d32ab992
PB
19185maybe-all-libiberty: all-libiberty
19186all-libiberty: configure-libiberty
cc11cc9b 19187 @r=`${PWD_COMMAND}`; export r; \
d32ab992 19188 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 19189 $(HOST_EXPORTS) \
215c351a
PB
19190 (cd $(HOST_SUBDIR)/libiberty && \
19191 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-libiberty))
d32ab992 19192@endif libiberty
1358ccea 19193
25b42232 19194
ce406537
PB
19195
19196.PHONY: all-stage1-libiberty maybe-all-stage1-libiberty
19197.PHONY: clean-stage1-libiberty maybe-clean-stage1-libiberty
19198maybe-all-stage1-libiberty:
19199maybe-clean-stage1-libiberty:
19200@if libiberty-bootstrap
19201maybe-all-stage1-libiberty: all-stage1-libiberty
19202all-stage1: all-stage1-libiberty
1061f99e 19203TARGET-stage1-libiberty = $(TARGET-libiberty)
ce406537 19204all-stage1-libiberty: configure-stage1-libiberty
cc11cc9b 19205 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
ce406537
PB
19206 @r=`${PWD_COMMAND}`; export r; \
19207 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19208 $(HOST_EXPORTS) \
19209 cd $(HOST_SUBDIR)/libiberty && \
cc11cc9b 19210 $(MAKE) $(FLAGS_TO_PASS) CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" \
1061f99e 19211 $(TARGET-stage1-libiberty)
ce406537
PB
19212
19213maybe-clean-stage1-libiberty: clean-stage1-libiberty
19214clean-stage1: clean-stage1-libiberty
19215clean-stage1-libiberty:
19216 @[ -f $(HOST_SUBDIR)/libiberty/Makefile ] || [ -f $(HOST_SUBDIR)/stage1-libiberty/Makefile ] \
19217 || exit 0 ; \
cc11cc9b 19218 [ $(current_stage) = stage1 ] || $(MAKE) stage1-start; \
ce406537
PB
19219 cd $(HOST_SUBDIR)/libiberty && \
19220 $(MAKE) $(FLAGS_TO_PASS) \
cc11cc9b 19221 CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" clean
ce406537
PB
19222@endif libiberty-bootstrap
19223
19224
19225.PHONY: all-stage2-libiberty maybe-all-stage2-libiberty
19226.PHONY: clean-stage2-libiberty maybe-clean-stage2-libiberty
19227maybe-all-stage2-libiberty:
19228maybe-clean-stage2-libiberty:
19229@if libiberty-bootstrap
19230maybe-all-stage2-libiberty: all-stage2-libiberty
19231all-stage2: all-stage2-libiberty
1061f99e 19232TARGET-stage2-libiberty = $(TARGET-libiberty)
ce406537 19233all-stage2-libiberty: configure-stage2-libiberty
cc11cc9b 19234 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
ce406537
PB
19235 @r=`${PWD_COMMAND}`; export r; \
19236 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19237 $(HOST_EXPORTS) \
19238 $(POSTSTAGE1_HOST_EXPORTS) \
19239 cd $(HOST_SUBDIR)/libiberty && \
1061f99e
PB
19240 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
19241 $(TARGET-stage2-libiberty)
ce406537
PB
19242
19243maybe-clean-stage2-libiberty: clean-stage2-libiberty
19244clean-stage2: clean-stage2-libiberty
19245clean-stage2-libiberty:
19246 @[ -f $(HOST_SUBDIR)/libiberty/Makefile ] || [ -f $(HOST_SUBDIR)/stage2-libiberty/Makefile ] \
19247 || exit 0 ; \
cc11cc9b 19248 [ $(current_stage) = stage2 ] || $(MAKE) stage2-start; \
ce406537
PB
19249 cd $(HOST_SUBDIR)/libiberty && \
19250 $(MAKE) $(FLAGS_TO_PASS) \
19251 $(POSTSTAGE1_FLAGS_TO_PASS) \
19252 clean
19253@endif libiberty-bootstrap
19254
19255
19256.PHONY: all-stage3-libiberty maybe-all-stage3-libiberty
19257.PHONY: clean-stage3-libiberty maybe-clean-stage3-libiberty
19258maybe-all-stage3-libiberty:
19259maybe-clean-stage3-libiberty:
19260@if libiberty-bootstrap
19261maybe-all-stage3-libiberty: all-stage3-libiberty
19262all-stage3: all-stage3-libiberty
1061f99e 19263TARGET-stage3-libiberty = $(TARGET-libiberty)
ce406537 19264all-stage3-libiberty: configure-stage3-libiberty
cc11cc9b 19265 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
ce406537
PB
19266 @r=`${PWD_COMMAND}`; export r; \
19267 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19268 $(HOST_EXPORTS) \
19269 $(POSTSTAGE1_HOST_EXPORTS) \
19270 cd $(HOST_SUBDIR)/libiberty && \
1061f99e
PB
19271 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
19272 $(TARGET-stage3-libiberty)
ce406537
PB
19273
19274maybe-clean-stage3-libiberty: clean-stage3-libiberty
19275clean-stage3: clean-stage3-libiberty
19276clean-stage3-libiberty:
19277 @[ -f $(HOST_SUBDIR)/libiberty/Makefile ] || [ -f $(HOST_SUBDIR)/stage3-libiberty/Makefile ] \
19278 || exit 0 ; \
cc11cc9b 19279 [ $(current_stage) = stage3 ] || $(MAKE) stage3-start; \
ce406537
PB
19280 cd $(HOST_SUBDIR)/libiberty && \
19281 $(MAKE) $(FLAGS_TO_PASS) \
19282 $(POSTSTAGE1_FLAGS_TO_PASS) \
19283 clean
19284@endif libiberty-bootstrap
19285
19286
19287.PHONY: all-stage4-libiberty maybe-all-stage4-libiberty
19288.PHONY: clean-stage4-libiberty maybe-clean-stage4-libiberty
19289maybe-all-stage4-libiberty:
19290maybe-clean-stage4-libiberty:
19291@if libiberty-bootstrap
19292maybe-all-stage4-libiberty: all-stage4-libiberty
19293all-stage4: all-stage4-libiberty
1061f99e 19294TARGET-stage4-libiberty = $(TARGET-libiberty)
ce406537 19295all-stage4-libiberty: configure-stage4-libiberty
cc11cc9b 19296 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
ce406537
PB
19297 @r=`${PWD_COMMAND}`; export r; \
19298 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19299 $(HOST_EXPORTS) \
19300 $(POSTSTAGE1_HOST_EXPORTS) \
19301 cd $(HOST_SUBDIR)/libiberty && \
1061f99e
PB
19302 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
19303 $(TARGET-stage4-libiberty)
ce406537
PB
19304
19305maybe-clean-stage4-libiberty: clean-stage4-libiberty
19306clean-stage4: clean-stage4-libiberty
19307clean-stage4-libiberty:
19308 @[ -f $(HOST_SUBDIR)/libiberty/Makefile ] || [ -f $(HOST_SUBDIR)/stage4-libiberty/Makefile ] \
19309 || exit 0 ; \
cc11cc9b 19310 [ $(current_stage) = stage4 ] || $(MAKE) stage4-start; \
ce406537
PB
19311 cd $(HOST_SUBDIR)/libiberty && \
19312 $(MAKE) $(FLAGS_TO_PASS) \
19313 $(POSTSTAGE1_FLAGS_TO_PASS) \
19314 clean
19315@endif libiberty-bootstrap
19316
19317
19318.PHONY: all-stageprofile-libiberty maybe-all-stageprofile-libiberty
19319.PHONY: clean-stageprofile-libiberty maybe-clean-stageprofile-libiberty
19320maybe-all-stageprofile-libiberty:
19321maybe-clean-stageprofile-libiberty:
19322@if libiberty-bootstrap
19323maybe-all-stageprofile-libiberty: all-stageprofile-libiberty
19324all-stageprofile: all-stageprofile-libiberty
1061f99e 19325TARGET-stageprofile-libiberty = $(TARGET-libiberty)
ce406537 19326all-stageprofile-libiberty: configure-stageprofile-libiberty
cc11cc9b 19327 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
ce406537
PB
19328 @r=`${PWD_COMMAND}`; export r; \
19329 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19330 $(HOST_EXPORTS) \
19331 $(POSTSTAGE1_HOST_EXPORTS) \
19332 cd $(HOST_SUBDIR)/libiberty && \
1061f99e
PB
19333 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" \
19334 $(TARGET-stageprofile-libiberty)
ce406537
PB
19335
19336maybe-clean-stageprofile-libiberty: clean-stageprofile-libiberty
19337clean-stageprofile: clean-stageprofile-libiberty
19338clean-stageprofile-libiberty:
19339 @[ -f $(HOST_SUBDIR)/libiberty/Makefile ] || [ -f $(HOST_SUBDIR)/stageprofile-libiberty/Makefile ] \
19340 || exit 0 ; \
cc11cc9b 19341 [ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start; \
ce406537
PB
19342 cd $(HOST_SUBDIR)/libiberty && \
19343 $(MAKE) $(FLAGS_TO_PASS) \
19344 $(POSTSTAGE1_FLAGS_TO_PASS) \
19345 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean
19346@endif libiberty-bootstrap
19347
19348
19349.PHONY: all-stagefeedback-libiberty maybe-all-stagefeedback-libiberty
19350.PHONY: clean-stagefeedback-libiberty maybe-clean-stagefeedback-libiberty
19351maybe-all-stagefeedback-libiberty:
19352maybe-clean-stagefeedback-libiberty:
19353@if libiberty-bootstrap
19354maybe-all-stagefeedback-libiberty: all-stagefeedback-libiberty
19355all-stagefeedback: all-stagefeedback-libiberty
1061f99e 19356TARGET-stagefeedback-libiberty = $(TARGET-libiberty)
ce406537 19357all-stagefeedback-libiberty: configure-stagefeedback-libiberty
cc11cc9b 19358 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
ce406537
PB
19359 @r=`${PWD_COMMAND}`; export r; \
19360 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19361 $(HOST_EXPORTS) \
19362 $(POSTSTAGE1_HOST_EXPORTS) \
19363 cd $(HOST_SUBDIR)/libiberty && \
1061f99e
PB
19364 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-use" \
19365 $(TARGET-stagefeedback-libiberty)
ce406537
PB
19366
19367maybe-clean-stagefeedback-libiberty: clean-stagefeedback-libiberty
19368clean-stagefeedback: clean-stagefeedback-libiberty
19369clean-stagefeedback-libiberty:
19370 @[ -f $(HOST_SUBDIR)/libiberty/Makefile ] || [ -f $(HOST_SUBDIR)/stagefeedback-libiberty/Makefile ] \
19371 || exit 0 ; \
cc11cc9b 19372 [ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start; \
ce406537
PB
19373 cd $(HOST_SUBDIR)/libiberty && \
19374 $(MAKE) $(FLAGS_TO_PASS) \
19375 $(POSTSTAGE1_FLAGS_TO_PASS) \
19376 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean
19377@endif libiberty-bootstrap
19378
19379
19380
19381
19382
d32ab992
PB
19383.PHONY: check-libiberty maybe-check-libiberty
19384maybe-check-libiberty:
19385@if libiberty
19386maybe-check-libiberty: check-libiberty
1358ccea 19387
d32ab992 19388check-libiberty:
f41d6665 19389 @: $(MAKE); $(unstage)
295f4e42 19390 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 19391 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 19392 $(HOST_EXPORTS) \
215c351a
PB
19393 (cd $(HOST_SUBDIR)/libiberty && \
19394 $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 19395
d32ab992 19396@endif libiberty
1358ccea 19397
d32ab992
PB
19398.PHONY: install-libiberty maybe-install-libiberty
19399maybe-install-libiberty:
19400@if libiberty
19401maybe-install-libiberty: install-libiberty
1358ccea 19402
d32ab992 19403install-libiberty: installdirs
f41d6665 19404 @: $(MAKE); $(unstage)
295f4e42 19405 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 19406 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 19407 $(HOST_EXPORTS) \
215c351a 19408 (cd $(HOST_SUBDIR)/libiberty && \
ace9ac7b 19409 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 19410
d32ab992 19411@endif libiberty
1358ccea 19412
295f4e42 19413# Other targets (info, dvi, etc.)
1358ccea 19414
d32ab992
PB
19415.PHONY: maybe-info-libiberty info-libiberty
19416maybe-info-libiberty:
19417@if libiberty
19418maybe-info-libiberty: info-libiberty
295f4e42 19419
d32ab992 19420info-libiberty: \
05750653 19421 configure-libiberty
d32ab992 19422 @[ -f ./libiberty/Makefile ] || exit 0; \
8c90b13a
L
19423 r=`${PWD_COMMAND}`; export r; \
19424 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 19425 $(HOST_EXPORTS) \
d32ab992 19426 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
19427 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19428 done; \
f87a2b2e 19429 echo "Doing info in libiberty" ; \
215c351a 19430 (cd $(HOST_SUBDIR)/libiberty && \
f87a2b2e
MS
19431 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19432 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19433 "RANLIB=$${RANLIB}" \
19434 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19435 info) \
19436 || exit 1
19437
19438@endif libiberty
19439
19440.PHONY: maybe-dvi-libiberty dvi-libiberty
19441maybe-dvi-libiberty:
19442@if libiberty
19443maybe-dvi-libiberty: dvi-libiberty
19444
19445dvi-libiberty: \
05750653 19446 configure-libiberty
f87a2b2e
MS
19447 @[ -f ./libiberty/Makefile ] || exit 0; \
19448 r=`${PWD_COMMAND}`; export r; \
19449 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
19450 $(HOST_EXPORTS) \
19451 for flag in $(EXTRA_HOST_FLAGS) ; do \
19452 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19453 done; \
19454 echo "Doing dvi in libiberty" ; \
215c351a 19455 (cd $(HOST_SUBDIR)/libiberty && \
1358ccea
NN
19456 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19457 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19458 "RANLIB=$${RANLIB}" \
19459 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
f87a2b2e 19460 dvi) \
1358ccea
NN
19461 || exit 1
19462
d32ab992 19463@endif libiberty
1358ccea 19464
f87a2b2e
MS
19465.PHONY: maybe-html-libiberty html-libiberty
19466maybe-html-libiberty:
d32ab992 19467@if libiberty
f87a2b2e 19468maybe-html-libiberty: html-libiberty
1358ccea 19469
f87a2b2e 19470html-libiberty: \
05750653 19471 configure-libiberty
d32ab992 19472 @[ -f ./libiberty/Makefile ] || exit 0; \
8c90b13a
L
19473 r=`${PWD_COMMAND}`; export r; \
19474 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 19475 $(HOST_EXPORTS) \
d32ab992 19476 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
19477 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19478 done; \
f87a2b2e 19479 echo "Doing html in libiberty" ; \
215c351a 19480 (cd $(HOST_SUBDIR)/libiberty && \
1358ccea
NN
19481 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19482 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19483 "RANLIB=$${RANLIB}" \
19484 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
f87a2b2e 19485 html) \
1358ccea
NN
19486 || exit 1
19487
d32ab992 19488@endif libiberty
1358ccea 19489
d32ab992
PB
19490.PHONY: maybe-TAGS-libiberty TAGS-libiberty
19491maybe-TAGS-libiberty:
19492@if libiberty
19493maybe-TAGS-libiberty: TAGS-libiberty
1358ccea 19494
d32ab992 19495TAGS-libiberty: \
05750653 19496 configure-libiberty
d32ab992 19497 @[ -f ./libiberty/Makefile ] || exit 0; \
8c90b13a
L
19498 r=`${PWD_COMMAND}`; export r; \
19499 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 19500 $(HOST_EXPORTS) \
d32ab992 19501 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
19502 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19503 done; \
d32ab992 19504 echo "Doing TAGS in libiberty" ; \
215c351a 19505 (cd $(HOST_SUBDIR)/libiberty && \
1358ccea
NN
19506 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19507 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19508 "RANLIB=$${RANLIB}" \
19509 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 19510 TAGS) \
1358ccea
NN
19511 || exit 1
19512
d32ab992 19513@endif libiberty
1358ccea 19514
d32ab992
PB
19515.PHONY: maybe-install-info-libiberty install-info-libiberty
19516maybe-install-info-libiberty:
19517@if libiberty
19518maybe-install-info-libiberty: install-info-libiberty
1358ccea 19519
d32ab992
PB
19520install-info-libiberty: \
19521 configure-libiberty \
05750653 19522 info-libiberty
d32ab992 19523 @[ -f ./libiberty/Makefile ] || exit 0; \
8c90b13a
L
19524 r=`${PWD_COMMAND}`; export r; \
19525 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 19526 $(HOST_EXPORTS) \
d32ab992 19527 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
19528 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19529 done; \
d32ab992 19530 echo "Doing install-info in libiberty" ; \
215c351a 19531 (cd $(HOST_SUBDIR)/libiberty && \
1358ccea
NN
19532 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19533 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19534 "RANLIB=$${RANLIB}" \
19535 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 19536 install-info) \
1358ccea
NN
19537 || exit 1
19538
d32ab992 19539@endif libiberty
1358ccea 19540
65d6e994
CD
19541.PHONY: maybe-install-html-libiberty install-html-libiberty
19542maybe-install-html-libiberty:
19543@if libiberty
19544maybe-install-html-libiberty: install-html-libiberty
19545
19546install-html-libiberty: \
19547 configure-libiberty \
19548 html-libiberty
19549 @[ -f ./libiberty/Makefile ] || exit 0; \
19550 r=`${PWD_COMMAND}`; export r; \
19551 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19552 $(HOST_EXPORTS) \
19553 for flag in $(EXTRA_HOST_FLAGS) ; do \
19554 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19555 done; \
19556 echo "Doing install-html in libiberty" ; \
19557 (cd $(HOST_SUBDIR)/libiberty && \
19558 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19559 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19560 "RANLIB=$${RANLIB}" \
19561 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19562 install-html) \
19563 || exit 1
19564
19565@endif libiberty
19566
d32ab992
PB
19567.PHONY: maybe-installcheck-libiberty installcheck-libiberty
19568maybe-installcheck-libiberty:
19569@if libiberty
19570maybe-installcheck-libiberty: installcheck-libiberty
1358ccea 19571
d32ab992 19572installcheck-libiberty: \
05750653 19573 configure-libiberty
d32ab992 19574 @[ -f ./libiberty/Makefile ] || exit 0; \
8c90b13a
L
19575 r=`${PWD_COMMAND}`; export r; \
19576 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 19577 $(HOST_EXPORTS) \
d32ab992 19578 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
19579 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19580 done; \
d32ab992 19581 echo "Doing installcheck in libiberty" ; \
215c351a 19582 (cd $(HOST_SUBDIR)/libiberty && \
1358ccea
NN
19583 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19584 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19585 "RANLIB=$${RANLIB}" \
19586 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 19587 installcheck) \
1358ccea
NN
19588 || exit 1
19589
d32ab992 19590@endif libiberty
1358ccea 19591
d32ab992
PB
19592.PHONY: maybe-mostlyclean-libiberty mostlyclean-libiberty
19593maybe-mostlyclean-libiberty:
19594@if libiberty
19595maybe-mostlyclean-libiberty: mostlyclean-libiberty
1358ccea 19596
05750653 19597mostlyclean-libiberty:
d32ab992 19598 @[ -f ./libiberty/Makefile ] || exit 0; \
8c90b13a
L
19599 r=`${PWD_COMMAND}`; export r; \
19600 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 19601 $(HOST_EXPORTS) \
d32ab992 19602 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
19603 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19604 done; \
d32ab992 19605 echo "Doing mostlyclean in libiberty" ; \
215c351a 19606 (cd $(HOST_SUBDIR)/libiberty && \
1358ccea
NN
19607 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19608 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19609 "RANLIB=$${RANLIB}" \
19610 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 19611 mostlyclean) \
1358ccea
NN
19612 || exit 1
19613
d32ab992 19614@endif libiberty
1358ccea 19615
d32ab992
PB
19616.PHONY: maybe-clean-libiberty clean-libiberty
19617maybe-clean-libiberty:
19618@if libiberty
19619maybe-clean-libiberty: clean-libiberty
1358ccea 19620
05750653 19621clean-libiberty:
d32ab992 19622 @[ -f ./libiberty/Makefile ] || exit 0; \
8c90b13a
L
19623 r=`${PWD_COMMAND}`; export r; \
19624 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 19625 $(HOST_EXPORTS) \
d32ab992 19626 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
19627 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19628 done; \
d32ab992 19629 echo "Doing clean in libiberty" ; \
215c351a 19630 (cd $(HOST_SUBDIR)/libiberty && \
1358ccea
NN
19631 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19632 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19633 "RANLIB=$${RANLIB}" \
19634 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 19635 clean) \
1358ccea
NN
19636 || exit 1
19637
d32ab992 19638@endif libiberty
1358ccea 19639
d32ab992
PB
19640.PHONY: maybe-distclean-libiberty distclean-libiberty
19641maybe-distclean-libiberty:
19642@if libiberty
19643maybe-distclean-libiberty: distclean-libiberty
1358ccea 19644
05750653 19645distclean-libiberty:
d32ab992 19646 @[ -f ./libiberty/Makefile ] || exit 0; \
8c90b13a
L
19647 r=`${PWD_COMMAND}`; export r; \
19648 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 19649 $(HOST_EXPORTS) \
d32ab992 19650 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
19651 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19652 done; \
d32ab992 19653 echo "Doing distclean in libiberty" ; \
215c351a 19654 (cd $(HOST_SUBDIR)/libiberty && \
1358ccea
NN
19655 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19656 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19657 "RANLIB=$${RANLIB}" \
19658 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 19659 distclean) \
1358ccea
NN
19660 || exit 1
19661
d32ab992 19662@endif libiberty
1358ccea 19663
d32ab992
PB
19664.PHONY: maybe-maintainer-clean-libiberty maintainer-clean-libiberty
19665maybe-maintainer-clean-libiberty:
19666@if libiberty
19667maybe-maintainer-clean-libiberty: maintainer-clean-libiberty
1358ccea 19668
05750653 19669maintainer-clean-libiberty:
d32ab992 19670 @[ -f ./libiberty/Makefile ] || exit 0; \
8c90b13a
L
19671 r=`${PWD_COMMAND}`; export r; \
19672 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 19673 $(HOST_EXPORTS) \
d32ab992 19674 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
19675 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19676 done; \
d32ab992 19677 echo "Doing maintainer-clean in libiberty" ; \
215c351a 19678 (cd $(HOST_SUBDIR)/libiberty && \
1358ccea
NN
19679 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19680 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19681 "RANLIB=$${RANLIB}" \
19682 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 19683 maintainer-clean) \
1358ccea
NN
19684 || exit 1
19685
d32ab992 19686@endif libiberty
1358ccea 19687
1358ccea 19688
25b42232 19689
d32ab992
PB
19690.PHONY: configure-libtool maybe-configure-libtool
19691maybe-configure-libtool:
3ff3adad
PB
19692@if gcc-bootstrap
19693configure-libtool: stage_current
19694@endif gcc-bootstrap
d32ab992
PB
19695@if libtool
19696maybe-configure-libtool: configure-libtool
cc11cc9b 19697configure-libtool:
f41d6665 19698 @: $(MAKE); $(unstage)
cc11cc9b 19699 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 19700 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
19701 test ! -f $(HOST_SUBDIR)/libtool/Makefile || exit 0; \
19702 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libtool ; \
4fc4dd12 19703 $(HOST_EXPORTS) \
25b42232
PB
19704 echo Configuring in $(HOST_SUBDIR)/libtool; \
19705 cd "$(HOST_SUBDIR)/libtool" || exit 1; \
295f4e42 19706 case $(srcdir) in \
215c351a
PB
19707 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19708 *) topdir=`echo $(HOST_SUBDIR)/libtool/ | \
19709 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 19710 esac; \
215c351a
PB
19711 srcdiroption="--srcdir=$${topdir}/libtool"; \
19712 libsrcdir="$$s/libtool"; \
295f4e42 19713 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 19714 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 19715 || exit 1
d32ab992 19716@endif libtool
1358ccea 19717
25b42232
PB
19718
19719
ce406537
PB
19720
19721
d32ab992
PB
19722.PHONY: all-libtool maybe-all-libtool
19723maybe-all-libtool:
3ff3adad
PB
19724@if gcc-bootstrap
19725all-libtool: stage_current
19726@endif gcc-bootstrap
d32ab992 19727@if libtool
7e0b5752 19728TARGET-libtool=all
d32ab992
PB
19729maybe-all-libtool: all-libtool
19730all-libtool: configure-libtool
f41d6665 19731 @: $(MAKE); $(unstage)
295f4e42
NN
19732 @r=`${PWD_COMMAND}`; export r; \
19733 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 19734 $(HOST_EXPORTS) \
215c351a
PB
19735 (cd $(HOST_SUBDIR)/libtool && \
19736 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-libtool))
d32ab992 19737@endif libtool
1358ccea 19738
25b42232 19739
ce406537
PB
19740
19741
d32ab992
PB
19742.PHONY: check-libtool maybe-check-libtool
19743maybe-check-libtool:
19744@if libtool
19745maybe-check-libtool: check-libtool
1358ccea 19746
d32ab992 19747check-libtool:
f41d6665 19748 @: $(MAKE); $(unstage)
295f4e42 19749 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 19750 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 19751 $(HOST_EXPORTS) \
215c351a
PB
19752 (cd $(HOST_SUBDIR)/libtool && \
19753 $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 19754
d32ab992 19755@endif libtool
1358ccea 19756
d32ab992
PB
19757.PHONY: install-libtool maybe-install-libtool
19758maybe-install-libtool:
19759@if libtool
19760maybe-install-libtool: install-libtool
1358ccea 19761
d32ab992 19762install-libtool: installdirs
f41d6665 19763 @: $(MAKE); $(unstage)
295f4e42 19764 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 19765 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 19766 $(HOST_EXPORTS) \
215c351a 19767 (cd $(HOST_SUBDIR)/libtool && \
ace9ac7b 19768 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 19769
d32ab992 19770@endif libtool
1358ccea 19771
295f4e42 19772# Other targets (info, dvi, etc.)
1358ccea 19773
d32ab992
PB
19774.PHONY: maybe-info-libtool info-libtool
19775maybe-info-libtool:
19776@if libtool
19777maybe-info-libtool: info-libtool
295f4e42 19778
d32ab992 19779info-libtool: \
05750653 19780 configure-libtool
f41d6665 19781 @: $(MAKE); $(unstage)
d32ab992 19782 @[ -f ./libtool/Makefile ] || exit 0; \
8c90b13a
L
19783 r=`${PWD_COMMAND}`; export r; \
19784 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 19785 $(HOST_EXPORTS) \
d32ab992 19786 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
19787 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19788 done; \
d32ab992 19789 echo "Doing info in libtool" ; \
215c351a 19790 (cd $(HOST_SUBDIR)/libtool && \
1358ccea
NN
19791 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19792 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19793 "RANLIB=$${RANLIB}" \
19794 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 19795 info) \
1358ccea
NN
19796 || exit 1
19797
d32ab992 19798@endif libtool
1358ccea 19799
d32ab992
PB
19800.PHONY: maybe-dvi-libtool dvi-libtool
19801maybe-dvi-libtool:
19802@if libtool
19803maybe-dvi-libtool: dvi-libtool
1358ccea 19804
d32ab992 19805dvi-libtool: \
05750653 19806 configure-libtool
f41d6665 19807 @: $(MAKE); $(unstage)
d32ab992 19808 @[ -f ./libtool/Makefile ] || exit 0; \
8c90b13a
L
19809 r=`${PWD_COMMAND}`; export r; \
19810 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 19811 $(HOST_EXPORTS) \
d32ab992 19812 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
19813 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19814 done; \
d32ab992 19815 echo "Doing dvi in libtool" ; \
215c351a 19816 (cd $(HOST_SUBDIR)/libtool && \
1358ccea
NN
19817 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19818 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19819 "RANLIB=$${RANLIB}" \
19820 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 19821 dvi) \
1358ccea
NN
19822 || exit 1
19823
d32ab992 19824@endif libtool
1358ccea 19825
f87a2b2e
MS
19826.PHONY: maybe-html-libtool html-libtool
19827maybe-html-libtool:
19828@if libtool
19829maybe-html-libtool: html-libtool
19830
19831html-libtool: \
05750653 19832 configure-libtool
f41d6665 19833 @: $(MAKE); $(unstage)
f87a2b2e
MS
19834 @[ -f ./libtool/Makefile ] || exit 0; \
19835 r=`${PWD_COMMAND}`; export r; \
19836 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
19837 $(HOST_EXPORTS) \
19838 for flag in $(EXTRA_HOST_FLAGS) ; do \
19839 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19840 done; \
19841 echo "Doing html in libtool" ; \
215c351a 19842 (cd $(HOST_SUBDIR)/libtool && \
f87a2b2e
MS
19843 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19844 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19845 "RANLIB=$${RANLIB}" \
19846 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19847 html) \
19848 || exit 1
19849
19850@endif libtool
19851
d32ab992
PB
19852.PHONY: maybe-TAGS-libtool TAGS-libtool
19853maybe-TAGS-libtool:
19854@if libtool
19855maybe-TAGS-libtool: TAGS-libtool
1358ccea 19856
d32ab992 19857TAGS-libtool: \
05750653 19858 configure-libtool
f41d6665 19859 @: $(MAKE); $(unstage)
d32ab992 19860 @[ -f ./libtool/Makefile ] || exit 0; \
8c90b13a
L
19861 r=`${PWD_COMMAND}`; export r; \
19862 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 19863 $(HOST_EXPORTS) \
d32ab992 19864 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
19865 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19866 done; \
d32ab992 19867 echo "Doing TAGS in libtool" ; \
215c351a 19868 (cd $(HOST_SUBDIR)/libtool && \
1358ccea
NN
19869 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19870 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19871 "RANLIB=$${RANLIB}" \
19872 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 19873 TAGS) \
1358ccea
NN
19874 || exit 1
19875
d32ab992 19876@endif libtool
1358ccea 19877
d32ab992
PB
19878.PHONY: maybe-install-info-libtool install-info-libtool
19879maybe-install-info-libtool:
19880@if libtool
19881maybe-install-info-libtool: install-info-libtool
1358ccea 19882
d32ab992
PB
19883install-info-libtool: \
19884 configure-libtool \
05750653 19885 info-libtool
f41d6665 19886 @: $(MAKE); $(unstage)
d32ab992 19887 @[ -f ./libtool/Makefile ] || exit 0; \
8c90b13a
L
19888 r=`${PWD_COMMAND}`; export r; \
19889 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 19890 $(HOST_EXPORTS) \
d32ab992 19891 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
19892 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19893 done; \
d32ab992 19894 echo "Doing install-info in libtool" ; \
215c351a 19895 (cd $(HOST_SUBDIR)/libtool && \
1358ccea
NN
19896 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19897 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19898 "RANLIB=$${RANLIB}" \
19899 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 19900 install-info) \
1358ccea
NN
19901 || exit 1
19902
d32ab992 19903@endif libtool
1358ccea 19904
65d6e994
CD
19905.PHONY: maybe-install-html-libtool install-html-libtool
19906maybe-install-html-libtool:
19907@if libtool
19908maybe-install-html-libtool: install-html-libtool
19909
19910install-html-libtool: \
19911 configure-libtool \
19912 html-libtool
19913 @: $(MAKE); $(unstage)
19914 @[ -f ./libtool/Makefile ] || exit 0; \
19915 r=`${PWD_COMMAND}`; export r; \
19916 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19917 $(HOST_EXPORTS) \
19918 for flag in $(EXTRA_HOST_FLAGS) ; do \
19919 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19920 done; \
19921 echo "Doing install-html in libtool" ; \
19922 (cd $(HOST_SUBDIR)/libtool && \
19923 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19924 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19925 "RANLIB=$${RANLIB}" \
19926 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19927 install-html) \
19928 || exit 1
19929
19930@endif libtool
19931
d32ab992
PB
19932.PHONY: maybe-installcheck-libtool installcheck-libtool
19933maybe-installcheck-libtool:
19934@if libtool
19935maybe-installcheck-libtool: installcheck-libtool
1358ccea 19936
d32ab992 19937installcheck-libtool: \
05750653 19938 configure-libtool
f41d6665 19939 @: $(MAKE); $(unstage)
d32ab992 19940 @[ -f ./libtool/Makefile ] || exit 0; \
8c90b13a
L
19941 r=`${PWD_COMMAND}`; export r; \
19942 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 19943 $(HOST_EXPORTS) \
d32ab992 19944 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
19945 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19946 done; \
d32ab992 19947 echo "Doing installcheck in libtool" ; \
215c351a 19948 (cd $(HOST_SUBDIR)/libtool && \
1358ccea
NN
19949 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19950 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19951 "RANLIB=$${RANLIB}" \
19952 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 19953 installcheck) \
1358ccea
NN
19954 || exit 1
19955
d32ab992 19956@endif libtool
1358ccea 19957
d32ab992
PB
19958.PHONY: maybe-mostlyclean-libtool mostlyclean-libtool
19959maybe-mostlyclean-libtool:
19960@if libtool
19961maybe-mostlyclean-libtool: mostlyclean-libtool
1358ccea 19962
05750653 19963mostlyclean-libtool:
f41d6665 19964 @: $(MAKE); $(unstage)
d32ab992 19965 @[ -f ./libtool/Makefile ] || exit 0; \
8c90b13a
L
19966 r=`${PWD_COMMAND}`; export r; \
19967 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 19968 $(HOST_EXPORTS) \
d32ab992 19969 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
19970 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19971 done; \
d32ab992 19972 echo "Doing mostlyclean in libtool" ; \
215c351a 19973 (cd $(HOST_SUBDIR)/libtool && \
1358ccea
NN
19974 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19975 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19976 "RANLIB=$${RANLIB}" \
19977 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 19978 mostlyclean) \
1358ccea
NN
19979 || exit 1
19980
d32ab992 19981@endif libtool
1358ccea 19982
d32ab992
PB
19983.PHONY: maybe-clean-libtool clean-libtool
19984maybe-clean-libtool:
19985@if libtool
19986maybe-clean-libtool: clean-libtool
1358ccea 19987
05750653 19988clean-libtool:
f41d6665 19989 @: $(MAKE); $(unstage)
d32ab992 19990 @[ -f ./libtool/Makefile ] || exit 0; \
8c90b13a
L
19991 r=`${PWD_COMMAND}`; export r; \
19992 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 19993 $(HOST_EXPORTS) \
d32ab992 19994 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
19995 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19996 done; \
d32ab992 19997 echo "Doing clean in libtool" ; \
215c351a 19998 (cd $(HOST_SUBDIR)/libtool && \
1358ccea
NN
19999 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20000 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20001 "RANLIB=$${RANLIB}" \
20002 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20003 clean) \
1358ccea
NN
20004 || exit 1
20005
d32ab992 20006@endif libtool
1358ccea 20007
d32ab992
PB
20008.PHONY: maybe-distclean-libtool distclean-libtool
20009maybe-distclean-libtool:
20010@if libtool
20011maybe-distclean-libtool: distclean-libtool
1358ccea 20012
05750653 20013distclean-libtool:
f41d6665 20014 @: $(MAKE); $(unstage)
d32ab992 20015 @[ -f ./libtool/Makefile ] || exit 0; \
8c90b13a
L
20016 r=`${PWD_COMMAND}`; export r; \
20017 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20018 $(HOST_EXPORTS) \
d32ab992 20019 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
20020 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20021 done; \
d32ab992 20022 echo "Doing distclean in libtool" ; \
215c351a 20023 (cd $(HOST_SUBDIR)/libtool && \
1358ccea
NN
20024 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20025 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20026 "RANLIB=$${RANLIB}" \
20027 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20028 distclean) \
1358ccea
NN
20029 || exit 1
20030
d32ab992 20031@endif libtool
1358ccea 20032
d32ab992
PB
20033.PHONY: maybe-maintainer-clean-libtool maintainer-clean-libtool
20034maybe-maintainer-clean-libtool:
20035@if libtool
20036maybe-maintainer-clean-libtool: maintainer-clean-libtool
1358ccea 20037
05750653 20038maintainer-clean-libtool:
f41d6665 20039 @: $(MAKE); $(unstage)
d32ab992 20040 @[ -f ./libtool/Makefile ] || exit 0; \
8c90b13a
L
20041 r=`${PWD_COMMAND}`; export r; \
20042 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20043 $(HOST_EXPORTS) \
d32ab992 20044 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
20045 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20046 done; \
d32ab992 20047 echo "Doing maintainer-clean in libtool" ; \
215c351a 20048 (cd $(HOST_SUBDIR)/libtool && \
1358ccea
NN
20049 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20050 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20051 "RANLIB=$${RANLIB}" \
20052 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20053 maintainer-clean) \
1358ccea
NN
20054 || exit 1
20055
d32ab992 20056@endif libtool
1358ccea 20057
1358ccea 20058
25b42232 20059
d32ab992
PB
20060.PHONY: configure-m4 maybe-configure-m4
20061maybe-configure-m4:
3ff3adad
PB
20062@if gcc-bootstrap
20063configure-m4: stage_current
20064@endif gcc-bootstrap
d32ab992
PB
20065@if m4
20066maybe-configure-m4: configure-m4
cc11cc9b 20067configure-m4:
f41d6665 20068 @: $(MAKE); $(unstage)
cc11cc9b 20069 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 20070 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
20071 test ! -f $(HOST_SUBDIR)/m4/Makefile || exit 0; \
20072 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/m4 ; \
4fc4dd12 20073 $(HOST_EXPORTS) \
25b42232
PB
20074 echo Configuring in $(HOST_SUBDIR)/m4; \
20075 cd "$(HOST_SUBDIR)/m4" || exit 1; \
295f4e42 20076 case $(srcdir) in \
215c351a
PB
20077 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
20078 *) topdir=`echo $(HOST_SUBDIR)/m4/ | \
20079 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 20080 esac; \
215c351a
PB
20081 srcdiroption="--srcdir=$${topdir}/m4"; \
20082 libsrcdir="$$s/m4"; \
295f4e42 20083 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 20084 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 20085 || exit 1
d32ab992 20086@endif m4
1358ccea 20087
25b42232
PB
20088
20089
ce406537
PB
20090
20091
d32ab992
PB
20092.PHONY: all-m4 maybe-all-m4
20093maybe-all-m4:
3ff3adad
PB
20094@if gcc-bootstrap
20095all-m4: stage_current
20096@endif gcc-bootstrap
d32ab992 20097@if m4
7e0b5752 20098TARGET-m4=all
d32ab992
PB
20099maybe-all-m4: all-m4
20100all-m4: configure-m4
f41d6665 20101 @: $(MAKE); $(unstage)
295f4e42
NN
20102 @r=`${PWD_COMMAND}`; export r; \
20103 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20104 $(HOST_EXPORTS) \
215c351a
PB
20105 (cd $(HOST_SUBDIR)/m4 && \
20106 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-m4))
d32ab992 20107@endif m4
295f4e42 20108
25b42232 20109
ce406537
PB
20110
20111
d32ab992
PB
20112.PHONY: check-m4 maybe-check-m4
20113maybe-check-m4:
20114@if m4
20115maybe-check-m4: check-m4
1358ccea 20116
d32ab992 20117check-m4:
f41d6665 20118 @: $(MAKE); $(unstage)
295f4e42
NN
20119 @r=`${PWD_COMMAND}`; export r; \
20120 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20121 $(HOST_EXPORTS) \
215c351a
PB
20122 (cd $(HOST_SUBDIR)/m4 && \
20123 $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 20124
d32ab992 20125@endif m4
295f4e42 20126
d32ab992
PB
20127.PHONY: install-m4 maybe-install-m4
20128maybe-install-m4:
20129@if m4
20130maybe-install-m4: install-m4
295f4e42 20131
d32ab992 20132install-m4: installdirs
f41d6665 20133 @: $(MAKE); $(unstage)
295f4e42
NN
20134 @r=`${PWD_COMMAND}`; export r; \
20135 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20136 $(HOST_EXPORTS) \
215c351a 20137 (cd $(HOST_SUBDIR)/m4 && \
ace9ac7b 20138 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 20139
d32ab992 20140@endif m4
295f4e42
NN
20141
20142# Other targets (info, dvi, etc.)
20143
d32ab992
PB
20144.PHONY: maybe-info-m4 info-m4
20145maybe-info-m4:
20146@if m4
20147maybe-info-m4: info-m4
295f4e42 20148
d32ab992 20149info-m4: \
05750653 20150 configure-m4
f41d6665 20151 @: $(MAKE); $(unstage)
d32ab992 20152 @[ -f ./m4/Makefile ] || exit 0; \
8c90b13a
L
20153 r=`${PWD_COMMAND}`; export r; \
20154 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20155 $(HOST_EXPORTS) \
d32ab992 20156 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
20157 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20158 done; \
d32ab992 20159 echo "Doing info in m4" ; \
215c351a 20160 (cd $(HOST_SUBDIR)/m4 && \
1358ccea
NN
20161 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20162 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20163 "RANLIB=$${RANLIB}" \
20164 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20165 info) \
1358ccea
NN
20166 || exit 1
20167
d32ab992 20168@endif m4
1358ccea 20169
d32ab992
PB
20170.PHONY: maybe-dvi-m4 dvi-m4
20171maybe-dvi-m4:
20172@if m4
20173maybe-dvi-m4: dvi-m4
1358ccea 20174
d32ab992 20175dvi-m4: \
05750653 20176 configure-m4
f41d6665 20177 @: $(MAKE); $(unstage)
d32ab992 20178 @[ -f ./m4/Makefile ] || exit 0; \
8c90b13a
L
20179 r=`${PWD_COMMAND}`; export r; \
20180 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20181 $(HOST_EXPORTS) \
d32ab992 20182 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
20183 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20184 done; \
d32ab992 20185 echo "Doing dvi in m4" ; \
215c351a 20186 (cd $(HOST_SUBDIR)/m4 && \
1358ccea
NN
20187 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20188 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20189 "RANLIB=$${RANLIB}" \
20190 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20191 dvi) \
1358ccea
NN
20192 || exit 1
20193
d32ab992 20194@endif m4
1358ccea 20195
f87a2b2e
MS
20196.PHONY: maybe-html-m4 html-m4
20197maybe-html-m4:
20198@if m4
20199maybe-html-m4: html-m4
20200
20201html-m4: \
05750653 20202 configure-m4
f41d6665 20203 @: $(MAKE); $(unstage)
f87a2b2e
MS
20204 @[ -f ./m4/Makefile ] || exit 0; \
20205 r=`${PWD_COMMAND}`; export r; \
20206 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
20207 $(HOST_EXPORTS) \
20208 for flag in $(EXTRA_HOST_FLAGS) ; do \
20209 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20210 done; \
20211 echo "Doing html in m4" ; \
215c351a 20212 (cd $(HOST_SUBDIR)/m4 && \
f87a2b2e
MS
20213 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20214 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20215 "RANLIB=$${RANLIB}" \
20216 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20217 html) \
20218 || exit 1
20219
20220@endif m4
20221
d32ab992
PB
20222.PHONY: maybe-TAGS-m4 TAGS-m4
20223maybe-TAGS-m4:
20224@if m4
20225maybe-TAGS-m4: TAGS-m4
1358ccea 20226
d32ab992 20227TAGS-m4: \
05750653 20228 configure-m4
f41d6665 20229 @: $(MAKE); $(unstage)
d32ab992 20230 @[ -f ./m4/Makefile ] || exit 0; \
8c90b13a
L
20231 r=`${PWD_COMMAND}`; export r; \
20232 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20233 $(HOST_EXPORTS) \
d32ab992 20234 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
20235 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20236 done; \
d32ab992 20237 echo "Doing TAGS in m4" ; \
215c351a 20238 (cd $(HOST_SUBDIR)/m4 && \
1358ccea
NN
20239 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20240 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20241 "RANLIB=$${RANLIB}" \
20242 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20243 TAGS) \
1358ccea
NN
20244 || exit 1
20245
d32ab992 20246@endif m4
1358ccea 20247
d32ab992
PB
20248.PHONY: maybe-install-info-m4 install-info-m4
20249maybe-install-info-m4:
20250@if m4
20251maybe-install-info-m4: install-info-m4
1358ccea 20252
d32ab992
PB
20253install-info-m4: \
20254 configure-m4 \
05750653 20255 info-m4
f41d6665 20256 @: $(MAKE); $(unstage)
d32ab992 20257 @[ -f ./m4/Makefile ] || exit 0; \
8c90b13a
L
20258 r=`${PWD_COMMAND}`; export r; \
20259 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20260 $(HOST_EXPORTS) \
d32ab992 20261 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
20262 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20263 done; \
d32ab992 20264 echo "Doing install-info in m4" ; \
215c351a 20265 (cd $(HOST_SUBDIR)/m4 && \
1358ccea
NN
20266 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20267 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20268 "RANLIB=$${RANLIB}" \
20269 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20270 install-info) \
1358ccea
NN
20271 || exit 1
20272
d32ab992 20273@endif m4
1358ccea 20274
65d6e994
CD
20275.PHONY: maybe-install-html-m4 install-html-m4
20276maybe-install-html-m4:
20277@if m4
20278maybe-install-html-m4: install-html-m4
20279
20280install-html-m4: \
20281 configure-m4 \
20282 html-m4
20283 @: $(MAKE); $(unstage)
20284 @[ -f ./m4/Makefile ] || exit 0; \
20285 r=`${PWD_COMMAND}`; export r; \
20286 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20287 $(HOST_EXPORTS) \
20288 for flag in $(EXTRA_HOST_FLAGS) ; do \
20289 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20290 done; \
20291 echo "Doing install-html in m4" ; \
20292 (cd $(HOST_SUBDIR)/m4 && \
20293 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20294 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20295 "RANLIB=$${RANLIB}" \
20296 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20297 install-html) \
20298 || exit 1
20299
20300@endif m4
20301
d32ab992
PB
20302.PHONY: maybe-installcheck-m4 installcheck-m4
20303maybe-installcheck-m4:
20304@if m4
20305maybe-installcheck-m4: installcheck-m4
1358ccea 20306
d32ab992 20307installcheck-m4: \
05750653 20308 configure-m4
f41d6665 20309 @: $(MAKE); $(unstage)
d32ab992 20310 @[ -f ./m4/Makefile ] || exit 0; \
8c90b13a
L
20311 r=`${PWD_COMMAND}`; export r; \
20312 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20313 $(HOST_EXPORTS) \
d32ab992 20314 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
20315 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20316 done; \
d32ab992 20317 echo "Doing installcheck in m4" ; \
215c351a 20318 (cd $(HOST_SUBDIR)/m4 && \
1358ccea
NN
20319 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20320 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20321 "RANLIB=$${RANLIB}" \
20322 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20323 installcheck) \
1358ccea
NN
20324 || exit 1
20325
d32ab992 20326@endif m4
1358ccea 20327
d32ab992
PB
20328.PHONY: maybe-mostlyclean-m4 mostlyclean-m4
20329maybe-mostlyclean-m4:
20330@if m4
20331maybe-mostlyclean-m4: mostlyclean-m4
1358ccea 20332
05750653 20333mostlyclean-m4:
f41d6665 20334 @: $(MAKE); $(unstage)
d32ab992 20335 @[ -f ./m4/Makefile ] || exit 0; \
8c90b13a
L
20336 r=`${PWD_COMMAND}`; export r; \
20337 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20338 $(HOST_EXPORTS) \
d32ab992 20339 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
20340 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20341 done; \
d32ab992 20342 echo "Doing mostlyclean in m4" ; \
215c351a 20343 (cd $(HOST_SUBDIR)/m4 && \
1358ccea
NN
20344 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20345 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20346 "RANLIB=$${RANLIB}" \
20347 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20348 mostlyclean) \
1358ccea
NN
20349 || exit 1
20350
d32ab992 20351@endif m4
1358ccea 20352
d32ab992
PB
20353.PHONY: maybe-clean-m4 clean-m4
20354maybe-clean-m4:
20355@if m4
20356maybe-clean-m4: clean-m4
1358ccea 20357
05750653 20358clean-m4:
f41d6665 20359 @: $(MAKE); $(unstage)
d32ab992 20360 @[ -f ./m4/Makefile ] || exit 0; \
8c90b13a
L
20361 r=`${PWD_COMMAND}`; export r; \
20362 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20363 $(HOST_EXPORTS) \
d32ab992 20364 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
20365 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20366 done; \
d32ab992 20367 echo "Doing clean in m4" ; \
215c351a 20368 (cd $(HOST_SUBDIR)/m4 && \
1358ccea
NN
20369 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20370 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20371 "RANLIB=$${RANLIB}" \
20372 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20373 clean) \
1358ccea
NN
20374 || exit 1
20375
d32ab992 20376@endif m4
1358ccea 20377
d32ab992
PB
20378.PHONY: maybe-distclean-m4 distclean-m4
20379maybe-distclean-m4:
20380@if m4
20381maybe-distclean-m4: distclean-m4
d9cdb878 20382
05750653 20383distclean-m4:
f41d6665 20384 @: $(MAKE); $(unstage)
d32ab992 20385 @[ -f ./m4/Makefile ] || exit 0; \
d9cdb878
AC
20386 r=`${PWD_COMMAND}`; export r; \
20387 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20388 $(HOST_EXPORTS) \
d32ab992 20389 for flag in $(EXTRA_HOST_FLAGS) ; do \
d9cdb878
AC
20390 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20391 done; \
d32ab992 20392 echo "Doing distclean in m4" ; \
215c351a 20393 (cd $(HOST_SUBDIR)/m4 && \
d9cdb878
AC
20394 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20395 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
295f4e42
NN
20396 "RANLIB=$${RANLIB}" \
20397 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20398 distclean) \
295f4e42 20399 || exit 1
6599da04 20400
d32ab992 20401@endif m4
c4137c50 20402
d32ab992
PB
20403.PHONY: maybe-maintainer-clean-m4 maintainer-clean-m4
20404maybe-maintainer-clean-m4:
20405@if m4
20406maybe-maintainer-clean-m4: maintainer-clean-m4
c4137c50 20407
05750653 20408maintainer-clean-m4:
f41d6665 20409 @: $(MAKE); $(unstage)
d32ab992 20410 @[ -f ./m4/Makefile ] || exit 0; \
295f4e42
NN
20411 r=`${PWD_COMMAND}`; export r; \
20412 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20413 $(HOST_EXPORTS) \
d32ab992 20414 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
20415 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20416 done; \
d32ab992 20417 echo "Doing maintainer-clean in m4" ; \
215c351a 20418 (cd $(HOST_SUBDIR)/m4 && \
295f4e42
NN
20419 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20420 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20421 "RANLIB=$${RANLIB}" \
20422 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20423 maintainer-clean) \
295f4e42 20424 || exit 1
c4137c50 20425
d32ab992 20426@endif m4
c4137c50 20427
6599da04 20428
25b42232 20429
d32ab992
PB
20430.PHONY: configure-make maybe-configure-make
20431maybe-configure-make:
3ff3adad
PB
20432@if gcc-bootstrap
20433configure-make: stage_current
20434@endif gcc-bootstrap
d32ab992
PB
20435@if make
20436maybe-configure-make: configure-make
cc11cc9b 20437configure-make:
f41d6665 20438 @: $(MAKE); $(unstage)
cc11cc9b 20439 @r=`${PWD_COMMAND}`; export r; \
d32ab992 20440 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
20441 test ! -f $(HOST_SUBDIR)/make/Makefile || exit 0; \
20442 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/make ; \
d32ab992 20443 $(HOST_EXPORTS) \
25b42232
PB
20444 echo Configuring in $(HOST_SUBDIR)/make; \
20445 cd "$(HOST_SUBDIR)/make" || exit 1; \
295f4e42 20446 case $(srcdir) in \
215c351a
PB
20447 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
20448 *) topdir=`echo $(HOST_SUBDIR)/make/ | \
20449 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 20450 esac; \
215c351a
PB
20451 srcdiroption="--srcdir=$${topdir}/make"; \
20452 libsrcdir="$$s/make"; \
295f4e42 20453 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 20454 $(HOST_CONFIGARGS) $${srcdiroption} \
295f4e42 20455 || exit 1
d32ab992 20456@endif make
8b87bb96 20457
25b42232
PB
20458
20459
ce406537
PB
20460
20461
d32ab992
PB
20462.PHONY: all-make maybe-all-make
20463maybe-all-make:
3ff3adad
PB
20464@if gcc-bootstrap
20465all-make: stage_current
20466@endif gcc-bootstrap
d32ab992 20467@if make
7e0b5752 20468TARGET-make=all
d32ab992
PB
20469maybe-all-make: all-make
20470all-make: configure-make
f41d6665 20471 @: $(MAKE); $(unstage)
295f4e42
NN
20472 @r=`${PWD_COMMAND}`; export r; \
20473 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20474 $(HOST_EXPORTS) \
215c351a
PB
20475 (cd $(HOST_SUBDIR)/make && \
20476 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-make))
d32ab992 20477@endif make
7e2dbcef 20478
25b42232 20479
ce406537
PB
20480
20481
d32ab992
PB
20482.PHONY: check-make maybe-check-make
20483maybe-check-make:
20484@if make
20485maybe-check-make: check-make
295f4e42 20486
d32ab992 20487check-make:
f41d6665 20488 @: $(MAKE); $(unstage)
d32ab992
PB
20489 @r=`${PWD_COMMAND}`; export r; \
20490 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d32ab992 20491 $(HOST_EXPORTS) \
215c351a
PB
20492 (cd $(HOST_SUBDIR)/make && \
20493 $(MAKE) $(FLAGS_TO_PASS) check)
295f4e42 20494
d32ab992 20495@endif make
295f4e42 20496
d32ab992
PB
20497.PHONY: install-make maybe-install-make
20498maybe-install-make:
20499@if make
20500maybe-install-make: install-make
295f4e42 20501
d32ab992 20502install-make: installdirs
f41d6665 20503 @: $(MAKE); $(unstage)
295f4e42
NN
20504 @r=`${PWD_COMMAND}`; export r; \
20505 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20506 $(HOST_EXPORTS) \
215c351a 20507 (cd $(HOST_SUBDIR)/make && \
ace9ac7b 20508 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 20509
d32ab992 20510@endif make
295f4e42
NN
20511
20512# Other targets (info, dvi, etc.)
20513
d32ab992
PB
20514.PHONY: maybe-info-make info-make
20515maybe-info-make:
20516@if make
20517maybe-info-make: info-make
295f4e42 20518
d32ab992 20519info-make: \
05750653 20520 configure-make
f41d6665 20521 @: $(MAKE); $(unstage)
d32ab992 20522 @[ -f ./make/Makefile ] || exit 0; \
295f4e42
NN
20523 r=`${PWD_COMMAND}`; export r; \
20524 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20525 $(HOST_EXPORTS) \
d32ab992 20526 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
20527 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20528 done; \
d32ab992 20529 echo "Doing info in make" ; \
215c351a 20530 (cd $(HOST_SUBDIR)/make && \
295f4e42
NN
20531 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20532 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20533 "RANLIB=$${RANLIB}" \
20534 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20535 info) \
295f4e42 20536 || exit 1
7e2dbcef 20537
d32ab992 20538@endif make
6599da04 20539
d32ab992
PB
20540.PHONY: maybe-dvi-make dvi-make
20541maybe-dvi-make:
20542@if make
20543maybe-dvi-make: dvi-make
6599da04 20544
d32ab992 20545dvi-make: \
05750653 20546 configure-make
f41d6665 20547 @: $(MAKE); $(unstage)
d32ab992 20548 @[ -f ./make/Makefile ] || exit 0; \
295f4e42
NN
20549 r=`${PWD_COMMAND}`; export r; \
20550 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20551 $(HOST_EXPORTS) \
d32ab992 20552 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
20553 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20554 done; \
d32ab992 20555 echo "Doing dvi in make" ; \
215c351a 20556 (cd $(HOST_SUBDIR)/make && \
295f4e42
NN
20557 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20558 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20559 "RANLIB=$${RANLIB}" \
20560 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20561 dvi) \
295f4e42 20562 || exit 1
6599da04 20563
d32ab992 20564@endif make
6599da04 20565
f87a2b2e
MS
20566.PHONY: maybe-html-make html-make
20567maybe-html-make:
20568@if make
20569maybe-html-make: html-make
20570
20571html-make: \
05750653 20572 configure-make
f41d6665 20573 @: $(MAKE); $(unstage)
f87a2b2e
MS
20574 @[ -f ./make/Makefile ] || exit 0; \
20575 r=`${PWD_COMMAND}`; export r; \
20576 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
20577 $(HOST_EXPORTS) \
20578 for flag in $(EXTRA_HOST_FLAGS) ; do \
20579 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20580 done; \
20581 echo "Doing html in make" ; \
215c351a 20582 (cd $(HOST_SUBDIR)/make && \
f87a2b2e
MS
20583 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20584 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20585 "RANLIB=$${RANLIB}" \
20586 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20587 html) \
20588 || exit 1
20589
20590@endif make
20591
d32ab992
PB
20592.PHONY: maybe-TAGS-make TAGS-make
20593maybe-TAGS-make:
20594@if make
20595maybe-TAGS-make: TAGS-make
4977bab6 20596
d32ab992 20597TAGS-make: \
05750653 20598 configure-make
f41d6665 20599 @: $(MAKE); $(unstage)
d32ab992 20600 @[ -f ./make/Makefile ] || exit 0; \
295f4e42
NN
20601 r=`${PWD_COMMAND}`; export r; \
20602 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20603 $(HOST_EXPORTS) \
d32ab992 20604 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
20605 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20606 done; \
d32ab992 20607 echo "Doing TAGS in make" ; \
215c351a 20608 (cd $(HOST_SUBDIR)/make && \
295f4e42
NN
20609 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20610 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20611 "RANLIB=$${RANLIB}" \
20612 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20613 TAGS) \
295f4e42 20614 || exit 1
4977bab6 20615
d32ab992 20616@endif make
4977bab6 20617
d32ab992
PB
20618.PHONY: maybe-install-info-make install-info-make
20619maybe-install-info-make:
20620@if make
20621maybe-install-info-make: install-info-make
4977bab6 20622
d32ab992
PB
20623install-info-make: \
20624 configure-make \
05750653 20625 info-make
f41d6665 20626 @: $(MAKE); $(unstage)
d32ab992 20627 @[ -f ./make/Makefile ] || exit 0; \
295f4e42
NN
20628 r=`${PWD_COMMAND}`; export r; \
20629 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20630 $(HOST_EXPORTS) \
d32ab992 20631 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
20632 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20633 done; \
d32ab992 20634 echo "Doing install-info in make" ; \
215c351a 20635 (cd $(HOST_SUBDIR)/make && \
295f4e42
NN
20636 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20637 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20638 "RANLIB=$${RANLIB}" \
20639 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20640 install-info) \
295f4e42 20641 || exit 1
4977bab6 20642
d32ab992 20643@endif make
4977bab6 20644
65d6e994
CD
20645.PHONY: maybe-install-html-make install-html-make
20646maybe-install-html-make:
20647@if make
20648maybe-install-html-make: install-html-make
20649
20650install-html-make: \
20651 configure-make \
20652 html-make
20653 @: $(MAKE); $(unstage)
20654 @[ -f ./make/Makefile ] || exit 0; \
20655 r=`${PWD_COMMAND}`; export r; \
20656 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20657 $(HOST_EXPORTS) \
20658 for flag in $(EXTRA_HOST_FLAGS) ; do \
20659 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20660 done; \
20661 echo "Doing install-html in make" ; \
20662 (cd $(HOST_SUBDIR)/make && \
20663 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20664 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20665 "RANLIB=$${RANLIB}" \
20666 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20667 install-html) \
20668 || exit 1
20669
20670@endif make
20671
d32ab992
PB
20672.PHONY: maybe-installcheck-make installcheck-make
20673maybe-installcheck-make:
20674@if make
20675maybe-installcheck-make: installcheck-make
4977bab6 20676
d32ab992 20677installcheck-make: \
05750653 20678 configure-make
f41d6665 20679 @: $(MAKE); $(unstage)
d32ab992 20680 @[ -f ./make/Makefile ] || exit 0; \
8c90b13a
L
20681 r=`${PWD_COMMAND}`; export r; \
20682 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20683 $(HOST_EXPORTS) \
d32ab992 20684 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
20685 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20686 done; \
d32ab992 20687 echo "Doing installcheck in make" ; \
215c351a 20688 (cd $(HOST_SUBDIR)/make && \
295f4e42
NN
20689 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20690 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20691 "RANLIB=$${RANLIB}" \
20692 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20693 installcheck) \
295f4e42
NN
20694 || exit 1
20695
d32ab992 20696@endif make
295f4e42 20697
d32ab992
PB
20698.PHONY: maybe-mostlyclean-make mostlyclean-make
20699maybe-mostlyclean-make:
20700@if make
20701maybe-mostlyclean-make: mostlyclean-make
295f4e42 20702
05750653 20703mostlyclean-make:
f41d6665 20704 @: $(MAKE); $(unstage)
d32ab992 20705 @[ -f ./make/Makefile ] || exit 0; \
295f4e42
NN
20706 r=`${PWD_COMMAND}`; export r; \
20707 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20708 $(HOST_EXPORTS) \
d32ab992 20709 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
20710 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20711 done; \
d32ab992 20712 echo "Doing mostlyclean in make" ; \
215c351a 20713 (cd $(HOST_SUBDIR)/make && \
295f4e42
NN
20714 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20715 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20716 "RANLIB=$${RANLIB}" \
20717 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20718 mostlyclean) \
295f4e42
NN
20719 || exit 1
20720
d32ab992 20721@endif make
295f4e42 20722
d32ab992
PB
20723.PHONY: maybe-clean-make clean-make
20724maybe-clean-make:
20725@if make
20726maybe-clean-make: clean-make
295f4e42 20727
05750653 20728clean-make:
f41d6665 20729 @: $(MAKE); $(unstage)
d32ab992 20730 @[ -f ./make/Makefile ] || exit 0; \
295f4e42
NN
20731 r=`${PWD_COMMAND}`; export r; \
20732 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20733 $(HOST_EXPORTS) \
d32ab992 20734 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
20735 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20736 done; \
d32ab992 20737 echo "Doing clean in make" ; \
215c351a 20738 (cd $(HOST_SUBDIR)/make && \
295f4e42
NN
20739 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20740 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20741 "RANLIB=$${RANLIB}" \
20742 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20743 clean) \
295f4e42
NN
20744 || exit 1
20745
d32ab992 20746@endif make
295f4e42 20747
d32ab992
PB
20748.PHONY: maybe-distclean-make distclean-make
20749maybe-distclean-make:
20750@if make
20751maybe-distclean-make: distclean-make
295f4e42 20752
05750653 20753distclean-make:
f41d6665 20754 @: $(MAKE); $(unstage)
d32ab992 20755 @[ -f ./make/Makefile ] || exit 0; \
295f4e42
NN
20756 r=`${PWD_COMMAND}`; export r; \
20757 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20758 $(HOST_EXPORTS) \
d32ab992 20759 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
20760 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20761 done; \
d32ab992 20762 echo "Doing distclean in make" ; \
215c351a 20763 (cd $(HOST_SUBDIR)/make && \
295f4e42
NN
20764 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20765 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20766 "RANLIB=$${RANLIB}" \
20767 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20768 distclean) \
3aa83176 20769 || exit 1
4977bab6 20770
d32ab992 20771@endif make
295f4e42 20772
d32ab992
PB
20773.PHONY: maybe-maintainer-clean-make maintainer-clean-make
20774maybe-maintainer-clean-make:
20775@if make
20776maybe-maintainer-clean-make: maintainer-clean-make
295f4e42 20777
05750653 20778maintainer-clean-make:
f41d6665 20779 @: $(MAKE); $(unstage)
d32ab992 20780 @[ -f ./make/Makefile ] || exit 0; \
295f4e42 20781 r=`${PWD_COMMAND}`; export r; \
8c90b13a 20782 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20783 $(HOST_EXPORTS) \
d32ab992 20784 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
20785 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20786 done; \
d32ab992 20787 echo "Doing maintainer-clean in make" ; \
215c351a 20788 (cd $(HOST_SUBDIR)/make && \
295f4e42
NN
20789 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20790 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20791 "RANLIB=$${RANLIB}" \
20792 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20793 maintainer-clean) \
295f4e42 20794 || exit 1
4977bab6 20795
d32ab992 20796@endif make
4977bab6 20797
4977bab6 20798
25b42232 20799
d32ab992
PB
20800.PHONY: configure-mmalloc maybe-configure-mmalloc
20801maybe-configure-mmalloc:
3ff3adad
PB
20802@if gcc-bootstrap
20803configure-mmalloc: stage_current
20804@endif gcc-bootstrap
d32ab992
PB
20805@if mmalloc
20806maybe-configure-mmalloc: configure-mmalloc
cc11cc9b 20807configure-mmalloc:
f41d6665 20808 @: $(MAKE); $(unstage)
cc11cc9b 20809 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 20810 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
20811 test ! -f $(HOST_SUBDIR)/mmalloc/Makefile || exit 0; \
20812 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mmalloc ; \
4fc4dd12 20813 $(HOST_EXPORTS) \
25b42232
PB
20814 echo Configuring in $(HOST_SUBDIR)/mmalloc; \
20815 cd "$(HOST_SUBDIR)/mmalloc" || exit 1; \
4977bab6 20816 case $(srcdir) in \
215c351a
PB
20817 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
20818 *) topdir=`echo $(HOST_SUBDIR)/mmalloc/ | \
20819 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 20820 esac; \
215c351a
PB
20821 srcdiroption="--srcdir=$${topdir}/mmalloc"; \
20822 libsrcdir="$$s/mmalloc"; \
4977bab6 20823 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 20824 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 20825 || exit 1
d32ab992 20826@endif mmalloc
4977bab6 20827
25b42232
PB
20828
20829
ce406537
PB
20830
20831
d32ab992
PB
20832.PHONY: all-mmalloc maybe-all-mmalloc
20833maybe-all-mmalloc:
3ff3adad
PB
20834@if gcc-bootstrap
20835all-mmalloc: stage_current
20836@endif gcc-bootstrap
d32ab992 20837@if mmalloc
7e0b5752 20838TARGET-mmalloc=all
d32ab992
PB
20839maybe-all-mmalloc: all-mmalloc
20840all-mmalloc: configure-mmalloc
f41d6665 20841 @: $(MAKE); $(unstage)
8c90b13a
L
20842 @r=`${PWD_COMMAND}`; export r; \
20843 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20844 $(HOST_EXPORTS) \
215c351a
PB
20845 (cd $(HOST_SUBDIR)/mmalloc && \
20846 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-mmalloc))
d32ab992 20847@endif mmalloc
4977bab6 20848
25b42232 20849
ce406537
PB
20850
20851
d32ab992
PB
20852.PHONY: check-mmalloc maybe-check-mmalloc
20853maybe-check-mmalloc:
20854@if mmalloc
20855maybe-check-mmalloc: check-mmalloc
4977bab6 20856
d32ab992 20857check-mmalloc:
4977bab6 20858
d32ab992 20859@endif mmalloc
4977bab6 20860
d32ab992
PB
20861.PHONY: install-mmalloc maybe-install-mmalloc
20862maybe-install-mmalloc:
20863@if mmalloc
20864maybe-install-mmalloc: install-mmalloc
7e2dbcef 20865
d32ab992 20866install-mmalloc: installdirs
f41d6665 20867 @: $(MAKE); $(unstage)
8c90b13a
L
20868 @r=`${PWD_COMMAND}`; export r; \
20869 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20870 $(HOST_EXPORTS) \
215c351a 20871 (cd $(HOST_SUBDIR)/mmalloc && \
ace9ac7b 20872 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 20873
d32ab992 20874@endif mmalloc
295f4e42
NN
20875
20876# Other targets (info, dvi, etc.)
20877
d32ab992
PB
20878.PHONY: maybe-info-mmalloc info-mmalloc
20879maybe-info-mmalloc:
20880@if mmalloc
20881maybe-info-mmalloc: info-mmalloc
295f4e42 20882
d32ab992 20883info-mmalloc: \
05750653 20884 configure-mmalloc
f41d6665 20885 @: $(MAKE); $(unstage)
d32ab992 20886 @[ -f ./mmalloc/Makefile ] || exit 0; \
295f4e42
NN
20887 r=`${PWD_COMMAND}`; export r; \
20888 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20889 $(HOST_EXPORTS) \
d32ab992 20890 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
20891 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20892 done; \
d32ab992 20893 echo "Doing info in mmalloc" ; \
215c351a 20894 (cd $(HOST_SUBDIR)/mmalloc && \
295f4e42
NN
20895 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20896 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20897 "RANLIB=$${RANLIB}" \
20898 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20899 info) \
295f4e42
NN
20900 || exit 1
20901
d32ab992 20902@endif mmalloc
295f4e42 20903
d32ab992
PB
20904.PHONY: maybe-dvi-mmalloc dvi-mmalloc
20905maybe-dvi-mmalloc:
20906@if mmalloc
20907maybe-dvi-mmalloc: dvi-mmalloc
295f4e42 20908
d32ab992 20909dvi-mmalloc: \
05750653 20910 configure-mmalloc
f41d6665 20911 @: $(MAKE); $(unstage)
d32ab992 20912 @[ -f ./mmalloc/Makefile ] || exit 0; \
295f4e42
NN
20913 r=`${PWD_COMMAND}`; export r; \
20914 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20915 $(HOST_EXPORTS) \
d32ab992 20916 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
20917 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20918 done; \
d32ab992 20919 echo "Doing dvi in mmalloc" ; \
215c351a 20920 (cd $(HOST_SUBDIR)/mmalloc && \
295f4e42
NN
20921 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20922 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20923 "RANLIB=$${RANLIB}" \
20924 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20925 dvi) \
295f4e42
NN
20926 || exit 1
20927
d32ab992 20928@endif mmalloc
295f4e42 20929
f87a2b2e
MS
20930.PHONY: maybe-html-mmalloc html-mmalloc
20931maybe-html-mmalloc:
20932@if mmalloc
20933maybe-html-mmalloc: html-mmalloc
20934
20935html-mmalloc: \
05750653 20936 configure-mmalloc
f41d6665 20937 @: $(MAKE); $(unstage)
f87a2b2e
MS
20938 @[ -f ./mmalloc/Makefile ] || exit 0; \
20939 r=`${PWD_COMMAND}`; export r; \
20940 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
20941 $(HOST_EXPORTS) \
20942 for flag in $(EXTRA_HOST_FLAGS) ; do \
20943 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20944 done; \
20945 echo "Doing html in mmalloc" ; \
215c351a 20946 (cd $(HOST_SUBDIR)/mmalloc && \
f87a2b2e
MS
20947 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20948 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20949 "RANLIB=$${RANLIB}" \
20950 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20951 html) \
20952 || exit 1
20953
20954@endif mmalloc
20955
d32ab992
PB
20956.PHONY: maybe-TAGS-mmalloc TAGS-mmalloc
20957maybe-TAGS-mmalloc:
20958@if mmalloc
20959maybe-TAGS-mmalloc: TAGS-mmalloc
295f4e42 20960
d32ab992 20961TAGS-mmalloc: \
05750653 20962 configure-mmalloc
f41d6665 20963 @: $(MAKE); $(unstage)
d32ab992 20964 @[ -f ./mmalloc/Makefile ] || exit 0; \
295f4e42
NN
20965 r=`${PWD_COMMAND}`; export r; \
20966 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20967 $(HOST_EXPORTS) \
d32ab992 20968 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
20969 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20970 done; \
d32ab992 20971 echo "Doing TAGS in mmalloc" ; \
215c351a 20972 (cd $(HOST_SUBDIR)/mmalloc && \
295f4e42
NN
20973 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20974 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20975 "RANLIB=$${RANLIB}" \
20976 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20977 TAGS) \
295f4e42
NN
20978 || exit 1
20979
d32ab992 20980@endif mmalloc
295f4e42 20981
d32ab992
PB
20982.PHONY: maybe-install-info-mmalloc install-info-mmalloc
20983maybe-install-info-mmalloc:
20984@if mmalloc
20985maybe-install-info-mmalloc: install-info-mmalloc
295f4e42 20986
d32ab992
PB
20987install-info-mmalloc: \
20988 configure-mmalloc \
05750653 20989 info-mmalloc
f41d6665 20990 @: $(MAKE); $(unstage)
d32ab992 20991 @[ -f ./mmalloc/Makefile ] || exit 0; \
295f4e42
NN
20992 r=`${PWD_COMMAND}`; export r; \
20993 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20994 $(HOST_EXPORTS) \
d32ab992 20995 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
20996 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20997 done; \
d32ab992 20998 echo "Doing install-info in mmalloc" ; \
215c351a 20999 (cd $(HOST_SUBDIR)/mmalloc && \
295f4e42
NN
21000 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21001 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21002 "RANLIB=$${RANLIB}" \
21003 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21004 install-info) \
295f4e42
NN
21005 || exit 1
21006
d32ab992 21007@endif mmalloc
295f4e42 21008
65d6e994
CD
21009.PHONY: maybe-install-html-mmalloc install-html-mmalloc
21010maybe-install-html-mmalloc:
21011@if mmalloc
21012maybe-install-html-mmalloc: install-html-mmalloc
21013
21014install-html-mmalloc: \
21015 configure-mmalloc \
21016 html-mmalloc
21017 @: $(MAKE); $(unstage)
21018 @[ -f ./mmalloc/Makefile ] || exit 0; \
21019 r=`${PWD_COMMAND}`; export r; \
21020 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21021 $(HOST_EXPORTS) \
21022 for flag in $(EXTRA_HOST_FLAGS) ; do \
21023 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21024 done; \
21025 echo "Doing install-html in mmalloc" ; \
21026 (cd $(HOST_SUBDIR)/mmalloc && \
21027 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21028 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21029 "RANLIB=$${RANLIB}" \
21030 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21031 install-html) \
21032 || exit 1
21033
21034@endif mmalloc
21035
d32ab992
PB
21036.PHONY: maybe-installcheck-mmalloc installcheck-mmalloc
21037maybe-installcheck-mmalloc:
21038@if mmalloc
21039maybe-installcheck-mmalloc: installcheck-mmalloc
295f4e42 21040
d32ab992 21041installcheck-mmalloc: \
05750653 21042 configure-mmalloc
f41d6665 21043 @: $(MAKE); $(unstage)
d32ab992 21044 @[ -f ./mmalloc/Makefile ] || exit 0; \
295f4e42
NN
21045 r=`${PWD_COMMAND}`; export r; \
21046 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21047 $(HOST_EXPORTS) \
d32ab992 21048 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
21049 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21050 done; \
d32ab992 21051 echo "Doing installcheck in mmalloc" ; \
215c351a 21052 (cd $(HOST_SUBDIR)/mmalloc && \
295f4e42
NN
21053 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21054 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21055 "RANLIB=$${RANLIB}" \
21056 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21057 installcheck) \
295f4e42
NN
21058 || exit 1
21059
d32ab992 21060@endif mmalloc
295f4e42 21061
d32ab992
PB
21062.PHONY: maybe-mostlyclean-mmalloc mostlyclean-mmalloc
21063maybe-mostlyclean-mmalloc:
21064@if mmalloc
21065maybe-mostlyclean-mmalloc: mostlyclean-mmalloc
295f4e42 21066
05750653 21067mostlyclean-mmalloc:
f41d6665 21068 @: $(MAKE); $(unstage)
d32ab992 21069 @[ -f ./mmalloc/Makefile ] || exit 0; \
295f4e42
NN
21070 r=`${PWD_COMMAND}`; export r; \
21071 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21072 $(HOST_EXPORTS) \
d32ab992 21073 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
21074 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21075 done; \
d32ab992 21076 echo "Doing mostlyclean in mmalloc" ; \
215c351a 21077 (cd $(HOST_SUBDIR)/mmalloc && \
295f4e42
NN
21078 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21079 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21080 "RANLIB=$${RANLIB}" \
21081 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21082 mostlyclean) \
295f4e42
NN
21083 || exit 1
21084
d32ab992 21085@endif mmalloc
295f4e42 21086
d32ab992
PB
21087.PHONY: maybe-clean-mmalloc clean-mmalloc
21088maybe-clean-mmalloc:
21089@if mmalloc
21090maybe-clean-mmalloc: clean-mmalloc
295f4e42 21091
05750653 21092clean-mmalloc:
f41d6665 21093 @: $(MAKE); $(unstage)
d32ab992 21094 @[ -f ./mmalloc/Makefile ] || exit 0; \
295f4e42
NN
21095 r=`${PWD_COMMAND}`; export r; \
21096 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21097 $(HOST_EXPORTS) \
d32ab992 21098 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
21099 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21100 done; \
d32ab992 21101 echo "Doing clean in mmalloc" ; \
215c351a 21102 (cd $(HOST_SUBDIR)/mmalloc && \
295f4e42
NN
21103 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21104 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21105 "RANLIB=$${RANLIB}" \
21106 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21107 clean) \
295f4e42
NN
21108 || exit 1
21109
d32ab992 21110@endif mmalloc
295f4e42 21111
d32ab992
PB
21112.PHONY: maybe-distclean-mmalloc distclean-mmalloc
21113maybe-distclean-mmalloc:
21114@if mmalloc
21115maybe-distclean-mmalloc: distclean-mmalloc
295f4e42 21116
05750653 21117distclean-mmalloc:
f41d6665 21118 @: $(MAKE); $(unstage)
d32ab992 21119 @[ -f ./mmalloc/Makefile ] || exit 0; \
295f4e42
NN
21120 r=`${PWD_COMMAND}`; export r; \
21121 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21122 $(HOST_EXPORTS) \
d32ab992 21123 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
21124 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21125 done; \
d32ab992 21126 echo "Doing distclean in mmalloc" ; \
215c351a 21127 (cd $(HOST_SUBDIR)/mmalloc && \
295f4e42
NN
21128 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21129 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21130 "RANLIB=$${RANLIB}" \
21131 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21132 distclean) \
295f4e42
NN
21133 || exit 1
21134
d32ab992 21135@endif mmalloc
295f4e42 21136
d32ab992
PB
21137.PHONY: maybe-maintainer-clean-mmalloc maintainer-clean-mmalloc
21138maybe-maintainer-clean-mmalloc:
21139@if mmalloc
21140maybe-maintainer-clean-mmalloc: maintainer-clean-mmalloc
295f4e42 21141
05750653 21142maintainer-clean-mmalloc:
f41d6665 21143 @: $(MAKE); $(unstage)
d32ab992 21144 @[ -f ./mmalloc/Makefile ] || exit 0; \
295f4e42
NN
21145 r=`${PWD_COMMAND}`; export r; \
21146 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21147 $(HOST_EXPORTS) \
d32ab992 21148 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
21149 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21150 done; \
d32ab992 21151 echo "Doing maintainer-clean in mmalloc" ; \
215c351a 21152 (cd $(HOST_SUBDIR)/mmalloc && \
295f4e42
NN
21153 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21154 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21155 "RANLIB=$${RANLIB}" \
21156 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21157 maintainer-clean) \
295f4e42 21158 || exit 1
4977bab6 21159
d32ab992 21160@endif mmalloc
4977bab6 21161
295f4e42 21162
25b42232 21163
d32ab992
PB
21164.PHONY: configure-patch maybe-configure-patch
21165maybe-configure-patch:
3ff3adad
PB
21166@if gcc-bootstrap
21167configure-patch: stage_current
21168@endif gcc-bootstrap
d32ab992
PB
21169@if patch
21170maybe-configure-patch: configure-patch
cc11cc9b 21171configure-patch:
f41d6665 21172 @: $(MAKE); $(unstage)
cc11cc9b 21173 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 21174 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
21175 test ! -f $(HOST_SUBDIR)/patch/Makefile || exit 0; \
21176 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/patch ; \
4fc4dd12 21177 $(HOST_EXPORTS) \
25b42232
PB
21178 echo Configuring in $(HOST_SUBDIR)/patch; \
21179 cd "$(HOST_SUBDIR)/patch" || exit 1; \
4977bab6 21180 case $(srcdir) in \
215c351a
PB
21181 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
21182 *) topdir=`echo $(HOST_SUBDIR)/patch/ | \
21183 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 21184 esac; \
215c351a
PB
21185 srcdiroption="--srcdir=$${topdir}/patch"; \
21186 libsrcdir="$$s/patch"; \
4977bab6 21187 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 21188 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 21189 || exit 1
d32ab992 21190@endif patch
4977bab6 21191
25b42232
PB
21192
21193
ce406537
PB
21194
21195
d32ab992
PB
21196.PHONY: all-patch maybe-all-patch
21197maybe-all-patch:
3ff3adad
PB
21198@if gcc-bootstrap
21199all-patch: stage_current
21200@endif gcc-bootstrap
d32ab992 21201@if patch
7e0b5752 21202TARGET-patch=all
d32ab992
PB
21203maybe-all-patch: all-patch
21204all-patch: configure-patch
f41d6665 21205 @: $(MAKE); $(unstage)
8c90b13a
L
21206 @r=`${PWD_COMMAND}`; export r; \
21207 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21208 $(HOST_EXPORTS) \
215c351a
PB
21209 (cd $(HOST_SUBDIR)/patch && \
21210 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-patch))
d32ab992 21211@endif patch
4977bab6 21212
25b42232 21213
ce406537
PB
21214
21215
d32ab992
PB
21216.PHONY: check-patch maybe-check-patch
21217maybe-check-patch:
21218@if patch
21219maybe-check-patch: check-patch
4977bab6 21220
d32ab992 21221check-patch:
f41d6665 21222 @: $(MAKE); $(unstage)
8c90b13a
L
21223 @r=`${PWD_COMMAND}`; export r; \
21224 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21225 $(HOST_EXPORTS) \
215c351a
PB
21226 (cd $(HOST_SUBDIR)/patch && \
21227 $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6 21228
d32ab992 21229@endif patch
4977bab6 21230
d32ab992
PB
21231.PHONY: install-patch maybe-install-patch
21232maybe-install-patch:
21233@if patch
21234maybe-install-patch: install-patch
295f4e42 21235
d32ab992 21236install-patch: installdirs
f41d6665 21237 @: $(MAKE); $(unstage)
295f4e42
NN
21238 @r=`${PWD_COMMAND}`; export r; \
21239 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21240 $(HOST_EXPORTS) \
215c351a 21241 (cd $(HOST_SUBDIR)/patch && \
ace9ac7b 21242 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 21243
d32ab992 21244@endif patch
295f4e42
NN
21245
21246# Other targets (info, dvi, etc.)
21247
d32ab992
PB
21248.PHONY: maybe-info-patch info-patch
21249maybe-info-patch:
21250@if patch
21251maybe-info-patch: info-patch
295f4e42 21252
d32ab992 21253info-patch: \
05750653 21254 configure-patch
f41d6665 21255 @: $(MAKE); $(unstage)
d32ab992 21256 @[ -f ./patch/Makefile ] || exit 0; \
295f4e42
NN
21257 r=`${PWD_COMMAND}`; export r; \
21258 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21259 $(HOST_EXPORTS) \
d32ab992 21260 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
21261 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21262 done; \
d32ab992 21263 echo "Doing info in patch" ; \
215c351a 21264 (cd $(HOST_SUBDIR)/patch && \
295f4e42
NN
21265 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21266 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21267 "RANLIB=$${RANLIB}" \
21268 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21269 info) \
295f4e42
NN
21270 || exit 1
21271
d32ab992 21272@endif patch
295f4e42 21273
d32ab992
PB
21274.PHONY: maybe-dvi-patch dvi-patch
21275maybe-dvi-patch:
21276@if patch
21277maybe-dvi-patch: dvi-patch
295f4e42 21278
d32ab992 21279dvi-patch: \
05750653 21280 configure-patch
f41d6665 21281 @: $(MAKE); $(unstage)
d32ab992 21282 @[ -f ./patch/Makefile ] || exit 0; \
295f4e42
NN
21283 r=`${PWD_COMMAND}`; export r; \
21284 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21285 $(HOST_EXPORTS) \
d32ab992 21286 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
21287 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21288 done; \
d32ab992 21289 echo "Doing dvi in patch" ; \
215c351a 21290 (cd $(HOST_SUBDIR)/patch && \
295f4e42
NN
21291 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21292 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21293 "RANLIB=$${RANLIB}" \
21294 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21295 dvi) \
295f4e42
NN
21296 || exit 1
21297
d32ab992 21298@endif patch
295f4e42 21299
f87a2b2e
MS
21300.PHONY: maybe-html-patch html-patch
21301maybe-html-patch:
21302@if patch
21303maybe-html-patch: html-patch
21304
21305html-patch: \
05750653 21306 configure-patch
f41d6665 21307 @: $(MAKE); $(unstage)
f87a2b2e
MS
21308 @[ -f ./patch/Makefile ] || exit 0; \
21309 r=`${PWD_COMMAND}`; export r; \
21310 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
21311 $(HOST_EXPORTS) \
21312 for flag in $(EXTRA_HOST_FLAGS) ; do \
21313 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21314 done; \
21315 echo "Doing html in patch" ; \
215c351a 21316 (cd $(HOST_SUBDIR)/patch && \
f87a2b2e
MS
21317 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21318 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21319 "RANLIB=$${RANLIB}" \
21320 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21321 html) \
21322 || exit 1
21323
21324@endif patch
21325
d32ab992
PB
21326.PHONY: maybe-TAGS-patch TAGS-patch
21327maybe-TAGS-patch:
21328@if patch
21329maybe-TAGS-patch: TAGS-patch
295f4e42 21330
d32ab992 21331TAGS-patch: \
05750653 21332 configure-patch
f41d6665 21333 @: $(MAKE); $(unstage)
d32ab992 21334 @[ -f ./patch/Makefile ] || exit 0; \
295f4e42
NN
21335 r=`${PWD_COMMAND}`; export r; \
21336 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21337 $(HOST_EXPORTS) \
d32ab992 21338 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
21339 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21340 done; \
d32ab992 21341 echo "Doing TAGS in patch" ; \
215c351a 21342 (cd $(HOST_SUBDIR)/patch && \
295f4e42
NN
21343 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21344 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21345 "RANLIB=$${RANLIB}" \
21346 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21347 TAGS) \
295f4e42
NN
21348 || exit 1
21349
d32ab992 21350@endif patch
295f4e42 21351
d32ab992
PB
21352.PHONY: maybe-install-info-patch install-info-patch
21353maybe-install-info-patch:
21354@if patch
21355maybe-install-info-patch: install-info-patch
295f4e42 21356
d32ab992
PB
21357install-info-patch: \
21358 configure-patch \
05750653 21359 info-patch
f41d6665 21360 @: $(MAKE); $(unstage)
d32ab992 21361 @[ -f ./patch/Makefile ] || exit 0; \
295f4e42
NN
21362 r=`${PWD_COMMAND}`; export r; \
21363 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21364 $(HOST_EXPORTS) \
d32ab992 21365 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
21366 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21367 done; \
d32ab992 21368 echo "Doing install-info in patch" ; \
215c351a 21369 (cd $(HOST_SUBDIR)/patch && \
295f4e42
NN
21370 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21371 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21372 "RANLIB=$${RANLIB}" \
21373 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21374 install-info) \
295f4e42
NN
21375 || exit 1
21376
d32ab992 21377@endif patch
295f4e42 21378
65d6e994
CD
21379.PHONY: maybe-install-html-patch install-html-patch
21380maybe-install-html-patch:
21381@if patch
21382maybe-install-html-patch: install-html-patch
21383
21384install-html-patch: \
21385 configure-patch \
21386 html-patch
21387 @: $(MAKE); $(unstage)
21388 @[ -f ./patch/Makefile ] || exit 0; \
21389 r=`${PWD_COMMAND}`; export r; \
21390 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21391 $(HOST_EXPORTS) \
21392 for flag in $(EXTRA_HOST_FLAGS) ; do \
21393 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21394 done; \
21395 echo "Doing install-html in patch" ; \
21396 (cd $(HOST_SUBDIR)/patch && \
21397 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21398 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21399 "RANLIB=$${RANLIB}" \
21400 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21401 install-html) \
21402 || exit 1
21403
21404@endif patch
21405
d32ab992
PB
21406.PHONY: maybe-installcheck-patch installcheck-patch
21407maybe-installcheck-patch:
21408@if patch
21409maybe-installcheck-patch: installcheck-patch
295f4e42 21410
d32ab992 21411installcheck-patch: \
05750653 21412 configure-patch
f41d6665 21413 @: $(MAKE); $(unstage)
d32ab992 21414 @[ -f ./patch/Makefile ] || exit 0; \
295f4e42
NN
21415 r=`${PWD_COMMAND}`; export r; \
21416 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21417 $(HOST_EXPORTS) \
d32ab992 21418 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
21419 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21420 done; \
d32ab992 21421 echo "Doing installcheck in patch" ; \
215c351a 21422 (cd $(HOST_SUBDIR)/patch && \
295f4e42
NN
21423 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21424 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21425 "RANLIB=$${RANLIB}" \
21426 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21427 installcheck) \
295f4e42
NN
21428 || exit 1
21429
d32ab992 21430@endif patch
295f4e42 21431
d32ab992
PB
21432.PHONY: maybe-mostlyclean-patch mostlyclean-patch
21433maybe-mostlyclean-patch:
21434@if patch
21435maybe-mostlyclean-patch: mostlyclean-patch
295f4e42 21436
05750653 21437mostlyclean-patch:
f41d6665 21438 @: $(MAKE); $(unstage)
d32ab992 21439 @[ -f ./patch/Makefile ] || exit 0; \
295f4e42
NN
21440 r=`${PWD_COMMAND}`; export r; \
21441 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21442 $(HOST_EXPORTS) \
d32ab992 21443 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
21444 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21445 done; \
d32ab992 21446 echo "Doing mostlyclean in patch" ; \
215c351a 21447 (cd $(HOST_SUBDIR)/patch && \
295f4e42
NN
21448 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21449 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21450 "RANLIB=$${RANLIB}" \
21451 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21452 mostlyclean) \
295f4e42
NN
21453 || exit 1
21454
d32ab992 21455@endif patch
295f4e42 21456
d32ab992
PB
21457.PHONY: maybe-clean-patch clean-patch
21458maybe-clean-patch:
21459@if patch
21460maybe-clean-patch: clean-patch
295f4e42 21461
05750653 21462clean-patch:
f41d6665 21463 @: $(MAKE); $(unstage)
d32ab992 21464 @[ -f ./patch/Makefile ] || exit 0; \
295f4e42
NN
21465 r=`${PWD_COMMAND}`; export r; \
21466 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21467 $(HOST_EXPORTS) \
d32ab992 21468 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
21469 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21470 done; \
d32ab992 21471 echo "Doing clean in patch" ; \
215c351a 21472 (cd $(HOST_SUBDIR)/patch && \
295f4e42
NN
21473 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21474 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21475 "RANLIB=$${RANLIB}" \
21476 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21477 clean) \
295f4e42
NN
21478 || exit 1
21479
d32ab992 21480@endif patch
295f4e42 21481
d32ab992
PB
21482.PHONY: maybe-distclean-patch distclean-patch
21483maybe-distclean-patch:
21484@if patch
21485maybe-distclean-patch: distclean-patch
295f4e42 21486
05750653 21487distclean-patch:
f41d6665 21488 @: $(MAKE); $(unstage)
d32ab992 21489 @[ -f ./patch/Makefile ] || exit 0; \
295f4e42
NN
21490 r=`${PWD_COMMAND}`; export r; \
21491 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21492 $(HOST_EXPORTS) \
d32ab992 21493 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
21494 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21495 done; \
d32ab992 21496 echo "Doing distclean in patch" ; \
215c351a 21497 (cd $(HOST_SUBDIR)/patch && \
295f4e42
NN
21498 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21499 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21500 "RANLIB=$${RANLIB}" \
21501 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21502 distclean) \
295f4e42
NN
21503 || exit 1
21504
d32ab992 21505@endif patch
295f4e42 21506
d32ab992
PB
21507.PHONY: maybe-maintainer-clean-patch maintainer-clean-patch
21508maybe-maintainer-clean-patch:
21509@if patch
21510maybe-maintainer-clean-patch: maintainer-clean-patch
295f4e42 21511
05750653 21512maintainer-clean-patch:
f41d6665 21513 @: $(MAKE); $(unstage)
d32ab992 21514 @[ -f ./patch/Makefile ] || exit 0; \
295f4e42
NN
21515 r=`${PWD_COMMAND}`; export r; \
21516 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21517 $(HOST_EXPORTS) \
d32ab992 21518 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
21519 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21520 done; \
d32ab992 21521 echo "Doing maintainer-clean in patch" ; \
215c351a 21522 (cd $(HOST_SUBDIR)/patch && \
295f4e42
NN
21523 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21524 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21525 "RANLIB=$${RANLIB}" \
21526 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21527 maintainer-clean) \
295f4e42 21528 || exit 1
7e2dbcef 21529
d32ab992 21530@endif patch
4977bab6
ZW
21531
21532
25b42232 21533
d32ab992
PB
21534.PHONY: configure-perl maybe-configure-perl
21535maybe-configure-perl:
3ff3adad
PB
21536@if gcc-bootstrap
21537configure-perl: stage_current
21538@endif gcc-bootstrap
d32ab992
PB
21539@if perl
21540maybe-configure-perl: configure-perl
cc11cc9b 21541configure-perl:
f41d6665 21542 @: $(MAKE); $(unstage)
cc11cc9b 21543 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 21544 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
21545 test ! -f $(HOST_SUBDIR)/perl/Makefile || exit 0; \
21546 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/perl ; \
4fc4dd12 21547 $(HOST_EXPORTS) \
25b42232
PB
21548 echo Configuring in $(HOST_SUBDIR)/perl; \
21549 cd "$(HOST_SUBDIR)/perl" || exit 1; \
4977bab6 21550 case $(srcdir) in \
215c351a
PB
21551 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
21552 *) topdir=`echo $(HOST_SUBDIR)/perl/ | \
21553 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 21554 esac; \
215c351a
PB
21555 srcdiroption="--srcdir=$${topdir}/perl"; \
21556 libsrcdir="$$s/perl"; \
4977bab6 21557 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 21558 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 21559 || exit 1
d32ab992 21560@endif perl
4977bab6 21561
25b42232
PB
21562
21563
ce406537
PB
21564
21565
d32ab992
PB
21566.PHONY: all-perl maybe-all-perl
21567maybe-all-perl:
3ff3adad
PB
21568@if gcc-bootstrap
21569all-perl: stage_current
21570@endif gcc-bootstrap
d32ab992 21571@if perl
7e0b5752 21572TARGET-perl=all
d32ab992
PB
21573maybe-all-perl: all-perl
21574all-perl: configure-perl
f41d6665 21575 @: $(MAKE); $(unstage)
8c90b13a
L
21576 @r=`${PWD_COMMAND}`; export r; \
21577 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21578 $(HOST_EXPORTS) \
215c351a
PB
21579 (cd $(HOST_SUBDIR)/perl && \
21580 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-perl))
d32ab992 21581@endif perl
4977bab6 21582
25b42232 21583
ce406537
PB
21584
21585
d32ab992
PB
21586.PHONY: check-perl maybe-check-perl
21587maybe-check-perl:
21588@if perl
21589maybe-check-perl: check-perl
4977bab6 21590
d32ab992 21591check-perl:
f41d6665 21592 @: $(MAKE); $(unstage)
8c90b13a
L
21593 @r=`${PWD_COMMAND}`; export r; \
21594 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21595 $(HOST_EXPORTS) \
215c351a
PB
21596 (cd $(HOST_SUBDIR)/perl && \
21597 $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6 21598
d32ab992 21599@endif perl
4977bab6 21600
d32ab992
PB
21601.PHONY: install-perl maybe-install-perl
21602maybe-install-perl:
21603@if perl
21604maybe-install-perl: install-perl
7e2dbcef 21605
d32ab992 21606install-perl: installdirs
f41d6665 21607 @: $(MAKE); $(unstage)
8c90b13a
L
21608 @r=`${PWD_COMMAND}`; export r; \
21609 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21610 $(HOST_EXPORTS) \
215c351a 21611 (cd $(HOST_SUBDIR)/perl && \
ace9ac7b 21612 $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6 21613
d32ab992 21614@endif perl
4977bab6 21615
295f4e42
NN
21616# Other targets (info, dvi, etc.)
21617
d32ab992
PB
21618.PHONY: maybe-info-perl info-perl
21619maybe-info-perl:
21620@if perl
21621maybe-info-perl: info-perl
295f4e42 21622
d32ab992 21623info-perl: \
05750653 21624 configure-perl
f41d6665 21625 @: $(MAKE); $(unstage)
d32ab992 21626 @[ -f ./perl/Makefile ] || exit 0; \
295f4e42
NN
21627 r=`${PWD_COMMAND}`; export r; \
21628 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21629 $(HOST_EXPORTS) \
d32ab992 21630 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
21631 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21632 done; \
d32ab992 21633 echo "Doing info in perl" ; \
215c351a 21634 (cd $(HOST_SUBDIR)/perl && \
295f4e42
NN
21635 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21636 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21637 "RANLIB=$${RANLIB}" \
21638 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21639 info) \
295f4e42
NN
21640 || exit 1
21641
d32ab992 21642@endif perl
295f4e42 21643
d32ab992
PB
21644.PHONY: maybe-dvi-perl dvi-perl
21645maybe-dvi-perl:
21646@if perl
21647maybe-dvi-perl: dvi-perl
295f4e42 21648
d32ab992 21649dvi-perl: \
05750653 21650 configure-perl
f41d6665 21651 @: $(MAKE); $(unstage)
d32ab992 21652 @[ -f ./perl/Makefile ] || exit 0; \
295f4e42
NN
21653 r=`${PWD_COMMAND}`; export r; \
21654 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21655 $(HOST_EXPORTS) \
d32ab992 21656 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
21657 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21658 done; \
d32ab992 21659 echo "Doing dvi in perl" ; \
215c351a 21660 (cd $(HOST_SUBDIR)/perl && \
295f4e42
NN
21661 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21662 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21663 "RANLIB=$${RANLIB}" \
21664 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21665 dvi) \
295f4e42
NN
21666 || exit 1
21667
d32ab992 21668@endif perl
295f4e42 21669
f87a2b2e
MS
21670.PHONY: maybe-html-perl html-perl
21671maybe-html-perl:
21672@if perl
21673maybe-html-perl: html-perl
21674
21675html-perl: \
05750653 21676 configure-perl
f41d6665 21677 @: $(MAKE); $(unstage)
f87a2b2e
MS
21678 @[ -f ./perl/Makefile ] || exit 0; \
21679 r=`${PWD_COMMAND}`; export r; \
21680 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
21681 $(HOST_EXPORTS) \
21682 for flag in $(EXTRA_HOST_FLAGS) ; do \
21683 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21684 done; \
21685 echo "Doing html in perl" ; \
215c351a 21686 (cd $(HOST_SUBDIR)/perl && \
f87a2b2e
MS
21687 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21688 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21689 "RANLIB=$${RANLIB}" \
21690 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21691 html) \
21692 || exit 1
21693
21694@endif perl
21695
d32ab992
PB
21696.PHONY: maybe-TAGS-perl TAGS-perl
21697maybe-TAGS-perl:
21698@if perl
21699maybe-TAGS-perl: TAGS-perl
295f4e42 21700
d32ab992 21701TAGS-perl: \
05750653 21702 configure-perl
f41d6665 21703 @: $(MAKE); $(unstage)
d32ab992 21704 @[ -f ./perl/Makefile ] || exit 0; \
295f4e42
NN
21705 r=`${PWD_COMMAND}`; export r; \
21706 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21707 $(HOST_EXPORTS) \
d32ab992 21708 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
21709 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21710 done; \
d32ab992 21711 echo "Doing TAGS in perl" ; \
215c351a 21712 (cd $(HOST_SUBDIR)/perl && \
295f4e42
NN
21713 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21714 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21715 "RANLIB=$${RANLIB}" \
21716 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21717 TAGS) \
295f4e42
NN
21718 || exit 1
21719
d32ab992 21720@endif perl
295f4e42 21721
d32ab992
PB
21722.PHONY: maybe-install-info-perl install-info-perl
21723maybe-install-info-perl:
21724@if perl
21725maybe-install-info-perl: install-info-perl
295f4e42 21726
d32ab992
PB
21727install-info-perl: \
21728 configure-perl \
05750653 21729 info-perl
f41d6665 21730 @: $(MAKE); $(unstage)
d32ab992 21731 @[ -f ./perl/Makefile ] || exit 0; \
295f4e42
NN
21732 r=`${PWD_COMMAND}`; export r; \
21733 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21734 $(HOST_EXPORTS) \
d32ab992 21735 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
21736 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21737 done; \
d32ab992 21738 echo "Doing install-info in perl" ; \
215c351a 21739 (cd $(HOST_SUBDIR)/perl && \
295f4e42
NN
21740 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21741 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21742 "RANLIB=$${RANLIB}" \
21743 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21744 install-info) \
295f4e42
NN
21745 || exit 1
21746
d32ab992 21747@endif perl
295f4e42 21748
65d6e994
CD
21749.PHONY: maybe-install-html-perl install-html-perl
21750maybe-install-html-perl:
21751@if perl
21752maybe-install-html-perl: install-html-perl
21753
21754install-html-perl: \
21755 configure-perl \
21756 html-perl
21757 @: $(MAKE); $(unstage)
21758 @[ -f ./perl/Makefile ] || exit 0; \
21759 r=`${PWD_COMMAND}`; export r; \
21760 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21761 $(HOST_EXPORTS) \
21762 for flag in $(EXTRA_HOST_FLAGS) ; do \
21763 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21764 done; \
21765 echo "Doing install-html in perl" ; \
21766 (cd $(HOST_SUBDIR)/perl && \
21767 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21768 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21769 "RANLIB=$${RANLIB}" \
21770 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21771 install-html) \
21772 || exit 1
21773
21774@endif perl
21775
d32ab992
PB
21776.PHONY: maybe-installcheck-perl installcheck-perl
21777maybe-installcheck-perl:
21778@if perl
21779maybe-installcheck-perl: installcheck-perl
295f4e42 21780
d32ab992 21781installcheck-perl: \
05750653 21782 configure-perl
f41d6665 21783 @: $(MAKE); $(unstage)
d32ab992 21784 @[ -f ./perl/Makefile ] || exit 0; \
295f4e42
NN
21785 r=`${PWD_COMMAND}`; export r; \
21786 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21787 $(HOST_EXPORTS) \
d32ab992 21788 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
21789 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21790 done; \
d32ab992 21791 echo "Doing installcheck in perl" ; \
215c351a 21792 (cd $(HOST_SUBDIR)/perl && \
295f4e42
NN
21793 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21794 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21795 "RANLIB=$${RANLIB}" \
21796 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21797 installcheck) \
295f4e42
NN
21798 || exit 1
21799
d32ab992 21800@endif perl
295f4e42 21801
d32ab992
PB
21802.PHONY: maybe-mostlyclean-perl mostlyclean-perl
21803maybe-mostlyclean-perl:
21804@if perl
21805maybe-mostlyclean-perl: mostlyclean-perl
295f4e42 21806
05750653 21807mostlyclean-perl:
f41d6665 21808 @: $(MAKE); $(unstage)
d32ab992 21809 @[ -f ./perl/Makefile ] || exit 0; \
295f4e42
NN
21810 r=`${PWD_COMMAND}`; export r; \
21811 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21812 $(HOST_EXPORTS) \
d32ab992 21813 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
21814 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21815 done; \
d32ab992 21816 echo "Doing mostlyclean in perl" ; \
215c351a 21817 (cd $(HOST_SUBDIR)/perl && \
295f4e42
NN
21818 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21819 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21820 "RANLIB=$${RANLIB}" \
21821 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21822 mostlyclean) \
295f4e42
NN
21823 || exit 1
21824
d32ab992 21825@endif perl
295f4e42 21826
d32ab992
PB
21827.PHONY: maybe-clean-perl clean-perl
21828maybe-clean-perl:
21829@if perl
21830maybe-clean-perl: clean-perl
295f4e42 21831
05750653 21832clean-perl:
f41d6665 21833 @: $(MAKE); $(unstage)
d32ab992 21834 @[ -f ./perl/Makefile ] || exit 0; \
295f4e42
NN
21835 r=`${PWD_COMMAND}`; export r; \
21836 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21837 $(HOST_EXPORTS) \
d32ab992 21838 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
21839 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21840 done; \
d32ab992 21841 echo "Doing clean in perl" ; \
215c351a 21842 (cd $(HOST_SUBDIR)/perl && \
295f4e42
NN
21843 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21844 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21845 "RANLIB=$${RANLIB}" \
21846 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21847 clean) \
295f4e42
NN
21848 || exit 1
21849
d32ab992 21850@endif perl
295f4e42 21851
d32ab992
PB
21852.PHONY: maybe-distclean-perl distclean-perl
21853maybe-distclean-perl:
21854@if perl
21855maybe-distclean-perl: distclean-perl
295f4e42 21856
05750653 21857distclean-perl:
f41d6665 21858 @: $(MAKE); $(unstage)
d32ab992 21859 @[ -f ./perl/Makefile ] || exit 0; \
295f4e42
NN
21860 r=`${PWD_COMMAND}`; export r; \
21861 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21862 $(HOST_EXPORTS) \
d32ab992 21863 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
21864 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21865 done; \
d32ab992 21866 echo "Doing distclean in perl" ; \
215c351a 21867 (cd $(HOST_SUBDIR)/perl && \
295f4e42
NN
21868 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21869 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21870 "RANLIB=$${RANLIB}" \
21871 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21872 distclean) \
295f4e42
NN
21873 || exit 1
21874
d32ab992 21875@endif perl
295f4e42 21876
d32ab992
PB
21877.PHONY: maybe-maintainer-clean-perl maintainer-clean-perl
21878maybe-maintainer-clean-perl:
21879@if perl
21880maybe-maintainer-clean-perl: maintainer-clean-perl
295f4e42 21881
05750653 21882maintainer-clean-perl:
f41d6665 21883 @: $(MAKE); $(unstage)
d32ab992 21884 @[ -f ./perl/Makefile ] || exit 0; \
295f4e42
NN
21885 r=`${PWD_COMMAND}`; export r; \
21886 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21887 $(HOST_EXPORTS) \
d32ab992 21888 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
21889 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21890 done; \
d32ab992 21891 echo "Doing maintainer-clean in perl" ; \
215c351a 21892 (cd $(HOST_SUBDIR)/perl && \
295f4e42
NN
21893 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21894 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21895 "RANLIB=$${RANLIB}" \
21896 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21897 maintainer-clean) \
295f4e42
NN
21898 || exit 1
21899
d32ab992 21900@endif perl
295f4e42
NN
21901
21902
25b42232 21903
d32ab992
PB
21904.PHONY: configure-prms maybe-configure-prms
21905maybe-configure-prms:
3ff3adad
PB
21906@if gcc-bootstrap
21907configure-prms: stage_current
21908@endif gcc-bootstrap
d32ab992
PB
21909@if prms
21910maybe-configure-prms: configure-prms
cc11cc9b 21911configure-prms:
f41d6665 21912 @: $(MAKE); $(unstage)
cc11cc9b 21913 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 21914 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
21915 test ! -f $(HOST_SUBDIR)/prms/Makefile || exit 0; \
21916 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/prms ; \
4fc4dd12 21917 $(HOST_EXPORTS) \
25b42232
PB
21918 echo Configuring in $(HOST_SUBDIR)/prms; \
21919 cd "$(HOST_SUBDIR)/prms" || exit 1; \
4977bab6 21920 case $(srcdir) in \
215c351a
PB
21921 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
21922 *) topdir=`echo $(HOST_SUBDIR)/prms/ | \
21923 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 21924 esac; \
215c351a
PB
21925 srcdiroption="--srcdir=$${topdir}/prms"; \
21926 libsrcdir="$$s/prms"; \
4977bab6 21927 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 21928 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 21929 || exit 1
d32ab992 21930@endif prms
4977bab6 21931
25b42232
PB
21932
21933
ce406537
PB
21934
21935
d32ab992
PB
21936.PHONY: all-prms maybe-all-prms
21937maybe-all-prms:
3ff3adad
PB
21938@if gcc-bootstrap
21939all-prms: stage_current
21940@endif gcc-bootstrap
d32ab992 21941@if prms
7e0b5752 21942TARGET-prms=all
d32ab992
PB
21943maybe-all-prms: all-prms
21944all-prms: configure-prms
f41d6665 21945 @: $(MAKE); $(unstage)
8c90b13a
L
21946 @r=`${PWD_COMMAND}`; export r; \
21947 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21948 $(HOST_EXPORTS) \
215c351a
PB
21949 (cd $(HOST_SUBDIR)/prms && \
21950 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-prms))
d32ab992 21951@endif prms
4977bab6 21952
25b42232 21953
ce406537
PB
21954
21955
d32ab992
PB
21956.PHONY: check-prms maybe-check-prms
21957maybe-check-prms:
21958@if prms
21959maybe-check-prms: check-prms
4977bab6 21960
d32ab992 21961check-prms:
f41d6665 21962 @: $(MAKE); $(unstage)
8c90b13a
L
21963 @r=`${PWD_COMMAND}`; export r; \
21964 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21965 $(HOST_EXPORTS) \
215c351a
PB
21966 (cd $(HOST_SUBDIR)/prms && \
21967 $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6 21968
d32ab992 21969@endif prms
4977bab6 21970
d32ab992
PB
21971.PHONY: install-prms maybe-install-prms
21972maybe-install-prms:
21973@if prms
21974maybe-install-prms: install-prms
7e2dbcef 21975
d32ab992 21976install-prms: installdirs
f41d6665 21977 @: $(MAKE); $(unstage)
8c90b13a
L
21978 @r=`${PWD_COMMAND}`; export r; \
21979 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21980 $(HOST_EXPORTS) \
215c351a 21981 (cd $(HOST_SUBDIR)/prms && \
ace9ac7b 21982 $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6 21983
d32ab992 21984@endif prms
4977bab6 21985
295f4e42
NN
21986# Other targets (info, dvi, etc.)
21987
d32ab992
PB
21988.PHONY: maybe-info-prms info-prms
21989maybe-info-prms:
21990@if prms
21991maybe-info-prms: info-prms
295f4e42 21992
d32ab992 21993info-prms: \
05750653 21994 configure-prms
f41d6665 21995 @: $(MAKE); $(unstage)
d32ab992 21996 @[ -f ./prms/Makefile ] || exit 0; \
8c90b13a
L
21997 r=`${PWD_COMMAND}`; export r; \
21998 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21999 $(HOST_EXPORTS) \
d32ab992 22000 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22001 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22002 done; \
d32ab992 22003 echo "Doing info in prms" ; \
215c351a 22004 (cd $(HOST_SUBDIR)/prms && \
295f4e42
NN
22005 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22006 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22007 "RANLIB=$${RANLIB}" \
22008 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22009 info) \
4977bab6
ZW
22010 || exit 1
22011
d32ab992 22012@endif prms
295f4e42 22013
d32ab992
PB
22014.PHONY: maybe-dvi-prms dvi-prms
22015maybe-dvi-prms:
22016@if prms
22017maybe-dvi-prms: dvi-prms
295f4e42 22018
d32ab992 22019dvi-prms: \
05750653 22020 configure-prms
f41d6665 22021 @: $(MAKE); $(unstage)
d32ab992 22022 @[ -f ./prms/Makefile ] || exit 0; \
295f4e42 22023 r=`${PWD_COMMAND}`; export r; \
8c90b13a 22024 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22025 $(HOST_EXPORTS) \
d32ab992 22026 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22027 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22028 done; \
d32ab992 22029 echo "Doing dvi in prms" ; \
215c351a 22030 (cd $(HOST_SUBDIR)/prms && \
295f4e42
NN
22031 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22032 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22033 "RANLIB=$${RANLIB}" \
22034 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22035 dvi) \
295f4e42 22036 || exit 1
4977bab6 22037
d32ab992 22038@endif prms
4977bab6 22039
f87a2b2e
MS
22040.PHONY: maybe-html-prms html-prms
22041maybe-html-prms:
22042@if prms
22043maybe-html-prms: html-prms
22044
22045html-prms: \
05750653 22046 configure-prms
f41d6665 22047 @: $(MAKE); $(unstage)
f87a2b2e
MS
22048 @[ -f ./prms/Makefile ] || exit 0; \
22049 r=`${PWD_COMMAND}`; export r; \
22050 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
22051 $(HOST_EXPORTS) \
22052 for flag in $(EXTRA_HOST_FLAGS) ; do \
22053 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22054 done; \
22055 echo "Doing html in prms" ; \
215c351a 22056 (cd $(HOST_SUBDIR)/prms && \
f87a2b2e
MS
22057 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22058 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22059 "RANLIB=$${RANLIB}" \
22060 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22061 html) \
22062 || exit 1
22063
22064@endif prms
22065
d32ab992
PB
22066.PHONY: maybe-TAGS-prms TAGS-prms
22067maybe-TAGS-prms:
22068@if prms
22069maybe-TAGS-prms: TAGS-prms
295f4e42 22070
d32ab992 22071TAGS-prms: \
05750653 22072 configure-prms
f41d6665 22073 @: $(MAKE); $(unstage)
d32ab992 22074 @[ -f ./prms/Makefile ] || exit 0; \
295f4e42 22075 r=`${PWD_COMMAND}`; export r; \
8c90b13a 22076 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22077 $(HOST_EXPORTS) \
d32ab992 22078 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22079 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22080 done; \
d32ab992 22081 echo "Doing TAGS in prms" ; \
215c351a 22082 (cd $(HOST_SUBDIR)/prms && \
295f4e42
NN
22083 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22084 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22085 "RANLIB=$${RANLIB}" \
22086 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22087 TAGS) \
295f4e42 22088 || exit 1
4977bab6 22089
d32ab992 22090@endif prms
4977bab6 22091
d32ab992
PB
22092.PHONY: maybe-install-info-prms install-info-prms
22093maybe-install-info-prms:
22094@if prms
22095maybe-install-info-prms: install-info-prms
7e2dbcef 22096
d32ab992
PB
22097install-info-prms: \
22098 configure-prms \
05750653 22099 info-prms
f41d6665 22100 @: $(MAKE); $(unstage)
d32ab992 22101 @[ -f ./prms/Makefile ] || exit 0; \
295f4e42
NN
22102 r=`${PWD_COMMAND}`; export r; \
22103 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22104 $(HOST_EXPORTS) \
d32ab992 22105 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22106 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22107 done; \
d32ab992 22108 echo "Doing install-info in prms" ; \
215c351a 22109 (cd $(HOST_SUBDIR)/prms && \
295f4e42
NN
22110 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22111 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22112 "RANLIB=$${RANLIB}" \
22113 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22114 install-info) \
295f4e42
NN
22115 || exit 1
22116
d32ab992 22117@endif prms
295f4e42 22118
65d6e994
CD
22119.PHONY: maybe-install-html-prms install-html-prms
22120maybe-install-html-prms:
22121@if prms
22122maybe-install-html-prms: install-html-prms
22123
22124install-html-prms: \
22125 configure-prms \
22126 html-prms
22127 @: $(MAKE); $(unstage)
22128 @[ -f ./prms/Makefile ] || exit 0; \
22129 r=`${PWD_COMMAND}`; export r; \
22130 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22131 $(HOST_EXPORTS) \
22132 for flag in $(EXTRA_HOST_FLAGS) ; do \
22133 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22134 done; \
22135 echo "Doing install-html in prms" ; \
22136 (cd $(HOST_SUBDIR)/prms && \
22137 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22138 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22139 "RANLIB=$${RANLIB}" \
22140 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22141 install-html) \
22142 || exit 1
22143
22144@endif prms
22145
d32ab992
PB
22146.PHONY: maybe-installcheck-prms installcheck-prms
22147maybe-installcheck-prms:
22148@if prms
22149maybe-installcheck-prms: installcheck-prms
295f4e42 22150
d32ab992 22151installcheck-prms: \
05750653 22152 configure-prms
f41d6665 22153 @: $(MAKE); $(unstage)
d32ab992 22154 @[ -f ./prms/Makefile ] || exit 0; \
295f4e42
NN
22155 r=`${PWD_COMMAND}`; export r; \
22156 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22157 $(HOST_EXPORTS) \
d32ab992 22158 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22159 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22160 done; \
d32ab992 22161 echo "Doing installcheck in prms" ; \
215c351a 22162 (cd $(HOST_SUBDIR)/prms && \
295f4e42
NN
22163 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22164 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22165 "RANLIB=$${RANLIB}" \
22166 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22167 installcheck) \
295f4e42
NN
22168 || exit 1
22169
d32ab992 22170@endif prms
295f4e42 22171
d32ab992
PB
22172.PHONY: maybe-mostlyclean-prms mostlyclean-prms
22173maybe-mostlyclean-prms:
22174@if prms
22175maybe-mostlyclean-prms: mostlyclean-prms
295f4e42 22176
05750653 22177mostlyclean-prms:
f41d6665 22178 @: $(MAKE); $(unstage)
d32ab992 22179 @[ -f ./prms/Makefile ] || exit 0; \
295f4e42
NN
22180 r=`${PWD_COMMAND}`; export r; \
22181 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22182 $(HOST_EXPORTS) \
d32ab992 22183 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22184 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22185 done; \
d32ab992 22186 echo "Doing mostlyclean in prms" ; \
215c351a 22187 (cd $(HOST_SUBDIR)/prms && \
295f4e42
NN
22188 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22189 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22190 "RANLIB=$${RANLIB}" \
22191 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22192 mostlyclean) \
295f4e42
NN
22193 || exit 1
22194
d32ab992 22195@endif prms
295f4e42 22196
d32ab992
PB
22197.PHONY: maybe-clean-prms clean-prms
22198maybe-clean-prms:
22199@if prms
22200maybe-clean-prms: clean-prms
295f4e42 22201
05750653 22202clean-prms:
f41d6665 22203 @: $(MAKE); $(unstage)
d32ab992 22204 @[ -f ./prms/Makefile ] || exit 0; \
295f4e42
NN
22205 r=`${PWD_COMMAND}`; export r; \
22206 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22207 $(HOST_EXPORTS) \
d32ab992 22208 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22209 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22210 done; \
d32ab992 22211 echo "Doing clean in prms" ; \
215c351a 22212 (cd $(HOST_SUBDIR)/prms && \
295f4e42
NN
22213 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22214 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22215 "RANLIB=$${RANLIB}" \
22216 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22217 clean) \
295f4e42
NN
22218 || exit 1
22219
d32ab992 22220@endif prms
295f4e42 22221
d32ab992
PB
22222.PHONY: maybe-distclean-prms distclean-prms
22223maybe-distclean-prms:
22224@if prms
22225maybe-distclean-prms: distclean-prms
295f4e42 22226
05750653 22227distclean-prms:
f41d6665 22228 @: $(MAKE); $(unstage)
d32ab992 22229 @[ -f ./prms/Makefile ] || exit 0; \
295f4e42
NN
22230 r=`${PWD_COMMAND}`; export r; \
22231 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22232 $(HOST_EXPORTS) \
d32ab992 22233 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22234 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22235 done; \
d32ab992 22236 echo "Doing distclean in prms" ; \
215c351a 22237 (cd $(HOST_SUBDIR)/prms && \
295f4e42
NN
22238 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22239 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22240 "RANLIB=$${RANLIB}" \
22241 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22242 distclean) \
295f4e42
NN
22243 || exit 1
22244
d32ab992 22245@endif prms
295f4e42 22246
d32ab992
PB
22247.PHONY: maybe-maintainer-clean-prms maintainer-clean-prms
22248maybe-maintainer-clean-prms:
22249@if prms
22250maybe-maintainer-clean-prms: maintainer-clean-prms
295f4e42 22251
05750653 22252maintainer-clean-prms:
f41d6665 22253 @: $(MAKE); $(unstage)
d32ab992 22254 @[ -f ./prms/Makefile ] || exit 0; \
295f4e42 22255 r=`${PWD_COMMAND}`; export r; \
8c90b13a 22256 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22257 $(HOST_EXPORTS) \
d32ab992 22258 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22259 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22260 done; \
d32ab992 22261 echo "Doing maintainer-clean in prms" ; \
215c351a 22262 (cd $(HOST_SUBDIR)/prms && \
295f4e42
NN
22263 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22264 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22265 "RANLIB=$${RANLIB}" \
22266 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22267 maintainer-clean) \
295f4e42 22268 || exit 1
4977bab6 22269
d32ab992 22270@endif prms
4977bab6 22271
295f4e42 22272
25b42232 22273
d32ab992
PB
22274.PHONY: configure-rcs maybe-configure-rcs
22275maybe-configure-rcs:
3ff3adad
PB
22276@if gcc-bootstrap
22277configure-rcs: stage_current
22278@endif gcc-bootstrap
d32ab992
PB
22279@if rcs
22280maybe-configure-rcs: configure-rcs
cc11cc9b 22281configure-rcs:
f41d6665 22282 @: $(MAKE); $(unstage)
cc11cc9b 22283 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 22284 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
22285 test ! -f $(HOST_SUBDIR)/rcs/Makefile || exit 0; \
22286 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/rcs ; \
4fc4dd12 22287 $(HOST_EXPORTS) \
25b42232
PB
22288 echo Configuring in $(HOST_SUBDIR)/rcs; \
22289 cd "$(HOST_SUBDIR)/rcs" || exit 1; \
4977bab6 22290 case $(srcdir) in \
215c351a
PB
22291 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
22292 *) topdir=`echo $(HOST_SUBDIR)/rcs/ | \
22293 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 22294 esac; \
215c351a
PB
22295 srcdiroption="--srcdir=$${topdir}/rcs"; \
22296 libsrcdir="$$s/rcs"; \
4977bab6 22297 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 22298 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 22299 || exit 1
d32ab992 22300@endif rcs
4977bab6 22301
25b42232
PB
22302
22303
ce406537
PB
22304
22305
d32ab992
PB
22306.PHONY: all-rcs maybe-all-rcs
22307maybe-all-rcs:
3ff3adad
PB
22308@if gcc-bootstrap
22309all-rcs: stage_current
22310@endif gcc-bootstrap
d32ab992 22311@if rcs
7e0b5752 22312TARGET-rcs=all
d32ab992
PB
22313maybe-all-rcs: all-rcs
22314all-rcs: configure-rcs
f41d6665 22315 @: $(MAKE); $(unstage)
8c90b13a
L
22316 @r=`${PWD_COMMAND}`; export r; \
22317 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22318 $(HOST_EXPORTS) \
215c351a
PB
22319 (cd $(HOST_SUBDIR)/rcs && \
22320 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-rcs))
d32ab992 22321@endif rcs
4977bab6 22322
25b42232 22323
ce406537
PB
22324
22325
d32ab992
PB
22326.PHONY: check-rcs maybe-check-rcs
22327maybe-check-rcs:
22328@if rcs
22329maybe-check-rcs: check-rcs
4977bab6 22330
d32ab992 22331check-rcs:
f41d6665 22332 @: $(MAKE); $(unstage)
8c90b13a
L
22333 @r=`${PWD_COMMAND}`; export r; \
22334 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22335 $(HOST_EXPORTS) \
215c351a
PB
22336 (cd $(HOST_SUBDIR)/rcs && \
22337 $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6 22338
d32ab992 22339@endif rcs
4977bab6 22340
d32ab992
PB
22341.PHONY: install-rcs maybe-install-rcs
22342maybe-install-rcs:
22343@if rcs
22344maybe-install-rcs: install-rcs
295f4e42 22345
d32ab992 22346install-rcs: installdirs
f41d6665 22347 @: $(MAKE); $(unstage)
295f4e42
NN
22348 @r=`${PWD_COMMAND}`; export r; \
22349 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22350 $(HOST_EXPORTS) \
215c351a 22351 (cd $(HOST_SUBDIR)/rcs && \
ace9ac7b 22352 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 22353
d32ab992 22354@endif rcs
295f4e42
NN
22355
22356# Other targets (info, dvi, etc.)
22357
d32ab992
PB
22358.PHONY: maybe-info-rcs info-rcs
22359maybe-info-rcs:
22360@if rcs
22361maybe-info-rcs: info-rcs
295f4e42 22362
d32ab992 22363info-rcs: \
05750653 22364 configure-rcs
f41d6665 22365 @: $(MAKE); $(unstage)
d32ab992 22366 @[ -f ./rcs/Makefile ] || exit 0; \
295f4e42
NN
22367 r=`${PWD_COMMAND}`; export r; \
22368 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22369 $(HOST_EXPORTS) \
d32ab992 22370 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22371 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22372 done; \
d32ab992 22373 echo "Doing info in rcs" ; \
215c351a 22374 (cd $(HOST_SUBDIR)/rcs && \
295f4e42
NN
22375 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22376 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22377 "RANLIB=$${RANLIB}" \
22378 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22379 info) \
295f4e42
NN
22380 || exit 1
22381
d32ab992 22382@endif rcs
295f4e42 22383
d32ab992
PB
22384.PHONY: maybe-dvi-rcs dvi-rcs
22385maybe-dvi-rcs:
22386@if rcs
22387maybe-dvi-rcs: dvi-rcs
295f4e42 22388
d32ab992 22389dvi-rcs: \
05750653 22390 configure-rcs
f41d6665 22391 @: $(MAKE); $(unstage)
d32ab992 22392 @[ -f ./rcs/Makefile ] || exit 0; \
295f4e42
NN
22393 r=`${PWD_COMMAND}`; export r; \
22394 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22395 $(HOST_EXPORTS) \
d32ab992 22396 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22397 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22398 done; \
d32ab992 22399 echo "Doing dvi in rcs" ; \
215c351a 22400 (cd $(HOST_SUBDIR)/rcs && \
295f4e42
NN
22401 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22402 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22403 "RANLIB=$${RANLIB}" \
22404 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22405 dvi) \
295f4e42
NN
22406 || exit 1
22407
d32ab992 22408@endif rcs
295f4e42 22409
f87a2b2e
MS
22410.PHONY: maybe-html-rcs html-rcs
22411maybe-html-rcs:
22412@if rcs
22413maybe-html-rcs: html-rcs
22414
22415html-rcs: \
05750653 22416 configure-rcs
f41d6665 22417 @: $(MAKE); $(unstage)
f87a2b2e
MS
22418 @[ -f ./rcs/Makefile ] || exit 0; \
22419 r=`${PWD_COMMAND}`; export r; \
22420 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
22421 $(HOST_EXPORTS) \
22422 for flag in $(EXTRA_HOST_FLAGS) ; do \
22423 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22424 done; \
22425 echo "Doing html in rcs" ; \
215c351a 22426 (cd $(HOST_SUBDIR)/rcs && \
f87a2b2e
MS
22427 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22428 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22429 "RANLIB=$${RANLIB}" \
22430 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22431 html) \
22432 || exit 1
22433
22434@endif rcs
22435
d32ab992
PB
22436.PHONY: maybe-TAGS-rcs TAGS-rcs
22437maybe-TAGS-rcs:
22438@if rcs
22439maybe-TAGS-rcs: TAGS-rcs
295f4e42 22440
d32ab992 22441TAGS-rcs: \
05750653 22442 configure-rcs
f41d6665 22443 @: $(MAKE); $(unstage)
d32ab992 22444 @[ -f ./rcs/Makefile ] || exit 0; \
295f4e42
NN
22445 r=`${PWD_COMMAND}`; export r; \
22446 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22447 $(HOST_EXPORTS) \
d32ab992 22448 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22449 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22450 done; \
d32ab992 22451 echo "Doing TAGS in rcs" ; \
215c351a 22452 (cd $(HOST_SUBDIR)/rcs && \
295f4e42
NN
22453 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22454 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22455 "RANLIB=$${RANLIB}" \
22456 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22457 TAGS) \
295f4e42
NN
22458 || exit 1
22459
d32ab992 22460@endif rcs
295f4e42 22461
d32ab992
PB
22462.PHONY: maybe-install-info-rcs install-info-rcs
22463maybe-install-info-rcs:
22464@if rcs
22465maybe-install-info-rcs: install-info-rcs
295f4e42 22466
d32ab992
PB
22467install-info-rcs: \
22468 configure-rcs \
05750653 22469 info-rcs
f41d6665 22470 @: $(MAKE); $(unstage)
d32ab992 22471 @[ -f ./rcs/Makefile ] || exit 0; \
295f4e42
NN
22472 r=`${PWD_COMMAND}`; export r; \
22473 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22474 $(HOST_EXPORTS) \
d32ab992 22475 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22476 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22477 done; \
d32ab992 22478 echo "Doing install-info in rcs" ; \
215c351a 22479 (cd $(HOST_SUBDIR)/rcs && \
295f4e42
NN
22480 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22481 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22482 "RANLIB=$${RANLIB}" \
22483 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22484 install-info) \
295f4e42
NN
22485 || exit 1
22486
d32ab992 22487@endif rcs
295f4e42 22488
65d6e994
CD
22489.PHONY: maybe-install-html-rcs install-html-rcs
22490maybe-install-html-rcs:
22491@if rcs
22492maybe-install-html-rcs: install-html-rcs
22493
22494install-html-rcs: \
22495 configure-rcs \
22496 html-rcs
22497 @: $(MAKE); $(unstage)
22498 @[ -f ./rcs/Makefile ] || exit 0; \
22499 r=`${PWD_COMMAND}`; export r; \
22500 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22501 $(HOST_EXPORTS) \
22502 for flag in $(EXTRA_HOST_FLAGS) ; do \
22503 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22504 done; \
22505 echo "Doing install-html in rcs" ; \
22506 (cd $(HOST_SUBDIR)/rcs && \
22507 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22508 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22509 "RANLIB=$${RANLIB}" \
22510 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22511 install-html) \
22512 || exit 1
22513
22514@endif rcs
22515
d32ab992
PB
22516.PHONY: maybe-installcheck-rcs installcheck-rcs
22517maybe-installcheck-rcs:
22518@if rcs
22519maybe-installcheck-rcs: installcheck-rcs
295f4e42 22520
d32ab992 22521installcheck-rcs: \
05750653 22522 configure-rcs
f41d6665 22523 @: $(MAKE); $(unstage)
d32ab992 22524 @[ -f ./rcs/Makefile ] || exit 0; \
295f4e42
NN
22525 r=`${PWD_COMMAND}`; export r; \
22526 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22527 $(HOST_EXPORTS) \
d32ab992 22528 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22529 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22530 done; \
d32ab992 22531 echo "Doing installcheck in rcs" ; \
215c351a 22532 (cd $(HOST_SUBDIR)/rcs && \
295f4e42
NN
22533 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22534 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22535 "RANLIB=$${RANLIB}" \
22536 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22537 installcheck) \
295f4e42
NN
22538 || exit 1
22539
d32ab992 22540@endif rcs
295f4e42 22541
d32ab992
PB
22542.PHONY: maybe-mostlyclean-rcs mostlyclean-rcs
22543maybe-mostlyclean-rcs:
22544@if rcs
22545maybe-mostlyclean-rcs: mostlyclean-rcs
295f4e42 22546
05750653 22547mostlyclean-rcs:
f41d6665 22548 @: $(MAKE); $(unstage)
d32ab992 22549 @[ -f ./rcs/Makefile ] || exit 0; \
295f4e42
NN
22550 r=`${PWD_COMMAND}`; export r; \
22551 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22552 $(HOST_EXPORTS) \
d32ab992 22553 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22554 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22555 done; \
d32ab992 22556 echo "Doing mostlyclean in rcs" ; \
215c351a 22557 (cd $(HOST_SUBDIR)/rcs && \
295f4e42
NN
22558 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22559 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22560 "RANLIB=$${RANLIB}" \
22561 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22562 mostlyclean) \
295f4e42
NN
22563 || exit 1
22564
d32ab992 22565@endif rcs
295f4e42 22566
d32ab992
PB
22567.PHONY: maybe-clean-rcs clean-rcs
22568maybe-clean-rcs:
22569@if rcs
22570maybe-clean-rcs: clean-rcs
295f4e42 22571
05750653 22572clean-rcs:
f41d6665 22573 @: $(MAKE); $(unstage)
d32ab992 22574 @[ -f ./rcs/Makefile ] || exit 0; \
295f4e42
NN
22575 r=`${PWD_COMMAND}`; export r; \
22576 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22577 $(HOST_EXPORTS) \
d32ab992 22578 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22579 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22580 done; \
d32ab992 22581 echo "Doing clean in rcs" ; \
215c351a 22582 (cd $(HOST_SUBDIR)/rcs && \
295f4e42
NN
22583 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22584 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22585 "RANLIB=$${RANLIB}" \
22586 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22587 clean) \
295f4e42
NN
22588 || exit 1
22589
d32ab992 22590@endif rcs
295f4e42 22591
d32ab992
PB
22592.PHONY: maybe-distclean-rcs distclean-rcs
22593maybe-distclean-rcs:
22594@if rcs
22595maybe-distclean-rcs: distclean-rcs
295f4e42 22596
05750653 22597distclean-rcs:
f41d6665 22598 @: $(MAKE); $(unstage)
d32ab992 22599 @[ -f ./rcs/Makefile ] || exit 0; \
295f4e42
NN
22600 r=`${PWD_COMMAND}`; export r; \
22601 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22602 $(HOST_EXPORTS) \
d32ab992 22603 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22604 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22605 done; \
d32ab992 22606 echo "Doing distclean in rcs" ; \
215c351a 22607 (cd $(HOST_SUBDIR)/rcs && \
295f4e42
NN
22608 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22609 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22610 "RANLIB=$${RANLIB}" \
22611 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22612 distclean) \
295f4e42
NN
22613 || exit 1
22614
d32ab992 22615@endif rcs
295f4e42 22616
d32ab992
PB
22617.PHONY: maybe-maintainer-clean-rcs maintainer-clean-rcs
22618maybe-maintainer-clean-rcs:
22619@if rcs
22620maybe-maintainer-clean-rcs: maintainer-clean-rcs
295f4e42 22621
05750653 22622maintainer-clean-rcs:
f41d6665 22623 @: $(MAKE); $(unstage)
d32ab992 22624 @[ -f ./rcs/Makefile ] || exit 0; \
295f4e42
NN
22625 r=`${PWD_COMMAND}`; export r; \
22626 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22627 $(HOST_EXPORTS) \
d32ab992 22628 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22629 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22630 done; \
d32ab992 22631 echo "Doing maintainer-clean in rcs" ; \
215c351a 22632 (cd $(HOST_SUBDIR)/rcs && \
295f4e42
NN
22633 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22634 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22635 "RANLIB=$${RANLIB}" \
22636 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22637 maintainer-clean) \
295f4e42 22638 || exit 1
7e2dbcef 22639
d32ab992 22640@endif rcs
4977bab6
ZW
22641
22642
25b42232 22643
d32ab992
PB
22644.PHONY: configure-readline maybe-configure-readline
22645maybe-configure-readline:
3ff3adad
PB
22646@if gcc-bootstrap
22647configure-readline: stage_current
22648@endif gcc-bootstrap
d32ab992
PB
22649@if readline
22650maybe-configure-readline: configure-readline
cc11cc9b 22651configure-readline:
f41d6665 22652 @: $(MAKE); $(unstage)
cc11cc9b 22653 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 22654 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
22655 test ! -f $(HOST_SUBDIR)/readline/Makefile || exit 0; \
22656 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/readline ; \
4fc4dd12 22657 $(HOST_EXPORTS) \
25b42232
PB
22658 echo Configuring in $(HOST_SUBDIR)/readline; \
22659 cd "$(HOST_SUBDIR)/readline" || exit 1; \
4977bab6 22660 case $(srcdir) in \
215c351a
PB
22661 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
22662 *) topdir=`echo $(HOST_SUBDIR)/readline/ | \
22663 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 22664 esac; \
215c351a
PB
22665 srcdiroption="--srcdir=$${topdir}/readline"; \
22666 libsrcdir="$$s/readline"; \
4977bab6 22667 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 22668 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 22669 || exit 1
d32ab992 22670@endif readline
4977bab6 22671
25b42232
PB
22672
22673
ce406537
PB
22674
22675
d32ab992
PB
22676.PHONY: all-readline maybe-all-readline
22677maybe-all-readline:
3ff3adad
PB
22678@if gcc-bootstrap
22679all-readline: stage_current
22680@endif gcc-bootstrap
d32ab992 22681@if readline
7e0b5752 22682TARGET-readline=all
d32ab992
PB
22683maybe-all-readline: all-readline
22684all-readline: configure-readline
f41d6665 22685 @: $(MAKE); $(unstage)
8c90b13a
L
22686 @r=`${PWD_COMMAND}`; export r; \
22687 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22688 $(HOST_EXPORTS) \
215c351a
PB
22689 (cd $(HOST_SUBDIR)/readline && \
22690 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-readline))
d32ab992 22691@endif readline
4977bab6 22692
25b42232 22693
ce406537
PB
22694
22695
d32ab992
PB
22696.PHONY: check-readline maybe-check-readline
22697maybe-check-readline:
22698@if readline
22699maybe-check-readline: check-readline
4977bab6 22700
d32ab992 22701check-readline:
f41d6665 22702 @: $(MAKE); $(unstage)
d32ab992
PB
22703 @r=`${PWD_COMMAND}`; export r; \
22704 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d32ab992 22705 $(HOST_EXPORTS) \
215c351a
PB
22706 (cd $(HOST_SUBDIR)/readline && \
22707 $(MAKE) $(FLAGS_TO_PASS) check)
295f4e42 22708
d32ab992 22709@endif readline
295f4e42 22710
d32ab992
PB
22711.PHONY: install-readline maybe-install-readline
22712maybe-install-readline:
22713@if readline
22714maybe-install-readline: install-readline
295f4e42 22715
d32ab992 22716install-readline: installdirs
f41d6665 22717 @: $(MAKE); $(unstage)
d32ab992
PB
22718 @r=`${PWD_COMMAND}`; export r; \
22719 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d32ab992 22720 $(HOST_EXPORTS) \
215c351a 22721 (cd $(HOST_SUBDIR)/readline && \
ace9ac7b 22722 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 22723
d32ab992 22724@endif readline
295f4e42
NN
22725
22726# Other targets (info, dvi, etc.)
22727
d32ab992
PB
22728.PHONY: maybe-info-readline info-readline
22729maybe-info-readline:
22730@if readline
22731maybe-info-readline: info-readline
295f4e42 22732
d32ab992 22733info-readline: \
05750653 22734 configure-readline
f41d6665 22735 @: $(MAKE); $(unstage)
d32ab992 22736 @[ -f ./readline/Makefile ] || exit 0; \
295f4e42 22737 r=`${PWD_COMMAND}`; export r; \
8c90b13a 22738 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22739 $(HOST_EXPORTS) \
d32ab992 22740 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22741 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22742 done; \
d32ab992 22743 echo "Doing info in readline" ; \
215c351a 22744 (cd $(HOST_SUBDIR)/readline && \
295f4e42
NN
22745 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22746 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22747 "RANLIB=$${RANLIB}" \
22748 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22749 info) \
295f4e42 22750 || exit 1
4977bab6 22751
d32ab992 22752@endif readline
4977bab6 22753
d32ab992
PB
22754.PHONY: maybe-dvi-readline dvi-readline
22755maybe-dvi-readline:
22756@if readline
22757maybe-dvi-readline: dvi-readline
7e2dbcef 22758
d32ab992 22759dvi-readline: \
05750653 22760 configure-readline
f41d6665 22761 @: $(MAKE); $(unstage)
d32ab992 22762 @[ -f ./readline/Makefile ] || exit 0; \
295f4e42 22763 r=`${PWD_COMMAND}`; export r; \
8c90b13a 22764 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22765 $(HOST_EXPORTS) \
d32ab992 22766 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22767 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22768 done; \
d32ab992 22769 echo "Doing dvi in readline" ; \
215c351a 22770 (cd $(HOST_SUBDIR)/readline && \
295f4e42
NN
22771 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22772 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22773 "RANLIB=$${RANLIB}" \
22774 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22775 dvi) \
295f4e42 22776 || exit 1
4977bab6 22777
d32ab992 22778@endif readline
4977bab6 22779
f87a2b2e
MS
22780.PHONY: maybe-html-readline html-readline
22781maybe-html-readline:
22782@if readline
22783maybe-html-readline: html-readline
22784
22785html-readline: \
05750653 22786 configure-readline
f41d6665 22787 @: $(MAKE); $(unstage)
f87a2b2e
MS
22788 @[ -f ./readline/Makefile ] || exit 0; \
22789 r=`${PWD_COMMAND}`; export r; \
22790 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
22791 $(HOST_EXPORTS) \
22792 for flag in $(EXTRA_HOST_FLAGS) ; do \
22793 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22794 done; \
22795 echo "Doing html in readline" ; \
215c351a 22796 (cd $(HOST_SUBDIR)/readline && \
f87a2b2e
MS
22797 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22798 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22799 "RANLIB=$${RANLIB}" \
22800 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22801 html) \
22802 || exit 1
22803
22804@endif readline
22805
d32ab992
PB
22806.PHONY: maybe-TAGS-readline TAGS-readline
22807maybe-TAGS-readline:
22808@if readline
22809maybe-TAGS-readline: TAGS-readline
295f4e42 22810
d32ab992 22811TAGS-readline: \
05750653 22812 configure-readline
f41d6665 22813 @: $(MAKE); $(unstage)
d32ab992 22814 @[ -f ./readline/Makefile ] || exit 0; \
295f4e42
NN
22815 r=`${PWD_COMMAND}`; export r; \
22816 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22817 $(HOST_EXPORTS) \
d32ab992 22818 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22819 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22820 done; \
d32ab992 22821 echo "Doing TAGS in readline" ; \
215c351a 22822 (cd $(HOST_SUBDIR)/readline && \
295f4e42
NN
22823 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22824 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22825 "RANLIB=$${RANLIB}" \
22826 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22827 TAGS) \
295f4e42
NN
22828 || exit 1
22829
d32ab992 22830@endif readline
295f4e42 22831
d32ab992
PB
22832.PHONY: maybe-install-info-readline install-info-readline
22833maybe-install-info-readline:
22834@if readline
22835maybe-install-info-readline: install-info-readline
295f4e42 22836
d32ab992
PB
22837install-info-readline: \
22838 configure-readline \
05750653 22839 info-readline
f41d6665 22840 @: $(MAKE); $(unstage)
d32ab992 22841 @[ -f ./readline/Makefile ] || exit 0; \
295f4e42
NN
22842 r=`${PWD_COMMAND}`; export r; \
22843 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22844 $(HOST_EXPORTS) \
d32ab992 22845 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22846 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22847 done; \
d32ab992 22848 echo "Doing install-info in readline" ; \
215c351a 22849 (cd $(HOST_SUBDIR)/readline && \
295f4e42
NN
22850 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22851 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22852 "RANLIB=$${RANLIB}" \
22853 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22854 install-info) \
295f4e42
NN
22855 || exit 1
22856
d32ab992 22857@endif readline
295f4e42 22858
65d6e994
CD
22859.PHONY: maybe-install-html-readline install-html-readline
22860maybe-install-html-readline:
22861@if readline
22862maybe-install-html-readline: install-html-readline
22863
22864install-html-readline: \
22865 configure-readline \
22866 html-readline
22867 @: $(MAKE); $(unstage)
22868 @[ -f ./readline/Makefile ] || exit 0; \
22869 r=`${PWD_COMMAND}`; export r; \
22870 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22871 $(HOST_EXPORTS) \
22872 for flag in $(EXTRA_HOST_FLAGS) ; do \
22873 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22874 done; \
22875 echo "Doing install-html in readline" ; \
22876 (cd $(HOST_SUBDIR)/readline && \
22877 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22878 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22879 "RANLIB=$${RANLIB}" \
22880 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22881 install-html) \
22882 || exit 1
22883
22884@endif readline
22885
d32ab992
PB
22886.PHONY: maybe-installcheck-readline installcheck-readline
22887maybe-installcheck-readline:
22888@if readline
22889maybe-installcheck-readline: installcheck-readline
295f4e42 22890
d32ab992 22891installcheck-readline: \
05750653 22892 configure-readline
f41d6665 22893 @: $(MAKE); $(unstage)
d32ab992 22894 @[ -f ./readline/Makefile ] || exit 0; \
295f4e42
NN
22895 r=`${PWD_COMMAND}`; export r; \
22896 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22897 $(HOST_EXPORTS) \
d32ab992 22898 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22899 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22900 done; \
d32ab992 22901 echo "Doing installcheck in readline" ; \
215c351a 22902 (cd $(HOST_SUBDIR)/readline && \
295f4e42
NN
22903 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22904 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22905 "RANLIB=$${RANLIB}" \
22906 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22907 installcheck) \
295f4e42
NN
22908 || exit 1
22909
d32ab992 22910@endif readline
295f4e42 22911
d32ab992
PB
22912.PHONY: maybe-mostlyclean-readline mostlyclean-readline
22913maybe-mostlyclean-readline:
22914@if readline
22915maybe-mostlyclean-readline: mostlyclean-readline
295f4e42 22916
05750653 22917mostlyclean-readline:
f41d6665 22918 @: $(MAKE); $(unstage)
d32ab992 22919 @[ -f ./readline/Makefile ] || exit 0; \
295f4e42
NN
22920 r=`${PWD_COMMAND}`; export r; \
22921 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22922 $(HOST_EXPORTS) \
d32ab992 22923 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22924 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22925 done; \
d32ab992 22926 echo "Doing mostlyclean in readline" ; \
215c351a 22927 (cd $(HOST_SUBDIR)/readline && \
295f4e42
NN
22928 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22929 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22930 "RANLIB=$${RANLIB}" \
22931 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22932 mostlyclean) \
295f4e42
NN
22933 || exit 1
22934
d32ab992 22935@endif readline
295f4e42 22936
d32ab992
PB
22937.PHONY: maybe-clean-readline clean-readline
22938maybe-clean-readline:
22939@if readline
22940maybe-clean-readline: clean-readline
295f4e42 22941
05750653 22942clean-readline:
f41d6665 22943 @: $(MAKE); $(unstage)
d32ab992 22944 @[ -f ./readline/Makefile ] || exit 0; \
295f4e42
NN
22945 r=`${PWD_COMMAND}`; export r; \
22946 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22947 $(HOST_EXPORTS) \
d32ab992 22948 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22949 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22950 done; \
d32ab992 22951 echo "Doing clean in readline" ; \
215c351a 22952 (cd $(HOST_SUBDIR)/readline && \
295f4e42
NN
22953 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22954 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22955 "RANLIB=$${RANLIB}" \
22956 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22957 clean) \
295f4e42
NN
22958 || exit 1
22959
d32ab992 22960@endif readline
295f4e42 22961
d32ab992
PB
22962.PHONY: maybe-distclean-readline distclean-readline
22963maybe-distclean-readline:
22964@if readline
22965maybe-distclean-readline: distclean-readline
295f4e42 22966
05750653 22967distclean-readline:
f41d6665 22968 @: $(MAKE); $(unstage)
d32ab992 22969 @[ -f ./readline/Makefile ] || exit 0; \
295f4e42
NN
22970 r=`${PWD_COMMAND}`; export r; \
22971 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22972 $(HOST_EXPORTS) \
d32ab992 22973 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22974 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22975 done; \
d32ab992 22976 echo "Doing distclean in readline" ; \
215c351a 22977 (cd $(HOST_SUBDIR)/readline && \
295f4e42
NN
22978 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22979 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22980 "RANLIB=$${RANLIB}" \
22981 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22982 distclean) \
295f4e42
NN
22983 || exit 1
22984
d32ab992 22985@endif readline
295f4e42 22986
d32ab992
PB
22987.PHONY: maybe-maintainer-clean-readline maintainer-clean-readline
22988maybe-maintainer-clean-readline:
22989@if readline
22990maybe-maintainer-clean-readline: maintainer-clean-readline
295f4e42 22991
05750653 22992maintainer-clean-readline:
f41d6665 22993 @: $(MAKE); $(unstage)
d32ab992 22994 @[ -f ./readline/Makefile ] || exit 0; \
295f4e42
NN
22995 r=`${PWD_COMMAND}`; export r; \
22996 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22997 $(HOST_EXPORTS) \
d32ab992 22998 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22999 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23000 done; \
d32ab992 23001 echo "Doing maintainer-clean in readline" ; \
215c351a 23002 (cd $(HOST_SUBDIR)/readline && \
295f4e42
NN
23003 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23004 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23005 "RANLIB=$${RANLIB}" \
23006 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 23007 maintainer-clean) \
295f4e42
NN
23008 || exit 1
23009
d32ab992 23010@endif readline
295f4e42
NN
23011
23012
25b42232 23013
d32ab992
PB
23014.PHONY: configure-release maybe-configure-release
23015maybe-configure-release:
3ff3adad
PB
23016@if gcc-bootstrap
23017configure-release: stage_current
23018@endif gcc-bootstrap
d32ab992
PB
23019@if release
23020maybe-configure-release: configure-release
cc11cc9b 23021configure-release:
f41d6665 23022 @: $(MAKE); $(unstage)
cc11cc9b 23023 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 23024 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
23025 test ! -f $(HOST_SUBDIR)/release/Makefile || exit 0; \
23026 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/release ; \
4fc4dd12 23027 $(HOST_EXPORTS) \
25b42232
PB
23028 echo Configuring in $(HOST_SUBDIR)/release; \
23029 cd "$(HOST_SUBDIR)/release" || exit 1; \
4977bab6 23030 case $(srcdir) in \
215c351a
PB
23031 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23032 *) topdir=`echo $(HOST_SUBDIR)/release/ | \
23033 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 23034 esac; \
215c351a
PB
23035 srcdiroption="--srcdir=$${topdir}/release"; \
23036 libsrcdir="$$s/release"; \
4977bab6 23037 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 23038 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 23039 || exit 1
d32ab992 23040@endif release
4977bab6 23041
25b42232
PB
23042
23043
ce406537
PB
23044
23045
d32ab992
PB
23046.PHONY: all-release maybe-all-release
23047maybe-all-release:
3ff3adad
PB
23048@if gcc-bootstrap
23049all-release: stage_current
23050@endif gcc-bootstrap
d32ab992 23051@if release
7e0b5752 23052TARGET-release=all
d32ab992
PB
23053maybe-all-release: all-release
23054all-release: configure-release
f41d6665 23055 @: $(MAKE); $(unstage)
8c90b13a
L
23056 @r=`${PWD_COMMAND}`; export r; \
23057 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23058 $(HOST_EXPORTS) \
215c351a
PB
23059 (cd $(HOST_SUBDIR)/release && \
23060 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-release))
d32ab992 23061@endif release
4977bab6 23062
25b42232 23063
ce406537
PB
23064
23065
d32ab992
PB
23066.PHONY: check-release maybe-check-release
23067maybe-check-release:
23068@if release
23069maybe-check-release: check-release
4977bab6 23070
d32ab992 23071check-release:
4977bab6 23072
d32ab992 23073@endif release
4977bab6 23074
d32ab992
PB
23075.PHONY: install-release maybe-install-release
23076maybe-install-release:
23077@if release
23078maybe-install-release: install-release
7e2dbcef 23079
d32ab992 23080install-release:
4977bab6 23081
d32ab992 23082@endif release
4977bab6 23083
295f4e42
NN
23084# Other targets (info, dvi, etc.)
23085
d32ab992
PB
23086.PHONY: maybe-info-release info-release
23087maybe-info-release:
23088@if release
23089maybe-info-release: info-release
295f4e42 23090
d32ab992 23091info-release: \
05750653 23092 configure-release
f41d6665 23093 @: $(MAKE); $(unstage)
d32ab992 23094 @[ -f ./release/Makefile ] || exit 0; \
8c90b13a
L
23095 r=`${PWD_COMMAND}`; export r; \
23096 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23097 $(HOST_EXPORTS) \
d32ab992 23098 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23099 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23100 done; \
d32ab992 23101 echo "Doing info in release" ; \
215c351a 23102 (cd $(HOST_SUBDIR)/release && \
295f4e42
NN
23103 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23104 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23105 "RANLIB=$${RANLIB}" \
23106 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 23107 info) \
4977bab6
ZW
23108 || exit 1
23109
d32ab992 23110@endif release
295f4e42 23111
d32ab992
PB
23112.PHONY: maybe-dvi-release dvi-release
23113maybe-dvi-release:
23114@if release
23115maybe-dvi-release: dvi-release
295f4e42 23116
d32ab992 23117dvi-release: \
05750653 23118 configure-release
f41d6665 23119 @: $(MAKE); $(unstage)
d32ab992 23120 @[ -f ./release/Makefile ] || exit 0; \
295f4e42 23121 r=`${PWD_COMMAND}`; export r; \
8c90b13a 23122 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23123 $(HOST_EXPORTS) \
d32ab992 23124 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23125 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23126 done; \
d32ab992 23127 echo "Doing dvi in release" ; \
215c351a 23128 (cd $(HOST_SUBDIR)/release && \
295f4e42
NN
23129 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23130 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23131 "RANLIB=$${RANLIB}" \
23132 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 23133 dvi) \
295f4e42 23134 || exit 1
4977bab6 23135
d32ab992 23136@endif release
4977bab6 23137
f87a2b2e
MS
23138.PHONY: maybe-html-release html-release
23139maybe-html-release:
23140@if release
23141maybe-html-release: html-release
23142
23143html-release: \
05750653 23144 configure-release
f41d6665 23145 @: $(MAKE); $(unstage)
f87a2b2e
MS
23146 @[ -f ./release/Makefile ] || exit 0; \
23147 r=`${PWD_COMMAND}`; export r; \
23148 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
23149 $(HOST_EXPORTS) \
23150 for flag in $(EXTRA_HOST_FLAGS) ; do \
23151 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23152 done; \
23153 echo "Doing html in release" ; \
215c351a 23154 (cd $(HOST_SUBDIR)/release && \
f87a2b2e
MS
23155 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23156 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23157 "RANLIB=$${RANLIB}" \
23158 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23159 html) \
23160 || exit 1
23161
23162@endif release
23163
d32ab992
PB
23164.PHONY: maybe-TAGS-release TAGS-release
23165maybe-TAGS-release:
23166@if release
23167maybe-TAGS-release: TAGS-release
295f4e42 23168
d32ab992 23169TAGS-release: \
05750653 23170 configure-release
f41d6665 23171 @: $(MAKE); $(unstage)
d32ab992 23172 @[ -f ./release/Makefile ] || exit 0; \
295f4e42
NN
23173 r=`${PWD_COMMAND}`; export r; \
23174 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23175 $(HOST_EXPORTS) \
d32ab992 23176 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23177 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23178 done; \
d32ab992 23179 echo "Doing TAGS in release" ; \
215c351a 23180 (cd $(HOST_SUBDIR)/release && \
295f4e42
NN
23181 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23182 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23183 "RANLIB=$${RANLIB}" \
23184 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 23185 TAGS) \
295f4e42
NN
23186 || exit 1
23187
d32ab992 23188@endif release
295f4e42 23189
d32ab992
PB
23190.PHONY: maybe-install-info-release install-info-release
23191maybe-install-info-release:
23192@if release
23193maybe-install-info-release: install-info-release
295f4e42 23194
d32ab992
PB
23195install-info-release: \
23196 configure-release \
05750653 23197 info-release
f41d6665 23198 @: $(MAKE); $(unstage)
d32ab992 23199 @[ -f ./release/Makefile ] || exit 0; \
295f4e42
NN
23200 r=`${PWD_COMMAND}`; export r; \
23201 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23202 $(HOST_EXPORTS) \
d32ab992 23203 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23204 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23205 done; \
d32ab992 23206 echo "Doing install-info in release" ; \
215c351a 23207 (cd $(HOST_SUBDIR)/release && \
295f4e42
NN
23208 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23209 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23210 "RANLIB=$${RANLIB}" \
23211 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 23212 install-info) \
295f4e42
NN
23213 || exit 1
23214
d32ab992 23215@endif release
295f4e42 23216
65d6e994
CD
23217.PHONY: maybe-install-html-release install-html-release
23218maybe-install-html-release:
23219@if release
23220maybe-install-html-release: install-html-release
23221
23222install-html-release: \
23223 configure-release \
23224 html-release
23225 @: $(MAKE); $(unstage)
23226 @[ -f ./release/Makefile ] || exit 0; \
23227 r=`${PWD_COMMAND}`; export r; \
23228 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23229 $(HOST_EXPORTS) \
23230 for flag in $(EXTRA_HOST_FLAGS) ; do \
23231 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23232 done; \
23233 echo "Doing install-html in release" ; \
23234 (cd $(HOST_SUBDIR)/release && \
23235 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23236 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23237 "RANLIB=$${RANLIB}" \
23238 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23239 install-html) \
23240 || exit 1
23241
23242@endif release
23243
d32ab992
PB
23244.PHONY: maybe-installcheck-release installcheck-release
23245maybe-installcheck-release:
23246@if release
23247maybe-installcheck-release: installcheck-release
295f4e42 23248
d32ab992 23249installcheck-release: \
05750653 23250 configure-release
f41d6665 23251 @: $(MAKE); $(unstage)
d32ab992 23252 @[ -f ./release/Makefile ] || exit 0; \
295f4e42
NN
23253 r=`${PWD_COMMAND}`; export r; \
23254 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23255 $(HOST_EXPORTS) \
d32ab992 23256 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23257 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23258 done; \
d32ab992 23259 echo "Doing installcheck in release" ; \
215c351a 23260 (cd $(HOST_SUBDIR)/release && \
295f4e42
NN
23261 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23262 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23263 "RANLIB=$${RANLIB}" \
23264 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 23265 installcheck) \
295f4e42
NN
23266 || exit 1
23267
d32ab992 23268@endif release
295f4e42 23269
d32ab992
PB
23270.PHONY: maybe-mostlyclean-release mostlyclean-release
23271maybe-mostlyclean-release:
23272@if release
23273maybe-mostlyclean-release: mostlyclean-release
295f4e42 23274
05750653 23275mostlyclean-release:
f41d6665 23276 @: $(MAKE); $(unstage)
d32ab992 23277 @[ -f ./release/Makefile ] || exit 0; \
295f4e42
NN
23278 r=`${PWD_COMMAND}`; export r; \
23279 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23280 $(HOST_EXPORTS) \
d32ab992 23281 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23282 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23283 done; \
d32ab992 23284 echo "Doing mostlyclean in release" ; \
215c351a 23285 (cd $(HOST_SUBDIR)/release && \
295f4e42
NN
23286 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23287 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23288 "RANLIB=$${RANLIB}" \
23289 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 23290 mostlyclean) \
295f4e42
NN
23291 || exit 1
23292
d32ab992 23293@endif release
295f4e42 23294
d32ab992
PB
23295.PHONY: maybe-clean-release clean-release
23296maybe-clean-release:
23297@if release
23298maybe-clean-release: clean-release
295f4e42 23299
05750653 23300clean-release:
f41d6665 23301 @: $(MAKE); $(unstage)
d32ab992 23302 @[ -f ./release/Makefile ] || exit 0; \
295f4e42
NN
23303 r=`${PWD_COMMAND}`; export r; \
23304 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23305 $(HOST_EXPORTS) \
d32ab992 23306 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23307 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23308 done; \
d32ab992 23309 echo "Doing clean in release" ; \
215c351a 23310 (cd $(HOST_SUBDIR)/release && \
295f4e42
NN
23311 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23312 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23313 "RANLIB=$${RANLIB}" \
23314 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 23315 clean) \
295f4e42
NN
23316 || exit 1
23317
d32ab992 23318@endif release
295f4e42 23319
d32ab992
PB
23320.PHONY: maybe-distclean-release distclean-release
23321maybe-distclean-release:
23322@if release
23323maybe-distclean-release: distclean-release
295f4e42 23324
05750653 23325distclean-release:
f41d6665 23326 @: $(MAKE); $(unstage)
d32ab992 23327 @[ -f ./release/Makefile ] || exit 0; \
295f4e42
NN
23328 r=`${PWD_COMMAND}`; export r; \
23329 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23330 $(HOST_EXPORTS) \
d32ab992 23331 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23332 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23333 done; \
d32ab992 23334 echo "Doing distclean in release" ; \
215c351a 23335 (cd $(HOST_SUBDIR)/release && \
295f4e42
NN
23336 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23337 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23338 "RANLIB=$${RANLIB}" \
23339 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 23340 distclean) \
295f4e42 23341 || exit 1
4977bab6 23342
d32ab992 23343@endif release
4977bab6 23344
d32ab992
PB
23345.PHONY: maybe-maintainer-clean-release maintainer-clean-release
23346maybe-maintainer-clean-release:
23347@if release
23348maybe-maintainer-clean-release: maintainer-clean-release
7e2dbcef 23349
05750653 23350maintainer-clean-release:
f41d6665 23351 @: $(MAKE); $(unstage)
d32ab992 23352 @[ -f ./release/Makefile ] || exit 0; \
295f4e42 23353 r=`${PWD_COMMAND}`; export r; \
8c90b13a 23354 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23355 $(HOST_EXPORTS) \
d32ab992 23356 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23357 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23358 done; \
d32ab992 23359 echo "Doing maintainer-clean in release" ; \
215c351a 23360 (cd $(HOST_SUBDIR)/release && \
295f4e42
NN
23361 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23362 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23363 "RANLIB=$${RANLIB}" \
23364 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 23365 maintainer-clean) \
295f4e42 23366 || exit 1
4977bab6 23367
d32ab992 23368@endif release
4977bab6 23369
295f4e42 23370
25b42232 23371
d32ab992
PB
23372.PHONY: configure-recode maybe-configure-recode
23373maybe-configure-recode:
3ff3adad
PB
23374@if gcc-bootstrap
23375configure-recode: stage_current
23376@endif gcc-bootstrap
d32ab992
PB
23377@if recode
23378maybe-configure-recode: configure-recode
cc11cc9b 23379configure-recode:
f41d6665 23380 @: $(MAKE); $(unstage)
cc11cc9b 23381 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 23382 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
23383 test ! -f $(HOST_SUBDIR)/recode/Makefile || exit 0; \
23384 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/recode ; \
4fc4dd12 23385 $(HOST_EXPORTS) \
25b42232
PB
23386 echo Configuring in $(HOST_SUBDIR)/recode; \
23387 cd "$(HOST_SUBDIR)/recode" || exit 1; \
4977bab6 23388 case $(srcdir) in \
215c351a
PB
23389 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23390 *) topdir=`echo $(HOST_SUBDIR)/recode/ | \
23391 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 23392 esac; \
215c351a
PB
23393 srcdiroption="--srcdir=$${topdir}/recode"; \
23394 libsrcdir="$$s/recode"; \
4977bab6 23395 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 23396 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 23397 || exit 1
d32ab992 23398@endif recode
4977bab6 23399
25b42232
PB
23400
23401
ce406537
PB
23402
23403
d32ab992
PB
23404.PHONY: all-recode maybe-all-recode
23405maybe-all-recode:
3ff3adad
PB
23406@if gcc-bootstrap
23407all-recode: stage_current
23408@endif gcc-bootstrap
d32ab992 23409@if recode
7e0b5752 23410TARGET-recode=all
d32ab992
PB
23411maybe-all-recode: all-recode
23412all-recode: configure-recode
f41d6665 23413 @: $(MAKE); $(unstage)
8c90b13a
L
23414 @r=`${PWD_COMMAND}`; export r; \
23415 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23416 $(HOST_EXPORTS) \
215c351a
PB
23417 (cd $(HOST_SUBDIR)/recode && \
23418 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-recode))
d32ab992 23419@endif recode
4977bab6 23420
25b42232 23421
ce406537
PB
23422
23423
d32ab992
PB
23424.PHONY: check-recode maybe-check-recode
23425maybe-check-recode:
23426@if recode
23427maybe-check-recode: check-recode
4977bab6 23428
d32ab992 23429check-recode:
f41d6665 23430 @: $(MAKE); $(unstage)
8c90b13a
L
23431 @r=`${PWD_COMMAND}`; export r; \
23432 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23433 $(HOST_EXPORTS) \
215c351a
PB
23434 (cd $(HOST_SUBDIR)/recode && \
23435 $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6 23436
d32ab992 23437@endif recode
4977bab6 23438
d32ab992
PB
23439.PHONY: install-recode maybe-install-recode
23440maybe-install-recode:
23441@if recode
23442maybe-install-recode: install-recode
7e2dbcef 23443
d32ab992 23444install-recode: installdirs
f41d6665 23445 @: $(MAKE); $(unstage)
8c90b13a
L
23446 @r=`${PWD_COMMAND}`; export r; \
23447 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23448 $(HOST_EXPORTS) \
215c351a 23449 (cd $(HOST_SUBDIR)/recode && \
ace9ac7b 23450 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 23451
d32ab992 23452@endif recode
295f4e42
NN
23453
23454# Other targets (info, dvi, etc.)
23455
d32ab992
PB
23456.PHONY: maybe-info-recode info-recode
23457maybe-info-recode:
23458@if recode
23459maybe-info-recode: info-recode
295f4e42 23460
d32ab992 23461info-recode: \
05750653 23462 configure-recode
f41d6665 23463 @: $(MAKE); $(unstage)
d32ab992 23464 @[ -f ./recode/Makefile ] || exit 0; \
295f4e42
NN
23465 r=`${PWD_COMMAND}`; export r; \
23466 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23467 $(HOST_EXPORTS) \
d32ab992 23468 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23469 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23470 done; \
d32ab992 23471 echo "Doing info in recode" ; \
215c351a 23472 (cd $(HOST_SUBDIR)/recode && \
295f4e42
NN
23473 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23474 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23475 "RANLIB=$${RANLIB}" \
23476 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 23477 info) \
295f4e42
NN
23478 || exit 1
23479
d32ab992 23480@endif recode
295f4e42 23481
d32ab992
PB
23482.PHONY: maybe-dvi-recode dvi-recode
23483maybe-dvi-recode:
23484@if recode
23485maybe-dvi-recode: dvi-recode
295f4e42 23486
d32ab992 23487dvi-recode: \
05750653 23488 configure-recode
f41d6665 23489 @: $(MAKE); $(unstage)
d32ab992 23490 @[ -f ./recode/Makefile ] || exit 0; \
295f4e42
NN
23491 r=`${PWD_COMMAND}`; export r; \
23492 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23493 $(HOST_EXPORTS) \
d32ab992 23494 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23495 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23496 done; \
d32ab992 23497 echo "Doing dvi in recode" ; \
215c351a 23498 (cd $(HOST_SUBDIR)/recode && \
295f4e42
NN
23499 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23500 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23501 "RANLIB=$${RANLIB}" \
23502 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 23503 dvi) \
295f4e42
NN
23504 || exit 1
23505
d32ab992 23506@endif recode
295f4e42 23507
f87a2b2e
MS
23508.PHONY: maybe-html-recode html-recode
23509maybe-html-recode:
23510@if recode
23511maybe-html-recode: html-recode
23512
23513html-recode: \
05750653 23514 configure-recode
f41d6665 23515 @: $(MAKE); $(unstage)
f87a2b2e
MS
23516 @[ -f ./recode/Makefile ] || exit 0; \
23517 r=`${PWD_COMMAND}`; export r; \
23518 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
23519 $(HOST_EXPORTS) \
23520 for flag in $(EXTRA_HOST_FLAGS) ; do \
23521 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23522 done; \
23523 echo "Doing html in recode" ; \
215c351a 23524 (cd $(HOST_SUBDIR)/recode && \
f87a2b2e
MS
23525 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23526 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23527 "RANLIB=$${RANLIB}" \
23528 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23529 html) \
23530 || exit 1
23531
23532@endif recode
23533
d32ab992
PB
23534.PHONY: maybe-TAGS-recode TAGS-recode
23535maybe-TAGS-recode:
23536@if recode
23537maybe-TAGS-recode: TAGS-recode
295f4e42 23538
d32ab992 23539TAGS-recode: \
05750653 23540 configure-recode
f41d6665 23541 @: $(MAKE); $(unstage)
d32ab992 23542 @[ -f ./recode/Makefile ] || exit 0; \
295f4e42
NN
23543 r=`${PWD_COMMAND}`; export r; \
23544 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23545 $(HOST_EXPORTS) \
d32ab992 23546 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23547 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23548 done; \
d32ab992 23549 echo "Doing TAGS in recode" ; \
215c351a 23550 (cd $(HOST_SUBDIR)/recode && \
295f4e42
NN
23551 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23552 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23553 "RANLIB=$${RANLIB}" \
23554 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 23555 TAGS) \
295f4e42
NN
23556 || exit 1
23557
d32ab992 23558@endif recode
295f4e42 23559
d32ab992
PB
23560.PHONY: maybe-install-info-recode install-info-recode
23561maybe-install-info-recode:
23562@if recode
23563maybe-install-info-recode: install-info-recode
295f4e42 23564
d32ab992
PB
23565install-info-recode: \
23566 configure-recode \
05750653 23567 info-recode
f41d6665 23568 @: $(MAKE); $(unstage)
d32ab992 23569 @[ -f ./recode/Makefile ] || exit 0; \
295f4e42
NN
23570 r=`${PWD_COMMAND}`; export r; \
23571 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23572 $(HOST_EXPORTS) \
d32ab992 23573 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23574 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23575 done; \
d32ab992 23576 echo "Doing install-info in recode" ; \
215c351a 23577 (cd $(HOST_SUBDIR)/recode && \
295f4e42
NN
23578 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23579 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23580 "RANLIB=$${RANLIB}" \
23581 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 23582 install-info) \
295f4e42
NN
23583 || exit 1
23584
d32ab992 23585@endif recode
295f4e42 23586
65d6e994
CD
23587.PHONY: maybe-install-html-recode install-html-recode
23588maybe-install-html-recode:
23589@if recode
23590maybe-install-html-recode: install-html-recode
23591
23592install-html-recode: \
23593 configure-recode \
23594 html-recode
23595 @: $(MAKE); $(unstage)
23596 @[ -f ./recode/Makefile ] || exit 0; \
23597 r=`${PWD_COMMAND}`; export r; \
23598 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23599 $(HOST_EXPORTS) \
23600 for flag in $(EXTRA_HOST_FLAGS) ; do \
23601 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23602 done; \
23603 echo "Doing install-html in recode" ; \
23604 (cd $(HOST_SUBDIR)/recode && \
23605 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23606 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23607 "RANLIB=$${RANLIB}" \
23608 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23609 install-html) \
23610 || exit 1
23611
23612@endif recode
23613
d32ab992
PB
23614.PHONY: maybe-installcheck-recode installcheck-recode
23615maybe-installcheck-recode:
23616@if recode
23617maybe-installcheck-recode: installcheck-recode
295f4e42 23618
d32ab992 23619installcheck-recode: \
05750653 23620 configure-recode
f41d6665 23621 @: $(MAKE); $(unstage)
d32ab992 23622 @[ -f ./recode/Makefile ] || exit 0; \
295f4e42
NN
23623 r=`${PWD_COMMAND}`; export r; \
23624 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23625 $(HOST_EXPORTS) \
d32ab992 23626 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23627 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23628 done; \
d32ab992 23629 echo "Doing installcheck in recode" ; \
215c351a 23630 (cd $(HOST_SUBDIR)/recode && \
295f4e42
NN
23631 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23632 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23633 "RANLIB=$${RANLIB}" \
23634 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 23635 installcheck) \
295f4e42
NN
23636 || exit 1
23637
d32ab992 23638@endif recode
295f4e42 23639
d32ab992
PB
23640.PHONY: maybe-mostlyclean-recode mostlyclean-recode
23641maybe-mostlyclean-recode:
23642@if recode
23643maybe-mostlyclean-recode: mostlyclean-recode
295f4e42 23644
05750653 23645mostlyclean-recode:
f41d6665 23646 @: $(MAKE); $(unstage)
d32ab992 23647 @[ -f ./recode/Makefile ] || exit 0; \
295f4e42
NN
23648 r=`${PWD_COMMAND}`; export r; \
23649 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23650 $(HOST_EXPORTS) \
d32ab992 23651 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23652 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23653 done; \
d32ab992 23654 echo "Doing mostlyclean in recode" ; \
215c351a 23655 (cd $(HOST_SUBDIR)/recode && \
295f4e42
NN
23656 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23657 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23658 "RANLIB=$${RANLIB}" \
23659 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 23660 mostlyclean) \
295f4e42
NN
23661 || exit 1
23662
d32ab992 23663@endif recode
295f4e42 23664
d32ab992
PB
23665.PHONY: maybe-clean-recode clean-recode
23666maybe-clean-recode:
23667@if recode
23668maybe-clean-recode: clean-recode
295f4e42 23669
05750653 23670clean-recode:
f41d6665 23671 @: $(MAKE); $(unstage)
d32ab992 23672 @[ -f ./recode/Makefile ] || exit 0; \
295f4e42
NN
23673 r=`${PWD_COMMAND}`; export r; \
23674 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23675 $(HOST_EXPORTS) \
d32ab992 23676 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23677 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23678 done; \
d32ab992 23679 echo "Doing clean in recode" ; \
215c351a 23680 (cd $(HOST_SUBDIR)/recode && \
295f4e42
NN
23681 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23682 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23683 "RANLIB=$${RANLIB}" \
23684 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 23685 clean) \
295f4e42
NN
23686 || exit 1
23687
d32ab992 23688@endif recode
295f4e42 23689
d32ab992
PB
23690.PHONY: maybe-distclean-recode distclean-recode
23691maybe-distclean-recode:
23692@if recode
23693maybe-distclean-recode: distclean-recode
295f4e42 23694
05750653 23695distclean-recode:
f41d6665 23696 @: $(MAKE); $(unstage)
d32ab992 23697 @[ -f ./recode/Makefile ] || exit 0; \
295f4e42
NN
23698 r=`${PWD_COMMAND}`; export r; \
23699 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23700 $(HOST_EXPORTS) \
d32ab992 23701 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23702 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23703 done; \
d32ab992 23704 echo "Doing distclean in recode" ; \
215c351a 23705 (cd $(HOST_SUBDIR)/recode && \
295f4e42
NN
23706 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23707 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23708 "RANLIB=$${RANLIB}" \
23709 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 23710 distclean) \
295f4e42
NN
23711 || exit 1
23712
d32ab992 23713@endif recode
295f4e42 23714
d32ab992
PB
23715.PHONY: maybe-maintainer-clean-recode maintainer-clean-recode
23716maybe-maintainer-clean-recode:
23717@if recode
23718maybe-maintainer-clean-recode: maintainer-clean-recode
295f4e42 23719
05750653 23720maintainer-clean-recode:
f41d6665 23721 @: $(MAKE); $(unstage)
d32ab992 23722 @[ -f ./recode/Makefile ] || exit 0; \
295f4e42
NN
23723 r=`${PWD_COMMAND}`; export r; \
23724 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23725 $(HOST_EXPORTS) \
d32ab992 23726 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23727 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23728 done; \
d32ab992 23729 echo "Doing maintainer-clean in recode" ; \
215c351a 23730 (cd $(HOST_SUBDIR)/recode && \
295f4e42
NN
23731 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23732 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23733 "RANLIB=$${RANLIB}" \
23734 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 23735 maintainer-clean) \
295f4e42 23736 || exit 1
4977bab6 23737
d32ab992 23738@endif recode
4977bab6 23739
295f4e42 23740
25b42232 23741
d32ab992
PB
23742.PHONY: configure-sed maybe-configure-sed
23743maybe-configure-sed:
3ff3adad
PB
23744@if gcc-bootstrap
23745configure-sed: stage_current
23746@endif gcc-bootstrap
d32ab992
PB
23747@if sed
23748maybe-configure-sed: configure-sed
cc11cc9b 23749configure-sed:
f41d6665 23750 @: $(MAKE); $(unstage)
cc11cc9b 23751 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 23752 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
23753 test ! -f $(HOST_SUBDIR)/sed/Makefile || exit 0; \
23754 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/sed ; \
4fc4dd12 23755 $(HOST_EXPORTS) \
25b42232
PB
23756 echo Configuring in $(HOST_SUBDIR)/sed; \
23757 cd "$(HOST_SUBDIR)/sed" || exit 1; \
4977bab6 23758 case $(srcdir) in \
215c351a
PB
23759 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23760 *) topdir=`echo $(HOST_SUBDIR)/sed/ | \
23761 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 23762 esac; \
215c351a
PB
23763 srcdiroption="--srcdir=$${topdir}/sed"; \
23764 libsrcdir="$$s/sed"; \
4977bab6 23765 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 23766 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 23767 || exit 1
d32ab992 23768@endif sed
4977bab6 23769
25b42232
PB
23770
23771
ce406537
PB
23772
23773
d32ab992
PB
23774.PHONY: all-sed maybe-all-sed
23775maybe-all-sed:
3ff3adad
PB
23776@if gcc-bootstrap
23777all-sed: stage_current
23778@endif gcc-bootstrap
d32ab992 23779@if sed
7e0b5752 23780TARGET-sed=all
d32ab992
PB
23781maybe-all-sed: all-sed
23782all-sed: configure-sed
f41d6665 23783 @: $(MAKE); $(unstage)
8c90b13a
L
23784 @r=`${PWD_COMMAND}`; export r; \
23785 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23786 $(HOST_EXPORTS) \
215c351a
PB
23787 (cd $(HOST_SUBDIR)/sed && \
23788 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-sed))
d32ab992 23789@endif sed
4977bab6 23790
25b42232 23791
ce406537
PB
23792
23793
d32ab992
PB
23794.PHONY: check-sed maybe-check-sed
23795maybe-check-sed:
23796@if sed
23797maybe-check-sed: check-sed
4977bab6 23798
d32ab992 23799check-sed:
f41d6665 23800 @: $(MAKE); $(unstage)
8c90b13a
L
23801 @r=`${PWD_COMMAND}`; export r; \
23802 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23803 $(HOST_EXPORTS) \
215c351a
PB
23804 (cd $(HOST_SUBDIR)/sed && \
23805 $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6 23806
d32ab992 23807@endif sed
4977bab6 23808
d32ab992
PB
23809.PHONY: install-sed maybe-install-sed
23810maybe-install-sed:
23811@if sed
23812maybe-install-sed: install-sed
295f4e42 23813
d32ab992 23814install-sed: installdirs
f41d6665 23815 @: $(MAKE); $(unstage)
295f4e42
NN
23816 @r=`${PWD_COMMAND}`; export r; \
23817 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23818 $(HOST_EXPORTS) \
215c351a 23819 (cd $(HOST_SUBDIR)/sed && \
ace9ac7b 23820 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 23821
d32ab992 23822@endif sed
295f4e42
NN
23823
23824# Other targets (info, dvi, etc.)
23825
d32ab992
PB
23826.PHONY: maybe-info-sed info-sed
23827maybe-info-sed:
23828@if sed
23829maybe-info-sed: info-sed
295f4e42 23830
d32ab992 23831info-sed: \
05750653 23832 configure-sed
f41d6665 23833 @: $(MAKE); $(unstage)
d32ab992 23834 @[ -f ./sed/Makefile ] || exit 0; \
295f4e42
NN
23835 r=`${PWD_COMMAND}`; export r; \
23836 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23837 $(HOST_EXPORTS) \
d32ab992 23838 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23839 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23840 done; \
f87a2b2e 23841 echo "Doing info in sed" ; \
215c351a 23842 (cd $(HOST_SUBDIR)/sed && \
f87a2b2e
MS
23843 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23844 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23845 "RANLIB=$${RANLIB}" \
23846 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23847 info) \
23848 || exit 1
23849
23850@endif sed
23851
23852.PHONY: maybe-dvi-sed dvi-sed
23853maybe-dvi-sed:
23854@if sed
23855maybe-dvi-sed: dvi-sed
23856
23857dvi-sed: \
05750653 23858 configure-sed
f41d6665 23859 @: $(MAKE); $(unstage)
f87a2b2e
MS
23860 @[ -f ./sed/Makefile ] || exit 0; \
23861 r=`${PWD_COMMAND}`; export r; \
23862 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
23863 $(HOST_EXPORTS) \
23864 for flag in $(EXTRA_HOST_FLAGS) ; do \
23865 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23866 done; \
23867 echo "Doing dvi in sed" ; \
215c351a 23868 (cd $(HOST_SUBDIR)/sed && \
295f4e42
NN
23869 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23870 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23871 "RANLIB=$${RANLIB}" \
23872 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
f87a2b2e 23873 dvi) \
295f4e42
NN
23874 || exit 1
23875
d32ab992 23876@endif sed
295f4e42 23877
f87a2b2e
MS
23878.PHONY: maybe-html-sed html-sed
23879maybe-html-sed:
d32ab992 23880@if sed
f87a2b2e 23881maybe-html-sed: html-sed
295f4e42 23882
f87a2b2e 23883html-sed: \
05750653 23884 configure-sed
f41d6665 23885 @: $(MAKE); $(unstage)
d32ab992 23886 @[ -f ./sed/Makefile ] || exit 0; \
295f4e42
NN
23887 r=`${PWD_COMMAND}`; export r; \
23888 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23889 $(HOST_EXPORTS) \
d32ab992 23890 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23891 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23892 done; \
f87a2b2e 23893 echo "Doing html in sed" ; \
215c351a 23894 (cd $(HOST_SUBDIR)/sed && \
295f4e42
NN
23895 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23896 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23897 "RANLIB=$${RANLIB}" \
23898 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
f87a2b2e 23899 html) \
295f4e42
NN
23900 || exit 1
23901
d32ab992 23902@endif sed
295f4e42 23903
d32ab992
PB
23904.PHONY: maybe-TAGS-sed TAGS-sed
23905maybe-TAGS-sed:
23906@if sed
23907maybe-TAGS-sed: TAGS-sed
295f4e42 23908
d32ab992 23909TAGS-sed: \
05750653 23910 configure-sed
f41d6665 23911 @: $(MAKE); $(unstage)
d32ab992 23912 @[ -f ./sed/Makefile ] || exit 0; \
295f4e42
NN
23913 r=`${PWD_COMMAND}`; export r; \
23914 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23915 $(HOST_EXPORTS) \
d32ab992 23916 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23917 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23918 done; \
d32ab992 23919 echo "Doing TAGS in sed" ; \
215c351a 23920 (cd $(HOST_SUBDIR)/sed && \
295f4e42
NN
23921 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23922 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23923 "RANLIB=$${RANLIB}" \
23924 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 23925 TAGS) \
295f4e42
NN
23926 || exit 1
23927
d32ab992 23928@endif sed
295f4e42 23929
d32ab992
PB
23930.PHONY: maybe-install-info-sed install-info-sed
23931maybe-install-info-sed:
23932@if sed
23933maybe-install-info-sed: install-info-sed
295f4e42 23934
d32ab992
PB
23935install-info-sed: \
23936 configure-sed \
05750653 23937 info-sed
f41d6665 23938 @: $(MAKE); $(unstage)
d32ab992 23939 @[ -f ./sed/Makefile ] || exit 0; \
295f4e42
NN
23940 r=`${PWD_COMMAND}`; export r; \
23941 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23942 $(HOST_EXPORTS) \
d32ab992 23943 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23944 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23945 done; \
d32ab992 23946 echo "Doing install-info in sed" ; \
215c351a 23947 (cd $(HOST_SUBDIR)/sed && \
295f4e42
NN
23948 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23949 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23950 "RANLIB=$${RANLIB}" \
23951 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 23952 install-info) \
295f4e42
NN
23953 || exit 1
23954
d32ab992 23955@endif sed
295f4e42 23956
65d6e994
CD
23957.PHONY: maybe-install-html-sed install-html-sed
23958maybe-install-html-sed:
23959@if sed
23960maybe-install-html-sed: install-html-sed
23961
23962install-html-sed: \
23963 configure-sed \
23964 html-sed
23965 @: $(MAKE); $(unstage)
23966 @[ -f ./sed/Makefile ] || exit 0; \
23967 r=`${PWD_COMMAND}`; export r; \
23968 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23969 $(HOST_EXPORTS) \
23970 for flag in $(EXTRA_HOST_FLAGS) ; do \
23971 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23972 done; \
23973 echo "Doing install-html in sed" ; \
23974 (cd $(HOST_SUBDIR)/sed && \
23975 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23976 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23977 "RANLIB=$${RANLIB}" \
23978 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23979 install-html) \
23980 || exit 1
23981
23982@endif sed
23983
d32ab992
PB
23984.PHONY: maybe-installcheck-sed installcheck-sed
23985maybe-installcheck-sed:
23986@if sed
23987maybe-installcheck-sed: installcheck-sed
295f4e42 23988
d32ab992 23989installcheck-sed: \
05750653 23990 configure-sed
f41d6665 23991 @: $(MAKE); $(unstage)
d32ab992 23992 @[ -f ./sed/Makefile ] || exit 0; \
295f4e42
NN
23993 r=`${PWD_COMMAND}`; export r; \
23994 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23995 $(HOST_EXPORTS) \
d32ab992 23996 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23997 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23998 done; \
d32ab992 23999 echo "Doing installcheck in sed" ; \
215c351a 24000 (cd $(HOST_SUBDIR)/sed && \
295f4e42
NN
24001 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24002 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24003 "RANLIB=$${RANLIB}" \
24004 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24005 installcheck) \
295f4e42
NN
24006 || exit 1
24007
d32ab992 24008@endif sed
295f4e42 24009
d32ab992
PB
24010.PHONY: maybe-mostlyclean-sed mostlyclean-sed
24011maybe-mostlyclean-sed:
24012@if sed
24013maybe-mostlyclean-sed: mostlyclean-sed
295f4e42 24014
05750653 24015mostlyclean-sed:
f41d6665 24016 @: $(MAKE); $(unstage)
d32ab992 24017 @[ -f ./sed/Makefile ] || exit 0; \
295f4e42
NN
24018 r=`${PWD_COMMAND}`; export r; \
24019 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24020 $(HOST_EXPORTS) \
d32ab992 24021 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24022 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24023 done; \
d32ab992 24024 echo "Doing mostlyclean in sed" ; \
215c351a 24025 (cd $(HOST_SUBDIR)/sed && \
295f4e42
NN
24026 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24027 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24028 "RANLIB=$${RANLIB}" \
24029 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24030 mostlyclean) \
295f4e42
NN
24031 || exit 1
24032
d32ab992 24033@endif sed
295f4e42 24034
d32ab992
PB
24035.PHONY: maybe-clean-sed clean-sed
24036maybe-clean-sed:
24037@if sed
24038maybe-clean-sed: clean-sed
295f4e42 24039
05750653 24040clean-sed:
f41d6665 24041 @: $(MAKE); $(unstage)
d32ab992 24042 @[ -f ./sed/Makefile ] || exit 0; \
295f4e42
NN
24043 r=`${PWD_COMMAND}`; export r; \
24044 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24045 $(HOST_EXPORTS) \
d32ab992 24046 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24047 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24048 done; \
d32ab992 24049 echo "Doing clean in sed" ; \
215c351a 24050 (cd $(HOST_SUBDIR)/sed && \
295f4e42
NN
24051 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24052 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24053 "RANLIB=$${RANLIB}" \
24054 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24055 clean) \
295f4e42
NN
24056 || exit 1
24057
d32ab992 24058@endif sed
295f4e42 24059
d32ab992
PB
24060.PHONY: maybe-distclean-sed distclean-sed
24061maybe-distclean-sed:
24062@if sed
24063maybe-distclean-sed: distclean-sed
295f4e42 24064
05750653 24065distclean-sed:
f41d6665 24066 @: $(MAKE); $(unstage)
d32ab992 24067 @[ -f ./sed/Makefile ] || exit 0; \
295f4e42
NN
24068 r=`${PWD_COMMAND}`; export r; \
24069 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24070 $(HOST_EXPORTS) \
d32ab992 24071 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24072 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24073 done; \
d32ab992 24074 echo "Doing distclean in sed" ; \
215c351a 24075 (cd $(HOST_SUBDIR)/sed && \
295f4e42
NN
24076 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24077 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24078 "RANLIB=$${RANLIB}" \
24079 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24080 distclean) \
295f4e42
NN
24081 || exit 1
24082
d32ab992 24083@endif sed
295f4e42 24084
d32ab992
PB
24085.PHONY: maybe-maintainer-clean-sed maintainer-clean-sed
24086maybe-maintainer-clean-sed:
24087@if sed
24088maybe-maintainer-clean-sed: maintainer-clean-sed
295f4e42 24089
05750653 24090maintainer-clean-sed:
f41d6665 24091 @: $(MAKE); $(unstage)
d32ab992 24092 @[ -f ./sed/Makefile ] || exit 0; \
295f4e42
NN
24093 r=`${PWD_COMMAND}`; export r; \
24094 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24095 $(HOST_EXPORTS) \
d32ab992 24096 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24097 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24098 done; \
d32ab992 24099 echo "Doing maintainer-clean in sed" ; \
215c351a 24100 (cd $(HOST_SUBDIR)/sed && \
295f4e42
NN
24101 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24102 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24103 "RANLIB=$${RANLIB}" \
24104 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24105 maintainer-clean) \
295f4e42 24106 || exit 1
7e2dbcef 24107
d32ab992 24108@endif sed
4977bab6
ZW
24109
24110
25b42232 24111
d32ab992
PB
24112.PHONY: configure-send-pr maybe-configure-send-pr
24113maybe-configure-send-pr:
3ff3adad
PB
24114@if gcc-bootstrap
24115configure-send-pr: stage_current
24116@endif gcc-bootstrap
d32ab992
PB
24117@if send-pr
24118maybe-configure-send-pr: configure-send-pr
cc11cc9b 24119configure-send-pr:
f41d6665 24120 @: $(MAKE); $(unstage)
cc11cc9b 24121 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 24122 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
24123 test ! -f $(HOST_SUBDIR)/send-pr/Makefile || exit 0; \
24124 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/send-pr ; \
4fc4dd12 24125 $(HOST_EXPORTS) \
25b42232
PB
24126 echo Configuring in $(HOST_SUBDIR)/send-pr; \
24127 cd "$(HOST_SUBDIR)/send-pr" || exit 1; \
4977bab6 24128 case $(srcdir) in \
215c351a
PB
24129 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24130 *) topdir=`echo $(HOST_SUBDIR)/send-pr/ | \
24131 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 24132 esac; \
215c351a
PB
24133 srcdiroption="--srcdir=$${topdir}/send-pr"; \
24134 libsrcdir="$$s/send-pr"; \
4977bab6 24135 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 24136 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 24137 || exit 1
d32ab992 24138@endif send-pr
4977bab6 24139
25b42232
PB
24140
24141
ce406537
PB
24142
24143
d32ab992
PB
24144.PHONY: all-send-pr maybe-all-send-pr
24145maybe-all-send-pr:
3ff3adad
PB
24146@if gcc-bootstrap
24147all-send-pr: stage_current
24148@endif gcc-bootstrap
d32ab992 24149@if send-pr
7e0b5752 24150TARGET-send-pr=all
d32ab992
PB
24151maybe-all-send-pr: all-send-pr
24152all-send-pr: configure-send-pr
f41d6665 24153 @: $(MAKE); $(unstage)
8c90b13a
L
24154 @r=`${PWD_COMMAND}`; export r; \
24155 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24156 $(HOST_EXPORTS) \
215c351a
PB
24157 (cd $(HOST_SUBDIR)/send-pr && \
24158 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-send-pr))
d32ab992 24159@endif send-pr
4977bab6 24160
25b42232 24161
ce406537
PB
24162
24163
d32ab992
PB
24164.PHONY: check-send-pr maybe-check-send-pr
24165maybe-check-send-pr:
24166@if send-pr
24167maybe-check-send-pr: check-send-pr
4977bab6 24168
d32ab992 24169check-send-pr:
f41d6665 24170 @: $(MAKE); $(unstage)
8c90b13a
L
24171 @r=`${PWD_COMMAND}`; export r; \
24172 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24173 $(HOST_EXPORTS) \
215c351a
PB
24174 (cd $(HOST_SUBDIR)/send-pr && \
24175 $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6 24176
d32ab992 24177@endif send-pr
4977bab6 24178
d32ab992
PB
24179.PHONY: install-send-pr maybe-install-send-pr
24180maybe-install-send-pr:
24181@if send-pr
24182maybe-install-send-pr: install-send-pr
7e2dbcef 24183
d32ab992 24184install-send-pr: installdirs
f41d6665 24185 @: $(MAKE); $(unstage)
8c90b13a
L
24186 @r=`${PWD_COMMAND}`; export r; \
24187 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24188 $(HOST_EXPORTS) \
215c351a 24189 (cd $(HOST_SUBDIR)/send-pr && \
ace9ac7b 24190 $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6 24191
d32ab992 24192@endif send-pr
4977bab6 24193
295f4e42
NN
24194# Other targets (info, dvi, etc.)
24195
d32ab992
PB
24196.PHONY: maybe-info-send-pr info-send-pr
24197maybe-info-send-pr:
24198@if send-pr
24199maybe-info-send-pr: info-send-pr
295f4e42 24200
d32ab992 24201info-send-pr: \
05750653 24202 configure-send-pr
f41d6665 24203 @: $(MAKE); $(unstage)
d32ab992 24204 @[ -f ./send-pr/Makefile ] || exit 0; \
295f4e42
NN
24205 r=`${PWD_COMMAND}`; export r; \
24206 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24207 $(HOST_EXPORTS) \
d32ab992 24208 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24209 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24210 done; \
d32ab992 24211 echo "Doing info in send-pr" ; \
215c351a 24212 (cd $(HOST_SUBDIR)/send-pr && \
295f4e42
NN
24213 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24214 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24215 "RANLIB=$${RANLIB}" \
24216 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24217 info) \
295f4e42
NN
24218 || exit 1
24219
d32ab992 24220@endif send-pr
295f4e42 24221
d32ab992
PB
24222.PHONY: maybe-dvi-send-pr dvi-send-pr
24223maybe-dvi-send-pr:
24224@if send-pr
24225maybe-dvi-send-pr: dvi-send-pr
295f4e42 24226
d32ab992 24227dvi-send-pr: \
05750653 24228 configure-send-pr
f41d6665 24229 @: $(MAKE); $(unstage)
d32ab992 24230 @[ -f ./send-pr/Makefile ] || exit 0; \
295f4e42
NN
24231 r=`${PWD_COMMAND}`; export r; \
24232 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24233 $(HOST_EXPORTS) \
d32ab992 24234 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24235 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24236 done; \
d32ab992 24237 echo "Doing dvi in send-pr" ; \
215c351a 24238 (cd $(HOST_SUBDIR)/send-pr && \
295f4e42
NN
24239 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24240 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24241 "RANLIB=$${RANLIB}" \
24242 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24243 dvi) \
295f4e42
NN
24244 || exit 1
24245
d32ab992 24246@endif send-pr
295f4e42 24247
f87a2b2e
MS
24248.PHONY: maybe-html-send-pr html-send-pr
24249maybe-html-send-pr:
24250@if send-pr
24251maybe-html-send-pr: html-send-pr
24252
24253html-send-pr: \
05750653 24254 configure-send-pr
f41d6665 24255 @: $(MAKE); $(unstage)
f87a2b2e
MS
24256 @[ -f ./send-pr/Makefile ] || exit 0; \
24257 r=`${PWD_COMMAND}`; export r; \
24258 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
24259 $(HOST_EXPORTS) \
24260 for flag in $(EXTRA_HOST_FLAGS) ; do \
24261 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24262 done; \
24263 echo "Doing html in send-pr" ; \
215c351a 24264 (cd $(HOST_SUBDIR)/send-pr && \
f87a2b2e
MS
24265 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24266 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24267 "RANLIB=$${RANLIB}" \
24268 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
24269 html) \
24270 || exit 1
24271
24272@endif send-pr
24273
d32ab992
PB
24274.PHONY: maybe-TAGS-send-pr TAGS-send-pr
24275maybe-TAGS-send-pr:
24276@if send-pr
24277maybe-TAGS-send-pr: TAGS-send-pr
295f4e42 24278
d32ab992 24279TAGS-send-pr: \
05750653 24280 configure-send-pr
f41d6665 24281 @: $(MAKE); $(unstage)
d32ab992 24282 @[ -f ./send-pr/Makefile ] || exit 0; \
295f4e42
NN
24283 r=`${PWD_COMMAND}`; export r; \
24284 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24285 $(HOST_EXPORTS) \
d32ab992 24286 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24287 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24288 done; \
d32ab992 24289 echo "Doing TAGS in send-pr" ; \
215c351a 24290 (cd $(HOST_SUBDIR)/send-pr && \
295f4e42
NN
24291 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24292 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24293 "RANLIB=$${RANLIB}" \
24294 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24295 TAGS) \
295f4e42
NN
24296 || exit 1
24297
d32ab992 24298@endif send-pr
295f4e42 24299
d32ab992
PB
24300.PHONY: maybe-install-info-send-pr install-info-send-pr
24301maybe-install-info-send-pr:
24302@if send-pr
24303maybe-install-info-send-pr: install-info-send-pr
295f4e42 24304
d32ab992
PB
24305install-info-send-pr: \
24306 configure-send-pr \
05750653 24307 info-send-pr
f41d6665 24308 @: $(MAKE); $(unstage)
d32ab992 24309 @[ -f ./send-pr/Makefile ] || exit 0; \
295f4e42
NN
24310 r=`${PWD_COMMAND}`; export r; \
24311 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24312 $(HOST_EXPORTS) \
d32ab992 24313 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24314 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24315 done; \
d32ab992 24316 echo "Doing install-info in send-pr" ; \
215c351a 24317 (cd $(HOST_SUBDIR)/send-pr && \
295f4e42
NN
24318 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24319 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24320 "RANLIB=$${RANLIB}" \
24321 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24322 install-info) \
295f4e42
NN
24323 || exit 1
24324
d32ab992 24325@endif send-pr
295f4e42 24326
65d6e994
CD
24327.PHONY: maybe-install-html-send-pr install-html-send-pr
24328maybe-install-html-send-pr:
24329@if send-pr
24330maybe-install-html-send-pr: install-html-send-pr
24331
24332install-html-send-pr: \
24333 configure-send-pr \
24334 html-send-pr
24335 @: $(MAKE); $(unstage)
24336 @[ -f ./send-pr/Makefile ] || exit 0; \
24337 r=`${PWD_COMMAND}`; export r; \
24338 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24339 $(HOST_EXPORTS) \
24340 for flag in $(EXTRA_HOST_FLAGS) ; do \
24341 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24342 done; \
24343 echo "Doing install-html in send-pr" ; \
24344 (cd $(HOST_SUBDIR)/send-pr && \
24345 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24346 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24347 "RANLIB=$${RANLIB}" \
24348 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
24349 install-html) \
24350 || exit 1
24351
24352@endif send-pr
24353
d32ab992
PB
24354.PHONY: maybe-installcheck-send-pr installcheck-send-pr
24355maybe-installcheck-send-pr:
24356@if send-pr
24357maybe-installcheck-send-pr: installcheck-send-pr
295f4e42 24358
d32ab992 24359installcheck-send-pr: \
05750653 24360 configure-send-pr
f41d6665 24361 @: $(MAKE); $(unstage)
d32ab992 24362 @[ -f ./send-pr/Makefile ] || exit 0; \
295f4e42
NN
24363 r=`${PWD_COMMAND}`; export r; \
24364 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24365 $(HOST_EXPORTS) \
d32ab992 24366 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24367 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24368 done; \
d32ab992 24369 echo "Doing installcheck in send-pr" ; \
215c351a 24370 (cd $(HOST_SUBDIR)/send-pr && \
295f4e42
NN
24371 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24372 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24373 "RANLIB=$${RANLIB}" \
24374 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24375 installcheck) \
295f4e42
NN
24376 || exit 1
24377
d32ab992 24378@endif send-pr
295f4e42 24379
d32ab992
PB
24380.PHONY: maybe-mostlyclean-send-pr mostlyclean-send-pr
24381maybe-mostlyclean-send-pr:
24382@if send-pr
24383maybe-mostlyclean-send-pr: mostlyclean-send-pr
295f4e42 24384
05750653 24385mostlyclean-send-pr:
f41d6665 24386 @: $(MAKE); $(unstage)
d32ab992 24387 @[ -f ./send-pr/Makefile ] || exit 0; \
295f4e42
NN
24388 r=`${PWD_COMMAND}`; export r; \
24389 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24390 $(HOST_EXPORTS) \
d32ab992 24391 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24392 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24393 done; \
d32ab992 24394 echo "Doing mostlyclean in send-pr" ; \
215c351a 24395 (cd $(HOST_SUBDIR)/send-pr && \
295f4e42
NN
24396 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24397 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24398 "RANLIB=$${RANLIB}" \
24399 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24400 mostlyclean) \
295f4e42
NN
24401 || exit 1
24402
d32ab992 24403@endif send-pr
295f4e42 24404
d32ab992
PB
24405.PHONY: maybe-clean-send-pr clean-send-pr
24406maybe-clean-send-pr:
24407@if send-pr
24408maybe-clean-send-pr: clean-send-pr
295f4e42 24409
05750653 24410clean-send-pr:
f41d6665 24411 @: $(MAKE); $(unstage)
d32ab992 24412 @[ -f ./send-pr/Makefile ] || exit 0; \
295f4e42
NN
24413 r=`${PWD_COMMAND}`; export r; \
24414 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24415 $(HOST_EXPORTS) \
d32ab992 24416 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24417 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24418 done; \
d32ab992 24419 echo "Doing clean in send-pr" ; \
215c351a 24420 (cd $(HOST_SUBDIR)/send-pr && \
295f4e42
NN
24421 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24422 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24423 "RANLIB=$${RANLIB}" \
24424 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24425 clean) \
295f4e42
NN
24426 || exit 1
24427
d32ab992 24428@endif send-pr
295f4e42 24429
d32ab992
PB
24430.PHONY: maybe-distclean-send-pr distclean-send-pr
24431maybe-distclean-send-pr:
24432@if send-pr
24433maybe-distclean-send-pr: distclean-send-pr
295f4e42 24434
05750653 24435distclean-send-pr:
f41d6665 24436 @: $(MAKE); $(unstage)
d32ab992 24437 @[ -f ./send-pr/Makefile ] || exit 0; \
295f4e42
NN
24438 r=`${PWD_COMMAND}`; export r; \
24439 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24440 $(HOST_EXPORTS) \
d32ab992 24441 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24442 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24443 done; \
d32ab992 24444 echo "Doing distclean in send-pr" ; \
215c351a 24445 (cd $(HOST_SUBDIR)/send-pr && \
295f4e42
NN
24446 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24447 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24448 "RANLIB=$${RANLIB}" \
24449 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24450 distclean) \
295f4e42
NN
24451 || exit 1
24452
d32ab992 24453@endif send-pr
295f4e42 24454
d32ab992
PB
24455.PHONY: maybe-maintainer-clean-send-pr maintainer-clean-send-pr
24456maybe-maintainer-clean-send-pr:
24457@if send-pr
24458maybe-maintainer-clean-send-pr: maintainer-clean-send-pr
295f4e42 24459
05750653 24460maintainer-clean-send-pr:
f41d6665 24461 @: $(MAKE); $(unstage)
d32ab992 24462 @[ -f ./send-pr/Makefile ] || exit 0; \
295f4e42
NN
24463 r=`${PWD_COMMAND}`; export r; \
24464 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24465 $(HOST_EXPORTS) \
d32ab992 24466 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24467 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24468 done; \
d32ab992 24469 echo "Doing maintainer-clean in send-pr" ; \
215c351a 24470 (cd $(HOST_SUBDIR)/send-pr && \
295f4e42
NN
24471 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24472 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24473 "RANLIB=$${RANLIB}" \
24474 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24475 maintainer-clean) \
295f4e42
NN
24476 || exit 1
24477
d32ab992 24478@endif send-pr
295f4e42
NN
24479
24480
25b42232 24481
d32ab992
PB
24482.PHONY: configure-shellutils maybe-configure-shellutils
24483maybe-configure-shellutils:
3ff3adad
PB
24484@if gcc-bootstrap
24485configure-shellutils: stage_current
24486@endif gcc-bootstrap
d32ab992
PB
24487@if shellutils
24488maybe-configure-shellutils: configure-shellutils
cc11cc9b 24489configure-shellutils:
f41d6665 24490 @: $(MAKE); $(unstage)
cc11cc9b 24491 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 24492 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
24493 test ! -f $(HOST_SUBDIR)/shellutils/Makefile || exit 0; \
24494 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/shellutils ; \
4fc4dd12 24495 $(HOST_EXPORTS) \
25b42232
PB
24496 echo Configuring in $(HOST_SUBDIR)/shellutils; \
24497 cd "$(HOST_SUBDIR)/shellutils" || exit 1; \
4977bab6 24498 case $(srcdir) in \
215c351a
PB
24499 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24500 *) topdir=`echo $(HOST_SUBDIR)/shellutils/ | \
24501 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 24502 esac; \
215c351a
PB
24503 srcdiroption="--srcdir=$${topdir}/shellutils"; \
24504 libsrcdir="$$s/shellutils"; \
4977bab6 24505 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 24506 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 24507 || exit 1
d32ab992 24508@endif shellutils
4977bab6 24509
25b42232
PB
24510
24511
ce406537
PB
24512
24513
d32ab992
PB
24514.PHONY: all-shellutils maybe-all-shellutils
24515maybe-all-shellutils:
3ff3adad
PB
24516@if gcc-bootstrap
24517all-shellutils: stage_current
24518@endif gcc-bootstrap
d32ab992 24519@if shellutils
7e0b5752 24520TARGET-shellutils=all
d32ab992
PB
24521maybe-all-shellutils: all-shellutils
24522all-shellutils: configure-shellutils
f41d6665 24523 @: $(MAKE); $(unstage)
8c90b13a
L
24524 @r=`${PWD_COMMAND}`; export r; \
24525 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24526 $(HOST_EXPORTS) \
215c351a
PB
24527 (cd $(HOST_SUBDIR)/shellutils && \
24528 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-shellutils))
d32ab992 24529@endif shellutils
4977bab6 24530
25b42232 24531
ce406537
PB
24532
24533
d32ab992
PB
24534.PHONY: check-shellutils maybe-check-shellutils
24535maybe-check-shellutils:
24536@if shellutils
24537maybe-check-shellutils: check-shellutils
4977bab6 24538
d32ab992 24539check-shellutils:
f41d6665 24540 @: $(MAKE); $(unstage)
295f4e42
NN
24541 @r=`${PWD_COMMAND}`; export r; \
24542 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24543 $(HOST_EXPORTS) \
215c351a
PB
24544 (cd $(HOST_SUBDIR)/shellutils && \
24545 $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6 24546
d32ab992 24547@endif shellutils
4977bab6 24548
d32ab992
PB
24549.PHONY: install-shellutils maybe-install-shellutils
24550maybe-install-shellutils:
24551@if shellutils
24552maybe-install-shellutils: install-shellutils
7e2dbcef 24553
d32ab992 24554install-shellutils: installdirs
f41d6665 24555 @: $(MAKE); $(unstage)
8c90b13a
L
24556 @r=`${PWD_COMMAND}`; export r; \
24557 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24558 $(HOST_EXPORTS) \
215c351a 24559 (cd $(HOST_SUBDIR)/shellutils && \
ace9ac7b 24560 $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6 24561
d32ab992 24562@endif shellutils
4977bab6 24563
295f4e42
NN
24564# Other targets (info, dvi, etc.)
24565
d32ab992
PB
24566.PHONY: maybe-info-shellutils info-shellutils
24567maybe-info-shellutils:
24568@if shellutils
24569maybe-info-shellutils: info-shellutils
295f4e42 24570
d32ab992 24571info-shellutils: \
05750653 24572 configure-shellutils
f41d6665 24573 @: $(MAKE); $(unstage)
d32ab992 24574 @[ -f ./shellutils/Makefile ] || exit 0; \
8c90b13a
L
24575 r=`${PWD_COMMAND}`; export r; \
24576 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24577 $(HOST_EXPORTS) \
d32ab992 24578 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24579 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24580 done; \
d32ab992 24581 echo "Doing info in shellutils" ; \
215c351a 24582 (cd $(HOST_SUBDIR)/shellutils && \
295f4e42
NN
24583 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24584 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24585 "RANLIB=$${RANLIB}" \
24586 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24587 info) \
4977bab6
ZW
24588 || exit 1
24589
d32ab992 24590@endif shellutils
295f4e42 24591
d32ab992
PB
24592.PHONY: maybe-dvi-shellutils dvi-shellutils
24593maybe-dvi-shellutils:
24594@if shellutils
24595maybe-dvi-shellutils: dvi-shellutils
295f4e42 24596
d32ab992 24597dvi-shellutils: \
05750653 24598 configure-shellutils
f41d6665 24599 @: $(MAKE); $(unstage)
d32ab992 24600 @[ -f ./shellutils/Makefile ] || exit 0; \
295f4e42 24601 r=`${PWD_COMMAND}`; export r; \
8c90b13a 24602 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24603 $(HOST_EXPORTS) \
d32ab992 24604 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24605 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24606 done; \
d32ab992 24607 echo "Doing dvi in shellutils" ; \
215c351a 24608 (cd $(HOST_SUBDIR)/shellutils && \
295f4e42
NN
24609 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24610 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24611 "RANLIB=$${RANLIB}" \
24612 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24613 dvi) \
295f4e42 24614 || exit 1
4977bab6 24615
d32ab992 24616@endif shellutils
4977bab6 24617
f87a2b2e
MS
24618.PHONY: maybe-html-shellutils html-shellutils
24619maybe-html-shellutils:
24620@if shellutils
24621maybe-html-shellutils: html-shellutils
24622
24623html-shellutils: \
05750653 24624 configure-shellutils
f41d6665 24625 @: $(MAKE); $(unstage)
f87a2b2e
MS
24626 @[ -f ./shellutils/Makefile ] || exit 0; \
24627 r=`${PWD_COMMAND}`; export r; \
24628 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
24629 $(HOST_EXPORTS) \
24630 for flag in $(EXTRA_HOST_FLAGS) ; do \
24631 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24632 done; \
24633 echo "Doing html in shellutils" ; \
215c351a 24634 (cd $(HOST_SUBDIR)/shellutils && \
f87a2b2e
MS
24635 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24636 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24637 "RANLIB=$${RANLIB}" \
24638 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
24639 html) \
24640 || exit 1
24641
24642@endif shellutils
24643
d32ab992
PB
24644.PHONY: maybe-TAGS-shellutils TAGS-shellutils
24645maybe-TAGS-shellutils:
24646@if shellutils
24647maybe-TAGS-shellutils: TAGS-shellutils
295f4e42 24648
d32ab992 24649TAGS-shellutils: \
05750653 24650 configure-shellutils
f41d6665 24651 @: $(MAKE); $(unstage)
d32ab992 24652 @[ -f ./shellutils/Makefile ] || exit 0; \
295f4e42 24653 r=`${PWD_COMMAND}`; export r; \
8c90b13a 24654 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24655 $(HOST_EXPORTS) \
d32ab992 24656 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24657 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24658 done; \
d32ab992 24659 echo "Doing TAGS in shellutils" ; \
215c351a 24660 (cd $(HOST_SUBDIR)/shellutils && \
295f4e42
NN
24661 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24662 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24663 "RANLIB=$${RANLIB}" \
24664 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24665 TAGS) \
295f4e42 24666 || exit 1
4977bab6 24667
d32ab992 24668@endif shellutils
4977bab6 24669
d32ab992
PB
24670.PHONY: maybe-install-info-shellutils install-info-shellutils
24671maybe-install-info-shellutils:
24672@if shellutils
24673maybe-install-info-shellutils: install-info-shellutils
7e2dbcef 24674
d32ab992
PB
24675install-info-shellutils: \
24676 configure-shellutils \
05750653 24677 info-shellutils
f41d6665 24678 @: $(MAKE); $(unstage)
d32ab992 24679 @[ -f ./shellutils/Makefile ] || exit 0; \
295f4e42
NN
24680 r=`${PWD_COMMAND}`; export r; \
24681 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24682 $(HOST_EXPORTS) \
d32ab992 24683 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24684 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24685 done; \
d32ab992 24686 echo "Doing install-info in shellutils" ; \
215c351a 24687 (cd $(HOST_SUBDIR)/shellutils && \
295f4e42
NN
24688 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24689 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24690 "RANLIB=$${RANLIB}" \
24691 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24692 install-info) \
295f4e42
NN
24693 || exit 1
24694
d32ab992 24695@endif shellutils
295f4e42 24696
65d6e994
CD
24697.PHONY: maybe-install-html-shellutils install-html-shellutils
24698maybe-install-html-shellutils:
24699@if shellutils
24700maybe-install-html-shellutils: install-html-shellutils
24701
24702install-html-shellutils: \
24703 configure-shellutils \
24704 html-shellutils
24705 @: $(MAKE); $(unstage)
24706 @[ -f ./shellutils/Makefile ] || exit 0; \
24707 r=`${PWD_COMMAND}`; export r; \
24708 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24709 $(HOST_EXPORTS) \
24710 for flag in $(EXTRA_HOST_FLAGS) ; do \
24711 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24712 done; \
24713 echo "Doing install-html in shellutils" ; \
24714 (cd $(HOST_SUBDIR)/shellutils && \
24715 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24716 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24717 "RANLIB=$${RANLIB}" \
24718 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
24719 install-html) \
24720 || exit 1
24721
24722@endif shellutils
24723
d32ab992
PB
24724.PHONY: maybe-installcheck-shellutils installcheck-shellutils
24725maybe-installcheck-shellutils:
24726@if shellutils
24727maybe-installcheck-shellutils: installcheck-shellutils
295f4e42 24728
d32ab992 24729installcheck-shellutils: \
05750653 24730 configure-shellutils
f41d6665 24731 @: $(MAKE); $(unstage)
d32ab992 24732 @[ -f ./shellutils/Makefile ] || exit 0; \
295f4e42
NN
24733 r=`${PWD_COMMAND}`; export r; \
24734 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24735 $(HOST_EXPORTS) \
d32ab992 24736 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24737 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24738 done; \
d32ab992 24739 echo "Doing installcheck in shellutils" ; \
215c351a 24740 (cd $(HOST_SUBDIR)/shellutils && \
295f4e42
NN
24741 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24742 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24743 "RANLIB=$${RANLIB}" \
24744 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24745 installcheck) \
295f4e42
NN
24746 || exit 1
24747
d32ab992 24748@endif shellutils
295f4e42 24749
d32ab992
PB
24750.PHONY: maybe-mostlyclean-shellutils mostlyclean-shellutils
24751maybe-mostlyclean-shellutils:
24752@if shellutils
24753maybe-mostlyclean-shellutils: mostlyclean-shellutils
295f4e42 24754
05750653 24755mostlyclean-shellutils:
f41d6665 24756 @: $(MAKE); $(unstage)
d32ab992 24757 @[ -f ./shellutils/Makefile ] || exit 0; \
295f4e42
NN
24758 r=`${PWD_COMMAND}`; export r; \
24759 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24760 $(HOST_EXPORTS) \
d32ab992 24761 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24762 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24763 done; \
d32ab992 24764 echo "Doing mostlyclean in shellutils" ; \
215c351a 24765 (cd $(HOST_SUBDIR)/shellutils && \
295f4e42
NN
24766 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24767 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24768 "RANLIB=$${RANLIB}" \
24769 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24770 mostlyclean) \
295f4e42
NN
24771 || exit 1
24772
d32ab992 24773@endif shellutils
295f4e42 24774
d32ab992
PB
24775.PHONY: maybe-clean-shellutils clean-shellutils
24776maybe-clean-shellutils:
24777@if shellutils
24778maybe-clean-shellutils: clean-shellutils
295f4e42 24779
05750653 24780clean-shellutils:
f41d6665 24781 @: $(MAKE); $(unstage)
d32ab992 24782 @[ -f ./shellutils/Makefile ] || exit 0; \
295f4e42
NN
24783 r=`${PWD_COMMAND}`; export r; \
24784 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24785 $(HOST_EXPORTS) \
d32ab992 24786 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24787 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24788 done; \
d32ab992 24789 echo "Doing clean in shellutils" ; \
215c351a 24790 (cd $(HOST_SUBDIR)/shellutils && \
295f4e42
NN
24791 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24792 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24793 "RANLIB=$${RANLIB}" \
24794 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24795 clean) \
295f4e42
NN
24796 || exit 1
24797
d32ab992 24798@endif shellutils
295f4e42 24799
d32ab992
PB
24800.PHONY: maybe-distclean-shellutils distclean-shellutils
24801maybe-distclean-shellutils:
24802@if shellutils
24803maybe-distclean-shellutils: distclean-shellutils
295f4e42 24804
05750653 24805distclean-shellutils:
f41d6665 24806 @: $(MAKE); $(unstage)
d32ab992 24807 @[ -f ./shellutils/Makefile ] || exit 0; \
295f4e42
NN
24808 r=`${PWD_COMMAND}`; export r; \
24809 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24810 $(HOST_EXPORTS) \
d32ab992 24811 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24812 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24813 done; \
d32ab992 24814 echo "Doing distclean in shellutils" ; \
215c351a 24815 (cd $(HOST_SUBDIR)/shellutils && \
295f4e42
NN
24816 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24817 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24818 "RANLIB=$${RANLIB}" \
24819 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24820 distclean) \
295f4e42
NN
24821 || exit 1
24822
d32ab992 24823@endif shellutils
295f4e42 24824
d32ab992
PB
24825.PHONY: maybe-maintainer-clean-shellutils maintainer-clean-shellutils
24826maybe-maintainer-clean-shellutils:
24827@if shellutils
24828maybe-maintainer-clean-shellutils: maintainer-clean-shellutils
295f4e42 24829
05750653 24830maintainer-clean-shellutils:
f41d6665 24831 @: $(MAKE); $(unstage)
d32ab992 24832 @[ -f ./shellutils/Makefile ] || exit 0; \
295f4e42 24833 r=`${PWD_COMMAND}`; export r; \
8c90b13a 24834 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24835 $(HOST_EXPORTS) \
d32ab992 24836 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24837 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24838 done; \
d32ab992 24839 echo "Doing maintainer-clean in shellutils" ; \
215c351a 24840 (cd $(HOST_SUBDIR)/shellutils && \
295f4e42
NN
24841 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24842 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24843 "RANLIB=$${RANLIB}" \
24844 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24845 maintainer-clean) \
295f4e42 24846 || exit 1
4977bab6 24847
d32ab992 24848@endif shellutils
4977bab6 24849
295f4e42 24850
25b42232 24851
d32ab992
PB
24852.PHONY: configure-sid maybe-configure-sid
24853maybe-configure-sid:
3ff3adad
PB
24854@if gcc-bootstrap
24855configure-sid: stage_current
24856@endif gcc-bootstrap
d32ab992
PB
24857@if sid
24858maybe-configure-sid: configure-sid
cc11cc9b 24859configure-sid:
f41d6665 24860 @: $(MAKE); $(unstage)
cc11cc9b 24861 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 24862 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
24863 test ! -f $(HOST_SUBDIR)/sid/Makefile || exit 0; \
24864 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/sid ; \
4fc4dd12 24865 $(HOST_EXPORTS) \
25b42232
PB
24866 echo Configuring in $(HOST_SUBDIR)/sid; \
24867 cd "$(HOST_SUBDIR)/sid" || exit 1; \
4977bab6 24868 case $(srcdir) in \
215c351a
PB
24869 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24870 *) topdir=`echo $(HOST_SUBDIR)/sid/ | \
24871 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 24872 esac; \
215c351a
PB
24873 srcdiroption="--srcdir=$${topdir}/sid"; \
24874 libsrcdir="$$s/sid"; \
4977bab6 24875 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 24876 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 24877 || exit 1
d32ab992 24878@endif sid
4977bab6 24879
25b42232
PB
24880
24881
ce406537
PB
24882
24883
d32ab992
PB
24884.PHONY: all-sid maybe-all-sid
24885maybe-all-sid:
3ff3adad
PB
24886@if gcc-bootstrap
24887all-sid: stage_current
24888@endif gcc-bootstrap
d32ab992 24889@if sid
7e0b5752 24890TARGET-sid=all
d32ab992
PB
24891maybe-all-sid: all-sid
24892all-sid: configure-sid
f41d6665 24893 @: $(MAKE); $(unstage)
8c90b13a
L
24894 @r=`${PWD_COMMAND}`; export r; \
24895 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24896 $(HOST_EXPORTS) \
215c351a
PB
24897 (cd $(HOST_SUBDIR)/sid && \
24898 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-sid))
d32ab992 24899@endif sid
4977bab6 24900
25b42232 24901
ce406537
PB
24902
24903
d32ab992
PB
24904.PHONY: check-sid maybe-check-sid
24905maybe-check-sid:
24906@if sid
24907maybe-check-sid: check-sid
4977bab6 24908
d32ab992 24909check-sid:
f41d6665 24910 @: $(MAKE); $(unstage)
295f4e42
NN
24911 @r=`${PWD_COMMAND}`; export r; \
24912 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24913 $(HOST_EXPORTS) \
215c351a
PB
24914 (cd $(HOST_SUBDIR)/sid && \
24915 $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6 24916
d32ab992 24917@endif sid
4977bab6 24918
d32ab992
PB
24919.PHONY: install-sid maybe-install-sid
24920maybe-install-sid:
24921@if sid
24922maybe-install-sid: install-sid
7e2dbcef 24923
d32ab992 24924install-sid: installdirs
f41d6665 24925 @: $(MAKE); $(unstage)
8c90b13a
L
24926 @r=`${PWD_COMMAND}`; export r; \
24927 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24928 $(HOST_EXPORTS) \
215c351a 24929 (cd $(HOST_SUBDIR)/sid && \
ace9ac7b 24930 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 24931
d32ab992 24932@endif sid
295f4e42
NN
24933
24934# Other targets (info, dvi, etc.)
24935
d32ab992
PB
24936.PHONY: maybe-info-sid info-sid
24937maybe-info-sid:
24938@if sid
24939maybe-info-sid: info-sid
295f4e42 24940
d32ab992 24941info-sid: \
05750653 24942 configure-sid
f41d6665 24943 @: $(MAKE); $(unstage)
d32ab992 24944 @[ -f ./sid/Makefile ] || exit 0; \
295f4e42
NN
24945 r=`${PWD_COMMAND}`; export r; \
24946 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24947 $(HOST_EXPORTS) \
d32ab992 24948 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24949 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24950 done; \
d32ab992 24951 echo "Doing info in sid" ; \
215c351a 24952 (cd $(HOST_SUBDIR)/sid && \
295f4e42
NN
24953 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24954 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24955 "RANLIB=$${RANLIB}" \
24956 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24957 info) \
295f4e42
NN
24958 || exit 1
24959
d32ab992 24960@endif sid
295f4e42 24961
d32ab992
PB
24962.PHONY: maybe-dvi-sid dvi-sid
24963maybe-dvi-sid:
24964@if sid
24965maybe-dvi-sid: dvi-sid
295f4e42 24966
d32ab992 24967dvi-sid: \
05750653 24968 configure-sid
f41d6665 24969 @: $(MAKE); $(unstage)
d32ab992 24970 @[ -f ./sid/Makefile ] || exit 0; \
295f4e42
NN
24971 r=`${PWD_COMMAND}`; export r; \
24972 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24973 $(HOST_EXPORTS) \
d32ab992 24974 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24975 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24976 done; \
d32ab992 24977 echo "Doing dvi in sid" ; \
215c351a 24978 (cd $(HOST_SUBDIR)/sid && \
295f4e42
NN
24979 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24980 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24981 "RANLIB=$${RANLIB}" \
24982 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24983 dvi) \
295f4e42
NN
24984 || exit 1
24985
d32ab992 24986@endif sid
295f4e42 24987
f87a2b2e
MS
24988.PHONY: maybe-html-sid html-sid
24989maybe-html-sid:
24990@if sid
24991maybe-html-sid: html-sid
24992
24993html-sid: \
05750653 24994 configure-sid
f41d6665 24995 @: $(MAKE); $(unstage)
f87a2b2e
MS
24996 @[ -f ./sid/Makefile ] || exit 0; \
24997 r=`${PWD_COMMAND}`; export r; \
24998 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
24999 $(HOST_EXPORTS) \
25000 for flag in $(EXTRA_HOST_FLAGS) ; do \
25001 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25002 done; \
25003 echo "Doing html in sid" ; \
215c351a 25004 (cd $(HOST_SUBDIR)/sid && \
f87a2b2e
MS
25005 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25006 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25007 "RANLIB=$${RANLIB}" \
25008 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
25009 html) \
25010 || exit 1
25011
25012@endif sid
25013
d32ab992
PB
25014.PHONY: maybe-TAGS-sid TAGS-sid
25015maybe-TAGS-sid:
25016@if sid
25017maybe-TAGS-sid: TAGS-sid
295f4e42 25018
d32ab992 25019TAGS-sid: \
05750653 25020 configure-sid
f41d6665 25021 @: $(MAKE); $(unstage)
d32ab992 25022 @[ -f ./sid/Makefile ] || exit 0; \
295f4e42
NN
25023 r=`${PWD_COMMAND}`; export r; \
25024 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25025 $(HOST_EXPORTS) \
d32ab992 25026 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25027 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25028 done; \
d32ab992 25029 echo "Doing TAGS in sid" ; \
215c351a 25030 (cd $(HOST_SUBDIR)/sid && \
295f4e42
NN
25031 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25032 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25033 "RANLIB=$${RANLIB}" \
25034 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25035 TAGS) \
295f4e42
NN
25036 || exit 1
25037
d32ab992 25038@endif sid
295f4e42 25039
d32ab992
PB
25040.PHONY: maybe-install-info-sid install-info-sid
25041maybe-install-info-sid:
25042@if sid
25043maybe-install-info-sid: install-info-sid
295f4e42 25044
d32ab992
PB
25045install-info-sid: \
25046 configure-sid \
05750653 25047 info-sid
f41d6665 25048 @: $(MAKE); $(unstage)
d32ab992 25049 @[ -f ./sid/Makefile ] || exit 0; \
295f4e42
NN
25050 r=`${PWD_COMMAND}`; export r; \
25051 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25052 $(HOST_EXPORTS) \
d32ab992 25053 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25054 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25055 done; \
d32ab992 25056 echo "Doing install-info in sid" ; \
215c351a 25057 (cd $(HOST_SUBDIR)/sid && \
295f4e42
NN
25058 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25059 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25060 "RANLIB=$${RANLIB}" \
25061 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25062 install-info) \
295f4e42
NN
25063 || exit 1
25064
d32ab992 25065@endif sid
295f4e42 25066
65d6e994
CD
25067.PHONY: maybe-install-html-sid install-html-sid
25068maybe-install-html-sid:
25069@if sid
25070maybe-install-html-sid: install-html-sid
25071
25072install-html-sid: \
25073 configure-sid \
25074 html-sid
25075 @: $(MAKE); $(unstage)
25076 @[ -f ./sid/Makefile ] || exit 0; \
25077 r=`${PWD_COMMAND}`; export r; \
25078 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25079 $(HOST_EXPORTS) \
25080 for flag in $(EXTRA_HOST_FLAGS) ; do \
25081 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25082 done; \
25083 echo "Doing install-html in sid" ; \
25084 (cd $(HOST_SUBDIR)/sid && \
25085 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25086 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25087 "RANLIB=$${RANLIB}" \
25088 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
25089 install-html) \
25090 || exit 1
25091
25092@endif sid
25093
d32ab992
PB
25094.PHONY: maybe-installcheck-sid installcheck-sid
25095maybe-installcheck-sid:
25096@if sid
25097maybe-installcheck-sid: installcheck-sid
295f4e42 25098
d32ab992 25099installcheck-sid: \
05750653 25100 configure-sid
f41d6665 25101 @: $(MAKE); $(unstage)
d32ab992
PB
25102 @[ -f ./sid/Makefile ] || exit 0; \
25103 r=`${PWD_COMMAND}`; export r; \
295f4e42 25104 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25105 $(HOST_EXPORTS) \
d32ab992 25106 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25107 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25108 done; \
d32ab992 25109 echo "Doing installcheck in sid" ; \
215c351a 25110 (cd $(HOST_SUBDIR)/sid && \
295f4e42
NN
25111 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25112 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25113 "RANLIB=$${RANLIB}" \
25114 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25115 installcheck) \
295f4e42
NN
25116 || exit 1
25117
d32ab992 25118@endif sid
295f4e42 25119
d32ab992
PB
25120.PHONY: maybe-mostlyclean-sid mostlyclean-sid
25121maybe-mostlyclean-sid:
25122@if sid
25123maybe-mostlyclean-sid: mostlyclean-sid
295f4e42 25124
05750653 25125mostlyclean-sid:
f41d6665 25126 @: $(MAKE); $(unstage)
d32ab992 25127 @[ -f ./sid/Makefile ] || exit 0; \
295f4e42
NN
25128 r=`${PWD_COMMAND}`; export r; \
25129 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25130 $(HOST_EXPORTS) \
d32ab992 25131 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25132 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25133 done; \
d32ab992 25134 echo "Doing mostlyclean in sid" ; \
215c351a 25135 (cd $(HOST_SUBDIR)/sid && \
295f4e42
NN
25136 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25137 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25138 "RANLIB=$${RANLIB}" \
25139 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25140 mostlyclean) \
295f4e42
NN
25141 || exit 1
25142
d32ab992 25143@endif sid
295f4e42 25144
d32ab992
PB
25145.PHONY: maybe-clean-sid clean-sid
25146maybe-clean-sid:
25147@if sid
25148maybe-clean-sid: clean-sid
295f4e42 25149
05750653 25150clean-sid:
f41d6665 25151 @: $(MAKE); $(unstage)
d32ab992 25152 @[ -f ./sid/Makefile ] || exit 0; \
295f4e42
NN
25153 r=`${PWD_COMMAND}`; export r; \
25154 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25155 $(HOST_EXPORTS) \
d32ab992 25156 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25157 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25158 done; \
d32ab992 25159 echo "Doing clean in sid" ; \
215c351a 25160 (cd $(HOST_SUBDIR)/sid && \
295f4e42
NN
25161 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25162 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25163 "RANLIB=$${RANLIB}" \
25164 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25165 clean) \
295f4e42
NN
25166 || exit 1
25167
d32ab992 25168@endif sid
295f4e42 25169
d32ab992
PB
25170.PHONY: maybe-distclean-sid distclean-sid
25171maybe-distclean-sid:
25172@if sid
25173maybe-distclean-sid: distclean-sid
295f4e42 25174
05750653 25175distclean-sid:
f41d6665 25176 @: $(MAKE); $(unstage)
d32ab992 25177 @[ -f ./sid/Makefile ] || exit 0; \
295f4e42
NN
25178 r=`${PWD_COMMAND}`; export r; \
25179 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25180 $(HOST_EXPORTS) \
d32ab992 25181 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25182 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25183 done; \
d32ab992 25184 echo "Doing distclean in sid" ; \
215c351a 25185 (cd $(HOST_SUBDIR)/sid && \
295f4e42
NN
25186 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25187 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25188 "RANLIB=$${RANLIB}" \
25189 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25190 distclean) \
295f4e42
NN
25191 || exit 1
25192
d32ab992 25193@endif sid
295f4e42 25194
d32ab992
PB
25195.PHONY: maybe-maintainer-clean-sid maintainer-clean-sid
25196maybe-maintainer-clean-sid:
25197@if sid
25198maybe-maintainer-clean-sid: maintainer-clean-sid
295f4e42 25199
05750653 25200maintainer-clean-sid:
f41d6665 25201 @: $(MAKE); $(unstage)
d32ab992 25202 @[ -f ./sid/Makefile ] || exit 0; \
295f4e42
NN
25203 r=`${PWD_COMMAND}`; export r; \
25204 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25205 $(HOST_EXPORTS) \
d32ab992 25206 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25207 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25208 done; \
d32ab992 25209 echo "Doing maintainer-clean in sid" ; \
215c351a 25210 (cd $(HOST_SUBDIR)/sid && \
295f4e42
NN
25211 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25212 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25213 "RANLIB=$${RANLIB}" \
25214 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25215 maintainer-clean) \
295f4e42 25216 || exit 1
4977bab6 25217
d32ab992 25218@endif sid
4977bab6 25219
295f4e42 25220
25b42232 25221
d32ab992
PB
25222.PHONY: configure-sim maybe-configure-sim
25223maybe-configure-sim:
3ff3adad
PB
25224@if gcc-bootstrap
25225configure-sim: stage_current
25226@endif gcc-bootstrap
d32ab992
PB
25227@if sim
25228maybe-configure-sim: configure-sim
cc11cc9b 25229configure-sim:
f41d6665 25230 @: $(MAKE); $(unstage)
cc11cc9b 25231 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 25232 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
25233 test ! -f $(HOST_SUBDIR)/sim/Makefile || exit 0; \
25234 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/sim ; \
4fc4dd12 25235 $(HOST_EXPORTS) \
25b42232
PB
25236 echo Configuring in $(HOST_SUBDIR)/sim; \
25237 cd "$(HOST_SUBDIR)/sim" || exit 1; \
4977bab6 25238 case $(srcdir) in \
215c351a
PB
25239 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
25240 *) topdir=`echo $(HOST_SUBDIR)/sim/ | \
25241 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 25242 esac; \
215c351a
PB
25243 srcdiroption="--srcdir=$${topdir}/sim"; \
25244 libsrcdir="$$s/sim"; \
4977bab6 25245 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 25246 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 25247 || exit 1
d32ab992 25248@endif sim
4977bab6 25249
25b42232
PB
25250
25251
ce406537
PB
25252
25253
d32ab992
PB
25254.PHONY: all-sim maybe-all-sim
25255maybe-all-sim:
3ff3adad
PB
25256@if gcc-bootstrap
25257all-sim: stage_current
25258@endif gcc-bootstrap
d32ab992 25259@if sim
7e0b5752 25260TARGET-sim=all
d32ab992
PB
25261maybe-all-sim: all-sim
25262all-sim: configure-sim
f41d6665 25263 @: $(MAKE); $(unstage)
8c90b13a
L
25264 @r=`${PWD_COMMAND}`; export r; \
25265 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25266 $(HOST_EXPORTS) \
215c351a
PB
25267 (cd $(HOST_SUBDIR)/sim && \
25268 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-sim))
d32ab992 25269@endif sim
4977bab6 25270
25b42232 25271
ce406537
PB
25272
25273
d32ab992
PB
25274.PHONY: check-sim maybe-check-sim
25275maybe-check-sim:
25276@if sim
25277maybe-check-sim: check-sim
4977bab6 25278
d32ab992 25279check-sim:
f41d6665 25280 @: $(MAKE); $(unstage)
8c90b13a
L
25281 @r=`${PWD_COMMAND}`; export r; \
25282 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25283 $(HOST_EXPORTS) \
215c351a
PB
25284 (cd $(HOST_SUBDIR)/sim && \
25285 $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6 25286
d32ab992 25287@endif sim
4977bab6 25288
d32ab992
PB
25289.PHONY: install-sim maybe-install-sim
25290maybe-install-sim:
25291@if sim
25292maybe-install-sim: install-sim
7e2dbcef 25293
d32ab992 25294install-sim: installdirs
f41d6665 25295 @: $(MAKE); $(unstage)
8c90b13a
L
25296 @r=`${PWD_COMMAND}`; export r; \
25297 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25298 $(HOST_EXPORTS) \
215c351a 25299 (cd $(HOST_SUBDIR)/sim && \
ace9ac7b 25300 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 25301
d32ab992 25302@endif sim
295f4e42
NN
25303
25304# Other targets (info, dvi, etc.)
25305
d32ab992
PB
25306.PHONY: maybe-info-sim info-sim
25307maybe-info-sim:
25308@if sim
25309maybe-info-sim: info-sim
295f4e42 25310
d32ab992 25311info-sim: \
05750653 25312 configure-sim
f41d6665 25313 @: $(MAKE); $(unstage)
d32ab992 25314 @[ -f ./sim/Makefile ] || exit 0; \
295f4e42
NN
25315 r=`${PWD_COMMAND}`; export r; \
25316 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25317 $(HOST_EXPORTS) \
d32ab992 25318 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25319 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25320 done; \
d32ab992 25321 echo "Doing info in sim" ; \
215c351a 25322 (cd $(HOST_SUBDIR)/sim && \
295f4e42
NN
25323 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25324 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25325 "RANLIB=$${RANLIB}" \
25326 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25327 info) \
295f4e42
NN
25328 || exit 1
25329
d32ab992 25330@endif sim
295f4e42 25331
d32ab992
PB
25332.PHONY: maybe-dvi-sim dvi-sim
25333maybe-dvi-sim:
25334@if sim
25335maybe-dvi-sim: dvi-sim
295f4e42 25336
d32ab992 25337dvi-sim: \
05750653 25338 configure-sim
f41d6665 25339 @: $(MAKE); $(unstage)
d32ab992 25340 @[ -f ./sim/Makefile ] || exit 0; \
295f4e42
NN
25341 r=`${PWD_COMMAND}`; export r; \
25342 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25343 $(HOST_EXPORTS) \
d32ab992 25344 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25345 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25346 done; \
d32ab992 25347 echo "Doing dvi in sim" ; \
215c351a 25348 (cd $(HOST_SUBDIR)/sim && \
295f4e42
NN
25349 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25350 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25351 "RANLIB=$${RANLIB}" \
25352 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25353 dvi) \
295f4e42
NN
25354 || exit 1
25355
d32ab992 25356@endif sim
295f4e42 25357
f87a2b2e
MS
25358.PHONY: maybe-html-sim html-sim
25359maybe-html-sim:
25360@if sim
25361maybe-html-sim: html-sim
25362
25363html-sim: \
05750653 25364 configure-sim
f41d6665 25365 @: $(MAKE); $(unstage)
f87a2b2e
MS
25366 @[ -f ./sim/Makefile ] || exit 0; \
25367 r=`${PWD_COMMAND}`; export r; \
25368 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
25369 $(HOST_EXPORTS) \
25370 for flag in $(EXTRA_HOST_FLAGS) ; do \
25371 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25372 done; \
25373 echo "Doing html in sim" ; \
215c351a 25374 (cd $(HOST_SUBDIR)/sim && \
f87a2b2e
MS
25375 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25376 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25377 "RANLIB=$${RANLIB}" \
25378 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
25379 html) \
25380 || exit 1
25381
25382@endif sim
25383
d32ab992
PB
25384.PHONY: maybe-TAGS-sim TAGS-sim
25385maybe-TAGS-sim:
25386@if sim
25387maybe-TAGS-sim: TAGS-sim
295f4e42 25388
d32ab992 25389TAGS-sim: \
05750653 25390 configure-sim
f41d6665 25391 @: $(MAKE); $(unstage)
d32ab992 25392 @[ -f ./sim/Makefile ] || exit 0; \
295f4e42
NN
25393 r=`${PWD_COMMAND}`; export r; \
25394 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25395 $(HOST_EXPORTS) \
d32ab992 25396 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25397 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25398 done; \
d32ab992 25399 echo "Doing TAGS in sim" ; \
215c351a 25400 (cd $(HOST_SUBDIR)/sim && \
295f4e42
NN
25401 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25402 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25403 "RANLIB=$${RANLIB}" \
25404 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25405 TAGS) \
295f4e42
NN
25406 || exit 1
25407
d32ab992 25408@endif sim
295f4e42 25409
d32ab992
PB
25410.PHONY: maybe-install-info-sim install-info-sim
25411maybe-install-info-sim:
25412@if sim
25413maybe-install-info-sim: install-info-sim
295f4e42 25414
d32ab992
PB
25415install-info-sim: \
25416 configure-sim \
05750653 25417 info-sim
f41d6665 25418 @: $(MAKE); $(unstage)
d32ab992 25419 @[ -f ./sim/Makefile ] || exit 0; \
295f4e42
NN
25420 r=`${PWD_COMMAND}`; export r; \
25421 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25422 $(HOST_EXPORTS) \
d32ab992 25423 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25424 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25425 done; \
d32ab992 25426 echo "Doing install-info in sim" ; \
215c351a 25427 (cd $(HOST_SUBDIR)/sim && \
295f4e42
NN
25428 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25429 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25430 "RANLIB=$${RANLIB}" \
25431 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25432 install-info) \
295f4e42
NN
25433 || exit 1
25434
d32ab992 25435@endif sim
295f4e42 25436
65d6e994
CD
25437.PHONY: maybe-install-html-sim install-html-sim
25438maybe-install-html-sim:
25439@if sim
25440maybe-install-html-sim: install-html-sim
25441
25442install-html-sim: \
25443 configure-sim \
25444 html-sim
25445 @: $(MAKE); $(unstage)
25446 @[ -f ./sim/Makefile ] || exit 0; \
25447 r=`${PWD_COMMAND}`; export r; \
25448 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25449 $(HOST_EXPORTS) \
25450 for flag in $(EXTRA_HOST_FLAGS) ; do \
25451 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25452 done; \
25453 echo "Doing install-html in sim" ; \
25454 (cd $(HOST_SUBDIR)/sim && \
25455 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25456 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25457 "RANLIB=$${RANLIB}" \
25458 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
25459 install-html) \
25460 || exit 1
25461
25462@endif sim
25463
d32ab992
PB
25464.PHONY: maybe-installcheck-sim installcheck-sim
25465maybe-installcheck-sim:
25466@if sim
25467maybe-installcheck-sim: installcheck-sim
295f4e42 25468
d32ab992 25469installcheck-sim: \
05750653 25470 configure-sim
f41d6665 25471 @: $(MAKE); $(unstage)
d32ab992 25472 @[ -f ./sim/Makefile ] || exit 0; \
295f4e42
NN
25473 r=`${PWD_COMMAND}`; export r; \
25474 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25475 $(HOST_EXPORTS) \
d32ab992 25476 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25477 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25478 done; \
d32ab992 25479 echo "Doing installcheck in sim" ; \
215c351a 25480 (cd $(HOST_SUBDIR)/sim && \
295f4e42
NN
25481 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25482 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25483 "RANLIB=$${RANLIB}" \
25484 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25485 installcheck) \
295f4e42
NN
25486 || exit 1
25487
d32ab992 25488@endif sim
295f4e42 25489
d32ab992
PB
25490.PHONY: maybe-mostlyclean-sim mostlyclean-sim
25491maybe-mostlyclean-sim:
25492@if sim
25493maybe-mostlyclean-sim: mostlyclean-sim
295f4e42 25494
05750653 25495mostlyclean-sim:
f41d6665 25496 @: $(MAKE); $(unstage)
d32ab992 25497 @[ -f ./sim/Makefile ] || exit 0; \
295f4e42
NN
25498 r=`${PWD_COMMAND}`; export r; \
25499 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25500 $(HOST_EXPORTS) \
d32ab992 25501 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25502 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25503 done; \
d32ab992 25504 echo "Doing mostlyclean in sim" ; \
215c351a 25505 (cd $(HOST_SUBDIR)/sim && \
295f4e42
NN
25506 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25507 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25508 "RANLIB=$${RANLIB}" \
25509 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25510 mostlyclean) \
295f4e42
NN
25511 || exit 1
25512
d32ab992 25513@endif sim
295f4e42 25514
d32ab992
PB
25515.PHONY: maybe-clean-sim clean-sim
25516maybe-clean-sim:
25517@if sim
25518maybe-clean-sim: clean-sim
295f4e42 25519
05750653 25520clean-sim:
f41d6665 25521 @: $(MAKE); $(unstage)
d32ab992 25522 @[ -f ./sim/Makefile ] || exit 0; \
295f4e42
NN
25523 r=`${PWD_COMMAND}`; export r; \
25524 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25525 $(HOST_EXPORTS) \
d32ab992 25526 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25527 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25528 done; \
d32ab992 25529 echo "Doing clean in sim" ; \
215c351a 25530 (cd $(HOST_SUBDIR)/sim && \
295f4e42
NN
25531 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25532 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25533 "RANLIB=$${RANLIB}" \
25534 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25535 clean) \
295f4e42
NN
25536 || exit 1
25537
d32ab992 25538@endif sim
295f4e42 25539
d32ab992
PB
25540.PHONY: maybe-distclean-sim distclean-sim
25541maybe-distclean-sim:
25542@if sim
25543maybe-distclean-sim: distclean-sim
295f4e42 25544
05750653 25545distclean-sim:
f41d6665 25546 @: $(MAKE); $(unstage)
d32ab992 25547 @[ -f ./sim/Makefile ] || exit 0; \
295f4e42
NN
25548 r=`${PWD_COMMAND}`; export r; \
25549 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25550 $(HOST_EXPORTS) \
d32ab992 25551 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25552 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25553 done; \
d32ab992 25554 echo "Doing distclean in sim" ; \
215c351a 25555 (cd $(HOST_SUBDIR)/sim && \
295f4e42
NN
25556 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25557 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25558 "RANLIB=$${RANLIB}" \
25559 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25560 distclean) \
295f4e42
NN
25561 || exit 1
25562
d32ab992 25563@endif sim
295f4e42 25564
d32ab992
PB
25565.PHONY: maybe-maintainer-clean-sim maintainer-clean-sim
25566maybe-maintainer-clean-sim:
25567@if sim
25568maybe-maintainer-clean-sim: maintainer-clean-sim
295f4e42 25569
05750653 25570maintainer-clean-sim:
f41d6665 25571 @: $(MAKE); $(unstage)
d32ab992 25572 @[ -f ./sim/Makefile ] || exit 0; \
295f4e42
NN
25573 r=`${PWD_COMMAND}`; export r; \
25574 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25575 $(HOST_EXPORTS) \
d32ab992 25576 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25577 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25578 done; \
d32ab992 25579 echo "Doing maintainer-clean in sim" ; \
215c351a 25580 (cd $(HOST_SUBDIR)/sim && \
295f4e42
NN
25581 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25582 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25583 "RANLIB=$${RANLIB}" \
25584 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25585 maintainer-clean) \
295f4e42
NN
25586 || exit 1
25587
d32ab992 25588@endif sim
4977bab6
ZW
25589
25590
25b42232 25591
d32ab992
PB
25592.PHONY: configure-tar maybe-configure-tar
25593maybe-configure-tar:
3ff3adad
PB
25594@if gcc-bootstrap
25595configure-tar: stage_current
25596@endif gcc-bootstrap
d32ab992
PB
25597@if tar
25598maybe-configure-tar: configure-tar
cc11cc9b 25599configure-tar:
f41d6665 25600 @: $(MAKE); $(unstage)
cc11cc9b 25601 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 25602 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
25603 test ! -f $(HOST_SUBDIR)/tar/Makefile || exit 0; \
25604 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/tar ; \
4fc4dd12 25605 $(HOST_EXPORTS) \
25b42232
PB
25606 echo Configuring in $(HOST_SUBDIR)/tar; \
25607 cd "$(HOST_SUBDIR)/tar" || exit 1; \
4977bab6 25608 case $(srcdir) in \
215c351a
PB
25609 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
25610 *) topdir=`echo $(HOST_SUBDIR)/tar/ | \
25611 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 25612 esac; \
215c351a
PB
25613 srcdiroption="--srcdir=$${topdir}/tar"; \
25614 libsrcdir="$$s/tar"; \
4977bab6 25615 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 25616 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 25617 || exit 1
d32ab992 25618@endif tar
4977bab6 25619
25b42232
PB
25620
25621
ce406537
PB
25622
25623
d32ab992
PB
25624.PHONY: all-tar maybe-all-tar
25625maybe-all-tar:
3ff3adad
PB
25626@if gcc-bootstrap
25627all-tar: stage_current
25628@endif gcc-bootstrap
d32ab992 25629@if tar
7e0b5752 25630TARGET-tar=all
d32ab992
PB
25631maybe-all-tar: all-tar
25632all-tar: configure-tar
f41d6665 25633 @: $(MAKE); $(unstage)
8c90b13a
L
25634 @r=`${PWD_COMMAND}`; export r; \
25635 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25636 $(HOST_EXPORTS) \
215c351a
PB
25637 (cd $(HOST_SUBDIR)/tar && \
25638 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-tar))
d32ab992 25639@endif tar
4977bab6 25640
25b42232 25641
ce406537
PB
25642
25643
d32ab992
PB
25644.PHONY: check-tar maybe-check-tar
25645maybe-check-tar:
25646@if tar
25647maybe-check-tar: check-tar
4977bab6 25648
d32ab992 25649check-tar:
f41d6665 25650 @: $(MAKE); $(unstage)
8c90b13a
L
25651 @r=`${PWD_COMMAND}`; export r; \
25652 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25653 $(HOST_EXPORTS) \
215c351a
PB
25654 (cd $(HOST_SUBDIR)/tar && \
25655 $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6 25656
d32ab992 25657@endif tar
4977bab6 25658
d32ab992
PB
25659.PHONY: install-tar maybe-install-tar
25660maybe-install-tar:
25661@if tar
25662maybe-install-tar: install-tar
7e2dbcef 25663
d32ab992 25664install-tar: installdirs
f41d6665 25665 @: $(MAKE); $(unstage)
d32ab992
PB
25666 @r=`${PWD_COMMAND}`; export r; \
25667 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d32ab992 25668 $(HOST_EXPORTS) \
215c351a 25669 (cd $(HOST_SUBDIR)/tar && \
ace9ac7b 25670 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 25671
d32ab992 25672@endif tar
295f4e42
NN
25673
25674# Other targets (info, dvi, etc.)
25675
d32ab992
PB
25676.PHONY: maybe-info-tar info-tar
25677maybe-info-tar:
25678@if tar
25679maybe-info-tar: info-tar
295f4e42 25680
d32ab992 25681info-tar: \
05750653 25682 configure-tar
f41d6665 25683 @: $(MAKE); $(unstage)
d32ab992 25684 @[ -f ./tar/Makefile ] || exit 0; \
295f4e42 25685 r=`${PWD_COMMAND}`; export r; \
8c90b13a 25686 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25687 $(HOST_EXPORTS) \
d32ab992 25688 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25689 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25690 done; \
d32ab992 25691 echo "Doing info in tar" ; \
215c351a 25692 (cd $(HOST_SUBDIR)/tar && \
295f4e42
NN
25693 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25694 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25695 "RANLIB=$${RANLIB}" \
25696 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25697 info) \
295f4e42 25698 || exit 1
4977bab6 25699
d32ab992 25700@endif tar
4977bab6 25701
d32ab992
PB
25702.PHONY: maybe-dvi-tar dvi-tar
25703maybe-dvi-tar:
25704@if tar
25705maybe-dvi-tar: dvi-tar
295f4e42 25706
d32ab992 25707dvi-tar: \
05750653 25708 configure-tar
f41d6665 25709 @: $(MAKE); $(unstage)
d32ab992 25710 @[ -f ./tar/Makefile ] || exit 0; \
8c90b13a
L
25711 r=`${PWD_COMMAND}`; export r; \
25712 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25713 $(HOST_EXPORTS) \
d32ab992 25714 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25715 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25716 done; \
d32ab992 25717 echo "Doing dvi in tar" ; \
215c351a 25718 (cd $(HOST_SUBDIR)/tar && \
295f4e42
NN
25719 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25720 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25721 "RANLIB=$${RANLIB}" \
25722 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25723 dvi) \
4977bab6
ZW
25724 || exit 1
25725
d32ab992 25726@endif tar
295f4e42 25727
f87a2b2e
MS
25728.PHONY: maybe-html-tar html-tar
25729maybe-html-tar:
25730@if tar
25731maybe-html-tar: html-tar
25732
25733html-tar: \
05750653 25734 configure-tar
f41d6665 25735 @: $(MAKE); $(unstage)
f87a2b2e
MS
25736 @[ -f ./tar/Makefile ] || exit 0; \
25737 r=`${PWD_COMMAND}`; export r; \
25738 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
25739 $(HOST_EXPORTS) \
25740 for flag in $(EXTRA_HOST_FLAGS) ; do \
25741 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25742 done; \
25743 echo "Doing html in tar" ; \
215c351a 25744 (cd $(HOST_SUBDIR)/tar && \
f87a2b2e
MS
25745 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25746 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25747 "RANLIB=$${RANLIB}" \
25748 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
25749 html) \
25750 || exit 1
25751
25752@endif tar
25753
d32ab992
PB
25754.PHONY: maybe-TAGS-tar TAGS-tar
25755maybe-TAGS-tar:
25756@if tar
25757maybe-TAGS-tar: TAGS-tar
295f4e42 25758
d32ab992 25759TAGS-tar: \
05750653 25760 configure-tar
f41d6665 25761 @: $(MAKE); $(unstage)
d32ab992 25762 @[ -f ./tar/Makefile ] || exit 0; \
295f4e42 25763 r=`${PWD_COMMAND}`; export r; \
8c90b13a 25764 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25765 $(HOST_EXPORTS) \
d32ab992 25766 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25767 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25768 done; \
d32ab992 25769 echo "Doing TAGS in tar" ; \
215c351a 25770 (cd $(HOST_SUBDIR)/tar && \
295f4e42
NN
25771 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25772 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25773 "RANLIB=$${RANLIB}" \
25774 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25775 TAGS) \
295f4e42 25776 || exit 1
4977bab6 25777
d32ab992 25778@endif tar
4977bab6 25779
d32ab992
PB
25780.PHONY: maybe-install-info-tar install-info-tar
25781maybe-install-info-tar:
25782@if tar
25783maybe-install-info-tar: install-info-tar
295f4e42 25784
d32ab992
PB
25785install-info-tar: \
25786 configure-tar \
05750653 25787 info-tar
f41d6665 25788 @: $(MAKE); $(unstage)
d32ab992 25789 @[ -f ./tar/Makefile ] || exit 0; \
295f4e42 25790 r=`${PWD_COMMAND}`; export r; \
8c90b13a 25791 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25792 $(HOST_EXPORTS) \
d32ab992 25793 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25794 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25795 done; \
d32ab992 25796 echo "Doing install-info in tar" ; \
215c351a 25797 (cd $(HOST_SUBDIR)/tar && \
d32ab992 25798 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
295f4e42
NN
25799 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25800 "RANLIB=$${RANLIB}" \
25801 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25802 install-info) \
295f4e42 25803 || exit 1
4977bab6 25804
d32ab992 25805@endif tar
4977bab6 25806
65d6e994
CD
25807.PHONY: maybe-install-html-tar install-html-tar
25808maybe-install-html-tar:
25809@if tar
25810maybe-install-html-tar: install-html-tar
25811
25812install-html-tar: \
25813 configure-tar \
25814 html-tar
25815 @: $(MAKE); $(unstage)
25816 @[ -f ./tar/Makefile ] || exit 0; \
25817 r=`${PWD_COMMAND}`; export r; \
25818 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25819 $(HOST_EXPORTS) \
25820 for flag in $(EXTRA_HOST_FLAGS) ; do \
25821 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25822 done; \
25823 echo "Doing install-html in tar" ; \
25824 (cd $(HOST_SUBDIR)/tar && \
25825 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25826 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25827 "RANLIB=$${RANLIB}" \
25828 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
25829 install-html) \
25830 || exit 1
25831
25832@endif tar
25833
d32ab992
PB
25834.PHONY: maybe-installcheck-tar installcheck-tar
25835maybe-installcheck-tar:
25836@if tar
25837maybe-installcheck-tar: installcheck-tar
295f4e42 25838
d32ab992 25839installcheck-tar: \
05750653 25840 configure-tar
f41d6665 25841 @: $(MAKE); $(unstage)
d32ab992 25842 @[ -f ./tar/Makefile ] || exit 0; \
295f4e42
NN
25843 r=`${PWD_COMMAND}`; export r; \
25844 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25845 $(HOST_EXPORTS) \
d32ab992 25846 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25847 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25848 done; \
d32ab992 25849 echo "Doing installcheck in tar" ; \
215c351a 25850 (cd $(HOST_SUBDIR)/tar && \
295f4e42
NN
25851 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25852 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25853 "RANLIB=$${RANLIB}" \
25854 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25855 installcheck) \
295f4e42
NN
25856 || exit 1
25857
d32ab992 25858@endif tar
295f4e42 25859
d32ab992
PB
25860.PHONY: maybe-mostlyclean-tar mostlyclean-tar
25861maybe-mostlyclean-tar:
25862@if tar
25863maybe-mostlyclean-tar: mostlyclean-tar
295f4e42 25864
05750653 25865mostlyclean-tar:
f41d6665 25866 @: $(MAKE); $(unstage)
d32ab992 25867 @[ -f ./tar/Makefile ] || exit 0; \
295f4e42
NN
25868 r=`${PWD_COMMAND}`; export r; \
25869 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25870 $(HOST_EXPORTS) \
d32ab992 25871 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25872 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25873 done; \
d32ab992 25874 echo "Doing mostlyclean in tar" ; \
215c351a 25875 (cd $(HOST_SUBDIR)/tar && \
295f4e42
NN
25876 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25877 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25878 "RANLIB=$${RANLIB}" \
25879 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25880 mostlyclean) \
295f4e42
NN
25881 || exit 1
25882
d32ab992 25883@endif tar
295f4e42 25884
d32ab992
PB
25885.PHONY: maybe-clean-tar clean-tar
25886maybe-clean-tar:
25887@if tar
25888maybe-clean-tar: clean-tar
295f4e42 25889
05750653 25890clean-tar:
f41d6665 25891 @: $(MAKE); $(unstage)
d32ab992 25892 @[ -f ./tar/Makefile ] || exit 0; \
295f4e42
NN
25893 r=`${PWD_COMMAND}`; export r; \
25894 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25895 $(HOST_EXPORTS) \
d32ab992 25896 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25897 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25898 done; \
d32ab992 25899 echo "Doing clean in tar" ; \
215c351a 25900 (cd $(HOST_SUBDIR)/tar && \
295f4e42
NN
25901 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25902 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25903 "RANLIB=$${RANLIB}" \
25904 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25905 clean) \
295f4e42
NN
25906 || exit 1
25907
d32ab992 25908@endif tar
295f4e42 25909
d32ab992
PB
25910.PHONY: maybe-distclean-tar distclean-tar
25911maybe-distclean-tar:
25912@if tar
25913maybe-distclean-tar: distclean-tar
295f4e42 25914
05750653 25915distclean-tar:
f41d6665 25916 @: $(MAKE); $(unstage)
d32ab992 25917 @[ -f ./tar/Makefile ] || exit 0; \
295f4e42
NN
25918 r=`${PWD_COMMAND}`; export r; \
25919 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25920 $(HOST_EXPORTS) \
d32ab992 25921 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25922 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25923 done; \
d32ab992 25924 echo "Doing distclean in tar" ; \
215c351a 25925 (cd $(HOST_SUBDIR)/tar && \
295f4e42
NN
25926 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25927 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25928 "RANLIB=$${RANLIB}" \
25929 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25930 distclean) \
295f4e42
NN
25931 || exit 1
25932
d32ab992 25933@endif tar
295f4e42 25934
d32ab992
PB
25935.PHONY: maybe-maintainer-clean-tar maintainer-clean-tar
25936maybe-maintainer-clean-tar:
25937@if tar
25938maybe-maintainer-clean-tar: maintainer-clean-tar
7e2dbcef 25939
05750653 25940maintainer-clean-tar:
f41d6665 25941 @: $(MAKE); $(unstage)
d32ab992 25942 @[ -f ./tar/Makefile ] || exit 0; \
295f4e42 25943 r=`${PWD_COMMAND}`; export r; \
8c90b13a 25944 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25945 $(HOST_EXPORTS) \
d32ab992 25946 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25947 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25948 done; \
d32ab992 25949 echo "Doing maintainer-clean in tar" ; \
215c351a 25950 (cd $(HOST_SUBDIR)/tar && \
295f4e42
NN
25951 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25952 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25953 "RANLIB=$${RANLIB}" \
25954 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25955 maintainer-clean) \
295f4e42 25956 || exit 1
4977bab6 25957
d32ab992 25958@endif tar
4977bab6 25959
295f4e42 25960
25b42232 25961
d32ab992
PB
25962.PHONY: configure-texinfo maybe-configure-texinfo
25963maybe-configure-texinfo:
3ff3adad
PB
25964@if gcc-bootstrap
25965configure-texinfo: stage_current
25966@endif gcc-bootstrap
d32ab992
PB
25967@if texinfo
25968maybe-configure-texinfo: configure-texinfo
cc11cc9b 25969configure-texinfo:
f41d6665 25970 @: $(MAKE); $(unstage)
cc11cc9b 25971 @r=`${PWD_COMMAND}`; export r; \
4fc4dd12 25972 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
25973 test ! -f $(HOST_SUBDIR)/texinfo/Makefile || exit 0; \
25974 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/texinfo ; \
4fc4dd12 25975 $(HOST_EXPORTS) \
25b42232
PB
25976 echo Configuring in $(HOST_SUBDIR)/texinfo; \
25977 cd "$(HOST_SUBDIR)/texinfo" || exit 1; \
4977bab6 25978 case $(srcdir) in \
215c351a
PB
25979 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
25980 *) topdir=`echo $(HOST_SUBDIR)/texinfo/ | \
25981 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 25982 esac; \
215c351a
PB
25983 srcdiroption="--srcdir=$${topdir}/texinfo"; \
25984 libsrcdir="$$s/texinfo"; \
4977bab6 25985 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 25986 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 25987 || exit 1
d32ab992 25988@endif texinfo
4977bab6 25989
25b42232
PB
25990
25991
ce406537
PB
25992
25993
d32ab992
PB
25994.PHONY: all-texinfo maybe-all-texinfo
25995maybe-all-texinfo:
3ff3adad
PB
25996@if gcc-bootstrap
25997all-texinfo: stage_current
25998@endif gcc-bootstrap
d32ab992 25999@if texinfo
7e0b5752 26000TARGET-texinfo=all
d32ab992
PB
26001maybe-all-texinfo: all-texinfo
26002all-texinfo: configure-texinfo
f41d6665 26003 @: $(MAKE); $(unstage)
8c90b13a
L
26004 @r=`${PWD_COMMAND}`; export r; \
26005 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26006 $(HOST_EXPORTS) \
215c351a
PB
26007 (cd $(HOST_SUBDIR)/texinfo && \
26008 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-texinfo))
d32ab992 26009@endif texinfo
4977bab6 26010
25b42232 26011
ce406537
PB
26012
26013
d32ab992
PB
26014.PHONY: check-texinfo maybe-check-texinfo
26015maybe-check-texinfo:
26016@if texinfo
26017maybe-check-texinfo: check-texinfo
4977bab6 26018
d32ab992 26019check-texinfo:
f41d6665 26020 @: $(MAKE); $(unstage)
295f4e42
NN
26021 @r=`${PWD_COMMAND}`; export r; \
26022 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26023 $(HOST_EXPORTS) \
215c351a
PB
26024 (cd $(HOST_SUBDIR)/texinfo && \
26025 $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6 26026
d32ab992 26027@endif texinfo
4977bab6 26028
d32ab992
PB
26029.PHONY: install-texinfo maybe-install-texinfo
26030maybe-install-texinfo:
26031@if texinfo
26032maybe-install-texinfo: install-texinfo
7e2dbcef 26033
d32ab992 26034install-texinfo:
295f4e42 26035
d32ab992 26036@endif texinfo
295f4e42
NN
26037
26038# Other targets (info, dvi, etc.)
26039
d32ab992
PB
26040.PHONY: maybe-info-texinfo info-texinfo
26041maybe-info-texinfo:
26042@if texinfo
26043maybe-info-texinfo: info-texinfo
295f4e42 26044
d32ab992 26045info-texinfo: \
05750653 26046 configure-texinfo
f41d6665 26047 @: $(MAKE); $(unstage)
d32ab992 26048 @[ -f ./texinfo/Makefile ] || exit 0; \
295f4e42
NN
26049 r=`${PWD_COMMAND}`; export r; \
26050 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26051 $(HOST_EXPORTS) \
d32ab992 26052 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26053 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26054 done; \
d32ab992 26055 echo "Doing info in texinfo" ; \
215c351a 26056 (cd $(HOST_SUBDIR)/texinfo && \
295f4e42
NN
26057 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26058 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26059 "RANLIB=$${RANLIB}" \
26060 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26061 info) \
295f4e42
NN
26062 || exit 1
26063
d32ab992 26064@endif texinfo
295f4e42 26065
d32ab992
PB
26066.PHONY: maybe-dvi-texinfo dvi-texinfo
26067maybe-dvi-texinfo:
26068@if texinfo
26069maybe-dvi-texinfo: dvi-texinfo
295f4e42 26070
d32ab992 26071dvi-texinfo: \
05750653 26072 configure-texinfo
f41d6665 26073 @: $(MAKE); $(unstage)
d32ab992 26074 @[ -f ./texinfo/Makefile ] || exit 0; \
295f4e42
NN
26075 r=`${PWD_COMMAND}`; export r; \
26076 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26077 $(HOST_EXPORTS) \
d32ab992 26078 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26079 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26080 done; \
d32ab992 26081 echo "Doing dvi in texinfo" ; \
215c351a 26082 (cd $(HOST_SUBDIR)/texinfo && \
295f4e42
NN
26083 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26084 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26085 "RANLIB=$${RANLIB}" \
26086 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26087 dvi) \
295f4e42
NN
26088 || exit 1
26089
d32ab992 26090@endif texinfo
295f4e42 26091
f87a2b2e
MS
26092.PHONY: maybe-html-texinfo html-texinfo
26093maybe-html-texinfo:
26094@if texinfo
26095maybe-html-texinfo: html-texinfo
26096
26097html-texinfo: \
05750653 26098 configure-texinfo
f41d6665 26099 @: $(MAKE); $(unstage)
f87a2b2e
MS
26100 @[ -f ./texinfo/Makefile ] || exit 0; \
26101 r=`${PWD_COMMAND}`; export r; \
26102 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
26103 $(HOST_EXPORTS) \
26104 for flag in $(EXTRA_HOST_FLAGS) ; do \
26105 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26106 done; \
26107 echo "Doing html in texinfo" ; \
215c351a 26108 (cd $(HOST_SUBDIR)/texinfo && \
f87a2b2e
MS
26109 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26110 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26111 "RANLIB=$${RANLIB}" \
26112 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
26113 html) \
26114 || exit 1
26115
26116@endif texinfo
26117
d32ab992
PB
26118.PHONY: maybe-TAGS-texinfo TAGS-texinfo
26119maybe-TAGS-texinfo:
26120@if texinfo
26121maybe-TAGS-texinfo: TAGS-texinfo
295f4e42 26122
d32ab992 26123TAGS-texinfo: \
05750653 26124 configure-texinfo
f41d6665 26125 @: $(MAKE); $(unstage)
d32ab992 26126 @[ -f ./texinfo/Makefile ] || exit 0; \
295f4e42
NN
26127 r=`${PWD_COMMAND}`; export r; \
26128 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26129 $(HOST_EXPORTS) \
d32ab992 26130 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26131 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26132 done; \
d32ab992 26133 echo "Doing TAGS in texinfo" ; \
215c351a 26134 (cd $(HOST_SUBDIR)/texinfo && \
295f4e42
NN
26135 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26136 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26137 "RANLIB=$${RANLIB}" \
26138 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26139 TAGS) \
295f4e42
NN
26140 || exit 1
26141
d32ab992 26142@endif texinfo
295f4e42 26143
d32ab992
PB
26144.PHONY: maybe-install-info-texinfo install-info-texinfo
26145maybe-install-info-texinfo:
26146@if texinfo
26147maybe-install-info-texinfo: install-info-texinfo
295f4e42 26148
d32ab992
PB
26149install-info-texinfo: \
26150 configure-texinfo \
05750653 26151 info-texinfo
f41d6665 26152 @: $(MAKE); $(unstage)
d32ab992 26153 @[ -f ./texinfo/Makefile ] || exit 0; \
295f4e42
NN
26154 r=`${PWD_COMMAND}`; export r; \
26155 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26156 $(HOST_EXPORTS) \
d32ab992 26157 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26158 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26159 done; \
d32ab992 26160 echo "Doing install-info in texinfo" ; \
215c351a 26161 (cd $(HOST_SUBDIR)/texinfo && \
295f4e42
NN
26162 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26163 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26164 "RANLIB=$${RANLIB}" \
26165 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26166 install-info) \
295f4e42
NN
26167 || exit 1
26168
d32ab992 26169@endif texinfo
295f4e42 26170
65d6e994
CD
26171.PHONY: maybe-install-html-texinfo install-html-texinfo
26172maybe-install-html-texinfo:
26173@if texinfo
26174maybe-install-html-texinfo: install-html-texinfo
26175
26176install-html-texinfo: \
26177 configure-texinfo \
26178 html-texinfo
26179 @: $(MAKE); $(unstage)
26180 @[ -f ./texinfo/Makefile ] || exit 0; \
26181 r=`${PWD_COMMAND}`; export r; \
26182 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26183 $(HOST_EXPORTS) \
26184 for flag in $(EXTRA_HOST_FLAGS) ; do \
26185 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26186 done; \
26187 echo "Doing install-html in texinfo" ; \
26188 (cd $(HOST_SUBDIR)/texinfo && \
26189 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26190 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26191 "RANLIB=$${RANLIB}" \
26192 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
26193 install-html) \
26194 || exit 1
26195
26196@endif texinfo
26197
d32ab992
PB
26198.PHONY: maybe-installcheck-texinfo installcheck-texinfo
26199maybe-installcheck-texinfo:
26200@if texinfo
26201maybe-installcheck-texinfo: installcheck-texinfo
295f4e42 26202
d32ab992 26203installcheck-texinfo: \
05750653 26204 configure-texinfo
f41d6665 26205 @: $(MAKE); $(unstage)
d32ab992 26206 @[ -f ./texinfo/Makefile ] || exit 0; \
295f4e42
NN
26207 r=`${PWD_COMMAND}`; export r; \
26208 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26209 $(HOST_EXPORTS) \
d32ab992 26210 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26211 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26212 done; \
d32ab992 26213 echo "Doing installcheck in texinfo" ; \
215c351a 26214 (cd $(HOST_SUBDIR)/texinfo && \
295f4e42
NN
26215 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26216 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26217 "RANLIB=$${RANLIB}" \
26218 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26219 installcheck) \
295f4e42
NN
26220 || exit 1
26221
d32ab992 26222@endif texinfo
295f4e42 26223
d32ab992
PB
26224.PHONY: maybe-mostlyclean-texinfo mostlyclean-texinfo
26225maybe-mostlyclean-texinfo:
26226@if texinfo
26227maybe-mostlyclean-texinfo: mostlyclean-texinfo
295f4e42 26228
05750653 26229mostlyclean-texinfo:
f41d6665 26230 @: $(MAKE); $(unstage)
d32ab992 26231 @[ -f ./texinfo/Makefile ] || exit 0; \
295f4e42
NN
26232 r=`${PWD_COMMAND}`; export r; \
26233 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26234 $(HOST_EXPORTS) \
d32ab992 26235 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26236 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26237 done; \
d32ab992 26238 echo "Doing mostlyclean in texinfo" ; \
215c351a 26239 (cd $(HOST_SUBDIR)/texinfo && \
295f4e42
NN
26240 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26241 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26242 "RANLIB=$${RANLIB}" \
26243 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26244 mostlyclean) \
295f4e42
NN
26245 || exit 1
26246
d32ab992 26247@endif texinfo
295f4e42 26248
d32ab992
PB
26249.PHONY: maybe-clean-texinfo clean-texinfo
26250maybe-clean-texinfo:
26251@if texinfo
26252maybe-clean-texinfo: clean-texinfo
295f4e42 26253
05750653 26254clean-texinfo:
f41d6665 26255 @: $(MAKE); $(unstage)
d32ab992 26256 @[ -f ./texinfo/Makefile ] || exit 0; \
295f4e42
NN
26257 r=`${PWD_COMMAND}`; export r; \
26258 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26259 $(HOST_EXPORTS) \
d32ab992 26260 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26261 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26262 done; \
d32ab992 26263 echo "Doing clean in texinfo" ; \
215c351a 26264 (cd $(HOST_SUBDIR)/texinfo && \
295f4e42
NN
26265 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26266 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26267 "RANLIB=$${RANLIB}" \
26268 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26269 clean) \
295f4e42
NN
26270 || exit 1
26271
d32ab992 26272@endif texinfo
295f4e42 26273
d32ab992
PB
26274.PHONY: maybe-distclean-texinfo distclean-texinfo
26275maybe-distclean-texinfo:
26276@if texinfo
26277maybe-distclean-texinfo: distclean-texinfo
295f4e42 26278
05750653 26279distclean-texinfo:
f41d6665 26280 @: $(MAKE); $(unstage)
d32ab992 26281 @[ -f ./texinfo/Makefile ] || exit 0; \
295f4e42
NN
26282 r=`${PWD_COMMAND}`; export r; \
26283 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26284 $(HOST_EXPORTS) \
d32ab992 26285 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26286 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26287 done; \
d32ab992 26288 echo "Doing distclean in texinfo" ; \
215c351a 26289 (cd $(HOST_SUBDIR)/texinfo && \
295f4e42
NN
26290 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26291 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26292 "RANLIB=$${RANLIB}" \
26293 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26294 distclean) \
295f4e42
NN
26295 || exit 1
26296
d32ab992 26297@endif texinfo
295f4e42 26298
d32ab992
PB
26299.PHONY: maybe-maintainer-clean-texinfo maintainer-clean-texinfo
26300maybe-maintainer-clean-texinfo:
26301@if texinfo
26302maybe-maintainer-clean-texinfo: maintainer-clean-texinfo
295f4e42 26303
05750653 26304maintainer-clean-texinfo:
f41d6665 26305 @: $(MAKE); $(unstage)
d32ab992 26306 @[ -f ./texinfo/Makefile ] || exit 0; \
295f4e42
NN
26307 r=`${PWD_COMMAND}`; export r; \
26308 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26309 $(HOST_EXPORTS) \
d32ab992 26310 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26311 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26312 done; \
d32ab992 26313 echo "Doing maintainer-clean in texinfo" ; \
215c351a 26314 (cd $(HOST_SUBDIR)/texinfo && \
295f4e42
NN
26315 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26316 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26317 "RANLIB=$${RANLIB}" \
26318 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26319 maintainer-clean) \
295f4e42 26320 || exit 1
4977bab6 26321
d32ab992 26322@endif texinfo
4977bab6 26323
295f4e42 26324
25b42232 26325
d32ab992
PB
26326.PHONY: configure-textutils maybe-configure-textutils
26327maybe-configure-textutils:
3ff3adad
PB
26328@if gcc-bootstrap
26329configure-textutils: stage_current
26330@endif gcc-bootstrap
d32ab992
PB
26331@if textutils
26332maybe-configure-textutils: configure-textutils
cc11cc9b 26333configure-textutils:
f41d6665 26334 @: $(MAKE); $(unstage)
cc11cc9b 26335 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 26336 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
26337 test ! -f $(HOST_SUBDIR)/textutils/Makefile || exit 0; \
26338 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/textutils ; \
4fc4dd12 26339 $(HOST_EXPORTS) \
25b42232
PB
26340 echo Configuring in $(HOST_SUBDIR)/textutils; \
26341 cd "$(HOST_SUBDIR)/textutils" || exit 1; \
4977bab6 26342 case $(srcdir) in \
215c351a
PB
26343 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
26344 *) topdir=`echo $(HOST_SUBDIR)/textutils/ | \
26345 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 26346 esac; \
215c351a
PB
26347 srcdiroption="--srcdir=$${topdir}/textutils"; \
26348 libsrcdir="$$s/textutils"; \
4977bab6 26349 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 26350 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 26351 || exit 1
d32ab992 26352@endif textutils
4977bab6 26353
25b42232
PB
26354
26355
ce406537
PB
26356
26357
d32ab992
PB
26358.PHONY: all-textutils maybe-all-textutils
26359maybe-all-textutils:
3ff3adad
PB
26360@if gcc-bootstrap
26361all-textutils: stage_current
26362@endif gcc-bootstrap
d32ab992 26363@if textutils
7e0b5752 26364TARGET-textutils=all
d32ab992
PB
26365maybe-all-textutils: all-textutils
26366all-textutils: configure-textutils
f41d6665 26367 @: $(MAKE); $(unstage)
8c90b13a
L
26368 @r=`${PWD_COMMAND}`; export r; \
26369 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26370 $(HOST_EXPORTS) \
215c351a
PB
26371 (cd $(HOST_SUBDIR)/textutils && \
26372 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-textutils))
d32ab992 26373@endif textutils
4977bab6 26374
25b42232 26375
ce406537
PB
26376
26377
d32ab992
PB
26378.PHONY: check-textutils maybe-check-textutils
26379maybe-check-textutils:
26380@if textutils
26381maybe-check-textutils: check-textutils
4977bab6 26382
d32ab992 26383check-textutils:
f41d6665 26384 @: $(MAKE); $(unstage)
8c90b13a
L
26385 @r=`${PWD_COMMAND}`; export r; \
26386 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26387 $(HOST_EXPORTS) \
215c351a
PB
26388 (cd $(HOST_SUBDIR)/textutils && \
26389 $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6 26390
d32ab992 26391@endif textutils
4977bab6 26392
d32ab992
PB
26393.PHONY: install-textutils maybe-install-textutils
26394maybe-install-textutils:
26395@if textutils
26396maybe-install-textutils: install-textutils
295f4e42 26397
d32ab992 26398install-textutils: installdirs
f41d6665 26399 @: $(MAKE); $(unstage)
295f4e42
NN
26400 @r=`${PWD_COMMAND}`; export r; \
26401 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26402 $(HOST_EXPORTS) \
215c351a 26403 (cd $(HOST_SUBDIR)/textutils && \
ace9ac7b 26404 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 26405
d32ab992 26406@endif textutils
295f4e42
NN
26407
26408# Other targets (info, dvi, etc.)
26409
d32ab992
PB
26410.PHONY: maybe-info-textutils info-textutils
26411maybe-info-textutils:
26412@if textutils
26413maybe-info-textutils: info-textutils
295f4e42 26414
d32ab992 26415info-textutils: \
05750653 26416 configure-textutils
f41d6665 26417 @: $(MAKE); $(unstage)
d32ab992 26418 @[ -f ./textutils/Makefile ] || exit 0; \
295f4e42
NN
26419 r=`${PWD_COMMAND}`; export r; \
26420 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26421 $(HOST_EXPORTS) \
d32ab992 26422 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26423 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26424 done; \
d32ab992 26425 echo "Doing info in textutils" ; \
215c351a 26426 (cd $(HOST_SUBDIR)/textutils && \
295f4e42
NN
26427 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26428 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26429 "RANLIB=$${RANLIB}" \
26430 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26431 info) \
295f4e42
NN
26432 || exit 1
26433
d32ab992 26434@endif textutils
295f4e42 26435
d32ab992
PB
26436.PHONY: maybe-dvi-textutils dvi-textutils
26437maybe-dvi-textutils:
26438@if textutils
26439maybe-dvi-textutils: dvi-textutils
295f4e42 26440
d32ab992 26441dvi-textutils: \
05750653 26442 configure-textutils
f41d6665 26443 @: $(MAKE); $(unstage)
d32ab992 26444 @[ -f ./textutils/Makefile ] || exit 0; \
295f4e42
NN
26445 r=`${PWD_COMMAND}`; export r; \
26446 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26447 $(HOST_EXPORTS) \
d32ab992 26448 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26449 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26450 done; \
d32ab992 26451 echo "Doing dvi in textutils" ; \
215c351a 26452 (cd $(HOST_SUBDIR)/textutils && \
295f4e42
NN
26453 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26454 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26455 "RANLIB=$${RANLIB}" \
26456 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26457 dvi) \
295f4e42
NN
26458 || exit 1
26459
d32ab992 26460@endif textutils
295f4e42 26461
f87a2b2e
MS
26462.PHONY: maybe-html-textutils html-textutils
26463maybe-html-textutils:
26464@if textutils
26465maybe-html-textutils: html-textutils
26466
26467html-textutils: \
05750653 26468 configure-textutils
f41d6665 26469 @: $(MAKE); $(unstage)
f87a2b2e
MS
26470 @[ -f ./textutils/Makefile ] || exit 0; \
26471 r=`${PWD_COMMAND}`; export r; \
26472 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
26473 $(HOST_EXPORTS) \
26474 for flag in $(EXTRA_HOST_FLAGS) ; do \
26475 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26476 done; \
26477 echo "Doing html in textutils" ; \
215c351a 26478 (cd $(HOST_SUBDIR)/textutils && \
f87a2b2e
MS
26479 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26480 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26481 "RANLIB=$${RANLIB}" \
26482 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
26483 html) \
26484 || exit 1
26485
26486@endif textutils
26487
d32ab992
PB
26488.PHONY: maybe-TAGS-textutils TAGS-textutils
26489maybe-TAGS-textutils:
26490@if textutils
26491maybe-TAGS-textutils: TAGS-textutils
295f4e42 26492
d32ab992 26493TAGS-textutils: \
05750653 26494 configure-textutils
f41d6665 26495 @: $(MAKE); $(unstage)
d32ab992 26496 @[ -f ./textutils/Makefile ] || exit 0; \
295f4e42
NN
26497 r=`${PWD_COMMAND}`; export r; \
26498 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26499 $(HOST_EXPORTS) \
d32ab992 26500 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26501 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26502 done; \
d32ab992 26503 echo "Doing TAGS in textutils" ; \
215c351a 26504 (cd $(HOST_SUBDIR)/textutils && \
295f4e42
NN
26505 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26506 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26507 "RANLIB=$${RANLIB}" \
26508 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26509 TAGS) \
295f4e42
NN
26510 || exit 1
26511
d32ab992 26512@endif textutils
295f4e42 26513
d32ab992
PB
26514.PHONY: maybe-install-info-textutils install-info-textutils
26515maybe-install-info-textutils:
26516@if textutils
26517maybe-install-info-textutils: install-info-textutils
295f4e42 26518
d32ab992
PB
26519install-info-textutils: \
26520 configure-textutils \
05750653 26521 info-textutils
f41d6665 26522 @: $(MAKE); $(unstage)
d32ab992 26523 @[ -f ./textutils/Makefile ] || exit 0; \
295f4e42
NN
26524 r=`${PWD_COMMAND}`; export r; \
26525 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26526 $(HOST_EXPORTS) \
d32ab992 26527 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26528 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26529 done; \
d32ab992 26530 echo "Doing install-info in textutils" ; \
215c351a 26531 (cd $(HOST_SUBDIR)/textutils && \
295f4e42
NN
26532 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26533 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26534 "RANLIB=$${RANLIB}" \
26535 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26536 install-info) \
295f4e42
NN
26537 || exit 1
26538
d32ab992 26539@endif textutils
295f4e42 26540
65d6e994
CD
26541.PHONY: maybe-install-html-textutils install-html-textutils
26542maybe-install-html-textutils:
26543@if textutils
26544maybe-install-html-textutils: install-html-textutils
26545
26546install-html-textutils: \
26547 configure-textutils \
26548 html-textutils
26549 @: $(MAKE); $(unstage)
26550 @[ -f ./textutils/Makefile ] || exit 0; \
26551 r=`${PWD_COMMAND}`; export r; \
26552 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26553 $(HOST_EXPORTS) \
26554 for flag in $(EXTRA_HOST_FLAGS) ; do \
26555 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26556 done; \
26557 echo "Doing install-html in textutils" ; \
26558 (cd $(HOST_SUBDIR)/textutils && \
26559 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26560 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26561 "RANLIB=$${RANLIB}" \
26562 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
26563 install-html) \
26564 || exit 1
26565
26566@endif textutils
26567
d32ab992
PB
26568.PHONY: maybe-installcheck-textutils installcheck-textutils
26569maybe-installcheck-textutils:
26570@if textutils
26571maybe-installcheck-textutils: installcheck-textutils
295f4e42 26572
d32ab992 26573installcheck-textutils: \
05750653 26574 configure-textutils
f41d6665 26575 @: $(MAKE); $(unstage)
d32ab992 26576 @[ -f ./textutils/Makefile ] || exit 0; \
295f4e42
NN
26577 r=`${PWD_COMMAND}`; export r; \
26578 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26579 $(HOST_EXPORTS) \
d32ab992 26580 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26581 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26582 done; \
d32ab992 26583 echo "Doing installcheck in textutils" ; \
215c351a 26584 (cd $(HOST_SUBDIR)/textutils && \
295f4e42
NN
26585 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26586 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26587 "RANLIB=$${RANLIB}" \
26588 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26589 installcheck) \
295f4e42
NN
26590 || exit 1
26591
d32ab992 26592@endif textutils
295f4e42 26593
d32ab992
PB
26594.PHONY: maybe-mostlyclean-textutils mostlyclean-textutils
26595maybe-mostlyclean-textutils:
26596@if textutils
26597maybe-mostlyclean-textutils: mostlyclean-textutils
295f4e42 26598
05750653 26599mostlyclean-textutils:
f41d6665 26600 @: $(MAKE); $(unstage)
d32ab992 26601 @[ -f ./textutils/Makefile ] || exit 0; \
295f4e42
NN
26602 r=`${PWD_COMMAND}`; export r; \
26603 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26604 $(HOST_EXPORTS) \
d32ab992 26605 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26606 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26607 done; \
d32ab992 26608 echo "Doing mostlyclean in textutils" ; \
215c351a 26609 (cd $(HOST_SUBDIR)/textutils && \
295f4e42
NN
26610 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26611 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26612 "RANLIB=$${RANLIB}" \
26613 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26614 mostlyclean) \
295f4e42
NN
26615 || exit 1
26616
d32ab992 26617@endif textutils
295f4e42 26618
d32ab992
PB
26619.PHONY: maybe-clean-textutils clean-textutils
26620maybe-clean-textutils:
26621@if textutils
26622maybe-clean-textutils: clean-textutils
295f4e42 26623
05750653 26624clean-textutils:
f41d6665 26625 @: $(MAKE); $(unstage)
d32ab992 26626 @[ -f ./textutils/Makefile ] || exit 0; \
295f4e42
NN
26627 r=`${PWD_COMMAND}`; export r; \
26628 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26629 $(HOST_EXPORTS) \
d32ab992 26630 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26631 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26632 done; \
d32ab992 26633 echo "Doing clean in textutils" ; \
215c351a 26634 (cd $(HOST_SUBDIR)/textutils && \
295f4e42
NN
26635 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26636 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26637 "RANLIB=$${RANLIB}" \
26638 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26639 clean) \
295f4e42
NN
26640 || exit 1
26641
d32ab992 26642@endif textutils
295f4e42 26643
d32ab992
PB
26644.PHONY: maybe-distclean-textutils distclean-textutils
26645maybe-distclean-textutils:
26646@if textutils
26647maybe-distclean-textutils: distclean-textutils
295f4e42 26648
05750653 26649distclean-textutils:
f41d6665 26650 @: $(MAKE); $(unstage)
d32ab992 26651 @[ -f ./textutils/Makefile ] || exit 0; \
295f4e42
NN
26652 r=`${PWD_COMMAND}`; export r; \
26653 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26654 $(HOST_EXPORTS) \
d32ab992 26655 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26656 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26657 done; \
d32ab992 26658 echo "Doing distclean in textutils" ; \
215c351a 26659 (cd $(HOST_SUBDIR)/textutils && \
295f4e42
NN
26660 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26661 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26662 "RANLIB=$${RANLIB}" \
26663 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26664 distclean) \
295f4e42
NN
26665 || exit 1
26666
d32ab992 26667@endif textutils
295f4e42 26668
d32ab992
PB
26669.PHONY: maybe-maintainer-clean-textutils maintainer-clean-textutils
26670maybe-maintainer-clean-textutils:
26671@if textutils
26672maybe-maintainer-clean-textutils: maintainer-clean-textutils
295f4e42 26673
05750653 26674maintainer-clean-textutils:
f41d6665 26675 @: $(MAKE); $(unstage)
d32ab992 26676 @[ -f ./textutils/Makefile ] || exit 0; \
295f4e42
NN
26677 r=`${PWD_COMMAND}`; export r; \
26678 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26679 $(HOST_EXPORTS) \
d32ab992 26680 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26681 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26682 done; \
d32ab992 26683 echo "Doing maintainer-clean in textutils" ; \
215c351a 26684 (cd $(HOST_SUBDIR)/textutils && \
295f4e42
NN
26685 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26686 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26687 "RANLIB=$${RANLIB}" \
26688 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26689 maintainer-clean) \
295f4e42 26690 || exit 1
7e2dbcef 26691
d32ab992 26692@endif textutils
4977bab6
ZW
26693
26694
25b42232 26695
d32ab992
PB
26696.PHONY: configure-time maybe-configure-time
26697maybe-configure-time:
3ff3adad
PB
26698@if gcc-bootstrap
26699configure-time: stage_current
26700@endif gcc-bootstrap
d32ab992
PB
26701@if time
26702maybe-configure-time: configure-time
cc11cc9b 26703configure-time:
f41d6665 26704 @: $(MAKE); $(unstage)
cc11cc9b 26705 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 26706 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
26707 test ! -f $(HOST_SUBDIR)/time/Makefile || exit 0; \
26708 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/time ; \
4fc4dd12 26709 $(HOST_EXPORTS) \
25b42232
PB
26710 echo Configuring in $(HOST_SUBDIR)/time; \
26711 cd "$(HOST_SUBDIR)/time" || exit 1; \
4977bab6 26712 case $(srcdir) in \
215c351a
PB
26713 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
26714 *) topdir=`echo $(HOST_SUBDIR)/time/ | \
26715 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 26716 esac; \
215c351a
PB
26717 srcdiroption="--srcdir=$${topdir}/time"; \
26718 libsrcdir="$$s/time"; \
4977bab6 26719 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 26720 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 26721 || exit 1
d32ab992 26722@endif time
4977bab6 26723
25b42232
PB
26724
26725
ce406537
PB
26726
26727
d32ab992
PB
26728.PHONY: all-time maybe-all-time
26729maybe-all-time:
3ff3adad
PB
26730@if gcc-bootstrap
26731all-time: stage_current
26732@endif gcc-bootstrap
d32ab992 26733@if time
7e0b5752 26734TARGET-time=all
d32ab992
PB
26735maybe-all-time: all-time
26736all-time: configure-time
f41d6665 26737 @: $(MAKE); $(unstage)
8c90b13a
L
26738 @r=`${PWD_COMMAND}`; export r; \
26739 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26740 $(HOST_EXPORTS) \
215c351a
PB
26741 (cd $(HOST_SUBDIR)/time && \
26742 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-time))
d32ab992 26743@endif time
4977bab6 26744
25b42232 26745
ce406537
PB
26746
26747
d32ab992
PB
26748.PHONY: check-time maybe-check-time
26749maybe-check-time:
26750@if time
26751maybe-check-time: check-time
4977bab6 26752
d32ab992 26753check-time:
f41d6665 26754 @: $(MAKE); $(unstage)
8c90b13a
L
26755 @r=`${PWD_COMMAND}`; export r; \
26756 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26757 $(HOST_EXPORTS) \
215c351a
PB
26758 (cd $(HOST_SUBDIR)/time && \
26759 $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6 26760
d32ab992 26761@endif time
4977bab6 26762
d32ab992
PB
26763.PHONY: install-time maybe-install-time
26764maybe-install-time:
26765@if time
26766maybe-install-time: install-time
7e2dbcef 26767
d32ab992 26768install-time: installdirs
f41d6665 26769 @: $(MAKE); $(unstage)
8c90b13a
L
26770 @r=`${PWD_COMMAND}`; export r; \
26771 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26772 $(HOST_EXPORTS) \
215c351a 26773 (cd $(HOST_SUBDIR)/time && \
ace9ac7b 26774 $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6 26775
d32ab992 26776@endif time
4977bab6 26777
295f4e42
NN
26778# Other targets (info, dvi, etc.)
26779
d32ab992
PB
26780.PHONY: maybe-info-time info-time
26781maybe-info-time:
26782@if time
26783maybe-info-time: info-time
295f4e42 26784
d32ab992 26785info-time: \
05750653 26786 configure-time
f41d6665 26787 @: $(MAKE); $(unstage)
d32ab992 26788 @[ -f ./time/Makefile ] || exit 0; \
295f4e42
NN
26789 r=`${PWD_COMMAND}`; export r; \
26790 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26791 $(HOST_EXPORTS) \
d32ab992 26792 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26793 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26794 done; \
d32ab992 26795 echo "Doing info in time" ; \
215c351a 26796 (cd $(HOST_SUBDIR)/time && \
295f4e42
NN
26797 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26798 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26799 "RANLIB=$${RANLIB}" \
26800 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26801 info) \
295f4e42
NN
26802 || exit 1
26803
d32ab992 26804@endif time
295f4e42 26805
d32ab992
PB
26806.PHONY: maybe-dvi-time dvi-time
26807maybe-dvi-time:
26808@if time
26809maybe-dvi-time: dvi-time
295f4e42 26810
d32ab992 26811dvi-time: \
05750653 26812 configure-time
f41d6665 26813 @: $(MAKE); $(unstage)
d32ab992 26814 @[ -f ./time/Makefile ] || exit 0; \
295f4e42
NN
26815 r=`${PWD_COMMAND}`; export r; \
26816 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26817 $(HOST_EXPORTS) \
d32ab992 26818 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26819 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26820 done; \
d32ab992 26821 echo "Doing dvi in time" ; \
215c351a 26822 (cd $(HOST_SUBDIR)/time && \
295f4e42
NN
26823 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26824 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26825 "RANLIB=$${RANLIB}" \
26826 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26827 dvi) \
295f4e42
NN
26828 || exit 1
26829
d32ab992 26830@endif time
295f4e42 26831
f87a2b2e
MS
26832.PHONY: maybe-html-time html-time
26833maybe-html-time:
26834@if time
26835maybe-html-time: html-time
26836
26837html-time: \
05750653 26838 configure-time
f41d6665 26839 @: $(MAKE); $(unstage)
f87a2b2e
MS
26840 @[ -f ./time/Makefile ] || exit 0; \
26841 r=`${PWD_COMMAND}`; export r; \
26842 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
26843 $(HOST_EXPORTS) \
26844 for flag in $(EXTRA_HOST_FLAGS) ; do \
26845 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26846 done; \
26847 echo "Doing html in time" ; \
215c351a 26848 (cd $(HOST_SUBDIR)/time && \
f87a2b2e
MS
26849 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26850 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26851 "RANLIB=$${RANLIB}" \
26852 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
26853 html) \
26854 || exit 1
26855
26856@endif time
26857
d32ab992
PB
26858.PHONY: maybe-TAGS-time TAGS-time
26859maybe-TAGS-time:
26860@if time
26861maybe-TAGS-time: TAGS-time
295f4e42 26862
d32ab992 26863TAGS-time: \
05750653 26864 configure-time
f41d6665 26865 @: $(MAKE); $(unstage)
d32ab992 26866 @[ -f ./time/Makefile ] || exit 0; \
295f4e42
NN
26867 r=`${PWD_COMMAND}`; export r; \
26868 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26869 $(HOST_EXPORTS) \
d32ab992 26870 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26871 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26872 done; \
d32ab992 26873 echo "Doing TAGS in time" ; \
215c351a 26874 (cd $(HOST_SUBDIR)/time && \
295f4e42
NN
26875 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26876 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26877 "RANLIB=$${RANLIB}" \
26878 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26879 TAGS) \
295f4e42
NN
26880 || exit 1
26881
d32ab992 26882@endif time
295f4e42 26883
d32ab992
PB
26884.PHONY: maybe-install-info-time install-info-time
26885maybe-install-info-time:
26886@if time
26887maybe-install-info-time: install-info-time
295f4e42 26888
d32ab992
PB
26889install-info-time: \
26890 configure-time \
05750653 26891 info-time
f41d6665 26892 @: $(MAKE); $(unstage)
d32ab992 26893 @[ -f ./time/Makefile ] || exit 0; \
295f4e42
NN
26894 r=`${PWD_COMMAND}`; export r; \
26895 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26896 $(HOST_EXPORTS) \
d32ab992 26897 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26898 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26899 done; \
d32ab992 26900 echo "Doing install-info in time" ; \
215c351a 26901 (cd $(HOST_SUBDIR)/time && \
295f4e42
NN
26902 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26903 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26904 "RANLIB=$${RANLIB}" \
26905 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26906 install-info) \
295f4e42
NN
26907 || exit 1
26908
d32ab992 26909@endif time
295f4e42 26910
65d6e994
CD
26911.PHONY: maybe-install-html-time install-html-time
26912maybe-install-html-time:
26913@if time
26914maybe-install-html-time: install-html-time
26915
26916install-html-time: \
26917 configure-time \
26918 html-time
26919 @: $(MAKE); $(unstage)
26920 @[ -f ./time/Makefile ] || exit 0; \
26921 r=`${PWD_COMMAND}`; export r; \
26922 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26923 $(HOST_EXPORTS) \
26924 for flag in $(EXTRA_HOST_FLAGS) ; do \
26925 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26926 done; \
26927 echo "Doing install-html in time" ; \
26928 (cd $(HOST_SUBDIR)/time && \
26929 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26930 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26931 "RANLIB=$${RANLIB}" \
26932 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
26933 install-html) \
26934 || exit 1
26935
26936@endif time
26937
d32ab992
PB
26938.PHONY: maybe-installcheck-time installcheck-time
26939maybe-installcheck-time:
26940@if time
26941maybe-installcheck-time: installcheck-time
295f4e42 26942
d32ab992 26943installcheck-time: \
05750653 26944 configure-time
f41d6665 26945 @: $(MAKE); $(unstage)
d32ab992 26946 @[ -f ./time/Makefile ] || exit 0; \
295f4e42
NN
26947 r=`${PWD_COMMAND}`; export r; \
26948 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26949 $(HOST_EXPORTS) \
d32ab992 26950 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26951 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26952 done; \
d32ab992 26953 echo "Doing installcheck in time" ; \
215c351a 26954 (cd $(HOST_SUBDIR)/time && \
295f4e42
NN
26955 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26956 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26957 "RANLIB=$${RANLIB}" \
26958 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26959 installcheck) \
295f4e42
NN
26960 || exit 1
26961
d32ab992 26962@endif time
295f4e42 26963
d32ab992
PB
26964.PHONY: maybe-mostlyclean-time mostlyclean-time
26965maybe-mostlyclean-time:
26966@if time
26967maybe-mostlyclean-time: mostlyclean-time
295f4e42 26968
05750653 26969mostlyclean-time:
f41d6665 26970 @: $(MAKE); $(unstage)
d32ab992 26971 @[ -f ./time/Makefile ] || exit 0; \
295f4e42
NN
26972 r=`${PWD_COMMAND}`; export r; \
26973 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26974 $(HOST_EXPORTS) \
d32ab992 26975 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26976 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26977 done; \
d32ab992 26978 echo "Doing mostlyclean in time" ; \
215c351a 26979 (cd $(HOST_SUBDIR)/time && \
295f4e42
NN
26980 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26981 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26982 "RANLIB=$${RANLIB}" \
26983 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26984 mostlyclean) \
295f4e42
NN
26985 || exit 1
26986
d32ab992 26987@endif time
295f4e42 26988
d32ab992
PB
26989.PHONY: maybe-clean-time clean-time
26990maybe-clean-time:
26991@if time
26992maybe-clean-time: clean-time
295f4e42 26993
05750653 26994clean-time:
f41d6665 26995 @: $(MAKE); $(unstage)
d32ab992 26996 @[ -f ./time/Makefile ] || exit 0; \
295f4e42
NN
26997 r=`${PWD_COMMAND}`; export r; \
26998 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26999 $(HOST_EXPORTS) \
d32ab992 27000 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27001 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27002 done; \
d32ab992 27003 echo "Doing clean in time" ; \
215c351a 27004 (cd $(HOST_SUBDIR)/time && \
295f4e42
NN
27005 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27006 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27007 "RANLIB=$${RANLIB}" \
27008 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27009 clean) \
295f4e42
NN
27010 || exit 1
27011
d32ab992 27012@endif time
295f4e42 27013
d32ab992
PB
27014.PHONY: maybe-distclean-time distclean-time
27015maybe-distclean-time:
27016@if time
27017maybe-distclean-time: distclean-time
295f4e42 27018
05750653 27019distclean-time:
f41d6665 27020 @: $(MAKE); $(unstage)
d32ab992 27021 @[ -f ./time/Makefile ] || exit 0; \
295f4e42
NN
27022 r=`${PWD_COMMAND}`; export r; \
27023 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27024 $(HOST_EXPORTS) \
d32ab992 27025 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27026 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27027 done; \
d32ab992 27028 echo "Doing distclean in time" ; \
215c351a 27029 (cd $(HOST_SUBDIR)/time && \
295f4e42
NN
27030 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27031 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27032 "RANLIB=$${RANLIB}" \
27033 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27034 distclean) \
295f4e42
NN
27035 || exit 1
27036
d32ab992 27037@endif time
295f4e42 27038
d32ab992
PB
27039.PHONY: maybe-maintainer-clean-time maintainer-clean-time
27040maybe-maintainer-clean-time:
27041@if time
27042maybe-maintainer-clean-time: maintainer-clean-time
295f4e42 27043
05750653 27044maintainer-clean-time:
f41d6665 27045 @: $(MAKE); $(unstage)
d32ab992 27046 @[ -f ./time/Makefile ] || exit 0; \
295f4e42
NN
27047 r=`${PWD_COMMAND}`; export r; \
27048 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27049 $(HOST_EXPORTS) \
d32ab992 27050 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27051 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27052 done; \
d32ab992 27053 echo "Doing maintainer-clean in time" ; \
215c351a 27054 (cd $(HOST_SUBDIR)/time && \
295f4e42
NN
27055 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27056 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27057 "RANLIB=$${RANLIB}" \
27058 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27059 maintainer-clean) \
295f4e42
NN
27060 || exit 1
27061
d32ab992 27062@endif time
295f4e42
NN
27063
27064
25b42232 27065
d32ab992
PB
27066.PHONY: configure-uudecode maybe-configure-uudecode
27067maybe-configure-uudecode:
3ff3adad
PB
27068@if gcc-bootstrap
27069configure-uudecode: stage_current
27070@endif gcc-bootstrap
d32ab992
PB
27071@if uudecode
27072maybe-configure-uudecode: configure-uudecode
cc11cc9b 27073configure-uudecode:
f41d6665 27074 @: $(MAKE); $(unstage)
cc11cc9b 27075 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 27076 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
27077 test ! -f $(HOST_SUBDIR)/uudecode/Makefile || exit 0; \
27078 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/uudecode ; \
4fc4dd12 27079 $(HOST_EXPORTS) \
25b42232
PB
27080 echo Configuring in $(HOST_SUBDIR)/uudecode; \
27081 cd "$(HOST_SUBDIR)/uudecode" || exit 1; \
4977bab6 27082 case $(srcdir) in \
215c351a
PB
27083 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
27084 *) topdir=`echo $(HOST_SUBDIR)/uudecode/ | \
27085 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 27086 esac; \
215c351a
PB
27087 srcdiroption="--srcdir=$${topdir}/uudecode"; \
27088 libsrcdir="$$s/uudecode"; \
4977bab6 27089 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 27090 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 27091 || exit 1
d32ab992 27092@endif uudecode
4977bab6 27093
25b42232
PB
27094
27095
ce406537
PB
27096
27097
d32ab992
PB
27098.PHONY: all-uudecode maybe-all-uudecode
27099maybe-all-uudecode:
3ff3adad
PB
27100@if gcc-bootstrap
27101all-uudecode: stage_current
27102@endif gcc-bootstrap
d32ab992 27103@if uudecode
7e0b5752 27104TARGET-uudecode=all
d32ab992
PB
27105maybe-all-uudecode: all-uudecode
27106all-uudecode: configure-uudecode
f41d6665 27107 @: $(MAKE); $(unstage)
8c90b13a
L
27108 @r=`${PWD_COMMAND}`; export r; \
27109 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27110 $(HOST_EXPORTS) \
215c351a
PB
27111 (cd $(HOST_SUBDIR)/uudecode && \
27112 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-uudecode))
d32ab992 27113@endif uudecode
4977bab6 27114
25b42232 27115
ce406537
PB
27116
27117
d32ab992
PB
27118.PHONY: check-uudecode maybe-check-uudecode
27119maybe-check-uudecode:
27120@if uudecode
27121maybe-check-uudecode: check-uudecode
4977bab6 27122
d32ab992 27123check-uudecode:
f41d6665 27124 @: $(MAKE); $(unstage)
8c90b13a
L
27125 @r=`${PWD_COMMAND}`; export r; \
27126 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27127 $(HOST_EXPORTS) \
215c351a
PB
27128 (cd $(HOST_SUBDIR)/uudecode && \
27129 $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6 27130
d32ab992 27131@endif uudecode
4977bab6 27132
d32ab992
PB
27133.PHONY: install-uudecode maybe-install-uudecode
27134maybe-install-uudecode:
27135@if uudecode
27136maybe-install-uudecode: install-uudecode
7e2dbcef 27137
d32ab992 27138install-uudecode: installdirs
f41d6665 27139 @: $(MAKE); $(unstage)
8c90b13a
L
27140 @r=`${PWD_COMMAND}`; export r; \
27141 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27142 $(HOST_EXPORTS) \
215c351a 27143 (cd $(HOST_SUBDIR)/uudecode && \
ace9ac7b 27144 $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6 27145
d32ab992 27146@endif uudecode
4977bab6 27147
295f4e42
NN
27148# Other targets (info, dvi, etc.)
27149
d32ab992
PB
27150.PHONY: maybe-info-uudecode info-uudecode
27151maybe-info-uudecode:
27152@if uudecode
27153maybe-info-uudecode: info-uudecode
295f4e42 27154
d32ab992 27155info-uudecode: \
05750653 27156 configure-uudecode
f41d6665 27157 @: $(MAKE); $(unstage)
d32ab992 27158 @[ -f ./uudecode/Makefile ] || exit 0; \
8c90b13a
L
27159 r=`${PWD_COMMAND}`; export r; \
27160 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27161 $(HOST_EXPORTS) \
d32ab992 27162 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27163 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27164 done; \
d32ab992 27165 echo "Doing info in uudecode" ; \
215c351a 27166 (cd $(HOST_SUBDIR)/uudecode && \
295f4e42
NN
27167 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27168 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27169 "RANLIB=$${RANLIB}" \
27170 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27171 info) \
4977bab6
ZW
27172 || exit 1
27173
d32ab992 27174@endif uudecode
295f4e42 27175
d32ab992
PB
27176.PHONY: maybe-dvi-uudecode dvi-uudecode
27177maybe-dvi-uudecode:
27178@if uudecode
27179maybe-dvi-uudecode: dvi-uudecode
295f4e42 27180
d32ab992 27181dvi-uudecode: \
05750653 27182 configure-uudecode
f41d6665 27183 @: $(MAKE); $(unstage)
d32ab992 27184 @[ -f ./uudecode/Makefile ] || exit 0; \
295f4e42 27185 r=`${PWD_COMMAND}`; export r; \
8c90b13a 27186 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27187 $(HOST_EXPORTS) \
d32ab992 27188 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27189 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27190 done; \
d32ab992 27191 echo "Doing dvi in uudecode" ; \
215c351a 27192 (cd $(HOST_SUBDIR)/uudecode && \
295f4e42
NN
27193 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27194 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27195 "RANLIB=$${RANLIB}" \
27196 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27197 dvi) \
295f4e42 27198 || exit 1
4977bab6 27199
d32ab992 27200@endif uudecode
4977bab6 27201
f87a2b2e
MS
27202.PHONY: maybe-html-uudecode html-uudecode
27203maybe-html-uudecode:
27204@if uudecode
27205maybe-html-uudecode: html-uudecode
27206
27207html-uudecode: \
05750653 27208 configure-uudecode
f41d6665 27209 @: $(MAKE); $(unstage)
f87a2b2e
MS
27210 @[ -f ./uudecode/Makefile ] || exit 0; \
27211 r=`${PWD_COMMAND}`; export r; \
27212 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
27213 $(HOST_EXPORTS) \
27214 for flag in $(EXTRA_HOST_FLAGS) ; do \
27215 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27216 done; \
27217 echo "Doing html in uudecode" ; \
215c351a 27218 (cd $(HOST_SUBDIR)/uudecode && \
f87a2b2e
MS
27219 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27220 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27221 "RANLIB=$${RANLIB}" \
27222 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
27223 html) \
27224 || exit 1
27225
27226@endif uudecode
27227
d32ab992
PB
27228.PHONY: maybe-TAGS-uudecode TAGS-uudecode
27229maybe-TAGS-uudecode:
27230@if uudecode
27231maybe-TAGS-uudecode: TAGS-uudecode
295f4e42 27232
d32ab992 27233TAGS-uudecode: \
05750653 27234 configure-uudecode
f41d6665 27235 @: $(MAKE); $(unstage)
d32ab992
PB
27236 @[ -f ./uudecode/Makefile ] || exit 0; \
27237 r=`${PWD_COMMAND}`; export r; \
8c90b13a 27238 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27239 $(HOST_EXPORTS) \
d32ab992 27240 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27241 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27242 done; \
d32ab992 27243 echo "Doing TAGS in uudecode" ; \
215c351a 27244 (cd $(HOST_SUBDIR)/uudecode && \
295f4e42
NN
27245 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27246 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27247 "RANLIB=$${RANLIB}" \
27248 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27249 TAGS) \
295f4e42 27250 || exit 1
4977bab6 27251
d32ab992 27252@endif uudecode
4977bab6 27253
d32ab992
PB
27254.PHONY: maybe-install-info-uudecode install-info-uudecode
27255maybe-install-info-uudecode:
27256@if uudecode
27257maybe-install-info-uudecode: install-info-uudecode
7e2dbcef 27258
d32ab992
PB
27259install-info-uudecode: \
27260 configure-uudecode \
05750653 27261 info-uudecode
f41d6665 27262 @: $(MAKE); $(unstage)
d32ab992 27263 @[ -f ./uudecode/Makefile ] || exit 0; \
295f4e42
NN
27264 r=`${PWD_COMMAND}`; export r; \
27265 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27266 $(HOST_EXPORTS) \
d32ab992 27267 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27268 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27269 done; \
d32ab992 27270 echo "Doing install-info in uudecode" ; \
215c351a 27271 (cd $(HOST_SUBDIR)/uudecode && \
295f4e42
NN
27272 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27273 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27274 "RANLIB=$${RANLIB}" \
27275 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27276 install-info) \
295f4e42
NN
27277 || exit 1
27278
d32ab992 27279@endif uudecode
295f4e42 27280
65d6e994
CD
27281.PHONY: maybe-install-html-uudecode install-html-uudecode
27282maybe-install-html-uudecode:
27283@if uudecode
27284maybe-install-html-uudecode: install-html-uudecode
27285
27286install-html-uudecode: \
27287 configure-uudecode \
27288 html-uudecode
27289 @: $(MAKE); $(unstage)
27290 @[ -f ./uudecode/Makefile ] || exit 0; \
27291 r=`${PWD_COMMAND}`; export r; \
27292 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27293 $(HOST_EXPORTS) \
27294 for flag in $(EXTRA_HOST_FLAGS) ; do \
27295 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27296 done; \
27297 echo "Doing install-html in uudecode" ; \
27298 (cd $(HOST_SUBDIR)/uudecode && \
27299 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27300 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27301 "RANLIB=$${RANLIB}" \
27302 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
27303 install-html) \
27304 || exit 1
27305
27306@endif uudecode
27307
d32ab992
PB
27308.PHONY: maybe-installcheck-uudecode installcheck-uudecode
27309maybe-installcheck-uudecode:
27310@if uudecode
27311maybe-installcheck-uudecode: installcheck-uudecode
295f4e42 27312
d32ab992 27313installcheck-uudecode: \
05750653 27314 configure-uudecode
f41d6665 27315 @: $(MAKE); $(unstage)
d32ab992 27316 @[ -f ./uudecode/Makefile ] || exit 0; \
295f4e42
NN
27317 r=`${PWD_COMMAND}`; export r; \
27318 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27319 $(HOST_EXPORTS) \
d32ab992 27320 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27321 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27322 done; \
d32ab992 27323 echo "Doing installcheck in uudecode" ; \
215c351a 27324 (cd $(HOST_SUBDIR)/uudecode && \
295f4e42
NN
27325 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27326 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27327 "RANLIB=$${RANLIB}" \
27328 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27329 installcheck) \
295f4e42
NN
27330 || exit 1
27331
d32ab992 27332@endif uudecode
295f4e42 27333
d32ab992
PB
27334.PHONY: maybe-mostlyclean-uudecode mostlyclean-uudecode
27335maybe-mostlyclean-uudecode:
27336@if uudecode
27337maybe-mostlyclean-uudecode: mostlyclean-uudecode
295f4e42 27338
05750653 27339mostlyclean-uudecode:
f41d6665 27340 @: $(MAKE); $(unstage)
d32ab992 27341 @[ -f ./uudecode/Makefile ] || exit 0; \
295f4e42
NN
27342 r=`${PWD_COMMAND}`; export r; \
27343 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27344 $(HOST_EXPORTS) \
d32ab992 27345 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27346 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27347 done; \
d32ab992 27348 echo "Doing mostlyclean in uudecode" ; \
215c351a 27349 (cd $(HOST_SUBDIR)/uudecode && \
295f4e42
NN
27350 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27351 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27352 "RANLIB=$${RANLIB}" \
27353 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27354 mostlyclean) \
295f4e42
NN
27355 || exit 1
27356
d32ab992 27357@endif uudecode
295f4e42 27358
d32ab992
PB
27359.PHONY: maybe-clean-uudecode clean-uudecode
27360maybe-clean-uudecode:
27361@if uudecode
27362maybe-clean-uudecode: clean-uudecode
295f4e42 27363
05750653 27364clean-uudecode:
f41d6665 27365 @: $(MAKE); $(unstage)
d32ab992 27366 @[ -f ./uudecode/Makefile ] || exit 0; \
295f4e42
NN
27367 r=`${PWD_COMMAND}`; export r; \
27368 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27369 $(HOST_EXPORTS) \
d32ab992 27370 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27371 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27372 done; \
d32ab992 27373 echo "Doing clean in uudecode" ; \
215c351a 27374 (cd $(HOST_SUBDIR)/uudecode && \
295f4e42
NN
27375 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27376 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27377 "RANLIB=$${RANLIB}" \
27378 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27379 clean) \
295f4e42
NN
27380 || exit 1
27381
d32ab992 27382@endif uudecode
295f4e42 27383
d32ab992
PB
27384.PHONY: maybe-distclean-uudecode distclean-uudecode
27385maybe-distclean-uudecode:
27386@if uudecode
27387maybe-distclean-uudecode: distclean-uudecode
295f4e42 27388
05750653 27389distclean-uudecode:
f41d6665 27390 @: $(MAKE); $(unstage)
d32ab992 27391 @[ -f ./uudecode/Makefile ] || exit 0; \
295f4e42
NN
27392 r=`${PWD_COMMAND}`; export r; \
27393 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27394 $(HOST_EXPORTS) \
d32ab992 27395 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27396 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27397 done; \
d32ab992 27398 echo "Doing distclean in uudecode" ; \
215c351a 27399 (cd $(HOST_SUBDIR)/uudecode && \
295f4e42
NN
27400 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27401 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27402 "RANLIB=$${RANLIB}" \
27403 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27404 distclean) \
295f4e42
NN
27405 || exit 1
27406
d32ab992 27407@endif uudecode
295f4e42 27408
d32ab992
PB
27409.PHONY: maybe-maintainer-clean-uudecode maintainer-clean-uudecode
27410maybe-maintainer-clean-uudecode:
27411@if uudecode
27412maybe-maintainer-clean-uudecode: maintainer-clean-uudecode
295f4e42 27413
05750653 27414maintainer-clean-uudecode:
f41d6665 27415 @: $(MAKE); $(unstage)
d32ab992 27416 @[ -f ./uudecode/Makefile ] || exit 0; \
295f4e42 27417 r=`${PWD_COMMAND}`; export r; \
8c90b13a 27418 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27419 $(HOST_EXPORTS) \
d32ab992 27420 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27421 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27422 done; \
d32ab992 27423 echo "Doing maintainer-clean in uudecode" ; \
215c351a 27424 (cd $(HOST_SUBDIR)/uudecode && \
295f4e42
NN
27425 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27426 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27427 "RANLIB=$${RANLIB}" \
27428 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27429 maintainer-clean) \
295f4e42 27430 || exit 1
4977bab6 27431
d32ab992 27432@endif uudecode
4977bab6 27433
295f4e42 27434
25b42232 27435
d32ab992
PB
27436.PHONY: configure-wdiff maybe-configure-wdiff
27437maybe-configure-wdiff:
3ff3adad
PB
27438@if gcc-bootstrap
27439configure-wdiff: stage_current
27440@endif gcc-bootstrap
d32ab992
PB
27441@if wdiff
27442maybe-configure-wdiff: configure-wdiff
cc11cc9b 27443configure-wdiff:
f41d6665 27444 @: $(MAKE); $(unstage)
cc11cc9b 27445 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 27446 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
27447 test ! -f $(HOST_SUBDIR)/wdiff/Makefile || exit 0; \
27448 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/wdiff ; \
4fc4dd12 27449 $(HOST_EXPORTS) \
25b42232
PB
27450 echo Configuring in $(HOST_SUBDIR)/wdiff; \
27451 cd "$(HOST_SUBDIR)/wdiff" || exit 1; \
4977bab6 27452 case $(srcdir) in \
215c351a
PB
27453 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
27454 *) topdir=`echo $(HOST_SUBDIR)/wdiff/ | \
27455 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 27456 esac; \
215c351a
PB
27457 srcdiroption="--srcdir=$${topdir}/wdiff"; \
27458 libsrcdir="$$s/wdiff"; \
4977bab6 27459 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 27460 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 27461 || exit 1
d32ab992 27462@endif wdiff
4977bab6 27463
25b42232
PB
27464
27465
ce406537
PB
27466
27467
d32ab992
PB
27468.PHONY: all-wdiff maybe-all-wdiff
27469maybe-all-wdiff:
3ff3adad
PB
27470@if gcc-bootstrap
27471all-wdiff: stage_current
27472@endif gcc-bootstrap
d32ab992 27473@if wdiff
7e0b5752 27474TARGET-wdiff=all
d32ab992
PB
27475maybe-all-wdiff: all-wdiff
27476all-wdiff: configure-wdiff
f41d6665 27477 @: $(MAKE); $(unstage)
8c90b13a
L
27478 @r=`${PWD_COMMAND}`; export r; \
27479 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27480 $(HOST_EXPORTS) \
215c351a
PB
27481 (cd $(HOST_SUBDIR)/wdiff && \
27482 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-wdiff))
d32ab992 27483@endif wdiff
4977bab6 27484
25b42232 27485
ce406537
PB
27486
27487
d32ab992
PB
27488.PHONY: check-wdiff maybe-check-wdiff
27489maybe-check-wdiff:
27490@if wdiff
27491maybe-check-wdiff: check-wdiff
4977bab6 27492
d32ab992 27493check-wdiff:
f41d6665 27494 @: $(MAKE); $(unstage)
d32ab992
PB
27495 @r=`${PWD_COMMAND}`; export r; \
27496 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d32ab992 27497 $(HOST_EXPORTS) \
215c351a
PB
27498 (cd $(HOST_SUBDIR)/wdiff && \
27499 $(MAKE) $(FLAGS_TO_PASS) check)
295f4e42 27500
d32ab992 27501@endif wdiff
295f4e42 27502
d32ab992
PB
27503.PHONY: install-wdiff maybe-install-wdiff
27504maybe-install-wdiff:
27505@if wdiff
27506maybe-install-wdiff: install-wdiff
295f4e42 27507
d32ab992 27508install-wdiff: installdirs
f41d6665 27509 @: $(MAKE); $(unstage)
8c90b13a
L
27510 @r=`${PWD_COMMAND}`; export r; \
27511 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27512 $(HOST_EXPORTS) \
215c351a 27513 (cd $(HOST_SUBDIR)/wdiff && \
ace9ac7b 27514 $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6 27515
d32ab992 27516@endif wdiff
4977bab6 27517
295f4e42
NN
27518# Other targets (info, dvi, etc.)
27519
d32ab992
PB
27520.PHONY: maybe-info-wdiff info-wdiff
27521maybe-info-wdiff:
27522@if wdiff
27523maybe-info-wdiff: info-wdiff
295f4e42 27524
d32ab992 27525info-wdiff: \
05750653 27526 configure-wdiff
f41d6665 27527 @: $(MAKE); $(unstage)
d32ab992 27528 @[ -f ./wdiff/Makefile ] || exit 0; \
295f4e42
NN
27529 r=`${PWD_COMMAND}`; export r; \
27530 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27531 $(HOST_EXPORTS) \
d32ab992 27532 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27533 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27534 done; \
d32ab992 27535 echo "Doing info in wdiff" ; \
215c351a 27536 (cd $(HOST_SUBDIR)/wdiff && \
295f4e42
NN
27537 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27538 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27539 "RANLIB=$${RANLIB}" \
27540 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27541 info) \
295f4e42
NN
27542 || exit 1
27543
d32ab992 27544@endif wdiff
295f4e42 27545
d32ab992
PB
27546.PHONY: maybe-dvi-wdiff dvi-wdiff
27547maybe-dvi-wdiff:
27548@if wdiff
27549maybe-dvi-wdiff: dvi-wdiff
295f4e42 27550
d32ab992 27551dvi-wdiff: \
05750653 27552 configure-wdiff
f41d6665 27553 @: $(MAKE); $(unstage)
d32ab992 27554 @[ -f ./wdiff/Makefile ] || exit 0; \
295f4e42
NN
27555 r=`${PWD_COMMAND}`; export r; \
27556 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27557 $(HOST_EXPORTS) \
d32ab992 27558 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27559 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27560 done; \
d32ab992 27561 echo "Doing dvi in wdiff" ; \
215c351a 27562 (cd $(HOST_SUBDIR)/wdiff && \
295f4e42
NN
27563 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27564 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27565 "RANLIB=$${RANLIB}" \
27566 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27567 dvi) \
295f4e42
NN
27568 || exit 1
27569
d32ab992 27570@endif wdiff
295f4e42 27571
f87a2b2e
MS
27572.PHONY: maybe-html-wdiff html-wdiff
27573maybe-html-wdiff:
27574@if wdiff
27575maybe-html-wdiff: html-wdiff
27576
27577html-wdiff: \
05750653 27578 configure-wdiff
f41d6665 27579 @: $(MAKE); $(unstage)
f87a2b2e
MS
27580 @[ -f ./wdiff/Makefile ] || exit 0; \
27581 r=`${PWD_COMMAND}`; export r; \
27582 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
27583 $(HOST_EXPORTS) \
27584 for flag in $(EXTRA_HOST_FLAGS) ; do \
27585 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27586 done; \
27587 echo "Doing html in wdiff" ; \
215c351a 27588 (cd $(HOST_SUBDIR)/wdiff && \
f87a2b2e
MS
27589 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27590 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27591 "RANLIB=$${RANLIB}" \
27592 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
27593 html) \
27594 || exit 1
27595
27596@endif wdiff
27597
d32ab992
PB
27598.PHONY: maybe-TAGS-wdiff TAGS-wdiff
27599maybe-TAGS-wdiff:
27600@if wdiff
27601maybe-TAGS-wdiff: TAGS-wdiff
295f4e42 27602
d32ab992 27603TAGS-wdiff: \
05750653 27604 configure-wdiff
f41d6665 27605 @: $(MAKE); $(unstage)
d32ab992 27606 @[ -f ./wdiff/Makefile ] || exit 0; \
295f4e42
NN
27607 r=`${PWD_COMMAND}`; export r; \
27608 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27609 $(HOST_EXPORTS) \
d32ab992 27610 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27611 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27612 done; \
d32ab992 27613 echo "Doing TAGS in wdiff" ; \
215c351a 27614 (cd $(HOST_SUBDIR)/wdiff && \
295f4e42
NN
27615 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27616 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27617 "RANLIB=$${RANLIB}" \
27618 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27619 TAGS) \
295f4e42
NN
27620 || exit 1
27621
d32ab992 27622@endif wdiff
295f4e42 27623
d32ab992
PB
27624.PHONY: maybe-install-info-wdiff install-info-wdiff
27625maybe-install-info-wdiff:
27626@if wdiff
27627maybe-install-info-wdiff: install-info-wdiff
295f4e42 27628
d32ab992
PB
27629install-info-wdiff: \
27630 configure-wdiff \
05750653 27631 info-wdiff
f41d6665 27632 @: $(MAKE); $(unstage)
d32ab992 27633 @[ -f ./wdiff/Makefile ] || exit 0; \
295f4e42
NN
27634 r=`${PWD_COMMAND}`; export r; \
27635 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27636 $(HOST_EXPORTS) \
d32ab992 27637 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27638 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27639 done; \
d32ab992 27640 echo "Doing install-info in wdiff" ; \
215c351a 27641 (cd $(HOST_SUBDIR)/wdiff && \
295f4e42
NN
27642 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27643 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27644 "RANLIB=$${RANLIB}" \
27645 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27646 install-info) \
295f4e42
NN
27647 || exit 1
27648
d32ab992 27649@endif wdiff
295f4e42 27650
65d6e994
CD
27651.PHONY: maybe-install-html-wdiff install-html-wdiff
27652maybe-install-html-wdiff:
27653@if wdiff
27654maybe-install-html-wdiff: install-html-wdiff
27655
27656install-html-wdiff: \
27657 configure-wdiff \
27658 html-wdiff
27659 @: $(MAKE); $(unstage)
27660 @[ -f ./wdiff/Makefile ] || exit 0; \
27661 r=`${PWD_COMMAND}`; export r; \
27662 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27663 $(HOST_EXPORTS) \
27664 for flag in $(EXTRA_HOST_FLAGS) ; do \
27665 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27666 done; \
27667 echo "Doing install-html in wdiff" ; \
27668 (cd $(HOST_SUBDIR)/wdiff && \
27669 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27670 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27671 "RANLIB=$${RANLIB}" \
27672 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
27673 install-html) \
27674 || exit 1
27675
27676@endif wdiff
27677
d32ab992
PB
27678.PHONY: maybe-installcheck-wdiff installcheck-wdiff
27679maybe-installcheck-wdiff:
27680@if wdiff
27681maybe-installcheck-wdiff: installcheck-wdiff
295f4e42 27682
d32ab992 27683installcheck-wdiff: \
05750653 27684 configure-wdiff
f41d6665 27685 @: $(MAKE); $(unstage)
d32ab992 27686 @[ -f ./wdiff/Makefile ] || exit 0; \
295f4e42
NN
27687 r=`${PWD_COMMAND}`; export r; \
27688 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27689 $(HOST_EXPORTS) \
d32ab992 27690 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27691 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27692 done; \
d32ab992 27693 echo "Doing installcheck in wdiff" ; \
215c351a 27694 (cd $(HOST_SUBDIR)/wdiff && \
295f4e42
NN
27695 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27696 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27697 "RANLIB=$${RANLIB}" \
27698 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27699 installcheck) \
295f4e42
NN
27700 || exit 1
27701
d32ab992 27702@endif wdiff
295f4e42 27703
d32ab992
PB
27704.PHONY: maybe-mostlyclean-wdiff mostlyclean-wdiff
27705maybe-mostlyclean-wdiff:
27706@if wdiff
27707maybe-mostlyclean-wdiff: mostlyclean-wdiff
295f4e42 27708
05750653 27709mostlyclean-wdiff:
f41d6665 27710 @: $(MAKE); $(unstage)
d32ab992 27711 @[ -f ./wdiff/Makefile ] || exit 0; \
295f4e42
NN
27712 r=`${PWD_COMMAND}`; export r; \
27713 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27714 $(HOST_EXPORTS) \
d32ab992 27715 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27716 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27717 done; \
d32ab992 27718 echo "Doing mostlyclean in wdiff" ; \
215c351a 27719 (cd $(HOST_SUBDIR)/wdiff && \
295f4e42
NN
27720 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27721 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27722 "RANLIB=$${RANLIB}" \
27723 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27724 mostlyclean) \
295f4e42
NN
27725 || exit 1
27726
d32ab992 27727@endif wdiff
295f4e42 27728
d32ab992
PB
27729.PHONY: maybe-clean-wdiff clean-wdiff
27730maybe-clean-wdiff:
27731@if wdiff
27732maybe-clean-wdiff: clean-wdiff
295f4e42 27733
05750653 27734clean-wdiff:
f41d6665 27735 @: $(MAKE); $(unstage)
d32ab992 27736 @[ -f ./wdiff/Makefile ] || exit 0; \
295f4e42
NN
27737 r=`${PWD_COMMAND}`; export r; \
27738 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27739 $(HOST_EXPORTS) \
d32ab992 27740 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27741 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27742 done; \
d32ab992 27743 echo "Doing clean in wdiff" ; \
215c351a 27744 (cd $(HOST_SUBDIR)/wdiff && \
295f4e42
NN
27745 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27746 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27747 "RANLIB=$${RANLIB}" \
27748 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27749 clean) \
295f4e42
NN
27750 || exit 1
27751
d32ab992 27752@endif wdiff
295f4e42 27753
d32ab992
PB
27754.PHONY: maybe-distclean-wdiff distclean-wdiff
27755maybe-distclean-wdiff:
27756@if wdiff
27757maybe-distclean-wdiff: distclean-wdiff
295f4e42 27758
05750653 27759distclean-wdiff:
f41d6665 27760 @: $(MAKE); $(unstage)
d32ab992 27761 @[ -f ./wdiff/Makefile ] || exit 0; \
295f4e42
NN
27762 r=`${PWD_COMMAND}`; export r; \
27763 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27764 $(HOST_EXPORTS) \
d32ab992 27765 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27766 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27767 done; \
d32ab992 27768 echo "Doing distclean in wdiff" ; \
215c351a 27769 (cd $(HOST_SUBDIR)/wdiff && \
295f4e42
NN
27770 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27771 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27772 "RANLIB=$${RANLIB}" \
27773 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27774 distclean) \
295f4e42
NN
27775 || exit 1
27776
d32ab992 27777@endif wdiff
295f4e42 27778
d32ab992
PB
27779.PHONY: maybe-maintainer-clean-wdiff maintainer-clean-wdiff
27780maybe-maintainer-clean-wdiff:
27781@if wdiff
27782maybe-maintainer-clean-wdiff: maintainer-clean-wdiff
295f4e42 27783
05750653 27784maintainer-clean-wdiff:
f41d6665 27785 @: $(MAKE); $(unstage)
d32ab992 27786 @[ -f ./wdiff/Makefile ] || exit 0; \
295f4e42
NN
27787 r=`${PWD_COMMAND}`; export r; \
27788 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27789 $(HOST_EXPORTS) \
d32ab992 27790 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27791 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27792 done; \
d32ab992 27793 echo "Doing maintainer-clean in wdiff" ; \
215c351a 27794 (cd $(HOST_SUBDIR)/wdiff && \
295f4e42
NN
27795 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27796 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27797 "RANLIB=$${RANLIB}" \
27798 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27799 maintainer-clean) \
295f4e42 27800 || exit 1
7e2dbcef 27801
d32ab992 27802@endif wdiff
4977bab6
ZW
27803
27804
25b42232 27805
d32ab992
PB
27806.PHONY: configure-zip maybe-configure-zip
27807maybe-configure-zip:
3ff3adad
PB
27808@if gcc-bootstrap
27809configure-zip: stage_current
27810@endif gcc-bootstrap
d32ab992
PB
27811@if zip
27812maybe-configure-zip: configure-zip
cc11cc9b 27813configure-zip:
f41d6665 27814 @: $(MAKE); $(unstage)
cc11cc9b 27815 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 27816 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
27817 test ! -f $(HOST_SUBDIR)/zip/Makefile || exit 0; \
27818 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zip ; \
4fc4dd12 27819 $(HOST_EXPORTS) \
25b42232
PB
27820 echo Configuring in $(HOST_SUBDIR)/zip; \
27821 cd "$(HOST_SUBDIR)/zip" || exit 1; \
4977bab6 27822 case $(srcdir) in \
215c351a
PB
27823 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
27824 *) topdir=`echo $(HOST_SUBDIR)/zip/ | \
27825 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 27826 esac; \
215c351a
PB
27827 srcdiroption="--srcdir=$${topdir}/zip"; \
27828 libsrcdir="$$s/zip"; \
4977bab6 27829 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 27830 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 27831 || exit 1
d32ab992 27832@endif zip
4977bab6 27833
25b42232
PB
27834
27835
ce406537
PB
27836
27837
d32ab992
PB
27838.PHONY: all-zip maybe-all-zip
27839maybe-all-zip:
3ff3adad
PB
27840@if gcc-bootstrap
27841all-zip: stage_current
27842@endif gcc-bootstrap
d32ab992 27843@if zip
7e0b5752 27844TARGET-zip=all
d32ab992
PB
27845maybe-all-zip: all-zip
27846all-zip: configure-zip
f41d6665 27847 @: $(MAKE); $(unstage)
8c90b13a
L
27848 @r=`${PWD_COMMAND}`; export r; \
27849 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27850 $(HOST_EXPORTS) \
215c351a
PB
27851 (cd $(HOST_SUBDIR)/zip && \
27852 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-zip))
d32ab992 27853@endif zip
4977bab6 27854
25b42232 27855
ce406537
PB
27856
27857
d32ab992
PB
27858.PHONY: check-zip maybe-check-zip
27859maybe-check-zip:
27860@if zip
27861maybe-check-zip: check-zip
4977bab6 27862
d32ab992
PB
27863# This module is only tested in a native toolchain.
27864check-zip:
f41d6665 27865 @: $(MAKE); $(unstage)
d32ab992
PB
27866 @if [ '$(host)' = '$(target)' ] ; then \
27867 r=`${PWD_COMMAND}`; export r; \
27868 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d32ab992 27869 $(HOST_EXPORTS) \
215c351a 27870 (cd $(HOST_SUBDIR)/zip && \
ef6e9bc0 27871 $(MAKE) $(FLAGS_TO_PASS) check); \
d32ab992 27872 fi
295f4e42 27873
d32ab992 27874@endif zip
295f4e42 27875
d32ab992
PB
27876.PHONY: install-zip maybe-install-zip
27877maybe-install-zip:
27878@if zip
27879maybe-install-zip: install-zip
295f4e42 27880
d32ab992 27881install-zip: installdirs
f41d6665 27882 @: $(MAKE); $(unstage)
d32ab992
PB
27883 @r=`${PWD_COMMAND}`; export r; \
27884 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d32ab992 27885 $(HOST_EXPORTS) \
215c351a 27886 (cd $(HOST_SUBDIR)/zip && \
ace9ac7b 27887 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 27888
d32ab992 27889@endif zip
295f4e42
NN
27890
27891# Other targets (info, dvi, etc.)
27892
d32ab992
PB
27893.PHONY: maybe-info-zip info-zip
27894maybe-info-zip:
27895@if zip
27896maybe-info-zip: info-zip
295f4e42 27897
d32ab992 27898info-zip: \
05750653 27899 configure-zip
f41d6665 27900 @: $(MAKE); $(unstage)
d32ab992 27901 @[ -f ./zip/Makefile ] || exit 0; \
295f4e42 27902 r=`${PWD_COMMAND}`; export r; \
8c90b13a 27903 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27904 $(HOST_EXPORTS) \
d32ab992 27905 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27906 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27907 done; \
d32ab992 27908 echo "Doing info in zip" ; \
215c351a 27909 (cd $(HOST_SUBDIR)/zip && \
295f4e42
NN
27910 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27911 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27912 "RANLIB=$${RANLIB}" \
27913 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27914 info) \
295f4e42 27915 || exit 1
4977bab6 27916
d32ab992 27917@endif zip
4977bab6 27918
d32ab992
PB
27919.PHONY: maybe-dvi-zip dvi-zip
27920maybe-dvi-zip:
27921@if zip
27922maybe-dvi-zip: dvi-zip
7e2dbcef 27923
d32ab992 27924dvi-zip: \
05750653 27925 configure-zip
f41d6665 27926 @: $(MAKE); $(unstage)
d32ab992 27927 @[ -f ./zip/Makefile ] || exit 0; \
295f4e42 27928 r=`${PWD_COMMAND}`; export r; \
8c90b13a 27929 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27930 $(HOST_EXPORTS) \
d32ab992 27931 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27932 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27933 done; \
d32ab992 27934 echo "Doing dvi in zip" ; \
215c351a 27935 (cd $(HOST_SUBDIR)/zip && \
295f4e42
NN
27936 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27937 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27938 "RANLIB=$${RANLIB}" \
27939 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27940 dvi) \
295f4e42 27941 || exit 1
4977bab6 27942
d32ab992 27943@endif zip
4977bab6 27944
f87a2b2e
MS
27945.PHONY: maybe-html-zip html-zip
27946maybe-html-zip:
27947@if zip
27948maybe-html-zip: html-zip
27949
27950html-zip: \
05750653 27951 configure-zip
f41d6665 27952 @: $(MAKE); $(unstage)
f87a2b2e
MS
27953 @[ -f ./zip/Makefile ] || exit 0; \
27954 r=`${PWD_COMMAND}`; export r; \
27955 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
27956 $(HOST_EXPORTS) \
27957 for flag in $(EXTRA_HOST_FLAGS) ; do \
27958 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27959 done; \
27960 echo "Doing html in zip" ; \
215c351a 27961 (cd $(HOST_SUBDIR)/zip && \
f87a2b2e
MS
27962 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27963 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27964 "RANLIB=$${RANLIB}" \
27965 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
27966 html) \
27967 || exit 1
27968
27969@endif zip
27970
d32ab992
PB
27971.PHONY: maybe-TAGS-zip TAGS-zip
27972maybe-TAGS-zip:
27973@if zip
27974maybe-TAGS-zip: TAGS-zip
295f4e42 27975
d32ab992 27976TAGS-zip: \
05750653 27977 configure-zip
f41d6665 27978 @: $(MAKE); $(unstage)
d32ab992 27979 @[ -f ./zip/Makefile ] || exit 0; \
295f4e42
NN
27980 r=`${PWD_COMMAND}`; export r; \
27981 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27982 $(HOST_EXPORTS) \
d32ab992 27983 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27984 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27985 done; \
d32ab992 27986 echo "Doing TAGS in zip" ; \
215c351a 27987 (cd $(HOST_SUBDIR)/zip && \
295f4e42
NN
27988 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27989 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27990 "RANLIB=$${RANLIB}" \
27991 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27992 TAGS) \
295f4e42
NN
27993 || exit 1
27994
d32ab992 27995@endif zip
295f4e42 27996
d32ab992
PB
27997.PHONY: maybe-install-info-zip install-info-zip
27998maybe-install-info-zip:
27999@if zip
28000maybe-install-info-zip: install-info-zip
295f4e42 28001
d32ab992
PB
28002install-info-zip: \
28003 configure-zip \
05750653 28004 info-zip
f41d6665 28005 @: $(MAKE); $(unstage)
d32ab992 28006 @[ -f ./zip/Makefile ] || exit 0; \
295f4e42
NN
28007 r=`${PWD_COMMAND}`; export r; \
28008 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28009 $(HOST_EXPORTS) \
d32ab992 28010 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
28011 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28012 done; \
d32ab992 28013 echo "Doing install-info in zip" ; \
215c351a 28014 (cd $(HOST_SUBDIR)/zip && \
295f4e42
NN
28015 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28016 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28017 "RANLIB=$${RANLIB}" \
28018 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 28019 install-info) \
295f4e42
NN
28020 || exit 1
28021
d32ab992 28022@endif zip
295f4e42 28023
65d6e994
CD
28024.PHONY: maybe-install-html-zip install-html-zip
28025maybe-install-html-zip:
28026@if zip
28027maybe-install-html-zip: install-html-zip
28028
28029install-html-zip: \
28030 configure-zip \
28031 html-zip
28032 @: $(MAKE); $(unstage)
28033 @[ -f ./zip/Makefile ] || exit 0; \
28034 r=`${PWD_COMMAND}`; export r; \
28035 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28036 $(HOST_EXPORTS) \
28037 for flag in $(EXTRA_HOST_FLAGS) ; do \
28038 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28039 done; \
28040 echo "Doing install-html in zip" ; \
28041 (cd $(HOST_SUBDIR)/zip && \
28042 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28043 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28044 "RANLIB=$${RANLIB}" \
28045 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
28046 install-html) \
28047 || exit 1
28048
28049@endif zip
28050
d32ab992
PB
28051.PHONY: maybe-installcheck-zip installcheck-zip
28052maybe-installcheck-zip:
28053@if zip
28054maybe-installcheck-zip: installcheck-zip
295f4e42 28055
d32ab992 28056installcheck-zip: \
05750653 28057 configure-zip
f41d6665 28058 @: $(MAKE); $(unstage)
d32ab992 28059 @[ -f ./zip/Makefile ] || exit 0; \
295f4e42
NN
28060 r=`${PWD_COMMAND}`; export r; \
28061 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28062 $(HOST_EXPORTS) \
d32ab992 28063 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
28064 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28065 done; \
d32ab992 28066 echo "Doing installcheck in zip" ; \
215c351a 28067 (cd $(HOST_SUBDIR)/zip && \
295f4e42
NN
28068 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28069 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28070 "RANLIB=$${RANLIB}" \
28071 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 28072 installcheck) \
295f4e42
NN
28073 || exit 1
28074
d32ab992 28075@endif zip
295f4e42 28076
d32ab992
PB
28077.PHONY: maybe-mostlyclean-zip mostlyclean-zip
28078maybe-mostlyclean-zip:
28079@if zip
28080maybe-mostlyclean-zip: mostlyclean-zip
295f4e42 28081
05750653 28082mostlyclean-zip:
f41d6665 28083 @: $(MAKE); $(unstage)
d32ab992 28084 @[ -f ./zip/Makefile ] || exit 0; \
295f4e42
NN
28085 r=`${PWD_COMMAND}`; export r; \
28086 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28087 $(HOST_EXPORTS) \
d32ab992 28088 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
28089 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28090 done; \
d32ab992 28091 echo "Doing mostlyclean in zip" ; \
215c351a 28092 (cd $(HOST_SUBDIR)/zip && \
295f4e42
NN
28093 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28094 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28095 "RANLIB=$${RANLIB}" \
28096 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 28097 mostlyclean) \
295f4e42
NN
28098 || exit 1
28099
d32ab992 28100@endif zip
295f4e42 28101
d32ab992
PB
28102.PHONY: maybe-clean-zip clean-zip
28103maybe-clean-zip:
28104@if zip
28105maybe-clean-zip: clean-zip
295f4e42 28106
05750653 28107clean-zip:
f41d6665 28108 @: $(MAKE); $(unstage)
d32ab992 28109 @[ -f ./zip/Makefile ] || exit 0; \
295f4e42
NN
28110 r=`${PWD_COMMAND}`; export r; \
28111 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28112 $(HOST_EXPORTS) \
d32ab992 28113 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
28114 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28115 done; \
d32ab992 28116 echo "Doing clean in zip" ; \
215c351a 28117 (cd $(HOST_SUBDIR)/zip && \
295f4e42
NN
28118 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28119 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28120 "RANLIB=$${RANLIB}" \
28121 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 28122 clean) \
295f4e42
NN
28123 || exit 1
28124
d32ab992 28125@endif zip
295f4e42 28126
d32ab992
PB
28127.PHONY: maybe-distclean-zip distclean-zip
28128maybe-distclean-zip:
28129@if zip
28130maybe-distclean-zip: distclean-zip
295f4e42 28131
05750653 28132distclean-zip:
f41d6665 28133 @: $(MAKE); $(unstage)
d32ab992 28134 @[ -f ./zip/Makefile ] || exit 0; \
295f4e42
NN
28135 r=`${PWD_COMMAND}`; export r; \
28136 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28137 $(HOST_EXPORTS) \
d32ab992 28138 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
28139 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28140 done; \
d32ab992 28141 echo "Doing distclean in zip" ; \
215c351a 28142 (cd $(HOST_SUBDIR)/zip && \
295f4e42
NN
28143 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28144 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28145 "RANLIB=$${RANLIB}" \
28146 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 28147 distclean) \
295f4e42
NN
28148 || exit 1
28149
d32ab992 28150@endif zip
295f4e42 28151
d32ab992
PB
28152.PHONY: maybe-maintainer-clean-zip maintainer-clean-zip
28153maybe-maintainer-clean-zip:
28154@if zip
28155maybe-maintainer-clean-zip: maintainer-clean-zip
295f4e42 28156
05750653 28157maintainer-clean-zip:
f41d6665 28158 @: $(MAKE); $(unstage)
d32ab992 28159 @[ -f ./zip/Makefile ] || exit 0; \
295f4e42
NN
28160 r=`${PWD_COMMAND}`; export r; \
28161 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28162 $(HOST_EXPORTS) \
d32ab992 28163 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
28164 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28165 done; \
d32ab992 28166 echo "Doing maintainer-clean in zip" ; \
215c351a 28167 (cd $(HOST_SUBDIR)/zip && \
295f4e42
NN
28168 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28169 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28170 "RANLIB=$${RANLIB}" \
28171 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 28172 maintainer-clean) \
295f4e42
NN
28173 || exit 1
28174
d32ab992 28175@endif zip
295f4e42
NN
28176
28177
25b42232 28178
d32ab992
PB
28179.PHONY: configure-zlib maybe-configure-zlib
28180maybe-configure-zlib:
3ff3adad
PB
28181@if gcc-bootstrap
28182configure-zlib: stage_current
28183@endif gcc-bootstrap
d32ab992
PB
28184@if zlib
28185maybe-configure-zlib: configure-zlib
cc11cc9b 28186configure-zlib:
cc11cc9b
PB
28187 @r=`${PWD_COMMAND}`; export r; \
28188 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
215c351a
PB
28189 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
28190 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
4fc4dd12 28191 $(HOST_EXPORTS) \
25b42232
PB
28192 echo Configuring in $(HOST_SUBDIR)/zlib; \
28193 cd "$(HOST_SUBDIR)/zlib" || exit 1; \
4977bab6 28194 case $(srcdir) in \
215c351a
PB
28195 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
28196 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
28197 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 28198 esac; \
215c351a
PB
28199 srcdiroption="--srcdir=$${topdir}/zlib"; \
28200 libsrcdir="$$s/zlib"; \
4977bab6 28201 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 28202 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 28203 || exit 1
d32ab992 28204@endif zlib
4977bab6 28205
25b42232
PB
28206
28207
ce406537
PB
28208.PHONY: configure-stage1-zlib maybe-configure-stage1-zlib
28209maybe-configure-stage1-zlib:
28210@if zlib-bootstrap
28211maybe-configure-stage1-zlib: configure-stage1-zlib
f41d6665 28212configure-stage1-zlib:
cc11cc9b 28213 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
f41d6665 28214 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
cc11cc9b
PB
28215 @r=`${PWD_COMMAND}`; export r; \
28216 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 28217 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
ce406537
PB
28218 $(HOST_EXPORTS) \
28219 echo Configuring stage 1 in $(HOST_SUBDIR)/zlib ; \
f41d6665 28220 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
ce406537
PB
28221 cd $(HOST_SUBDIR)/zlib || exit 1; \
28222 case $(srcdir) in \
28223 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
28224 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
28225 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
28226 esac; \
28227 srcdiroption="--srcdir=$${topdir}/zlib"; \
28228 libsrcdir="$$s/zlib"; \
28229 $(SHELL) $${libsrcdir}/configure \
28230 $(HOST_CONFIGARGS) $${srcdiroption} \
28231 --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
28232@endif zlib-bootstrap
28233
28234.PHONY: configure-stage2-zlib maybe-configure-stage2-zlib
28235maybe-configure-stage2-zlib:
28236@if zlib-bootstrap
28237maybe-configure-stage2-zlib: configure-stage2-zlib
f41d6665 28238configure-stage2-zlib:
cc11cc9b 28239 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
f41d6665 28240 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
cc11cc9b
PB
28241 @r=`${PWD_COMMAND}`; export r; \
28242 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 28243 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
ce406537
PB
28244 $(HOST_EXPORTS) \
28245 $(POSTSTAGE1_HOST_EXPORTS) \
28246 echo Configuring stage 2 in $(HOST_SUBDIR)/zlib ; \
f41d6665 28247 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
ce406537
PB
28248 cd $(HOST_SUBDIR)/zlib || exit 1; \
28249 case $(srcdir) in \
28250 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
28251 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
28252 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
28253 esac; \
28254 srcdiroption="--srcdir=$${topdir}/zlib"; \
28255 libsrcdir="$$s/zlib"; \
28256 $(SHELL) $${libsrcdir}/configure \
28257 $(HOST_CONFIGARGS) $${srcdiroption} \
28258 @stage2_werror_flag@
28259@endif zlib-bootstrap
28260
28261.PHONY: configure-stage3-zlib maybe-configure-stage3-zlib
28262maybe-configure-stage3-zlib:
28263@if zlib-bootstrap
28264maybe-configure-stage3-zlib: configure-stage3-zlib
f41d6665 28265configure-stage3-zlib:
cc11cc9b 28266 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
f41d6665 28267 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
cc11cc9b
PB
28268 @r=`${PWD_COMMAND}`; export r; \
28269 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 28270 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
ce406537
PB
28271 $(HOST_EXPORTS) \
28272 $(POSTSTAGE1_HOST_EXPORTS) \
28273 echo Configuring stage 3 in $(HOST_SUBDIR)/zlib ; \
f41d6665 28274 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
ce406537
PB
28275 cd $(HOST_SUBDIR)/zlib || exit 1; \
28276 case $(srcdir) in \
28277 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
28278 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
28279 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
28280 esac; \
28281 srcdiroption="--srcdir=$${topdir}/zlib"; \
28282 libsrcdir="$$s/zlib"; \
28283 $(SHELL) $${libsrcdir}/configure \
28284 $(HOST_CONFIGARGS) $${srcdiroption} \
28285 @stage2_werror_flag@
28286@endif zlib-bootstrap
28287
28288.PHONY: configure-stage4-zlib maybe-configure-stage4-zlib
28289maybe-configure-stage4-zlib:
28290@if zlib-bootstrap
28291maybe-configure-stage4-zlib: configure-stage4-zlib
f41d6665 28292configure-stage4-zlib:
cc11cc9b 28293 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
f41d6665 28294 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
cc11cc9b
PB
28295 @r=`${PWD_COMMAND}`; export r; \
28296 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 28297 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
ce406537
PB
28298 $(HOST_EXPORTS) \
28299 $(POSTSTAGE1_HOST_EXPORTS) \
28300 echo Configuring stage 4 in $(HOST_SUBDIR)/zlib ; \
f41d6665 28301 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
ce406537
PB
28302 cd $(HOST_SUBDIR)/zlib || exit 1; \
28303 case $(srcdir) in \
28304 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
28305 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
28306 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
28307 esac; \
28308 srcdiroption="--srcdir=$${topdir}/zlib"; \
28309 libsrcdir="$$s/zlib"; \
28310 $(SHELL) $${libsrcdir}/configure \
28311 $(HOST_CONFIGARGS) $${srcdiroption} \
28312 @stage2_werror_flag@
28313@endif zlib-bootstrap
28314
28315.PHONY: configure-stageprofile-zlib maybe-configure-stageprofile-zlib
28316maybe-configure-stageprofile-zlib:
28317@if zlib-bootstrap
28318maybe-configure-stageprofile-zlib: configure-stageprofile-zlib
f41d6665 28319configure-stageprofile-zlib:
cc11cc9b 28320 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
f41d6665 28321 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
cc11cc9b
PB
28322 @r=`${PWD_COMMAND}`; export r; \
28323 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 28324 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
ce406537
PB
28325 $(HOST_EXPORTS) \
28326 $(POSTSTAGE1_HOST_EXPORTS) \
28327 echo Configuring stage profile in $(HOST_SUBDIR)/zlib ; \
f41d6665 28328 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
ce406537
PB
28329 cd $(HOST_SUBDIR)/zlib || exit 1; \
28330 case $(srcdir) in \
28331 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
28332 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
28333 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
28334 esac; \
28335 srcdiroption="--srcdir=$${topdir}/zlib"; \
28336 libsrcdir="$$s/zlib"; \
28337 $(SHELL) $${libsrcdir}/configure \
28338 $(HOST_CONFIGARGS) $${srcdiroption} \
28339 @stage2_werror_flag@
28340@endif zlib-bootstrap
28341
28342.PHONY: configure-stagefeedback-zlib maybe-configure-stagefeedback-zlib
28343maybe-configure-stagefeedback-zlib:
28344@if zlib-bootstrap
28345maybe-configure-stagefeedback-zlib: configure-stagefeedback-zlib
f41d6665 28346configure-stagefeedback-zlib:
cc11cc9b 28347 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
f41d6665 28348 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
cc11cc9b
PB
28349 @r=`${PWD_COMMAND}`; export r; \
28350 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 28351 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
ce406537
PB
28352 $(HOST_EXPORTS) \
28353 $(POSTSTAGE1_HOST_EXPORTS) \
28354 echo Configuring stage feedback in $(HOST_SUBDIR)/zlib ; \
f41d6665 28355 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
ce406537
PB
28356 cd $(HOST_SUBDIR)/zlib || exit 1; \
28357 case $(srcdir) in \
28358 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
28359 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
28360 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
28361 esac; \
28362 srcdiroption="--srcdir=$${topdir}/zlib"; \
28363 libsrcdir="$$s/zlib"; \
28364 $(SHELL) $${libsrcdir}/configure \
28365 $(HOST_CONFIGARGS) $${srcdiroption} \
28366 @stage2_werror_flag@
28367@endif zlib-bootstrap
28368
28369
28370
28371
28372
d32ab992
PB
28373.PHONY: all-zlib maybe-all-zlib
28374maybe-all-zlib:
3ff3adad
PB
28375@if gcc-bootstrap
28376all-zlib: stage_current
28377@endif gcc-bootstrap
d32ab992 28378@if zlib
7e0b5752 28379TARGET-zlib=all
d32ab992
PB
28380maybe-all-zlib: all-zlib
28381all-zlib: configure-zlib
cc11cc9b 28382 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 28383 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28384 $(HOST_EXPORTS) \
215c351a
PB
28385 (cd $(HOST_SUBDIR)/zlib && \
28386 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-zlib))
d32ab992 28387@endif zlib
4977bab6 28388
25b42232 28389
ce406537
PB
28390
28391.PHONY: all-stage1-zlib maybe-all-stage1-zlib
28392.PHONY: clean-stage1-zlib maybe-clean-stage1-zlib
28393maybe-all-stage1-zlib:
28394maybe-clean-stage1-zlib:
28395@if zlib-bootstrap
28396maybe-all-stage1-zlib: all-stage1-zlib
28397all-stage1: all-stage1-zlib
1061f99e 28398TARGET-stage1-zlib = $(TARGET-zlib)
ce406537 28399all-stage1-zlib: configure-stage1-zlib
cc11cc9b 28400 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
ce406537
PB
28401 @r=`${PWD_COMMAND}`; export r; \
28402 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28403 $(HOST_EXPORTS) \
28404 cd $(HOST_SUBDIR)/zlib && \
cc11cc9b 28405 $(MAKE) $(FLAGS_TO_PASS) CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" \
1061f99e 28406 $(TARGET-stage1-zlib)
ce406537
PB
28407
28408maybe-clean-stage1-zlib: clean-stage1-zlib
28409clean-stage1: clean-stage1-zlib
28410clean-stage1-zlib:
28411 @[ -f $(HOST_SUBDIR)/zlib/Makefile ] || [ -f $(HOST_SUBDIR)/stage1-zlib/Makefile ] \
28412 || exit 0 ; \
cc11cc9b 28413 [ $(current_stage) = stage1 ] || $(MAKE) stage1-start; \
ce406537
PB
28414 cd $(HOST_SUBDIR)/zlib && \
28415 $(MAKE) $(FLAGS_TO_PASS) \
cc11cc9b 28416 CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" clean
ce406537
PB
28417@endif zlib-bootstrap
28418
28419
28420.PHONY: all-stage2-zlib maybe-all-stage2-zlib
28421.PHONY: clean-stage2-zlib maybe-clean-stage2-zlib
28422maybe-all-stage2-zlib:
28423maybe-clean-stage2-zlib:
28424@if zlib-bootstrap
28425maybe-all-stage2-zlib: all-stage2-zlib
28426all-stage2: all-stage2-zlib
1061f99e 28427TARGET-stage2-zlib = $(TARGET-zlib)
ce406537 28428all-stage2-zlib: configure-stage2-zlib
cc11cc9b 28429 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
ce406537
PB
28430 @r=`${PWD_COMMAND}`; export r; \
28431 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28432 $(HOST_EXPORTS) \
28433 $(POSTSTAGE1_HOST_EXPORTS) \
28434 cd $(HOST_SUBDIR)/zlib && \
1061f99e
PB
28435 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
28436 $(TARGET-stage2-zlib)
ce406537
PB
28437
28438maybe-clean-stage2-zlib: clean-stage2-zlib
28439clean-stage2: clean-stage2-zlib
28440clean-stage2-zlib:
28441 @[ -f $(HOST_SUBDIR)/zlib/Makefile ] || [ -f $(HOST_SUBDIR)/stage2-zlib/Makefile ] \
28442 || exit 0 ; \
cc11cc9b 28443 [ $(current_stage) = stage2 ] || $(MAKE) stage2-start; \
ce406537
PB
28444 cd $(HOST_SUBDIR)/zlib && \
28445 $(MAKE) $(FLAGS_TO_PASS) \
28446 $(POSTSTAGE1_FLAGS_TO_PASS) \
28447 clean
28448@endif zlib-bootstrap
28449
28450
28451.PHONY: all-stage3-zlib maybe-all-stage3-zlib
28452.PHONY: clean-stage3-zlib maybe-clean-stage3-zlib
28453maybe-all-stage3-zlib:
28454maybe-clean-stage3-zlib:
28455@if zlib-bootstrap
28456maybe-all-stage3-zlib: all-stage3-zlib
28457all-stage3: all-stage3-zlib
1061f99e 28458TARGET-stage3-zlib = $(TARGET-zlib)
ce406537 28459all-stage3-zlib: configure-stage3-zlib
cc11cc9b 28460 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
ce406537
PB
28461 @r=`${PWD_COMMAND}`; export r; \
28462 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28463 $(HOST_EXPORTS) \
28464 $(POSTSTAGE1_HOST_EXPORTS) \
28465 cd $(HOST_SUBDIR)/zlib && \
1061f99e
PB
28466 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
28467 $(TARGET-stage3-zlib)
ce406537
PB
28468
28469maybe-clean-stage3-zlib: clean-stage3-zlib
28470clean-stage3: clean-stage3-zlib
28471clean-stage3-zlib:
28472 @[ -f $(HOST_SUBDIR)/zlib/Makefile ] || [ -f $(HOST_SUBDIR)/stage3-zlib/Makefile ] \
28473 || exit 0 ; \
cc11cc9b 28474 [ $(current_stage) = stage3 ] || $(MAKE) stage3-start; \
ce406537
PB
28475 cd $(HOST_SUBDIR)/zlib && \
28476 $(MAKE) $(FLAGS_TO_PASS) \
28477 $(POSTSTAGE1_FLAGS_TO_PASS) \
28478 clean
28479@endif zlib-bootstrap
28480
28481
28482.PHONY: all-stage4-zlib maybe-all-stage4-zlib
28483.PHONY: clean-stage4-zlib maybe-clean-stage4-zlib
28484maybe-all-stage4-zlib:
28485maybe-clean-stage4-zlib:
28486@if zlib-bootstrap
28487maybe-all-stage4-zlib: all-stage4-zlib
28488all-stage4: all-stage4-zlib
1061f99e 28489TARGET-stage4-zlib = $(TARGET-zlib)
ce406537 28490all-stage4-zlib: configure-stage4-zlib
cc11cc9b 28491 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
ce406537
PB
28492 @r=`${PWD_COMMAND}`; export r; \
28493 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28494 $(HOST_EXPORTS) \
28495 $(POSTSTAGE1_HOST_EXPORTS) \
28496 cd $(HOST_SUBDIR)/zlib && \
1061f99e
PB
28497 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
28498 $(TARGET-stage4-zlib)
ce406537
PB
28499
28500maybe-clean-stage4-zlib: clean-stage4-zlib
28501clean-stage4: clean-stage4-zlib
28502clean-stage4-zlib:
28503 @[ -f $(HOST_SUBDIR)/zlib/Makefile ] || [ -f $(HOST_SUBDIR)/stage4-zlib/Makefile ] \
28504 || exit 0 ; \
cc11cc9b 28505 [ $(current_stage) = stage4 ] || $(MAKE) stage4-start; \
ce406537
PB
28506 cd $(HOST_SUBDIR)/zlib && \
28507 $(MAKE) $(FLAGS_TO_PASS) \
28508 $(POSTSTAGE1_FLAGS_TO_PASS) \
28509 clean
28510@endif zlib-bootstrap
28511
28512
28513.PHONY: all-stageprofile-zlib maybe-all-stageprofile-zlib
28514.PHONY: clean-stageprofile-zlib maybe-clean-stageprofile-zlib
28515maybe-all-stageprofile-zlib:
28516maybe-clean-stageprofile-zlib:
28517@if zlib-bootstrap
28518maybe-all-stageprofile-zlib: all-stageprofile-zlib
28519all-stageprofile: all-stageprofile-zlib
1061f99e 28520TARGET-stageprofile-zlib = $(TARGET-zlib)
ce406537 28521all-stageprofile-zlib: configure-stageprofile-zlib
cc11cc9b 28522 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
ce406537
PB
28523 @r=`${PWD_COMMAND}`; export r; \
28524 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28525 $(HOST_EXPORTS) \
28526 $(POSTSTAGE1_HOST_EXPORTS) \
28527 cd $(HOST_SUBDIR)/zlib && \
1061f99e
PB
28528 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" \
28529 $(TARGET-stageprofile-zlib)
ce406537
PB
28530
28531maybe-clean-stageprofile-zlib: clean-stageprofile-zlib
28532clean-stageprofile: clean-stageprofile-zlib
28533clean-stageprofile-zlib:
28534 @[ -f $(HOST_SUBDIR)/zlib/Makefile ] || [ -f $(HOST_SUBDIR)/stageprofile-zlib/Makefile ] \
28535 || exit 0 ; \
cc11cc9b 28536 [ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start; \
ce406537
PB
28537 cd $(HOST_SUBDIR)/zlib && \
28538 $(MAKE) $(FLAGS_TO_PASS) \
28539 $(POSTSTAGE1_FLAGS_TO_PASS) \
28540 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean
28541@endif zlib-bootstrap
28542
28543
28544.PHONY: all-stagefeedback-zlib maybe-all-stagefeedback-zlib
28545.PHONY: clean-stagefeedback-zlib maybe-clean-stagefeedback-zlib
28546maybe-all-stagefeedback-zlib:
28547maybe-clean-stagefeedback-zlib:
28548@if zlib-bootstrap
28549maybe-all-stagefeedback-zlib: all-stagefeedback-zlib
28550all-stagefeedback: all-stagefeedback-zlib
1061f99e 28551TARGET-stagefeedback-zlib = $(TARGET-zlib)
ce406537 28552all-stagefeedback-zlib: configure-stagefeedback-zlib
cc11cc9b 28553 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
ce406537
PB
28554 @r=`${PWD_COMMAND}`; export r; \
28555 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28556 $(HOST_EXPORTS) \
28557 $(POSTSTAGE1_HOST_EXPORTS) \
28558 cd $(HOST_SUBDIR)/zlib && \
1061f99e
PB
28559 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-use" \
28560 $(TARGET-stagefeedback-zlib)
ce406537
PB
28561
28562maybe-clean-stagefeedback-zlib: clean-stagefeedback-zlib
28563clean-stagefeedback: clean-stagefeedback-zlib
28564clean-stagefeedback-zlib:
28565 @[ -f $(HOST_SUBDIR)/zlib/Makefile ] || [ -f $(HOST_SUBDIR)/stagefeedback-zlib/Makefile ] \
28566 || exit 0 ; \
cc11cc9b 28567 [ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start; \
ce406537
PB
28568 cd $(HOST_SUBDIR)/zlib && \
28569 $(MAKE) $(FLAGS_TO_PASS) \
28570 $(POSTSTAGE1_FLAGS_TO_PASS) \
28571 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean
28572@endif zlib-bootstrap
28573
28574
28575
28576
28577
d32ab992
PB
28578.PHONY: check-zlib maybe-check-zlib
28579maybe-check-zlib:
28580@if zlib
28581maybe-check-zlib: check-zlib
4977bab6 28582
d32ab992 28583check-zlib:
4977bab6 28584
d32ab992 28585@endif zlib
4977bab6 28586
d32ab992
PB
28587.PHONY: install-zlib maybe-install-zlib
28588maybe-install-zlib:
28589@if zlib
28590maybe-install-zlib: install-zlib
7e2dbcef 28591
d32ab992 28592install-zlib:
4977bab6 28593
d32ab992 28594@endif zlib
4977bab6 28595
295f4e42
NN
28596# Other targets (info, dvi, etc.)
28597
d32ab992
PB
28598.PHONY: maybe-info-zlib info-zlib
28599maybe-info-zlib:
28600@if zlib
28601maybe-info-zlib: info-zlib
295f4e42 28602
f87a2b2e 28603info-zlib: \
05750653 28604 configure-zlib
f87a2b2e
MS
28605 @[ -f ./zlib/Makefile ] || exit 0; \
28606 r=`${PWD_COMMAND}`; export r; \
28607 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
28608 $(HOST_EXPORTS) \
28609 for flag in $(EXTRA_HOST_FLAGS) ; do \
28610 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28611 done; \
28612 echo "Doing info in zlib" ; \
215c351a 28613 (cd $(HOST_SUBDIR)/zlib && \
f87a2b2e
MS
28614 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28615 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28616 "RANLIB=$${RANLIB}" \
28617 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
28618 info) \
28619 || exit 1
28620
28621@endif zlib
28622
28623.PHONY: maybe-dvi-zlib dvi-zlib
28624maybe-dvi-zlib:
28625@if zlib
28626maybe-dvi-zlib: dvi-zlib
28627
28628dvi-zlib: \
05750653 28629 configure-zlib
d32ab992 28630 @[ -f ./zlib/Makefile ] || exit 0; \
8c90b13a
L
28631 r=`${PWD_COMMAND}`; export r; \
28632 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28633 $(HOST_EXPORTS) \
d32ab992 28634 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
28635 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28636 done; \
f87a2b2e 28637 echo "Doing dvi in zlib" ; \
215c351a 28638 (cd $(HOST_SUBDIR)/zlib && \
295f4e42
NN
28639 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28640 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28641 "RANLIB=$${RANLIB}" \
28642 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
f87a2b2e 28643 dvi) \
4977bab6
ZW
28644 || exit 1
28645
d32ab992 28646@endif zlib
295f4e42 28647
f87a2b2e
MS
28648.PHONY: maybe-html-zlib html-zlib
28649maybe-html-zlib:
d32ab992 28650@if zlib
f87a2b2e 28651maybe-html-zlib: html-zlib
295f4e42 28652
f87a2b2e 28653html-zlib: \
05750653 28654 configure-zlib
d32ab992 28655 @[ -f ./zlib/Makefile ] || exit 0; \
295f4e42 28656 r=`${PWD_COMMAND}`; export r; \
8c90b13a 28657 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28658 $(HOST_EXPORTS) \
d32ab992 28659 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
28660 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28661 done; \
f87a2b2e 28662 echo "Doing html in zlib" ; \
215c351a 28663 (cd $(HOST_SUBDIR)/zlib && \
295f4e42
NN
28664 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28665 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28666 "RANLIB=$${RANLIB}" \
28667 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
f87a2b2e 28668 html) \
295f4e42 28669 || exit 1
4977bab6 28670
d32ab992 28671@endif zlib
4977bab6 28672
d32ab992
PB
28673.PHONY: maybe-TAGS-zlib TAGS-zlib
28674maybe-TAGS-zlib:
28675@if zlib
28676maybe-TAGS-zlib: TAGS-zlib
295f4e42 28677
d32ab992 28678TAGS-zlib: \
05750653 28679 configure-zlib
d32ab992 28680 @[ -f ./zlib/Makefile ] || exit 0; \
295f4e42 28681 r=`${PWD_COMMAND}`; export r; \
8c90b13a 28682 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28683 $(HOST_EXPORTS) \
d32ab992 28684 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
28685 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28686 done; \
d32ab992 28687 echo "Doing TAGS in zlib" ; \
215c351a 28688 (cd $(HOST_SUBDIR)/zlib && \
295f4e42
NN
28689 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28690 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28691 "RANLIB=$${RANLIB}" \
28692 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 28693 TAGS) \
295f4e42 28694 || exit 1
4977bab6 28695
d32ab992 28696@endif zlib
4977bab6 28697
d32ab992
PB
28698.PHONY: maybe-install-info-zlib install-info-zlib
28699maybe-install-info-zlib:
28700@if zlib
28701maybe-install-info-zlib: install-info-zlib
7e2dbcef 28702
d32ab992
PB
28703install-info-zlib: \
28704 configure-zlib \
05750653 28705 info-zlib
d32ab992 28706 @[ -f ./zlib/Makefile ] || exit 0; \
295f4e42
NN
28707 r=`${PWD_COMMAND}`; export r; \
28708 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28709 $(HOST_EXPORTS) \
d32ab992 28710 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
28711 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28712 done; \
d32ab992 28713 echo "Doing install-info in zlib" ; \
215c351a 28714 (cd $(HOST_SUBDIR)/zlib && \
295f4e42
NN
28715 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28716 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28717 "RANLIB=$${RANLIB}" \
28718 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 28719 install-info) \
295f4e42
NN
28720 || exit 1
28721
d32ab992 28722@endif zlib
295f4e42 28723
65d6e994
CD
28724.PHONY: maybe-install-html-zlib install-html-zlib
28725maybe-install-html-zlib:
28726@if zlib
28727maybe-install-html-zlib: install-html-zlib
28728
28729install-html-zlib: \
28730 configure-zlib \
28731 html-zlib
28732 @[ -f ./zlib/Makefile ] || exit 0; \
28733 r=`${PWD_COMMAND}`; export r; \
28734 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28735 $(HOST_EXPORTS) \
28736 for flag in $(EXTRA_HOST_FLAGS) ; do \
28737 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28738 done; \
28739 echo "Doing install-html in zlib" ; \
28740 (cd $(HOST_SUBDIR)/zlib && \
28741 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28742 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28743 "RANLIB=$${RANLIB}" \
28744 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
28745 install-html) \
28746 || exit 1
28747
28748@endif zlib
28749
d32ab992
PB
28750.PHONY: maybe-installcheck-zlib installcheck-zlib
28751maybe-installcheck-zlib:
28752@if zlib
28753maybe-installcheck-zlib: installcheck-zlib
295f4e42 28754
d32ab992 28755installcheck-zlib: \
05750653 28756 configure-zlib
d32ab992 28757 @[ -f ./zlib/Makefile ] || exit 0; \
295f4e42
NN
28758 r=`${PWD_COMMAND}`; export r; \
28759 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28760 $(HOST_EXPORTS) \
d32ab992 28761 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
28762 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28763 done; \
d32ab992 28764 echo "Doing installcheck in zlib" ; \
215c351a 28765 (cd $(HOST_SUBDIR)/zlib && \
295f4e42
NN
28766 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28767 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28768 "RANLIB=$${RANLIB}" \
28769 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 28770 installcheck) \
295f4e42
NN
28771 || exit 1
28772
d32ab992 28773@endif zlib
295f4e42 28774
d32ab992
PB
28775.PHONY: maybe-mostlyclean-zlib mostlyclean-zlib
28776maybe-mostlyclean-zlib:
28777@if zlib
28778maybe-mostlyclean-zlib: mostlyclean-zlib
295f4e42 28779
05750653 28780mostlyclean-zlib:
d32ab992 28781 @[ -f ./zlib/Makefile ] || exit 0; \
295f4e42
NN
28782 r=`${PWD_COMMAND}`; export r; \
28783 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28784 $(HOST_EXPORTS) \
d32ab992 28785 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
28786 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28787 done; \
d32ab992 28788 echo "Doing mostlyclean in zlib" ; \
215c351a 28789 (cd $(HOST_SUBDIR)/zlib && \
295f4e42
NN
28790 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28791 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28792 "RANLIB=$${RANLIB}" \
28793 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 28794 mostlyclean) \
295f4e42
NN
28795 || exit 1
28796
d32ab992 28797@endif zlib
295f4e42 28798
d32ab992
PB
28799.PHONY: maybe-clean-zlib clean-zlib
28800maybe-clean-zlib:
28801@if zlib
28802maybe-clean-zlib: clean-zlib
295f4e42 28803
05750653 28804clean-zlib:
d32ab992 28805 @[ -f ./zlib/Makefile ] || exit 0; \
295f4e42
NN
28806 r=`${PWD_COMMAND}`; export r; \
28807 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28808 $(HOST_EXPORTS) \
d32ab992 28809 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
28810 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28811 done; \
d32ab992 28812 echo "Doing clean in zlib" ; \
215c351a 28813 (cd $(HOST_SUBDIR)/zlib && \
295f4e42
NN
28814 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28815 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28816 "RANLIB=$${RANLIB}" \
28817 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 28818 clean) \
295f4e42
NN
28819 || exit 1
28820
d32ab992 28821@endif zlib
295f4e42 28822
d32ab992
PB
28823.PHONY: maybe-distclean-zlib distclean-zlib
28824maybe-distclean-zlib:
28825@if zlib
28826maybe-distclean-zlib: distclean-zlib
295f4e42 28827
05750653 28828distclean-zlib:
d32ab992 28829 @[ -f ./zlib/Makefile ] || exit 0; \
295f4e42
NN
28830 r=`${PWD_COMMAND}`; export r; \
28831 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28832 $(HOST_EXPORTS) \
d32ab992 28833 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
28834 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28835 done; \
d32ab992 28836 echo "Doing distclean in zlib" ; \
215c351a 28837 (cd $(HOST_SUBDIR)/zlib && \
295f4e42
NN
28838 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28839 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28840 "RANLIB=$${RANLIB}" \
28841 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 28842 distclean) \
295f4e42
NN
28843 || exit 1
28844
d32ab992 28845@endif zlib
295f4e42 28846
d32ab992
PB
28847.PHONY: maybe-maintainer-clean-zlib maintainer-clean-zlib
28848maybe-maintainer-clean-zlib:
28849@if zlib
28850maybe-maintainer-clean-zlib: maintainer-clean-zlib
295f4e42 28851
05750653 28852maintainer-clean-zlib:
d32ab992 28853 @[ -f ./zlib/Makefile ] || exit 0; \
295f4e42 28854 r=`${PWD_COMMAND}`; export r; \
8c90b13a 28855 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28856 $(HOST_EXPORTS) \
d32ab992 28857 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
28858 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28859 done; \
d32ab992 28860 echo "Doing maintainer-clean in zlib" ; \
215c351a 28861 (cd $(HOST_SUBDIR)/zlib && \
295f4e42
NN
28862 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28863 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28864 "RANLIB=$${RANLIB}" \
28865 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 28866 maintainer-clean) \
295f4e42 28867 || exit 1
4977bab6 28868
d32ab992 28869@endif zlib
4977bab6 28870
295f4e42 28871
25b42232 28872
d32ab992
PB
28873.PHONY: configure-gdb maybe-configure-gdb
28874maybe-configure-gdb:
3ff3adad
PB
28875@if gcc-bootstrap
28876configure-gdb: stage_current
28877@endif gcc-bootstrap
d32ab992
PB
28878@if gdb
28879maybe-configure-gdb: configure-gdb
cc11cc9b 28880configure-gdb:
f41d6665 28881 @: $(MAKE); $(unstage)
cc11cc9b 28882 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 28883 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
28884 test ! -f $(HOST_SUBDIR)/gdb/Makefile || exit 0; \
28885 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gdb ; \
4fc4dd12 28886 $(HOST_EXPORTS) \
25b42232
PB
28887 echo Configuring in $(HOST_SUBDIR)/gdb; \
28888 cd "$(HOST_SUBDIR)/gdb" || exit 1; \
4977bab6 28889 case $(srcdir) in \
215c351a
PB
28890 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
28891 *) topdir=`echo $(HOST_SUBDIR)/gdb/ | \
28892 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 28893 esac; \
215c351a
PB
28894 srcdiroption="--srcdir=$${topdir}/gdb"; \
28895 libsrcdir="$$s/gdb"; \
4977bab6 28896 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 28897 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 28898 || exit 1
d32ab992 28899@endif gdb
4977bab6 28900
25b42232
PB
28901
28902
ce406537
PB
28903
28904
d32ab992
PB
28905.PHONY: all-gdb maybe-all-gdb
28906maybe-all-gdb:
3ff3adad
PB
28907@if gcc-bootstrap
28908all-gdb: stage_current
28909@endif gcc-bootstrap
d32ab992 28910@if gdb
7e0b5752 28911TARGET-gdb=all
d32ab992
PB
28912maybe-all-gdb: all-gdb
28913all-gdb: configure-gdb
f41d6665 28914 @: $(MAKE); $(unstage)
8c90b13a
L
28915 @r=`${PWD_COMMAND}`; export r; \
28916 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28917 $(HOST_EXPORTS) \
215c351a
PB
28918 (cd $(HOST_SUBDIR)/gdb && \
28919 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) $(TARGET-gdb))
d32ab992 28920@endif gdb
4977bab6 28921
25b42232 28922
ce406537
PB
28923
28924
d32ab992
PB
28925.PHONY: check-gdb maybe-check-gdb
28926maybe-check-gdb:
28927@if gdb
28928maybe-check-gdb: check-gdb
4977bab6 28929
d32ab992 28930check-gdb:
f41d6665 28931 @: $(MAKE); $(unstage)
8c90b13a
L
28932 @r=`${PWD_COMMAND}`; export r; \
28933 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28934 $(HOST_EXPORTS) \
215c351a
PB
28935 (cd $(HOST_SUBDIR)/gdb && \
28936 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
4977bab6 28937
d32ab992 28938@endif gdb
4977bab6 28939
d32ab992
PB
28940.PHONY: install-gdb maybe-install-gdb
28941maybe-install-gdb:
28942@if gdb
28943maybe-install-gdb: install-gdb
295f4e42 28944
d32ab992 28945install-gdb: installdirs
f41d6665 28946 @: $(MAKE); $(unstage)
295f4e42
NN
28947 @r=`${PWD_COMMAND}`; export r; \
28948 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28949 $(HOST_EXPORTS) \
215c351a 28950 (cd $(HOST_SUBDIR)/gdb && \
ace9ac7b 28951 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
295f4e42 28952
d32ab992 28953@endif gdb
295f4e42
NN
28954
28955# Other targets (info, dvi, etc.)
28956
d32ab992
PB
28957.PHONY: maybe-info-gdb info-gdb
28958maybe-info-gdb:
28959@if gdb
28960maybe-info-gdb: info-gdb
295f4e42 28961
d32ab992 28962info-gdb: \
05750653 28963 configure-gdb
f41d6665 28964 @: $(MAKE); $(unstage)
d32ab992 28965 @[ -f ./gdb/Makefile ] || exit 0; \
295f4e42
NN
28966 r=`${PWD_COMMAND}`; export r; \
28967 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28968 $(HOST_EXPORTS) \
7c27e184 28969 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
28970 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28971 done; \
d32ab992 28972 echo "Doing info in gdb" ; \
215c351a 28973 (cd $(HOST_SUBDIR)/gdb && \
295f4e42
NN
28974 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28975 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28976 "RANLIB=$${RANLIB}" \
28977 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 28978 info) \
295f4e42
NN
28979 || exit 1
28980
d32ab992 28981@endif gdb
295f4e42 28982
d32ab992
PB
28983.PHONY: maybe-dvi-gdb dvi-gdb
28984maybe-dvi-gdb:
28985@if gdb
28986maybe-dvi-gdb: dvi-gdb
295f4e42 28987
d32ab992 28988dvi-gdb: \
05750653 28989 configure-gdb
f41d6665 28990 @: $(MAKE); $(unstage)
d32ab992 28991 @[ -f ./gdb/Makefile ] || exit 0; \
295f4e42
NN
28992 r=`${PWD_COMMAND}`; export r; \
28993 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28994 $(HOST_EXPORTS) \
7c27e184 28995 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
28996 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28997 done; \
d32ab992 28998 echo "Doing dvi in gdb" ; \
215c351a 28999 (cd $(HOST_SUBDIR)/gdb && \
295f4e42
NN
29000 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29001 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29002 "RANLIB=$${RANLIB}" \
29003 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29004 dvi) \
295f4e42
NN
29005 || exit 1
29006
d32ab992 29007@endif gdb
295f4e42 29008
f87a2b2e
MS
29009.PHONY: maybe-html-gdb html-gdb
29010maybe-html-gdb:
29011@if gdb
29012maybe-html-gdb: html-gdb
29013
29014html-gdb: \
05750653 29015 configure-gdb
f41d6665 29016 @: $(MAKE); $(unstage)
f87a2b2e
MS
29017 @[ -f ./gdb/Makefile ] || exit 0; \
29018 r=`${PWD_COMMAND}`; export r; \
29019 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
29020 $(HOST_EXPORTS) \
29021 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
29022 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29023 done; \
29024 echo "Doing html in gdb" ; \
215c351a 29025 (cd $(HOST_SUBDIR)/gdb && \
f87a2b2e
MS
29026 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29027 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29028 "RANLIB=$${RANLIB}" \
29029 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
29030 html) \
29031 || exit 1
29032
29033@endif gdb
29034
d32ab992
PB
29035.PHONY: maybe-TAGS-gdb TAGS-gdb
29036maybe-TAGS-gdb:
29037@if gdb
29038maybe-TAGS-gdb: TAGS-gdb
295f4e42 29039
d32ab992 29040TAGS-gdb: \
05750653 29041 configure-gdb
f41d6665 29042 @: $(MAKE); $(unstage)
d32ab992 29043 @[ -f ./gdb/Makefile ] || exit 0; \
295f4e42
NN
29044 r=`${PWD_COMMAND}`; export r; \
29045 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29046 $(HOST_EXPORTS) \
7c27e184 29047 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
29048 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29049 done; \
d32ab992 29050 echo "Doing TAGS in gdb" ; \
215c351a 29051 (cd $(HOST_SUBDIR)/gdb && \
295f4e42
NN
29052 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29053 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29054 "RANLIB=$${RANLIB}" \
29055 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29056 TAGS) \
295f4e42
NN
29057 || exit 1
29058
d32ab992 29059@endif gdb
295f4e42 29060
d32ab992
PB
29061.PHONY: maybe-install-info-gdb install-info-gdb
29062maybe-install-info-gdb:
29063@if gdb
29064maybe-install-info-gdb: install-info-gdb
295f4e42 29065
d32ab992
PB
29066install-info-gdb: \
29067 configure-gdb \
05750653 29068 info-gdb
f41d6665 29069 @: $(MAKE); $(unstage)
d32ab992 29070 @[ -f ./gdb/Makefile ] || exit 0; \
295f4e42
NN
29071 r=`${PWD_COMMAND}`; export r; \
29072 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29073 $(HOST_EXPORTS) \
7c27e184 29074 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
29075 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29076 done; \
d32ab992 29077 echo "Doing install-info in gdb" ; \
215c351a 29078 (cd $(HOST_SUBDIR)/gdb && \
295f4e42
NN
29079 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29080 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29081 "RANLIB=$${RANLIB}" \
29082 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29083 install-info) \
295f4e42
NN
29084 || exit 1
29085
d32ab992 29086@endif gdb
295f4e42 29087
65d6e994
CD
29088.PHONY: maybe-install-html-gdb install-html-gdb
29089maybe-install-html-gdb:
29090@if gdb
29091maybe-install-html-gdb: install-html-gdb
29092
29093install-html-gdb: \
29094 configure-gdb \
29095 html-gdb
29096 @: $(MAKE); $(unstage)
29097 @[ -f ./gdb/Makefile ] || exit 0; \
29098 r=`${PWD_COMMAND}`; export r; \
29099 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29100 $(HOST_EXPORTS) \
29101 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
29102 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29103 done; \
29104 echo "Doing install-html in gdb" ; \
29105 (cd $(HOST_SUBDIR)/gdb && \
29106 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29107 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29108 "RANLIB=$${RANLIB}" \
29109 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
29110 install-html) \
29111 || exit 1
29112
29113@endif gdb
29114
d32ab992
PB
29115.PHONY: maybe-installcheck-gdb installcheck-gdb
29116maybe-installcheck-gdb:
29117@if gdb
29118maybe-installcheck-gdb: installcheck-gdb
295f4e42 29119
d32ab992 29120installcheck-gdb: \
05750653 29121 configure-gdb
f41d6665 29122 @: $(MAKE); $(unstage)
d32ab992 29123 @[ -f ./gdb/Makefile ] || exit 0; \
295f4e42
NN
29124 r=`${PWD_COMMAND}`; export r; \
29125 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29126 $(HOST_EXPORTS) \
7c27e184 29127 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
29128 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29129 done; \
d32ab992 29130 echo "Doing installcheck in gdb" ; \
215c351a 29131 (cd $(HOST_SUBDIR)/gdb && \
295f4e42
NN
29132 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29133 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29134 "RANLIB=$${RANLIB}" \
29135 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29136 installcheck) \
295f4e42
NN
29137 || exit 1
29138
d32ab992 29139@endif gdb
295f4e42 29140
d32ab992
PB
29141.PHONY: maybe-mostlyclean-gdb mostlyclean-gdb
29142maybe-mostlyclean-gdb:
29143@if gdb
29144maybe-mostlyclean-gdb: mostlyclean-gdb
295f4e42 29145
05750653 29146mostlyclean-gdb:
f41d6665 29147 @: $(MAKE); $(unstage)
d32ab992 29148 @[ -f ./gdb/Makefile ] || exit 0; \
295f4e42
NN
29149 r=`${PWD_COMMAND}`; export r; \
29150 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29151 $(HOST_EXPORTS) \
7c27e184 29152 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
29153 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29154 done; \
d32ab992 29155 echo "Doing mostlyclean in gdb" ; \
215c351a 29156 (cd $(HOST_SUBDIR)/gdb && \
295f4e42
NN
29157 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29158 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29159 "RANLIB=$${RANLIB}" \
29160 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29161 mostlyclean) \
295f4e42
NN
29162 || exit 1
29163
d32ab992 29164@endif gdb
295f4e42 29165
d32ab992
PB
29166.PHONY: maybe-clean-gdb clean-gdb
29167maybe-clean-gdb:
29168@if gdb
29169maybe-clean-gdb: clean-gdb
295f4e42 29170
05750653 29171clean-gdb:
f41d6665 29172 @: $(MAKE); $(unstage)
d32ab992 29173 @[ -f ./gdb/Makefile ] || exit 0; \
295f4e42
NN
29174 r=`${PWD_COMMAND}`; export r; \
29175 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29176 $(HOST_EXPORTS) \
7c27e184 29177 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
29178 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29179 done; \
d32ab992 29180 echo "Doing clean in gdb" ; \
215c351a 29181 (cd $(HOST_SUBDIR)/gdb && \
295f4e42
NN
29182 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29183 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29184 "RANLIB=$${RANLIB}" \
29185 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29186 clean) \
295f4e42
NN
29187 || exit 1
29188
d32ab992 29189@endif gdb
295f4e42 29190
d32ab992
PB
29191.PHONY: maybe-distclean-gdb distclean-gdb
29192maybe-distclean-gdb:
29193@if gdb
29194maybe-distclean-gdb: distclean-gdb
295f4e42 29195
05750653 29196distclean-gdb:
f41d6665 29197 @: $(MAKE); $(unstage)
d32ab992 29198 @[ -f ./gdb/Makefile ] || exit 0; \
295f4e42
NN
29199 r=`${PWD_COMMAND}`; export r; \
29200 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29201 $(HOST_EXPORTS) \
7c27e184 29202 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
29203 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29204 done; \
d32ab992 29205 echo "Doing distclean in gdb" ; \
215c351a 29206 (cd $(HOST_SUBDIR)/gdb && \
295f4e42
NN
29207 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29208 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29209 "RANLIB=$${RANLIB}" \
29210 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29211 distclean) \
295f4e42
NN
29212 || exit 1
29213
d32ab992 29214@endif gdb
295f4e42 29215
d32ab992
PB
29216.PHONY: maybe-maintainer-clean-gdb maintainer-clean-gdb
29217maybe-maintainer-clean-gdb:
29218@if gdb
29219maybe-maintainer-clean-gdb: maintainer-clean-gdb
295f4e42 29220
05750653 29221maintainer-clean-gdb:
f41d6665 29222 @: $(MAKE); $(unstage)
d32ab992 29223 @[ -f ./gdb/Makefile ] || exit 0; \
295f4e42
NN
29224 r=`${PWD_COMMAND}`; export r; \
29225 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29226 $(HOST_EXPORTS) \
7c27e184 29227 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
29228 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29229 done; \
d32ab992 29230 echo "Doing maintainer-clean in gdb" ; \
215c351a 29231 (cd $(HOST_SUBDIR)/gdb && \
295f4e42
NN
29232 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29233 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29234 "RANLIB=$${RANLIB}" \
29235 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29236 maintainer-clean) \
295f4e42 29237 || exit 1
7e2dbcef 29238
d32ab992 29239@endif gdb
4977bab6
ZW
29240
29241
25b42232 29242
d32ab992
PB
29243.PHONY: configure-expect maybe-configure-expect
29244maybe-configure-expect:
3ff3adad
PB
29245@if gcc-bootstrap
29246configure-expect: stage_current
29247@endif gcc-bootstrap
d32ab992
PB
29248@if expect
29249maybe-configure-expect: configure-expect
cc11cc9b 29250configure-expect:
f41d6665 29251 @: $(MAKE); $(unstage)
cc11cc9b 29252 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 29253 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
29254 test ! -f $(HOST_SUBDIR)/expect/Makefile || exit 0; \
29255 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/expect ; \
4fc4dd12 29256 $(HOST_EXPORTS) \
25b42232
PB
29257 echo Configuring in $(HOST_SUBDIR)/expect; \
29258 cd "$(HOST_SUBDIR)/expect" || exit 1; \
4977bab6 29259 case $(srcdir) in \
215c351a
PB
29260 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
29261 *) topdir=`echo $(HOST_SUBDIR)/expect/ | \
29262 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 29263 esac; \
215c351a
PB
29264 srcdiroption="--srcdir=$${topdir}/expect"; \
29265 libsrcdir="$$s/expect"; \
4977bab6 29266 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 29267 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 29268 || exit 1
d32ab992 29269@endif expect
4977bab6 29270
25b42232
PB
29271
29272
ce406537
PB
29273
29274
d32ab992
PB
29275.PHONY: all-expect maybe-all-expect
29276maybe-all-expect:
3ff3adad
PB
29277@if gcc-bootstrap
29278all-expect: stage_current
29279@endif gcc-bootstrap
d32ab992 29280@if expect
7e0b5752 29281TARGET-expect=all
d32ab992
PB
29282maybe-all-expect: all-expect
29283all-expect: configure-expect
f41d6665 29284 @: $(MAKE); $(unstage)
8c90b13a
L
29285 @r=`${PWD_COMMAND}`; export r; \
29286 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29287 $(HOST_EXPORTS) \
215c351a
PB
29288 (cd $(HOST_SUBDIR)/expect && \
29289 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) $(TARGET-expect))
d32ab992 29290@endif expect
4977bab6 29291
25b42232 29292
ce406537
PB
29293
29294
d32ab992
PB
29295.PHONY: check-expect maybe-check-expect
29296maybe-check-expect:
29297@if expect
29298maybe-check-expect: check-expect
4977bab6 29299
d32ab992 29300check-expect:
f41d6665 29301 @: $(MAKE); $(unstage)
8c90b13a
L
29302 @r=`${PWD_COMMAND}`; export r; \
29303 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29304 $(HOST_EXPORTS) \
215c351a
PB
29305 (cd $(HOST_SUBDIR)/expect && \
29306 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
4977bab6 29307
d32ab992 29308@endif expect
4977bab6 29309
d32ab992
PB
29310.PHONY: install-expect maybe-install-expect
29311maybe-install-expect:
29312@if expect
29313maybe-install-expect: install-expect
7e2dbcef 29314
d32ab992 29315install-expect: installdirs
f41d6665 29316 @: $(MAKE); $(unstage)
8c90b13a
L
29317 @r=`${PWD_COMMAND}`; export r; \
29318 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29319 $(HOST_EXPORTS) \
215c351a 29320 (cd $(HOST_SUBDIR)/expect && \
ace9ac7b 29321 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
4977bab6 29322
d32ab992 29323@endif expect
4977bab6 29324
295f4e42
NN
29325# Other targets (info, dvi, etc.)
29326
d32ab992
PB
29327.PHONY: maybe-info-expect info-expect
29328maybe-info-expect:
29329@if expect
29330maybe-info-expect: info-expect
295f4e42 29331
d32ab992 29332info-expect: \
05750653 29333 configure-expect
f41d6665 29334 @: $(MAKE); $(unstage)
d32ab992 29335 @[ -f ./expect/Makefile ] || exit 0; \
295f4e42
NN
29336 r=`${PWD_COMMAND}`; export r; \
29337 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29338 $(HOST_EXPORTS) \
7c27e184 29339 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
29340 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29341 done; \
d32ab992 29342 echo "Doing info in expect" ; \
215c351a 29343 (cd $(HOST_SUBDIR)/expect && \
295f4e42
NN
29344 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29345 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29346 "RANLIB=$${RANLIB}" \
29347 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29348 info) \
295f4e42
NN
29349 || exit 1
29350
d32ab992 29351@endif expect
295f4e42 29352
d32ab992
PB
29353.PHONY: maybe-dvi-expect dvi-expect
29354maybe-dvi-expect:
29355@if expect
29356maybe-dvi-expect: dvi-expect
295f4e42 29357
d32ab992 29358dvi-expect: \
05750653 29359 configure-expect
f41d6665 29360 @: $(MAKE); $(unstage)
d32ab992 29361 @[ -f ./expect/Makefile ] || exit 0; \
295f4e42
NN
29362 r=`${PWD_COMMAND}`; export r; \
29363 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29364 $(HOST_EXPORTS) \
7c27e184 29365 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
29366 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29367 done; \
d32ab992 29368 echo "Doing dvi in expect" ; \
215c351a 29369 (cd $(HOST_SUBDIR)/expect && \
295f4e42
NN
29370 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29371 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29372 "RANLIB=$${RANLIB}" \
29373 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29374 dvi) \
295f4e42
NN
29375 || exit 1
29376
d32ab992 29377@endif expect
295f4e42 29378
f87a2b2e
MS
29379.PHONY: maybe-html-expect html-expect
29380maybe-html-expect:
29381@if expect
29382maybe-html-expect: html-expect
29383
29384html-expect: \
05750653 29385 configure-expect
f41d6665 29386 @: $(MAKE); $(unstage)
f87a2b2e
MS
29387 @[ -f ./expect/Makefile ] || exit 0; \
29388 r=`${PWD_COMMAND}`; export r; \
29389 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
29390 $(HOST_EXPORTS) \
29391 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
29392 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29393 done; \
29394 echo "Doing html in expect" ; \
215c351a 29395 (cd $(HOST_SUBDIR)/expect && \
f87a2b2e
MS
29396 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29397 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29398 "RANLIB=$${RANLIB}" \
29399 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
29400 html) \
29401 || exit 1
29402
29403@endif expect
29404
d32ab992
PB
29405.PHONY: maybe-TAGS-expect TAGS-expect
29406maybe-TAGS-expect:
29407@if expect
29408maybe-TAGS-expect: TAGS-expect
295f4e42 29409
d32ab992 29410TAGS-expect: \
05750653 29411 configure-expect
f41d6665 29412 @: $(MAKE); $(unstage)
d32ab992 29413 @[ -f ./expect/Makefile ] || exit 0; \
295f4e42
NN
29414 r=`${PWD_COMMAND}`; export r; \
29415 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29416 $(HOST_EXPORTS) \
7c27e184 29417 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
29418 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29419 done; \
d32ab992 29420 echo "Doing TAGS in expect" ; \
215c351a 29421 (cd $(HOST_SUBDIR)/expect && \
295f4e42
NN
29422 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29423 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29424 "RANLIB=$${RANLIB}" \
29425 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29426 TAGS) \
295f4e42
NN
29427 || exit 1
29428
d32ab992 29429@endif expect
295f4e42 29430
d32ab992
PB
29431.PHONY: maybe-install-info-expect install-info-expect
29432maybe-install-info-expect:
29433@if expect
29434maybe-install-info-expect: install-info-expect
295f4e42 29435
d32ab992
PB
29436install-info-expect: \
29437 configure-expect \
05750653 29438 info-expect
f41d6665 29439 @: $(MAKE); $(unstage)
d32ab992 29440 @[ -f ./expect/Makefile ] || exit 0; \
295f4e42
NN
29441 r=`${PWD_COMMAND}`; export r; \
29442 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29443 $(HOST_EXPORTS) \
7c27e184 29444 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
29445 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29446 done; \
d32ab992 29447 echo "Doing install-info in expect" ; \
215c351a 29448 (cd $(HOST_SUBDIR)/expect && \
295f4e42
NN
29449 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29450 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29451 "RANLIB=$${RANLIB}" \
29452 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29453 install-info) \
295f4e42
NN
29454 || exit 1
29455
d32ab992 29456@endif expect
295f4e42 29457
65d6e994
CD
29458.PHONY: maybe-install-html-expect install-html-expect
29459maybe-install-html-expect:
29460@if expect
29461maybe-install-html-expect: install-html-expect
29462
29463install-html-expect: \
29464 configure-expect \
29465 html-expect
29466 @: $(MAKE); $(unstage)
29467 @[ -f ./expect/Makefile ] || exit 0; \
29468 r=`${PWD_COMMAND}`; export r; \
29469 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29470 $(HOST_EXPORTS) \
29471 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
29472 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29473 done; \
29474 echo "Doing install-html in expect" ; \
29475 (cd $(HOST_SUBDIR)/expect && \
29476 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29477 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29478 "RANLIB=$${RANLIB}" \
29479 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
29480 install-html) \
29481 || exit 1
29482
29483@endif expect
29484
d32ab992
PB
29485.PHONY: maybe-installcheck-expect installcheck-expect
29486maybe-installcheck-expect:
29487@if expect
29488maybe-installcheck-expect: installcheck-expect
295f4e42 29489
d32ab992 29490installcheck-expect: \
05750653 29491 configure-expect
f41d6665 29492 @: $(MAKE); $(unstage)
d32ab992 29493 @[ -f ./expect/Makefile ] || exit 0; \
295f4e42
NN
29494 r=`${PWD_COMMAND}`; export r; \
29495 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29496 $(HOST_EXPORTS) \
7c27e184 29497 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
29498 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29499 done; \
d32ab992 29500 echo "Doing installcheck in expect" ; \
215c351a 29501 (cd $(HOST_SUBDIR)/expect && \
295f4e42
NN
29502 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29503 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29504 "RANLIB=$${RANLIB}" \
29505 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29506 installcheck) \
295f4e42
NN
29507 || exit 1
29508
d32ab992 29509@endif expect
295f4e42 29510
d32ab992
PB
29511.PHONY: maybe-mostlyclean-expect mostlyclean-expect
29512maybe-mostlyclean-expect:
29513@if expect
29514maybe-mostlyclean-expect: mostlyclean-expect
295f4e42 29515
05750653 29516mostlyclean-expect:
f41d6665 29517 @: $(MAKE); $(unstage)
d32ab992 29518 @[ -f ./expect/Makefile ] || exit 0; \
295f4e42
NN
29519 r=`${PWD_COMMAND}`; export r; \
29520 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29521 $(HOST_EXPORTS) \
7c27e184 29522 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
29523 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29524 done; \
d32ab992 29525 echo "Doing mostlyclean in expect" ; \
215c351a 29526 (cd $(HOST_SUBDIR)/expect && \
295f4e42
NN
29527 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29528 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29529 "RANLIB=$${RANLIB}" \
29530 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29531 mostlyclean) \
295f4e42
NN
29532 || exit 1
29533
d32ab992 29534@endif expect
295f4e42 29535
d32ab992
PB
29536.PHONY: maybe-clean-expect clean-expect
29537maybe-clean-expect:
29538@if expect
29539maybe-clean-expect: clean-expect
295f4e42 29540
05750653 29541clean-expect:
f41d6665 29542 @: $(MAKE); $(unstage)
d32ab992 29543 @[ -f ./expect/Makefile ] || exit 0; \
295f4e42
NN
29544 r=`${PWD_COMMAND}`; export r; \
29545 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29546 $(HOST_EXPORTS) \
7c27e184 29547 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
29548 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29549 done; \
d32ab992 29550 echo "Doing clean in expect" ; \
215c351a 29551 (cd $(HOST_SUBDIR)/expect && \
295f4e42
NN
29552 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29553 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29554 "RANLIB=$${RANLIB}" \
29555 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29556 clean) \
295f4e42
NN
29557 || exit 1
29558
d32ab992 29559@endif expect
295f4e42 29560
d32ab992
PB
29561.PHONY: maybe-distclean-expect distclean-expect
29562maybe-distclean-expect:
29563@if expect
29564maybe-distclean-expect: distclean-expect
295f4e42 29565
05750653 29566distclean-expect:
f41d6665 29567 @: $(MAKE); $(unstage)
d32ab992 29568 @[ -f ./expect/Makefile ] || exit 0; \
295f4e42
NN
29569 r=`${PWD_COMMAND}`; export r; \
29570 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29571 $(HOST_EXPORTS) \
7c27e184 29572 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
29573 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29574 done; \
d32ab992 29575 echo "Doing distclean in expect" ; \
215c351a 29576 (cd $(HOST_SUBDIR)/expect && \
295f4e42
NN
29577 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29578 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29579 "RANLIB=$${RANLIB}" \
29580 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29581 distclean) \
295f4e42
NN
29582 || exit 1
29583
d32ab992 29584@endif expect
295f4e42 29585
d32ab992
PB
29586.PHONY: maybe-maintainer-clean-expect maintainer-clean-expect
29587maybe-maintainer-clean-expect:
29588@if expect
29589maybe-maintainer-clean-expect: maintainer-clean-expect
295f4e42 29590
05750653 29591maintainer-clean-expect:
f41d6665 29592 @: $(MAKE); $(unstage)
d32ab992 29593 @[ -f ./expect/Makefile ] || exit 0; \
295f4e42
NN
29594 r=`${PWD_COMMAND}`; export r; \
29595 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29596 $(HOST_EXPORTS) \
7c27e184 29597 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
29598 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29599 done; \
d32ab992 29600 echo "Doing maintainer-clean in expect" ; \
215c351a 29601 (cd $(HOST_SUBDIR)/expect && \
295f4e42
NN
29602 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29603 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29604 "RANLIB=$${RANLIB}" \
29605 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29606 maintainer-clean) \
295f4e42
NN
29607 || exit 1
29608
d32ab992 29609@endif expect
295f4e42
NN
29610
29611
25b42232 29612
d32ab992
PB
29613.PHONY: configure-guile maybe-configure-guile
29614maybe-configure-guile:
3ff3adad
PB
29615@if gcc-bootstrap
29616configure-guile: stage_current
29617@endif gcc-bootstrap
d32ab992
PB
29618@if guile
29619maybe-configure-guile: configure-guile
cc11cc9b 29620configure-guile:
f41d6665 29621 @: $(MAKE); $(unstage)
cc11cc9b 29622 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 29623 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
29624 test ! -f $(HOST_SUBDIR)/guile/Makefile || exit 0; \
29625 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/guile ; \
4fc4dd12 29626 $(HOST_EXPORTS) \
25b42232
PB
29627 echo Configuring in $(HOST_SUBDIR)/guile; \
29628 cd "$(HOST_SUBDIR)/guile" || exit 1; \
4977bab6 29629 case $(srcdir) in \
215c351a
PB
29630 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
29631 *) topdir=`echo $(HOST_SUBDIR)/guile/ | \
29632 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 29633 esac; \
215c351a
PB
29634 srcdiroption="--srcdir=$${topdir}/guile"; \
29635 libsrcdir="$$s/guile"; \
4977bab6 29636 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 29637 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 29638 || exit 1
d32ab992 29639@endif guile
4977bab6 29640
25b42232
PB
29641
29642
ce406537
PB
29643
29644
d32ab992
PB
29645.PHONY: all-guile maybe-all-guile
29646maybe-all-guile:
3ff3adad
PB
29647@if gcc-bootstrap
29648all-guile: stage_current
29649@endif gcc-bootstrap
d32ab992 29650@if guile
7e0b5752 29651TARGET-guile=all
d32ab992
PB
29652maybe-all-guile: all-guile
29653all-guile: configure-guile
f41d6665 29654 @: $(MAKE); $(unstage)
8c90b13a
L
29655 @r=`${PWD_COMMAND}`; export r; \
29656 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29657 $(HOST_EXPORTS) \
215c351a
PB
29658 (cd $(HOST_SUBDIR)/guile && \
29659 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) $(TARGET-guile))
d32ab992 29660@endif guile
4977bab6 29661
25b42232 29662
ce406537
PB
29663
29664
d32ab992
PB
29665.PHONY: check-guile maybe-check-guile
29666maybe-check-guile:
29667@if guile
29668maybe-check-guile: check-guile
4977bab6 29669
d32ab992 29670check-guile:
f41d6665 29671 @: $(MAKE); $(unstage)
8c90b13a
L
29672 @r=`${PWD_COMMAND}`; export r; \
29673 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29674 $(HOST_EXPORTS) \
215c351a
PB
29675 (cd $(HOST_SUBDIR)/guile && \
29676 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
4977bab6 29677
d32ab992 29678@endif guile
7e2dbcef 29679
d32ab992
PB
29680.PHONY: install-guile maybe-install-guile
29681maybe-install-guile:
29682@if guile
29683maybe-install-guile: install-guile
29684
29685install-guile: installdirs
f41d6665 29686 @: $(MAKE); $(unstage)
8c90b13a
L
29687 @r=`${PWD_COMMAND}`; export r; \
29688 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29689 $(HOST_EXPORTS) \
215c351a 29690 (cd $(HOST_SUBDIR)/guile && \
ace9ac7b 29691 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
4977bab6 29692
d32ab992 29693@endif guile
4977bab6 29694
295f4e42
NN
29695# Other targets (info, dvi, etc.)
29696
d32ab992
PB
29697.PHONY: maybe-info-guile info-guile
29698maybe-info-guile:
29699@if guile
29700maybe-info-guile: info-guile
295f4e42 29701
d32ab992 29702info-guile: \
05750653 29703 configure-guile
f41d6665 29704 @: $(MAKE); $(unstage)
d32ab992 29705 @[ -f ./guile/Makefile ] || exit 0; \
8c90b13a
L
29706 r=`${PWD_COMMAND}`; export r; \
29707 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29708 $(HOST_EXPORTS) \
7c27e184 29709 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
29710 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29711 done; \
d32ab992 29712 echo "Doing info in guile" ; \
215c351a 29713 (cd $(HOST_SUBDIR)/guile && \
295f4e42
NN
29714 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29715 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29716 "RANLIB=$${RANLIB}" \
29717 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29718 info) \
4977bab6
ZW
29719 || exit 1
29720
d32ab992 29721@endif guile
295f4e42 29722
d32ab992
PB
29723.PHONY: maybe-dvi-guile dvi-guile
29724maybe-dvi-guile:
29725@if guile
29726maybe-dvi-guile: dvi-guile
295f4e42 29727
d32ab992 29728dvi-guile: \
05750653 29729 configure-guile
f41d6665 29730 @: $(MAKE); $(unstage)
d32ab992 29731 @[ -f ./guile/Makefile ] || exit 0; \
295f4e42 29732 r=`${PWD_COMMAND}`; export r; \
8c90b13a 29733 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29734 $(HOST_EXPORTS) \
7c27e184 29735 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
29736 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29737 done; \
d32ab992 29738 echo "Doing dvi in guile" ; \
215c351a 29739 (cd $(HOST_SUBDIR)/guile && \
295f4e42
NN
29740 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29741 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29742 "RANLIB=$${RANLIB}" \
29743 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29744 dvi) \
295f4e42 29745 || exit 1
4977bab6 29746
d32ab992 29747@endif guile
4977bab6 29748
f87a2b2e
MS
29749.PHONY: maybe-html-guile html-guile
29750maybe-html-guile:
29751@if guile
29752maybe-html-guile: html-guile
29753
29754html-guile: \
05750653 29755 configure-guile
f41d6665 29756 @: $(MAKE); $(unstage)
f87a2b2e
MS
29757 @[ -f ./guile/Makefile ] || exit 0; \
29758 r=`${PWD_COMMAND}`; export r; \
29759 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
29760 $(HOST_EXPORTS) \
29761 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
29762 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29763 done; \
29764 echo "Doing html in guile" ; \
215c351a 29765 (cd $(HOST_SUBDIR)/guile && \
f87a2b2e
MS
29766 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29767 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29768 "RANLIB=$${RANLIB}" \
29769 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
29770 html) \
29771 || exit 1
29772
29773@endif guile
29774
d32ab992
PB
29775.PHONY: maybe-TAGS-guile TAGS-guile
29776maybe-TAGS-guile:
29777@if guile
29778maybe-TAGS-guile: TAGS-guile
295f4e42 29779
d32ab992 29780TAGS-guile: \
05750653 29781 configure-guile
f41d6665 29782 @: $(MAKE); $(unstage)
d32ab992 29783 @[ -f ./guile/Makefile ] || exit 0; \
295f4e42 29784 r=`${PWD_COMMAND}`; export r; \
8c90b13a 29785 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29786 $(HOST_EXPORTS) \
7c27e184 29787 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
29788 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29789 done; \
d32ab992 29790 echo "Doing TAGS in guile" ; \
215c351a 29791 (cd $(HOST_SUBDIR)/guile && \
295f4e42
NN
29792 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29793 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29794 "RANLIB=$${RANLIB}" \
29795 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29796 TAGS) \
295f4e42 29797 || exit 1
4977bab6 29798
d32ab992 29799@endif guile
4977bab6 29800
d32ab992
PB
29801.PHONY: maybe-install-info-guile install-info-guile
29802maybe-install-info-guile:
29803@if guile
29804maybe-install-info-guile: install-info-guile
7e2dbcef 29805
d32ab992
PB
29806install-info-guile: \
29807 configure-guile \
05750653 29808 info-guile
f41d6665 29809 @: $(MAKE); $(unstage)
d32ab992 29810 @[ -f ./guile/Makefile ] || exit 0; \
295f4e42
NN
29811 r=`${PWD_COMMAND}`; export r; \
29812 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29813 $(HOST_EXPORTS) \
7c27e184 29814 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
29815 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29816 done; \
d32ab992 29817 echo "Doing install-info in guile" ; \
215c351a 29818 (cd $(HOST_SUBDIR)/guile && \
295f4e42
NN
29819 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29820 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29821 "RANLIB=$${RANLIB}" \
29822 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29823 install-info) \
295f4e42
NN
29824 || exit 1
29825
d32ab992 29826@endif guile
295f4e42 29827
65d6e994
CD
29828.PHONY: maybe-install-html-guile install-html-guile
29829maybe-install-html-guile:
29830@if guile
29831maybe-install-html-guile: install-html-guile
29832
29833install-html-guile: \
29834 configure-guile \
29835 html-guile
29836 @: $(MAKE); $(unstage)
29837 @[ -f ./guile/Makefile ] || exit 0; \
29838 r=`${PWD_COMMAND}`; export r; \
29839 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29840 $(HOST_EXPORTS) \
29841 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
29842 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29843 done; \
29844 echo "Doing install-html in guile" ; \
29845 (cd $(HOST_SUBDIR)/guile && \
29846 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29847 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29848 "RANLIB=$${RANLIB}" \
29849 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
29850 install-html) \
29851 || exit 1
29852
29853@endif guile
29854
d32ab992
PB
29855.PHONY: maybe-installcheck-guile installcheck-guile
29856maybe-installcheck-guile:
29857@if guile
29858maybe-installcheck-guile: installcheck-guile
295f4e42 29859
d32ab992 29860installcheck-guile: \
05750653 29861 configure-guile
f41d6665 29862 @: $(MAKE); $(unstage)
d32ab992 29863 @[ -f ./guile/Makefile ] || exit 0; \
295f4e42
NN
29864 r=`${PWD_COMMAND}`; export r; \
29865 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29866 $(HOST_EXPORTS) \
7c27e184 29867 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
29868 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29869 done; \
d32ab992 29870 echo "Doing installcheck in guile" ; \
215c351a 29871 (cd $(HOST_SUBDIR)/guile && \
295f4e42
NN
29872 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29873 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29874 "RANLIB=$${RANLIB}" \
29875 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29876 installcheck) \
295f4e42
NN
29877 || exit 1
29878
d32ab992 29879@endif guile
295f4e42 29880
d32ab992
PB
29881.PHONY: maybe-mostlyclean-guile mostlyclean-guile
29882maybe-mostlyclean-guile:
29883@if guile
29884maybe-mostlyclean-guile: mostlyclean-guile
295f4e42 29885
05750653 29886mostlyclean-guile:
f41d6665 29887 @: $(MAKE); $(unstage)
d32ab992 29888 @[ -f ./guile/Makefile ] || exit 0; \
295f4e42
NN
29889 r=`${PWD_COMMAND}`; export r; \
29890 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29891 $(HOST_EXPORTS) \
7c27e184 29892 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
29893 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29894 done; \
d32ab992 29895 echo "Doing mostlyclean in guile" ; \
215c351a 29896 (cd $(HOST_SUBDIR)/guile && \
295f4e42
NN
29897 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29898 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29899 "RANLIB=$${RANLIB}" \
29900 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29901 mostlyclean) \
295f4e42
NN
29902 || exit 1
29903
d32ab992 29904@endif guile
295f4e42 29905
d32ab992
PB
29906.PHONY: maybe-clean-guile clean-guile
29907maybe-clean-guile:
29908@if guile
29909maybe-clean-guile: clean-guile
295f4e42 29910
05750653 29911clean-guile:
f41d6665 29912 @: $(MAKE); $(unstage)
d32ab992 29913 @[ -f ./guile/Makefile ] || exit 0; \
295f4e42
NN
29914 r=`${PWD_COMMAND}`; export r; \
29915 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29916 $(HOST_EXPORTS) \
7c27e184 29917 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
29918 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29919 done; \
d32ab992 29920 echo "Doing clean in guile" ; \
215c351a 29921 (cd $(HOST_SUBDIR)/guile && \
295f4e42
NN
29922 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29923 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29924 "RANLIB=$${RANLIB}" \
29925 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29926 clean) \
295f4e42
NN
29927 || exit 1
29928
d32ab992 29929@endif guile
295f4e42 29930
d32ab992
PB
29931.PHONY: maybe-distclean-guile distclean-guile
29932maybe-distclean-guile:
29933@if guile
29934maybe-distclean-guile: distclean-guile
295f4e42 29935
05750653 29936distclean-guile:
f41d6665 29937 @: $(MAKE); $(unstage)
d32ab992 29938 @[ -f ./guile/Makefile ] || exit 0; \
295f4e42
NN
29939 r=`${PWD_COMMAND}`; export r; \
29940 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29941 $(HOST_EXPORTS) \
7c27e184 29942 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
29943 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29944 done; \
d32ab992 29945 echo "Doing distclean in guile" ; \
215c351a 29946 (cd $(HOST_SUBDIR)/guile && \
295f4e42
NN
29947 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29948 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29949 "RANLIB=$${RANLIB}" \
29950 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29951 distclean) \
295f4e42
NN
29952 || exit 1
29953
d32ab992 29954@endif guile
295f4e42 29955
d32ab992
PB
29956.PHONY: maybe-maintainer-clean-guile maintainer-clean-guile
29957maybe-maintainer-clean-guile:
29958@if guile
29959maybe-maintainer-clean-guile: maintainer-clean-guile
295f4e42 29960
05750653 29961maintainer-clean-guile:
f41d6665 29962 @: $(MAKE); $(unstage)
d32ab992 29963 @[ -f ./guile/Makefile ] || exit 0; \
295f4e42 29964 r=`${PWD_COMMAND}`; export r; \
8c90b13a 29965 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29966 $(HOST_EXPORTS) \
7c27e184 29967 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
29968 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29969 done; \
d32ab992 29970 echo "Doing maintainer-clean in guile" ; \
215c351a 29971 (cd $(HOST_SUBDIR)/guile && \
295f4e42
NN
29972 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29973 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29974 "RANLIB=$${RANLIB}" \
29975 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29976 maintainer-clean) \
295f4e42 29977 || exit 1
4977bab6 29978
d32ab992 29979@endif guile
4977bab6 29980
295f4e42 29981
25b42232 29982
d32ab992
PB
29983.PHONY: configure-tk maybe-configure-tk
29984maybe-configure-tk:
3ff3adad
PB
29985@if gcc-bootstrap
29986configure-tk: stage_current
29987@endif gcc-bootstrap
d32ab992
PB
29988@if tk
29989maybe-configure-tk: configure-tk
cc11cc9b 29990configure-tk:
f41d6665 29991 @: $(MAKE); $(unstage)
cc11cc9b 29992 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 29993 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
29994 test ! -f $(HOST_SUBDIR)/tk/Makefile || exit 0; \
29995 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/tk ; \
4fc4dd12 29996 $(HOST_EXPORTS) \
25b42232
PB
29997 echo Configuring in $(HOST_SUBDIR)/tk; \
29998 cd "$(HOST_SUBDIR)/tk" || exit 1; \
4977bab6 29999 case $(srcdir) in \
215c351a
PB
30000 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
30001 *) topdir=`echo $(HOST_SUBDIR)/tk/ | \
30002 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 30003 esac; \
215c351a
PB
30004 srcdiroption="--srcdir=$${topdir}/tk"; \
30005 libsrcdir="$$s/tk"; \
4977bab6 30006 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 30007 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 30008 || exit 1
d32ab992 30009@endif tk
4977bab6 30010
25b42232
PB
30011
30012
ce406537
PB
30013
30014
d32ab992
PB
30015.PHONY: all-tk maybe-all-tk
30016maybe-all-tk:
3ff3adad
PB
30017@if gcc-bootstrap
30018all-tk: stage_current
30019@endif gcc-bootstrap
d32ab992 30020@if tk
7e0b5752 30021TARGET-tk=all
d32ab992
PB
30022maybe-all-tk: all-tk
30023all-tk: configure-tk
f41d6665 30024 @: $(MAKE); $(unstage)
8c90b13a
L
30025 @r=`${PWD_COMMAND}`; export r; \
30026 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30027 $(HOST_EXPORTS) \
215c351a
PB
30028 (cd $(HOST_SUBDIR)/tk && \
30029 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) $(TARGET-tk))
d32ab992 30030@endif tk
4977bab6 30031
25b42232 30032
ce406537
PB
30033
30034
d32ab992
PB
30035.PHONY: check-tk maybe-check-tk
30036maybe-check-tk:
30037@if tk
30038maybe-check-tk: check-tk
4977bab6 30039
d32ab992 30040check-tk:
f41d6665 30041 @: $(MAKE); $(unstage)
8c90b13a
L
30042 @r=`${PWD_COMMAND}`; export r; \
30043 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30044 $(HOST_EXPORTS) \
215c351a
PB
30045 (cd $(HOST_SUBDIR)/tk && \
30046 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
4977bab6 30047
d32ab992 30048@endif tk
4977bab6 30049
d32ab992
PB
30050.PHONY: install-tk maybe-install-tk
30051maybe-install-tk:
30052@if tk
30053maybe-install-tk: install-tk
7e2dbcef 30054
d32ab992 30055install-tk: installdirs
f41d6665 30056 @: $(MAKE); $(unstage)
8c90b13a
L
30057 @r=`${PWD_COMMAND}`; export r; \
30058 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30059 $(HOST_EXPORTS) \
215c351a 30060 (cd $(HOST_SUBDIR)/tk && \
ace9ac7b 30061 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
295f4e42 30062
d32ab992 30063@endif tk
295f4e42
NN
30064
30065# Other targets (info, dvi, etc.)
30066
d32ab992
PB
30067.PHONY: maybe-info-tk info-tk
30068maybe-info-tk:
30069@if tk
30070maybe-info-tk: info-tk
295f4e42 30071
d32ab992 30072info-tk: \
05750653 30073 configure-tk
f41d6665 30074 @: $(MAKE); $(unstage)
d32ab992 30075 @[ -f ./tk/Makefile ] || exit 0; \
295f4e42
NN
30076 r=`${PWD_COMMAND}`; export r; \
30077 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30078 $(HOST_EXPORTS) \
7c27e184 30079 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
30080 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30081 done; \
d32ab992 30082 echo "Doing info in tk" ; \
215c351a 30083 (cd $(HOST_SUBDIR)/tk && \
295f4e42
NN
30084 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30085 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30086 "RANLIB=$${RANLIB}" \
30087 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 30088 info) \
295f4e42
NN
30089 || exit 1
30090
d32ab992 30091@endif tk
295f4e42 30092
d32ab992
PB
30093.PHONY: maybe-dvi-tk dvi-tk
30094maybe-dvi-tk:
30095@if tk
30096maybe-dvi-tk: dvi-tk
295f4e42 30097
d32ab992 30098dvi-tk: \
05750653 30099 configure-tk
f41d6665 30100 @: $(MAKE); $(unstage)
d32ab992 30101 @[ -f ./tk/Makefile ] || exit 0; \
295f4e42
NN
30102 r=`${PWD_COMMAND}`; export r; \
30103 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30104 $(HOST_EXPORTS) \
7c27e184 30105 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
30106 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30107 done; \
d32ab992 30108 echo "Doing dvi in tk" ; \
215c351a 30109 (cd $(HOST_SUBDIR)/tk && \
295f4e42
NN
30110 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30111 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30112 "RANLIB=$${RANLIB}" \
30113 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 30114 dvi) \
295f4e42
NN
30115 || exit 1
30116
d32ab992 30117@endif tk
295f4e42 30118
f87a2b2e
MS
30119.PHONY: maybe-html-tk html-tk
30120maybe-html-tk:
30121@if tk
30122maybe-html-tk: html-tk
30123
30124html-tk: \
05750653 30125 configure-tk
f41d6665 30126 @: $(MAKE); $(unstage)
f87a2b2e
MS
30127 @[ -f ./tk/Makefile ] || exit 0; \
30128 r=`${PWD_COMMAND}`; export r; \
30129 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
30130 $(HOST_EXPORTS) \
30131 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
30132 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30133 done; \
30134 echo "Doing html in tk" ; \
215c351a 30135 (cd $(HOST_SUBDIR)/tk && \
f87a2b2e
MS
30136 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30137 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30138 "RANLIB=$${RANLIB}" \
30139 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
30140 html) \
30141 || exit 1
30142
30143@endif tk
30144
d32ab992
PB
30145.PHONY: maybe-TAGS-tk TAGS-tk
30146maybe-TAGS-tk:
30147@if tk
30148maybe-TAGS-tk: TAGS-tk
295f4e42 30149
d32ab992 30150TAGS-tk: \
05750653 30151 configure-tk
f41d6665 30152 @: $(MAKE); $(unstage)
d32ab992 30153 @[ -f ./tk/Makefile ] || exit 0; \
295f4e42
NN
30154 r=`${PWD_COMMAND}`; export r; \
30155 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30156 $(HOST_EXPORTS) \
7c27e184 30157 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
30158 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30159 done; \
d32ab992 30160 echo "Doing TAGS in tk" ; \
215c351a 30161 (cd $(HOST_SUBDIR)/tk && \
295f4e42
NN
30162 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30163 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30164 "RANLIB=$${RANLIB}" \
30165 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 30166 TAGS) \
295f4e42
NN
30167 || exit 1
30168
d32ab992 30169@endif tk
295f4e42 30170
d32ab992
PB
30171.PHONY: maybe-install-info-tk install-info-tk
30172maybe-install-info-tk:
30173@if tk
30174maybe-install-info-tk: install-info-tk
295f4e42 30175
d32ab992
PB
30176install-info-tk: \
30177 configure-tk \
05750653 30178 info-tk
f41d6665 30179 @: $(MAKE); $(unstage)
d32ab992 30180 @[ -f ./tk/Makefile ] || exit 0; \
295f4e42
NN
30181 r=`${PWD_COMMAND}`; export r; \
30182 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30183 $(HOST_EXPORTS) \
7c27e184 30184 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
30185 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30186 done; \
d32ab992 30187 echo "Doing install-info in tk" ; \
215c351a 30188 (cd $(HOST_SUBDIR)/tk && \
295f4e42
NN
30189 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30190 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30191 "RANLIB=$${RANLIB}" \
30192 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 30193 install-info) \
295f4e42
NN
30194 || exit 1
30195
d32ab992 30196@endif tk
295f4e42 30197
65d6e994
CD
30198.PHONY: maybe-install-html-tk install-html-tk
30199maybe-install-html-tk:
30200@if tk
30201maybe-install-html-tk: install-html-tk
30202
30203install-html-tk: \
30204 configure-tk \
30205 html-tk
30206 @: $(MAKE); $(unstage)
30207 @[ -f ./tk/Makefile ] || exit 0; \
30208 r=`${PWD_COMMAND}`; export r; \
30209 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30210 $(HOST_EXPORTS) \
30211 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
30212 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30213 done; \
30214 echo "Doing install-html in tk" ; \
30215 (cd $(HOST_SUBDIR)/tk && \
30216 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30217 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30218 "RANLIB=$${RANLIB}" \
30219 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
30220 install-html) \
30221 || exit 1
30222
30223@endif tk
30224
d32ab992
PB
30225.PHONY: maybe-installcheck-tk installcheck-tk
30226maybe-installcheck-tk:
30227@if tk
30228maybe-installcheck-tk: installcheck-tk
295f4e42 30229
d32ab992 30230installcheck-tk: \
05750653 30231 configure-tk
f41d6665 30232 @: $(MAKE); $(unstage)
d32ab992 30233 @[ -f ./tk/Makefile ] || exit 0; \
295f4e42
NN
30234 r=`${PWD_COMMAND}`; export r; \
30235 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30236 $(HOST_EXPORTS) \
7c27e184 30237 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
30238 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30239 done; \
d32ab992 30240 echo "Doing installcheck in tk" ; \
215c351a 30241 (cd $(HOST_SUBDIR)/tk && \
295f4e42
NN
30242 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30243 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30244 "RANLIB=$${RANLIB}" \
30245 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 30246 installcheck) \
295f4e42
NN
30247 || exit 1
30248
d32ab992 30249@endif tk
295f4e42 30250
d32ab992
PB
30251.PHONY: maybe-mostlyclean-tk mostlyclean-tk
30252maybe-mostlyclean-tk:
30253@if tk
30254maybe-mostlyclean-tk: mostlyclean-tk
295f4e42 30255
05750653 30256mostlyclean-tk:
f41d6665 30257 @: $(MAKE); $(unstage)
d32ab992 30258 @[ -f ./tk/Makefile ] || exit 0; \
295f4e42
NN
30259 r=`${PWD_COMMAND}`; export r; \
30260 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30261 $(HOST_EXPORTS) \
7c27e184 30262 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
30263 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30264 done; \
d32ab992 30265 echo "Doing mostlyclean in tk" ; \
215c351a 30266 (cd $(HOST_SUBDIR)/tk && \
295f4e42
NN
30267 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30268 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30269 "RANLIB=$${RANLIB}" \
30270 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 30271 mostlyclean) \
295f4e42
NN
30272 || exit 1
30273
d32ab992 30274@endif tk
295f4e42 30275
d32ab992
PB
30276.PHONY: maybe-clean-tk clean-tk
30277maybe-clean-tk:
30278@if tk
30279maybe-clean-tk: clean-tk
295f4e42 30280
05750653 30281clean-tk:
f41d6665 30282 @: $(MAKE); $(unstage)
d32ab992 30283 @[ -f ./tk/Makefile ] || exit 0; \
295f4e42
NN
30284 r=`${PWD_COMMAND}`; export r; \
30285 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30286 $(HOST_EXPORTS) \
7c27e184 30287 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
30288 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30289 done; \
d32ab992 30290 echo "Doing clean in tk" ; \
215c351a 30291 (cd $(HOST_SUBDIR)/tk && \
295f4e42
NN
30292 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30293 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30294 "RANLIB=$${RANLIB}" \
30295 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 30296 clean) \
295f4e42
NN
30297 || exit 1
30298
d32ab992 30299@endif tk
295f4e42 30300
d32ab992
PB
30301.PHONY: maybe-distclean-tk distclean-tk
30302maybe-distclean-tk:
30303@if tk
30304maybe-distclean-tk: distclean-tk
295f4e42 30305
05750653 30306distclean-tk:
f41d6665 30307 @: $(MAKE); $(unstage)
d32ab992 30308 @[ -f ./tk/Makefile ] || exit 0; \
295f4e42
NN
30309 r=`${PWD_COMMAND}`; export r; \
30310 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30311 $(HOST_EXPORTS) \
7c27e184 30312 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
30313 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30314 done; \
d32ab992 30315 echo "Doing distclean in tk" ; \
215c351a 30316 (cd $(HOST_SUBDIR)/tk && \
295f4e42
NN
30317 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30318 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30319 "RANLIB=$${RANLIB}" \
30320 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 30321 distclean) \
295f4e42
NN
30322 || exit 1
30323
d32ab992 30324@endif tk
295f4e42 30325
d32ab992
PB
30326.PHONY: maybe-maintainer-clean-tk maintainer-clean-tk
30327maybe-maintainer-clean-tk:
30328@if tk
30329maybe-maintainer-clean-tk: maintainer-clean-tk
295f4e42 30330
05750653 30331maintainer-clean-tk:
f41d6665 30332 @: $(MAKE); $(unstage)
d32ab992 30333 @[ -f ./tk/Makefile ] || exit 0; \
295f4e42
NN
30334 r=`${PWD_COMMAND}`; export r; \
30335 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30336 $(HOST_EXPORTS) \
7c27e184 30337 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
30338 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30339 done; \
d32ab992 30340 echo "Doing maintainer-clean in tk" ; \
215c351a 30341 (cd $(HOST_SUBDIR)/tk && \
295f4e42
NN
30342 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30343 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30344 "RANLIB=$${RANLIB}" \
30345 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 30346 maintainer-clean) \
295f4e42
NN
30347 || exit 1
30348
d32ab992 30349@endif tk
4977bab6
ZW
30350
30351
25b42232 30352
d32ab992
PB
30353.PHONY: configure-libtermcap maybe-configure-libtermcap
30354maybe-configure-libtermcap:
3ff3adad
PB
30355@if gcc-bootstrap
30356configure-libtermcap: stage_current
30357@endif gcc-bootstrap
d32ab992
PB
30358@if libtermcap
30359maybe-configure-libtermcap: configure-libtermcap
cc11cc9b 30360configure-libtermcap:
f41d6665 30361 @: $(MAKE); $(unstage)
cc11cc9b 30362 @r=`${PWD_COMMAND}`; export r; \
d32ab992 30363 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
30364 test ! -f $(HOST_SUBDIR)/libtermcap/Makefile || exit 0; \
30365 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libtermcap ; \
d32ab992 30366 $(HOST_EXPORTS) \
25b42232
PB
30367 echo Configuring in $(HOST_SUBDIR)/libtermcap; \
30368 cd "$(HOST_SUBDIR)/libtermcap" || exit 1; \
d32ab992 30369 case $(srcdir) in \
215c351a
PB
30370 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
30371 *) topdir=`echo $(HOST_SUBDIR)/libtermcap/ | \
30372 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
d32ab992 30373 esac; \
215c351a
PB
30374 srcdiroption="--srcdir=$${topdir}/libtermcap"; \
30375 libsrcdir="$$s/libtermcap"; \
d32ab992
PB
30376 $(SHELL) $${libsrcdir}/configure \
30377 $(HOST_CONFIGARGS) $${srcdiroption} \
30378 || exit 1
30379@endif libtermcap
30380
25b42232
PB
30381
30382
ce406537
PB
30383
30384
d32ab992
PB
30385.PHONY: all-libtermcap maybe-all-libtermcap
30386maybe-all-libtermcap:
3ff3adad
PB
30387@if gcc-bootstrap
30388all-libtermcap: stage_current
30389@endif gcc-bootstrap
d32ab992 30390@if libtermcap
7e0b5752 30391TARGET-libtermcap=all
d32ab992
PB
30392maybe-all-libtermcap: all-libtermcap
30393all-libtermcap: configure-libtermcap
f41d6665 30394 @: $(MAKE); $(unstage)
d32ab992
PB
30395 @r=`${PWD_COMMAND}`; export r; \
30396 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d32ab992 30397 $(HOST_EXPORTS) \
215c351a
PB
30398 (cd $(HOST_SUBDIR)/libtermcap && \
30399 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-libtermcap))
d32ab992
PB
30400@endif libtermcap
30401
25b42232 30402
ce406537
PB
30403
30404
d32ab992
PB
30405.PHONY: check-libtermcap maybe-check-libtermcap
30406maybe-check-libtermcap:
30407@if libtermcap
30408maybe-check-libtermcap: check-libtermcap
30409
30410check-libtermcap:
4977bab6 30411
60975492 30412@endif libtermcap
4977bab6 30413
295f4e42
NN
30414.PHONY: install-libtermcap maybe-install-libtermcap
30415maybe-install-libtermcap:
60975492
PB
30416@if libtermcap
30417maybe-install-libtermcap: install-libtermcap
7e2dbcef 30418
295f4e42 30419install-libtermcap: installdirs
f41d6665 30420 @: $(MAKE); $(unstage)
8c90b13a
L
30421 @r=`${PWD_COMMAND}`; export r; \
30422 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30423 $(HOST_EXPORTS) \
215c351a 30424 (cd $(HOST_SUBDIR)/libtermcap && \
ace9ac7b 30425 $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6 30426
60975492 30427@endif libtermcap
4977bab6 30428
295f4e42
NN
30429# Other targets (info, dvi, etc.)
30430
30431.PHONY: maybe-info-libtermcap info-libtermcap
30432maybe-info-libtermcap:
60975492
PB
30433@if libtermcap
30434maybe-info-libtermcap: info-libtermcap
295f4e42
NN
30435
30436info-libtermcap: \
05750653 30437 configure-libtermcap
f41d6665 30438 @: $(MAKE); $(unstage)
295f4e42 30439 @[ -f ./libtermcap/Makefile ] || exit 0; \
8c90b13a
L
30440 r=`${PWD_COMMAND}`; export r; \
30441 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30442 $(HOST_EXPORTS) \
d32ab992 30443 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
30444 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30445 done; \
30446 echo "Doing info in libtermcap" ; \
215c351a 30447 (cd $(HOST_SUBDIR)/libtermcap && \
295f4e42
NN
30448 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30449 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30450 "RANLIB=$${RANLIB}" \
30451 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 30452 info) \
4977bab6
ZW
30453 || exit 1
30454
60975492 30455@endif libtermcap
4977bab6 30456
295f4e42
NN
30457.PHONY: maybe-dvi-libtermcap dvi-libtermcap
30458maybe-dvi-libtermcap:
60975492
PB
30459@if libtermcap
30460maybe-dvi-libtermcap: dvi-libtermcap
4977bab6 30461
295f4e42 30462dvi-libtermcap: \
05750653 30463 configure-libtermcap
f41d6665 30464 @: $(MAKE); $(unstage)
295f4e42
NN
30465 @[ -f ./libtermcap/Makefile ] || exit 0; \
30466 r=`${PWD_COMMAND}`; export r; \
8c90b13a 30467 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30468 $(HOST_EXPORTS) \
d32ab992 30469 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
30470 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30471 done; \
30472 echo "Doing dvi in libtermcap" ; \
215c351a 30473 (cd $(HOST_SUBDIR)/libtermcap && \
295f4e42
NN
30474 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30475 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30476 "RANLIB=$${RANLIB}" \
30477 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 30478 dvi) \
295f4e42 30479 || exit 1
4977bab6 30480
60975492 30481@endif libtermcap
4977bab6 30482
f87a2b2e
MS
30483.PHONY: maybe-html-libtermcap html-libtermcap
30484maybe-html-libtermcap:
30485@if libtermcap
30486maybe-html-libtermcap: html-libtermcap
30487
30488html-libtermcap: \
05750653 30489 configure-libtermcap
f41d6665 30490 @: $(MAKE); $(unstage)
f87a2b2e
MS
30491 @[ -f ./libtermcap/Makefile ] || exit 0; \
30492 r=`${PWD_COMMAND}`; export r; \
30493 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
30494 $(HOST_EXPORTS) \
30495 for flag in $(EXTRA_HOST_FLAGS) ; do \
30496 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30497 done; \
30498 echo "Doing html in libtermcap" ; \
215c351a 30499 (cd $(HOST_SUBDIR)/libtermcap && \
f87a2b2e
MS
30500 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30501 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30502 "RANLIB=$${RANLIB}" \
30503 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
30504 html) \
30505 || exit 1
30506
30507@endif libtermcap
30508
295f4e42
NN
30509.PHONY: maybe-TAGS-libtermcap TAGS-libtermcap
30510maybe-TAGS-libtermcap:
60975492
PB
30511@if libtermcap
30512maybe-TAGS-libtermcap: TAGS-libtermcap
7e2dbcef 30513
295f4e42 30514TAGS-libtermcap: \
05750653 30515 configure-libtermcap
f41d6665 30516 @: $(MAKE); $(unstage)
295f4e42
NN
30517 @[ -f ./libtermcap/Makefile ] || exit 0; \
30518 r=`${PWD_COMMAND}`; export r; \
8c90b13a 30519 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30520 $(HOST_EXPORTS) \
d32ab992 30521 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
30522 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30523 done; \
30524 echo "Doing TAGS in libtermcap" ; \
215c351a 30525 (cd $(HOST_SUBDIR)/libtermcap && \
295f4e42
NN
30526 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30527 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30528 "RANLIB=$${RANLIB}" \
30529 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 30530 TAGS) \
295f4e42 30531 || exit 1
4977bab6 30532
60975492 30533@endif libtermcap
4977bab6 30534
295f4e42
NN
30535.PHONY: maybe-install-info-libtermcap install-info-libtermcap
30536maybe-install-info-libtermcap:
60975492
PB
30537@if libtermcap
30538maybe-install-info-libtermcap: install-info-libtermcap
295f4e42
NN
30539
30540install-info-libtermcap: \
30541 configure-libtermcap \
05750653 30542 info-libtermcap
f41d6665 30543 @: $(MAKE); $(unstage)
295f4e42 30544 @[ -f ./libtermcap/Makefile ] || exit 0; \
8c90b13a
L
30545 r=`${PWD_COMMAND}`; export r; \
30546 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30547 $(HOST_EXPORTS) \
d32ab992 30548 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
30549 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30550 done; \
30551 echo "Doing install-info in libtermcap" ; \
215c351a 30552 (cd $(HOST_SUBDIR)/libtermcap && \
295f4e42
NN
30553 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30554 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30555 "RANLIB=$${RANLIB}" \
30556 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 30557 install-info) \
4977bab6
ZW
30558 || exit 1
30559
60975492 30560@endif libtermcap
4977bab6 30561
65d6e994
CD
30562.PHONY: maybe-install-html-libtermcap install-html-libtermcap
30563maybe-install-html-libtermcap:
30564@if libtermcap
30565maybe-install-html-libtermcap: install-html-libtermcap
30566
30567install-html-libtermcap: \
30568 configure-libtermcap \
30569 html-libtermcap
30570 @: $(MAKE); $(unstage)
30571 @[ -f ./libtermcap/Makefile ] || exit 0; \
30572 r=`${PWD_COMMAND}`; export r; \
30573 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30574 $(HOST_EXPORTS) \
30575 for flag in $(EXTRA_HOST_FLAGS) ; do \
30576 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30577 done; \
30578 echo "Doing install-html in libtermcap" ; \
30579 (cd $(HOST_SUBDIR)/libtermcap && \
30580 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30581 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30582 "RANLIB=$${RANLIB}" \
30583 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
30584 install-html) \
30585 || exit 1
30586
30587@endif libtermcap
30588
295f4e42
NN
30589.PHONY: maybe-installcheck-libtermcap installcheck-libtermcap
30590maybe-installcheck-libtermcap:
60975492
PB
30591@if libtermcap
30592maybe-installcheck-libtermcap: installcheck-libtermcap
4977bab6 30593
295f4e42 30594installcheck-libtermcap: \
05750653 30595 configure-libtermcap
f41d6665 30596 @: $(MAKE); $(unstage)
295f4e42
NN
30597 @[ -f ./libtermcap/Makefile ] || exit 0; \
30598 r=`${PWD_COMMAND}`; export r; \
8c90b13a 30599 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30600 $(HOST_EXPORTS) \
d32ab992 30601 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
30602 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30603 done; \
30604 echo "Doing installcheck in libtermcap" ; \
215c351a 30605 (cd $(HOST_SUBDIR)/libtermcap && \
295f4e42
NN
30606 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30607 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30608 "RANLIB=$${RANLIB}" \
30609 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 30610 installcheck) \
295f4e42
NN
30611 || exit 1
30612
60975492 30613@endif libtermcap
295f4e42
NN
30614
30615.PHONY: maybe-mostlyclean-libtermcap mostlyclean-libtermcap
30616maybe-mostlyclean-libtermcap:
60975492
PB
30617@if libtermcap
30618maybe-mostlyclean-libtermcap: mostlyclean-libtermcap
295f4e42
NN
30619
30620# libtermcap doesn't support mostlyclean.
30621mostlyclean-libtermcap:
30622
60975492 30623@endif libtermcap
295f4e42
NN
30624
30625.PHONY: maybe-clean-libtermcap clean-libtermcap
30626maybe-clean-libtermcap:
60975492
PB
30627@if libtermcap
30628maybe-clean-libtermcap: clean-libtermcap
295f4e42
NN
30629
30630# libtermcap doesn't support clean.
30631clean-libtermcap:
30632
60975492 30633@endif libtermcap
295f4e42
NN
30634
30635.PHONY: maybe-distclean-libtermcap distclean-libtermcap
30636maybe-distclean-libtermcap:
60975492
PB
30637@if libtermcap
30638maybe-distclean-libtermcap: distclean-libtermcap
295f4e42
NN
30639
30640# libtermcap doesn't support distclean.
30641distclean-libtermcap:
30642
60975492 30643@endif libtermcap
4977bab6 30644
295f4e42
NN
30645.PHONY: maybe-maintainer-clean-libtermcap maintainer-clean-libtermcap
30646maybe-maintainer-clean-libtermcap:
60975492
PB
30647@if libtermcap
30648maybe-maintainer-clean-libtermcap: maintainer-clean-libtermcap
4977bab6 30649
295f4e42
NN
30650# libtermcap doesn't support maintainer-clean.
30651maintainer-clean-libtermcap:
7e2dbcef 30652
60975492 30653@endif libtermcap
4977bab6
ZW
30654
30655
25b42232 30656
295f4e42
NN
30657.PHONY: configure-utils maybe-configure-utils
30658maybe-configure-utils:
3ff3adad
PB
30659@if gcc-bootstrap
30660configure-utils: stage_current
30661@endif gcc-bootstrap
60975492
PB
30662@if utils
30663maybe-configure-utils: configure-utils
cc11cc9b 30664configure-utils:
f41d6665 30665 @: $(MAKE); $(unstage)
cc11cc9b 30666 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 30667 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
30668 test ! -f $(HOST_SUBDIR)/utils/Makefile || exit 0; \
30669 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/utils ; \
4fc4dd12 30670 $(HOST_EXPORTS) \
25b42232
PB
30671 echo Configuring in $(HOST_SUBDIR)/utils; \
30672 cd "$(HOST_SUBDIR)/utils" || exit 1; \
4977bab6 30673 case $(srcdir) in \
215c351a
PB
30674 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
30675 *) topdir=`echo $(HOST_SUBDIR)/utils/ | \
30676 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 30677 esac; \
215c351a
PB
30678 srcdiroption="--srcdir=$${topdir}/utils"; \
30679 libsrcdir="$$s/utils"; \
4977bab6 30680 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 30681 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 30682 || exit 1
60975492 30683@endif utils
4977bab6 30684
25b42232
PB
30685
30686
ce406537
PB
30687
30688
295f4e42
NN
30689.PHONY: all-utils maybe-all-utils
30690maybe-all-utils:
3ff3adad
PB
30691@if gcc-bootstrap
30692all-utils: stage_current
30693@endif gcc-bootstrap
60975492 30694@if utils
7e0b5752 30695TARGET-utils=all
60975492 30696maybe-all-utils: all-utils
295f4e42 30697all-utils: configure-utils
f41d6665 30698 @: $(MAKE); $(unstage)
8c90b13a
L
30699 @r=`${PWD_COMMAND}`; export r; \
30700 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30701 $(HOST_EXPORTS) \
215c351a
PB
30702 (cd $(HOST_SUBDIR)/utils && \
30703 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-utils))
60975492 30704@endif utils
4977bab6 30705
25b42232 30706
ce406537
PB
30707
30708
295f4e42
NN
30709.PHONY: check-utils maybe-check-utils
30710maybe-check-utils:
60975492
PB
30711@if utils
30712maybe-check-utils: check-utils
4977bab6 30713
295f4e42
NN
30714check-utils:
30715
60975492 30716@endif utils
295f4e42
NN
30717
30718.PHONY: install-utils maybe-install-utils
30719maybe-install-utils:
60975492
PB
30720@if utils
30721maybe-install-utils: install-utils
295f4e42
NN
30722
30723install-utils: installdirs
f41d6665 30724 @: $(MAKE); $(unstage)
8c90b13a
L
30725 @r=`${PWD_COMMAND}`; export r; \
30726 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30727 $(HOST_EXPORTS) \
215c351a 30728 (cd $(HOST_SUBDIR)/utils && \
ace9ac7b 30729 $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6 30730
60975492 30731@endif utils
4977bab6 30732
295f4e42 30733# Other targets (info, dvi, etc.)
7e2dbcef 30734
295f4e42
NN
30735.PHONY: maybe-info-utils info-utils
30736maybe-info-utils:
60975492
PB
30737@if utils
30738maybe-info-utils: info-utils
295f4e42
NN
30739
30740info-utils: \
05750653 30741 configure-utils
f41d6665 30742 @: $(MAKE); $(unstage)
295f4e42
NN
30743 @[ -f ./utils/Makefile ] || exit 0; \
30744 r=`${PWD_COMMAND}`; export r; \
8c90b13a 30745 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30746 $(HOST_EXPORTS) \
d32ab992 30747 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
30748 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30749 done; \
30750 echo "Doing info in utils" ; \
215c351a 30751 (cd $(HOST_SUBDIR)/utils && \
295f4e42
NN
30752 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30753 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30754 "RANLIB=$${RANLIB}" \
30755 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 30756 info) \
295f4e42 30757 || exit 1
4977bab6 30758
60975492 30759@endif utils
4977bab6 30760
295f4e42
NN
30761.PHONY: maybe-dvi-utils dvi-utils
30762maybe-dvi-utils:
60975492
PB
30763@if utils
30764maybe-dvi-utils: dvi-utils
295f4e42
NN
30765
30766dvi-utils: \
05750653 30767 configure-utils
f41d6665 30768 @: $(MAKE); $(unstage)
295f4e42 30769 @[ -f ./utils/Makefile ] || exit 0; \
8c90b13a
L
30770 r=`${PWD_COMMAND}`; export r; \
30771 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30772 $(HOST_EXPORTS) \
d32ab992 30773 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
30774 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30775 done; \
30776 echo "Doing dvi in utils" ; \
215c351a 30777 (cd $(HOST_SUBDIR)/utils && \
295f4e42
NN
30778 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30779 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30780 "RANLIB=$${RANLIB}" \
30781 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 30782 dvi) \
4977bab6
ZW
30783 || exit 1
30784
60975492 30785@endif utils
295f4e42 30786
f87a2b2e
MS
30787.PHONY: maybe-html-utils html-utils
30788maybe-html-utils:
30789@if utils
30790maybe-html-utils: html-utils
30791
30792html-utils: \
05750653 30793 configure-utils
f41d6665 30794 @: $(MAKE); $(unstage)
f87a2b2e
MS
30795 @[ -f ./utils/Makefile ] || exit 0; \
30796 r=`${PWD_COMMAND}`; export r; \
30797 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
30798 $(HOST_EXPORTS) \
30799 for flag in $(EXTRA_HOST_FLAGS) ; do \
30800 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30801 done; \
30802 echo "Doing html in utils" ; \
215c351a 30803 (cd $(HOST_SUBDIR)/utils && \
f87a2b2e
MS
30804 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30805 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30806 "RANLIB=$${RANLIB}" \
30807 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
30808 html) \
30809 || exit 1
30810
30811@endif utils
30812
295f4e42
NN
30813.PHONY: maybe-TAGS-utils TAGS-utils
30814maybe-TAGS-utils:
60975492
PB
30815@if utils
30816maybe-TAGS-utils: TAGS-utils
295f4e42
NN
30817
30818TAGS-utils: \
05750653 30819 configure-utils
f41d6665 30820 @: $(MAKE); $(unstage)
295f4e42
NN
30821 @[ -f ./utils/Makefile ] || exit 0; \
30822 r=`${PWD_COMMAND}`; export r; \
8c90b13a 30823 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30824 $(HOST_EXPORTS) \
d32ab992 30825 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
30826 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30827 done; \
30828 echo "Doing TAGS in utils" ; \
215c351a 30829 (cd $(HOST_SUBDIR)/utils && \
295f4e42
NN
30830 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30831 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30832 "RANLIB=$${RANLIB}" \
30833 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 30834 TAGS) \
295f4e42 30835 || exit 1
4977bab6 30836
60975492 30837@endif utils
4977bab6 30838
295f4e42
NN
30839.PHONY: maybe-install-info-utils install-info-utils
30840maybe-install-info-utils:
60975492
PB
30841@if utils
30842maybe-install-info-utils: install-info-utils
295f4e42
NN
30843
30844install-info-utils: \
30845 configure-utils \
05750653 30846 info-utils
f41d6665 30847 @: $(MAKE); $(unstage)
295f4e42
NN
30848 @[ -f ./utils/Makefile ] || exit 0; \
30849 r=`${PWD_COMMAND}`; export r; \
30850 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30851 $(HOST_EXPORTS) \
d32ab992 30852 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
30853 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30854 done; \
30855 echo "Doing install-info in utils" ; \
215c351a 30856 (cd $(HOST_SUBDIR)/utils && \
295f4e42
NN
30857 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30858 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30859 "RANLIB=$${RANLIB}" \
30860 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 30861 install-info) \
295f4e42 30862 || exit 1
4977bab6 30863
60975492 30864@endif utils
4977bab6 30865
65d6e994
CD
30866.PHONY: maybe-install-html-utils install-html-utils
30867maybe-install-html-utils:
30868@if utils
30869maybe-install-html-utils: install-html-utils
30870
30871install-html-utils: \
30872 configure-utils \
30873 html-utils
30874 @: $(MAKE); $(unstage)
30875 @[ -f ./utils/Makefile ] || exit 0; \
30876 r=`${PWD_COMMAND}`; export r; \
30877 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30878 $(HOST_EXPORTS) \
30879 for flag in $(EXTRA_HOST_FLAGS) ; do \
30880 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30881 done; \
30882 echo "Doing install-html in utils" ; \
30883 (cd $(HOST_SUBDIR)/utils && \
30884 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30885 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30886 "RANLIB=$${RANLIB}" \
30887 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
30888 install-html) \
30889 || exit 1
30890
30891@endif utils
30892
295f4e42
NN
30893.PHONY: maybe-installcheck-utils installcheck-utils
30894maybe-installcheck-utils:
60975492
PB
30895@if utils
30896maybe-installcheck-utils: installcheck-utils
7e2dbcef 30897
295f4e42 30898installcheck-utils: \
05750653 30899 configure-utils
f41d6665 30900 @: $(MAKE); $(unstage)
295f4e42
NN
30901 @[ -f ./utils/Makefile ] || exit 0; \
30902 r=`${PWD_COMMAND}`; export r; \
8c90b13a 30903 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30904 $(HOST_EXPORTS) \
d32ab992 30905 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
30906 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30907 done; \
30908 echo "Doing installcheck in utils" ; \
215c351a 30909 (cd $(HOST_SUBDIR)/utils && \
295f4e42
NN
30910 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30911 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30912 "RANLIB=$${RANLIB}" \
30913 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 30914 installcheck) \
295f4e42 30915 || exit 1
4977bab6 30916
60975492 30917@endif utils
4977bab6 30918
295f4e42
NN
30919.PHONY: maybe-mostlyclean-utils mostlyclean-utils
30920maybe-mostlyclean-utils:
60975492
PB
30921@if utils
30922maybe-mostlyclean-utils: mostlyclean-utils
295f4e42 30923
05750653 30924mostlyclean-utils:
f41d6665 30925 @: $(MAKE); $(unstage)
295f4e42 30926 @[ -f ./utils/Makefile ] || exit 0; \
8c90b13a
L
30927 r=`${PWD_COMMAND}`; export r; \
30928 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30929 $(HOST_EXPORTS) \
d32ab992 30930 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
30931 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30932 done; \
30933 echo "Doing mostlyclean in utils" ; \
215c351a 30934 (cd $(HOST_SUBDIR)/utils && \
295f4e42
NN
30935 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30936 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30937 "RANLIB=$${RANLIB}" \
30938 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 30939 mostlyclean) \
4977bab6
ZW
30940 || exit 1
30941
60975492 30942@endif utils
295f4e42
NN
30943
30944.PHONY: maybe-clean-utils clean-utils
30945maybe-clean-utils:
60975492
PB
30946@if utils
30947maybe-clean-utils: clean-utils
295f4e42 30948
05750653 30949clean-utils:
f41d6665 30950 @: $(MAKE); $(unstage)
295f4e42
NN
30951 @[ -f ./utils/Makefile ] || exit 0; \
30952 r=`${PWD_COMMAND}`; export r; \
8c90b13a 30953 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30954 $(HOST_EXPORTS) \
d32ab992 30955 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
30956 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30957 done; \
30958 echo "Doing clean in utils" ; \
215c351a 30959 (cd $(HOST_SUBDIR)/utils && \
295f4e42
NN
30960 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30961 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30962 "RANLIB=$${RANLIB}" \
30963 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 30964 clean) \
295f4e42 30965 || exit 1
4977bab6 30966
60975492 30967@endif utils
4977bab6 30968
295f4e42
NN
30969.PHONY: maybe-distclean-utils distclean-utils
30970maybe-distclean-utils:
60975492
PB
30971@if utils
30972maybe-distclean-utils: distclean-utils
295f4e42 30973
05750653 30974distclean-utils:
f41d6665 30975 @: $(MAKE); $(unstage)
295f4e42
NN
30976 @[ -f ./utils/Makefile ] || exit 0; \
30977 r=`${PWD_COMMAND}`; export r; \
8c90b13a 30978 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30979 $(HOST_EXPORTS) \
d32ab992 30980 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
30981 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30982 done; \
30983 echo "Doing distclean in utils" ; \
215c351a 30984 (cd $(HOST_SUBDIR)/utils && \
295f4e42
NN
30985 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30986 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30987 "RANLIB=$${RANLIB}" \
30988 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 30989 distclean) \
295f4e42 30990 || exit 1
4977bab6 30991
60975492 30992@endif utils
4977bab6 30993
295f4e42
NN
30994.PHONY: maybe-maintainer-clean-utils maintainer-clean-utils
30995maybe-maintainer-clean-utils:
60975492
PB
30996@if utils
30997maybe-maintainer-clean-utils: maintainer-clean-utils
7e2dbcef 30998
05750653 30999maintainer-clean-utils:
f41d6665 31000 @: $(MAKE); $(unstage)
295f4e42
NN
31001 @[ -f ./utils/Makefile ] || exit 0; \
31002 r=`${PWD_COMMAND}`; export r; \
8c90b13a 31003 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31004 $(HOST_EXPORTS) \
d32ab992 31005 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
31006 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31007 done; \
31008 echo "Doing maintainer-clean in utils" ; \
215c351a 31009 (cd $(HOST_SUBDIR)/utils && \
295f4e42
NN
31010 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31011 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31012 "RANLIB=$${RANLIB}" \
31013 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 31014 maintainer-clean) \
295f4e42 31015 || exit 1
4977bab6 31016
60975492 31017@endif utils
4977bab6 31018
295f4e42 31019
25b42232 31020
5395b47b
NN
31021.PHONY: configure-gnattools maybe-configure-gnattools
31022maybe-configure-gnattools:
3ff3adad
PB
31023@if gcc-bootstrap
31024configure-gnattools: stage_current
31025@endif gcc-bootstrap
5395b47b
NN
31026@if gnattools
31027maybe-configure-gnattools: configure-gnattools
cc11cc9b 31028configure-gnattools:
f41d6665 31029 @: $(MAKE); $(unstage)
cc11cc9b 31030 @r=`${PWD_COMMAND}`; export r; \
5395b47b 31031 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
31032 test ! -f $(HOST_SUBDIR)/gnattools/Makefile || exit 0; \
31033 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gnattools ; \
5395b47b 31034 $(HOST_EXPORTS) \
25b42232
PB
31035 echo Configuring in $(HOST_SUBDIR)/gnattools; \
31036 cd "$(HOST_SUBDIR)/gnattools" || exit 1; \
5395b47b 31037 case $(srcdir) in \
c9db9354
PB
31038 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31039 *) topdir=`echo $(HOST_SUBDIR)/gnattools/ | \
31040 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5395b47b 31041 esac; \
c9db9354
PB
31042 srcdiroption="--srcdir=$${topdir}/gnattools"; \
31043 libsrcdir="$$s/gnattools"; \
5395b47b
NN
31044 $(SHELL) $${libsrcdir}/configure \
31045 $(HOST_CONFIGARGS) $${srcdiroption} \
31046 || exit 1
31047@endif gnattools
31048
25b42232
PB
31049
31050
ce406537
PB
31051
31052
5395b47b
NN
31053.PHONY: all-gnattools maybe-all-gnattools
31054maybe-all-gnattools:
3ff3adad
PB
31055@if gcc-bootstrap
31056all-gnattools: stage_current
31057@endif gcc-bootstrap
5395b47b
NN
31058@if gnattools
31059TARGET-gnattools=all
31060maybe-all-gnattools: all-gnattools
31061all-gnattools: configure-gnattools
f41d6665 31062 @: $(MAKE); $(unstage)
5395b47b
NN
31063 @r=`${PWD_COMMAND}`; export r; \
31064 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5395b47b 31065 $(HOST_EXPORTS) \
c9db9354
PB
31066 (cd $(HOST_SUBDIR)/gnattools && \
31067 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-gnattools))
5395b47b
NN
31068@endif gnattools
31069
25b42232 31070
ce406537
PB
31071
31072
5395b47b
NN
31073.PHONY: check-gnattools maybe-check-gnattools
31074maybe-check-gnattools:
31075@if gnattools
31076maybe-check-gnattools: check-gnattools
31077
31078check-gnattools:
f41d6665 31079 @: $(MAKE); $(unstage)
5395b47b
NN
31080 @r=`${PWD_COMMAND}`; export r; \
31081 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5395b47b 31082 $(HOST_EXPORTS) \
c9db9354
PB
31083 (cd $(HOST_SUBDIR)/gnattools && \
31084 $(MAKE) $(FLAGS_TO_PASS) check)
5395b47b
NN
31085
31086@endif gnattools
31087
31088.PHONY: install-gnattools maybe-install-gnattools
31089maybe-install-gnattools:
31090@if gnattools
31091maybe-install-gnattools: install-gnattools
31092
31093install-gnattools: installdirs
f41d6665 31094 @: $(MAKE); $(unstage)
5395b47b
NN
31095 @r=`${PWD_COMMAND}`; export r; \
31096 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5395b47b 31097 $(HOST_EXPORTS) \
c9db9354 31098 (cd $(HOST_SUBDIR)/gnattools && \
ace9ac7b 31099 $(MAKE) $(FLAGS_TO_PASS) install)
5395b47b
NN
31100
31101@endif gnattools
31102
31103# Other targets (info, dvi, etc.)
31104
31105.PHONY: maybe-info-gnattools info-gnattools
31106maybe-info-gnattools:
31107@if gnattools
31108maybe-info-gnattools: info-gnattools
31109
31110info-gnattools: \
31111 configure-gnattools
f41d6665 31112 @: $(MAKE); $(unstage)
5395b47b
NN
31113 @[ -f ./gnattools/Makefile ] || exit 0; \
31114 r=`${PWD_COMMAND}`; export r; \
31115 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5395b47b
NN
31116 $(HOST_EXPORTS) \
31117 for flag in $(EXTRA_HOST_FLAGS) ; do \
31118 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31119 done; \
31120 echo "Doing info in gnattools" ; \
c9db9354 31121 (cd $(HOST_SUBDIR)/gnattools && \
5395b47b
NN
31122 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31123 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31124 "RANLIB=$${RANLIB}" \
31125 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
31126 info) \
31127 || exit 1
31128
31129@endif gnattools
31130
31131.PHONY: maybe-dvi-gnattools dvi-gnattools
31132maybe-dvi-gnattools:
31133@if gnattools
31134maybe-dvi-gnattools: dvi-gnattools
31135
31136dvi-gnattools: \
31137 configure-gnattools
f41d6665 31138 @: $(MAKE); $(unstage)
5395b47b
NN
31139 @[ -f ./gnattools/Makefile ] || exit 0; \
31140 r=`${PWD_COMMAND}`; export r; \
31141 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5395b47b
NN
31142 $(HOST_EXPORTS) \
31143 for flag in $(EXTRA_HOST_FLAGS) ; do \
31144 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31145 done; \
31146 echo "Doing dvi in gnattools" ; \
c9db9354 31147 (cd $(HOST_SUBDIR)/gnattools && \
5395b47b
NN
31148 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31149 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31150 "RANLIB=$${RANLIB}" \
31151 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
31152 dvi) \
31153 || exit 1
31154
31155@endif gnattools
31156
31157.PHONY: maybe-html-gnattools html-gnattools
31158maybe-html-gnattools:
31159@if gnattools
31160maybe-html-gnattools: html-gnattools
31161
31162html-gnattools: \
31163 configure-gnattools
f41d6665 31164 @: $(MAKE); $(unstage)
5395b47b
NN
31165 @[ -f ./gnattools/Makefile ] || exit 0; \
31166 r=`${PWD_COMMAND}`; export r; \
31167 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5395b47b
NN
31168 $(HOST_EXPORTS) \
31169 for flag in $(EXTRA_HOST_FLAGS) ; do \
31170 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31171 done; \
31172 echo "Doing html in gnattools" ; \
c9db9354 31173 (cd $(HOST_SUBDIR)/gnattools && \
5395b47b
NN
31174 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31175 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31176 "RANLIB=$${RANLIB}" \
31177 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
31178 html) \
31179 || exit 1
31180
31181@endif gnattools
31182
31183.PHONY: maybe-TAGS-gnattools TAGS-gnattools
31184maybe-TAGS-gnattools:
31185@if gnattools
31186maybe-TAGS-gnattools: TAGS-gnattools
31187
31188TAGS-gnattools: \
31189 configure-gnattools
f41d6665 31190 @: $(MAKE); $(unstage)
5395b47b
NN
31191 @[ -f ./gnattools/Makefile ] || exit 0; \
31192 r=`${PWD_COMMAND}`; export r; \
31193 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5395b47b
NN
31194 $(HOST_EXPORTS) \
31195 for flag in $(EXTRA_HOST_FLAGS) ; do \
31196 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31197 done; \
31198 echo "Doing TAGS in gnattools" ; \
c9db9354 31199 (cd $(HOST_SUBDIR)/gnattools && \
5395b47b
NN
31200 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31201 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31202 "RANLIB=$${RANLIB}" \
31203 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
31204 TAGS) \
31205 || exit 1
31206
31207@endif gnattools
31208
31209.PHONY: maybe-install-info-gnattools install-info-gnattools
31210maybe-install-info-gnattools:
31211@if gnattools
31212maybe-install-info-gnattools: install-info-gnattools
31213
31214install-info-gnattools: \
31215 configure-gnattools \
31216 info-gnattools
f41d6665 31217 @: $(MAKE); $(unstage)
5395b47b
NN
31218 @[ -f ./gnattools/Makefile ] || exit 0; \
31219 r=`${PWD_COMMAND}`; export r; \
31220 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5395b47b
NN
31221 $(HOST_EXPORTS) \
31222 for flag in $(EXTRA_HOST_FLAGS) ; do \
31223 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31224 done; \
31225 echo "Doing install-info in gnattools" ; \
c9db9354 31226 (cd $(HOST_SUBDIR)/gnattools && \
5395b47b
NN
31227 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31228 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31229 "RANLIB=$${RANLIB}" \
31230 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
31231 install-info) \
31232 || exit 1
31233
31234@endif gnattools
31235
65d6e994
CD
31236.PHONY: maybe-install-html-gnattools install-html-gnattools
31237maybe-install-html-gnattools:
31238@if gnattools
31239maybe-install-html-gnattools: install-html-gnattools
31240
31241install-html-gnattools: \
31242 configure-gnattools \
31243 html-gnattools
31244 @: $(MAKE); $(unstage)
31245 @[ -f ./gnattools/Makefile ] || exit 0; \
31246 r=`${PWD_COMMAND}`; export r; \
31247 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31248 $(HOST_EXPORTS) \
31249 for flag in $(EXTRA_HOST_FLAGS) ; do \
31250 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31251 done; \
31252 echo "Doing install-html in gnattools" ; \
31253 (cd $(HOST_SUBDIR)/gnattools && \
31254 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31255 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31256 "RANLIB=$${RANLIB}" \
31257 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
31258 install-html) \
31259 || exit 1
31260
31261@endif gnattools
31262
5395b47b
NN
31263.PHONY: maybe-installcheck-gnattools installcheck-gnattools
31264maybe-installcheck-gnattools:
31265@if gnattools
31266maybe-installcheck-gnattools: installcheck-gnattools
31267
31268installcheck-gnattools: \
31269 configure-gnattools
f41d6665 31270 @: $(MAKE); $(unstage)
5395b47b
NN
31271 @[ -f ./gnattools/Makefile ] || exit 0; \
31272 r=`${PWD_COMMAND}`; export r; \
31273 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5395b47b
NN
31274 $(HOST_EXPORTS) \
31275 for flag in $(EXTRA_HOST_FLAGS) ; do \
31276 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31277 done; \
31278 echo "Doing installcheck in gnattools" ; \
c9db9354 31279 (cd $(HOST_SUBDIR)/gnattools && \
5395b47b
NN
31280 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31281 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31282 "RANLIB=$${RANLIB}" \
31283 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
31284 installcheck) \
31285 || exit 1
31286
31287@endif gnattools
31288
31289.PHONY: maybe-mostlyclean-gnattools mostlyclean-gnattools
31290maybe-mostlyclean-gnattools:
31291@if gnattools
31292maybe-mostlyclean-gnattools: mostlyclean-gnattools
31293
31294mostlyclean-gnattools:
f41d6665 31295 @: $(MAKE); $(unstage)
5395b47b
NN
31296 @[ -f ./gnattools/Makefile ] || exit 0; \
31297 r=`${PWD_COMMAND}`; export r; \
31298 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5395b47b
NN
31299 $(HOST_EXPORTS) \
31300 for flag in $(EXTRA_HOST_FLAGS) ; do \
31301 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31302 done; \
31303 echo "Doing mostlyclean in gnattools" ; \
c9db9354 31304 (cd $(HOST_SUBDIR)/gnattools && \
5395b47b
NN
31305 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31306 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31307 "RANLIB=$${RANLIB}" \
31308 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
31309 mostlyclean) \
31310 || exit 1
31311
31312@endif gnattools
31313
31314.PHONY: maybe-clean-gnattools clean-gnattools
31315maybe-clean-gnattools:
31316@if gnattools
31317maybe-clean-gnattools: clean-gnattools
31318
31319clean-gnattools:
f41d6665 31320 @: $(MAKE); $(unstage)
5395b47b
NN
31321 @[ -f ./gnattools/Makefile ] || exit 0; \
31322 r=`${PWD_COMMAND}`; export r; \
31323 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5395b47b
NN
31324 $(HOST_EXPORTS) \
31325 for flag in $(EXTRA_HOST_FLAGS) ; do \
31326 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31327 done; \
31328 echo "Doing clean in gnattools" ; \
c9db9354 31329 (cd $(HOST_SUBDIR)/gnattools && \
5395b47b
NN
31330 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31331 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31332 "RANLIB=$${RANLIB}" \
31333 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
31334 clean) \
31335 || exit 1
31336
31337@endif gnattools
31338
31339.PHONY: maybe-distclean-gnattools distclean-gnattools
31340maybe-distclean-gnattools:
31341@if gnattools
31342maybe-distclean-gnattools: distclean-gnattools
31343
31344distclean-gnattools:
f41d6665 31345 @: $(MAKE); $(unstage)
5395b47b
NN
31346 @[ -f ./gnattools/Makefile ] || exit 0; \
31347 r=`${PWD_COMMAND}`; export r; \
31348 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5395b47b
NN
31349 $(HOST_EXPORTS) \
31350 for flag in $(EXTRA_HOST_FLAGS) ; do \
31351 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31352 done; \
31353 echo "Doing distclean in gnattools" ; \
c9db9354 31354 (cd $(HOST_SUBDIR)/gnattools && \
5395b47b
NN
31355 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31356 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31357 "RANLIB=$${RANLIB}" \
31358 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
31359 distclean) \
31360 || exit 1
31361
31362@endif gnattools
31363
31364.PHONY: maybe-maintainer-clean-gnattools maintainer-clean-gnattools
31365maybe-maintainer-clean-gnattools:
31366@if gnattools
31367maybe-maintainer-clean-gnattools: maintainer-clean-gnattools
31368
31369maintainer-clean-gnattools:
f41d6665 31370 @: $(MAKE); $(unstage)
5395b47b
NN
31371 @[ -f ./gnattools/Makefile ] || exit 0; \
31372 r=`${PWD_COMMAND}`; export r; \
31373 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5395b47b
NN
31374 $(HOST_EXPORTS) \
31375 for flag in $(EXTRA_HOST_FLAGS) ; do \
31376 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31377 done; \
31378 echo "Doing maintainer-clean in gnattools" ; \
c9db9354 31379 (cd $(HOST_SUBDIR)/gnattools && \
5395b47b
NN
31380 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31381 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31382 "RANLIB=$${RANLIB}" \
31383 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
31384 maintainer-clean) \
31385 || exit 1
31386
31387@endif gnattools
31388
31389
295f4e42
NN
31390
31391# ---------------------------------------
31392# Modules which run on the target machine
31393# ---------------------------------------
31394
295f4e42 31395
25b42232
PB
31396
31397
31398.PHONY: configure-target-libstdc++-v3 maybe-configure-target-libstdc++-v3
31399maybe-configure-target-libstdc++-v3:
3ff3adad
PB
31400@if gcc-bootstrap
31401configure-target-libstdc++-v3: stage_current
31402@endif gcc-bootstrap
25b42232
PB
31403@if target-libstdc++-v3
31404maybe-configure-target-libstdc++-v3: configure-target-libstdc++-v3
cc11cc9b 31405configure-target-libstdc++-v3:
f41d6665
DJ
31406 @: $(MAKE); $(unstage)
31407 @r=`${PWD_COMMAND}`; export r; \
31408 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31409 echo "Checking multilib configuration for libstdc++-v3..."; \
31410 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
31411 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null ; \
31412 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
31413 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
31414 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
31415 else \
31416 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
31417 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
31418 fi; \
31419 else \
31420 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
cc11cc9b
PB
31421 fi; \
31422 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
295f4e42 31423 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
4fc4dd12 31424 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
31425 echo Configuring in $(TARGET_SUBDIR)/libstdc++-v3; \
31426 cd "$(TARGET_SUBDIR)/libstdc++-v3" || exit 1; \
4977bab6 31427 case $(srcdir) in \
215c351a
PB
31428 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31429 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
31430 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 31431 esac; \
215c351a
PB
31432 srcdiroption="--srcdir=$${topdir}/libstdc++-v3"; \
31433 libsrcdir="$$s/libstdc++-v3"; \
295f4e42
NN
31434 rm -f no-such-file || : ; \
31435 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 31436 $(TARGET_CONFIGARGS) $${srcdiroption} \
4977bab6 31437 || exit 1
60975492 31438@endif target-libstdc++-v3
4977bab6 31439
25b42232
PB
31440
31441
ce406537
PB
31442
31443
295f4e42
NN
31444.PHONY: all-target-libstdc++-v3 maybe-all-target-libstdc++-v3
31445maybe-all-target-libstdc++-v3:
3ff3adad
PB
31446@if gcc-bootstrap
31447all-target-libstdc++-v3: stage_current
31448@endif gcc-bootstrap
60975492 31449@if target-libstdc++-v3
7c27e184 31450TARGET-target-libstdc++-v3=all
60975492 31451maybe-all-target-libstdc++-v3: all-target-libstdc++-v3
295f4e42 31452all-target-libstdc++-v3: configure-target-libstdc++-v3
f41d6665 31453 @: $(MAKE); $(unstage)
8c90b13a
L
31454 @r=`${PWD_COMMAND}`; export r; \
31455 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31456 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42 31457 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
25b42232 31458 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' $(TARGET-target-libstdc++-v3))
60975492 31459@endif target-libstdc++-v3
4977bab6 31460
25b42232
PB
31461
31462
ce406537
PB
31463
31464
295f4e42
NN
31465.PHONY: check-target-libstdc++-v3 maybe-check-target-libstdc++-v3
31466maybe-check-target-libstdc++-v3:
60975492
PB
31467@if target-libstdc++-v3
31468maybe-check-target-libstdc++-v3: check-target-libstdc++-v3
4977bab6 31469
295f4e42 31470check-target-libstdc++-v3:
f41d6665 31471 @: $(MAKE); $(unstage)
8c90b13a
L
31472 @r=`${PWD_COMMAND}`; export r; \
31473 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31474 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42 31475 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
a52a0a7f 31476 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
4977bab6 31477
60975492 31478@endif target-libstdc++-v3
4977bab6 31479
295f4e42
NN
31480.PHONY: install-target-libstdc++-v3 maybe-install-target-libstdc++-v3
31481maybe-install-target-libstdc++-v3:
60975492
PB
31482@if target-libstdc++-v3
31483maybe-install-target-libstdc++-v3: install-target-libstdc++-v3
7e2dbcef 31484
295f4e42 31485install-target-libstdc++-v3: installdirs
f41d6665 31486 @: $(MAKE); $(unstage)
8c90b13a
L
31487 @r=`${PWD_COMMAND}`; export r; \
31488 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31489 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42 31490 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
a52a0a7f 31491 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4977bab6 31492
60975492 31493@endif target-libstdc++-v3
4977bab6 31494
295f4e42
NN
31495# Other targets (info, dvi, etc.)
31496
31497.PHONY: maybe-info-target-libstdc++-v3 info-target-libstdc++-v3
31498maybe-info-target-libstdc++-v3:
60975492
PB
31499@if target-libstdc++-v3
31500maybe-info-target-libstdc++-v3: info-target-libstdc++-v3
295f4e42
NN
31501
31502info-target-libstdc++-v3: \
05750653 31503 configure-target-libstdc++-v3
f41d6665 31504 @: $(MAKE); $(unstage)
295f4e42 31505 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
8c90b13a
L
31506 r=`${PWD_COMMAND}`; export r; \
31507 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31508 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
31509 echo "Doing info in $(TARGET_SUBDIR)/libstdc++-v3" ; \
31510 for flag in $(EXTRA_TARGET_FLAGS); do \
31511 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31512 done; \
31513 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
31514 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31515 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31516 "RANLIB=$${RANLIB}" \
31517 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 31518 info) \
4977bab6
ZW
31519 || exit 1
31520
60975492 31521@endif target-libstdc++-v3
295f4e42
NN
31522
31523.PHONY: maybe-dvi-target-libstdc++-v3 dvi-target-libstdc++-v3
31524maybe-dvi-target-libstdc++-v3:
60975492
PB
31525@if target-libstdc++-v3
31526maybe-dvi-target-libstdc++-v3: dvi-target-libstdc++-v3
295f4e42
NN
31527
31528dvi-target-libstdc++-v3: \
05750653 31529 configure-target-libstdc++-v3
f41d6665 31530 @: $(MAKE); $(unstage)
295f4e42
NN
31531 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
31532 r=`${PWD_COMMAND}`; export r; \
8c90b13a 31533 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31534 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
31535 echo "Doing dvi in $(TARGET_SUBDIR)/libstdc++-v3" ; \
31536 for flag in $(EXTRA_TARGET_FLAGS); do \
31537 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31538 done; \
31539 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
31540 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31541 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31542 "RANLIB=$${RANLIB}" \
31543 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 31544 dvi) \
295f4e42 31545 || exit 1
4977bab6 31546
60975492 31547@endif target-libstdc++-v3
4977bab6 31548
f87a2b2e
MS
31549.PHONY: maybe-html-target-libstdc++-v3 html-target-libstdc++-v3
31550maybe-html-target-libstdc++-v3:
31551@if target-libstdc++-v3
31552maybe-html-target-libstdc++-v3: html-target-libstdc++-v3
31553
31554html-target-libstdc++-v3: \
05750653 31555 configure-target-libstdc++-v3
f41d6665 31556 @: $(MAKE); $(unstage)
f87a2b2e
MS
31557 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
31558 r=`${PWD_COMMAND}`; export r; \
31559 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
31560 $(RAW_CXX_TARGET_EXPORTS) \
31561 echo "Doing html in $(TARGET_SUBDIR)/libstdc++-v3" ; \
31562 for flag in $(EXTRA_TARGET_FLAGS); do \
31563 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31564 done; \
31565 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
31566 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31567 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31568 "RANLIB=$${RANLIB}" \
31569 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
31570 html) \
31571 || exit 1
31572
31573@endif target-libstdc++-v3
31574
295f4e42
NN
31575.PHONY: maybe-TAGS-target-libstdc++-v3 TAGS-target-libstdc++-v3
31576maybe-TAGS-target-libstdc++-v3:
60975492
PB
31577@if target-libstdc++-v3
31578maybe-TAGS-target-libstdc++-v3: TAGS-target-libstdc++-v3
295f4e42
NN
31579
31580TAGS-target-libstdc++-v3: \
05750653 31581 configure-target-libstdc++-v3
f41d6665 31582 @: $(MAKE); $(unstage)
295f4e42
NN
31583 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
31584 r=`${PWD_COMMAND}`; export r; \
8c90b13a 31585 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31586 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
31587 echo "Doing TAGS in $(TARGET_SUBDIR)/libstdc++-v3" ; \
31588 for flag in $(EXTRA_TARGET_FLAGS); do \
31589 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31590 done; \
31591 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
31592 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31593 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31594 "RANLIB=$${RANLIB}" \
31595 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 31596 TAGS) \
295f4e42 31597 || exit 1
4977bab6 31598
60975492 31599@endif target-libstdc++-v3
4977bab6 31600
295f4e42
NN
31601.PHONY: maybe-install-info-target-libstdc++-v3 install-info-target-libstdc++-v3
31602maybe-install-info-target-libstdc++-v3:
60975492
PB
31603@if target-libstdc++-v3
31604maybe-install-info-target-libstdc++-v3: install-info-target-libstdc++-v3
7e2dbcef 31605
295f4e42
NN
31606install-info-target-libstdc++-v3: \
31607 configure-target-libstdc++-v3 \
05750653 31608 info-target-libstdc++-v3
f41d6665 31609 @: $(MAKE); $(unstage)
295f4e42
NN
31610 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
31611 r=`${PWD_COMMAND}`; export r; \
8c90b13a 31612 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31613 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
31614 echo "Doing install-info in $(TARGET_SUBDIR)/libstdc++-v3" ; \
31615 for flag in $(EXTRA_TARGET_FLAGS); do \
31616 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31617 done; \
31618 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
31619 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31620 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31621 "RANLIB=$${RANLIB}" \
31622 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 31623 install-info) \
295f4e42 31624 || exit 1
4977bab6 31625
60975492 31626@endif target-libstdc++-v3
4977bab6 31627
65d6e994
CD
31628.PHONY: maybe-install-html-target-libstdc++-v3 install-html-target-libstdc++-v3
31629maybe-install-html-target-libstdc++-v3:
31630@if target-libstdc++-v3
31631maybe-install-html-target-libstdc++-v3: install-html-target-libstdc++-v3
31632
31633install-html-target-libstdc++-v3: \
31634 configure-target-libstdc++-v3 \
31635 html-target-libstdc++-v3
31636 @: $(MAKE); $(unstage)
31637 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
31638 r=`${PWD_COMMAND}`; export r; \
31639 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31640 $(RAW_CXX_TARGET_EXPORTS) \
31641 echo "Doing install-html in $(TARGET_SUBDIR)/libstdc++-v3" ; \
31642 for flag in $(EXTRA_TARGET_FLAGS); do \
31643 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31644 done; \
31645 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
31646 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31647 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31648 "RANLIB=$${RANLIB}" \
31649 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
31650 install-html) \
31651 || exit 1
31652
31653@endif target-libstdc++-v3
31654
295f4e42
NN
31655.PHONY: maybe-installcheck-target-libstdc++-v3 installcheck-target-libstdc++-v3
31656maybe-installcheck-target-libstdc++-v3:
60975492
PB
31657@if target-libstdc++-v3
31658maybe-installcheck-target-libstdc++-v3: installcheck-target-libstdc++-v3
295f4e42
NN
31659
31660installcheck-target-libstdc++-v3: \
05750653 31661 configure-target-libstdc++-v3
f41d6665 31662 @: $(MAKE); $(unstage)
295f4e42 31663 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
8c90b13a
L
31664 r=`${PWD_COMMAND}`; export r; \
31665 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31666 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
31667 echo "Doing installcheck in $(TARGET_SUBDIR)/libstdc++-v3" ; \
31668 for flag in $(EXTRA_TARGET_FLAGS); do \
31669 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31670 done; \
31671 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
31672 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31673 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31674 "RANLIB=$${RANLIB}" \
31675 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 31676 installcheck) \
4977bab6
ZW
31677 || exit 1
31678
60975492 31679@endif target-libstdc++-v3
4977bab6 31680
295f4e42
NN
31681.PHONY: maybe-mostlyclean-target-libstdc++-v3 mostlyclean-target-libstdc++-v3
31682maybe-mostlyclean-target-libstdc++-v3:
60975492
PB
31683@if target-libstdc++-v3
31684maybe-mostlyclean-target-libstdc++-v3: mostlyclean-target-libstdc++-v3
4977bab6 31685
05750653 31686mostlyclean-target-libstdc++-v3:
f41d6665 31687 @: $(MAKE); $(unstage)
295f4e42
NN
31688 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
31689 r=`${PWD_COMMAND}`; export r; \
8c90b13a 31690 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31691 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
31692 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libstdc++-v3" ; \
31693 for flag in $(EXTRA_TARGET_FLAGS); do \
31694 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31695 done; \
31696 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
31697 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31698 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31699 "RANLIB=$${RANLIB}" \
31700 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 31701 mostlyclean) \
295f4e42 31702 || exit 1
4977bab6 31703
60975492 31704@endif target-libstdc++-v3
4977bab6 31705
295f4e42
NN
31706.PHONY: maybe-clean-target-libstdc++-v3 clean-target-libstdc++-v3
31707maybe-clean-target-libstdc++-v3:
60975492
PB
31708@if target-libstdc++-v3
31709maybe-clean-target-libstdc++-v3: clean-target-libstdc++-v3
7e2dbcef 31710
05750653 31711clean-target-libstdc++-v3:
f41d6665 31712 @: $(MAKE); $(unstage)
295f4e42
NN
31713 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
31714 r=`${PWD_COMMAND}`; export r; \
8c90b13a 31715 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31716 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
31717 echo "Doing clean in $(TARGET_SUBDIR)/libstdc++-v3" ; \
31718 for flag in $(EXTRA_TARGET_FLAGS); do \
31719 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31720 done; \
31721 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
31722 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31723 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31724 "RANLIB=$${RANLIB}" \
31725 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 31726 clean) \
295f4e42 31727 || exit 1
4977bab6 31728
60975492 31729@endif target-libstdc++-v3
4977bab6 31730
295f4e42
NN
31731.PHONY: maybe-distclean-target-libstdc++-v3 distclean-target-libstdc++-v3
31732maybe-distclean-target-libstdc++-v3:
60975492
PB
31733@if target-libstdc++-v3
31734maybe-distclean-target-libstdc++-v3: distclean-target-libstdc++-v3
295f4e42 31735
05750653 31736distclean-target-libstdc++-v3:
f41d6665 31737 @: $(MAKE); $(unstage)
295f4e42 31738 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
8c90b13a
L
31739 r=`${PWD_COMMAND}`; export r; \
31740 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31741 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
31742 echo "Doing distclean in $(TARGET_SUBDIR)/libstdc++-v3" ; \
31743 for flag in $(EXTRA_TARGET_FLAGS); do \
31744 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31745 done; \
31746 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
31747 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31748 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31749 "RANLIB=$${RANLIB}" \
31750 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 31751 distclean) \
4977bab6
ZW
31752 || exit 1
31753
60975492 31754@endif target-libstdc++-v3
4977bab6 31755
295f4e42
NN
31756.PHONY: maybe-maintainer-clean-target-libstdc++-v3 maintainer-clean-target-libstdc++-v3
31757maybe-maintainer-clean-target-libstdc++-v3:
60975492
PB
31758@if target-libstdc++-v3
31759maybe-maintainer-clean-target-libstdc++-v3: maintainer-clean-target-libstdc++-v3
4977bab6 31760
05750653 31761maintainer-clean-target-libstdc++-v3:
f41d6665 31762 @: $(MAKE); $(unstage)
295f4e42
NN
31763 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
31764 r=`${PWD_COMMAND}`; export r; \
8c90b13a 31765 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31766 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
31767 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libstdc++-v3" ; \
31768 for flag in $(EXTRA_TARGET_FLAGS); do \
31769 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31770 done; \
31771 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
31772 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31773 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31774 "RANLIB=$${RANLIB}" \
31775 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 31776 maintainer-clean) \
295f4e42 31777 || exit 1
4977bab6 31778
60975492 31779@endif target-libstdc++-v3
4977bab6 31780
7e2dbcef 31781
4977bab6 31782
25b42232
PB
31783
31784
31785.PHONY: configure-target-libmudflap maybe-configure-target-libmudflap
31786maybe-configure-target-libmudflap:
3ff3adad
PB
31787@if gcc-bootstrap
31788configure-target-libmudflap: stage_current
31789@endif gcc-bootstrap
25b42232
PB
31790@if target-libmudflap
31791maybe-configure-target-libmudflap: configure-target-libmudflap
cc11cc9b 31792configure-target-libmudflap:
f41d6665
DJ
31793 @: $(MAKE); $(unstage)
31794 @r=`${PWD_COMMAND}`; export r; \
31795 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31796 echo "Checking multilib configuration for libmudflap..."; \
31797 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmudflap ; \
31798 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmudflap/multilib.tmp 2> /dev/null ; \
31799 if test -r $(TARGET_SUBDIR)/libmudflap/multilib.out; then \
31800 if cmp -s $(TARGET_SUBDIR)/libmudflap/multilib.tmp $(TARGET_SUBDIR)/libmudflap/multilib.out; then \
31801 rm -f $(TARGET_SUBDIR)/libmudflap/multilib.tmp; \
31802 else \
31803 rm -f $(TARGET_SUBDIR)/libmudflap/Makefile; \
31804 mv $(TARGET_SUBDIR)/libmudflap/multilib.tmp $(TARGET_SUBDIR)/libmudflap/multilib.out; \
31805 fi; \
31806 else \
31807 mv $(TARGET_SUBDIR)/libmudflap/multilib.tmp $(TARGET_SUBDIR)/libmudflap/multilib.out; \
cc11cc9b
PB
31808 fi; \
31809 test ! -f $(TARGET_SUBDIR)/libmudflap/Makefile || exit 0; \
6de9cd9a 31810 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmudflap ; \
4fc4dd12 31811 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
31812 echo Configuring in $(TARGET_SUBDIR)/libmudflap; \
31813 cd "$(TARGET_SUBDIR)/libmudflap" || exit 1; \
4977bab6 31814 case $(srcdir) in \
215c351a
PB
31815 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31816 *) topdir=`echo $(TARGET_SUBDIR)/libmudflap/ | \
31817 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 31818 esac; \
215c351a
PB
31819 srcdiroption="--srcdir=$${topdir}/libmudflap"; \
31820 libsrcdir="$$s/libmudflap"; \
295f4e42
NN
31821 rm -f no-such-file || : ; \
31822 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 31823 $(TARGET_CONFIGARGS) $${srcdiroption} \
4977bab6 31824 || exit 1
60975492 31825@endif target-libmudflap
4977bab6 31826
25b42232
PB
31827
31828
ce406537
PB
31829
31830
6de9cd9a
DN
31831.PHONY: all-target-libmudflap maybe-all-target-libmudflap
31832maybe-all-target-libmudflap:
3ff3adad
PB
31833@if gcc-bootstrap
31834all-target-libmudflap: stage_current
31835@endif gcc-bootstrap
60975492 31836@if target-libmudflap
7c27e184 31837TARGET-target-libmudflap=all
60975492 31838maybe-all-target-libmudflap: all-target-libmudflap
6de9cd9a 31839all-target-libmudflap: configure-target-libmudflap
f41d6665 31840 @: $(MAKE); $(unstage)
8c90b13a
L
31841 @r=`${PWD_COMMAND}`; export r; \
31842 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31843 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a 31844 (cd $(TARGET_SUBDIR)/libmudflap && \
25b42232 31845 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libmudflap))
60975492 31846@endif target-libmudflap
4977bab6 31847
25b42232
PB
31848
31849
ce406537
PB
31850
31851
6de9cd9a
DN
31852.PHONY: check-target-libmudflap maybe-check-target-libmudflap
31853maybe-check-target-libmudflap:
60975492
PB
31854@if target-libmudflap
31855maybe-check-target-libmudflap: check-target-libmudflap
4977bab6 31856
6de9cd9a 31857check-target-libmudflap:
f41d6665 31858 @: $(MAKE); $(unstage)
6de9cd9a
DN
31859 @r=`${PWD_COMMAND}`; export r; \
31860 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31861 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a 31862 (cd $(TARGET_SUBDIR)/libmudflap && \
a52a0a7f 31863 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
6de9cd9a 31864
60975492 31865@endif target-libmudflap
6de9cd9a
DN
31866
31867.PHONY: install-target-libmudflap maybe-install-target-libmudflap
31868maybe-install-target-libmudflap:
60975492
PB
31869@if target-libmudflap
31870maybe-install-target-libmudflap: install-target-libmudflap
6de9cd9a
DN
31871
31872install-target-libmudflap: installdirs
f41d6665 31873 @: $(MAKE); $(unstage)
6de9cd9a
DN
31874 @r=`${PWD_COMMAND}`; export r; \
31875 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31876 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a 31877 (cd $(TARGET_SUBDIR)/libmudflap && \
a52a0a7f 31878 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6de9cd9a 31879
60975492 31880@endif target-libmudflap
6de9cd9a
DN
31881
31882# Other targets (info, dvi, etc.)
31883
31884.PHONY: maybe-info-target-libmudflap info-target-libmudflap
31885maybe-info-target-libmudflap:
60975492
PB
31886@if target-libmudflap
31887maybe-info-target-libmudflap: info-target-libmudflap
6de9cd9a
DN
31888
31889info-target-libmudflap: \
05750653 31890 configure-target-libmudflap
f41d6665 31891 @: $(MAKE); $(unstage)
6de9cd9a
DN
31892 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
31893 r=`${PWD_COMMAND}`; export r; \
31894 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31895 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
31896 echo "Doing info in $(TARGET_SUBDIR)/libmudflap" ; \
31897 for flag in $(EXTRA_TARGET_FLAGS); do \
31898 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31899 done; \
31900 (cd $(TARGET_SUBDIR)/libmudflap && \
31901 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31902 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31903 "RANLIB=$${RANLIB}" \
31904 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 31905 info) \
6de9cd9a
DN
31906 || exit 1
31907
60975492 31908@endif target-libmudflap
6de9cd9a
DN
31909
31910.PHONY: maybe-dvi-target-libmudflap dvi-target-libmudflap
31911maybe-dvi-target-libmudflap:
60975492
PB
31912@if target-libmudflap
31913maybe-dvi-target-libmudflap: dvi-target-libmudflap
6de9cd9a
DN
31914
31915dvi-target-libmudflap: \
05750653 31916 configure-target-libmudflap
f41d6665 31917 @: $(MAKE); $(unstage)
6de9cd9a
DN
31918 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
31919 r=`${PWD_COMMAND}`; export r; \
31920 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31921 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
31922 echo "Doing dvi in $(TARGET_SUBDIR)/libmudflap" ; \
31923 for flag in $(EXTRA_TARGET_FLAGS); do \
31924 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31925 done; \
31926 (cd $(TARGET_SUBDIR)/libmudflap && \
31927 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31928 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31929 "RANLIB=$${RANLIB}" \
31930 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 31931 dvi) \
6de9cd9a
DN
31932 || exit 1
31933
60975492 31934@endif target-libmudflap
6de9cd9a 31935
f87a2b2e
MS
31936.PHONY: maybe-html-target-libmudflap html-target-libmudflap
31937maybe-html-target-libmudflap:
31938@if target-libmudflap
31939maybe-html-target-libmudflap: html-target-libmudflap
31940
31941html-target-libmudflap: \
05750653 31942 configure-target-libmudflap
f41d6665 31943 @: $(MAKE); $(unstage)
f87a2b2e
MS
31944 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
31945 r=`${PWD_COMMAND}`; export r; \
31946 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
31947 $(NORMAL_TARGET_EXPORTS) \
31948 echo "Doing html in $(TARGET_SUBDIR)/libmudflap" ; \
31949 for flag in $(EXTRA_TARGET_FLAGS); do \
31950 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31951 done; \
31952 (cd $(TARGET_SUBDIR)/libmudflap && \
31953 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31954 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31955 "RANLIB=$${RANLIB}" \
31956 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
31957 html) \
31958 || exit 1
31959
31960@endif target-libmudflap
31961
6de9cd9a
DN
31962.PHONY: maybe-TAGS-target-libmudflap TAGS-target-libmudflap
31963maybe-TAGS-target-libmudflap:
60975492
PB
31964@if target-libmudflap
31965maybe-TAGS-target-libmudflap: TAGS-target-libmudflap
6de9cd9a
DN
31966
31967TAGS-target-libmudflap: \
05750653 31968 configure-target-libmudflap
f41d6665 31969 @: $(MAKE); $(unstage)
6de9cd9a
DN
31970 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
31971 r=`${PWD_COMMAND}`; export r; \
31972 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31973 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
31974 echo "Doing TAGS in $(TARGET_SUBDIR)/libmudflap" ; \
31975 for flag in $(EXTRA_TARGET_FLAGS); do \
31976 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31977 done; \
31978 (cd $(TARGET_SUBDIR)/libmudflap && \
31979 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31980 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31981 "RANLIB=$${RANLIB}" \
31982 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 31983 TAGS) \
6de9cd9a
DN
31984 || exit 1
31985
60975492 31986@endif target-libmudflap
6de9cd9a
DN
31987
31988.PHONY: maybe-install-info-target-libmudflap install-info-target-libmudflap
31989maybe-install-info-target-libmudflap:
60975492
PB
31990@if target-libmudflap
31991maybe-install-info-target-libmudflap: install-info-target-libmudflap
6de9cd9a
DN
31992
31993install-info-target-libmudflap: \
31994 configure-target-libmudflap \
05750653 31995 info-target-libmudflap
f41d6665 31996 @: $(MAKE); $(unstage)
6de9cd9a
DN
31997 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
31998 r=`${PWD_COMMAND}`; export r; \
31999 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 32000 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
32001 echo "Doing install-info in $(TARGET_SUBDIR)/libmudflap" ; \
32002 for flag in $(EXTRA_TARGET_FLAGS); do \
32003 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32004 done; \
32005 (cd $(TARGET_SUBDIR)/libmudflap && \
32006 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32007 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32008 "RANLIB=$${RANLIB}" \
32009 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 32010 install-info) \
6de9cd9a
DN
32011 || exit 1
32012
60975492 32013@endif target-libmudflap
6de9cd9a 32014
65d6e994
CD
32015.PHONY: maybe-install-html-target-libmudflap install-html-target-libmudflap
32016maybe-install-html-target-libmudflap:
32017@if target-libmudflap
32018maybe-install-html-target-libmudflap: install-html-target-libmudflap
32019
32020install-html-target-libmudflap: \
32021 configure-target-libmudflap \
32022 html-target-libmudflap
32023 @: $(MAKE); $(unstage)
32024 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
32025 r=`${PWD_COMMAND}`; export r; \
32026 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32027 $(NORMAL_TARGET_EXPORTS) \
32028 echo "Doing install-html in $(TARGET_SUBDIR)/libmudflap" ; \
32029 for flag in $(EXTRA_TARGET_FLAGS); do \
32030 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32031 done; \
32032 (cd $(TARGET_SUBDIR)/libmudflap && \
32033 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32034 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32035 "RANLIB=$${RANLIB}" \
32036 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
32037 install-html) \
32038 || exit 1
32039
32040@endif target-libmudflap
32041
6de9cd9a
DN
32042.PHONY: maybe-installcheck-target-libmudflap installcheck-target-libmudflap
32043maybe-installcheck-target-libmudflap:
60975492
PB
32044@if target-libmudflap
32045maybe-installcheck-target-libmudflap: installcheck-target-libmudflap
6de9cd9a
DN
32046
32047installcheck-target-libmudflap: \
05750653 32048 configure-target-libmudflap
f41d6665 32049 @: $(MAKE); $(unstage)
6de9cd9a
DN
32050 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
32051 r=`${PWD_COMMAND}`; export r; \
32052 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 32053 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
32054 echo "Doing installcheck in $(TARGET_SUBDIR)/libmudflap" ; \
32055 for flag in $(EXTRA_TARGET_FLAGS); do \
32056 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32057 done; \
32058 (cd $(TARGET_SUBDIR)/libmudflap && \
32059 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32060 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32061 "RANLIB=$${RANLIB}" \
32062 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 32063 installcheck) \
6de9cd9a
DN
32064 || exit 1
32065
60975492 32066@endif target-libmudflap
6de9cd9a
DN
32067
32068.PHONY: maybe-mostlyclean-target-libmudflap mostlyclean-target-libmudflap
32069maybe-mostlyclean-target-libmudflap:
60975492
PB
32070@if target-libmudflap
32071maybe-mostlyclean-target-libmudflap: mostlyclean-target-libmudflap
6de9cd9a 32072
05750653 32073mostlyclean-target-libmudflap:
f41d6665 32074 @: $(MAKE); $(unstage)
6de9cd9a
DN
32075 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
32076 r=`${PWD_COMMAND}`; export r; \
32077 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 32078 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
32079 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libmudflap" ; \
32080 for flag in $(EXTRA_TARGET_FLAGS); do \
32081 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32082 done; \
32083 (cd $(TARGET_SUBDIR)/libmudflap && \
32084 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32085 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32086 "RANLIB=$${RANLIB}" \
32087 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 32088 mostlyclean) \
6de9cd9a
DN
32089 || exit 1
32090
60975492 32091@endif target-libmudflap
6de9cd9a
DN
32092
32093.PHONY: maybe-clean-target-libmudflap clean-target-libmudflap
32094maybe-clean-target-libmudflap:
60975492
PB
32095@if target-libmudflap
32096maybe-clean-target-libmudflap: clean-target-libmudflap
6de9cd9a 32097
05750653 32098clean-target-libmudflap:
f41d6665 32099 @: $(MAKE); $(unstage)
6de9cd9a
DN
32100 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
32101 r=`${PWD_COMMAND}`; export r; \
32102 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 32103 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
32104 echo "Doing clean in $(TARGET_SUBDIR)/libmudflap" ; \
32105 for flag in $(EXTRA_TARGET_FLAGS); do \
32106 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32107 done; \
32108 (cd $(TARGET_SUBDIR)/libmudflap && \
32109 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32110 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32111 "RANLIB=$${RANLIB}" \
32112 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 32113 clean) \
6de9cd9a
DN
32114 || exit 1
32115
60975492 32116@endif target-libmudflap
6de9cd9a
DN
32117
32118.PHONY: maybe-distclean-target-libmudflap distclean-target-libmudflap
32119maybe-distclean-target-libmudflap:
60975492
PB
32120@if target-libmudflap
32121maybe-distclean-target-libmudflap: distclean-target-libmudflap
6de9cd9a 32122
05750653 32123distclean-target-libmudflap:
f41d6665 32124 @: $(MAKE); $(unstage)
6de9cd9a
DN
32125 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
32126 r=`${PWD_COMMAND}`; export r; \
32127 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 32128 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
32129 echo "Doing distclean in $(TARGET_SUBDIR)/libmudflap" ; \
32130 for flag in $(EXTRA_TARGET_FLAGS); do \
32131 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32132 done; \
32133 (cd $(TARGET_SUBDIR)/libmudflap && \
32134 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32135 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32136 "RANLIB=$${RANLIB}" \
32137 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 32138 distclean) \
6de9cd9a
DN
32139 || exit 1
32140
60975492 32141@endif target-libmudflap
6de9cd9a
DN
32142
32143.PHONY: maybe-maintainer-clean-target-libmudflap maintainer-clean-target-libmudflap
32144maybe-maintainer-clean-target-libmudflap:
60975492
PB
32145@if target-libmudflap
32146maybe-maintainer-clean-target-libmudflap: maintainer-clean-target-libmudflap
6de9cd9a 32147
05750653 32148maintainer-clean-target-libmudflap:
f41d6665 32149 @: $(MAKE); $(unstage)
6de9cd9a
DN
32150 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
32151 r=`${PWD_COMMAND}`; export r; \
32152 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 32153 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
32154 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libmudflap" ; \
32155 for flag in $(EXTRA_TARGET_FLAGS); do \
32156 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32157 done; \
32158 (cd $(TARGET_SUBDIR)/libmudflap && \
32159 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32160 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32161 "RANLIB=$${RANLIB}" \
32162 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 32163 maintainer-clean) \
6de9cd9a
DN
32164 || exit 1
32165
60975492 32166@endif target-libmudflap
6de9cd9a
DN
32167
32168
6de9cd9a 32169
77008252
JJ
32170
32171
32172.PHONY: configure-target-libssp maybe-configure-target-libssp
32173maybe-configure-target-libssp:
3ff3adad
PB
32174@if gcc-bootstrap
32175configure-target-libssp: stage_current
32176@endif gcc-bootstrap
77008252
JJ
32177@if target-libssp
32178maybe-configure-target-libssp: configure-target-libssp
cc11cc9b 32179configure-target-libssp:
f41d6665
DJ
32180 @: $(MAKE); $(unstage)
32181 @r=`${PWD_COMMAND}`; export r; \
32182 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32183 echo "Checking multilib configuration for libssp..."; \
32184 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libssp ; \
32185 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libssp/multilib.tmp 2> /dev/null ; \
32186 if test -r $(TARGET_SUBDIR)/libssp/multilib.out; then \
32187 if cmp -s $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; then \
32188 rm -f $(TARGET_SUBDIR)/libssp/multilib.tmp; \
32189 else \
32190 rm -f $(TARGET_SUBDIR)/libssp/Makefile; \
32191 mv $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; \
32192 fi; \
32193 else \
32194 mv $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; \
cc11cc9b
PB
32195 fi; \
32196 test ! -f $(TARGET_SUBDIR)/libssp/Makefile || exit 0; \
77008252 32197 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libssp ; \
77008252
JJ
32198 $(NORMAL_TARGET_EXPORTS) \
32199 echo Configuring in $(TARGET_SUBDIR)/libssp; \
32200 cd "$(TARGET_SUBDIR)/libssp" || exit 1; \
32201 case $(srcdir) in \
32202 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32203 *) topdir=`echo $(TARGET_SUBDIR)/libssp/ | \
32204 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32205 esac; \
32206 srcdiroption="--srcdir=$${topdir}/libssp"; \
32207 libsrcdir="$$s/libssp"; \
32208 rm -f no-such-file || : ; \
32209 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
32210 $(TARGET_CONFIGARGS) $${srcdiroption} \
32211 || exit 1
32212@endif target-libssp
32213
32214
32215
32216
32217
32218.PHONY: all-target-libssp maybe-all-target-libssp
32219maybe-all-target-libssp:
3ff3adad
PB
32220@if gcc-bootstrap
32221all-target-libssp: stage_current
32222@endif gcc-bootstrap
77008252
JJ
32223@if target-libssp
32224TARGET-target-libssp=all
32225maybe-all-target-libssp: all-target-libssp
32226all-target-libssp: configure-target-libssp
f41d6665 32227 @: $(MAKE); $(unstage)
77008252
JJ
32228 @r=`${PWD_COMMAND}`; export r; \
32229 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32230 $(NORMAL_TARGET_EXPORTS) \
32231 (cd $(TARGET_SUBDIR)/libssp && \
32232 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libssp))
32233@endif target-libssp
32234
32235
32236
32237
32238
32239.PHONY: check-target-libssp maybe-check-target-libssp
32240maybe-check-target-libssp:
32241@if target-libssp
32242maybe-check-target-libssp: check-target-libssp
32243
32244check-target-libssp:
f41d6665 32245 @: $(MAKE); $(unstage)
77008252
JJ
32246 @r=`${PWD_COMMAND}`; export r; \
32247 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32248 $(NORMAL_TARGET_EXPORTS) \
32249 (cd $(TARGET_SUBDIR)/libssp && \
32250 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
32251
32252@endif target-libssp
32253
32254.PHONY: install-target-libssp maybe-install-target-libssp
32255maybe-install-target-libssp:
32256@if target-libssp
32257maybe-install-target-libssp: install-target-libssp
32258
32259install-target-libssp: installdirs
f41d6665 32260 @: $(MAKE); $(unstage)
77008252
JJ
32261 @r=`${PWD_COMMAND}`; export r; \
32262 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32263 $(NORMAL_TARGET_EXPORTS) \
32264 (cd $(TARGET_SUBDIR)/libssp && \
32265 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
32266
32267@endif target-libssp
32268
32269# Other targets (info, dvi, etc.)
32270
32271.PHONY: maybe-info-target-libssp info-target-libssp
32272maybe-info-target-libssp:
32273@if target-libssp
32274maybe-info-target-libssp: info-target-libssp
32275
32276info-target-libssp: \
32277 configure-target-libssp
f41d6665 32278 @: $(MAKE); $(unstage)
77008252
JJ
32279 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
32280 r=`${PWD_COMMAND}`; export r; \
32281 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32282 $(NORMAL_TARGET_EXPORTS) \
32283 echo "Doing info in $(TARGET_SUBDIR)/libssp" ; \
32284 for flag in $(EXTRA_TARGET_FLAGS); do \
32285 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32286 done; \
32287 (cd $(TARGET_SUBDIR)/libssp && \
32288 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32289 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32290 "RANLIB=$${RANLIB}" \
32291 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
32292 info) \
32293 || exit 1
32294
32295@endif target-libssp
32296
32297.PHONY: maybe-dvi-target-libssp dvi-target-libssp
32298maybe-dvi-target-libssp:
32299@if target-libssp
32300maybe-dvi-target-libssp: dvi-target-libssp
32301
32302dvi-target-libssp: \
32303 configure-target-libssp
f41d6665 32304 @: $(MAKE); $(unstage)
77008252
JJ
32305 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
32306 r=`${PWD_COMMAND}`; export r; \
32307 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32308 $(NORMAL_TARGET_EXPORTS) \
32309 echo "Doing dvi in $(TARGET_SUBDIR)/libssp" ; \
32310 for flag in $(EXTRA_TARGET_FLAGS); do \
32311 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32312 done; \
32313 (cd $(TARGET_SUBDIR)/libssp && \
32314 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32315 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32316 "RANLIB=$${RANLIB}" \
32317 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
32318 dvi) \
32319 || exit 1
32320
32321@endif target-libssp
32322
32323.PHONY: maybe-html-target-libssp html-target-libssp
32324maybe-html-target-libssp:
32325@if target-libssp
32326maybe-html-target-libssp: html-target-libssp
32327
32328html-target-libssp: \
32329 configure-target-libssp
f41d6665 32330 @: $(MAKE); $(unstage)
77008252
JJ
32331 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
32332 r=`${PWD_COMMAND}`; export r; \
32333 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32334 $(NORMAL_TARGET_EXPORTS) \
32335 echo "Doing html in $(TARGET_SUBDIR)/libssp" ; \
32336 for flag in $(EXTRA_TARGET_FLAGS); do \
32337 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32338 done; \
32339 (cd $(TARGET_SUBDIR)/libssp && \
32340 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32341 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32342 "RANLIB=$${RANLIB}" \
32343 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
32344 html) \
32345 || exit 1
32346
32347@endif target-libssp
32348
32349.PHONY: maybe-TAGS-target-libssp TAGS-target-libssp
32350maybe-TAGS-target-libssp:
32351@if target-libssp
32352maybe-TAGS-target-libssp: TAGS-target-libssp
32353
32354TAGS-target-libssp: \
32355 configure-target-libssp
f41d6665 32356 @: $(MAKE); $(unstage)
77008252
JJ
32357 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
32358 r=`${PWD_COMMAND}`; export r; \
32359 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32360 $(NORMAL_TARGET_EXPORTS) \
32361 echo "Doing TAGS in $(TARGET_SUBDIR)/libssp" ; \
32362 for flag in $(EXTRA_TARGET_FLAGS); do \
32363 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32364 done; \
32365 (cd $(TARGET_SUBDIR)/libssp && \
32366 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32367 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32368 "RANLIB=$${RANLIB}" \
32369 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
32370 TAGS) \
32371 || exit 1
32372
32373@endif target-libssp
32374
32375.PHONY: maybe-install-info-target-libssp install-info-target-libssp
32376maybe-install-info-target-libssp:
32377@if target-libssp
32378maybe-install-info-target-libssp: install-info-target-libssp
32379
32380install-info-target-libssp: \
32381 configure-target-libssp \
32382 info-target-libssp
f41d6665 32383 @: $(MAKE); $(unstage)
77008252
JJ
32384 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
32385 r=`${PWD_COMMAND}`; export r; \
32386 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32387 $(NORMAL_TARGET_EXPORTS) \
32388 echo "Doing install-info in $(TARGET_SUBDIR)/libssp" ; \
32389 for flag in $(EXTRA_TARGET_FLAGS); do \
32390 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32391 done; \
32392 (cd $(TARGET_SUBDIR)/libssp && \
32393 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32394 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32395 "RANLIB=$${RANLIB}" \
32396 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
32397 install-info) \
32398 || exit 1
32399
32400@endif target-libssp
32401
65d6e994
CD
32402.PHONY: maybe-install-html-target-libssp install-html-target-libssp
32403maybe-install-html-target-libssp:
32404@if target-libssp
32405maybe-install-html-target-libssp: install-html-target-libssp
32406
32407install-html-target-libssp: \
32408 configure-target-libssp \
32409 html-target-libssp
32410 @: $(MAKE); $(unstage)
32411 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
32412 r=`${PWD_COMMAND}`; export r; \
32413 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32414 $(NORMAL_TARGET_EXPORTS) \
32415 echo "Doing install-html in $(TARGET_SUBDIR)/libssp" ; \
32416 for flag in $(EXTRA_TARGET_FLAGS); do \
32417 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32418 done; \
32419 (cd $(TARGET_SUBDIR)/libssp && \
32420 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32421 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32422 "RANLIB=$${RANLIB}" \
32423 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
32424 install-html) \
32425 || exit 1
32426
32427@endif target-libssp
32428
77008252
JJ
32429.PHONY: maybe-installcheck-target-libssp installcheck-target-libssp
32430maybe-installcheck-target-libssp:
32431@if target-libssp
32432maybe-installcheck-target-libssp: installcheck-target-libssp
32433
32434installcheck-target-libssp: \
32435 configure-target-libssp
f41d6665 32436 @: $(MAKE); $(unstage)
77008252
JJ
32437 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
32438 r=`${PWD_COMMAND}`; export r; \
32439 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32440 $(NORMAL_TARGET_EXPORTS) \
32441 echo "Doing installcheck in $(TARGET_SUBDIR)/libssp" ; \
32442 for flag in $(EXTRA_TARGET_FLAGS); do \
32443 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32444 done; \
32445 (cd $(TARGET_SUBDIR)/libssp && \
32446 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32447 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32448 "RANLIB=$${RANLIB}" \
32449 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
32450 installcheck) \
32451 || exit 1
32452
32453@endif target-libssp
32454
32455.PHONY: maybe-mostlyclean-target-libssp mostlyclean-target-libssp
32456maybe-mostlyclean-target-libssp:
32457@if target-libssp
32458maybe-mostlyclean-target-libssp: mostlyclean-target-libssp
32459
32460mostlyclean-target-libssp:
f41d6665 32461 @: $(MAKE); $(unstage)
77008252
JJ
32462 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
32463 r=`${PWD_COMMAND}`; export r; \
32464 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32465 $(NORMAL_TARGET_EXPORTS) \
32466 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libssp" ; \
32467 for flag in $(EXTRA_TARGET_FLAGS); do \
32468 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32469 done; \
32470 (cd $(TARGET_SUBDIR)/libssp && \
32471 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32472 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32473 "RANLIB=$${RANLIB}" \
32474 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
32475 mostlyclean) \
32476 || exit 1
32477
32478@endif target-libssp
32479
32480.PHONY: maybe-clean-target-libssp clean-target-libssp
32481maybe-clean-target-libssp:
32482@if target-libssp
32483maybe-clean-target-libssp: clean-target-libssp
32484
32485clean-target-libssp:
f41d6665 32486 @: $(MAKE); $(unstage)
77008252
JJ
32487 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
32488 r=`${PWD_COMMAND}`; export r; \
32489 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32490 $(NORMAL_TARGET_EXPORTS) \
32491 echo "Doing clean in $(TARGET_SUBDIR)/libssp" ; \
32492 for flag in $(EXTRA_TARGET_FLAGS); do \
32493 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32494 done; \
32495 (cd $(TARGET_SUBDIR)/libssp && \
32496 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32497 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32498 "RANLIB=$${RANLIB}" \
32499 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
32500 clean) \
32501 || exit 1
32502
32503@endif target-libssp
32504
32505.PHONY: maybe-distclean-target-libssp distclean-target-libssp
32506maybe-distclean-target-libssp:
32507@if target-libssp
32508maybe-distclean-target-libssp: distclean-target-libssp
32509
32510distclean-target-libssp:
f41d6665 32511 @: $(MAKE); $(unstage)
77008252
JJ
32512 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
32513 r=`${PWD_COMMAND}`; export r; \
32514 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32515 $(NORMAL_TARGET_EXPORTS) \
32516 echo "Doing distclean in $(TARGET_SUBDIR)/libssp" ; \
32517 for flag in $(EXTRA_TARGET_FLAGS); do \
32518 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32519 done; \
32520 (cd $(TARGET_SUBDIR)/libssp && \
32521 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32522 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32523 "RANLIB=$${RANLIB}" \
32524 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
32525 distclean) \
32526 || exit 1
32527
32528@endif target-libssp
32529
32530.PHONY: maybe-maintainer-clean-target-libssp maintainer-clean-target-libssp
32531maybe-maintainer-clean-target-libssp:
32532@if target-libssp
32533maybe-maintainer-clean-target-libssp: maintainer-clean-target-libssp
32534
32535maintainer-clean-target-libssp:
f41d6665 32536 @: $(MAKE); $(unstage)
77008252
JJ
32537 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
32538 r=`${PWD_COMMAND}`; export r; \
32539 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32540 $(NORMAL_TARGET_EXPORTS) \
32541 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libssp" ; \
32542 for flag in $(EXTRA_TARGET_FLAGS); do \
32543 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32544 done; \
32545 (cd $(TARGET_SUBDIR)/libssp && \
32546 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32547 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32548 "RANLIB=$${RANLIB}" \
32549 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
32550 maintainer-clean) \
32551 || exit 1
32552
32553@endif target-libssp
32554
32555
32556
25b42232 32557
6de9cd9a 32558
25b42232
PB
32559.PHONY: configure-target-newlib maybe-configure-target-newlib
32560maybe-configure-target-newlib:
3ff3adad
PB
32561@if gcc-bootstrap
32562configure-target-newlib: stage_current
32563@endif gcc-bootstrap
25b42232
PB
32564@if target-newlib
32565maybe-configure-target-newlib: configure-target-newlib
cc11cc9b 32566configure-target-newlib:
f41d6665
DJ
32567 @: $(MAKE); $(unstage)
32568 @r=`${PWD_COMMAND}`; export r; \
32569 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32570 echo "Checking multilib configuration for newlib..."; \
32571 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/newlib ; \
32572 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/newlib/multilib.tmp 2> /dev/null ; \
32573 if test -r $(TARGET_SUBDIR)/newlib/multilib.out; then \
32574 if cmp -s $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; then \
32575 rm -f $(TARGET_SUBDIR)/newlib/multilib.tmp; \
32576 else \
32577 rm -f $(TARGET_SUBDIR)/newlib/Makefile; \
32578 mv $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; \
32579 fi; \
32580 else \
32581 mv $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; \
cc11cc9b
PB
32582 fi; \
32583 test ! -f $(TARGET_SUBDIR)/newlib/Makefile || exit 0; \
6de9cd9a 32584 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/newlib ; \
4fc4dd12 32585 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
32586 echo Configuring in $(TARGET_SUBDIR)/newlib; \
32587 cd "$(TARGET_SUBDIR)/newlib" || exit 1; \
32588 case $(srcdir) in \
215c351a
PB
32589 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32590 *) topdir=`echo $(TARGET_SUBDIR)/newlib/ | \
32591 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6de9cd9a 32592 esac; \
215c351a
PB
32593 srcdiroption="--srcdir=$${topdir}/newlib"; \
32594 libsrcdir="$$s/newlib"; \
6de9cd9a
DN
32595 rm -f no-such-file || : ; \
32596 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 32597 $(TARGET_CONFIGARGS) $${srcdiroption} \
6de9cd9a 32598 || exit 1
60975492 32599@endif target-newlib
6de9cd9a 32600
25b42232
PB
32601
32602
ce406537
PB
32603
32604
6de9cd9a
DN
32605.PHONY: all-target-newlib maybe-all-target-newlib
32606maybe-all-target-newlib:
3ff3adad
PB
32607@if gcc-bootstrap
32608all-target-newlib: stage_current
32609@endif gcc-bootstrap
60975492 32610@if target-newlib
7c27e184 32611TARGET-target-newlib=all
60975492 32612maybe-all-target-newlib: all-target-newlib
6de9cd9a 32613all-target-newlib: configure-target-newlib
f41d6665 32614 @: $(MAKE); $(unstage)
6de9cd9a
DN
32615 @r=`${PWD_COMMAND}`; export r; \
32616 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 32617 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a 32618 (cd $(TARGET_SUBDIR)/newlib && \
25b42232 32619 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-newlib))
60975492 32620@endif target-newlib
6de9cd9a 32621
25b42232
PB
32622
32623
ce406537
PB
32624
32625
6de9cd9a
DN
32626.PHONY: check-target-newlib maybe-check-target-newlib
32627maybe-check-target-newlib:
60975492
PB
32628@if target-newlib
32629maybe-check-target-newlib: check-target-newlib
6de9cd9a
DN
32630
32631check-target-newlib:
f41d6665 32632 @: $(MAKE); $(unstage)
295f4e42
NN
32633 @r=`${PWD_COMMAND}`; export r; \
32634 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 32635 $(NORMAL_TARGET_EXPORTS) \
295f4e42 32636 (cd $(TARGET_SUBDIR)/newlib && \
a52a0a7f 32637 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4977bab6 32638
60975492 32639@endif target-newlib
4977bab6 32640
295f4e42
NN
32641.PHONY: install-target-newlib maybe-install-target-newlib
32642maybe-install-target-newlib:
60975492
PB
32643@if target-newlib
32644maybe-install-target-newlib: install-target-newlib
7e2dbcef 32645
295f4e42 32646install-target-newlib: installdirs
f41d6665 32647 @: $(MAKE); $(unstage)
295f4e42
NN
32648 @r=`${PWD_COMMAND}`; export r; \
32649 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 32650 $(NORMAL_TARGET_EXPORTS) \
295f4e42 32651 (cd $(TARGET_SUBDIR)/newlib && \
a52a0a7f 32652 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4977bab6 32653
60975492 32654@endif target-newlib
4977bab6 32655
295f4e42
NN
32656# Other targets (info, dvi, etc.)
32657
32658.PHONY: maybe-info-target-newlib info-target-newlib
32659maybe-info-target-newlib:
60975492
PB
32660@if target-newlib
32661maybe-info-target-newlib: info-target-newlib
295f4e42
NN
32662
32663info-target-newlib: \
05750653 32664 configure-target-newlib
f41d6665 32665 @: $(MAKE); $(unstage)
295f4e42 32666 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
8c90b13a
L
32667 r=`${PWD_COMMAND}`; export r; \
32668 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 32669 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
32670 echo "Doing info in $(TARGET_SUBDIR)/newlib" ; \
32671 for flag in $(EXTRA_TARGET_FLAGS); do \
32672 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32673 done; \
32674 (cd $(TARGET_SUBDIR)/newlib && \
32675 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32676 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32677 "RANLIB=$${RANLIB}" \
32678 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 32679 info) \
4977bab6
ZW
32680 || exit 1
32681
60975492 32682@endif target-newlib
4977bab6 32683
295f4e42
NN
32684.PHONY: maybe-dvi-target-newlib dvi-target-newlib
32685maybe-dvi-target-newlib:
60975492
PB
32686@if target-newlib
32687maybe-dvi-target-newlib: dvi-target-newlib
4977bab6 32688
295f4e42 32689dvi-target-newlib: \
05750653 32690 configure-target-newlib
f41d6665 32691 @: $(MAKE); $(unstage)
295f4e42
NN
32692 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
32693 r=`${PWD_COMMAND}`; export r; \
8c90b13a 32694 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 32695 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
32696 echo "Doing dvi in $(TARGET_SUBDIR)/newlib" ; \
32697 for flag in $(EXTRA_TARGET_FLAGS); do \
32698 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32699 done; \
32700 (cd $(TARGET_SUBDIR)/newlib && \
32701 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32702 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32703 "RANLIB=$${RANLIB}" \
32704 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 32705 dvi) \
295f4e42 32706 || exit 1
4977bab6 32707
60975492 32708@endif target-newlib
4977bab6 32709
f87a2b2e
MS
32710.PHONY: maybe-html-target-newlib html-target-newlib
32711maybe-html-target-newlib:
32712@if target-newlib
32713maybe-html-target-newlib: html-target-newlib
32714
32715html-target-newlib: \
05750653 32716 configure-target-newlib
f41d6665 32717 @: $(MAKE); $(unstage)
f87a2b2e
MS
32718 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
32719 r=`${PWD_COMMAND}`; export r; \
32720 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
32721 $(NORMAL_TARGET_EXPORTS) \
32722 echo "Doing html in $(TARGET_SUBDIR)/newlib" ; \
32723 for flag in $(EXTRA_TARGET_FLAGS); do \
32724 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32725 done; \
32726 (cd $(TARGET_SUBDIR)/newlib && \
32727 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32728 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32729 "RANLIB=$${RANLIB}" \
32730 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
32731 html) \
32732 || exit 1
32733
32734@endif target-newlib
32735
295f4e42
NN
32736.PHONY: maybe-TAGS-target-newlib TAGS-target-newlib
32737maybe-TAGS-target-newlib:
60975492
PB
32738@if target-newlib
32739maybe-TAGS-target-newlib: TAGS-target-newlib
7e2dbcef 32740
295f4e42 32741TAGS-target-newlib: \
05750653 32742 configure-target-newlib
f41d6665 32743 @: $(MAKE); $(unstage)
295f4e42
NN
32744 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
32745 r=`${PWD_COMMAND}`; export r; \
8c90b13a 32746 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 32747 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
32748 echo "Doing TAGS in $(TARGET_SUBDIR)/newlib" ; \
32749 for flag in $(EXTRA_TARGET_FLAGS); do \
32750 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32751 done; \
32752 (cd $(TARGET_SUBDIR)/newlib && \
32753 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32754 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32755 "RANLIB=$${RANLIB}" \
32756 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 32757 TAGS) \
295f4e42 32758 || exit 1
4977bab6 32759
60975492 32760@endif target-newlib
4977bab6 32761
295f4e42
NN
32762.PHONY: maybe-install-info-target-newlib install-info-target-newlib
32763maybe-install-info-target-newlib:
60975492
PB
32764@if target-newlib
32765maybe-install-info-target-newlib: install-info-target-newlib
295f4e42
NN
32766
32767install-info-target-newlib: \
32768 configure-target-newlib \
05750653 32769 info-target-newlib
f41d6665 32770 @: $(MAKE); $(unstage)
295f4e42 32771 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
8c90b13a
L
32772 r=`${PWD_COMMAND}`; export r; \
32773 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 32774 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
32775 echo "Doing install-info in $(TARGET_SUBDIR)/newlib" ; \
32776 for flag in $(EXTRA_TARGET_FLAGS); do \
32777 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32778 done; \
32779 (cd $(TARGET_SUBDIR)/newlib && \
32780 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32781 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32782 "RANLIB=$${RANLIB}" \
32783 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 32784 install-info) \
4977bab6
ZW
32785 || exit 1
32786
60975492 32787@endif target-newlib
295f4e42 32788
65d6e994
CD
32789.PHONY: maybe-install-html-target-newlib install-html-target-newlib
32790maybe-install-html-target-newlib:
32791@if target-newlib
32792maybe-install-html-target-newlib: install-html-target-newlib
32793
32794install-html-target-newlib: \
32795 configure-target-newlib \
32796 html-target-newlib
32797 @: $(MAKE); $(unstage)
32798 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
32799 r=`${PWD_COMMAND}`; export r; \
32800 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32801 $(NORMAL_TARGET_EXPORTS) \
32802 echo "Doing install-html in $(TARGET_SUBDIR)/newlib" ; \
32803 for flag in $(EXTRA_TARGET_FLAGS); do \
32804 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32805 done; \
32806 (cd $(TARGET_SUBDIR)/newlib && \
32807 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32808 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32809 "RANLIB=$${RANLIB}" \
32810 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
32811 install-html) \
32812 || exit 1
32813
32814@endif target-newlib
32815
295f4e42
NN
32816.PHONY: maybe-installcheck-target-newlib installcheck-target-newlib
32817maybe-installcheck-target-newlib:
60975492
PB
32818@if target-newlib
32819maybe-installcheck-target-newlib: installcheck-target-newlib
295f4e42
NN
32820
32821installcheck-target-newlib: \
05750653 32822 configure-target-newlib
f41d6665 32823 @: $(MAKE); $(unstage)
295f4e42
NN
32824 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
32825 r=`${PWD_COMMAND}`; export r; \
8c90b13a 32826 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 32827 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
32828 echo "Doing installcheck in $(TARGET_SUBDIR)/newlib" ; \
32829 for flag in $(EXTRA_TARGET_FLAGS); do \
32830 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32831 done; \
32832 (cd $(TARGET_SUBDIR)/newlib && \
32833 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32834 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32835 "RANLIB=$${RANLIB}" \
32836 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 32837 installcheck) \
295f4e42 32838 || exit 1
4977bab6 32839
60975492 32840@endif target-newlib
4977bab6 32841
295f4e42
NN
32842.PHONY: maybe-mostlyclean-target-newlib mostlyclean-target-newlib
32843maybe-mostlyclean-target-newlib:
60975492
PB
32844@if target-newlib
32845maybe-mostlyclean-target-newlib: mostlyclean-target-newlib
295f4e42 32846
05750653 32847mostlyclean-target-newlib:
f41d6665 32848 @: $(MAKE); $(unstage)
295f4e42
NN
32849 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
32850 r=`${PWD_COMMAND}`; export r; \
8c90b13a 32851 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 32852 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
32853 echo "Doing mostlyclean in $(TARGET_SUBDIR)/newlib" ; \
32854 for flag in $(EXTRA_TARGET_FLAGS); do \
32855 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32856 done; \
32857 (cd $(TARGET_SUBDIR)/newlib && \
32858 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32859 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32860 "RANLIB=$${RANLIB}" \
32861 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 32862 mostlyclean) \
295f4e42 32863 || exit 1
4977bab6 32864
60975492 32865@endif target-newlib
4977bab6 32866
295f4e42
NN
32867.PHONY: maybe-clean-target-newlib clean-target-newlib
32868maybe-clean-target-newlib:
60975492
PB
32869@if target-newlib
32870maybe-clean-target-newlib: clean-target-newlib
7e2dbcef 32871
05750653 32872clean-target-newlib:
f41d6665 32873 @: $(MAKE); $(unstage)
295f4e42
NN
32874 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
32875 r=`${PWD_COMMAND}`; export r; \
8c90b13a 32876 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 32877 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
32878 echo "Doing clean in $(TARGET_SUBDIR)/newlib" ; \
32879 for flag in $(EXTRA_TARGET_FLAGS); do \
32880 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32881 done; \
32882 (cd $(TARGET_SUBDIR)/newlib && \
32883 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32884 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32885 "RANLIB=$${RANLIB}" \
32886 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 32887 clean) \
295f4e42 32888 || exit 1
4977bab6 32889
60975492 32890@endif target-newlib
4977bab6 32891
295f4e42
NN
32892.PHONY: maybe-distclean-target-newlib distclean-target-newlib
32893maybe-distclean-target-newlib:
60975492
PB
32894@if target-newlib
32895maybe-distclean-target-newlib: distclean-target-newlib
295f4e42 32896
05750653 32897distclean-target-newlib:
f41d6665 32898 @: $(MAKE); $(unstage)
295f4e42 32899 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
8c90b13a
L
32900 r=`${PWD_COMMAND}`; export r; \
32901 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 32902 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
32903 echo "Doing distclean in $(TARGET_SUBDIR)/newlib" ; \
32904 for flag in $(EXTRA_TARGET_FLAGS); do \
32905 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32906 done; \
32907 (cd $(TARGET_SUBDIR)/newlib && \
32908 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32909 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32910 "RANLIB=$${RANLIB}" \
32911 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 32912 distclean) \
4977bab6
ZW
32913 || exit 1
32914
60975492 32915@endif target-newlib
4977bab6 32916
295f4e42
NN
32917.PHONY: maybe-maintainer-clean-target-newlib maintainer-clean-target-newlib
32918maybe-maintainer-clean-target-newlib:
60975492
PB
32919@if target-newlib
32920maybe-maintainer-clean-target-newlib: maintainer-clean-target-newlib
4977bab6 32921
05750653 32922maintainer-clean-target-newlib:
f41d6665 32923 @: $(MAKE); $(unstage)
295f4e42
NN
32924 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
32925 r=`${PWD_COMMAND}`; export r; \
8c90b13a 32926 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 32927 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
32928 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/newlib" ; \
32929 for flag in $(EXTRA_TARGET_FLAGS); do \
32930 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32931 done; \
32932 (cd $(TARGET_SUBDIR)/newlib && \
32933 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32934 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32935 "RANLIB=$${RANLIB}" \
32936 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 32937 maintainer-clean) \
295f4e42 32938 || exit 1
4977bab6 32939
60975492 32940@endif target-newlib
4977bab6 32941
7e2dbcef 32942
6de9cd9a 32943
25b42232 32944
6de9cd9a 32945
25b42232
PB
32946.PHONY: configure-target-libgfortran maybe-configure-target-libgfortran
32947maybe-configure-target-libgfortran:
3ff3adad
PB
32948@if gcc-bootstrap
32949configure-target-libgfortran: stage_current
32950@endif gcc-bootstrap
25b42232
PB
32951@if target-libgfortran
32952maybe-configure-target-libgfortran: configure-target-libgfortran
cc11cc9b 32953configure-target-libgfortran:
f41d6665
DJ
32954 @: $(MAKE); $(unstage)
32955 @r=`${PWD_COMMAND}`; export r; \
32956 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32957 echo "Checking multilib configuration for libgfortran..."; \
32958 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgfortran ; \
32959 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgfortran/multilib.tmp 2> /dev/null ; \
32960 if test -r $(TARGET_SUBDIR)/libgfortran/multilib.out; then \
32961 if cmp -s $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; then \
32962 rm -f $(TARGET_SUBDIR)/libgfortran/multilib.tmp; \
32963 else \
32964 rm -f $(TARGET_SUBDIR)/libgfortran/Makefile; \
32965 mv $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; \
32966 fi; \
32967 else \
32968 mv $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; \
cc11cc9b
PB
32969 fi; \
32970 test ! -f $(TARGET_SUBDIR)/libgfortran/Makefile || exit 0; \
6de9cd9a 32971 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgfortran ; \
4fc4dd12 32972 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
32973 echo Configuring in $(TARGET_SUBDIR)/libgfortran; \
32974 cd "$(TARGET_SUBDIR)/libgfortran" || exit 1; \
32975 case $(srcdir) in \
215c351a
PB
32976 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32977 *) topdir=`echo $(TARGET_SUBDIR)/libgfortran/ | \
32978 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6de9cd9a 32979 esac; \
215c351a
PB
32980 srcdiroption="--srcdir=$${topdir}/libgfortran"; \
32981 libsrcdir="$$s/libgfortran"; \
6de9cd9a
DN
32982 rm -f no-such-file || : ; \
32983 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 32984 $(TARGET_CONFIGARGS) $${srcdiroption} \
6de9cd9a 32985 || exit 1
60975492 32986@endif target-libgfortran
6de9cd9a 32987
25b42232
PB
32988
32989
ce406537
PB
32990
32991
6de9cd9a
DN
32992.PHONY: all-target-libgfortran maybe-all-target-libgfortran
32993maybe-all-target-libgfortran:
3ff3adad
PB
32994@if gcc-bootstrap
32995all-target-libgfortran: stage_current
32996@endif gcc-bootstrap
60975492 32997@if target-libgfortran
7c27e184 32998TARGET-target-libgfortran=all
60975492 32999maybe-all-target-libgfortran: all-target-libgfortran
6de9cd9a 33000all-target-libgfortran: configure-target-libgfortran
f41d6665 33001 @: $(MAKE); $(unstage)
6de9cd9a
DN
33002 @r=`${PWD_COMMAND}`; export r; \
33003 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33004 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a 33005 (cd $(TARGET_SUBDIR)/libgfortran && \
25b42232 33006 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libgfortran))
60975492 33007@endif target-libgfortran
6de9cd9a 33008
25b42232
PB
33009
33010
ce406537
PB
33011
33012
6de9cd9a
DN
33013.PHONY: check-target-libgfortran maybe-check-target-libgfortran
33014maybe-check-target-libgfortran:
60975492
PB
33015@if target-libgfortran
33016maybe-check-target-libgfortran: check-target-libgfortran
6de9cd9a
DN
33017
33018check-target-libgfortran:
f41d6665 33019 @: $(MAKE); $(unstage)
6de9cd9a
DN
33020 @r=`${PWD_COMMAND}`; export r; \
33021 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33022 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a 33023 (cd $(TARGET_SUBDIR)/libgfortran && \
a52a0a7f 33024 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
6de9cd9a 33025
60975492 33026@endif target-libgfortran
6de9cd9a
DN
33027
33028.PHONY: install-target-libgfortran maybe-install-target-libgfortran
33029maybe-install-target-libgfortran:
60975492
PB
33030@if target-libgfortran
33031maybe-install-target-libgfortran: install-target-libgfortran
6de9cd9a
DN
33032
33033install-target-libgfortran: installdirs
f41d6665 33034 @: $(MAKE); $(unstage)
6de9cd9a
DN
33035 @r=`${PWD_COMMAND}`; export r; \
33036 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33037 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a 33038 (cd $(TARGET_SUBDIR)/libgfortran && \
a52a0a7f 33039 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6de9cd9a 33040
60975492 33041@endif target-libgfortran
6de9cd9a
DN
33042
33043# Other targets (info, dvi, etc.)
33044
33045.PHONY: maybe-info-target-libgfortran info-target-libgfortran
33046maybe-info-target-libgfortran:
60975492
PB
33047@if target-libgfortran
33048maybe-info-target-libgfortran: info-target-libgfortran
6de9cd9a
DN
33049
33050info-target-libgfortran: \
05750653 33051 configure-target-libgfortran
f41d6665 33052 @: $(MAKE); $(unstage)
6de9cd9a
DN
33053 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
33054 r=`${PWD_COMMAND}`; export r; \
33055 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33056 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
33057 echo "Doing info in $(TARGET_SUBDIR)/libgfortran" ; \
33058 for flag in $(EXTRA_TARGET_FLAGS); do \
33059 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33060 done; \
33061 (cd $(TARGET_SUBDIR)/libgfortran && \
33062 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33063 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33064 "RANLIB=$${RANLIB}" \
33065 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 33066 info) \
6de9cd9a
DN
33067 || exit 1
33068
60975492 33069@endif target-libgfortran
6de9cd9a
DN
33070
33071.PHONY: maybe-dvi-target-libgfortran dvi-target-libgfortran
33072maybe-dvi-target-libgfortran:
60975492
PB
33073@if target-libgfortran
33074maybe-dvi-target-libgfortran: dvi-target-libgfortran
6de9cd9a
DN
33075
33076dvi-target-libgfortran: \
05750653 33077 configure-target-libgfortran
f41d6665 33078 @: $(MAKE); $(unstage)
6de9cd9a
DN
33079 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
33080 r=`${PWD_COMMAND}`; export r; \
33081 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33082 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
33083 echo "Doing dvi in $(TARGET_SUBDIR)/libgfortran" ; \
33084 for flag in $(EXTRA_TARGET_FLAGS); do \
33085 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33086 done; \
33087 (cd $(TARGET_SUBDIR)/libgfortran && \
33088 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33089 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33090 "RANLIB=$${RANLIB}" \
33091 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 33092 dvi) \
6de9cd9a
DN
33093 || exit 1
33094
60975492 33095@endif target-libgfortran
6de9cd9a 33096
f87a2b2e
MS
33097.PHONY: maybe-html-target-libgfortran html-target-libgfortran
33098maybe-html-target-libgfortran:
33099@if target-libgfortran
33100maybe-html-target-libgfortran: html-target-libgfortran
33101
33102html-target-libgfortran: \
05750653 33103 configure-target-libgfortran
f41d6665 33104 @: $(MAKE); $(unstage)
f87a2b2e
MS
33105 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
33106 r=`${PWD_COMMAND}`; export r; \
33107 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
33108 $(NORMAL_TARGET_EXPORTS) \
33109 echo "Doing html in $(TARGET_SUBDIR)/libgfortran" ; \
33110 for flag in $(EXTRA_TARGET_FLAGS); do \
33111 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33112 done; \
33113 (cd $(TARGET_SUBDIR)/libgfortran && \
33114 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33115 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33116 "RANLIB=$${RANLIB}" \
33117 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
33118 html) \
33119 || exit 1
33120
33121@endif target-libgfortran
33122
6de9cd9a
DN
33123.PHONY: maybe-TAGS-target-libgfortran TAGS-target-libgfortran
33124maybe-TAGS-target-libgfortran:
60975492
PB
33125@if target-libgfortran
33126maybe-TAGS-target-libgfortran: TAGS-target-libgfortran
6de9cd9a
DN
33127
33128TAGS-target-libgfortran: \
05750653 33129 configure-target-libgfortran
f41d6665 33130 @: $(MAKE); $(unstage)
6de9cd9a
DN
33131 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
33132 r=`${PWD_COMMAND}`; export r; \
33133 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33134 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
33135 echo "Doing TAGS in $(TARGET_SUBDIR)/libgfortran" ; \
33136 for flag in $(EXTRA_TARGET_FLAGS); do \
33137 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33138 done; \
33139 (cd $(TARGET_SUBDIR)/libgfortran && \
33140 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33141 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33142 "RANLIB=$${RANLIB}" \
33143 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 33144 TAGS) \
6de9cd9a
DN
33145 || exit 1
33146
60975492 33147@endif target-libgfortran
6de9cd9a
DN
33148
33149.PHONY: maybe-install-info-target-libgfortran install-info-target-libgfortran
33150maybe-install-info-target-libgfortran:
60975492
PB
33151@if target-libgfortran
33152maybe-install-info-target-libgfortran: install-info-target-libgfortran
6de9cd9a
DN
33153
33154install-info-target-libgfortran: \
33155 configure-target-libgfortran \
05750653 33156 info-target-libgfortran
f41d6665 33157 @: $(MAKE); $(unstage)
6de9cd9a
DN
33158 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
33159 r=`${PWD_COMMAND}`; export r; \
33160 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33161 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
33162 echo "Doing install-info in $(TARGET_SUBDIR)/libgfortran" ; \
33163 for flag in $(EXTRA_TARGET_FLAGS); do \
33164 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33165 done; \
33166 (cd $(TARGET_SUBDIR)/libgfortran && \
33167 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33168 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33169 "RANLIB=$${RANLIB}" \
33170 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 33171 install-info) \
6de9cd9a
DN
33172 || exit 1
33173
60975492 33174@endif target-libgfortran
6de9cd9a 33175
65d6e994
CD
33176.PHONY: maybe-install-html-target-libgfortran install-html-target-libgfortran
33177maybe-install-html-target-libgfortran:
33178@if target-libgfortran
33179maybe-install-html-target-libgfortran: install-html-target-libgfortran
33180
33181install-html-target-libgfortran: \
33182 configure-target-libgfortran \
33183 html-target-libgfortran
33184 @: $(MAKE); $(unstage)
33185 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
33186 r=`${PWD_COMMAND}`; export r; \
33187 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33188 $(NORMAL_TARGET_EXPORTS) \
33189 echo "Doing install-html in $(TARGET_SUBDIR)/libgfortran" ; \
33190 for flag in $(EXTRA_TARGET_FLAGS); do \
33191 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33192 done; \
33193 (cd $(TARGET_SUBDIR)/libgfortran && \
33194 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33195 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33196 "RANLIB=$${RANLIB}" \
33197 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
33198 install-html) \
33199 || exit 1
33200
33201@endif target-libgfortran
33202
6de9cd9a
DN
33203.PHONY: maybe-installcheck-target-libgfortran installcheck-target-libgfortran
33204maybe-installcheck-target-libgfortran:
60975492
PB
33205@if target-libgfortran
33206maybe-installcheck-target-libgfortran: installcheck-target-libgfortran
6de9cd9a
DN
33207
33208installcheck-target-libgfortran: \
05750653 33209 configure-target-libgfortran
f41d6665 33210 @: $(MAKE); $(unstage)
6de9cd9a
DN
33211 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
33212 r=`${PWD_COMMAND}`; export r; \
33213 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33214 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
33215 echo "Doing installcheck in $(TARGET_SUBDIR)/libgfortran" ; \
33216 for flag in $(EXTRA_TARGET_FLAGS); do \
33217 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33218 done; \
33219 (cd $(TARGET_SUBDIR)/libgfortran && \
33220 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33221 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33222 "RANLIB=$${RANLIB}" \
33223 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 33224 installcheck) \
6de9cd9a
DN
33225 || exit 1
33226
60975492 33227@endif target-libgfortran
6de9cd9a
DN
33228
33229.PHONY: maybe-mostlyclean-target-libgfortran mostlyclean-target-libgfortran
33230maybe-mostlyclean-target-libgfortran:
60975492
PB
33231@if target-libgfortran
33232maybe-mostlyclean-target-libgfortran: mostlyclean-target-libgfortran
6de9cd9a 33233
05750653 33234mostlyclean-target-libgfortran:
f41d6665 33235 @: $(MAKE); $(unstage)
6de9cd9a
DN
33236 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
33237 r=`${PWD_COMMAND}`; export r; \
33238 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33239 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
33240 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgfortran" ; \
33241 for flag in $(EXTRA_TARGET_FLAGS); do \
33242 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33243 done; \
33244 (cd $(TARGET_SUBDIR)/libgfortran && \
33245 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33246 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33247 "RANLIB=$${RANLIB}" \
33248 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 33249 mostlyclean) \
6de9cd9a
DN
33250 || exit 1
33251
60975492 33252@endif target-libgfortran
6de9cd9a
DN
33253
33254.PHONY: maybe-clean-target-libgfortran clean-target-libgfortran
33255maybe-clean-target-libgfortran:
60975492
PB
33256@if target-libgfortran
33257maybe-clean-target-libgfortran: clean-target-libgfortran
6de9cd9a 33258
05750653 33259clean-target-libgfortran:
f41d6665 33260 @: $(MAKE); $(unstage)
6de9cd9a
DN
33261 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
33262 r=`${PWD_COMMAND}`; export r; \
33263 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33264 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
33265 echo "Doing clean in $(TARGET_SUBDIR)/libgfortran" ; \
33266 for flag in $(EXTRA_TARGET_FLAGS); do \
33267 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33268 done; \
33269 (cd $(TARGET_SUBDIR)/libgfortran && \
33270 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33271 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33272 "RANLIB=$${RANLIB}" \
33273 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 33274 clean) \
6de9cd9a
DN
33275 || exit 1
33276
60975492 33277@endif target-libgfortran
6de9cd9a
DN
33278
33279.PHONY: maybe-distclean-target-libgfortran distclean-target-libgfortran
33280maybe-distclean-target-libgfortran:
60975492
PB
33281@if target-libgfortran
33282maybe-distclean-target-libgfortran: distclean-target-libgfortran
6de9cd9a 33283
05750653 33284distclean-target-libgfortran:
f41d6665 33285 @: $(MAKE); $(unstage)
6de9cd9a
DN
33286 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
33287 r=`${PWD_COMMAND}`; export r; \
33288 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33289 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
33290 echo "Doing distclean in $(TARGET_SUBDIR)/libgfortran" ; \
33291 for flag in $(EXTRA_TARGET_FLAGS); do \
33292 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33293 done; \
33294 (cd $(TARGET_SUBDIR)/libgfortran && \
33295 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33296 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33297 "RANLIB=$${RANLIB}" \
33298 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 33299 distclean) \
6de9cd9a
DN
33300 || exit 1
33301
60975492 33302@endif target-libgfortran
6de9cd9a
DN
33303
33304.PHONY: maybe-maintainer-clean-target-libgfortran maintainer-clean-target-libgfortran
33305maybe-maintainer-clean-target-libgfortran:
60975492
PB
33306@if target-libgfortran
33307maybe-maintainer-clean-target-libgfortran: maintainer-clean-target-libgfortran
6de9cd9a 33308
05750653 33309maintainer-clean-target-libgfortran:
f41d6665 33310 @: $(MAKE); $(unstage)
6de9cd9a
DN
33311 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
33312 r=`${PWD_COMMAND}`; export r; \
33313 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33314 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
33315 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgfortran" ; \
33316 for flag in $(EXTRA_TARGET_FLAGS); do \
33317 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33318 done; \
33319 (cd $(TARGET_SUBDIR)/libgfortran && \
33320 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33321 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33322 "RANLIB=$${RANLIB}" \
33323 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 33324 maintainer-clean) \
6de9cd9a
DN
33325 || exit 1
33326
60975492 33327@endif target-libgfortran
6de9cd9a
DN
33328
33329
4977bab6 33330
25b42232 33331
4977bab6 33332
25b42232
PB
33333.PHONY: configure-target-libobjc maybe-configure-target-libobjc
33334maybe-configure-target-libobjc:
3ff3adad
PB
33335@if gcc-bootstrap
33336configure-target-libobjc: stage_current
33337@endif gcc-bootstrap
25b42232
PB
33338@if target-libobjc
33339maybe-configure-target-libobjc: configure-target-libobjc
cc11cc9b 33340configure-target-libobjc:
f41d6665
DJ
33341 @: $(MAKE); $(unstage)
33342 @r=`${PWD_COMMAND}`; export r; \
33343 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33344 echo "Checking multilib configuration for libobjc..."; \
33345 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libobjc ; \
33346 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libobjc/multilib.tmp 2> /dev/null ; \
33347 if test -r $(TARGET_SUBDIR)/libobjc/multilib.out; then \
33348 if cmp -s $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; then \
33349 rm -f $(TARGET_SUBDIR)/libobjc/multilib.tmp; \
33350 else \
33351 rm -f $(TARGET_SUBDIR)/libobjc/Makefile; \
33352 mv $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; \
33353 fi; \
33354 else \
33355 mv $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; \
cc11cc9b
PB
33356 fi; \
33357 test ! -f $(TARGET_SUBDIR)/libobjc/Makefile || exit 0; \
295f4e42 33358 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libobjc ; \
4fc4dd12 33359 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
33360 echo Configuring in $(TARGET_SUBDIR)/libobjc; \
33361 cd "$(TARGET_SUBDIR)/libobjc" || exit 1; \
4977bab6 33362 case $(srcdir) in \
215c351a
PB
33363 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33364 *) topdir=`echo $(TARGET_SUBDIR)/libobjc/ | \
33365 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 33366 esac; \
215c351a
PB
33367 srcdiroption="--srcdir=$${topdir}/libobjc"; \
33368 libsrcdir="$$s/libobjc"; \
295f4e42
NN
33369 rm -f no-such-file || : ; \
33370 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 33371 $(TARGET_CONFIGARGS) $${srcdiroption} \
4977bab6 33372 || exit 1
60975492 33373@endif target-libobjc
4977bab6 33374
25b42232
PB
33375
33376
ce406537
PB
33377
33378
295f4e42
NN
33379.PHONY: all-target-libobjc maybe-all-target-libobjc
33380maybe-all-target-libobjc:
3ff3adad
PB
33381@if gcc-bootstrap
33382all-target-libobjc: stage_current
33383@endif gcc-bootstrap
60975492 33384@if target-libobjc
7c27e184 33385TARGET-target-libobjc=all
60975492 33386maybe-all-target-libobjc: all-target-libobjc
295f4e42 33387all-target-libobjc: configure-target-libobjc
f41d6665 33388 @: $(MAKE); $(unstage)
8c90b13a
L
33389 @r=`${PWD_COMMAND}`; export r; \
33390 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33391 $(NORMAL_TARGET_EXPORTS) \
295f4e42 33392 (cd $(TARGET_SUBDIR)/libobjc && \
25b42232 33393 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libobjc))
60975492 33394@endif target-libobjc
4977bab6 33395
25b42232
PB
33396
33397
ce406537
PB
33398
33399
295f4e42
NN
33400.PHONY: check-target-libobjc maybe-check-target-libobjc
33401maybe-check-target-libobjc:
60975492
PB
33402@if target-libobjc
33403maybe-check-target-libobjc: check-target-libobjc
4977bab6 33404
295f4e42 33405check-target-libobjc:
f41d6665 33406 @: $(MAKE); $(unstage)
8c90b13a
L
33407 @r=`${PWD_COMMAND}`; export r; \
33408 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33409 $(NORMAL_TARGET_EXPORTS) \
295f4e42 33410 (cd $(TARGET_SUBDIR)/libobjc && \
a52a0a7f 33411 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4977bab6 33412
60975492 33413@endif target-libobjc
4977bab6 33414
295f4e42
NN
33415.PHONY: install-target-libobjc maybe-install-target-libobjc
33416maybe-install-target-libobjc:
60975492
PB
33417@if target-libobjc
33418maybe-install-target-libobjc: install-target-libobjc
4977bab6 33419
295f4e42 33420install-target-libobjc: installdirs
f41d6665 33421 @: $(MAKE); $(unstage)
8c90b13a
L
33422 @r=`${PWD_COMMAND}`; export r; \
33423 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33424 $(NORMAL_TARGET_EXPORTS) \
295f4e42 33425 (cd $(TARGET_SUBDIR)/libobjc && \
a52a0a7f 33426 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4977bab6 33427
60975492 33428@endif target-libobjc
4977bab6 33429
295f4e42
NN
33430# Other targets (info, dvi, etc.)
33431
33432.PHONY: maybe-info-target-libobjc info-target-libobjc
33433maybe-info-target-libobjc:
60975492
PB
33434@if target-libobjc
33435maybe-info-target-libobjc: info-target-libobjc
295f4e42
NN
33436
33437info-target-libobjc: \
05750653 33438 configure-target-libobjc
f41d6665 33439 @: $(MAKE); $(unstage)
295f4e42
NN
33440 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
33441 r=`${PWD_COMMAND}`; export r; \
8c90b13a 33442 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33443 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
33444 echo "Doing info in $(TARGET_SUBDIR)/libobjc" ; \
33445 for flag in $(EXTRA_TARGET_FLAGS); do \
33446 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33447 done; \
33448 (cd $(TARGET_SUBDIR)/libobjc && \
33449 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33450 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33451 "RANLIB=$${RANLIB}" \
33452 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 33453 info) \
295f4e42 33454 || exit 1
4977bab6 33455
60975492 33456@endif target-libobjc
4977bab6 33457
295f4e42
NN
33458.PHONY: maybe-dvi-target-libobjc dvi-target-libobjc
33459maybe-dvi-target-libobjc:
60975492
PB
33460@if target-libobjc
33461maybe-dvi-target-libobjc: dvi-target-libobjc
7e2dbcef 33462
295f4e42 33463dvi-target-libobjc: \
05750653 33464 configure-target-libobjc
f41d6665 33465 @: $(MAKE); $(unstage)
295f4e42
NN
33466 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
33467 r=`${PWD_COMMAND}`; export r; \
8c90b13a 33468 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33469 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
33470 echo "Doing dvi in $(TARGET_SUBDIR)/libobjc" ; \
33471 for flag in $(EXTRA_TARGET_FLAGS); do \
33472 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33473 done; \
33474 (cd $(TARGET_SUBDIR)/libobjc && \
33475 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33476 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33477 "RANLIB=$${RANLIB}" \
33478 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 33479 dvi) \
295f4e42 33480 || exit 1
4977bab6 33481
60975492 33482@endif target-libobjc
4977bab6 33483
f87a2b2e
MS
33484.PHONY: maybe-html-target-libobjc html-target-libobjc
33485maybe-html-target-libobjc:
33486@if target-libobjc
33487maybe-html-target-libobjc: html-target-libobjc
33488
33489html-target-libobjc: \
05750653 33490 configure-target-libobjc
f41d6665 33491 @: $(MAKE); $(unstage)
f87a2b2e
MS
33492 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
33493 r=`${PWD_COMMAND}`; export r; \
33494 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
33495 $(NORMAL_TARGET_EXPORTS) \
33496 echo "Doing html in $(TARGET_SUBDIR)/libobjc" ; \
33497 for flag in $(EXTRA_TARGET_FLAGS); do \
33498 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33499 done; \
33500 (cd $(TARGET_SUBDIR)/libobjc && \
33501 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33502 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33503 "RANLIB=$${RANLIB}" \
33504 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
33505 html) \
33506 || exit 1
33507
33508@endif target-libobjc
33509
295f4e42
NN
33510.PHONY: maybe-TAGS-target-libobjc TAGS-target-libobjc
33511maybe-TAGS-target-libobjc:
60975492
PB
33512@if target-libobjc
33513maybe-TAGS-target-libobjc: TAGS-target-libobjc
295f4e42
NN
33514
33515TAGS-target-libobjc: \
05750653 33516 configure-target-libobjc
f41d6665 33517 @: $(MAKE); $(unstage)
295f4e42 33518 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
8c90b13a
L
33519 r=`${PWD_COMMAND}`; export r; \
33520 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33521 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
33522 echo "Doing TAGS in $(TARGET_SUBDIR)/libobjc" ; \
33523 for flag in $(EXTRA_TARGET_FLAGS); do \
33524 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33525 done; \
33526 (cd $(TARGET_SUBDIR)/libobjc && \
33527 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33528 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33529 "RANLIB=$${RANLIB}" \
33530 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 33531 TAGS) \
4977bab6
ZW
33532 || exit 1
33533
60975492 33534@endif target-libobjc
295f4e42
NN
33535
33536.PHONY: maybe-install-info-target-libobjc install-info-target-libobjc
33537maybe-install-info-target-libobjc:
60975492
PB
33538@if target-libobjc
33539maybe-install-info-target-libobjc: install-info-target-libobjc
295f4e42
NN
33540
33541install-info-target-libobjc: \
33542 configure-target-libobjc \
05750653 33543 info-target-libobjc
f41d6665 33544 @: $(MAKE); $(unstage)
295f4e42
NN
33545 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
33546 r=`${PWD_COMMAND}`; export r; \
8c90b13a 33547 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33548 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
33549 echo "Doing install-info in $(TARGET_SUBDIR)/libobjc" ; \
33550 for flag in $(EXTRA_TARGET_FLAGS); do \
33551 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33552 done; \
33553 (cd $(TARGET_SUBDIR)/libobjc && \
33554 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33555 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33556 "RANLIB=$${RANLIB}" \
33557 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 33558 install-info) \
295f4e42 33559 || exit 1
4977bab6 33560
60975492 33561@endif target-libobjc
4977bab6 33562
65d6e994
CD
33563.PHONY: maybe-install-html-target-libobjc install-html-target-libobjc
33564maybe-install-html-target-libobjc:
33565@if target-libobjc
33566maybe-install-html-target-libobjc: install-html-target-libobjc
33567
33568install-html-target-libobjc: \
33569 configure-target-libobjc \
33570 html-target-libobjc
33571 @: $(MAKE); $(unstage)
33572 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
33573 r=`${PWD_COMMAND}`; export r; \
33574 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33575 $(NORMAL_TARGET_EXPORTS) \
33576 echo "Doing install-html in $(TARGET_SUBDIR)/libobjc" ; \
33577 for flag in $(EXTRA_TARGET_FLAGS); do \
33578 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33579 done; \
33580 (cd $(TARGET_SUBDIR)/libobjc && \
33581 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33582 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33583 "RANLIB=$${RANLIB}" \
33584 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
33585 install-html) \
33586 || exit 1
33587
33588@endif target-libobjc
33589
295f4e42
NN
33590.PHONY: maybe-installcheck-target-libobjc installcheck-target-libobjc
33591maybe-installcheck-target-libobjc:
60975492
PB
33592@if target-libobjc
33593maybe-installcheck-target-libobjc: installcheck-target-libobjc
295f4e42
NN
33594
33595installcheck-target-libobjc: \
05750653 33596 configure-target-libobjc
f41d6665 33597 @: $(MAKE); $(unstage)
295f4e42
NN
33598 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
33599 r=`${PWD_COMMAND}`; export r; \
8c90b13a 33600 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33601 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
33602 echo "Doing installcheck in $(TARGET_SUBDIR)/libobjc" ; \
33603 for flag in $(EXTRA_TARGET_FLAGS); do \
33604 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33605 done; \
33606 (cd $(TARGET_SUBDIR)/libobjc && \
33607 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33608 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33609 "RANLIB=$${RANLIB}" \
33610 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 33611 installcheck) \
295f4e42 33612 || exit 1
4977bab6 33613
60975492 33614@endif target-libobjc
4977bab6 33615
295f4e42
NN
33616.PHONY: maybe-mostlyclean-target-libobjc mostlyclean-target-libobjc
33617maybe-mostlyclean-target-libobjc:
60975492
PB
33618@if target-libobjc
33619maybe-mostlyclean-target-libobjc: mostlyclean-target-libobjc
7e2dbcef 33620
05750653 33621mostlyclean-target-libobjc:
f41d6665 33622 @: $(MAKE); $(unstage)
295f4e42
NN
33623 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
33624 r=`${PWD_COMMAND}`; export r; \
8c90b13a 33625 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33626 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
33627 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libobjc" ; \
33628 for flag in $(EXTRA_TARGET_FLAGS); do \
33629 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33630 done; \
33631 (cd $(TARGET_SUBDIR)/libobjc && \
33632 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33633 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33634 "RANLIB=$${RANLIB}" \
33635 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 33636 mostlyclean) \
295f4e42 33637 || exit 1
4977bab6 33638
60975492 33639@endif target-libobjc
4977bab6 33640
295f4e42
NN
33641.PHONY: maybe-clean-target-libobjc clean-target-libobjc
33642maybe-clean-target-libobjc:
60975492
PB
33643@if target-libobjc
33644maybe-clean-target-libobjc: clean-target-libobjc
295f4e42 33645
05750653 33646clean-target-libobjc:
f41d6665 33647 @: $(MAKE); $(unstage)
295f4e42 33648 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
8c90b13a
L
33649 r=`${PWD_COMMAND}`; export r; \
33650 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33651 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
33652 echo "Doing clean in $(TARGET_SUBDIR)/libobjc" ; \
33653 for flag in $(EXTRA_TARGET_FLAGS); do \
33654 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33655 done; \
33656 (cd $(TARGET_SUBDIR)/libobjc && \
33657 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33658 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33659 "RANLIB=$${RANLIB}" \
33660 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 33661 clean) \
4977bab6
ZW
33662 || exit 1
33663
60975492 33664@endif target-libobjc
4977bab6 33665
295f4e42
NN
33666.PHONY: maybe-distclean-target-libobjc distclean-target-libobjc
33667maybe-distclean-target-libobjc:
60975492
PB
33668@if target-libobjc
33669maybe-distclean-target-libobjc: distclean-target-libobjc
4977bab6 33670
05750653 33671distclean-target-libobjc:
f41d6665 33672 @: $(MAKE); $(unstage)
295f4e42
NN
33673 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
33674 r=`${PWD_COMMAND}`; export r; \
8c90b13a 33675 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33676 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
33677 echo "Doing distclean in $(TARGET_SUBDIR)/libobjc" ; \
33678 for flag in $(EXTRA_TARGET_FLAGS); do \
33679 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33680 done; \
33681 (cd $(TARGET_SUBDIR)/libobjc && \
33682 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33683 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33684 "RANLIB=$${RANLIB}" \
33685 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 33686 distclean) \
295f4e42 33687 || exit 1
4977bab6 33688
60975492 33689@endif target-libobjc
4977bab6 33690
295f4e42
NN
33691.PHONY: maybe-maintainer-clean-target-libobjc maintainer-clean-target-libobjc
33692maybe-maintainer-clean-target-libobjc:
60975492
PB
33693@if target-libobjc
33694maybe-maintainer-clean-target-libobjc: maintainer-clean-target-libobjc
7e2dbcef 33695
05750653 33696maintainer-clean-target-libobjc:
f41d6665 33697 @: $(MAKE); $(unstage)
295f4e42
NN
33698 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
33699 r=`${PWD_COMMAND}`; export r; \
8c90b13a 33700 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33701 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
33702 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libobjc" ; \
33703 for flag in $(EXTRA_TARGET_FLAGS); do \
33704 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33705 done; \
33706 (cd $(TARGET_SUBDIR)/libobjc && \
33707 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33708 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33709 "RANLIB=$${RANLIB}" \
33710 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 33711 maintainer-clean) \
295f4e42 33712 || exit 1
4977bab6 33713
60975492 33714@endif target-libobjc
4977bab6 33715
295f4e42 33716
295f4e42 33717
25b42232 33718
295f4e42 33719
25b42232
PB
33720.PHONY: configure-target-libtermcap maybe-configure-target-libtermcap
33721maybe-configure-target-libtermcap:
3ff3adad
PB
33722@if gcc-bootstrap
33723configure-target-libtermcap: stage_current
33724@endif gcc-bootstrap
25b42232
PB
33725@if target-libtermcap
33726maybe-configure-target-libtermcap: configure-target-libtermcap
cc11cc9b 33727configure-target-libtermcap:
f41d6665
DJ
33728 @: $(MAKE); $(unstage)
33729 @r=`${PWD_COMMAND}`; export r; \
33730 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33731 echo "Checking multilib configuration for libtermcap..."; \
33732 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libtermcap ; \
33733 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libtermcap/multilib.tmp 2> /dev/null ; \
33734 if test -r $(TARGET_SUBDIR)/libtermcap/multilib.out; then \
33735 if cmp -s $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; then \
33736 rm -f $(TARGET_SUBDIR)/libtermcap/multilib.tmp; \
33737 else \
33738 rm -f $(TARGET_SUBDIR)/libtermcap/Makefile; \
33739 mv $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; \
33740 fi; \
33741 else \
33742 mv $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; \
cc11cc9b
PB
33743 fi; \
33744 test ! -f $(TARGET_SUBDIR)/libtermcap/Makefile || exit 0; \
295f4e42 33745 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libtermcap ; \
4fc4dd12 33746 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
33747 echo Configuring in $(TARGET_SUBDIR)/libtermcap; \
33748 cd "$(TARGET_SUBDIR)/libtermcap" || exit 1; \
4977bab6 33749 case $(srcdir) in \
215c351a
PB
33750 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33751 *) topdir=`echo $(TARGET_SUBDIR)/libtermcap/ | \
33752 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 33753 esac; \
215c351a
PB
33754 srcdiroption="--srcdir=$${topdir}/libtermcap"; \
33755 libsrcdir="$$s/libtermcap"; \
295f4e42
NN
33756 rm -f no-such-file || : ; \
33757 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 33758 $(TARGET_CONFIGARGS) $${srcdiroption} \
4977bab6 33759 || exit 1
60975492 33760@endif target-libtermcap
4977bab6 33761
25b42232
PB
33762
33763
ce406537
PB
33764
33765
295f4e42
NN
33766.PHONY: all-target-libtermcap maybe-all-target-libtermcap
33767maybe-all-target-libtermcap:
3ff3adad
PB
33768@if gcc-bootstrap
33769all-target-libtermcap: stage_current
33770@endif gcc-bootstrap
60975492 33771@if target-libtermcap
7c27e184 33772TARGET-target-libtermcap=all
60975492 33773maybe-all-target-libtermcap: all-target-libtermcap
295f4e42 33774all-target-libtermcap: configure-target-libtermcap
f41d6665 33775 @: $(MAKE); $(unstage)
8c90b13a
L
33776 @r=`${PWD_COMMAND}`; export r; \
33777 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33778 $(NORMAL_TARGET_EXPORTS) \
295f4e42 33779 (cd $(TARGET_SUBDIR)/libtermcap && \
25b42232 33780 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libtermcap))
60975492 33781@endif target-libtermcap
4977bab6 33782
25b42232
PB
33783
33784
ce406537
PB
33785
33786
295f4e42
NN
33787.PHONY: check-target-libtermcap maybe-check-target-libtermcap
33788maybe-check-target-libtermcap:
60975492
PB
33789@if target-libtermcap
33790maybe-check-target-libtermcap: check-target-libtermcap
4977bab6 33791
295f4e42
NN
33792# Dummy target for uncheckable module.
33793check-target-libtermcap:
33794
60975492 33795@endif target-libtermcap
295f4e42
NN
33796
33797.PHONY: install-target-libtermcap maybe-install-target-libtermcap
33798maybe-install-target-libtermcap:
60975492
PB
33799@if target-libtermcap
33800maybe-install-target-libtermcap: install-target-libtermcap
295f4e42
NN
33801
33802install-target-libtermcap: installdirs
f41d6665 33803 @: $(MAKE); $(unstage)
8c90b13a
L
33804 @r=`${PWD_COMMAND}`; export r; \
33805 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33806 $(NORMAL_TARGET_EXPORTS) \
295f4e42 33807 (cd $(TARGET_SUBDIR)/libtermcap && \
a52a0a7f 33808 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4977bab6 33809
60975492 33810@endif target-libtermcap
4977bab6 33811
295f4e42 33812# Other targets (info, dvi, etc.)
7e2dbcef 33813
295f4e42
NN
33814.PHONY: maybe-info-target-libtermcap info-target-libtermcap
33815maybe-info-target-libtermcap:
60975492 33816@if target-libtermcap
f87a2b2e
MS
33817maybe-info-target-libtermcap: info-target-libtermcap
33818
33819info-target-libtermcap: \
05750653 33820 configure-target-libtermcap
f41d6665 33821 @: $(MAKE); $(unstage)
f87a2b2e
MS
33822 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
33823 r=`${PWD_COMMAND}`; export r; \
33824 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
33825 $(NORMAL_TARGET_EXPORTS) \
33826 echo "Doing info in $(TARGET_SUBDIR)/libtermcap" ; \
33827 for flag in $(EXTRA_TARGET_FLAGS); do \
33828 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33829 done; \
33830 (cd $(TARGET_SUBDIR)/libtermcap && \
33831 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33832 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33833 "RANLIB=$${RANLIB}" \
33834 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
33835 info) \
33836 || exit 1
33837
33838@endif target-libtermcap
33839
33840.PHONY: maybe-dvi-target-libtermcap dvi-target-libtermcap
33841maybe-dvi-target-libtermcap:
33842@if target-libtermcap
33843maybe-dvi-target-libtermcap: dvi-target-libtermcap
295f4e42 33844
f87a2b2e 33845dvi-target-libtermcap: \
05750653 33846 configure-target-libtermcap
f41d6665 33847 @: $(MAKE); $(unstage)
295f4e42
NN
33848 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
33849 r=`${PWD_COMMAND}`; export r; \
8c90b13a 33850 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33851 $(NORMAL_TARGET_EXPORTS) \
f87a2b2e 33852 echo "Doing dvi in $(TARGET_SUBDIR)/libtermcap" ; \
295f4e42
NN
33853 for flag in $(EXTRA_TARGET_FLAGS); do \
33854 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33855 done; \
33856 (cd $(TARGET_SUBDIR)/libtermcap && \
33857 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33858 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33859 "RANLIB=$${RANLIB}" \
33860 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
f87a2b2e 33861 dvi) \
295f4e42 33862 || exit 1
4977bab6 33863
60975492 33864@endif target-libtermcap
4977bab6 33865
f87a2b2e
MS
33866.PHONY: maybe-html-target-libtermcap html-target-libtermcap
33867maybe-html-target-libtermcap:
60975492 33868@if target-libtermcap
f87a2b2e 33869maybe-html-target-libtermcap: html-target-libtermcap
295f4e42 33870
f87a2b2e 33871html-target-libtermcap: \
05750653 33872 configure-target-libtermcap
f41d6665 33873 @: $(MAKE); $(unstage)
295f4e42 33874 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
8c90b13a
L
33875 r=`${PWD_COMMAND}`; export r; \
33876 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33877 $(NORMAL_TARGET_EXPORTS) \
f87a2b2e 33878 echo "Doing html in $(TARGET_SUBDIR)/libtermcap" ; \
295f4e42
NN
33879 for flag in $(EXTRA_TARGET_FLAGS); do \
33880 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33881 done; \
33882 (cd $(TARGET_SUBDIR)/libtermcap && \
33883 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33884 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33885 "RANLIB=$${RANLIB}" \
33886 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
f87a2b2e 33887 html) \
4977bab6
ZW
33888 || exit 1
33889
60975492 33890@endif target-libtermcap
295f4e42
NN
33891
33892.PHONY: maybe-TAGS-target-libtermcap TAGS-target-libtermcap
33893maybe-TAGS-target-libtermcap:
60975492
PB
33894@if target-libtermcap
33895maybe-TAGS-target-libtermcap: TAGS-target-libtermcap
295f4e42
NN
33896
33897TAGS-target-libtermcap: \
05750653 33898 configure-target-libtermcap
f41d6665 33899 @: $(MAKE); $(unstage)
295f4e42
NN
33900 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
33901 r=`${PWD_COMMAND}`; export r; \
8c90b13a 33902 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33903 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
33904 echo "Doing TAGS in $(TARGET_SUBDIR)/libtermcap" ; \
33905 for flag in $(EXTRA_TARGET_FLAGS); do \
33906 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33907 done; \
33908 (cd $(TARGET_SUBDIR)/libtermcap && \
33909 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33910 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33911 "RANLIB=$${RANLIB}" \
33912 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 33913 TAGS) \
295f4e42 33914 || exit 1
4977bab6 33915
60975492 33916@endif target-libtermcap
4977bab6 33917
295f4e42
NN
33918.PHONY: maybe-install-info-target-libtermcap install-info-target-libtermcap
33919maybe-install-info-target-libtermcap:
60975492
PB
33920@if target-libtermcap
33921maybe-install-info-target-libtermcap: install-info-target-libtermcap
4977bab6 33922
295f4e42
NN
33923install-info-target-libtermcap: \
33924 configure-target-libtermcap \
05750653 33925 info-target-libtermcap
f41d6665 33926 @: $(MAKE); $(unstage)
295f4e42
NN
33927 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
33928 r=`${PWD_COMMAND}`; export r; \
33929 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33930 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
33931 echo "Doing install-info in $(TARGET_SUBDIR)/libtermcap" ; \
33932 for flag in $(EXTRA_TARGET_FLAGS); do \
33933 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33934 done; \
33935 (cd $(TARGET_SUBDIR)/libtermcap && \
33936 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33937 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33938 "RANLIB=$${RANLIB}" \
33939 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 33940 install-info) \
295f4e42 33941 || exit 1
4977bab6 33942
60975492 33943@endif target-libtermcap
7e2dbcef 33944
65d6e994
CD
33945.PHONY: maybe-install-html-target-libtermcap install-html-target-libtermcap
33946maybe-install-html-target-libtermcap:
33947@if target-libtermcap
33948maybe-install-html-target-libtermcap: install-html-target-libtermcap
33949
33950install-html-target-libtermcap: \
33951 configure-target-libtermcap \
33952 html-target-libtermcap
33953 @: $(MAKE); $(unstage)
33954 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
33955 r=`${PWD_COMMAND}`; export r; \
33956 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33957 $(NORMAL_TARGET_EXPORTS) \
33958 echo "Doing install-html in $(TARGET_SUBDIR)/libtermcap" ; \
33959 for flag in $(EXTRA_TARGET_FLAGS); do \
33960 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33961 done; \
33962 (cd $(TARGET_SUBDIR)/libtermcap && \
33963 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33964 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33965 "RANLIB=$${RANLIB}" \
33966 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
33967 install-html) \
33968 || exit 1
33969
33970@endif target-libtermcap
33971
295f4e42
NN
33972.PHONY: maybe-installcheck-target-libtermcap installcheck-target-libtermcap
33973maybe-installcheck-target-libtermcap:
60975492
PB
33974@if target-libtermcap
33975maybe-installcheck-target-libtermcap: installcheck-target-libtermcap
295f4e42
NN
33976
33977installcheck-target-libtermcap: \
05750653 33978 configure-target-libtermcap
f41d6665 33979 @: $(MAKE); $(unstage)
295f4e42
NN
33980 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
33981 r=`${PWD_COMMAND}`; export r; \
8c90b13a 33982 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33983 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
33984 echo "Doing installcheck in $(TARGET_SUBDIR)/libtermcap" ; \
33985 for flag in $(EXTRA_TARGET_FLAGS); do \
33986 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33987 done; \
33988 (cd $(TARGET_SUBDIR)/libtermcap && \
33989 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33990 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33991 "RANLIB=$${RANLIB}" \
33992 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 33993 installcheck) \
295f4e42 33994 || exit 1
4977bab6 33995
60975492 33996@endif target-libtermcap
4977bab6 33997
295f4e42
NN
33998.PHONY: maybe-mostlyclean-target-libtermcap mostlyclean-target-libtermcap
33999maybe-mostlyclean-target-libtermcap:
60975492
PB
34000@if target-libtermcap
34001maybe-mostlyclean-target-libtermcap: mostlyclean-target-libtermcap
295f4e42
NN
34002
34003# libtermcap doesn't support mostlyclean.
34004mostlyclean-target-libtermcap:
34005
60975492 34006@endif target-libtermcap
295f4e42
NN
34007
34008.PHONY: maybe-clean-target-libtermcap clean-target-libtermcap
34009maybe-clean-target-libtermcap:
60975492
PB
34010@if target-libtermcap
34011maybe-clean-target-libtermcap: clean-target-libtermcap
295f4e42
NN
34012
34013# libtermcap doesn't support clean.
34014clean-target-libtermcap:
34015
60975492 34016@endif target-libtermcap
295f4e42
NN
34017
34018.PHONY: maybe-distclean-target-libtermcap distclean-target-libtermcap
34019maybe-distclean-target-libtermcap:
60975492
PB
34020@if target-libtermcap
34021maybe-distclean-target-libtermcap: distclean-target-libtermcap
295f4e42
NN
34022
34023# libtermcap doesn't support distclean.
34024distclean-target-libtermcap:
34025
60975492 34026@endif target-libtermcap
295f4e42
NN
34027
34028.PHONY: maybe-maintainer-clean-target-libtermcap maintainer-clean-target-libtermcap
34029maybe-maintainer-clean-target-libtermcap:
60975492
PB
34030@if target-libtermcap
34031maybe-maintainer-clean-target-libtermcap: maintainer-clean-target-libtermcap
295f4e42
NN
34032
34033# libtermcap doesn't support maintainer-clean.
34034maintainer-clean-target-libtermcap:
34035
60975492 34036@endif target-libtermcap
295f4e42
NN
34037
34038
295f4e42 34039
295f4e42 34040
25b42232
PB
34041
34042.PHONY: configure-target-winsup maybe-configure-target-winsup
34043maybe-configure-target-winsup:
3ff3adad
PB
34044@if gcc-bootstrap
34045configure-target-winsup: stage_current
34046@endif gcc-bootstrap
25b42232
PB
34047@if target-winsup
34048maybe-configure-target-winsup: configure-target-winsup
cc11cc9b 34049configure-target-winsup:
f41d6665
DJ
34050 @: $(MAKE); $(unstage)
34051 @r=`${PWD_COMMAND}`; export r; \
34052 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34053 echo "Checking multilib configuration for winsup..."; \
34054 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/winsup ; \
34055 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/winsup/multilib.tmp 2> /dev/null ; \
34056 if test -r $(TARGET_SUBDIR)/winsup/multilib.out; then \
34057 if cmp -s $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; then \
34058 rm -f $(TARGET_SUBDIR)/winsup/multilib.tmp; \
34059 else \
34060 rm -f $(TARGET_SUBDIR)/winsup/Makefile; \
34061 mv $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; \
34062 fi; \
34063 else \
34064 mv $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; \
cc11cc9b
PB
34065 fi; \
34066 test ! -f $(TARGET_SUBDIR)/winsup/Makefile || exit 0; \
295f4e42 34067 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/winsup ; \
4fc4dd12 34068 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
34069 echo Configuring in $(TARGET_SUBDIR)/winsup; \
34070 cd "$(TARGET_SUBDIR)/winsup" || exit 1; \
4977bab6 34071 case $(srcdir) in \
215c351a
PB
34072 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34073 *) topdir=`echo $(TARGET_SUBDIR)/winsup/ | \
34074 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 34075 esac; \
215c351a
PB
34076 srcdiroption="--srcdir=$${topdir}/winsup"; \
34077 libsrcdir="$$s/winsup"; \
295f4e42
NN
34078 rm -f no-such-file || : ; \
34079 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 34080 $(TARGET_CONFIGARGS) $${srcdiroption} \
4977bab6 34081 || exit 1
60975492 34082@endif target-winsup
4977bab6 34083
25b42232
PB
34084
34085
ce406537
PB
34086
34087
295f4e42
NN
34088.PHONY: all-target-winsup maybe-all-target-winsup
34089maybe-all-target-winsup:
3ff3adad
PB
34090@if gcc-bootstrap
34091all-target-winsup: stage_current
34092@endif gcc-bootstrap
60975492 34093@if target-winsup
7c27e184 34094TARGET-target-winsup=all
60975492 34095maybe-all-target-winsup: all-target-winsup
295f4e42 34096all-target-winsup: configure-target-winsup
f41d6665 34097 @: $(MAKE); $(unstage)
8c90b13a
L
34098 @r=`${PWD_COMMAND}`; export r; \
34099 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34100 $(NORMAL_TARGET_EXPORTS) \
295f4e42 34101 (cd $(TARGET_SUBDIR)/winsup && \
25b42232 34102 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-winsup))
60975492 34103@endif target-winsup
4977bab6 34104
25b42232
PB
34105
34106
ce406537
PB
34107
34108
295f4e42
NN
34109.PHONY: check-target-winsup maybe-check-target-winsup
34110maybe-check-target-winsup:
60975492
PB
34111@if target-winsup
34112maybe-check-target-winsup: check-target-winsup
4977bab6 34113
295f4e42 34114check-target-winsup:
f41d6665 34115 @: $(MAKE); $(unstage)
295f4e42
NN
34116 @r=`${PWD_COMMAND}`; export r; \
34117 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34118 $(NORMAL_TARGET_EXPORTS) \
295f4e42 34119 (cd $(TARGET_SUBDIR)/winsup && \
a52a0a7f 34120 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4977bab6 34121
60975492 34122@endif target-winsup
4977bab6 34123
295f4e42
NN
34124.PHONY: install-target-winsup maybe-install-target-winsup
34125maybe-install-target-winsup:
60975492
PB
34126@if target-winsup
34127maybe-install-target-winsup: install-target-winsup
7e2dbcef 34128
295f4e42 34129install-target-winsup: installdirs
f41d6665 34130 @: $(MAKE); $(unstage)
295f4e42
NN
34131 @r=`${PWD_COMMAND}`; export r; \
34132 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34133 $(NORMAL_TARGET_EXPORTS) \
295f4e42 34134 (cd $(TARGET_SUBDIR)/winsup && \
a52a0a7f 34135 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4977bab6 34136
60975492 34137@endif target-winsup
4977bab6 34138
295f4e42
NN
34139# Other targets (info, dvi, etc.)
34140
34141.PHONY: maybe-info-target-winsup info-target-winsup
34142maybe-info-target-winsup:
60975492
PB
34143@if target-winsup
34144maybe-info-target-winsup: info-target-winsup
295f4e42
NN
34145
34146info-target-winsup: \
05750653 34147 configure-target-winsup
f41d6665 34148 @: $(MAKE); $(unstage)
295f4e42 34149 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
8c90b13a
L
34150 r=`${PWD_COMMAND}`; export r; \
34151 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34152 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
34153 echo "Doing info in $(TARGET_SUBDIR)/winsup" ; \
34154 for flag in $(EXTRA_TARGET_FLAGS); do \
34155 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34156 done; \
34157 (cd $(TARGET_SUBDIR)/winsup && \
34158 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34159 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34160 "RANLIB=$${RANLIB}" \
34161 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 34162 info) \
4977bab6
ZW
34163 || exit 1
34164
60975492 34165@endif target-winsup
4977bab6 34166
295f4e42
NN
34167.PHONY: maybe-dvi-target-winsup dvi-target-winsup
34168maybe-dvi-target-winsup:
60975492
PB
34169@if target-winsup
34170maybe-dvi-target-winsup: dvi-target-winsup
4977bab6 34171
295f4e42 34172dvi-target-winsup: \
05750653 34173 configure-target-winsup
f41d6665 34174 @: $(MAKE); $(unstage)
295f4e42
NN
34175 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
34176 r=`${PWD_COMMAND}`; export r; \
8c90b13a 34177 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34178 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
34179 echo "Doing dvi in $(TARGET_SUBDIR)/winsup" ; \
34180 for flag in $(EXTRA_TARGET_FLAGS); do \
34181 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34182 done; \
34183 (cd $(TARGET_SUBDIR)/winsup && \
34184 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34185 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34186 "RANLIB=$${RANLIB}" \
34187 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 34188 dvi) \
295f4e42 34189 || exit 1
4977bab6 34190
60975492 34191@endif target-winsup
4977bab6 34192
f87a2b2e
MS
34193.PHONY: maybe-html-target-winsup html-target-winsup
34194maybe-html-target-winsup:
34195@if target-winsup
34196maybe-html-target-winsup: html-target-winsup
34197
34198html-target-winsup: \
05750653 34199 configure-target-winsup
f41d6665 34200 @: $(MAKE); $(unstage)
f87a2b2e
MS
34201 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
34202 r=`${PWD_COMMAND}`; export r; \
34203 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
34204 $(NORMAL_TARGET_EXPORTS) \
34205 echo "Doing html in $(TARGET_SUBDIR)/winsup" ; \
34206 for flag in $(EXTRA_TARGET_FLAGS); do \
34207 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34208 done; \
34209 (cd $(TARGET_SUBDIR)/winsup && \
34210 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34211 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34212 "RANLIB=$${RANLIB}" \
34213 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
34214 html) \
34215 || exit 1
34216
34217@endif target-winsup
34218
295f4e42
NN
34219.PHONY: maybe-TAGS-target-winsup TAGS-target-winsup
34220maybe-TAGS-target-winsup:
60975492
PB
34221@if target-winsup
34222maybe-TAGS-target-winsup: TAGS-target-winsup
7e2dbcef 34223
295f4e42 34224TAGS-target-winsup: \
05750653 34225 configure-target-winsup
f41d6665 34226 @: $(MAKE); $(unstage)
295f4e42
NN
34227 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
34228 r=`${PWD_COMMAND}`; export r; \
8c90b13a 34229 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34230 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
34231 echo "Doing TAGS in $(TARGET_SUBDIR)/winsup" ; \
34232 for flag in $(EXTRA_TARGET_FLAGS); do \
34233 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34234 done; \
34235 (cd $(TARGET_SUBDIR)/winsup && \
34236 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34237 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34238 "RANLIB=$${RANLIB}" \
34239 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 34240 TAGS) \
295f4e42 34241 || exit 1
4977bab6 34242
60975492 34243@endif target-winsup
4977bab6 34244
295f4e42
NN
34245.PHONY: maybe-install-info-target-winsup install-info-target-winsup
34246maybe-install-info-target-winsup:
60975492
PB
34247@if target-winsup
34248maybe-install-info-target-winsup: install-info-target-winsup
295f4e42
NN
34249
34250install-info-target-winsup: \
34251 configure-target-winsup \
05750653 34252 info-target-winsup
f41d6665 34253 @: $(MAKE); $(unstage)
295f4e42 34254 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
8c90b13a
L
34255 r=`${PWD_COMMAND}`; export r; \
34256 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34257 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
34258 echo "Doing install-info in $(TARGET_SUBDIR)/winsup" ; \
34259 for flag in $(EXTRA_TARGET_FLAGS); do \
34260 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34261 done; \
34262 (cd $(TARGET_SUBDIR)/winsup && \
34263 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34264 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34265 "RANLIB=$${RANLIB}" \
34266 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 34267 install-info) \
4977bab6
ZW
34268 || exit 1
34269
60975492 34270@endif target-winsup
295f4e42 34271
65d6e994
CD
34272.PHONY: maybe-install-html-target-winsup install-html-target-winsup
34273maybe-install-html-target-winsup:
34274@if target-winsup
34275maybe-install-html-target-winsup: install-html-target-winsup
34276
34277install-html-target-winsup: \
34278 configure-target-winsup \
34279 html-target-winsup
34280 @: $(MAKE); $(unstage)
34281 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
34282 r=`${PWD_COMMAND}`; export r; \
34283 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34284 $(NORMAL_TARGET_EXPORTS) \
34285 echo "Doing install-html in $(TARGET_SUBDIR)/winsup" ; \
34286 for flag in $(EXTRA_TARGET_FLAGS); do \
34287 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34288 done; \
34289 (cd $(TARGET_SUBDIR)/winsup && \
34290 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34291 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34292 "RANLIB=$${RANLIB}" \
34293 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
34294 install-html) \
34295 || exit 1
34296
34297@endif target-winsup
34298
295f4e42
NN
34299.PHONY: maybe-installcheck-target-winsup installcheck-target-winsup
34300maybe-installcheck-target-winsup:
60975492
PB
34301@if target-winsup
34302maybe-installcheck-target-winsup: installcheck-target-winsup
295f4e42
NN
34303
34304installcheck-target-winsup: \
05750653 34305 configure-target-winsup
f41d6665 34306 @: $(MAKE); $(unstage)
295f4e42
NN
34307 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
34308 r=`${PWD_COMMAND}`; export r; \
8c90b13a 34309 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34310 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
34311 echo "Doing installcheck in $(TARGET_SUBDIR)/winsup" ; \
34312 for flag in $(EXTRA_TARGET_FLAGS); do \
34313 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34314 done; \
34315 (cd $(TARGET_SUBDIR)/winsup && \
34316 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34317 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34318 "RANLIB=$${RANLIB}" \
34319 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 34320 installcheck) \
295f4e42 34321 || exit 1
4977bab6 34322
60975492 34323@endif target-winsup
4977bab6 34324
295f4e42
NN
34325.PHONY: maybe-mostlyclean-target-winsup mostlyclean-target-winsup
34326maybe-mostlyclean-target-winsup:
60975492
PB
34327@if target-winsup
34328maybe-mostlyclean-target-winsup: mostlyclean-target-winsup
295f4e42 34329
05750653 34330mostlyclean-target-winsup:
f41d6665 34331 @: $(MAKE); $(unstage)
295f4e42
NN
34332 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
34333 r=`${PWD_COMMAND}`; export r; \
8c90b13a 34334 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34335 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
34336 echo "Doing mostlyclean in $(TARGET_SUBDIR)/winsup" ; \
34337 for flag in $(EXTRA_TARGET_FLAGS); do \
34338 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34339 done; \
34340 (cd $(TARGET_SUBDIR)/winsup && \
34341 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34342 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34343 "RANLIB=$${RANLIB}" \
34344 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 34345 mostlyclean) \
295f4e42 34346 || exit 1
4977bab6 34347
60975492 34348@endif target-winsup
4977bab6 34349
295f4e42
NN
34350.PHONY: maybe-clean-target-winsup clean-target-winsup
34351maybe-clean-target-winsup:
60975492
PB
34352@if target-winsup
34353maybe-clean-target-winsup: clean-target-winsup
7e2dbcef 34354
05750653 34355clean-target-winsup:
f41d6665 34356 @: $(MAKE); $(unstage)
295f4e42
NN
34357 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
34358 r=`${PWD_COMMAND}`; export r; \
8c90b13a 34359 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34360 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
34361 echo "Doing clean in $(TARGET_SUBDIR)/winsup" ; \
34362 for flag in $(EXTRA_TARGET_FLAGS); do \
34363 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34364 done; \
34365 (cd $(TARGET_SUBDIR)/winsup && \
34366 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34367 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34368 "RANLIB=$${RANLIB}" \
34369 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 34370 clean) \
295f4e42 34371 || exit 1
4977bab6 34372
60975492 34373@endif target-winsup
4977bab6 34374
295f4e42
NN
34375.PHONY: maybe-distclean-target-winsup distclean-target-winsup
34376maybe-distclean-target-winsup:
60975492
PB
34377@if target-winsup
34378maybe-distclean-target-winsup: distclean-target-winsup
295f4e42 34379
05750653 34380distclean-target-winsup:
f41d6665 34381 @: $(MAKE); $(unstage)
295f4e42 34382 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
8c90b13a
L
34383 r=`${PWD_COMMAND}`; export r; \
34384 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34385 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
34386 echo "Doing distclean in $(TARGET_SUBDIR)/winsup" ; \
34387 for flag in $(EXTRA_TARGET_FLAGS); do \
34388 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34389 done; \
34390 (cd $(TARGET_SUBDIR)/winsup && \
34391 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34392 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34393 "RANLIB=$${RANLIB}" \
34394 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 34395 distclean) \
4977bab6
ZW
34396 || exit 1
34397
60975492 34398@endif target-winsup
4977bab6 34399
295f4e42
NN
34400.PHONY: maybe-maintainer-clean-target-winsup maintainer-clean-target-winsup
34401maybe-maintainer-clean-target-winsup:
60975492
PB
34402@if target-winsup
34403maybe-maintainer-clean-target-winsup: maintainer-clean-target-winsup
4977bab6 34404
05750653 34405maintainer-clean-target-winsup:
f41d6665 34406 @: $(MAKE); $(unstage)
295f4e42
NN
34407 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
34408 r=`${PWD_COMMAND}`; export r; \
8c90b13a 34409 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34410 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
34411 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/winsup" ; \
34412 for flag in $(EXTRA_TARGET_FLAGS); do \
34413 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34414 done; \
34415 (cd $(TARGET_SUBDIR)/winsup && \
34416 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34417 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34418 "RANLIB=$${RANLIB}" \
34419 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 34420 maintainer-clean) \
295f4e42 34421 || exit 1
4977bab6 34422
60975492 34423@endif target-winsup
4977bab6 34424
7e2dbcef 34425
4977bab6
ZW
34426
34427
25b42232
PB
34428
34429.PHONY: configure-target-libgloss maybe-configure-target-libgloss
34430maybe-configure-target-libgloss:
3ff3adad
PB
34431@if gcc-bootstrap
34432configure-target-libgloss: stage_current
34433@endif gcc-bootstrap
25b42232
PB
34434@if target-libgloss
34435maybe-configure-target-libgloss: configure-target-libgloss
cc11cc9b 34436configure-target-libgloss:
f41d6665
DJ
34437 @: $(MAKE); $(unstage)
34438 @r=`${PWD_COMMAND}`; export r; \
34439 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34440 echo "Checking multilib configuration for libgloss..."; \
34441 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgloss ; \
34442 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgloss/multilib.tmp 2> /dev/null ; \
34443 if test -r $(TARGET_SUBDIR)/libgloss/multilib.out; then \
34444 if cmp -s $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; then \
34445 rm -f $(TARGET_SUBDIR)/libgloss/multilib.tmp; \
34446 else \
34447 rm -f $(TARGET_SUBDIR)/libgloss/Makefile; \
34448 mv $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; \
34449 fi; \
34450 else \
34451 mv $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; \
cc11cc9b
PB
34452 fi; \
34453 test ! -f $(TARGET_SUBDIR)/libgloss/Makefile || exit 0; \
295f4e42 34454 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgloss ; \
4fc4dd12 34455 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
34456 echo Configuring in $(TARGET_SUBDIR)/libgloss; \
34457 cd "$(TARGET_SUBDIR)/libgloss" || exit 1; \
4977bab6 34458 case $(srcdir) in \
215c351a
PB
34459 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34460 *) topdir=`echo $(TARGET_SUBDIR)/libgloss/ | \
34461 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 34462 esac; \
215c351a
PB
34463 srcdiroption="--srcdir=$${topdir}/libgloss"; \
34464 libsrcdir="$$s/libgloss"; \
295f4e42
NN
34465 rm -f no-such-file || : ; \
34466 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 34467 $(TARGET_CONFIGARGS) $${srcdiroption} \
4977bab6 34468 || exit 1
60975492 34469@endif target-libgloss
4977bab6 34470
25b42232
PB
34471
34472
ce406537
PB
34473
34474
295f4e42
NN
34475.PHONY: all-target-libgloss maybe-all-target-libgloss
34476maybe-all-target-libgloss:
3ff3adad
PB
34477@if gcc-bootstrap
34478all-target-libgloss: stage_current
34479@endif gcc-bootstrap
60975492 34480@if target-libgloss
7c27e184 34481TARGET-target-libgloss=all
60975492 34482maybe-all-target-libgloss: all-target-libgloss
295f4e42 34483all-target-libgloss: configure-target-libgloss
f41d6665 34484 @: $(MAKE); $(unstage)
8c90b13a
L
34485 @r=`${PWD_COMMAND}`; export r; \
34486 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34487 $(NORMAL_TARGET_EXPORTS) \
295f4e42 34488 (cd $(TARGET_SUBDIR)/libgloss && \
25b42232 34489 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libgloss))
60975492 34490@endif target-libgloss
4977bab6 34491
25b42232
PB
34492
34493
ce406537
PB
34494
34495
295f4e42
NN
34496.PHONY: check-target-libgloss maybe-check-target-libgloss
34497maybe-check-target-libgloss:
60975492
PB
34498@if target-libgloss
34499maybe-check-target-libgloss: check-target-libgloss
4977bab6 34500
295f4e42
NN
34501# Dummy target for uncheckable module.
34502check-target-libgloss:
4977bab6 34503
60975492 34504@endif target-libgloss
4977bab6 34505
295f4e42
NN
34506.PHONY: install-target-libgloss maybe-install-target-libgloss
34507maybe-install-target-libgloss:
60975492
PB
34508@if target-libgloss
34509maybe-install-target-libgloss: install-target-libgloss
7e2dbcef 34510
295f4e42 34511install-target-libgloss: installdirs
f41d6665 34512 @: $(MAKE); $(unstage)
8c90b13a
L
34513 @r=`${PWD_COMMAND}`; export r; \
34514 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34515 $(NORMAL_TARGET_EXPORTS) \
295f4e42 34516 (cd $(TARGET_SUBDIR)/libgloss && \
a52a0a7f 34517 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4977bab6 34518
60975492 34519@endif target-libgloss
4977bab6 34520
295f4e42
NN
34521# Other targets (info, dvi, etc.)
34522
34523.PHONY: maybe-info-target-libgloss info-target-libgloss
34524maybe-info-target-libgloss:
60975492
PB
34525@if target-libgloss
34526maybe-info-target-libgloss: info-target-libgloss
295f4e42
NN
34527
34528info-target-libgloss: \
05750653 34529 configure-target-libgloss
f41d6665 34530 @: $(MAKE); $(unstage)
295f4e42 34531 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
8c90b13a
L
34532 r=`${PWD_COMMAND}`; export r; \
34533 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34534 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
34535 echo "Doing info in $(TARGET_SUBDIR)/libgloss" ; \
34536 for flag in $(EXTRA_TARGET_FLAGS); do \
34537 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34538 done; \
34539 (cd $(TARGET_SUBDIR)/libgloss && \
34540 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34541 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34542 "RANLIB=$${RANLIB}" \
34543 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 34544 info) \
82c34dcb
MC
34545 || exit 1
34546
60975492 34547@endif target-libgloss
82c34dcb 34548
295f4e42
NN
34549.PHONY: maybe-dvi-target-libgloss dvi-target-libgloss
34550maybe-dvi-target-libgloss:
60975492
PB
34551@if target-libgloss
34552maybe-dvi-target-libgloss: dvi-target-libgloss
82c34dcb 34553
295f4e42 34554dvi-target-libgloss: \
05750653 34555 configure-target-libgloss
f41d6665 34556 @: $(MAKE); $(unstage)
295f4e42
NN
34557 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
34558 r=`${PWD_COMMAND}`; export r; \
8c90b13a 34559 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34560 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
34561 echo "Doing dvi in $(TARGET_SUBDIR)/libgloss" ; \
34562 for flag in $(EXTRA_TARGET_FLAGS); do \
34563 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34564 done; \
34565 (cd $(TARGET_SUBDIR)/libgloss && \
34566 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34567 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34568 "RANLIB=$${RANLIB}" \
34569 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 34570 dvi) \
295f4e42 34571 || exit 1
82c34dcb 34572
60975492 34573@endif target-libgloss
82c34dcb 34574
f87a2b2e
MS
34575.PHONY: maybe-html-target-libgloss html-target-libgloss
34576maybe-html-target-libgloss:
34577@if target-libgloss
34578maybe-html-target-libgloss: html-target-libgloss
34579
34580html-target-libgloss: \
05750653 34581 configure-target-libgloss
f41d6665 34582 @: $(MAKE); $(unstage)
f87a2b2e
MS
34583 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
34584 r=`${PWD_COMMAND}`; export r; \
34585 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
34586 $(NORMAL_TARGET_EXPORTS) \
34587 echo "Doing html in $(TARGET_SUBDIR)/libgloss" ; \
34588 for flag in $(EXTRA_TARGET_FLAGS); do \
34589 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34590 done; \
34591 (cd $(TARGET_SUBDIR)/libgloss && \
34592 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34593 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34594 "RANLIB=$${RANLIB}" \
34595 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
34596 html) \
34597 || exit 1
34598
34599@endif target-libgloss
34600
295f4e42
NN
34601.PHONY: maybe-TAGS-target-libgloss TAGS-target-libgloss
34602maybe-TAGS-target-libgloss:
60975492
PB
34603@if target-libgloss
34604maybe-TAGS-target-libgloss: TAGS-target-libgloss
7e2dbcef 34605
295f4e42 34606TAGS-target-libgloss: \
05750653 34607 configure-target-libgloss
f41d6665 34608 @: $(MAKE); $(unstage)
295f4e42
NN
34609 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
34610 r=`${PWD_COMMAND}`; export r; \
8c90b13a 34611 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34612 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
34613 echo "Doing TAGS in $(TARGET_SUBDIR)/libgloss" ; \
34614 for flag in $(EXTRA_TARGET_FLAGS); do \
34615 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34616 done; \
34617 (cd $(TARGET_SUBDIR)/libgloss && \
34618 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34619 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34620 "RANLIB=$${RANLIB}" \
34621 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 34622 TAGS) \
295f4e42 34623 || exit 1
82c34dcb 34624
60975492 34625@endif target-libgloss
82c34dcb 34626
295f4e42
NN
34627.PHONY: maybe-install-info-target-libgloss install-info-target-libgloss
34628maybe-install-info-target-libgloss:
60975492
PB
34629@if target-libgloss
34630maybe-install-info-target-libgloss: install-info-target-libgloss
295f4e42
NN
34631
34632install-info-target-libgloss: \
34633 configure-target-libgloss \
05750653 34634 info-target-libgloss
f41d6665 34635 @: $(MAKE); $(unstage)
295f4e42 34636 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
8c90b13a
L
34637 r=`${PWD_COMMAND}`; export r; \
34638 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34639 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
34640 echo "Doing install-info in $(TARGET_SUBDIR)/libgloss" ; \
34641 for flag in $(EXTRA_TARGET_FLAGS); do \
34642 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34643 done; \
34644 (cd $(TARGET_SUBDIR)/libgloss && \
34645 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34646 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34647 "RANLIB=$${RANLIB}" \
34648 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 34649 install-info) \
4977bab6
ZW
34650 || exit 1
34651
60975492 34652@endif target-libgloss
4977bab6 34653
65d6e994
CD
34654.PHONY: maybe-install-html-target-libgloss install-html-target-libgloss
34655maybe-install-html-target-libgloss:
34656@if target-libgloss
34657maybe-install-html-target-libgloss: install-html-target-libgloss
34658
34659install-html-target-libgloss: \
34660 configure-target-libgloss \
34661 html-target-libgloss
34662 @: $(MAKE); $(unstage)
34663 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
34664 r=`${PWD_COMMAND}`; export r; \
34665 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34666 $(NORMAL_TARGET_EXPORTS) \
34667 echo "Doing install-html in $(TARGET_SUBDIR)/libgloss" ; \
34668 for flag in $(EXTRA_TARGET_FLAGS); do \
34669 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34670 done; \
34671 (cd $(TARGET_SUBDIR)/libgloss && \
34672 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34673 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34674 "RANLIB=$${RANLIB}" \
34675 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
34676 install-html) \
34677 || exit 1
34678
34679@endif target-libgloss
34680
295f4e42
NN
34681.PHONY: maybe-installcheck-target-libgloss installcheck-target-libgloss
34682maybe-installcheck-target-libgloss:
60975492
PB
34683@if target-libgloss
34684maybe-installcheck-target-libgloss: installcheck-target-libgloss
4977bab6 34685
295f4e42 34686installcheck-target-libgloss: \
05750653 34687 configure-target-libgloss
f41d6665 34688 @: $(MAKE); $(unstage)
295f4e42
NN
34689 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
34690 r=`${PWD_COMMAND}`; export r; \
34691 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34692 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
34693 echo "Doing installcheck in $(TARGET_SUBDIR)/libgloss" ; \
34694 for flag in $(EXTRA_TARGET_FLAGS); do \
34695 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34696 done; \
34697 (cd $(TARGET_SUBDIR)/libgloss && \
34698 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34699 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34700 "RANLIB=$${RANLIB}" \
34701 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 34702 installcheck) \
295f4e42 34703 || exit 1
4977bab6 34704
60975492 34705@endif target-libgloss
4977bab6 34706
295f4e42
NN
34707.PHONY: maybe-mostlyclean-target-libgloss mostlyclean-target-libgloss
34708maybe-mostlyclean-target-libgloss:
60975492
PB
34709@if target-libgloss
34710maybe-mostlyclean-target-libgloss: mostlyclean-target-libgloss
7e2dbcef 34711
05750653 34712mostlyclean-target-libgloss:
f41d6665 34713 @: $(MAKE); $(unstage)
295f4e42
NN
34714 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
34715 r=`${PWD_COMMAND}`; export r; \
8c90b13a 34716 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34717 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
34718 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgloss" ; \
34719 for flag in $(EXTRA_TARGET_FLAGS); do \
34720 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34721 done; \
34722 (cd $(TARGET_SUBDIR)/libgloss && \
34723 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34724 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34725 "RANLIB=$${RANLIB}" \
34726 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 34727 mostlyclean) \
295f4e42 34728 || exit 1
4977bab6 34729
60975492 34730@endif target-libgloss
4977bab6 34731
295f4e42
NN
34732.PHONY: maybe-clean-target-libgloss clean-target-libgloss
34733maybe-clean-target-libgloss:
60975492
PB
34734@if target-libgloss
34735maybe-clean-target-libgloss: clean-target-libgloss
295f4e42 34736
05750653 34737clean-target-libgloss:
f41d6665 34738 @: $(MAKE); $(unstage)
295f4e42 34739 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
8c90b13a
L
34740 r=`${PWD_COMMAND}`; export r; \
34741 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34742 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
34743 echo "Doing clean in $(TARGET_SUBDIR)/libgloss" ; \
34744 for flag in $(EXTRA_TARGET_FLAGS); do \
34745 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34746 done; \
34747 (cd $(TARGET_SUBDIR)/libgloss && \
34748 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34749 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34750 "RANLIB=$${RANLIB}" \
34751 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 34752 clean) \
4977bab6
ZW
34753 || exit 1
34754
60975492 34755@endif target-libgloss
4977bab6 34756
295f4e42
NN
34757.PHONY: maybe-distclean-target-libgloss distclean-target-libgloss
34758maybe-distclean-target-libgloss:
60975492
PB
34759@if target-libgloss
34760maybe-distclean-target-libgloss: distclean-target-libgloss
4977bab6 34761
05750653 34762distclean-target-libgloss:
f41d6665 34763 @: $(MAKE); $(unstage)
295f4e42
NN
34764 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
34765 r=`${PWD_COMMAND}`; export r; \
34766 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34767 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
34768 echo "Doing distclean in $(TARGET_SUBDIR)/libgloss" ; \
34769 for flag in $(EXTRA_TARGET_FLAGS); do \
34770 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34771 done; \
34772 (cd $(TARGET_SUBDIR)/libgloss && \
34773 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34774 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34775 "RANLIB=$${RANLIB}" \
34776 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 34777 distclean) \
295f4e42 34778 || exit 1
4977bab6 34779
60975492 34780@endif target-libgloss
4977bab6 34781
295f4e42
NN
34782.PHONY: maybe-maintainer-clean-target-libgloss maintainer-clean-target-libgloss
34783maybe-maintainer-clean-target-libgloss:
60975492
PB
34784@if target-libgloss
34785maybe-maintainer-clean-target-libgloss: maintainer-clean-target-libgloss
7e2dbcef 34786
05750653 34787maintainer-clean-target-libgloss:
f41d6665 34788 @: $(MAKE); $(unstage)
295f4e42
NN
34789 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
34790 r=`${PWD_COMMAND}`; export r; \
8c90b13a 34791 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34792 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
34793 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgloss" ; \
34794 for flag in $(EXTRA_TARGET_FLAGS); do \
34795 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34796 done; \
34797 (cd $(TARGET_SUBDIR)/libgloss && \
34798 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34799 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34800 "RANLIB=$${RANLIB}" \
34801 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 34802 maintainer-clean) \
295f4e42 34803 || exit 1
4977bab6 34804
60975492 34805@endif target-libgloss
4977bab6 34806
4977bab6 34807
4977bab6 34808
4977bab6 34809
25b42232
PB
34810
34811.PHONY: configure-target-libiberty maybe-configure-target-libiberty
34812maybe-configure-target-libiberty:
3ff3adad
PB
34813@if gcc-bootstrap
34814configure-target-libiberty: stage_current
34815@endif gcc-bootstrap
25b42232
PB
34816@if target-libiberty
34817maybe-configure-target-libiberty: configure-target-libiberty
cc11cc9b 34818configure-target-libiberty:
f41d6665
DJ
34819 @: $(MAKE); $(unstage)
34820 @r=`${PWD_COMMAND}`; export r; \
34821 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34822 echo "Checking multilib configuration for libiberty..."; \
34823 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libiberty ; \
34824 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libiberty/multilib.tmp 2> /dev/null ; \
34825 if test -r $(TARGET_SUBDIR)/libiberty/multilib.out; then \
34826 if cmp -s $(TARGET_SUBDIR)/libiberty/multilib.tmp $(TARGET_SUBDIR)/libiberty/multilib.out; then \
34827 rm -f $(TARGET_SUBDIR)/libiberty/multilib.tmp; \
34828 else \
34829 rm -f $(TARGET_SUBDIR)/libiberty/Makefile; \
34830 mv $(TARGET_SUBDIR)/libiberty/multilib.tmp $(TARGET_SUBDIR)/libiberty/multilib.out; \
34831 fi; \
34832 else \
34833 mv $(TARGET_SUBDIR)/libiberty/multilib.tmp $(TARGET_SUBDIR)/libiberty/multilib.out; \
cc11cc9b
PB
34834 fi; \
34835 test ! -f $(TARGET_SUBDIR)/libiberty/Makefile || exit 0; \
295f4e42 34836 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libiberty ; \
4fc4dd12 34837 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
34838 echo Configuring in $(TARGET_SUBDIR)/libiberty; \
34839 cd "$(TARGET_SUBDIR)/libiberty" || exit 1; \
3aa83176 34840 case $(srcdir) in \
215c351a
PB
34841 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34842 *) topdir=`echo $(TARGET_SUBDIR)/libiberty/ | \
34843 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3aa83176 34844 esac; \
215c351a
PB
34845 srcdiroption="--srcdir=$${topdir}/libiberty"; \
34846 libsrcdir="$$s/libiberty"; \
3aa83176
NN
34847 rm -f no-such-file || : ; \
34848 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 34849 $(TARGET_CONFIGARGS) $${srcdiroption} \
3aa83176 34850 || exit 1
60975492 34851@endif target-libiberty
4977bab6 34852
25b42232
PB
34853
34854
ce406537
PB
34855
34856
295f4e42
NN
34857.PHONY: all-target-libiberty maybe-all-target-libiberty
34858maybe-all-target-libiberty:
3ff3adad
PB
34859@if gcc-bootstrap
34860all-target-libiberty: stage_current
34861@endif gcc-bootstrap
60975492 34862@if target-libiberty
7c27e184 34863TARGET-target-libiberty=all
60975492 34864maybe-all-target-libiberty: all-target-libiberty
295f4e42 34865all-target-libiberty: configure-target-libiberty
f41d6665 34866 @: $(MAKE); $(unstage)
8c90b13a
L
34867 @r=`${PWD_COMMAND}`; export r; \
34868 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34869 $(NORMAL_TARGET_EXPORTS) \
295f4e42 34870 (cd $(TARGET_SUBDIR)/libiberty && \
25b42232 34871 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libiberty))
60975492 34872@endif target-libiberty
4977bab6 34873
25b42232
PB
34874
34875
ce406537
PB
34876
34877
295f4e42
NN
34878.PHONY: check-target-libiberty maybe-check-target-libiberty
34879maybe-check-target-libiberty:
60975492
PB
34880@if target-libiberty
34881maybe-check-target-libiberty: check-target-libiberty
7e2dbcef 34882
295f4e42 34883check-target-libiberty:
f41d6665 34884 @: $(MAKE); $(unstage)
8c90b13a
L
34885 @r=`${PWD_COMMAND}`; export r; \
34886 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34887 $(NORMAL_TARGET_EXPORTS) \
295f4e42 34888 (cd $(TARGET_SUBDIR)/libiberty && \
a52a0a7f 34889 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4977bab6 34890
60975492 34891@endif target-libiberty
4977bab6 34892
295f4e42
NN
34893.PHONY: install-target-libiberty maybe-install-target-libiberty
34894maybe-install-target-libiberty:
60975492
PB
34895@if target-libiberty
34896maybe-install-target-libiberty: install-target-libiberty
295f4e42
NN
34897
34898install-target-libiberty: installdirs
f41d6665 34899 @: $(MAKE); $(unstage)
295f4e42
NN
34900 @r=`${PWD_COMMAND}`; export r; \
34901 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34902 $(NORMAL_TARGET_EXPORTS) \
295f4e42 34903 (cd $(TARGET_SUBDIR)/libiberty && \
a52a0a7f 34904 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
295f4e42 34905
60975492 34906@endif target-libiberty
295f4e42
NN
34907
34908# Other targets (info, dvi, etc.)
34909
34910.PHONY: maybe-info-target-libiberty info-target-libiberty
34911maybe-info-target-libiberty:
60975492
PB
34912@if target-libiberty
34913maybe-info-target-libiberty: info-target-libiberty
295f4e42
NN
34914
34915info-target-libiberty: \
05750653 34916 configure-target-libiberty
f41d6665 34917 @: $(MAKE); $(unstage)
295f4e42
NN
34918 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
34919 r=`${PWD_COMMAND}`; export r; \
34920 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34921 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
34922 echo "Doing info in $(TARGET_SUBDIR)/libiberty" ; \
34923 for flag in $(EXTRA_TARGET_FLAGS); do \
34924 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34925 done; \
34926 (cd $(TARGET_SUBDIR)/libiberty && \
34927 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34928 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34929 "RANLIB=$${RANLIB}" \
34930 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 34931 info) \
295f4e42
NN
34932 || exit 1
34933
60975492 34934@endif target-libiberty
295f4e42
NN
34935
34936.PHONY: maybe-dvi-target-libiberty dvi-target-libiberty
34937maybe-dvi-target-libiberty:
60975492
PB
34938@if target-libiberty
34939maybe-dvi-target-libiberty: dvi-target-libiberty
295f4e42
NN
34940
34941dvi-target-libiberty: \
05750653 34942 configure-target-libiberty
f41d6665 34943 @: $(MAKE); $(unstage)
295f4e42
NN
34944 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
34945 r=`${PWD_COMMAND}`; export r; \
34946 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34947 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
34948 echo "Doing dvi in $(TARGET_SUBDIR)/libiberty" ; \
34949 for flag in $(EXTRA_TARGET_FLAGS); do \
34950 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34951 done; \
34952 (cd $(TARGET_SUBDIR)/libiberty && \
34953 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34954 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34955 "RANLIB=$${RANLIB}" \
34956 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 34957 dvi) \
295f4e42
NN
34958 || exit 1
34959
60975492 34960@endif target-libiberty
295f4e42 34961
f87a2b2e
MS
34962.PHONY: maybe-html-target-libiberty html-target-libiberty
34963maybe-html-target-libiberty:
34964@if target-libiberty
34965maybe-html-target-libiberty: html-target-libiberty
34966
34967html-target-libiberty: \
05750653 34968 configure-target-libiberty
f41d6665 34969 @: $(MAKE); $(unstage)
f87a2b2e
MS
34970 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
34971 r=`${PWD_COMMAND}`; export r; \
34972 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
34973 $(NORMAL_TARGET_EXPORTS) \
34974 echo "Doing html in $(TARGET_SUBDIR)/libiberty" ; \
34975 for flag in $(EXTRA_TARGET_FLAGS); do \
34976 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34977 done; \
34978 (cd $(TARGET_SUBDIR)/libiberty && \
34979 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34980 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34981 "RANLIB=$${RANLIB}" \
34982 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
34983 html) \
34984 || exit 1
34985
34986@endif target-libiberty
34987
295f4e42
NN
34988.PHONY: maybe-TAGS-target-libiberty TAGS-target-libiberty
34989maybe-TAGS-target-libiberty:
60975492
PB
34990@if target-libiberty
34991maybe-TAGS-target-libiberty: TAGS-target-libiberty
295f4e42
NN
34992
34993TAGS-target-libiberty: \
05750653 34994 configure-target-libiberty
f41d6665 34995 @: $(MAKE); $(unstage)
295f4e42
NN
34996 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
34997 r=`${PWD_COMMAND}`; export r; \
34998 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34999 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35000 echo "Doing TAGS in $(TARGET_SUBDIR)/libiberty" ; \
35001 for flag in $(EXTRA_TARGET_FLAGS); do \
35002 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35003 done; \
35004 (cd $(TARGET_SUBDIR)/libiberty && \
35005 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35006 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35007 "RANLIB=$${RANLIB}" \
35008 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35009 TAGS) \
295f4e42
NN
35010 || exit 1
35011
60975492 35012@endif target-libiberty
295f4e42
NN
35013
35014.PHONY: maybe-install-info-target-libiberty install-info-target-libiberty
35015maybe-install-info-target-libiberty:
60975492
PB
35016@if target-libiberty
35017maybe-install-info-target-libiberty: install-info-target-libiberty
295f4e42
NN
35018
35019install-info-target-libiberty: \
35020 configure-target-libiberty \
05750653 35021 info-target-libiberty
f41d6665 35022 @: $(MAKE); $(unstage)
295f4e42
NN
35023 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
35024 r=`${PWD_COMMAND}`; export r; \
35025 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35026 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35027 echo "Doing install-info in $(TARGET_SUBDIR)/libiberty" ; \
35028 for flag in $(EXTRA_TARGET_FLAGS); do \
35029 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35030 done; \
35031 (cd $(TARGET_SUBDIR)/libiberty && \
35032 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35033 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35034 "RANLIB=$${RANLIB}" \
35035 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35036 install-info) \
295f4e42
NN
35037 || exit 1
35038
60975492 35039@endif target-libiberty
295f4e42 35040
65d6e994
CD
35041.PHONY: maybe-install-html-target-libiberty install-html-target-libiberty
35042maybe-install-html-target-libiberty:
35043@if target-libiberty
35044maybe-install-html-target-libiberty: install-html-target-libiberty
35045
35046install-html-target-libiberty: \
35047 configure-target-libiberty \
35048 html-target-libiberty
35049 @: $(MAKE); $(unstage)
35050 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
35051 r=`${PWD_COMMAND}`; export r; \
35052 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35053 $(NORMAL_TARGET_EXPORTS) \
35054 echo "Doing install-html in $(TARGET_SUBDIR)/libiberty" ; \
35055 for flag in $(EXTRA_TARGET_FLAGS); do \
35056 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35057 done; \
35058 (cd $(TARGET_SUBDIR)/libiberty && \
35059 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35060 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35061 "RANLIB=$${RANLIB}" \
35062 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
35063 install-html) \
35064 || exit 1
35065
35066@endif target-libiberty
35067
295f4e42
NN
35068.PHONY: maybe-installcheck-target-libiberty installcheck-target-libiberty
35069maybe-installcheck-target-libiberty:
60975492
PB
35070@if target-libiberty
35071maybe-installcheck-target-libiberty: installcheck-target-libiberty
295f4e42
NN
35072
35073installcheck-target-libiberty: \
05750653 35074 configure-target-libiberty
f41d6665 35075 @: $(MAKE); $(unstage)
295f4e42
NN
35076 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
35077 r=`${PWD_COMMAND}`; export r; \
35078 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35079 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35080 echo "Doing installcheck in $(TARGET_SUBDIR)/libiberty" ; \
35081 for flag in $(EXTRA_TARGET_FLAGS); do \
35082 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35083 done; \
35084 (cd $(TARGET_SUBDIR)/libiberty && \
35085 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35086 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35087 "RANLIB=$${RANLIB}" \
35088 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35089 installcheck) \
295f4e42
NN
35090 || exit 1
35091
60975492 35092@endif target-libiberty
295f4e42
NN
35093
35094.PHONY: maybe-mostlyclean-target-libiberty mostlyclean-target-libiberty
35095maybe-mostlyclean-target-libiberty:
60975492
PB
35096@if target-libiberty
35097maybe-mostlyclean-target-libiberty: mostlyclean-target-libiberty
295f4e42 35098
05750653 35099mostlyclean-target-libiberty:
f41d6665 35100 @: $(MAKE); $(unstage)
295f4e42
NN
35101 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
35102 r=`${PWD_COMMAND}`; export r; \
35103 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35104 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35105 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libiberty" ; \
35106 for flag in $(EXTRA_TARGET_FLAGS); do \
35107 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35108 done; \
35109 (cd $(TARGET_SUBDIR)/libiberty && \
35110 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35111 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35112 "RANLIB=$${RANLIB}" \
35113 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35114 mostlyclean) \
295f4e42
NN
35115 || exit 1
35116
60975492 35117@endif target-libiberty
295f4e42
NN
35118
35119.PHONY: maybe-clean-target-libiberty clean-target-libiberty
35120maybe-clean-target-libiberty:
60975492
PB
35121@if target-libiberty
35122maybe-clean-target-libiberty: clean-target-libiberty
295f4e42 35123
05750653 35124clean-target-libiberty:
f41d6665 35125 @: $(MAKE); $(unstage)
295f4e42
NN
35126 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
35127 r=`${PWD_COMMAND}`; export r; \
35128 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35129 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35130 echo "Doing clean in $(TARGET_SUBDIR)/libiberty" ; \
35131 for flag in $(EXTRA_TARGET_FLAGS); do \
35132 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35133 done; \
35134 (cd $(TARGET_SUBDIR)/libiberty && \
35135 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35136 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35137 "RANLIB=$${RANLIB}" \
35138 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35139 clean) \
295f4e42
NN
35140 || exit 1
35141
60975492 35142@endif target-libiberty
295f4e42
NN
35143
35144.PHONY: maybe-distclean-target-libiberty distclean-target-libiberty
35145maybe-distclean-target-libiberty:
60975492
PB
35146@if target-libiberty
35147maybe-distclean-target-libiberty: distclean-target-libiberty
295f4e42 35148
05750653 35149distclean-target-libiberty:
f41d6665 35150 @: $(MAKE); $(unstage)
295f4e42
NN
35151 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
35152 r=`${PWD_COMMAND}`; export r; \
35153 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35154 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35155 echo "Doing distclean in $(TARGET_SUBDIR)/libiberty" ; \
35156 for flag in $(EXTRA_TARGET_FLAGS); do \
35157 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35158 done; \
35159 (cd $(TARGET_SUBDIR)/libiberty && \
35160 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35161 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35162 "RANLIB=$${RANLIB}" \
35163 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35164 distclean) \
295f4e42
NN
35165 || exit 1
35166
60975492 35167@endif target-libiberty
295f4e42
NN
35168
35169.PHONY: maybe-maintainer-clean-target-libiberty maintainer-clean-target-libiberty
35170maybe-maintainer-clean-target-libiberty:
60975492
PB
35171@if target-libiberty
35172maybe-maintainer-clean-target-libiberty: maintainer-clean-target-libiberty
295f4e42 35173
05750653 35174maintainer-clean-target-libiberty:
f41d6665 35175 @: $(MAKE); $(unstage)
295f4e42
NN
35176 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
35177 r=`${PWD_COMMAND}`; export r; \
35178 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35179 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35180 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libiberty" ; \
35181 for flag in $(EXTRA_TARGET_FLAGS); do \
35182 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35183 done; \
35184 (cd $(TARGET_SUBDIR)/libiberty && \
35185 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35186 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35187 "RANLIB=$${RANLIB}" \
35188 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35189 maintainer-clean) \
295f4e42 35190 || exit 1
7e2dbcef 35191
60975492 35192@endif target-libiberty
4977bab6
ZW
35193
35194
4977bab6 35195
4977bab6 35196
25b42232
PB
35197
35198.PHONY: configure-target-gperf maybe-configure-target-gperf
35199maybe-configure-target-gperf:
3ff3adad
PB
35200@if gcc-bootstrap
35201configure-target-gperf: stage_current
35202@endif gcc-bootstrap
25b42232
PB
35203@if target-gperf
35204maybe-configure-target-gperf: configure-target-gperf
cc11cc9b 35205configure-target-gperf:
f41d6665
DJ
35206 @: $(MAKE); $(unstage)
35207 @r=`${PWD_COMMAND}`; export r; \
35208 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35209 echo "Checking multilib configuration for gperf..."; \
35210 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/gperf ; \
35211 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/gperf/multilib.tmp 2> /dev/null ; \
35212 if test -r $(TARGET_SUBDIR)/gperf/multilib.out; then \
35213 if cmp -s $(TARGET_SUBDIR)/gperf/multilib.tmp $(TARGET_SUBDIR)/gperf/multilib.out; then \
35214 rm -f $(TARGET_SUBDIR)/gperf/multilib.tmp; \
35215 else \
35216 rm -f $(TARGET_SUBDIR)/gperf/Makefile; \
35217 mv $(TARGET_SUBDIR)/gperf/multilib.tmp $(TARGET_SUBDIR)/gperf/multilib.out; \
35218 fi; \
35219 else \
35220 mv $(TARGET_SUBDIR)/gperf/multilib.tmp $(TARGET_SUBDIR)/gperf/multilib.out; \
cc11cc9b
PB
35221 fi; \
35222 test ! -f $(TARGET_SUBDIR)/gperf/Makefile || exit 0; \
295f4e42 35223 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/gperf ; \
4fc4dd12 35224 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35225 echo Configuring in $(TARGET_SUBDIR)/gperf; \
35226 cd "$(TARGET_SUBDIR)/gperf" || exit 1; \
3aa83176 35227 case $(srcdir) in \
215c351a
PB
35228 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35229 *) topdir=`echo $(TARGET_SUBDIR)/gperf/ | \
35230 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3aa83176 35231 esac; \
215c351a
PB
35232 srcdiroption="--srcdir=$${topdir}/gperf"; \
35233 libsrcdir="$$s/gperf"; \
3aa83176
NN
35234 rm -f no-such-file || : ; \
35235 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 35236 $(TARGET_CONFIGARGS) $${srcdiroption} \
3aa83176 35237 || exit 1
60975492 35238@endif target-gperf
4977bab6 35239
25b42232
PB
35240
35241
ce406537
PB
35242
35243
295f4e42
NN
35244.PHONY: all-target-gperf maybe-all-target-gperf
35245maybe-all-target-gperf:
3ff3adad
PB
35246@if gcc-bootstrap
35247all-target-gperf: stage_current
35248@endif gcc-bootstrap
60975492 35249@if target-gperf
7c27e184 35250TARGET-target-gperf=all
60975492 35251maybe-all-target-gperf: all-target-gperf
295f4e42 35252all-target-gperf: configure-target-gperf
f41d6665 35253 @: $(MAKE); $(unstage)
8c90b13a
L
35254 @r=`${PWD_COMMAND}`; export r; \
35255 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35256 $(NORMAL_TARGET_EXPORTS) \
295f4e42 35257 (cd $(TARGET_SUBDIR)/gperf && \
25b42232 35258 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-gperf))
60975492 35259@endif target-gperf
4977bab6 35260
25b42232
PB
35261
35262
ce406537
PB
35263
35264
295f4e42
NN
35265.PHONY: check-target-gperf maybe-check-target-gperf
35266maybe-check-target-gperf:
60975492
PB
35267@if target-gperf
35268maybe-check-target-gperf: check-target-gperf
7e2dbcef 35269
295f4e42 35270check-target-gperf:
f41d6665 35271 @: $(MAKE); $(unstage)
8c90b13a
L
35272 @r=`${PWD_COMMAND}`; export r; \
35273 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35274 $(NORMAL_TARGET_EXPORTS) \
295f4e42 35275 (cd $(TARGET_SUBDIR)/gperf && \
a52a0a7f 35276 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4977bab6 35277
60975492 35278@endif target-gperf
4977bab6 35279
295f4e42
NN
35280.PHONY: install-target-gperf maybe-install-target-gperf
35281maybe-install-target-gperf:
60975492
PB
35282@if target-gperf
35283maybe-install-target-gperf: install-target-gperf
295f4e42
NN
35284
35285install-target-gperf: installdirs
f41d6665 35286 @: $(MAKE); $(unstage)
295f4e42
NN
35287 @r=`${PWD_COMMAND}`; export r; \
35288 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35289 $(NORMAL_TARGET_EXPORTS) \
295f4e42 35290 (cd $(TARGET_SUBDIR)/gperf && \
a52a0a7f 35291 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
295f4e42 35292
60975492 35293@endif target-gperf
295f4e42
NN
35294
35295# Other targets (info, dvi, etc.)
35296
35297.PHONY: maybe-info-target-gperf info-target-gperf
35298maybe-info-target-gperf:
60975492
PB
35299@if target-gperf
35300maybe-info-target-gperf: info-target-gperf
295f4e42
NN
35301
35302info-target-gperf: \
05750653 35303 configure-target-gperf
f41d6665 35304 @: $(MAKE); $(unstage)
295f4e42
NN
35305 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
35306 r=`${PWD_COMMAND}`; export r; \
35307 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35308 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35309 echo "Doing info in $(TARGET_SUBDIR)/gperf" ; \
35310 for flag in $(EXTRA_TARGET_FLAGS); do \
35311 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35312 done; \
35313 (cd $(TARGET_SUBDIR)/gperf && \
35314 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35315 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35316 "RANLIB=$${RANLIB}" \
35317 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35318 info) \
295f4e42
NN
35319 || exit 1
35320
60975492 35321@endif target-gperf
295f4e42
NN
35322
35323.PHONY: maybe-dvi-target-gperf dvi-target-gperf
35324maybe-dvi-target-gperf:
60975492
PB
35325@if target-gperf
35326maybe-dvi-target-gperf: dvi-target-gperf
295f4e42
NN
35327
35328dvi-target-gperf: \
05750653 35329 configure-target-gperf
f41d6665 35330 @: $(MAKE); $(unstage)
295f4e42
NN
35331 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
35332 r=`${PWD_COMMAND}`; export r; \
35333 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35334 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35335 echo "Doing dvi in $(TARGET_SUBDIR)/gperf" ; \
35336 for flag in $(EXTRA_TARGET_FLAGS); do \
35337 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35338 done; \
35339 (cd $(TARGET_SUBDIR)/gperf && \
35340 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35341 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35342 "RANLIB=$${RANLIB}" \
35343 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35344 dvi) \
295f4e42
NN
35345 || exit 1
35346
60975492 35347@endif target-gperf
295f4e42 35348
f87a2b2e
MS
35349.PHONY: maybe-html-target-gperf html-target-gperf
35350maybe-html-target-gperf:
35351@if target-gperf
35352maybe-html-target-gperf: html-target-gperf
35353
35354html-target-gperf: \
05750653 35355 configure-target-gperf
f41d6665 35356 @: $(MAKE); $(unstage)
f87a2b2e
MS
35357 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
35358 r=`${PWD_COMMAND}`; export r; \
35359 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
35360 $(NORMAL_TARGET_EXPORTS) \
35361 echo "Doing html in $(TARGET_SUBDIR)/gperf" ; \
35362 for flag in $(EXTRA_TARGET_FLAGS); do \
35363 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35364 done; \
35365 (cd $(TARGET_SUBDIR)/gperf && \
35366 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35367 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35368 "RANLIB=$${RANLIB}" \
35369 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
35370 html) \
35371 || exit 1
35372
35373@endif target-gperf
35374
295f4e42
NN
35375.PHONY: maybe-TAGS-target-gperf TAGS-target-gperf
35376maybe-TAGS-target-gperf:
60975492
PB
35377@if target-gperf
35378maybe-TAGS-target-gperf: TAGS-target-gperf
295f4e42
NN
35379
35380TAGS-target-gperf: \
05750653 35381 configure-target-gperf
f41d6665 35382 @: $(MAKE); $(unstage)
295f4e42
NN
35383 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
35384 r=`${PWD_COMMAND}`; export r; \
35385 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35386 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35387 echo "Doing TAGS in $(TARGET_SUBDIR)/gperf" ; \
35388 for flag in $(EXTRA_TARGET_FLAGS); do \
35389 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35390 done; \
35391 (cd $(TARGET_SUBDIR)/gperf && \
35392 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35393 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35394 "RANLIB=$${RANLIB}" \
35395 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35396 TAGS) \
295f4e42
NN
35397 || exit 1
35398
60975492 35399@endif target-gperf
295f4e42
NN
35400
35401.PHONY: maybe-install-info-target-gperf install-info-target-gperf
35402maybe-install-info-target-gperf:
60975492
PB
35403@if target-gperf
35404maybe-install-info-target-gperf: install-info-target-gperf
295f4e42
NN
35405
35406install-info-target-gperf: \
35407 configure-target-gperf \
05750653 35408 info-target-gperf
f41d6665 35409 @: $(MAKE); $(unstage)
295f4e42
NN
35410 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
35411 r=`${PWD_COMMAND}`; export r; \
35412 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35413 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35414 echo "Doing install-info in $(TARGET_SUBDIR)/gperf" ; \
35415 for flag in $(EXTRA_TARGET_FLAGS); do \
35416 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35417 done; \
35418 (cd $(TARGET_SUBDIR)/gperf && \
35419 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35420 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35421 "RANLIB=$${RANLIB}" \
35422 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35423 install-info) \
295f4e42
NN
35424 || exit 1
35425
60975492 35426@endif target-gperf
295f4e42 35427
65d6e994
CD
35428.PHONY: maybe-install-html-target-gperf install-html-target-gperf
35429maybe-install-html-target-gperf:
35430@if target-gperf
35431maybe-install-html-target-gperf: install-html-target-gperf
35432
35433install-html-target-gperf: \
35434 configure-target-gperf \
35435 html-target-gperf
35436 @: $(MAKE); $(unstage)
35437 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
35438 r=`${PWD_COMMAND}`; export r; \
35439 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35440 $(NORMAL_TARGET_EXPORTS) \
35441 echo "Doing install-html in $(TARGET_SUBDIR)/gperf" ; \
35442 for flag in $(EXTRA_TARGET_FLAGS); do \
35443 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35444 done; \
35445 (cd $(TARGET_SUBDIR)/gperf && \
35446 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35447 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35448 "RANLIB=$${RANLIB}" \
35449 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
35450 install-html) \
35451 || exit 1
35452
35453@endif target-gperf
35454
295f4e42
NN
35455.PHONY: maybe-installcheck-target-gperf installcheck-target-gperf
35456maybe-installcheck-target-gperf:
60975492
PB
35457@if target-gperf
35458maybe-installcheck-target-gperf: installcheck-target-gperf
295f4e42
NN
35459
35460installcheck-target-gperf: \
05750653 35461 configure-target-gperf
f41d6665 35462 @: $(MAKE); $(unstage)
295f4e42
NN
35463 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
35464 r=`${PWD_COMMAND}`; export r; \
35465 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35466 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35467 echo "Doing installcheck in $(TARGET_SUBDIR)/gperf" ; \
35468 for flag in $(EXTRA_TARGET_FLAGS); do \
35469 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35470 done; \
35471 (cd $(TARGET_SUBDIR)/gperf && \
35472 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35473 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35474 "RANLIB=$${RANLIB}" \
35475 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35476 installcheck) \
295f4e42
NN
35477 || exit 1
35478
60975492 35479@endif target-gperf
295f4e42
NN
35480
35481.PHONY: maybe-mostlyclean-target-gperf mostlyclean-target-gperf
35482maybe-mostlyclean-target-gperf:
60975492
PB
35483@if target-gperf
35484maybe-mostlyclean-target-gperf: mostlyclean-target-gperf
295f4e42 35485
05750653 35486mostlyclean-target-gperf:
f41d6665 35487 @: $(MAKE); $(unstage)
295f4e42
NN
35488 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
35489 r=`${PWD_COMMAND}`; export r; \
35490 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35491 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35492 echo "Doing mostlyclean in $(TARGET_SUBDIR)/gperf" ; \
35493 for flag in $(EXTRA_TARGET_FLAGS); do \
35494 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35495 done; \
35496 (cd $(TARGET_SUBDIR)/gperf && \
35497 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35498 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35499 "RANLIB=$${RANLIB}" \
35500 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35501 mostlyclean) \
295f4e42
NN
35502 || exit 1
35503
60975492 35504@endif target-gperf
295f4e42
NN
35505
35506.PHONY: maybe-clean-target-gperf clean-target-gperf
35507maybe-clean-target-gperf:
60975492
PB
35508@if target-gperf
35509maybe-clean-target-gperf: clean-target-gperf
295f4e42 35510
05750653 35511clean-target-gperf:
f41d6665 35512 @: $(MAKE); $(unstage)
295f4e42
NN
35513 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
35514 r=`${PWD_COMMAND}`; export r; \
35515 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35516 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35517 echo "Doing clean in $(TARGET_SUBDIR)/gperf" ; \
35518 for flag in $(EXTRA_TARGET_FLAGS); do \
35519 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35520 done; \
35521 (cd $(TARGET_SUBDIR)/gperf && \
35522 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35523 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35524 "RANLIB=$${RANLIB}" \
35525 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35526 clean) \
295f4e42
NN
35527 || exit 1
35528
60975492 35529@endif target-gperf
295f4e42
NN
35530
35531.PHONY: maybe-distclean-target-gperf distclean-target-gperf
35532maybe-distclean-target-gperf:
60975492
PB
35533@if target-gperf
35534maybe-distclean-target-gperf: distclean-target-gperf
295f4e42 35535
05750653 35536distclean-target-gperf:
f41d6665 35537 @: $(MAKE); $(unstage)
295f4e42
NN
35538 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
35539 r=`${PWD_COMMAND}`; export r; \
35540 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35541 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35542 echo "Doing distclean in $(TARGET_SUBDIR)/gperf" ; \
35543 for flag in $(EXTRA_TARGET_FLAGS); do \
35544 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35545 done; \
35546 (cd $(TARGET_SUBDIR)/gperf && \
35547 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35548 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35549 "RANLIB=$${RANLIB}" \
35550 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35551 distclean) \
295f4e42
NN
35552 || exit 1
35553
60975492 35554@endif target-gperf
295f4e42
NN
35555
35556.PHONY: maybe-maintainer-clean-target-gperf maintainer-clean-target-gperf
35557maybe-maintainer-clean-target-gperf:
60975492
PB
35558@if target-gperf
35559maybe-maintainer-clean-target-gperf: maintainer-clean-target-gperf
295f4e42 35560
05750653 35561maintainer-clean-target-gperf:
f41d6665 35562 @: $(MAKE); $(unstage)
295f4e42
NN
35563 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
35564 r=`${PWD_COMMAND}`; export r; \
35565 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35566 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35567 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/gperf" ; \
35568 for flag in $(EXTRA_TARGET_FLAGS); do \
35569 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35570 done; \
35571 (cd $(TARGET_SUBDIR)/gperf && \
35572 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35573 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35574 "RANLIB=$${RANLIB}" \
35575 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35576 maintainer-clean) \
295f4e42 35577 || exit 1
7e2dbcef 35578
60975492 35579@endif target-gperf
4977bab6
ZW
35580
35581
4977bab6 35582
25b42232
PB
35583
35584
35585.PHONY: configure-target-examples maybe-configure-target-examples
35586maybe-configure-target-examples:
3ff3adad
PB
35587@if gcc-bootstrap
35588configure-target-examples: stage_current
35589@endif gcc-bootstrap
25b42232
PB
35590@if target-examples
35591maybe-configure-target-examples: configure-target-examples
cc11cc9b 35592configure-target-examples:
f41d6665
DJ
35593 @: $(MAKE); $(unstage)
35594 @r=`${PWD_COMMAND}`; export r; \
35595 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35596 echo "Checking multilib configuration for examples..."; \
35597 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/examples ; \
35598 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/examples/multilib.tmp 2> /dev/null ; \
35599 if test -r $(TARGET_SUBDIR)/examples/multilib.out; then \
35600 if cmp -s $(TARGET_SUBDIR)/examples/multilib.tmp $(TARGET_SUBDIR)/examples/multilib.out; then \
35601 rm -f $(TARGET_SUBDIR)/examples/multilib.tmp; \
35602 else \
35603 rm -f $(TARGET_SUBDIR)/examples/Makefile; \
35604 mv $(TARGET_SUBDIR)/examples/multilib.tmp $(TARGET_SUBDIR)/examples/multilib.out; \
35605 fi; \
35606 else \
35607 mv $(TARGET_SUBDIR)/examples/multilib.tmp $(TARGET_SUBDIR)/examples/multilib.out; \
cc11cc9b
PB
35608 fi; \
35609 test ! -f $(TARGET_SUBDIR)/examples/Makefile || exit 0; \
295f4e42 35610 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/examples ; \
4fc4dd12 35611 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35612 echo Configuring in $(TARGET_SUBDIR)/examples; \
35613 cd "$(TARGET_SUBDIR)/examples" || exit 1; \
3aa83176 35614 case $(srcdir) in \
215c351a
PB
35615 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35616 *) topdir=`echo $(TARGET_SUBDIR)/examples/ | \
35617 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3aa83176 35618 esac; \
215c351a
PB
35619 srcdiroption="--srcdir=$${topdir}/examples"; \
35620 libsrcdir="$$s/examples"; \
3aa83176
NN
35621 rm -f no-such-file || : ; \
35622 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 35623 $(TARGET_CONFIGARGS) $${srcdiroption} \
3aa83176 35624 || exit 1
60975492 35625@endif target-examples
4977bab6 35626
25b42232
PB
35627
35628
ce406537
PB
35629
35630
295f4e42
NN
35631.PHONY: all-target-examples maybe-all-target-examples
35632maybe-all-target-examples:
3ff3adad
PB
35633@if gcc-bootstrap
35634all-target-examples: stage_current
35635@endif gcc-bootstrap
60975492 35636@if target-examples
7c27e184 35637TARGET-target-examples=all
60975492 35638maybe-all-target-examples: all-target-examples
295f4e42 35639all-target-examples: configure-target-examples
f41d6665 35640 @: $(MAKE); $(unstage)
8c90b13a
L
35641 @r=`${PWD_COMMAND}`; export r; \
35642 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35643 $(NORMAL_TARGET_EXPORTS) \
295f4e42 35644 (cd $(TARGET_SUBDIR)/examples && \
25b42232 35645 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-examples))
60975492 35646@endif target-examples
4977bab6 35647
25b42232
PB
35648
35649
ce406537
PB
35650
35651
295f4e42
NN
35652.PHONY: check-target-examples maybe-check-target-examples
35653maybe-check-target-examples:
60975492
PB
35654@if target-examples
35655maybe-check-target-examples: check-target-examples
7e2dbcef 35656
295f4e42
NN
35657# Dummy target for uncheckable module.
35658check-target-examples:
35659
60975492 35660@endif target-examples
295f4e42
NN
35661
35662.PHONY: install-target-examples maybe-install-target-examples
35663maybe-install-target-examples:
60975492
PB
35664@if target-examples
35665maybe-install-target-examples: install-target-examples
295f4e42
NN
35666
35667# Dummy target for uninstallable.
35668install-target-examples:
35669
60975492 35670@endif target-examples
295f4e42
NN
35671
35672# Other targets (info, dvi, etc.)
35673
35674.PHONY: maybe-info-target-examples info-target-examples
35675maybe-info-target-examples:
60975492
PB
35676@if target-examples
35677maybe-info-target-examples: info-target-examples
295f4e42
NN
35678
35679info-target-examples: \
05750653 35680 configure-target-examples
f41d6665 35681 @: $(MAKE); $(unstage)
295f4e42
NN
35682 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
35683 r=`${PWD_COMMAND}`; export r; \
8c90b13a 35684 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35685 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35686 echo "Doing info in $(TARGET_SUBDIR)/examples" ; \
35687 for flag in $(EXTRA_TARGET_FLAGS); do \
35688 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35689 done; \
35690 (cd $(TARGET_SUBDIR)/examples && \
35691 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35692 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35693 "RANLIB=$${RANLIB}" \
35694 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35695 info) \
295f4e42 35696 || exit 1
4977bab6 35697
60975492 35698@endif target-examples
4977bab6 35699
295f4e42
NN
35700.PHONY: maybe-dvi-target-examples dvi-target-examples
35701maybe-dvi-target-examples:
60975492
PB
35702@if target-examples
35703maybe-dvi-target-examples: dvi-target-examples
7e2dbcef 35704
295f4e42 35705dvi-target-examples: \
05750653 35706 configure-target-examples
f41d6665 35707 @: $(MAKE); $(unstage)
295f4e42
NN
35708 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
35709 r=`${PWD_COMMAND}`; export r; \
8c90b13a 35710 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35711 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35712 echo "Doing dvi in $(TARGET_SUBDIR)/examples" ; \
35713 for flag in $(EXTRA_TARGET_FLAGS); do \
35714 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35715 done; \
35716 (cd $(TARGET_SUBDIR)/examples && \
35717 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35718 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35719 "RANLIB=$${RANLIB}" \
35720 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35721 dvi) \
295f4e42
NN
35722 || exit 1
35723
60975492 35724@endif target-examples
295f4e42 35725
f87a2b2e
MS
35726.PHONY: maybe-html-target-examples html-target-examples
35727maybe-html-target-examples:
35728@if target-examples
35729maybe-html-target-examples: html-target-examples
35730
35731html-target-examples: \
05750653 35732 configure-target-examples
f41d6665 35733 @: $(MAKE); $(unstage)
f87a2b2e
MS
35734 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
35735 r=`${PWD_COMMAND}`; export r; \
35736 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
35737 $(NORMAL_TARGET_EXPORTS) \
35738 echo "Doing html in $(TARGET_SUBDIR)/examples" ; \
35739 for flag in $(EXTRA_TARGET_FLAGS); do \
35740 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35741 done; \
35742 (cd $(TARGET_SUBDIR)/examples && \
35743 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35744 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35745 "RANLIB=$${RANLIB}" \
35746 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
35747 html) \
35748 || exit 1
35749
35750@endif target-examples
35751
295f4e42
NN
35752.PHONY: maybe-TAGS-target-examples TAGS-target-examples
35753maybe-TAGS-target-examples:
60975492
PB
35754@if target-examples
35755maybe-TAGS-target-examples: TAGS-target-examples
295f4e42
NN
35756
35757TAGS-target-examples: \
05750653 35758 configure-target-examples
f41d6665 35759 @: $(MAKE); $(unstage)
295f4e42
NN
35760 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
35761 r=`${PWD_COMMAND}`; export r; \
35762 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35763 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35764 echo "Doing TAGS in $(TARGET_SUBDIR)/examples" ; \
35765 for flag in $(EXTRA_TARGET_FLAGS); do \
35766 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35767 done; \
35768 (cd $(TARGET_SUBDIR)/examples && \
35769 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35770 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35771 "RANLIB=$${RANLIB}" \
35772 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35773 TAGS) \
295f4e42
NN
35774 || exit 1
35775
60975492 35776@endif target-examples
295f4e42
NN
35777
35778.PHONY: maybe-install-info-target-examples install-info-target-examples
35779maybe-install-info-target-examples:
60975492
PB
35780@if target-examples
35781maybe-install-info-target-examples: install-info-target-examples
295f4e42
NN
35782
35783install-info-target-examples: \
35784 configure-target-examples \
05750653 35785 info-target-examples
f41d6665 35786 @: $(MAKE); $(unstage)
295f4e42
NN
35787 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
35788 r=`${PWD_COMMAND}`; export r; \
35789 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35790 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35791 echo "Doing install-info in $(TARGET_SUBDIR)/examples" ; \
35792 for flag in $(EXTRA_TARGET_FLAGS); do \
35793 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35794 done; \
35795 (cd $(TARGET_SUBDIR)/examples && \
35796 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35797 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35798 "RANLIB=$${RANLIB}" \
35799 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35800 install-info) \
295f4e42
NN
35801 || exit 1
35802
60975492 35803@endif target-examples
295f4e42 35804
65d6e994
CD
35805.PHONY: maybe-install-html-target-examples install-html-target-examples
35806maybe-install-html-target-examples:
35807@if target-examples
35808maybe-install-html-target-examples: install-html-target-examples
35809
35810install-html-target-examples: \
35811 configure-target-examples \
35812 html-target-examples
35813 @: $(MAKE); $(unstage)
35814 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
35815 r=`${PWD_COMMAND}`; export r; \
35816 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35817 $(NORMAL_TARGET_EXPORTS) \
35818 echo "Doing install-html in $(TARGET_SUBDIR)/examples" ; \
35819 for flag in $(EXTRA_TARGET_FLAGS); do \
35820 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35821 done; \
35822 (cd $(TARGET_SUBDIR)/examples && \
35823 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35824 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35825 "RANLIB=$${RANLIB}" \
35826 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
35827 install-html) \
35828 || exit 1
35829
35830@endif target-examples
35831
295f4e42
NN
35832.PHONY: maybe-installcheck-target-examples installcheck-target-examples
35833maybe-installcheck-target-examples:
60975492
PB
35834@if target-examples
35835maybe-installcheck-target-examples: installcheck-target-examples
295f4e42
NN
35836
35837installcheck-target-examples: \
05750653 35838 configure-target-examples
f41d6665 35839 @: $(MAKE); $(unstage)
295f4e42
NN
35840 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
35841 r=`${PWD_COMMAND}`; export r; \
35842 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35843 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35844 echo "Doing installcheck in $(TARGET_SUBDIR)/examples" ; \
35845 for flag in $(EXTRA_TARGET_FLAGS); do \
35846 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35847 done; \
35848 (cd $(TARGET_SUBDIR)/examples && \
35849 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35850 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35851 "RANLIB=$${RANLIB}" \
35852 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35853 installcheck) \
295f4e42
NN
35854 || exit 1
35855
60975492 35856@endif target-examples
295f4e42
NN
35857
35858.PHONY: maybe-mostlyclean-target-examples mostlyclean-target-examples
35859maybe-mostlyclean-target-examples:
60975492
PB
35860@if target-examples
35861maybe-mostlyclean-target-examples: mostlyclean-target-examples
295f4e42 35862
05750653 35863mostlyclean-target-examples:
f41d6665 35864 @: $(MAKE); $(unstage)
295f4e42
NN
35865 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
35866 r=`${PWD_COMMAND}`; export r; \
35867 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35868 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35869 echo "Doing mostlyclean in $(TARGET_SUBDIR)/examples" ; \
35870 for flag in $(EXTRA_TARGET_FLAGS); do \
35871 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35872 done; \
35873 (cd $(TARGET_SUBDIR)/examples && \
35874 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35875 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35876 "RANLIB=$${RANLIB}" \
35877 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35878 mostlyclean) \
295f4e42
NN
35879 || exit 1
35880
60975492 35881@endif target-examples
295f4e42
NN
35882
35883.PHONY: maybe-clean-target-examples clean-target-examples
35884maybe-clean-target-examples:
60975492
PB
35885@if target-examples
35886maybe-clean-target-examples: clean-target-examples
295f4e42 35887
05750653 35888clean-target-examples:
f41d6665 35889 @: $(MAKE); $(unstage)
295f4e42
NN
35890 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
35891 r=`${PWD_COMMAND}`; export r; \
35892 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35893 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35894 echo "Doing clean in $(TARGET_SUBDIR)/examples" ; \
35895 for flag in $(EXTRA_TARGET_FLAGS); do \
35896 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35897 done; \
35898 (cd $(TARGET_SUBDIR)/examples && \
35899 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35900 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35901 "RANLIB=$${RANLIB}" \
35902 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35903 clean) \
295f4e42
NN
35904 || exit 1
35905
60975492 35906@endif target-examples
295f4e42
NN
35907
35908.PHONY: maybe-distclean-target-examples distclean-target-examples
35909maybe-distclean-target-examples:
60975492
PB
35910@if target-examples
35911maybe-distclean-target-examples: distclean-target-examples
295f4e42 35912
05750653 35913distclean-target-examples:
f41d6665 35914 @: $(MAKE); $(unstage)
295f4e42
NN
35915 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
35916 r=`${PWD_COMMAND}`; export r; \
35917 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35918 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35919 echo "Doing distclean in $(TARGET_SUBDIR)/examples" ; \
35920 for flag in $(EXTRA_TARGET_FLAGS); do \
35921 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35922 done; \
35923 (cd $(TARGET_SUBDIR)/examples && \
35924 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35925 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35926 "RANLIB=$${RANLIB}" \
35927 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35928 distclean) \
295f4e42
NN
35929 || exit 1
35930
60975492 35931@endif target-examples
295f4e42
NN
35932
35933.PHONY: maybe-maintainer-clean-target-examples maintainer-clean-target-examples
35934maybe-maintainer-clean-target-examples:
60975492
PB
35935@if target-examples
35936maybe-maintainer-clean-target-examples: maintainer-clean-target-examples
295f4e42 35937
05750653 35938maintainer-clean-target-examples:
f41d6665 35939 @: $(MAKE); $(unstage)
295f4e42
NN
35940 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
35941 r=`${PWD_COMMAND}`; export r; \
35942 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35943 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35944 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/examples" ; \
35945 for flag in $(EXTRA_TARGET_FLAGS); do \
35946 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35947 done; \
35948 (cd $(TARGET_SUBDIR)/examples && \
35949 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35950 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35951 "RANLIB=$${RANLIB}" \
35952 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35953 maintainer-clean) \
295f4e42 35954 || exit 1
4977bab6 35955
60975492 35956@endif target-examples
4977bab6 35957
295f4e42 35958
4977bab6 35959
25b42232 35960
4977bab6 35961
25b42232
PB
35962.PHONY: configure-target-libffi maybe-configure-target-libffi
35963maybe-configure-target-libffi:
3ff3adad
PB
35964@if gcc-bootstrap
35965configure-target-libffi: stage_current
35966@endif gcc-bootstrap
25b42232
PB
35967@if target-libffi
35968maybe-configure-target-libffi: configure-target-libffi
cc11cc9b 35969configure-target-libffi:
f41d6665
DJ
35970 @: $(MAKE); $(unstage)
35971 @r=`${PWD_COMMAND}`; export r; \
35972 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35973 echo "Checking multilib configuration for libffi..."; \
35974 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libffi ; \
35975 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libffi/multilib.tmp 2> /dev/null ; \
35976 if test -r $(TARGET_SUBDIR)/libffi/multilib.out; then \
35977 if cmp -s $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; then \
35978 rm -f $(TARGET_SUBDIR)/libffi/multilib.tmp; \
35979 else \
35980 rm -f $(TARGET_SUBDIR)/libffi/Makefile; \
35981 mv $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; \
35982 fi; \
35983 else \
35984 mv $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; \
cc11cc9b
PB
35985 fi; \
35986 test ! -f $(TARGET_SUBDIR)/libffi/Makefile || exit 0; \
295f4e42 35987 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libffi ; \
4fc4dd12 35988 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35989 echo Configuring in $(TARGET_SUBDIR)/libffi; \
35990 cd "$(TARGET_SUBDIR)/libffi" || exit 1; \
3aa83176 35991 case $(srcdir) in \
215c351a
PB
35992 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35993 *) topdir=`echo $(TARGET_SUBDIR)/libffi/ | \
35994 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3aa83176 35995 esac; \
215c351a
PB
35996 srcdiroption="--srcdir=$${topdir}/libffi"; \
35997 libsrcdir="$$s/libffi"; \
3aa83176
NN
35998 rm -f no-such-file || : ; \
35999 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 36000 $(TARGET_CONFIGARGS) $${srcdiroption} \
3aa83176 36001 || exit 1
60975492 36002@endif target-libffi
4977bab6 36003
25b42232
PB
36004
36005
ce406537
PB
36006
36007
295f4e42
NN
36008.PHONY: all-target-libffi maybe-all-target-libffi
36009maybe-all-target-libffi:
3ff3adad
PB
36010@if gcc-bootstrap
36011all-target-libffi: stage_current
36012@endif gcc-bootstrap
60975492 36013@if target-libffi
7c27e184 36014TARGET-target-libffi=all
60975492 36015maybe-all-target-libffi: all-target-libffi
295f4e42 36016all-target-libffi: configure-target-libffi
f41d6665 36017 @: $(MAKE); $(unstage)
8c90b13a
L
36018 @r=`${PWD_COMMAND}`; export r; \
36019 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36020 $(NORMAL_TARGET_EXPORTS) \
295f4e42 36021 (cd $(TARGET_SUBDIR)/libffi && \
25b42232 36022 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libffi))
60975492 36023@endif target-libffi
4977bab6 36024
25b42232
PB
36025
36026
ce406537
PB
36027
36028
295f4e42
NN
36029.PHONY: check-target-libffi maybe-check-target-libffi
36030maybe-check-target-libffi:
60975492
PB
36031@if target-libffi
36032maybe-check-target-libffi: check-target-libffi
7e2dbcef 36033
295f4e42 36034check-target-libffi:
f41d6665 36035 @: $(MAKE); $(unstage)
8c90b13a
L
36036 @r=`${PWD_COMMAND}`; export r; \
36037 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36038 $(NORMAL_TARGET_EXPORTS) \
295f4e42 36039 (cd $(TARGET_SUBDIR)/libffi && \
a52a0a7f 36040 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4977bab6 36041
60975492 36042@endif target-libffi
4977bab6 36043
295f4e42
NN
36044.PHONY: install-target-libffi maybe-install-target-libffi
36045maybe-install-target-libffi:
60975492
PB
36046@if target-libffi
36047maybe-install-target-libffi: install-target-libffi
7e2dbcef 36048
295f4e42 36049install-target-libffi: installdirs
f41d6665 36050 @: $(MAKE); $(unstage)
8c90b13a
L
36051 @r=`${PWD_COMMAND}`; export r; \
36052 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36053 $(NORMAL_TARGET_EXPORTS) \
295f4e42 36054 (cd $(TARGET_SUBDIR)/libffi && \
a52a0a7f 36055 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4977bab6 36056
60975492 36057@endif target-libffi
4977bab6 36058
295f4e42
NN
36059# Other targets (info, dvi, etc.)
36060
36061.PHONY: maybe-info-target-libffi info-target-libffi
36062maybe-info-target-libffi:
60975492
PB
36063@if target-libffi
36064maybe-info-target-libffi: info-target-libffi
295f4e42
NN
36065
36066info-target-libffi: \
05750653 36067 configure-target-libffi
f41d6665 36068 @: $(MAKE); $(unstage)
295f4e42
NN
36069 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
36070 r=`${PWD_COMMAND}`; export r; \
36071 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36072 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
36073 echo "Doing info in $(TARGET_SUBDIR)/libffi" ; \
36074 for flag in $(EXTRA_TARGET_FLAGS); do \
36075 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36076 done; \
36077 (cd $(TARGET_SUBDIR)/libffi && \
36078 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36079 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36080 "RANLIB=$${RANLIB}" \
36081 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 36082 info) \
295f4e42
NN
36083 || exit 1
36084
60975492 36085@endif target-libffi
295f4e42
NN
36086
36087.PHONY: maybe-dvi-target-libffi dvi-target-libffi
36088maybe-dvi-target-libffi:
60975492
PB
36089@if target-libffi
36090maybe-dvi-target-libffi: dvi-target-libffi
295f4e42
NN
36091
36092dvi-target-libffi: \
05750653 36093 configure-target-libffi
f41d6665 36094 @: $(MAKE); $(unstage)
295f4e42
NN
36095 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
36096 r=`${PWD_COMMAND}`; export r; \
36097 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36098 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
36099 echo "Doing dvi in $(TARGET_SUBDIR)/libffi" ; \
36100 for flag in $(EXTRA_TARGET_FLAGS); do \
36101 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36102 done; \
36103 (cd $(TARGET_SUBDIR)/libffi && \
36104 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36105 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36106 "RANLIB=$${RANLIB}" \
36107 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 36108 dvi) \
295f4e42
NN
36109 || exit 1
36110
60975492 36111@endif target-libffi
295f4e42 36112
f87a2b2e
MS
36113.PHONY: maybe-html-target-libffi html-target-libffi
36114maybe-html-target-libffi:
36115@if target-libffi
36116maybe-html-target-libffi: html-target-libffi
36117
36118html-target-libffi: \
05750653 36119 configure-target-libffi
f41d6665 36120 @: $(MAKE); $(unstage)
f87a2b2e
MS
36121 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
36122 r=`${PWD_COMMAND}`; export r; \
36123 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
36124 $(NORMAL_TARGET_EXPORTS) \
36125 echo "Doing html in $(TARGET_SUBDIR)/libffi" ; \
36126 for flag in $(EXTRA_TARGET_FLAGS); do \
36127 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36128 done; \
36129 (cd $(TARGET_SUBDIR)/libffi && \
36130 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36131 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36132 "RANLIB=$${RANLIB}" \
36133 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
36134 html) \
36135 || exit 1
36136
36137@endif target-libffi
36138
295f4e42
NN
36139.PHONY: maybe-TAGS-target-libffi TAGS-target-libffi
36140maybe-TAGS-target-libffi:
60975492
PB
36141@if target-libffi
36142maybe-TAGS-target-libffi: TAGS-target-libffi
295f4e42
NN
36143
36144TAGS-target-libffi: \
05750653 36145 configure-target-libffi
f41d6665 36146 @: $(MAKE); $(unstage)
295f4e42
NN
36147 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
36148 r=`${PWD_COMMAND}`; export r; \
36149 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36150 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
36151 echo "Doing TAGS in $(TARGET_SUBDIR)/libffi" ; \
36152 for flag in $(EXTRA_TARGET_FLAGS); do \
36153 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36154 done; \
36155 (cd $(TARGET_SUBDIR)/libffi && \
36156 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36157 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36158 "RANLIB=$${RANLIB}" \
36159 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 36160 TAGS) \
295f4e42
NN
36161 || exit 1
36162
60975492 36163@endif target-libffi
295f4e42
NN
36164
36165.PHONY: maybe-install-info-target-libffi install-info-target-libffi
36166maybe-install-info-target-libffi:
60975492
PB
36167@if target-libffi
36168maybe-install-info-target-libffi: install-info-target-libffi
295f4e42
NN
36169
36170install-info-target-libffi: \
36171 configure-target-libffi \
05750653 36172 info-target-libffi
f41d6665 36173 @: $(MAKE); $(unstage)
295f4e42
NN
36174 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
36175 r=`${PWD_COMMAND}`; export r; \
36176 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36177 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
36178 echo "Doing install-info in $(TARGET_SUBDIR)/libffi" ; \
36179 for flag in $(EXTRA_TARGET_FLAGS); do \
36180 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36181 done; \
36182 (cd $(TARGET_SUBDIR)/libffi && \
36183 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36184 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36185 "RANLIB=$${RANLIB}" \
36186 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 36187 install-info) \
295f4e42
NN
36188 || exit 1
36189
60975492 36190@endif target-libffi
295f4e42 36191
65d6e994
CD
36192.PHONY: maybe-install-html-target-libffi install-html-target-libffi
36193maybe-install-html-target-libffi:
36194@if target-libffi
36195maybe-install-html-target-libffi: install-html-target-libffi
36196
36197install-html-target-libffi: \
36198 configure-target-libffi \
36199 html-target-libffi
36200 @: $(MAKE); $(unstage)
36201 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
36202 r=`${PWD_COMMAND}`; export r; \
36203 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36204 $(NORMAL_TARGET_EXPORTS) \
36205 echo "Doing install-html in $(TARGET_SUBDIR)/libffi" ; \
36206 for flag in $(EXTRA_TARGET_FLAGS); do \
36207 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36208 done; \
36209 (cd $(TARGET_SUBDIR)/libffi && \
36210 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36211 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36212 "RANLIB=$${RANLIB}" \
36213 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
36214 install-html) \
36215 || exit 1
36216
36217@endif target-libffi
36218
295f4e42
NN
36219.PHONY: maybe-installcheck-target-libffi installcheck-target-libffi
36220maybe-installcheck-target-libffi:
60975492
PB
36221@if target-libffi
36222maybe-installcheck-target-libffi: installcheck-target-libffi
295f4e42
NN
36223
36224installcheck-target-libffi: \
05750653 36225 configure-target-libffi
f41d6665 36226 @: $(MAKE); $(unstage)
295f4e42
NN
36227 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
36228 r=`${PWD_COMMAND}`; export r; \
36229 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36230 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
36231 echo "Doing installcheck in $(TARGET_SUBDIR)/libffi" ; \
36232 for flag in $(EXTRA_TARGET_FLAGS); do \
36233 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36234 done; \
36235 (cd $(TARGET_SUBDIR)/libffi && \
36236 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36237 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36238 "RANLIB=$${RANLIB}" \
36239 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 36240 installcheck) \
295f4e42
NN
36241 || exit 1
36242
60975492 36243@endif target-libffi
295f4e42
NN
36244
36245.PHONY: maybe-mostlyclean-target-libffi mostlyclean-target-libffi
36246maybe-mostlyclean-target-libffi:
60975492
PB
36247@if target-libffi
36248maybe-mostlyclean-target-libffi: mostlyclean-target-libffi
295f4e42 36249
05750653 36250mostlyclean-target-libffi:
f41d6665 36251 @: $(MAKE); $(unstage)
295f4e42
NN
36252 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
36253 r=`${PWD_COMMAND}`; export r; \
36254 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36255 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
36256 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libffi" ; \
36257 for flag in $(EXTRA_TARGET_FLAGS); do \
36258 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36259 done; \
36260 (cd $(TARGET_SUBDIR)/libffi && \
36261 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36262 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36263 "RANLIB=$${RANLIB}" \
36264 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 36265 mostlyclean) \
295f4e42
NN
36266 || exit 1
36267
60975492 36268@endif target-libffi
295f4e42
NN
36269
36270.PHONY: maybe-clean-target-libffi clean-target-libffi
36271maybe-clean-target-libffi:
60975492
PB
36272@if target-libffi
36273maybe-clean-target-libffi: clean-target-libffi
295f4e42 36274
05750653 36275clean-target-libffi:
f41d6665 36276 @: $(MAKE); $(unstage)
295f4e42
NN
36277 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
36278 r=`${PWD_COMMAND}`; export r; \
36279 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36280 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
36281 echo "Doing clean in $(TARGET_SUBDIR)/libffi" ; \
36282 for flag in $(EXTRA_TARGET_FLAGS); do \
36283 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36284 done; \
36285 (cd $(TARGET_SUBDIR)/libffi && \
36286 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36287 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36288 "RANLIB=$${RANLIB}" \
36289 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 36290 clean) \
295f4e42
NN
36291 || exit 1
36292
60975492 36293@endif target-libffi
295f4e42
NN
36294
36295.PHONY: maybe-distclean-target-libffi distclean-target-libffi
36296maybe-distclean-target-libffi:
60975492
PB
36297@if target-libffi
36298maybe-distclean-target-libffi: distclean-target-libffi
295f4e42 36299
05750653 36300distclean-target-libffi:
f41d6665 36301 @: $(MAKE); $(unstage)
295f4e42
NN
36302 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
36303 r=`${PWD_COMMAND}`; export r; \
36304 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36305 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
36306 echo "Doing distclean in $(TARGET_SUBDIR)/libffi" ; \
36307 for flag in $(EXTRA_TARGET_FLAGS); do \
36308 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36309 done; \
36310 (cd $(TARGET_SUBDIR)/libffi && \
36311 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36312 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36313 "RANLIB=$${RANLIB}" \
36314 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 36315 distclean) \
295f4e42
NN
36316 || exit 1
36317
60975492 36318@endif target-libffi
295f4e42
NN
36319
36320.PHONY: maybe-maintainer-clean-target-libffi maintainer-clean-target-libffi
36321maybe-maintainer-clean-target-libffi:
60975492
PB
36322@if target-libffi
36323maybe-maintainer-clean-target-libffi: maintainer-clean-target-libffi
295f4e42 36324
05750653 36325maintainer-clean-target-libffi:
f41d6665 36326 @: $(MAKE); $(unstage)
295f4e42
NN
36327 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
36328 r=`${PWD_COMMAND}`; export r; \
36329 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36330 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
36331 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libffi" ; \
36332 for flag in $(EXTRA_TARGET_FLAGS); do \
36333 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36334 done; \
36335 (cd $(TARGET_SUBDIR)/libffi && \
36336 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36337 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36338 "RANLIB=$${RANLIB}" \
36339 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 36340 maintainer-clean) \
295f4e42
NN
36341 || exit 1
36342
60975492 36343@endif target-libffi
295f4e42
NN
36344
36345
4977bab6 36346
25b42232 36347
4977bab6 36348
25b42232
PB
36349.PHONY: configure-target-libjava maybe-configure-target-libjava
36350maybe-configure-target-libjava:
3ff3adad
PB
36351@if gcc-bootstrap
36352configure-target-libjava: stage_current
36353@endif gcc-bootstrap
25b42232
PB
36354@if target-libjava
36355maybe-configure-target-libjava: configure-target-libjava
cc11cc9b 36356configure-target-libjava:
f41d6665
DJ
36357 @: $(MAKE); $(unstage)
36358 @r=`${PWD_COMMAND}`; export r; \
36359 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36360 echo "Checking multilib configuration for libjava..."; \
36361 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libjava ; \
36362 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libjava/multilib.tmp 2> /dev/null ; \
36363 if test -r $(TARGET_SUBDIR)/libjava/multilib.out; then \
36364 if cmp -s $(TARGET_SUBDIR)/libjava/multilib.tmp $(TARGET_SUBDIR)/libjava/multilib.out; then \
36365 rm -f $(TARGET_SUBDIR)/libjava/multilib.tmp; \
36366 else \
36367 rm -f $(TARGET_SUBDIR)/libjava/Makefile; \
36368 mv $(TARGET_SUBDIR)/libjava/multilib.tmp $(TARGET_SUBDIR)/libjava/multilib.out; \
36369 fi; \
36370 else \
36371 mv $(TARGET_SUBDIR)/libjava/multilib.tmp $(TARGET_SUBDIR)/libjava/multilib.out; \
cc11cc9b
PB
36372 fi; \
36373 test ! -f $(TARGET_SUBDIR)/libjava/Makefile || exit 0; \
295f4e42 36374 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libjava ; \
4fc4dd12 36375 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
36376 echo Configuring in $(TARGET_SUBDIR)/libjava; \
36377 cd "$(TARGET_SUBDIR)/libjava" || exit 1; \
3aa83176 36378 case $(srcdir) in \
215c351a
PB
36379 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
36380 *) topdir=`echo $(TARGET_SUBDIR)/libjava/ | \
36381 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3aa83176 36382 esac; \
215c351a
PB
36383 srcdiroption="--srcdir=$${topdir}/libjava"; \
36384 libsrcdir="$$s/libjava"; \
3aa83176
NN
36385 rm -f no-such-file || : ; \
36386 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 36387 $(TARGET_CONFIGARGS) $${srcdiroption} \
3aa83176 36388 || exit 1
60975492 36389@endif target-libjava
4977bab6 36390
25b42232
PB
36391
36392
ce406537
PB
36393
36394
295f4e42
NN
36395.PHONY: all-target-libjava maybe-all-target-libjava
36396maybe-all-target-libjava:
3ff3adad
PB
36397@if gcc-bootstrap
36398all-target-libjava: stage_current
36399@endif gcc-bootstrap
60975492 36400@if target-libjava
7c27e184 36401TARGET-target-libjava=all
60975492 36402maybe-all-target-libjava: all-target-libjava
295f4e42 36403all-target-libjava: configure-target-libjava
f41d6665 36404 @: $(MAKE); $(unstage)
8c90b13a
L
36405 @r=`${PWD_COMMAND}`; export r; \
36406 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36407 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42 36408 (cd $(TARGET_SUBDIR)/libjava && \
25b42232 36409 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' $(TARGET-target-libjava))
60975492 36410@endif target-libjava
4977bab6 36411
25b42232
PB
36412
36413
ce406537
PB
36414
36415
295f4e42
NN
36416.PHONY: check-target-libjava maybe-check-target-libjava
36417maybe-check-target-libjava:
60975492
PB
36418@if target-libjava
36419maybe-check-target-libjava: check-target-libjava
7e2dbcef 36420
295f4e42 36421check-target-libjava:
f41d6665 36422 @: $(MAKE); $(unstage)
295f4e42
NN
36423 @r=`${PWD_COMMAND}`; export r; \
36424 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36425 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42 36426 (cd $(TARGET_SUBDIR)/libjava && \
a52a0a7f 36427 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
4977bab6 36428
60975492 36429@endif target-libjava
4977bab6 36430
295f4e42
NN
36431.PHONY: install-target-libjava maybe-install-target-libjava
36432maybe-install-target-libjava:
60975492
PB
36433@if target-libjava
36434maybe-install-target-libjava: install-target-libjava
7e2dbcef 36435
295f4e42 36436install-target-libjava: installdirs
f41d6665 36437 @: $(MAKE); $(unstage)
8c90b13a
L
36438 @r=`${PWD_COMMAND}`; export r; \
36439 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36440 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42 36441 (cd $(TARGET_SUBDIR)/libjava && \
a52a0a7f 36442 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4977bab6 36443
60975492 36444@endif target-libjava
4977bab6 36445
295f4e42 36446# Other targets (info, dvi, etc.)
4977bab6 36447
295f4e42
NN
36448.PHONY: maybe-info-target-libjava info-target-libjava
36449maybe-info-target-libjava:
60975492
PB
36450@if target-libjava
36451maybe-info-target-libjava: info-target-libjava
4977bab6 36452
295f4e42 36453info-target-libjava: \
05750653 36454 configure-target-libjava
f41d6665 36455 @: $(MAKE); $(unstage)
295f4e42 36456 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
8c90b13a
L
36457 r=`${PWD_COMMAND}`; export r; \
36458 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36459 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
36460 echo "Doing info in $(TARGET_SUBDIR)/libjava" ; \
36461 for flag in $(EXTRA_TARGET_FLAGS); do \
36462 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36463 done; \
36464 (cd $(TARGET_SUBDIR)/libjava && \
36465 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36466 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36467 "RANLIB=$${RANLIB}" \
36468 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 36469 info) \
3aa83176 36470 || exit 1
4977bab6 36471
60975492 36472@endif target-libjava
295f4e42
NN
36473
36474.PHONY: maybe-dvi-target-libjava dvi-target-libjava
36475maybe-dvi-target-libjava:
60975492
PB
36476@if target-libjava
36477maybe-dvi-target-libjava: dvi-target-libjava
295f4e42
NN
36478
36479dvi-target-libjava: \
05750653 36480 configure-target-libjava
f41d6665 36481 @: $(MAKE); $(unstage)
295f4e42
NN
36482 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
36483 r=`${PWD_COMMAND}`; export r; \
8c90b13a 36484 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36485 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
36486 echo "Doing dvi in $(TARGET_SUBDIR)/libjava" ; \
36487 for flag in $(EXTRA_TARGET_FLAGS); do \
36488 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36489 done; \
36490 (cd $(TARGET_SUBDIR)/libjava && \
36491 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36492 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36493 "RANLIB=$${RANLIB}" \
36494 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 36495 dvi) \
295f4e42 36496 || exit 1
4977bab6 36497
60975492 36498@endif target-libjava
7e2dbcef 36499
f87a2b2e
MS
36500.PHONY: maybe-html-target-libjava html-target-libjava
36501maybe-html-target-libjava:
36502@if target-libjava
36503maybe-html-target-libjava: html-target-libjava
36504
36505html-target-libjava: \
05750653 36506 configure-target-libjava
f41d6665 36507 @: $(MAKE); $(unstage)
f87a2b2e
MS
36508 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
36509 r=`${PWD_COMMAND}`; export r; \
36510 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
36511 $(RAW_CXX_TARGET_EXPORTS) \
36512 echo "Doing html in $(TARGET_SUBDIR)/libjava" ; \
36513 for flag in $(EXTRA_TARGET_FLAGS); do \
36514 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36515 done; \
36516 (cd $(TARGET_SUBDIR)/libjava && \
36517 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36518 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36519 "RANLIB=$${RANLIB}" \
36520 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
36521 html) \
36522 || exit 1
36523
36524@endif target-libjava
36525
295f4e42
NN
36526.PHONY: maybe-TAGS-target-libjava TAGS-target-libjava
36527maybe-TAGS-target-libjava:
60975492
PB
36528@if target-libjava
36529maybe-TAGS-target-libjava: TAGS-target-libjava
295f4e42
NN
36530
36531TAGS-target-libjava: \
05750653 36532 configure-target-libjava
f41d6665 36533 @: $(MAKE); $(unstage)
295f4e42
NN
36534 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
36535 r=`${PWD_COMMAND}`; export r; \
8c90b13a 36536 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36537 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
36538 echo "Doing TAGS in $(TARGET_SUBDIR)/libjava" ; \
36539 for flag in $(EXTRA_TARGET_FLAGS); do \
36540 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36541 done; \
36542 (cd $(TARGET_SUBDIR)/libjava && \
36543 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36544 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36545 "RANLIB=$${RANLIB}" \
36546 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 36547 TAGS) \
295f4e42 36548 || exit 1
4977bab6 36549
60975492 36550@endif target-libjava
4977bab6 36551
295f4e42
NN
36552.PHONY: maybe-install-info-target-libjava install-info-target-libjava
36553maybe-install-info-target-libjava:
60975492
PB
36554@if target-libjava
36555maybe-install-info-target-libjava: install-info-target-libjava
7e2dbcef 36556
295f4e42
NN
36557install-info-target-libjava: \
36558 configure-target-libjava \
05750653 36559 info-target-libjava
f41d6665 36560 @: $(MAKE); $(unstage)
295f4e42
NN
36561 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
36562 r=`${PWD_COMMAND}`; export r; \
8c90b13a 36563 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36564 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
36565 echo "Doing install-info in $(TARGET_SUBDIR)/libjava" ; \
36566 for flag in $(EXTRA_TARGET_FLAGS); do \
36567 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36568 done; \
36569 (cd $(TARGET_SUBDIR)/libjava && \
36570 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36571 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36572 "RANLIB=$${RANLIB}" \
36573 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 36574 install-info) \
295f4e42 36575 || exit 1
4977bab6 36576
60975492 36577@endif target-libjava
4977bab6 36578
65d6e994
CD
36579.PHONY: maybe-install-html-target-libjava install-html-target-libjava
36580maybe-install-html-target-libjava:
36581@if target-libjava
36582maybe-install-html-target-libjava: install-html-target-libjava
36583
36584install-html-target-libjava: \
36585 configure-target-libjava \
36586 html-target-libjava
36587 @: $(MAKE); $(unstage)
36588 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
36589 r=`${PWD_COMMAND}`; export r; \
36590 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36591 $(RAW_CXX_TARGET_EXPORTS) \
36592 echo "Doing install-html in $(TARGET_SUBDIR)/libjava" ; \
36593 for flag in $(EXTRA_TARGET_FLAGS); do \
36594 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36595 done; \
36596 (cd $(TARGET_SUBDIR)/libjava && \
36597 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36598 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36599 "RANLIB=$${RANLIB}" \
36600 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
36601 install-html) \
36602 || exit 1
36603
36604@endif target-libjava
36605
295f4e42
NN
36606.PHONY: maybe-installcheck-target-libjava installcheck-target-libjava
36607maybe-installcheck-target-libjava:
60975492
PB
36608@if target-libjava
36609maybe-installcheck-target-libjava: installcheck-target-libjava
4977bab6 36610
295f4e42 36611installcheck-target-libjava: \
05750653 36612 configure-target-libjava
f41d6665 36613 @: $(MAKE); $(unstage)
295f4e42
NN
36614 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
36615 r=`${PWD_COMMAND}`; export r; \
36616 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36617 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
36618 echo "Doing installcheck in $(TARGET_SUBDIR)/libjava" ; \
36619 for flag in $(EXTRA_TARGET_FLAGS); do \
36620 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36621 done; \
36622 (cd $(TARGET_SUBDIR)/libjava && \
36623 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36624 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36625 "RANLIB=$${RANLIB}" \
36626 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 36627 installcheck) \
295f4e42 36628 || exit 1
4977bab6 36629
60975492 36630@endif target-libjava
295f4e42
NN
36631
36632.PHONY: maybe-mostlyclean-target-libjava mostlyclean-target-libjava
36633maybe-mostlyclean-target-libjava:
60975492
PB
36634@if target-libjava
36635maybe-mostlyclean-target-libjava: mostlyclean-target-libjava
295f4e42 36636
05750653 36637mostlyclean-target-libjava:
f41d6665 36638 @: $(MAKE); $(unstage)
295f4e42
NN
36639 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
36640 r=`${PWD_COMMAND}`; export r; \
36641 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36642 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
36643 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libjava" ; \
36644 for flag in $(EXTRA_TARGET_FLAGS); do \
36645 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36646 done; \
36647 (cd $(TARGET_SUBDIR)/libjava && \
36648 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36649 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36650 "RANLIB=$${RANLIB}" \
36651 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 36652 mostlyclean) \
295f4e42
NN
36653 || exit 1
36654
60975492 36655@endif target-libjava
295f4e42
NN
36656
36657.PHONY: maybe-clean-target-libjava clean-target-libjava
36658maybe-clean-target-libjava:
60975492
PB
36659@if target-libjava
36660maybe-clean-target-libjava: clean-target-libjava
295f4e42 36661
05750653 36662clean-target-libjava:
f41d6665 36663 @: $(MAKE); $(unstage)
295f4e42 36664 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
8c90b13a
L
36665 r=`${PWD_COMMAND}`; export r; \
36666 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36667 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
36668 echo "Doing clean in $(TARGET_SUBDIR)/libjava" ; \
36669 for flag in $(EXTRA_TARGET_FLAGS); do \
36670 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36671 done; \
36672 (cd $(TARGET_SUBDIR)/libjava && \
36673 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36674 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36675 "RANLIB=$${RANLIB}" \
36676 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 36677 clean) \
3aa83176 36678 || exit 1
4977bab6 36679
60975492 36680@endif target-libjava
4977bab6 36681
295f4e42
NN
36682.PHONY: maybe-distclean-target-libjava distclean-target-libjava
36683maybe-distclean-target-libjava:
60975492
PB
36684@if target-libjava
36685maybe-distclean-target-libjava: distclean-target-libjava
7e2dbcef 36686
05750653 36687distclean-target-libjava:
f41d6665 36688 @: $(MAKE); $(unstage)
295f4e42
NN
36689 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
36690 r=`${PWD_COMMAND}`; export r; \
36691 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36692 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
36693 echo "Doing distclean in $(TARGET_SUBDIR)/libjava" ; \
36694 for flag in $(EXTRA_TARGET_FLAGS); do \
36695 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36696 done; \
36697 (cd $(TARGET_SUBDIR)/libjava && \
36698 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36699 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36700 "RANLIB=$${RANLIB}" \
36701 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 36702 distclean) \
295f4e42 36703 || exit 1
4977bab6 36704
60975492 36705@endif target-libjava
4977bab6 36706
295f4e42
NN
36707.PHONY: maybe-maintainer-clean-target-libjava maintainer-clean-target-libjava
36708maybe-maintainer-clean-target-libjava:
60975492
PB
36709@if target-libjava
36710maybe-maintainer-clean-target-libjava: maintainer-clean-target-libjava
7e2dbcef 36711
05750653 36712maintainer-clean-target-libjava:
f41d6665 36713 @: $(MAKE); $(unstage)
295f4e42
NN
36714 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
36715 r=`${PWD_COMMAND}`; export r; \
8c90b13a 36716 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36717 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
36718 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libjava" ; \
36719 for flag in $(EXTRA_TARGET_FLAGS); do \
36720 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36721 done; \
36722 (cd $(TARGET_SUBDIR)/libjava && \
36723 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36724 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36725 "RANLIB=$${RANLIB}" \
36726 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 36727 maintainer-clean) \
295f4e42 36728 || exit 1
4977bab6 36729
60975492 36730@endif target-libjava
4977bab6 36731
295f4e42 36732
4977bab6 36733
25b42232 36734
4977bab6 36735
25b42232
PB
36736.PHONY: configure-target-zlib maybe-configure-target-zlib
36737maybe-configure-target-zlib:
3ff3adad
PB
36738@if gcc-bootstrap
36739configure-target-zlib: stage_current
36740@endif gcc-bootstrap
25b42232
PB
36741@if target-zlib
36742maybe-configure-target-zlib: configure-target-zlib
cc11cc9b 36743configure-target-zlib:
f41d6665
DJ
36744 @: $(MAKE); $(unstage)
36745 @r=`${PWD_COMMAND}`; export r; \
36746 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36747 echo "Checking multilib configuration for zlib..."; \
36748 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/zlib ; \
36749 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/zlib/multilib.tmp 2> /dev/null ; \
36750 if test -r $(TARGET_SUBDIR)/zlib/multilib.out; then \
36751 if cmp -s $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; then \
36752 rm -f $(TARGET_SUBDIR)/zlib/multilib.tmp; \
36753 else \
36754 rm -f $(TARGET_SUBDIR)/zlib/Makefile; \
36755 mv $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; \
36756 fi; \
36757 else \
36758 mv $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; \
cc11cc9b
PB
36759 fi; \
36760 test ! -f $(TARGET_SUBDIR)/zlib/Makefile || exit 0; \
295f4e42 36761 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/zlib ; \
4fc4dd12 36762 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
36763 echo Configuring in $(TARGET_SUBDIR)/zlib; \
36764 cd "$(TARGET_SUBDIR)/zlib" || exit 1; \
3aa83176 36765 case $(srcdir) in \
215c351a
PB
36766 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
36767 *) topdir=`echo $(TARGET_SUBDIR)/zlib/ | \
36768 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3aa83176 36769 esac; \
215c351a
PB
36770 srcdiroption="--srcdir=$${topdir}/zlib"; \
36771 libsrcdir="$$s/zlib"; \
3aa83176
NN
36772 rm -f no-such-file || : ; \
36773 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 36774 $(TARGET_CONFIGARGS) $${srcdiroption} \
3aa83176 36775 || exit 1
60975492 36776@endif target-zlib
4977bab6 36777
25b42232
PB
36778
36779
ce406537
PB
36780
36781
295f4e42
NN
36782.PHONY: all-target-zlib maybe-all-target-zlib
36783maybe-all-target-zlib:
3ff3adad
PB
36784@if gcc-bootstrap
36785all-target-zlib: stage_current
36786@endif gcc-bootstrap
60975492 36787@if target-zlib
7c27e184 36788TARGET-target-zlib=all
60975492 36789maybe-all-target-zlib: all-target-zlib
295f4e42 36790all-target-zlib: configure-target-zlib
f41d6665 36791 @: $(MAKE); $(unstage)
8c90b13a
L
36792 @r=`${PWD_COMMAND}`; export r; \
36793 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36794 $(NORMAL_TARGET_EXPORTS) \
295f4e42 36795 (cd $(TARGET_SUBDIR)/zlib && \
25b42232 36796 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-zlib))
60975492 36797@endif target-zlib
4977bab6 36798
25b42232
PB
36799
36800
ce406537
PB
36801
36802
295f4e42
NN
36803.PHONY: check-target-zlib maybe-check-target-zlib
36804maybe-check-target-zlib:
60975492
PB
36805@if target-zlib
36806maybe-check-target-zlib: check-target-zlib
7e2dbcef 36807
295f4e42 36808check-target-zlib:
f41d6665 36809 @: $(MAKE); $(unstage)
8c90b13a
L
36810 @r=`${PWD_COMMAND}`; export r; \
36811 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36812 $(NORMAL_TARGET_EXPORTS) \
295f4e42 36813 (cd $(TARGET_SUBDIR)/zlib && \
a52a0a7f 36814 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4977bab6 36815
60975492 36816@endif target-zlib
4977bab6 36817
295f4e42
NN
36818.PHONY: install-target-zlib maybe-install-target-zlib
36819maybe-install-target-zlib:
60975492
PB
36820@if target-zlib
36821maybe-install-target-zlib: install-target-zlib
7e2dbcef 36822
295f4e42 36823install-target-zlib: installdirs
f41d6665 36824 @: $(MAKE); $(unstage)
8c90b13a
L
36825 @r=`${PWD_COMMAND}`; export r; \
36826 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36827 $(NORMAL_TARGET_EXPORTS) \
295f4e42 36828 (cd $(TARGET_SUBDIR)/zlib && \
a52a0a7f 36829 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4977bab6 36830
60975492 36831@endif target-zlib
4977bab6 36832
295f4e42 36833# Other targets (info, dvi, etc.)
4977bab6 36834
295f4e42
NN
36835.PHONY: maybe-info-target-zlib info-target-zlib
36836maybe-info-target-zlib:
60975492
PB
36837@if target-zlib
36838maybe-info-target-zlib: info-target-zlib
4977bab6 36839
295f4e42 36840info-target-zlib: \
05750653 36841 configure-target-zlib
f41d6665 36842 @: $(MAKE); $(unstage)
295f4e42 36843 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
8c90b13a
L
36844 r=`${PWD_COMMAND}`; export r; \
36845 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36846 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
36847 echo "Doing info in $(TARGET_SUBDIR)/zlib" ; \
36848 for flag in $(EXTRA_TARGET_FLAGS); do \
36849 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36850 done; \
36851 (cd $(TARGET_SUBDIR)/zlib && \
36852 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36853 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36854 "RANLIB=$${RANLIB}" \
36855 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 36856 info) \
3aa83176 36857 || exit 1
4977bab6 36858
60975492 36859@endif target-zlib
4977bab6 36860
295f4e42
NN
36861.PHONY: maybe-dvi-target-zlib dvi-target-zlib
36862maybe-dvi-target-zlib:
60975492
PB
36863@if target-zlib
36864maybe-dvi-target-zlib: dvi-target-zlib
7e2dbcef 36865
295f4e42 36866dvi-target-zlib: \
05750653 36867 configure-target-zlib
f41d6665 36868 @: $(MAKE); $(unstage)
295f4e42
NN
36869 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
36870 r=`${PWD_COMMAND}`; export r; \
8c90b13a 36871 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36872 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
36873 echo "Doing dvi in $(TARGET_SUBDIR)/zlib" ; \
36874 for flag in $(EXTRA_TARGET_FLAGS); do \
36875 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36876 done; \
36877 (cd $(TARGET_SUBDIR)/zlib && \
36878 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36879 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36880 "RANLIB=$${RANLIB}" \
36881 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 36882 dvi) \
295f4e42 36883 || exit 1
4977bab6 36884
60975492 36885@endif target-zlib
4977bab6 36886
f87a2b2e
MS
36887.PHONY: maybe-html-target-zlib html-target-zlib
36888maybe-html-target-zlib:
36889@if target-zlib
36890maybe-html-target-zlib: html-target-zlib
36891
36892html-target-zlib: \
05750653 36893 configure-target-zlib
f41d6665 36894 @: $(MAKE); $(unstage)
f87a2b2e
MS
36895 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
36896 r=`${PWD_COMMAND}`; export r; \
36897 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
36898 $(NORMAL_TARGET_EXPORTS) \
36899 echo "Doing html in $(TARGET_SUBDIR)/zlib" ; \
36900 for flag in $(EXTRA_TARGET_FLAGS); do \
36901 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36902 done; \
36903 (cd $(TARGET_SUBDIR)/zlib && \
36904 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36905 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36906 "RANLIB=$${RANLIB}" \
36907 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
36908 html) \
36909 || exit 1
36910
36911@endif target-zlib
36912
295f4e42
NN
36913.PHONY: maybe-TAGS-target-zlib TAGS-target-zlib
36914maybe-TAGS-target-zlib:
60975492
PB
36915@if target-zlib
36916maybe-TAGS-target-zlib: TAGS-target-zlib
7e2dbcef 36917
295f4e42 36918TAGS-target-zlib: \
05750653 36919 configure-target-zlib
f41d6665 36920 @: $(MAKE); $(unstage)
295f4e42
NN
36921 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
36922 r=`${PWD_COMMAND}`; export r; \
8c90b13a 36923 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36924 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
36925 echo "Doing TAGS in $(TARGET_SUBDIR)/zlib" ; \
36926 for flag in $(EXTRA_TARGET_FLAGS); do \
36927 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36928 done; \
36929 (cd $(TARGET_SUBDIR)/zlib && \
36930 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36931 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36932 "RANLIB=$${RANLIB}" \
36933 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 36934 TAGS) \
295f4e42 36935 || exit 1
4977bab6 36936
60975492 36937@endif target-zlib
4977bab6 36938
295f4e42
NN
36939.PHONY: maybe-install-info-target-zlib install-info-target-zlib
36940maybe-install-info-target-zlib:
60975492
PB
36941@if target-zlib
36942maybe-install-info-target-zlib: install-info-target-zlib
4977bab6 36943
295f4e42
NN
36944install-info-target-zlib: \
36945 configure-target-zlib \
05750653 36946 info-target-zlib
f41d6665 36947 @: $(MAKE); $(unstage)
295f4e42 36948 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
8c90b13a
L
36949 r=`${PWD_COMMAND}`; export r; \
36950 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36951 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
36952 echo "Doing install-info in $(TARGET_SUBDIR)/zlib" ; \
36953 for flag in $(EXTRA_TARGET_FLAGS); do \
36954 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36955 done; \
36956 (cd $(TARGET_SUBDIR)/zlib && \
36957 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36958 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36959 "RANLIB=$${RANLIB}" \
36960 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 36961 install-info) \
3aa83176 36962 || exit 1
4977bab6 36963
60975492 36964@endif target-zlib
7e2dbcef 36965
65d6e994
CD
36966.PHONY: maybe-install-html-target-zlib install-html-target-zlib
36967maybe-install-html-target-zlib:
36968@if target-zlib
36969maybe-install-html-target-zlib: install-html-target-zlib
36970
36971install-html-target-zlib: \
36972 configure-target-zlib \
36973 html-target-zlib
36974 @: $(MAKE); $(unstage)
36975 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
36976 r=`${PWD_COMMAND}`; export r; \
36977 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36978 $(NORMAL_TARGET_EXPORTS) \
36979 echo "Doing install-html in $(TARGET_SUBDIR)/zlib" ; \
36980 for flag in $(EXTRA_TARGET_FLAGS); do \
36981 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36982 done; \
36983 (cd $(TARGET_SUBDIR)/zlib && \
36984 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36985 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36986 "RANLIB=$${RANLIB}" \
36987 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
36988 install-html) \
36989 || exit 1
36990
36991@endif target-zlib
36992
295f4e42
NN
36993.PHONY: maybe-installcheck-target-zlib installcheck-target-zlib
36994maybe-installcheck-target-zlib:
60975492
PB
36995@if target-zlib
36996maybe-installcheck-target-zlib: installcheck-target-zlib
4977bab6 36997
295f4e42 36998installcheck-target-zlib: \
05750653 36999 configure-target-zlib
f41d6665 37000 @: $(MAKE); $(unstage)
295f4e42
NN
37001 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
37002 r=`${PWD_COMMAND}`; export r; \
37003 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37004 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37005 echo "Doing installcheck in $(TARGET_SUBDIR)/zlib" ; \
37006 for flag in $(EXTRA_TARGET_FLAGS); do \
37007 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37008 done; \
37009 (cd $(TARGET_SUBDIR)/zlib && \
37010 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37011 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37012 "RANLIB=$${RANLIB}" \
37013 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37014 installcheck) \
295f4e42 37015 || exit 1
4977bab6 37016
60975492 37017@endif target-zlib
7e2dbcef 37018
295f4e42
NN
37019.PHONY: maybe-mostlyclean-target-zlib mostlyclean-target-zlib
37020maybe-mostlyclean-target-zlib:
60975492
PB
37021@if target-zlib
37022maybe-mostlyclean-target-zlib: mostlyclean-target-zlib
4977bab6 37023
05750653 37024mostlyclean-target-zlib:
f41d6665 37025 @: $(MAKE); $(unstage)
295f4e42
NN
37026 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
37027 r=`${PWD_COMMAND}`; export r; \
37028 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37029 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37030 echo "Doing mostlyclean in $(TARGET_SUBDIR)/zlib" ; \
37031 for flag in $(EXTRA_TARGET_FLAGS); do \
37032 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37033 done; \
37034 (cd $(TARGET_SUBDIR)/zlib && \
37035 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37036 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37037 "RANLIB=$${RANLIB}" \
37038 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37039 mostlyclean) \
295f4e42 37040 || exit 1
4977bab6 37041
60975492 37042@endif target-zlib
4977bab6 37043
295f4e42
NN
37044.PHONY: maybe-clean-target-zlib clean-target-zlib
37045maybe-clean-target-zlib:
60975492
PB
37046@if target-zlib
37047maybe-clean-target-zlib: clean-target-zlib
4977bab6 37048
05750653 37049clean-target-zlib:
f41d6665 37050 @: $(MAKE); $(unstage)
295f4e42 37051 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
8c90b13a
L
37052 r=`${PWD_COMMAND}`; export r; \
37053 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37054 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37055 echo "Doing clean in $(TARGET_SUBDIR)/zlib" ; \
37056 for flag in $(EXTRA_TARGET_FLAGS); do \
37057 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37058 done; \
37059 (cd $(TARGET_SUBDIR)/zlib && \
37060 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37061 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37062 "RANLIB=$${RANLIB}" \
37063 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37064 clean) \
3aa83176 37065 || exit 1
4977bab6 37066
60975492 37067@endif target-zlib
4977bab6 37068
295f4e42
NN
37069.PHONY: maybe-distclean-target-zlib distclean-target-zlib
37070maybe-distclean-target-zlib:
60975492
PB
37071@if target-zlib
37072maybe-distclean-target-zlib: distclean-target-zlib
7e2dbcef 37073
05750653 37074distclean-target-zlib:
f41d6665 37075 @: $(MAKE); $(unstage)
295f4e42
NN
37076 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
37077 r=`${PWD_COMMAND}`; export r; \
8c90b13a 37078 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37079 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37080 echo "Doing distclean in $(TARGET_SUBDIR)/zlib" ; \
37081 for flag in $(EXTRA_TARGET_FLAGS); do \
37082 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37083 done; \
37084 (cd $(TARGET_SUBDIR)/zlib && \
37085 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37086 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37087 "RANLIB=$${RANLIB}" \
37088 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37089 distclean) \
295f4e42 37090 || exit 1
4977bab6 37091
60975492 37092@endif target-zlib
4977bab6 37093
295f4e42
NN
37094.PHONY: maybe-maintainer-clean-target-zlib maintainer-clean-target-zlib
37095maybe-maintainer-clean-target-zlib:
60975492
PB
37096@if target-zlib
37097maybe-maintainer-clean-target-zlib: maintainer-clean-target-zlib
7e2dbcef 37098
05750653 37099maintainer-clean-target-zlib:
f41d6665 37100 @: $(MAKE); $(unstage)
295f4e42
NN
37101 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
37102 r=`${PWD_COMMAND}`; export r; \
8c90b13a 37103 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37104 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37105 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/zlib" ; \
37106 for flag in $(EXTRA_TARGET_FLAGS); do \
37107 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37108 done; \
37109 (cd $(TARGET_SUBDIR)/zlib && \
37110 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37111 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37112 "RANLIB=$${RANLIB}" \
37113 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37114 maintainer-clean) \
295f4e42 37115 || exit 1
4977bab6 37116
60975492 37117@endif target-zlib
4977bab6 37118
4977bab6 37119
295f4e42 37120
25b42232 37121
4977bab6 37122
25b42232
PB
37123.PHONY: configure-target-boehm-gc maybe-configure-target-boehm-gc
37124maybe-configure-target-boehm-gc:
3ff3adad
PB
37125@if gcc-bootstrap
37126configure-target-boehm-gc: stage_current
37127@endif gcc-bootstrap
25b42232
PB
37128@if target-boehm-gc
37129maybe-configure-target-boehm-gc: configure-target-boehm-gc
cc11cc9b 37130configure-target-boehm-gc:
f41d6665
DJ
37131 @: $(MAKE); $(unstage)
37132 @r=`${PWD_COMMAND}`; export r; \
37133 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37134 echo "Checking multilib configuration for boehm-gc..."; \
37135 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/boehm-gc ; \
37136 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/boehm-gc/multilib.tmp 2> /dev/null ; \
37137 if test -r $(TARGET_SUBDIR)/boehm-gc/multilib.out; then \
37138 if cmp -s $(TARGET_SUBDIR)/boehm-gc/multilib.tmp $(TARGET_SUBDIR)/boehm-gc/multilib.out; then \
37139 rm -f $(TARGET_SUBDIR)/boehm-gc/multilib.tmp; \
37140 else \
37141 rm -f $(TARGET_SUBDIR)/boehm-gc/Makefile; \
37142 mv $(TARGET_SUBDIR)/boehm-gc/multilib.tmp $(TARGET_SUBDIR)/boehm-gc/multilib.out; \
37143 fi; \
37144 else \
37145 mv $(TARGET_SUBDIR)/boehm-gc/multilib.tmp $(TARGET_SUBDIR)/boehm-gc/multilib.out; \
cc11cc9b
PB
37146 fi; \
37147 test ! -f $(TARGET_SUBDIR)/boehm-gc/Makefile || exit 0; \
295f4e42 37148 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/boehm-gc ; \
4fc4dd12 37149 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37150 echo Configuring in $(TARGET_SUBDIR)/boehm-gc; \
37151 cd "$(TARGET_SUBDIR)/boehm-gc" || exit 1; \
3aa83176 37152 case $(srcdir) in \
215c351a
PB
37153 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
37154 *) topdir=`echo $(TARGET_SUBDIR)/boehm-gc/ | \
37155 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3aa83176 37156 esac; \
215c351a
PB
37157 srcdiroption="--srcdir=$${topdir}/boehm-gc"; \
37158 libsrcdir="$$s/boehm-gc"; \
3aa83176
NN
37159 rm -f no-such-file || : ; \
37160 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 37161 $(TARGET_CONFIGARGS) $${srcdiroption} \
3aa83176 37162 || exit 1
60975492 37163@endif target-boehm-gc
4977bab6 37164
25b42232
PB
37165
37166
ce406537
PB
37167
37168
295f4e42
NN
37169.PHONY: all-target-boehm-gc maybe-all-target-boehm-gc
37170maybe-all-target-boehm-gc:
3ff3adad
PB
37171@if gcc-bootstrap
37172all-target-boehm-gc: stage_current
37173@endif gcc-bootstrap
60975492 37174@if target-boehm-gc
7c27e184 37175TARGET-target-boehm-gc=all
60975492 37176maybe-all-target-boehm-gc: all-target-boehm-gc
295f4e42 37177all-target-boehm-gc: configure-target-boehm-gc
f41d6665 37178 @: $(MAKE); $(unstage)
8c90b13a
L
37179 @r=`${PWD_COMMAND}`; export r; \
37180 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37181 $(NORMAL_TARGET_EXPORTS) \
295f4e42 37182 (cd $(TARGET_SUBDIR)/boehm-gc && \
25b42232 37183 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-boehm-gc))
60975492 37184@endif target-boehm-gc
4977bab6 37185
25b42232
PB
37186
37187
ce406537
PB
37188
37189
295f4e42
NN
37190.PHONY: check-target-boehm-gc maybe-check-target-boehm-gc
37191maybe-check-target-boehm-gc:
60975492
PB
37192@if target-boehm-gc
37193maybe-check-target-boehm-gc: check-target-boehm-gc
7e2dbcef 37194
295f4e42 37195check-target-boehm-gc:
f41d6665 37196 @: $(MAKE); $(unstage)
8c90b13a
L
37197 @r=`${PWD_COMMAND}`; export r; \
37198 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37199 $(NORMAL_TARGET_EXPORTS) \
295f4e42 37200 (cd $(TARGET_SUBDIR)/boehm-gc && \
a52a0a7f 37201 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4977bab6 37202
60975492 37203@endif target-boehm-gc
4977bab6 37204
295f4e42
NN
37205.PHONY: install-target-boehm-gc maybe-install-target-boehm-gc
37206maybe-install-target-boehm-gc:
60975492
PB
37207@if target-boehm-gc
37208maybe-install-target-boehm-gc: install-target-boehm-gc
7e2dbcef 37209
295f4e42 37210install-target-boehm-gc: installdirs
f41d6665 37211 @: $(MAKE); $(unstage)
8c90b13a
L
37212 @r=`${PWD_COMMAND}`; export r; \
37213 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37214 $(NORMAL_TARGET_EXPORTS) \
295f4e42 37215 (cd $(TARGET_SUBDIR)/boehm-gc && \
a52a0a7f 37216 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4977bab6 37217
60975492 37218@endif target-boehm-gc
4977bab6 37219
295f4e42
NN
37220# Other targets (info, dvi, etc.)
37221
37222.PHONY: maybe-info-target-boehm-gc info-target-boehm-gc
37223maybe-info-target-boehm-gc:
60975492
PB
37224@if target-boehm-gc
37225maybe-info-target-boehm-gc: info-target-boehm-gc
295f4e42
NN
37226
37227info-target-boehm-gc: \
05750653 37228 configure-target-boehm-gc
f41d6665 37229 @: $(MAKE); $(unstage)
295f4e42
NN
37230 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
37231 r=`${PWD_COMMAND}`; export r; \
37232 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37233 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37234 echo "Doing info in $(TARGET_SUBDIR)/boehm-gc" ; \
37235 for flag in $(EXTRA_TARGET_FLAGS); do \
37236 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37237 done; \
37238 (cd $(TARGET_SUBDIR)/boehm-gc && \
37239 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37240 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37241 "RANLIB=$${RANLIB}" \
37242 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37243 info) \
295f4e42
NN
37244 || exit 1
37245
60975492 37246@endif target-boehm-gc
295f4e42
NN
37247
37248.PHONY: maybe-dvi-target-boehm-gc dvi-target-boehm-gc
37249maybe-dvi-target-boehm-gc:
60975492
PB
37250@if target-boehm-gc
37251maybe-dvi-target-boehm-gc: dvi-target-boehm-gc
295f4e42
NN
37252
37253dvi-target-boehm-gc: \
05750653 37254 configure-target-boehm-gc
f41d6665 37255 @: $(MAKE); $(unstage)
295f4e42
NN
37256 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
37257 r=`${PWD_COMMAND}`; export r; \
37258 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37259 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37260 echo "Doing dvi in $(TARGET_SUBDIR)/boehm-gc" ; \
37261 for flag in $(EXTRA_TARGET_FLAGS); do \
37262 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37263 done; \
37264 (cd $(TARGET_SUBDIR)/boehm-gc && \
37265 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37266 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37267 "RANLIB=$${RANLIB}" \
37268 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37269 dvi) \
295f4e42
NN
37270 || exit 1
37271
60975492 37272@endif target-boehm-gc
295f4e42 37273
f87a2b2e
MS
37274.PHONY: maybe-html-target-boehm-gc html-target-boehm-gc
37275maybe-html-target-boehm-gc:
37276@if target-boehm-gc
37277maybe-html-target-boehm-gc: html-target-boehm-gc
37278
37279html-target-boehm-gc: \
05750653 37280 configure-target-boehm-gc
f41d6665 37281 @: $(MAKE); $(unstage)
f87a2b2e
MS
37282 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
37283 r=`${PWD_COMMAND}`; export r; \
37284 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
37285 $(NORMAL_TARGET_EXPORTS) \
37286 echo "Doing html in $(TARGET_SUBDIR)/boehm-gc" ; \
37287 for flag in $(EXTRA_TARGET_FLAGS); do \
37288 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37289 done; \
37290 (cd $(TARGET_SUBDIR)/boehm-gc && \
37291 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37292 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37293 "RANLIB=$${RANLIB}" \
37294 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
37295 html) \
37296 || exit 1
37297
37298@endif target-boehm-gc
37299
295f4e42
NN
37300.PHONY: maybe-TAGS-target-boehm-gc TAGS-target-boehm-gc
37301maybe-TAGS-target-boehm-gc:
60975492
PB
37302@if target-boehm-gc
37303maybe-TAGS-target-boehm-gc: TAGS-target-boehm-gc
295f4e42
NN
37304
37305TAGS-target-boehm-gc: \
05750653 37306 configure-target-boehm-gc
f41d6665 37307 @: $(MAKE); $(unstage)
295f4e42
NN
37308 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
37309 r=`${PWD_COMMAND}`; export r; \
37310 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37311 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37312 echo "Doing TAGS in $(TARGET_SUBDIR)/boehm-gc" ; \
37313 for flag in $(EXTRA_TARGET_FLAGS); do \
37314 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37315 done; \
37316 (cd $(TARGET_SUBDIR)/boehm-gc && \
37317 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37318 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37319 "RANLIB=$${RANLIB}" \
37320 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37321 TAGS) \
295f4e42
NN
37322 || exit 1
37323
60975492 37324@endif target-boehm-gc
295f4e42
NN
37325
37326.PHONY: maybe-install-info-target-boehm-gc install-info-target-boehm-gc
37327maybe-install-info-target-boehm-gc:
60975492
PB
37328@if target-boehm-gc
37329maybe-install-info-target-boehm-gc: install-info-target-boehm-gc
295f4e42
NN
37330
37331install-info-target-boehm-gc: \
37332 configure-target-boehm-gc \
05750653 37333 info-target-boehm-gc
f41d6665 37334 @: $(MAKE); $(unstage)
295f4e42
NN
37335 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
37336 r=`${PWD_COMMAND}`; export r; \
37337 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37338 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37339 echo "Doing install-info in $(TARGET_SUBDIR)/boehm-gc" ; \
37340 for flag in $(EXTRA_TARGET_FLAGS); do \
37341 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37342 done; \
37343 (cd $(TARGET_SUBDIR)/boehm-gc && \
37344 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37345 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37346 "RANLIB=$${RANLIB}" \
37347 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37348 install-info) \
295f4e42
NN
37349 || exit 1
37350
60975492 37351@endif target-boehm-gc
295f4e42 37352
65d6e994
CD
37353.PHONY: maybe-install-html-target-boehm-gc install-html-target-boehm-gc
37354maybe-install-html-target-boehm-gc:
37355@if target-boehm-gc
37356maybe-install-html-target-boehm-gc: install-html-target-boehm-gc
37357
37358install-html-target-boehm-gc: \
37359 configure-target-boehm-gc \
37360 html-target-boehm-gc
37361 @: $(MAKE); $(unstage)
37362 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
37363 r=`${PWD_COMMAND}`; export r; \
37364 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37365 $(NORMAL_TARGET_EXPORTS) \
37366 echo "Doing install-html in $(TARGET_SUBDIR)/boehm-gc" ; \
37367 for flag in $(EXTRA_TARGET_FLAGS); do \
37368 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37369 done; \
37370 (cd $(TARGET_SUBDIR)/boehm-gc && \
37371 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37372 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37373 "RANLIB=$${RANLIB}" \
37374 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
37375 install-html) \
37376 || exit 1
37377
37378@endif target-boehm-gc
37379
295f4e42
NN
37380.PHONY: maybe-installcheck-target-boehm-gc installcheck-target-boehm-gc
37381maybe-installcheck-target-boehm-gc:
60975492
PB
37382@if target-boehm-gc
37383maybe-installcheck-target-boehm-gc: installcheck-target-boehm-gc
295f4e42
NN
37384
37385installcheck-target-boehm-gc: \
05750653 37386 configure-target-boehm-gc
f41d6665 37387 @: $(MAKE); $(unstage)
295f4e42
NN
37388 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
37389 r=`${PWD_COMMAND}`; export r; \
37390 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37391 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37392 echo "Doing installcheck in $(TARGET_SUBDIR)/boehm-gc" ; \
37393 for flag in $(EXTRA_TARGET_FLAGS); do \
37394 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37395 done; \
37396 (cd $(TARGET_SUBDIR)/boehm-gc && \
37397 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37398 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37399 "RANLIB=$${RANLIB}" \
37400 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37401 installcheck) \
295f4e42
NN
37402 || exit 1
37403
60975492 37404@endif target-boehm-gc
295f4e42
NN
37405
37406.PHONY: maybe-mostlyclean-target-boehm-gc mostlyclean-target-boehm-gc
37407maybe-mostlyclean-target-boehm-gc:
60975492
PB
37408@if target-boehm-gc
37409maybe-mostlyclean-target-boehm-gc: mostlyclean-target-boehm-gc
295f4e42 37410
05750653 37411mostlyclean-target-boehm-gc:
f41d6665 37412 @: $(MAKE); $(unstage)
295f4e42
NN
37413 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
37414 r=`${PWD_COMMAND}`; export r; \
37415 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37416 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37417 echo "Doing mostlyclean in $(TARGET_SUBDIR)/boehm-gc" ; \
37418 for flag in $(EXTRA_TARGET_FLAGS); do \
37419 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37420 done; \
37421 (cd $(TARGET_SUBDIR)/boehm-gc && \
37422 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37423 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37424 "RANLIB=$${RANLIB}" \
37425 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37426 mostlyclean) \
295f4e42
NN
37427 || exit 1
37428
60975492 37429@endif target-boehm-gc
295f4e42
NN
37430
37431.PHONY: maybe-clean-target-boehm-gc clean-target-boehm-gc
37432maybe-clean-target-boehm-gc:
60975492
PB
37433@if target-boehm-gc
37434maybe-clean-target-boehm-gc: clean-target-boehm-gc
295f4e42 37435
05750653 37436clean-target-boehm-gc:
f41d6665 37437 @: $(MAKE); $(unstage)
295f4e42
NN
37438 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
37439 r=`${PWD_COMMAND}`; export r; \
37440 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37441 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37442 echo "Doing clean in $(TARGET_SUBDIR)/boehm-gc" ; \
37443 for flag in $(EXTRA_TARGET_FLAGS); do \
37444 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37445 done; \
37446 (cd $(TARGET_SUBDIR)/boehm-gc && \
37447 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37448 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37449 "RANLIB=$${RANLIB}" \
37450 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37451 clean) \
295f4e42
NN
37452 || exit 1
37453
60975492 37454@endif target-boehm-gc
295f4e42
NN
37455
37456.PHONY: maybe-distclean-target-boehm-gc distclean-target-boehm-gc
37457maybe-distclean-target-boehm-gc:
60975492
PB
37458@if target-boehm-gc
37459maybe-distclean-target-boehm-gc: distclean-target-boehm-gc
295f4e42 37460
05750653 37461distclean-target-boehm-gc:
f41d6665 37462 @: $(MAKE); $(unstage)
295f4e42
NN
37463 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
37464 r=`${PWD_COMMAND}`; export r; \
37465 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37466 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37467 echo "Doing distclean in $(TARGET_SUBDIR)/boehm-gc" ; \
37468 for flag in $(EXTRA_TARGET_FLAGS); do \
37469 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37470 done; \
37471 (cd $(TARGET_SUBDIR)/boehm-gc && \
37472 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37473 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37474 "RANLIB=$${RANLIB}" \
37475 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37476 distclean) \
295f4e42
NN
37477 || exit 1
37478
60975492 37479@endif target-boehm-gc
295f4e42
NN
37480
37481.PHONY: maybe-maintainer-clean-target-boehm-gc maintainer-clean-target-boehm-gc
37482maybe-maintainer-clean-target-boehm-gc:
60975492
PB
37483@if target-boehm-gc
37484maybe-maintainer-clean-target-boehm-gc: maintainer-clean-target-boehm-gc
295f4e42 37485
05750653 37486maintainer-clean-target-boehm-gc:
f41d6665 37487 @: $(MAKE); $(unstage)
295f4e42
NN
37488 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
37489 r=`${PWD_COMMAND}`; export r; \
37490 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37491 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37492 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/boehm-gc" ; \
37493 for flag in $(EXTRA_TARGET_FLAGS); do \
37494 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37495 done; \
37496 (cd $(TARGET_SUBDIR)/boehm-gc && \
37497 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37498 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37499 "RANLIB=$${RANLIB}" \
37500 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37501 maintainer-clean) \
295f4e42
NN
37502 || exit 1
37503
60975492 37504@endif target-boehm-gc
295f4e42
NN
37505
37506
4977bab6 37507
4977bab6 37508
25b42232
PB
37509
37510.PHONY: configure-target-qthreads maybe-configure-target-qthreads
37511maybe-configure-target-qthreads:
3ff3adad
PB
37512@if gcc-bootstrap
37513configure-target-qthreads: stage_current
37514@endif gcc-bootstrap
25b42232
PB
37515@if target-qthreads
37516maybe-configure-target-qthreads: configure-target-qthreads
cc11cc9b 37517configure-target-qthreads:
f41d6665
DJ
37518 @: $(MAKE); $(unstage)
37519 @r=`${PWD_COMMAND}`; export r; \
37520 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37521 echo "Checking multilib configuration for qthreads..."; \
37522 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/qthreads ; \
37523 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/qthreads/multilib.tmp 2> /dev/null ; \
37524 if test -r $(TARGET_SUBDIR)/qthreads/multilib.out; then \
37525 if cmp -s $(TARGET_SUBDIR)/qthreads/multilib.tmp $(TARGET_SUBDIR)/qthreads/multilib.out; then \
37526 rm -f $(TARGET_SUBDIR)/qthreads/multilib.tmp; \
37527 else \
37528 rm -f $(TARGET_SUBDIR)/qthreads/Makefile; \
37529 mv $(TARGET_SUBDIR)/qthreads/multilib.tmp $(TARGET_SUBDIR)/qthreads/multilib.out; \
37530 fi; \
37531 else \
37532 mv $(TARGET_SUBDIR)/qthreads/multilib.tmp $(TARGET_SUBDIR)/qthreads/multilib.out; \
cc11cc9b
PB
37533 fi; \
37534 test ! -f $(TARGET_SUBDIR)/qthreads/Makefile || exit 0; \
295f4e42 37535 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/qthreads ; \
4fc4dd12 37536 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37537 echo Configuring in $(TARGET_SUBDIR)/qthreads; \
37538 cd "$(TARGET_SUBDIR)/qthreads" || exit 1; \
3aa83176 37539 case $(srcdir) in \
215c351a
PB
37540 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
37541 *) topdir=`echo $(TARGET_SUBDIR)/qthreads/ | \
37542 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3aa83176 37543 esac; \
215c351a
PB
37544 srcdiroption="--srcdir=$${topdir}/qthreads"; \
37545 libsrcdir="$$s/qthreads"; \
3aa83176
NN
37546 rm -f no-such-file || : ; \
37547 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 37548 $(TARGET_CONFIGARGS) $${srcdiroption} \
3aa83176 37549 || exit 1
60975492 37550@endif target-qthreads
4977bab6 37551
25b42232
PB
37552
37553
ce406537
PB
37554
37555
295f4e42
NN
37556.PHONY: all-target-qthreads maybe-all-target-qthreads
37557maybe-all-target-qthreads:
3ff3adad
PB
37558@if gcc-bootstrap
37559all-target-qthreads: stage_current
37560@endif gcc-bootstrap
60975492 37561@if target-qthreads
7c27e184 37562TARGET-target-qthreads=all
60975492 37563maybe-all-target-qthreads: all-target-qthreads
295f4e42 37564all-target-qthreads: configure-target-qthreads
f41d6665 37565 @: $(MAKE); $(unstage)
8c90b13a
L
37566 @r=`${PWD_COMMAND}`; export r; \
37567 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37568 $(NORMAL_TARGET_EXPORTS) \
295f4e42 37569 (cd $(TARGET_SUBDIR)/qthreads && \
25b42232 37570 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-qthreads))
60975492 37571@endif target-qthreads
4977bab6 37572
25b42232
PB
37573
37574
ce406537
PB
37575
37576
295f4e42
NN
37577.PHONY: check-target-qthreads maybe-check-target-qthreads
37578maybe-check-target-qthreads:
60975492
PB
37579@if target-qthreads
37580maybe-check-target-qthreads: check-target-qthreads
7e2dbcef 37581
295f4e42 37582check-target-qthreads:
f41d6665 37583 @: $(MAKE); $(unstage)
8c90b13a
L
37584 @r=`${PWD_COMMAND}`; export r; \
37585 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37586 $(NORMAL_TARGET_EXPORTS) \
295f4e42 37587 (cd $(TARGET_SUBDIR)/qthreads && \
a52a0a7f 37588 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4977bab6 37589
60975492 37590@endif target-qthreads
4977bab6 37591
295f4e42
NN
37592.PHONY: install-target-qthreads maybe-install-target-qthreads
37593maybe-install-target-qthreads:
60975492
PB
37594@if target-qthreads
37595maybe-install-target-qthreads: install-target-qthreads
295f4e42
NN
37596
37597install-target-qthreads: installdirs
f41d6665 37598 @: $(MAKE); $(unstage)
295f4e42
NN
37599 @r=`${PWD_COMMAND}`; export r; \
37600 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37601 $(NORMAL_TARGET_EXPORTS) \
295f4e42 37602 (cd $(TARGET_SUBDIR)/qthreads && \
a52a0a7f 37603 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
295f4e42 37604
60975492 37605@endif target-qthreads
295f4e42
NN
37606
37607# Other targets (info, dvi, etc.)
37608
37609.PHONY: maybe-info-target-qthreads info-target-qthreads
37610maybe-info-target-qthreads:
60975492
PB
37611@if target-qthreads
37612maybe-info-target-qthreads: info-target-qthreads
295f4e42
NN
37613
37614info-target-qthreads: \
05750653 37615 configure-target-qthreads
f41d6665 37616 @: $(MAKE); $(unstage)
295f4e42
NN
37617 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
37618 r=`${PWD_COMMAND}`; export r; \
37619 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37620 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37621 echo "Doing info in $(TARGET_SUBDIR)/qthreads" ; \
37622 for flag in $(EXTRA_TARGET_FLAGS); do \
37623 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37624 done; \
37625 (cd $(TARGET_SUBDIR)/qthreads && \
37626 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37627 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37628 "RANLIB=$${RANLIB}" \
37629 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37630 info) \
295f4e42
NN
37631 || exit 1
37632
60975492 37633@endif target-qthreads
295f4e42
NN
37634
37635.PHONY: maybe-dvi-target-qthreads dvi-target-qthreads
37636maybe-dvi-target-qthreads:
60975492
PB
37637@if target-qthreads
37638maybe-dvi-target-qthreads: dvi-target-qthreads
295f4e42
NN
37639
37640dvi-target-qthreads: \
05750653 37641 configure-target-qthreads
f41d6665 37642 @: $(MAKE); $(unstage)
295f4e42
NN
37643 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
37644 r=`${PWD_COMMAND}`; export r; \
37645 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37646 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37647 echo "Doing dvi in $(TARGET_SUBDIR)/qthreads" ; \
37648 for flag in $(EXTRA_TARGET_FLAGS); do \
37649 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37650 done; \
37651 (cd $(TARGET_SUBDIR)/qthreads && \
37652 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37653 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37654 "RANLIB=$${RANLIB}" \
37655 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37656 dvi) \
295f4e42
NN
37657 || exit 1
37658
60975492 37659@endif target-qthreads
295f4e42 37660
f87a2b2e
MS
37661.PHONY: maybe-html-target-qthreads html-target-qthreads
37662maybe-html-target-qthreads:
37663@if target-qthreads
37664maybe-html-target-qthreads: html-target-qthreads
37665
37666html-target-qthreads: \
05750653 37667 configure-target-qthreads
f41d6665 37668 @: $(MAKE); $(unstage)
f87a2b2e
MS
37669 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
37670 r=`${PWD_COMMAND}`; export r; \
37671 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
37672 $(NORMAL_TARGET_EXPORTS) \
37673 echo "Doing html in $(TARGET_SUBDIR)/qthreads" ; \
37674 for flag in $(EXTRA_TARGET_FLAGS); do \
37675 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37676 done; \
37677 (cd $(TARGET_SUBDIR)/qthreads && \
37678 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37679 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37680 "RANLIB=$${RANLIB}" \
37681 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
37682 html) \
37683 || exit 1
37684
37685@endif target-qthreads
37686
295f4e42
NN
37687.PHONY: maybe-TAGS-target-qthreads TAGS-target-qthreads
37688maybe-TAGS-target-qthreads:
60975492
PB
37689@if target-qthreads
37690maybe-TAGS-target-qthreads: TAGS-target-qthreads
295f4e42
NN
37691
37692TAGS-target-qthreads: \
05750653 37693 configure-target-qthreads
f41d6665 37694 @: $(MAKE); $(unstage)
295f4e42
NN
37695 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
37696 r=`${PWD_COMMAND}`; export r; \
37697 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37698 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37699 echo "Doing TAGS in $(TARGET_SUBDIR)/qthreads" ; \
37700 for flag in $(EXTRA_TARGET_FLAGS); do \
37701 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37702 done; \
37703 (cd $(TARGET_SUBDIR)/qthreads && \
37704 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37705 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37706 "RANLIB=$${RANLIB}" \
37707 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37708 TAGS) \
295f4e42
NN
37709 || exit 1
37710
60975492 37711@endif target-qthreads
295f4e42
NN
37712
37713.PHONY: maybe-install-info-target-qthreads install-info-target-qthreads
37714maybe-install-info-target-qthreads:
60975492
PB
37715@if target-qthreads
37716maybe-install-info-target-qthreads: install-info-target-qthreads
295f4e42
NN
37717
37718install-info-target-qthreads: \
37719 configure-target-qthreads \
05750653 37720 info-target-qthreads
f41d6665 37721 @: $(MAKE); $(unstage)
295f4e42
NN
37722 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
37723 r=`${PWD_COMMAND}`; export r; \
37724 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37725 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37726 echo "Doing install-info in $(TARGET_SUBDIR)/qthreads" ; \
37727 for flag in $(EXTRA_TARGET_FLAGS); do \
37728 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37729 done; \
37730 (cd $(TARGET_SUBDIR)/qthreads && \
37731 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37732 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37733 "RANLIB=$${RANLIB}" \
37734 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37735 install-info) \
295f4e42
NN
37736 || exit 1
37737
60975492 37738@endif target-qthreads
295f4e42 37739
65d6e994
CD
37740.PHONY: maybe-install-html-target-qthreads install-html-target-qthreads
37741maybe-install-html-target-qthreads:
37742@if target-qthreads
37743maybe-install-html-target-qthreads: install-html-target-qthreads
37744
37745install-html-target-qthreads: \
37746 configure-target-qthreads \
37747 html-target-qthreads
37748 @: $(MAKE); $(unstage)
37749 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
37750 r=`${PWD_COMMAND}`; export r; \
37751 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37752 $(NORMAL_TARGET_EXPORTS) \
37753 echo "Doing install-html in $(TARGET_SUBDIR)/qthreads" ; \
37754 for flag in $(EXTRA_TARGET_FLAGS); do \
37755 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37756 done; \
37757 (cd $(TARGET_SUBDIR)/qthreads && \
37758 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37759 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37760 "RANLIB=$${RANLIB}" \
37761 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
37762 install-html) \
37763 || exit 1
37764
37765@endif target-qthreads
37766
295f4e42
NN
37767.PHONY: maybe-installcheck-target-qthreads installcheck-target-qthreads
37768maybe-installcheck-target-qthreads:
60975492
PB
37769@if target-qthreads
37770maybe-installcheck-target-qthreads: installcheck-target-qthreads
295f4e42
NN
37771
37772installcheck-target-qthreads: \
05750653 37773 configure-target-qthreads
f41d6665 37774 @: $(MAKE); $(unstage)
295f4e42
NN
37775 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
37776 r=`${PWD_COMMAND}`; export r; \
37777 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37778 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37779 echo "Doing installcheck in $(TARGET_SUBDIR)/qthreads" ; \
37780 for flag in $(EXTRA_TARGET_FLAGS); do \
37781 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37782 done; \
37783 (cd $(TARGET_SUBDIR)/qthreads && \
37784 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37785 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37786 "RANLIB=$${RANLIB}" \
37787 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37788 installcheck) \
295f4e42
NN
37789 || exit 1
37790
60975492 37791@endif target-qthreads
295f4e42
NN
37792
37793.PHONY: maybe-mostlyclean-target-qthreads mostlyclean-target-qthreads
37794maybe-mostlyclean-target-qthreads:
60975492
PB
37795@if target-qthreads
37796maybe-mostlyclean-target-qthreads: mostlyclean-target-qthreads
295f4e42 37797
05750653 37798mostlyclean-target-qthreads:
f41d6665 37799 @: $(MAKE); $(unstage)
295f4e42
NN
37800 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
37801 r=`${PWD_COMMAND}`; export r; \
37802 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37803 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37804 echo "Doing mostlyclean in $(TARGET_SUBDIR)/qthreads" ; \
37805 for flag in $(EXTRA_TARGET_FLAGS); do \
37806 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37807 done; \
37808 (cd $(TARGET_SUBDIR)/qthreads && \
37809 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37810 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37811 "RANLIB=$${RANLIB}" \
37812 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37813 mostlyclean) \
295f4e42
NN
37814 || exit 1
37815
60975492 37816@endif target-qthreads
295f4e42
NN
37817
37818.PHONY: maybe-clean-target-qthreads clean-target-qthreads
37819maybe-clean-target-qthreads:
60975492
PB
37820@if target-qthreads
37821maybe-clean-target-qthreads: clean-target-qthreads
295f4e42 37822
05750653 37823clean-target-qthreads:
f41d6665 37824 @: $(MAKE); $(unstage)
295f4e42
NN
37825 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
37826 r=`${PWD_COMMAND}`; export r; \
37827 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37828 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37829 echo "Doing clean in $(TARGET_SUBDIR)/qthreads" ; \
37830 for flag in $(EXTRA_TARGET_FLAGS); do \
37831 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37832 done; \
37833 (cd $(TARGET_SUBDIR)/qthreads && \
37834 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37835 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37836 "RANLIB=$${RANLIB}" \
37837 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37838 clean) \
295f4e42
NN
37839 || exit 1
37840
60975492 37841@endif target-qthreads
295f4e42
NN
37842
37843.PHONY: maybe-distclean-target-qthreads distclean-target-qthreads
37844maybe-distclean-target-qthreads:
60975492
PB
37845@if target-qthreads
37846maybe-distclean-target-qthreads: distclean-target-qthreads
295f4e42 37847
05750653 37848distclean-target-qthreads:
f41d6665 37849 @: $(MAKE); $(unstage)
295f4e42
NN
37850 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
37851 r=`${PWD_COMMAND}`; export r; \
37852 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37853 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37854 echo "Doing distclean in $(TARGET_SUBDIR)/qthreads" ; \
37855 for flag in $(EXTRA_TARGET_FLAGS); do \
37856 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37857 done; \
37858 (cd $(TARGET_SUBDIR)/qthreads && \
37859 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37860 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37861 "RANLIB=$${RANLIB}" \
37862 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37863 distclean) \
295f4e42
NN
37864 || exit 1
37865
60975492 37866@endif target-qthreads
295f4e42
NN
37867
37868.PHONY: maybe-maintainer-clean-target-qthreads maintainer-clean-target-qthreads
37869maybe-maintainer-clean-target-qthreads:
60975492
PB
37870@if target-qthreads
37871maybe-maintainer-clean-target-qthreads: maintainer-clean-target-qthreads
295f4e42 37872
05750653 37873maintainer-clean-target-qthreads:
f41d6665 37874 @: $(MAKE); $(unstage)
295f4e42
NN
37875 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
37876 r=`${PWD_COMMAND}`; export r; \
37877 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37878 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37879 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/qthreads" ; \
37880 for flag in $(EXTRA_TARGET_FLAGS); do \
37881 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37882 done; \
37883 (cd $(TARGET_SUBDIR)/qthreads && \
37884 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37885 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37886 "RANLIB=$${RANLIB}" \
37887 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37888 maintainer-clean) \
295f4e42 37889 || exit 1
7e2dbcef 37890
60975492 37891@endif target-qthreads
4977bab6
ZW
37892
37893
4977bab6 37894
4977bab6 37895
25b42232
PB
37896
37897.PHONY: configure-target-rda maybe-configure-target-rda
37898maybe-configure-target-rda:
3ff3adad
PB
37899@if gcc-bootstrap
37900configure-target-rda: stage_current
37901@endif gcc-bootstrap
25b42232
PB
37902@if target-rda
37903maybe-configure-target-rda: configure-target-rda
cc11cc9b 37904configure-target-rda:
f41d6665
DJ
37905 @: $(MAKE); $(unstage)
37906 @r=`${PWD_COMMAND}`; export r; \
37907 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37908 echo "Checking multilib configuration for rda..."; \
37909 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/rda ; \
37910 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/rda/multilib.tmp 2> /dev/null ; \
37911 if test -r $(TARGET_SUBDIR)/rda/multilib.out; then \
37912 if cmp -s $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; then \
37913 rm -f $(TARGET_SUBDIR)/rda/multilib.tmp; \
37914 else \
37915 rm -f $(TARGET_SUBDIR)/rda/Makefile; \
37916 mv $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; \
37917 fi; \
37918 else \
37919 mv $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; \
cc11cc9b
PB
37920 fi; \
37921 test ! -f $(TARGET_SUBDIR)/rda/Makefile || exit 0; \
295f4e42 37922 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/rda ; \
4fc4dd12 37923 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37924 echo Configuring in $(TARGET_SUBDIR)/rda; \
37925 cd "$(TARGET_SUBDIR)/rda" || exit 1; \
3aa83176 37926 case $(srcdir) in \
215c351a
PB
37927 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
37928 *) topdir=`echo $(TARGET_SUBDIR)/rda/ | \
37929 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3aa83176 37930 esac; \
215c351a
PB
37931 srcdiroption="--srcdir=$${topdir}/rda"; \
37932 libsrcdir="$$s/rda"; \
3aa83176
NN
37933 rm -f no-such-file || : ; \
37934 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 37935 $(TARGET_CONFIGARGS) $${srcdiroption} \
3aa83176 37936 || exit 1
60975492 37937@endif target-rda
4977bab6 37938
25b42232
PB
37939
37940
ce406537
PB
37941
37942
295f4e42
NN
37943.PHONY: all-target-rda maybe-all-target-rda
37944maybe-all-target-rda:
3ff3adad
PB
37945@if gcc-bootstrap
37946all-target-rda: stage_current
37947@endif gcc-bootstrap
60975492 37948@if target-rda
7c27e184 37949TARGET-target-rda=all
60975492 37950maybe-all-target-rda: all-target-rda
295f4e42 37951all-target-rda: configure-target-rda
f41d6665 37952 @: $(MAKE); $(unstage)
8c90b13a
L
37953 @r=`${PWD_COMMAND}`; export r; \
37954 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37955 $(NORMAL_TARGET_EXPORTS) \
295f4e42 37956 (cd $(TARGET_SUBDIR)/rda && \
25b42232 37957 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-rda))
60975492 37958@endif target-rda
4977bab6 37959
25b42232
PB
37960
37961
ce406537
PB
37962
37963
295f4e42
NN
37964.PHONY: check-target-rda maybe-check-target-rda
37965maybe-check-target-rda:
60975492
PB
37966@if target-rda
37967maybe-check-target-rda: check-target-rda
7e2dbcef 37968
295f4e42 37969check-target-rda:
f41d6665 37970 @: $(MAKE); $(unstage)
8c90b13a
L
37971 @r=`${PWD_COMMAND}`; export r; \
37972 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37973 $(NORMAL_TARGET_EXPORTS) \
295f4e42 37974 (cd $(TARGET_SUBDIR)/rda && \
a52a0a7f 37975 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
6599da04 37976
60975492 37977@endif target-rda
4977bab6 37978
295f4e42
NN
37979.PHONY: install-target-rda maybe-install-target-rda
37980maybe-install-target-rda:
60975492
PB
37981@if target-rda
37982maybe-install-target-rda: install-target-rda
7e2dbcef 37983
295f4e42 37984install-target-rda: installdirs
f41d6665 37985 @: $(MAKE); $(unstage)
8c90b13a
L
37986 @r=`${PWD_COMMAND}`; export r; \
37987 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37988 $(NORMAL_TARGET_EXPORTS) \
295f4e42 37989 (cd $(TARGET_SUBDIR)/rda && \
a52a0a7f 37990 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e490616e 37991
60975492 37992@endif target-rda
4977bab6 37993
295f4e42
NN
37994# Other targets (info, dvi, etc.)
37995
37996.PHONY: maybe-info-target-rda info-target-rda
37997maybe-info-target-rda:
60975492
PB
37998@if target-rda
37999maybe-info-target-rda: info-target-rda
295f4e42
NN
38000
38001info-target-rda: \
05750653 38002 configure-target-rda
f41d6665 38003 @: $(MAKE); $(unstage)
295f4e42
NN
38004 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
38005 r=`${PWD_COMMAND}`; export r; \
38006 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38007 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38008 echo "Doing info in $(TARGET_SUBDIR)/rda" ; \
38009 for flag in $(EXTRA_TARGET_FLAGS); do \
38010 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38011 done; \
38012 (cd $(TARGET_SUBDIR)/rda && \
38013 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38014 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38015 "RANLIB=$${RANLIB}" \
38016 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 38017 info) \
295f4e42
NN
38018 || exit 1
38019
60975492 38020@endif target-rda
295f4e42
NN
38021
38022.PHONY: maybe-dvi-target-rda dvi-target-rda
38023maybe-dvi-target-rda:
60975492
PB
38024@if target-rda
38025maybe-dvi-target-rda: dvi-target-rda
295f4e42
NN
38026
38027dvi-target-rda: \
05750653 38028 configure-target-rda
f41d6665 38029 @: $(MAKE); $(unstage)
295f4e42
NN
38030 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
38031 r=`${PWD_COMMAND}`; export r; \
38032 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38033 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38034 echo "Doing dvi in $(TARGET_SUBDIR)/rda" ; \
38035 for flag in $(EXTRA_TARGET_FLAGS); do \
38036 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38037 done; \
38038 (cd $(TARGET_SUBDIR)/rda && \
38039 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38040 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38041 "RANLIB=$${RANLIB}" \
38042 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 38043 dvi) \
295f4e42
NN
38044 || exit 1
38045
60975492 38046@endif target-rda
295f4e42 38047
f87a2b2e
MS
38048.PHONY: maybe-html-target-rda html-target-rda
38049maybe-html-target-rda:
38050@if target-rda
38051maybe-html-target-rda: html-target-rda
38052
38053html-target-rda: \
05750653 38054 configure-target-rda
f41d6665 38055 @: $(MAKE); $(unstage)
f87a2b2e
MS
38056 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
38057 r=`${PWD_COMMAND}`; export r; \
38058 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
38059 $(NORMAL_TARGET_EXPORTS) \
38060 echo "Doing html in $(TARGET_SUBDIR)/rda" ; \
38061 for flag in $(EXTRA_TARGET_FLAGS); do \
38062 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38063 done; \
38064 (cd $(TARGET_SUBDIR)/rda && \
38065 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38066 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38067 "RANLIB=$${RANLIB}" \
38068 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
38069 html) \
38070 || exit 1
38071
38072@endif target-rda
38073
295f4e42
NN
38074.PHONY: maybe-TAGS-target-rda TAGS-target-rda
38075maybe-TAGS-target-rda:
60975492
PB
38076@if target-rda
38077maybe-TAGS-target-rda: TAGS-target-rda
295f4e42
NN
38078
38079TAGS-target-rda: \
05750653 38080 configure-target-rda
f41d6665 38081 @: $(MAKE); $(unstage)
295f4e42
NN
38082 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
38083 r=`${PWD_COMMAND}`; export r; \
38084 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38085 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38086 echo "Doing TAGS in $(TARGET_SUBDIR)/rda" ; \
38087 for flag in $(EXTRA_TARGET_FLAGS); do \
38088 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38089 done; \
38090 (cd $(TARGET_SUBDIR)/rda && \
38091 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38092 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38093 "RANLIB=$${RANLIB}" \
38094 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 38095 TAGS) \
295f4e42
NN
38096 || exit 1
38097
60975492 38098@endif target-rda
295f4e42
NN
38099
38100.PHONY: maybe-install-info-target-rda install-info-target-rda
38101maybe-install-info-target-rda:
60975492
PB
38102@if target-rda
38103maybe-install-info-target-rda: install-info-target-rda
295f4e42
NN
38104
38105install-info-target-rda: \
38106 configure-target-rda \
05750653 38107 info-target-rda
f41d6665 38108 @: $(MAKE); $(unstage)
295f4e42
NN
38109 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
38110 r=`${PWD_COMMAND}`; export r; \
38111 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38112 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38113 echo "Doing install-info in $(TARGET_SUBDIR)/rda" ; \
38114 for flag in $(EXTRA_TARGET_FLAGS); do \
38115 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38116 done; \
38117 (cd $(TARGET_SUBDIR)/rda && \
38118 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38119 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38120 "RANLIB=$${RANLIB}" \
38121 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 38122 install-info) \
295f4e42
NN
38123 || exit 1
38124
60975492 38125@endif target-rda
295f4e42 38126
65d6e994
CD
38127.PHONY: maybe-install-html-target-rda install-html-target-rda
38128maybe-install-html-target-rda:
38129@if target-rda
38130maybe-install-html-target-rda: install-html-target-rda
38131
38132install-html-target-rda: \
38133 configure-target-rda \
38134 html-target-rda
38135 @: $(MAKE); $(unstage)
38136 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
38137 r=`${PWD_COMMAND}`; export r; \
38138 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38139 $(NORMAL_TARGET_EXPORTS) \
38140 echo "Doing install-html in $(TARGET_SUBDIR)/rda" ; \
38141 for flag in $(EXTRA_TARGET_FLAGS); do \
38142 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38143 done; \
38144 (cd $(TARGET_SUBDIR)/rda && \
38145 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38146 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38147 "RANLIB=$${RANLIB}" \
38148 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
38149 install-html) \
38150 || exit 1
38151
38152@endif target-rda
38153
295f4e42
NN
38154.PHONY: maybe-installcheck-target-rda installcheck-target-rda
38155maybe-installcheck-target-rda:
60975492
PB
38156@if target-rda
38157maybe-installcheck-target-rda: installcheck-target-rda
295f4e42
NN
38158
38159installcheck-target-rda: \
05750653 38160 configure-target-rda
f41d6665 38161 @: $(MAKE); $(unstage)
295f4e42
NN
38162 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
38163 r=`${PWD_COMMAND}`; export r; \
38164 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38165 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38166 echo "Doing installcheck in $(TARGET_SUBDIR)/rda" ; \
38167 for flag in $(EXTRA_TARGET_FLAGS); do \
38168 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38169 done; \
38170 (cd $(TARGET_SUBDIR)/rda && \
38171 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38172 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38173 "RANLIB=$${RANLIB}" \
38174 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 38175 installcheck) \
295f4e42
NN
38176 || exit 1
38177
60975492 38178@endif target-rda
295f4e42
NN
38179
38180.PHONY: maybe-mostlyclean-target-rda mostlyclean-target-rda
38181maybe-mostlyclean-target-rda:
60975492
PB
38182@if target-rda
38183maybe-mostlyclean-target-rda: mostlyclean-target-rda
295f4e42 38184
05750653 38185mostlyclean-target-rda:
f41d6665 38186 @: $(MAKE); $(unstage)
295f4e42
NN
38187 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
38188 r=`${PWD_COMMAND}`; export r; \
38189 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38190 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38191 echo "Doing mostlyclean in $(TARGET_SUBDIR)/rda" ; \
38192 for flag in $(EXTRA_TARGET_FLAGS); do \
38193 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38194 done; \
38195 (cd $(TARGET_SUBDIR)/rda && \
38196 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38197 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38198 "RANLIB=$${RANLIB}" \
38199 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 38200 mostlyclean) \
295f4e42
NN
38201 || exit 1
38202
60975492 38203@endif target-rda
295f4e42
NN
38204
38205.PHONY: maybe-clean-target-rda clean-target-rda
38206maybe-clean-target-rda:
60975492
PB
38207@if target-rda
38208maybe-clean-target-rda: clean-target-rda
295f4e42 38209
05750653 38210clean-target-rda:
f41d6665 38211 @: $(MAKE); $(unstage)
295f4e42
NN
38212 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
38213 r=`${PWD_COMMAND}`; export r; \
38214 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38215 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38216 echo "Doing clean in $(TARGET_SUBDIR)/rda" ; \
38217 for flag in $(EXTRA_TARGET_FLAGS); do \
38218 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38219 done; \
38220 (cd $(TARGET_SUBDIR)/rda && \
38221 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38222 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38223 "RANLIB=$${RANLIB}" \
38224 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 38225 clean) \
295f4e42
NN
38226 || exit 1
38227
60975492 38228@endif target-rda
295f4e42
NN
38229
38230.PHONY: maybe-distclean-target-rda distclean-target-rda
38231maybe-distclean-target-rda:
60975492
PB
38232@if target-rda
38233maybe-distclean-target-rda: distclean-target-rda
295f4e42 38234
05750653 38235distclean-target-rda:
f41d6665 38236 @: $(MAKE); $(unstage)
295f4e42
NN
38237 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
38238 r=`${PWD_COMMAND}`; export r; \
38239 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38240 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38241 echo "Doing distclean in $(TARGET_SUBDIR)/rda" ; \
38242 for flag in $(EXTRA_TARGET_FLAGS); do \
38243 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38244 done; \
38245 (cd $(TARGET_SUBDIR)/rda && \
38246 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38247 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38248 "RANLIB=$${RANLIB}" \
38249 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 38250 distclean) \
295f4e42
NN
38251 || exit 1
38252
60975492 38253@endif target-rda
295f4e42
NN
38254
38255.PHONY: maybe-maintainer-clean-target-rda maintainer-clean-target-rda
38256maybe-maintainer-clean-target-rda:
60975492
PB
38257@if target-rda
38258maybe-maintainer-clean-target-rda: maintainer-clean-target-rda
295f4e42 38259
05750653 38260maintainer-clean-target-rda:
f41d6665 38261 @: $(MAKE); $(unstage)
295f4e42
NN
38262 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
38263 r=`${PWD_COMMAND}`; export r; \
38264 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38265 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38266 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/rda" ; \
38267 for flag in $(EXTRA_TARGET_FLAGS); do \
38268 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38269 done; \
38270 (cd $(TARGET_SUBDIR)/rda && \
38271 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38272 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38273 "RANLIB=$${RANLIB}" \
38274 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 38275 maintainer-clean) \
295f4e42
NN
38276 || exit 1
38277
60975492 38278@endif target-rda
295f4e42
NN
38279
38280
4977bab6 38281
25b42232
PB
38282
38283
38284.PHONY: configure-target-libada maybe-configure-target-libada
38285maybe-configure-target-libada:
3ff3adad
PB
38286@if gcc-bootstrap
38287configure-target-libada: stage_current
38288@endif gcc-bootstrap
25b42232
PB
38289@if target-libada
38290maybe-configure-target-libada: configure-target-libada
cc11cc9b 38291configure-target-libada:
f41d6665
DJ
38292 @: $(MAKE); $(unstage)
38293 @r=`${PWD_COMMAND}`; export r; \
38294 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38295 echo "Checking multilib configuration for libada..."; \
38296 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libada ; \
38297 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libada/multilib.tmp 2> /dev/null ; \
38298 if test -r $(TARGET_SUBDIR)/libada/multilib.out; then \
38299 if cmp -s $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; then \
38300 rm -f $(TARGET_SUBDIR)/libada/multilib.tmp; \
38301 else \
38302 rm -f $(TARGET_SUBDIR)/libada/Makefile; \
38303 mv $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; \
38304 fi; \
38305 else \
38306 mv $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; \
cc11cc9b
PB
38307 fi; \
38308 test ! -f $(TARGET_SUBDIR)/libada/Makefile || exit 0; \
295f4e42 38309 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libada ; \
4fc4dd12 38310 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38311 echo Configuring in $(TARGET_SUBDIR)/libada; \
38312 cd "$(TARGET_SUBDIR)/libada" || exit 1; \
3aa83176 38313 case $(srcdir) in \
215c351a
PB
38314 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38315 *) topdir=`echo $(TARGET_SUBDIR)/libada/ | \
38316 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3aa83176 38317 esac; \
215c351a
PB
38318 srcdiroption="--srcdir=$${topdir}/libada"; \
38319 libsrcdir="$$s/libada"; \
3aa83176
NN
38320 rm -f no-such-file || : ; \
38321 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 38322 $(TARGET_CONFIGARGS) $${srcdiroption} \
3aa83176 38323 || exit 1
60975492 38324@endif target-libada
4977bab6 38325
25b42232
PB
38326
38327
ce406537
PB
38328
38329
295f4e42
NN
38330.PHONY: all-target-libada maybe-all-target-libada
38331maybe-all-target-libada:
3ff3adad
PB
38332@if gcc-bootstrap
38333all-target-libada: stage_current
38334@endif gcc-bootstrap
60975492 38335@if target-libada
7c27e184 38336TARGET-target-libada=all
60975492 38337maybe-all-target-libada: all-target-libada
295f4e42 38338all-target-libada: configure-target-libada
f41d6665 38339 @: $(MAKE); $(unstage)
8c90b13a
L
38340 @r=`${PWD_COMMAND}`; export r; \
38341 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38342 $(NORMAL_TARGET_EXPORTS) \
295f4e42 38343 (cd $(TARGET_SUBDIR)/libada && \
25b42232 38344 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libada))
60975492 38345@endif target-libada
6599da04 38346
25b42232
PB
38347
38348
ce406537
PB
38349
38350
295f4e42
NN
38351.PHONY: check-target-libada maybe-check-target-libada
38352maybe-check-target-libada:
60975492
PB
38353@if target-libada
38354maybe-check-target-libada: check-target-libada
7e2dbcef 38355
295f4e42 38356check-target-libada:
f41d6665 38357 @: $(MAKE); $(unstage)
8c90b13a
L
38358 @r=`${PWD_COMMAND}`; export r; \
38359 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38360 $(NORMAL_TARGET_EXPORTS) \
295f4e42 38361 (cd $(TARGET_SUBDIR)/libada && \
a52a0a7f 38362 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
6599da04 38363
60975492 38364@endif target-libada
4977bab6 38365
295f4e42
NN
38366.PHONY: install-target-libada maybe-install-target-libada
38367maybe-install-target-libada:
60975492
PB
38368@if target-libada
38369maybe-install-target-libada: install-target-libada
7e2dbcef 38370
295f4e42 38371install-target-libada: installdirs
f41d6665 38372 @: $(MAKE); $(unstage)
8c90b13a
L
38373 @r=`${PWD_COMMAND}`; export r; \
38374 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38375 $(NORMAL_TARGET_EXPORTS) \
295f4e42 38376 (cd $(TARGET_SUBDIR)/libada && \
a52a0a7f 38377 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6599da04 38378
60975492 38379@endif target-libada
4977bab6 38380
295f4e42 38381# Other targets (info, dvi, etc.)
4977bab6 38382
295f4e42
NN
38383.PHONY: maybe-info-target-libada info-target-libada
38384maybe-info-target-libada:
60975492
PB
38385@if target-libada
38386maybe-info-target-libada: info-target-libada
4977bab6 38387
295f4e42 38388info-target-libada: \
05750653 38389 configure-target-libada
f41d6665 38390 @: $(MAKE); $(unstage)
295f4e42 38391 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
8c90b13a
L
38392 r=`${PWD_COMMAND}`; export r; \
38393 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38394 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38395 echo "Doing info in $(TARGET_SUBDIR)/libada" ; \
38396 for flag in $(EXTRA_TARGET_FLAGS); do \
38397 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38398 done; \
38399 (cd $(TARGET_SUBDIR)/libada && \
38400 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38401 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38402 "RANLIB=$${RANLIB}" \
38403 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 38404 info) \
3aa83176 38405 || exit 1
4977bab6 38406
60975492 38407@endif target-libada
295f4e42
NN
38408
38409.PHONY: maybe-dvi-target-libada dvi-target-libada
38410maybe-dvi-target-libada:
60975492
PB
38411@if target-libada
38412maybe-dvi-target-libada: dvi-target-libada
295f4e42
NN
38413
38414dvi-target-libada: \
05750653 38415 configure-target-libada
f41d6665 38416 @: $(MAKE); $(unstage)
295f4e42
NN
38417 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
38418 r=`${PWD_COMMAND}`; export r; \
8c90b13a 38419 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38420 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38421 echo "Doing dvi in $(TARGET_SUBDIR)/libada" ; \
38422 for flag in $(EXTRA_TARGET_FLAGS); do \
38423 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38424 done; \
38425 (cd $(TARGET_SUBDIR)/libada && \
38426 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38427 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38428 "RANLIB=$${RANLIB}" \
38429 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 38430 dvi) \
295f4e42 38431 || exit 1
6599da04 38432
60975492 38433@endif target-libada
7e2dbcef 38434
f87a2b2e
MS
38435.PHONY: maybe-html-target-libada html-target-libada
38436maybe-html-target-libada:
38437@if target-libada
38438maybe-html-target-libada: html-target-libada
38439
38440html-target-libada: \
05750653 38441 configure-target-libada
f41d6665 38442 @: $(MAKE); $(unstage)
f87a2b2e
MS
38443 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
38444 r=`${PWD_COMMAND}`; export r; \
38445 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
38446 $(NORMAL_TARGET_EXPORTS) \
38447 echo "Doing html in $(TARGET_SUBDIR)/libada" ; \
38448 for flag in $(EXTRA_TARGET_FLAGS); do \
38449 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38450 done; \
38451 (cd $(TARGET_SUBDIR)/libada && \
38452 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38453 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38454 "RANLIB=$${RANLIB}" \
38455 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
38456 html) \
38457 || exit 1
38458
38459@endif target-libada
38460
295f4e42
NN
38461.PHONY: maybe-TAGS-target-libada TAGS-target-libada
38462maybe-TAGS-target-libada:
60975492
PB
38463@if target-libada
38464maybe-TAGS-target-libada: TAGS-target-libada
295f4e42
NN
38465
38466TAGS-target-libada: \
05750653 38467 configure-target-libada
f41d6665 38468 @: $(MAKE); $(unstage)
295f4e42
NN
38469 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
38470 r=`${PWD_COMMAND}`; export r; \
8c90b13a 38471 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38472 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38473 echo "Doing TAGS in $(TARGET_SUBDIR)/libada" ; \
38474 for flag in $(EXTRA_TARGET_FLAGS); do \
38475 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38476 done; \
38477 (cd $(TARGET_SUBDIR)/libada && \
38478 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38479 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38480 "RANLIB=$${RANLIB}" \
38481 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 38482 TAGS) \
295f4e42 38483 || exit 1
6599da04 38484
60975492 38485@endif target-libada
6599da04 38486
295f4e42
NN
38487.PHONY: maybe-install-info-target-libada install-info-target-libada
38488maybe-install-info-target-libada:
60975492
PB
38489@if target-libada
38490maybe-install-info-target-libada: install-info-target-libada
7e2dbcef 38491
295f4e42
NN
38492install-info-target-libada: \
38493 configure-target-libada \
05750653 38494 info-target-libada
f41d6665 38495 @: $(MAKE); $(unstage)
295f4e42
NN
38496 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
38497 r=`${PWD_COMMAND}`; export r; \
8c90b13a 38498 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38499 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38500 echo "Doing install-info in $(TARGET_SUBDIR)/libada" ; \
38501 for flag in $(EXTRA_TARGET_FLAGS); do \
38502 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38503 done; \
38504 (cd $(TARGET_SUBDIR)/libada && \
38505 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38506 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38507 "RANLIB=$${RANLIB}" \
38508 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 38509 install-info) \
295f4e42 38510 || exit 1
6599da04 38511
60975492 38512@endif target-libada
6599da04 38513
65d6e994
CD
38514.PHONY: maybe-install-html-target-libada install-html-target-libada
38515maybe-install-html-target-libada:
38516@if target-libada
38517maybe-install-html-target-libada: install-html-target-libada
38518
38519install-html-target-libada: \
38520 configure-target-libada \
38521 html-target-libada
38522 @: $(MAKE); $(unstage)
38523 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
38524 r=`${PWD_COMMAND}`; export r; \
38525 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38526 $(NORMAL_TARGET_EXPORTS) \
38527 echo "Doing install-html in $(TARGET_SUBDIR)/libada" ; \
38528 for flag in $(EXTRA_TARGET_FLAGS); do \
38529 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38530 done; \
38531 (cd $(TARGET_SUBDIR)/libada && \
38532 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38533 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38534 "RANLIB=$${RANLIB}" \
38535 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
38536 install-html) \
38537 || exit 1
38538
38539@endif target-libada
38540
295f4e42
NN
38541.PHONY: maybe-installcheck-target-libada installcheck-target-libada
38542maybe-installcheck-target-libada:
60975492
PB
38543@if target-libada
38544maybe-installcheck-target-libada: installcheck-target-libada
d9cdb878 38545
295f4e42 38546installcheck-target-libada: \
05750653 38547 configure-target-libada
f41d6665 38548 @: $(MAKE); $(unstage)
295f4e42
NN
38549 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
38550 r=`${PWD_COMMAND}`; export r; \
38551 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38552 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38553 echo "Doing installcheck in $(TARGET_SUBDIR)/libada" ; \
38554 for flag in $(EXTRA_TARGET_FLAGS); do \
38555 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38556 done; \
38557 (cd $(TARGET_SUBDIR)/libada && \
38558 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38559 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38560 "RANLIB=$${RANLIB}" \
38561 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 38562 installcheck) \
295f4e42 38563 || exit 1
d9cdb878 38564
60975492 38565@endif target-libada
295f4e42
NN
38566
38567.PHONY: maybe-mostlyclean-target-libada mostlyclean-target-libada
38568maybe-mostlyclean-target-libada:
60975492
PB
38569@if target-libada
38570maybe-mostlyclean-target-libada: mostlyclean-target-libada
295f4e42 38571
05750653 38572mostlyclean-target-libada:
f41d6665 38573 @: $(MAKE); $(unstage)
295f4e42 38574 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
d9cdb878
AC
38575 r=`${PWD_COMMAND}`; export r; \
38576 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38577 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38578 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libada" ; \
38579 for flag in $(EXTRA_TARGET_FLAGS); do \
38580 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38581 done; \
38582 (cd $(TARGET_SUBDIR)/libada && \
38583 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38584 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38585 "RANLIB=$${RANLIB}" \
38586 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 38587 mostlyclean) \
d9cdb878
AC
38588 || exit 1
38589
60975492 38590@endif target-libada
295f4e42
NN
38591
38592.PHONY: maybe-clean-target-libada clean-target-libada
38593maybe-clean-target-libada:
60975492
PB
38594@if target-libada
38595maybe-clean-target-libada: clean-target-libada
295f4e42 38596
05750653 38597clean-target-libada:
f41d6665 38598 @: $(MAKE); $(unstage)
295f4e42
NN
38599 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
38600 r=`${PWD_COMMAND}`; export r; \
d9cdb878 38601 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38602 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38603 echo "Doing clean in $(TARGET_SUBDIR)/libada" ; \
38604 for flag in $(EXTRA_TARGET_FLAGS); do \
38605 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38606 done; \
d9cdb878 38607 (cd $(TARGET_SUBDIR)/libada && \
295f4e42
NN
38608 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38609 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38610 "RANLIB=$${RANLIB}" \
38611 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 38612 clean) \
295f4e42 38613 || exit 1
d9cdb878 38614
60975492 38615@endif target-libada
d9cdb878 38616
295f4e42
NN
38617.PHONY: maybe-distclean-target-libada distclean-target-libada
38618maybe-distclean-target-libada:
60975492
PB
38619@if target-libada
38620maybe-distclean-target-libada: distclean-target-libada
295f4e42 38621
05750653 38622distclean-target-libada:
f41d6665 38623 @: $(MAKE); $(unstage)
295f4e42
NN
38624 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
38625 r=`${PWD_COMMAND}`; export r; \
d9cdb878 38626 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38627 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38628 echo "Doing distclean in $(TARGET_SUBDIR)/libada" ; \
38629 for flag in $(EXTRA_TARGET_FLAGS); do \
38630 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38631 done; \
d9cdb878 38632 (cd $(TARGET_SUBDIR)/libada && \
295f4e42
NN
38633 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38634 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38635 "RANLIB=$${RANLIB}" \
38636 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 38637 distclean) \
295f4e42 38638 || exit 1
d9cdb878 38639
60975492 38640@endif target-libada
d9cdb878 38641
295f4e42
NN
38642.PHONY: maybe-maintainer-clean-target-libada maintainer-clean-target-libada
38643maybe-maintainer-clean-target-libada:
60975492
PB
38644@if target-libada
38645maybe-maintainer-clean-target-libada: maintainer-clean-target-libada
d9cdb878 38646
05750653 38647maintainer-clean-target-libada:
f41d6665 38648 @: $(MAKE); $(unstage)
295f4e42
NN
38649 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
38650 r=`${PWD_COMMAND}`; export r; \
d9cdb878 38651 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38652 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38653 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libada" ; \
38654 for flag in $(EXTRA_TARGET_FLAGS); do \
38655 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38656 done; \
d9cdb878 38657 (cd $(TARGET_SUBDIR)/libada && \
295f4e42
NN
38658 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38659 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38660 "RANLIB=$${RANLIB}" \
38661 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 38662 maintainer-clean) \
295f4e42
NN
38663 || exit 1
38664
60975492 38665@endif target-libada
d9cdb878
AC
38666
38667
4977bab6 38668
953ff289
DN
38669
38670
38671.PHONY: configure-target-libgomp maybe-configure-target-libgomp
38672maybe-configure-target-libgomp:
3ff3adad
PB
38673@if gcc-bootstrap
38674configure-target-libgomp: stage_current
38675@endif gcc-bootstrap
953ff289
DN
38676@if target-libgomp
38677maybe-configure-target-libgomp: configure-target-libgomp
cc11cc9b 38678configure-target-libgomp:
953ff289
DN
38679 @: $(MAKE); $(unstage)
38680 @r=`${PWD_COMMAND}`; export r; \
38681 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38682 echo "Checking multilib configuration for libgomp..."; \
38683 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp ; \
38684 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null ; \
38685 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
38686 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
38687 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
38688 else \
38689 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
38690 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
38691 fi; \
38692 else \
38693 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
cc11cc9b
PB
38694 fi; \
38695 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
953ff289 38696 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp ; \
953ff289
DN
38697 $(NORMAL_TARGET_EXPORTS) \
38698 echo Configuring in $(TARGET_SUBDIR)/libgomp; \
38699 cd "$(TARGET_SUBDIR)/libgomp" || exit 1; \
38700 case $(srcdir) in \
38701 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38702 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
38703 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38704 esac; \
38705 srcdiroption="--srcdir=$${topdir}/libgomp"; \
38706 libsrcdir="$$s/libgomp"; \
38707 rm -f no-such-file || : ; \
38708 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
38709 $(TARGET_CONFIGARGS) $${srcdiroption} \
38710 || exit 1
38711@endif target-libgomp
38712
38713
38714
38715
38716
38717.PHONY: all-target-libgomp maybe-all-target-libgomp
38718maybe-all-target-libgomp:
3ff3adad
PB
38719@if gcc-bootstrap
38720all-target-libgomp: stage_current
38721@endif gcc-bootstrap
953ff289
DN
38722@if target-libgomp
38723TARGET-target-libgomp=all
38724maybe-all-target-libgomp: all-target-libgomp
38725all-target-libgomp: configure-target-libgomp
38726 @: $(MAKE); $(unstage)
38727 @r=`${PWD_COMMAND}`; export r; \
38728 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38729 $(NORMAL_TARGET_EXPORTS) \
38730 (cd $(TARGET_SUBDIR)/libgomp && \
38731 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libgomp))
38732@endif target-libgomp
38733
38734
38735
38736
38737
38738.PHONY: check-target-libgomp maybe-check-target-libgomp
38739maybe-check-target-libgomp:
38740@if target-libgomp
38741maybe-check-target-libgomp: check-target-libgomp
38742
38743check-target-libgomp:
38744 @: $(MAKE); $(unstage)
38745 @r=`${PWD_COMMAND}`; export r; \
38746 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38747 $(NORMAL_TARGET_EXPORTS) \
38748 (cd $(TARGET_SUBDIR)/libgomp && \
38749 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
38750
38751@endif target-libgomp
38752
38753.PHONY: install-target-libgomp maybe-install-target-libgomp
38754maybe-install-target-libgomp:
38755@if target-libgomp
38756maybe-install-target-libgomp: install-target-libgomp
38757
38758install-target-libgomp: installdirs
38759 @: $(MAKE); $(unstage)
38760 @r=`${PWD_COMMAND}`; export r; \
38761 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38762 $(NORMAL_TARGET_EXPORTS) \
38763 (cd $(TARGET_SUBDIR)/libgomp && \
38764 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
38765
38766@endif target-libgomp
38767
38768# Other targets (info, dvi, etc.)
38769
38770.PHONY: maybe-info-target-libgomp info-target-libgomp
38771maybe-info-target-libgomp:
38772@if target-libgomp
38773maybe-info-target-libgomp: info-target-libgomp
38774
38775info-target-libgomp: \
38776 configure-target-libgomp
38777 @: $(MAKE); $(unstage)
38778 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
38779 r=`${PWD_COMMAND}`; export r; \
38780 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38781 $(NORMAL_TARGET_EXPORTS) \
38782 echo "Doing info in $(TARGET_SUBDIR)/libgomp" ; \
38783 for flag in $(EXTRA_TARGET_FLAGS); do \
38784 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38785 done; \
38786 (cd $(TARGET_SUBDIR)/libgomp && \
38787 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38788 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38789 "RANLIB=$${RANLIB}" \
38790 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
38791 info) \
38792 || exit 1
38793
38794@endif target-libgomp
38795
38796.PHONY: maybe-dvi-target-libgomp dvi-target-libgomp
38797maybe-dvi-target-libgomp:
38798@if target-libgomp
38799maybe-dvi-target-libgomp: dvi-target-libgomp
38800
38801dvi-target-libgomp: \
38802 configure-target-libgomp
38803 @: $(MAKE); $(unstage)
38804 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
38805 r=`${PWD_COMMAND}`; export r; \
38806 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38807 $(NORMAL_TARGET_EXPORTS) \
38808 echo "Doing dvi in $(TARGET_SUBDIR)/libgomp" ; \
38809 for flag in $(EXTRA_TARGET_FLAGS); do \
38810 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38811 done; \
38812 (cd $(TARGET_SUBDIR)/libgomp && \
38813 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38814 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38815 "RANLIB=$${RANLIB}" \
38816 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
38817 dvi) \
38818 || exit 1
38819
38820@endif target-libgomp
38821
38822.PHONY: maybe-html-target-libgomp html-target-libgomp
38823maybe-html-target-libgomp:
38824@if target-libgomp
38825maybe-html-target-libgomp: html-target-libgomp
38826
38827html-target-libgomp: \
38828 configure-target-libgomp
38829 @: $(MAKE); $(unstage)
38830 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
38831 r=`${PWD_COMMAND}`; export r; \
38832 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38833 $(NORMAL_TARGET_EXPORTS) \
38834 echo "Doing html in $(TARGET_SUBDIR)/libgomp" ; \
38835 for flag in $(EXTRA_TARGET_FLAGS); do \
38836 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38837 done; \
38838 (cd $(TARGET_SUBDIR)/libgomp && \
38839 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38840 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38841 "RANLIB=$${RANLIB}" \
38842 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
38843 html) \
38844 || exit 1
38845
38846@endif target-libgomp
38847
38848.PHONY: maybe-TAGS-target-libgomp TAGS-target-libgomp
38849maybe-TAGS-target-libgomp:
38850@if target-libgomp
38851maybe-TAGS-target-libgomp: TAGS-target-libgomp
38852
38853TAGS-target-libgomp: \
38854 configure-target-libgomp
38855 @: $(MAKE); $(unstage)
38856 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
38857 r=`${PWD_COMMAND}`; export r; \
38858 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38859 $(NORMAL_TARGET_EXPORTS) \
38860 echo "Doing TAGS in $(TARGET_SUBDIR)/libgomp" ; \
38861 for flag in $(EXTRA_TARGET_FLAGS); do \
38862 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38863 done; \
38864 (cd $(TARGET_SUBDIR)/libgomp && \
38865 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38866 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38867 "RANLIB=$${RANLIB}" \
38868 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
38869 TAGS) \
38870 || exit 1
38871
38872@endif target-libgomp
38873
38874.PHONY: maybe-install-info-target-libgomp install-info-target-libgomp
38875maybe-install-info-target-libgomp:
38876@if target-libgomp
38877maybe-install-info-target-libgomp: install-info-target-libgomp
38878
38879install-info-target-libgomp: \
38880 configure-target-libgomp \
38881 info-target-libgomp
38882 @: $(MAKE); $(unstage)
38883 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
38884 r=`${PWD_COMMAND}`; export r; \
38885 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38886 $(NORMAL_TARGET_EXPORTS) \
38887 echo "Doing install-info in $(TARGET_SUBDIR)/libgomp" ; \
38888 for flag in $(EXTRA_TARGET_FLAGS); do \
38889 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38890 done; \
38891 (cd $(TARGET_SUBDIR)/libgomp && \
38892 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38893 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38894 "RANLIB=$${RANLIB}" \
38895 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
38896 install-info) \
38897 || exit 1
38898
38899@endif target-libgomp
38900
65d6e994
CD
38901.PHONY: maybe-install-html-target-libgomp install-html-target-libgomp
38902maybe-install-html-target-libgomp:
38903@if target-libgomp
38904maybe-install-html-target-libgomp: install-html-target-libgomp
38905
38906install-html-target-libgomp: \
38907 configure-target-libgomp \
38908 html-target-libgomp
38909 @: $(MAKE); $(unstage)
38910 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
38911 r=`${PWD_COMMAND}`; export r; \
38912 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38913 $(NORMAL_TARGET_EXPORTS) \
38914 echo "Doing install-html in $(TARGET_SUBDIR)/libgomp" ; \
38915 for flag in $(EXTRA_TARGET_FLAGS); do \
38916 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38917 done; \
38918 (cd $(TARGET_SUBDIR)/libgomp && \
38919 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38920 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38921 "RANLIB=$${RANLIB}" \
38922 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
38923 install-html) \
38924 || exit 1
38925
38926@endif target-libgomp
38927
953ff289
DN
38928.PHONY: maybe-installcheck-target-libgomp installcheck-target-libgomp
38929maybe-installcheck-target-libgomp:
38930@if target-libgomp
38931maybe-installcheck-target-libgomp: installcheck-target-libgomp
38932
38933installcheck-target-libgomp: \
38934 configure-target-libgomp
38935 @: $(MAKE); $(unstage)
38936 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
38937 r=`${PWD_COMMAND}`; export r; \
38938 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38939 $(NORMAL_TARGET_EXPORTS) \
38940 echo "Doing installcheck in $(TARGET_SUBDIR)/libgomp" ; \
38941 for flag in $(EXTRA_TARGET_FLAGS); do \
38942 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38943 done; \
38944 (cd $(TARGET_SUBDIR)/libgomp && \
38945 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38946 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38947 "RANLIB=$${RANLIB}" \
38948 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
38949 installcheck) \
38950 || exit 1
38951
38952@endif target-libgomp
38953
38954.PHONY: maybe-mostlyclean-target-libgomp mostlyclean-target-libgomp
38955maybe-mostlyclean-target-libgomp:
38956@if target-libgomp
38957maybe-mostlyclean-target-libgomp: mostlyclean-target-libgomp
38958
38959mostlyclean-target-libgomp:
38960 @: $(MAKE); $(unstage)
38961 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
38962 r=`${PWD_COMMAND}`; export r; \
38963 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38964 $(NORMAL_TARGET_EXPORTS) \
38965 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgomp" ; \
38966 for flag in $(EXTRA_TARGET_FLAGS); do \
38967 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38968 done; \
38969 (cd $(TARGET_SUBDIR)/libgomp && \
38970 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38971 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38972 "RANLIB=$${RANLIB}" \
38973 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
38974 mostlyclean) \
38975 || exit 1
38976
38977@endif target-libgomp
38978
38979.PHONY: maybe-clean-target-libgomp clean-target-libgomp
38980maybe-clean-target-libgomp:
38981@if target-libgomp
38982maybe-clean-target-libgomp: clean-target-libgomp
38983
38984clean-target-libgomp:
38985 @: $(MAKE); $(unstage)
38986 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
38987 r=`${PWD_COMMAND}`; export r; \
38988 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38989 $(NORMAL_TARGET_EXPORTS) \
38990 echo "Doing clean in $(TARGET_SUBDIR)/libgomp" ; \
38991 for flag in $(EXTRA_TARGET_FLAGS); do \
38992 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38993 done; \
38994 (cd $(TARGET_SUBDIR)/libgomp && \
38995 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38996 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38997 "RANLIB=$${RANLIB}" \
38998 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
38999 clean) \
39000 || exit 1
39001
39002@endif target-libgomp
39003
39004.PHONY: maybe-distclean-target-libgomp distclean-target-libgomp
39005maybe-distclean-target-libgomp:
39006@if target-libgomp
39007maybe-distclean-target-libgomp: distclean-target-libgomp
39008
39009distclean-target-libgomp:
39010 @: $(MAKE); $(unstage)
39011 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
39012 r=`${PWD_COMMAND}`; export r; \
39013 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39014 $(NORMAL_TARGET_EXPORTS) \
39015 echo "Doing distclean in $(TARGET_SUBDIR)/libgomp" ; \
39016 for flag in $(EXTRA_TARGET_FLAGS); do \
39017 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39018 done; \
39019 (cd $(TARGET_SUBDIR)/libgomp && \
39020 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39021 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39022 "RANLIB=$${RANLIB}" \
39023 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
39024 distclean) \
39025 || exit 1
39026
39027@endif target-libgomp
39028
39029.PHONY: maybe-maintainer-clean-target-libgomp maintainer-clean-target-libgomp
39030maybe-maintainer-clean-target-libgomp:
39031@if target-libgomp
39032maybe-maintainer-clean-target-libgomp: maintainer-clean-target-libgomp
39033
39034maintainer-clean-target-libgomp:
39035 @: $(MAKE); $(unstage)
39036 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
39037 r=`${PWD_COMMAND}`; export r; \
39038 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39039 $(NORMAL_TARGET_EXPORTS) \
39040 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgomp" ; \
39041 for flag in $(EXTRA_TARGET_FLAGS); do \
39042 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39043 done; \
39044 (cd $(TARGET_SUBDIR)/libgomp && \
39045 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39046 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39047 "RANLIB=$${RANLIB}" \
39048 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
39049 maintainer-clean) \
39050 || exit 1
39051
39052@endif target-libgomp
39053
39054
39055
4977bab6
ZW
39056# ----------
39057# GCC module
39058# ----------
39059
f516a7da 39060@if gcc-no-bootstrap
d32ab992
PB
39061# GCC has some more recursive targets, which trigger the old
39062# (but still current, until the toplevel bootstrap project
39063# is finished) compiler bootstrapping rules.
6599da04 39064
1ca4c6e1
PE
39065GCC_STRAP_TARGETS = bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean bubblestrap quickstrap cleanstrap restrap
39066.PHONY: $(GCC_STRAP_TARGETS)
3589b69e 39067$(GCC_STRAP_TARGETS): all-prebootstrap configure-gcc
8c90b13a
L
39068 @r=`${PWD_COMMAND}`; export r; \
39069 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a52a0a7f 39070 $(HOST_EXPORTS) \
339c9b00 39071 echo "Bootstrapping the compiler"; \
0bff65e7 39072 $(RPATH_ENVVAR)=`echo "$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,:[ :]*,:,g;s,^[ :]*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \
3a4fee66 39073 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $@
8c90b13a
L
39074 @r=`${PWD_COMMAND}`; export r; \
39075 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc71c0ca 39076 case "$@" in \
f0983958 39077 *bootstrap4-lean ) \
3aa83176
NN
39078 msg="Comparing stage3 and stage4 of the compiler"; \
39079 compare=compare3-lean ;; \
39080 *bootstrap4 ) \
39081 msg="Comparing stage3 and stage4 of the compiler"; \
39082 compare=compare3 ;; \
39083 *-lean ) \
39084 msg="Comparing stage2 and stage3 of the compiler"; \
39085 compare=compare-lean ;; \
39086 * ) \
39087 msg="Comparing stage2 and stage3 of the compiler"; \
39088 compare=compare ;; \
cc71c0ca 39089 esac; \
a52a0a7f 39090 $(HOST_EXPORTS) \
cc71c0ca 39091 echo "$$msg"; \
3a4fee66 39092 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $$compare
8c90b13a
L
39093 @r=`${PWD_COMMAND}`; export r; \
39094 s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \
f6b58262 39095 echo "Building runtime libraries"; \
ad6717df 39096 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all
b1e3ddfd 39097
3589b69e 39098profiledbootstrap: all-prebootstrap configure-gcc
8c90b13a
L
39099 @r=`${PWD_COMMAND}`; export r; \
39100 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a52a0a7f 39101 $(HOST_EXPORTS) \
0bff65e7 39102 $(RPATH_ENVVAR)=`echo "$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,:[ :]*,:,g;s,^[ :]*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \
3922b216 39103 echo "Bootstrapping training compiler"; \
8f231b5d 39104 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) stageprofile_build
8c90b13a 39105 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 39106 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a52a0a7f 39107 $(HOST_EXPORTS) \
8f231b5d
JH
39108 echo "Building feedback based compiler"; \
39109 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) stagefeedback_build
3922b216
JDA
39110 @r=`${PWD_COMMAND}`; export r; \
39111 s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \
3922b216
JDA
39112 echo "Building runtime libraries"; \
39113 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all
8f231b5d 39114
09f97c1e 39115.PHONY: cross
7c27e184 39116cross: all-build all-gas all-ld
8c90b13a
L
39117 @r=`${PWD_COMMAND}`; export r; \
39118 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a52a0a7f 39119 $(HOST_EXPORTS) \
09f97c1e 39120 echo "Building the C and C++ compiler"; \
3a4fee66 39121 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++"
8c90b13a
L
39122 @r=`${PWD_COMMAND}`; export r; \
39123 s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \
f6b58262 39124 echo "Building runtime libraries"; \
ad6717df 39125 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LANGUAGES="c c++" all
f516a7da 39126@endif gcc-no-bootstrap
09f97c1e 39127
60975492 39128@if gcc
0edcfdcb
JM
39129.PHONY: check-gcc-c++
39130check-gcc-c++:
f04885d3 39131 @if [ -f ./gcc/Makefile ] ; then \
8c90b13a
L
39132 r=`${PWD_COMMAND}`; export r; \
39133 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a52a0a7f 39134 $(HOST_EXPORTS) \
88b5521b 39135 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-c++); \
f04885d3
BK
39136 else \
39137 true; \
0edcfdcb
JM
39138 fi
39139
39140.PHONY: check-c++
333a28b4 39141check-c++: check-target-libstdc++-v3 check-gcc-c++
6599da04 39142
4977bab6
ZW
39143# Install the gcc headers files, but not the fixed include files,
39144# which Cygnus is not allowed to distribute. This rule is very
39145# dependent on the workings of the gcc Makefile.in.
39146.PHONY: gcc-no-fixedincludes
39147gcc-no-fixedincludes:
39148 @if [ -f ./gcc/Makefile ]; then \
39149 rm -rf gcc/tmp-include; \
39150 mv gcc/include gcc/tmp-include 2>/dev/null; \
39151 mkdir gcc/include; \
39152 cp $(srcdir)/gcc/gsyslimits.h gcc/include/syslimits.h; \
39153 touch gcc/stmp-fixinc gcc/include/fixed; \
39154 rm -f gcc/stmp-headers gcc/stmp-int-hdrs; \
8c90b13a
L
39155 r=`${PWD_COMMAND}`; export r; \
39156 s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \
a52a0a7f 39157 $(HOST_EXPORTS) \
88b5521b 39158 (cd ./gcc && \
4977bab6
ZW
39159 $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
39160 rm -rf gcc/include; \
39161 mv gcc/tmp-include gcc/include 2>/dev/null; \
39162 else true; fi
60975492 39163@endif gcc
295f4e42 39164
d32ab992
PB
39165# ---------------------
39166# GCC bootstrap support
39167# ---------------------
295f4e42 39168
d32ab992
PB
39169# We track the current stage (the one in 'gcc') in the stage_current file.
39170# stage_last instead tracks the stage that was built last. These targets
39171# are dummy when toplevel bootstrap is not active.
295f4e42 39172
1061f99e 39173# While making host and target tools, symlinks to the final stage must be
f41d6665
DJ
39174# there, so $(unstage) should be run at various points. To avoid excessive
39175# recursive invocations of make, we "inline" them using a variable. These
39176# must be referenced as ": $(MAKE) ; $(unstage)" rather than "$(unstage)"
39177# to avoid warnings from the GNU Make job server.
1061f99e
PB
39178
39179unstage = :
39180stage = :
cc11cc9b 39181current_stage = ""
1061f99e 39182
d32ab992 39183@if gcc-bootstrap
03e67131 39184unstage = [ -f stage_current ] || $(MAKE) `cat stage_last`-start
d19bca38 39185stage = if [ -f stage_current ]; then $(MAKE) `cat stage_current`-end || exit 1; else :; fi
cc11cc9b 39186current_stage = "`cat stage_current 2> /dev/null`"
d32ab992 39187@endif gcc-bootstrap
295f4e42 39188
1061f99e
PB
39189.PHONY: unstage stage
39190unstage:
f41d6665 39191 @: $(MAKE); $(unstage)
d32ab992 39192stage:
f41d6665 39193 @: $(MAKE); $(stage)
2805b53a 39194
2d309510
PB
39195# Disable commands for lean bootstrap.
39196LEAN = false
39197
148907ea
PB
39198# We name the build directories for the various stages "stage1-gcc",
39199# "stage2-gcc","stage3-gcc", etc.
39200
39201# Since the 'compare' process will fail (on debugging information) if any
39202# directory names are different, we need to link the gcc directory for
f41d6665 39203# the previous stage to a constant name ('prev-gcc'), and to make the name of
148907ea
PB
39204# the build directories constant as well. For the latter, we use naked names
39205# like 'gcc', because the scripts in that directory assume it. We use
39206# mv on platforms where symlinks to directories do not work or are not
39207# reliable.
39208
2805b53a 39209# 'touch' doesn't work right on some platforms.
05750653 39210STAMP = echo timestamp >
2805b53a
NN
39211
39212# Only build the C compiler for stage1, because that is the only one that
39213# we can guarantee will build with the native compiler, and also it is the
39214# only thing useful for building stage2. STAGE1_CFLAGS (via CFLAGS),
39215# MAKEINFO and MAKEINFOFLAGS are explicitly passed here to make them
39216# overrideable (for a bootstrap build stage1 also builds gcc.info).
39217
39218STAGE1_CFLAGS=@stage1_cflags@
39219STAGE1_LANGUAGES=@stage1_languages@
39220
148907ea
PB
39221# We only want to compare .o files, so set this!
39222objext = .o
39223
148907ea 39224# Flags to pass to stage2 and later makes.
148907ea 39225POSTSTAGE1_FLAGS_TO_PASS = \
ad6717df 39226 CC="$${CC}" CC_FOR_BUILD="$${CC_FOR_BUILD}" \
5bea4a03 39227 STAGE_PREFIX=$$r/prev-gcc/ \
148907ea 39228 CFLAGS="$(BOOT_CFLAGS)" \
cc11cc9b 39229 LIBCFLAGS="$(BOOT_CFLAGS)" \
d19bca38 39230 LDFLAGS="$(BOOT_LDFLAGS)" \
e9a54b07 39231 "`echo 'ADAFLAGS=$(BOOT_ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"
148907ea 39232
340de83f 39233# For stage 1:
295f4e42
NN
39234# * We force-disable intermodule optimizations, even if
39235# --enable-intermodule was passed, since the installed compiler probably
39236# can't handle them. Luckily, autoconf always respects
39237# the last argument when conflicting --enable arguments are passed.
39238# * Likewise, we force-disable coverage flags, since the installed compiler
39239# probably has never heard of them.
39240# * We build only C (and possibly Ada).
148907ea
PB
39241
39242
f516a7da 39243.PHONY: stage1-start stage1-end
148907ea 39244
ad6717df 39245stage1-start::
f41d6665 39246 @: $(MAKE); $(stage); \
d32ab992 39247 echo stage1 > stage_current ; \
215c351a 39248 echo stage1 > stage_last; \
f41d6665 39249 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
7c27e184 39250@if bfd
215c351a
PB
39251 @cd $(HOST_SUBDIR); [ -d stage1-bfd ] || \
39252 mkdir stage1-bfd; \
2d309510 39253 mv stage1-bfd bfd
7c27e184
PB
39254@endif bfd
39255@if opcodes
215c351a
PB
39256 @cd $(HOST_SUBDIR); [ -d stage1-opcodes ] || \
39257 mkdir stage1-opcodes; \
2d309510 39258 mv stage1-opcodes opcodes
7c27e184
PB
39259@endif opcodes
39260@if binutils
215c351a
PB
39261 @cd $(HOST_SUBDIR); [ -d stage1-binutils ] || \
39262 mkdir stage1-binutils; \
2d309510 39263 mv stage1-binutils binutils
7c27e184
PB
39264@endif binutils
39265@if gas
215c351a
PB
39266 @cd $(HOST_SUBDIR); [ -d stage1-gas ] || \
39267 mkdir stage1-gas; \
2d309510 39268 mv stage1-gas gas
7c27e184
PB
39269@endif gas
39270@if gcc
215c351a
PB
39271 @cd $(HOST_SUBDIR); [ -d stage1-gcc ] || \
39272 mkdir stage1-gcc; \
2d309510 39273 mv stage1-gcc gcc
7c27e184
PB
39274@endif gcc
39275@if intl
215c351a
PB
39276 @cd $(HOST_SUBDIR); [ -d stage1-intl ] || \
39277 mkdir stage1-intl; \
2d309510 39278 mv stage1-intl intl
7c27e184
PB
39279@endif intl
39280@if ld
215c351a
PB
39281 @cd $(HOST_SUBDIR); [ -d stage1-ld ] || \
39282 mkdir stage1-ld; \
2d309510 39283 mv stage1-ld ld
7c27e184
PB
39284@endif ld
39285@if libcpp
215c351a
PB
39286 @cd $(HOST_SUBDIR); [ -d stage1-libcpp ] || \
39287 mkdir stage1-libcpp; \
2d309510 39288 mv stage1-libcpp libcpp
7c27e184 39289@endif libcpp
a4b6c45a
BE
39290@if libdecnumber
39291 @cd $(HOST_SUBDIR); [ -d stage1-libdecnumber ] || \
39292 mkdir stage1-libdecnumber; \
2d309510 39293 mv stage1-libdecnumber libdecnumber
a4b6c45a 39294@endif libdecnumber
7c27e184 39295@if libiberty
215c351a
PB
39296 @cd $(HOST_SUBDIR); [ -d stage1-libiberty ] || \
39297 mkdir stage1-libiberty; \
2d309510 39298 mv stage1-libiberty libiberty
7c27e184
PB
39299@endif libiberty
39300@if zlib
215c351a
PB
39301 @cd $(HOST_SUBDIR); [ -d stage1-zlib ] || \
39302 mkdir stage1-zlib; \
2d309510 39303 mv stage1-zlib zlib
7c27e184 39304@endif zlib
f41d6665
DJ
39305 @[ -d stage1-$(TARGET_SUBDIR) ] || \
39306 mkdir stage1-$(TARGET_SUBDIR); \
2d309510 39307 mv stage1-$(TARGET_SUBDIR) $(TARGET_SUBDIR)
148907ea 39308
2d309510 39309stage1-end::
7c27e184 39310@if bfd
2d309510
PB
39311 @if test -d $(HOST_SUBDIR)/bfd ; then \
39312 cd $(HOST_SUBDIR); mv bfd stage1-bfd ; \
f41d6665 39313 fi
7c27e184
PB
39314@endif bfd
39315@if opcodes
2d309510
PB
39316 @if test -d $(HOST_SUBDIR)/opcodes ; then \
39317 cd $(HOST_SUBDIR); mv opcodes stage1-opcodes ; \
f41d6665 39318 fi
7c27e184
PB
39319@endif opcodes
39320@if binutils
2d309510
PB
39321 @if test -d $(HOST_SUBDIR)/binutils ; then \
39322 cd $(HOST_SUBDIR); mv binutils stage1-binutils ; \
f41d6665 39323 fi
7c27e184
PB
39324@endif binutils
39325@if gas
2d309510
PB
39326 @if test -d $(HOST_SUBDIR)/gas ; then \
39327 cd $(HOST_SUBDIR); mv gas stage1-gas ; \
f41d6665 39328 fi
7c27e184
PB
39329@endif gas
39330@if gcc
2d309510
PB
39331 @if test -d $(HOST_SUBDIR)/gcc ; then \
39332 cd $(HOST_SUBDIR); mv gcc stage1-gcc ; \
f41d6665 39333 fi
7c27e184
PB
39334@endif gcc
39335@if intl
2d309510
PB
39336 @if test -d $(HOST_SUBDIR)/intl ; then \
39337 cd $(HOST_SUBDIR); mv intl stage1-intl ; \
f41d6665 39338 fi
7c27e184
PB
39339@endif intl
39340@if ld
2d309510
PB
39341 @if test -d $(HOST_SUBDIR)/ld ; then \
39342 cd $(HOST_SUBDIR); mv ld stage1-ld ; \
f41d6665 39343 fi
7c27e184
PB
39344@endif ld
39345@if libcpp
2d309510
PB
39346 @if test -d $(HOST_SUBDIR)/libcpp ; then \
39347 cd $(HOST_SUBDIR); mv libcpp stage1-libcpp ; \
f41d6665 39348 fi
7c27e184 39349@endif libcpp
a4b6c45a 39350@if libdecnumber
2d309510
PB
39351 @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
39352 cd $(HOST_SUBDIR); mv libdecnumber stage1-libdecnumber ; \
f41d6665 39353 fi
a4b6c45a 39354@endif libdecnumber
7c27e184 39355@if libiberty
2d309510
PB
39356 @if test -d $(HOST_SUBDIR)/libiberty ; then \
39357 cd $(HOST_SUBDIR); mv libiberty stage1-libiberty ; \
f41d6665 39358 fi
7c27e184
PB
39359@endif libiberty
39360@if zlib
2d309510
PB
39361 @if test -d $(HOST_SUBDIR)/zlib ; then \
39362 cd $(HOST_SUBDIR); mv zlib stage1-zlib ; \
f41d6665 39363 fi
7c27e184 39364@endif zlib
f41d6665 39365 @if test -d $(TARGET_SUBDIR) ; then \
2d309510 39366 mv $(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR) ; \
f41d6665 39367 fi
2d309510 39368 rm -f stage_current
148907ea 39369
f41d6665
DJ
39370# Bubble a bugfix through all the stages up to stage 1. They are
39371# remade, but not reconfigured. The next stage (if any) will not be
39372# reconfigured as well.
f516a7da 39373.PHONY: stage1-bubble
05750653 39374stage1-bubble::
e7c84bf8
PB
39375 @r=`${PWD_COMMAND}`; export r; \
39376 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39377 if test -f stage1-lean ; then \
ce521a9c
PB
39378 echo Skipping rebuild of stage1 ; \
39379 else \
1061f99e
PB
39380 $(MAKE) stage1-start; \
39381 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage1; \
ce521a9c 39382 fi
7c27e184 39383
45f366ab 39384.PHONY: all-stage1 clean-stage1
45f366ab 39385do-clean: clean-stage1
45f366ab 39386
7c27e184
PB
39387# FIXME: Will not need to be conditional when toplevel bootstrap is the
39388# only possibility, but now it conflicts with no-bootstrap rules
39389@if gcc-bootstrap
39390
39391
39392
39393
45f366ab 39394# Rules to wipe a stage and all the following ones, also used for cleanstrap
7c27e184 39395
45f366ab 39396.PHONY: distclean-stage1
7c27e184 39397distclean-stage1::
f41d6665 39398 @: $(MAKE); $(stage)
05750653 39399 rm -rf stage1-*
7c27e184
PB
39400
39401
39402@endif gcc-bootstrap
39403
39404
39405.PHONY: stage2-start stage2-end
39406
39407stage2-start::
f41d6665 39408 @: $(MAKE); $(stage); \
7c27e184 39409 echo stage2 > stage_current ; \
215c351a 39410 echo stage2 > stage_last; \
f41d6665 39411 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
7c27e184 39412@if bfd
215c351a
PB
39413 @cd $(HOST_SUBDIR); [ -d stage2-bfd ] || \
39414 mkdir stage2-bfd; \
2d309510
PB
39415 mv stage2-bfd bfd ; \
39416 mv stage1-bfd prev-bfd || test -f stage1-lean
7c27e184
PB
39417@endif bfd
39418@if opcodes
215c351a
PB
39419 @cd $(HOST_SUBDIR); [ -d stage2-opcodes ] || \
39420 mkdir stage2-opcodes; \
2d309510
PB
39421 mv stage2-opcodes opcodes ; \
39422 mv stage1-opcodes prev-opcodes || test -f stage1-lean
7c27e184
PB
39423@endif opcodes
39424@if binutils
215c351a
PB
39425 @cd $(HOST_SUBDIR); [ -d stage2-binutils ] || \
39426 mkdir stage2-binutils; \
2d309510
PB
39427 mv stage2-binutils binutils ; \
39428 mv stage1-binutils prev-binutils || test -f stage1-lean
7c27e184
PB
39429@endif binutils
39430@if gas
215c351a
PB
39431 @cd $(HOST_SUBDIR); [ -d stage2-gas ] || \
39432 mkdir stage2-gas; \
2d309510
PB
39433 mv stage2-gas gas ; \
39434 mv stage1-gas prev-gas || test -f stage1-lean
7c27e184
PB
39435@endif gas
39436@if gcc
215c351a
PB
39437 @cd $(HOST_SUBDIR); [ -d stage2-gcc ] || \
39438 mkdir stage2-gcc; \
2d309510
PB
39439 mv stage2-gcc gcc ; \
39440 mv stage1-gcc prev-gcc || test -f stage1-lean
7c27e184
PB
39441@endif gcc
39442@if intl
215c351a
PB
39443 @cd $(HOST_SUBDIR); [ -d stage2-intl ] || \
39444 mkdir stage2-intl; \
2d309510
PB
39445 mv stage2-intl intl ; \
39446 mv stage1-intl prev-intl || test -f stage1-lean
7c27e184
PB
39447@endif intl
39448@if ld
215c351a
PB
39449 @cd $(HOST_SUBDIR); [ -d stage2-ld ] || \
39450 mkdir stage2-ld; \
2d309510
PB
39451 mv stage2-ld ld ; \
39452 mv stage1-ld prev-ld || test -f stage1-lean
7c27e184
PB
39453@endif ld
39454@if libcpp
215c351a
PB
39455 @cd $(HOST_SUBDIR); [ -d stage2-libcpp ] || \
39456 mkdir stage2-libcpp; \
2d309510
PB
39457 mv stage2-libcpp libcpp ; \
39458 mv stage1-libcpp prev-libcpp || test -f stage1-lean
7c27e184 39459@endif libcpp
a4b6c45a
BE
39460@if libdecnumber
39461 @cd $(HOST_SUBDIR); [ -d stage2-libdecnumber ] || \
39462 mkdir stage2-libdecnumber; \
2d309510
PB
39463 mv stage2-libdecnumber libdecnumber ; \
39464 mv stage1-libdecnumber prev-libdecnumber || test -f stage1-lean
a4b6c45a 39465@endif libdecnumber
7c27e184 39466@if libiberty
215c351a
PB
39467 @cd $(HOST_SUBDIR); [ -d stage2-libiberty ] || \
39468 mkdir stage2-libiberty; \
2d309510
PB
39469 mv stage2-libiberty libiberty ; \
39470 mv stage1-libiberty prev-libiberty || test -f stage1-lean
7c27e184
PB
39471@endif libiberty
39472@if zlib
215c351a
PB
39473 @cd $(HOST_SUBDIR); [ -d stage2-zlib ] || \
39474 mkdir stage2-zlib; \
2d309510
PB
39475 mv stage2-zlib zlib ; \
39476 mv stage1-zlib prev-zlib || test -f stage1-lean
7c27e184 39477@endif zlib
f41d6665
DJ
39478 @[ -d stage2-$(TARGET_SUBDIR) ] || \
39479 mkdir stage2-$(TARGET_SUBDIR); \
2d309510
PB
39480 mv stage2-$(TARGET_SUBDIR) $(TARGET_SUBDIR) ; \
39481 mv stage1-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage1-lean
7c27e184 39482
2d309510 39483stage2-end::
7c27e184 39484@if bfd
2d309510
PB
39485 @if test -d $(HOST_SUBDIR)/bfd ; then \
39486 cd $(HOST_SUBDIR); mv bfd stage2-bfd ; \
39487 mv prev-bfd stage1-bfd ; : ; \
f41d6665 39488 fi
7c27e184
PB
39489@endif bfd
39490@if opcodes
2d309510
PB
39491 @if test -d $(HOST_SUBDIR)/opcodes ; then \
39492 cd $(HOST_SUBDIR); mv opcodes stage2-opcodes ; \
39493 mv prev-opcodes stage1-opcodes ; : ; \
f41d6665 39494 fi
7c27e184
PB
39495@endif opcodes
39496@if binutils
2d309510
PB
39497 @if test -d $(HOST_SUBDIR)/binutils ; then \
39498 cd $(HOST_SUBDIR); mv binutils stage2-binutils ; \
39499 mv prev-binutils stage1-binutils ; : ; \
f41d6665 39500 fi
7c27e184
PB
39501@endif binutils
39502@if gas
2d309510
PB
39503 @if test -d $(HOST_SUBDIR)/gas ; then \
39504 cd $(HOST_SUBDIR); mv gas stage2-gas ; \
39505 mv prev-gas stage1-gas ; : ; \
f41d6665 39506 fi
7c27e184
PB
39507@endif gas
39508@if gcc
2d309510
PB
39509 @if test -d $(HOST_SUBDIR)/gcc ; then \
39510 cd $(HOST_SUBDIR); mv gcc stage2-gcc ; \
39511 mv prev-gcc stage1-gcc ; : ; \
f41d6665 39512 fi
7c27e184
PB
39513@endif gcc
39514@if intl
2d309510
PB
39515 @if test -d $(HOST_SUBDIR)/intl ; then \
39516 cd $(HOST_SUBDIR); mv intl stage2-intl ; \
39517 mv prev-intl stage1-intl ; : ; \
f41d6665 39518 fi
7c27e184
PB
39519@endif intl
39520@if ld
2d309510
PB
39521 @if test -d $(HOST_SUBDIR)/ld ; then \
39522 cd $(HOST_SUBDIR); mv ld stage2-ld ; \
39523 mv prev-ld stage1-ld ; : ; \
f41d6665 39524 fi
7c27e184
PB
39525@endif ld
39526@if libcpp
2d309510
PB
39527 @if test -d $(HOST_SUBDIR)/libcpp ; then \
39528 cd $(HOST_SUBDIR); mv libcpp stage2-libcpp ; \
39529 mv prev-libcpp stage1-libcpp ; : ; \
f41d6665 39530 fi
7c27e184 39531@endif libcpp
a4b6c45a 39532@if libdecnumber
2d309510
PB
39533 @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
39534 cd $(HOST_SUBDIR); mv libdecnumber stage2-libdecnumber ; \
39535 mv prev-libdecnumber stage1-libdecnumber ; : ; \
f41d6665 39536 fi
a4b6c45a 39537@endif libdecnumber
7c27e184 39538@if libiberty
2d309510
PB
39539 @if test -d $(HOST_SUBDIR)/libiberty ; then \
39540 cd $(HOST_SUBDIR); mv libiberty stage2-libiberty ; \
39541 mv prev-libiberty stage1-libiberty ; : ; \
f41d6665 39542 fi
7c27e184
PB
39543@endif libiberty
39544@if zlib
2d309510
PB
39545 @if test -d $(HOST_SUBDIR)/zlib ; then \
39546 cd $(HOST_SUBDIR); mv zlib stage2-zlib ; \
39547 mv prev-zlib stage1-zlib ; : ; \
f41d6665 39548 fi
7c27e184 39549@endif zlib
f41d6665 39550 @if test -d $(TARGET_SUBDIR) ; then \
2d309510
PB
39551 mv $(TARGET_SUBDIR) stage2-$(TARGET_SUBDIR) ; \
39552 mv prev-$(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR) ; : ; \
f41d6665 39553 fi
2d309510 39554 rm -f stage_current
7c27e184 39555
f41d6665
DJ
39556# Bubble a bugfix through all the stages up to stage 2. They are
39557# remade, but not reconfigured. The next stage (if any) will not be
39558# reconfigured as well.
7c27e184
PB
39559.PHONY: stage2-bubble
39560stage2-bubble:: stage1-bubble
e7c84bf8
PB
39561 @r=`${PWD_COMMAND}`; export r; \
39562 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39563 if test -f stage2-lean || test -f stage1-lean ; then \
ce521a9c
PB
39564 echo Skipping rebuild of stage2 ; \
39565 else \
1061f99e
PB
39566 $(MAKE) stage2-start; \
39567 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage2; \
ce521a9c 39568 fi
7c27e184 39569
45f366ab 39570.PHONY: all-stage2 clean-stage2
45f366ab 39571do-clean: clean-stage2
45f366ab 39572
7c27e184
PB
39573# FIXME: Will not need to be conditional when toplevel bootstrap is the
39574# only possibility, but now it conflicts with no-bootstrap rules
39575@if gcc-bootstrap
39576
39577
39578
2d309510 39579.PHONY: bootstrap2 bootstrap2-lean
2abefe3d
PB
39580bootstrap2:
39581 echo stage2 > stage_final
39582 @r=`${PWD_COMMAND}`; export r; \
39583 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39584 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage2-bubble
f41d6665 39585 @: $(MAKE); $(unstage)
2abefe3d
PB
39586 @r=`${PWD_COMMAND}`; export r; \
39587 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39588 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
7c27e184 39589
2d309510
PB
39590bootstrap2-lean:
39591 echo stage2 > stage_final
39592 @r=`${PWD_COMMAND}`; export r; \
39593 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39594 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage2-bubble
39595 @: $(MAKE); $(unstage)
39596 @r=`${PWD_COMMAND}`; export r; \
39597 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39598 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
39599
7c27e184 39600
45f366ab 39601# Rules to wipe a stage and all the following ones, also used for cleanstrap
05750653 39602distclean-stage1:: distclean-stage2
45f366ab 39603.PHONY: distclean-stage2
7c27e184 39604distclean-stage2::
f41d6665 39605 @: $(MAKE); $(stage)
05750653 39606 rm -rf stage2-*
7c27e184
PB
39607
39608
39609@endif gcc-bootstrap
39610
39611
39612.PHONY: stage3-start stage3-end
39613
39614stage3-start::
f41d6665 39615 @: $(MAKE); $(stage); \
7c27e184 39616 echo stage3 > stage_current ; \
215c351a 39617 echo stage3 > stage_last; \
f41d6665 39618 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
7c27e184 39619@if bfd
215c351a
PB
39620 @cd $(HOST_SUBDIR); [ -d stage3-bfd ] || \
39621 mkdir stage3-bfd; \
2d309510
PB
39622 mv stage3-bfd bfd ; \
39623 mv stage2-bfd prev-bfd || test -f stage2-lean
7c27e184
PB
39624@endif bfd
39625@if opcodes
215c351a
PB
39626 @cd $(HOST_SUBDIR); [ -d stage3-opcodes ] || \
39627 mkdir stage3-opcodes; \
2d309510
PB
39628 mv stage3-opcodes opcodes ; \
39629 mv stage2-opcodes prev-opcodes || test -f stage2-lean
7c27e184
PB
39630@endif opcodes
39631@if binutils
215c351a
PB
39632 @cd $(HOST_SUBDIR); [ -d stage3-binutils ] || \
39633 mkdir stage3-binutils; \
2d309510
PB
39634 mv stage3-binutils binutils ; \
39635 mv stage2-binutils prev-binutils || test -f stage2-lean
7c27e184
PB
39636@endif binutils
39637@if gas
215c351a
PB
39638 @cd $(HOST_SUBDIR); [ -d stage3-gas ] || \
39639 mkdir stage3-gas; \
2d309510
PB
39640 mv stage3-gas gas ; \
39641 mv stage2-gas prev-gas || test -f stage2-lean
7c27e184
PB
39642@endif gas
39643@if gcc
215c351a
PB
39644 @cd $(HOST_SUBDIR); [ -d stage3-gcc ] || \
39645 mkdir stage3-gcc; \
2d309510
PB
39646 mv stage3-gcc gcc ; \
39647 mv stage2-gcc prev-gcc || test -f stage2-lean
7c27e184
PB
39648@endif gcc
39649@if intl
215c351a
PB
39650 @cd $(HOST_SUBDIR); [ -d stage3-intl ] || \
39651 mkdir stage3-intl; \
2d309510
PB
39652 mv stage3-intl intl ; \
39653 mv stage2-intl prev-intl || test -f stage2-lean
7c27e184
PB
39654@endif intl
39655@if ld
215c351a
PB
39656 @cd $(HOST_SUBDIR); [ -d stage3-ld ] || \
39657 mkdir stage3-ld; \
2d309510
PB
39658 mv stage3-ld ld ; \
39659 mv stage2-ld prev-ld || test -f stage2-lean
7c27e184
PB
39660@endif ld
39661@if libcpp
215c351a
PB
39662 @cd $(HOST_SUBDIR); [ -d stage3-libcpp ] || \
39663 mkdir stage3-libcpp; \
2d309510
PB
39664 mv stage3-libcpp libcpp ; \
39665 mv stage2-libcpp prev-libcpp || test -f stage2-lean
7c27e184 39666@endif libcpp
a4b6c45a
BE
39667@if libdecnumber
39668 @cd $(HOST_SUBDIR); [ -d stage3-libdecnumber ] || \
39669 mkdir stage3-libdecnumber; \
2d309510
PB
39670 mv stage3-libdecnumber libdecnumber ; \
39671 mv stage2-libdecnumber prev-libdecnumber || test -f stage2-lean
a4b6c45a 39672@endif libdecnumber
7c27e184 39673@if libiberty
215c351a
PB
39674 @cd $(HOST_SUBDIR); [ -d stage3-libiberty ] || \
39675 mkdir stage3-libiberty; \
2d309510
PB
39676 mv stage3-libiberty libiberty ; \
39677 mv stage2-libiberty prev-libiberty || test -f stage2-lean
7c27e184
PB
39678@endif libiberty
39679@if zlib
215c351a
PB
39680 @cd $(HOST_SUBDIR); [ -d stage3-zlib ] || \
39681 mkdir stage3-zlib; \
2d309510
PB
39682 mv stage3-zlib zlib ; \
39683 mv stage2-zlib prev-zlib || test -f stage2-lean
7c27e184 39684@endif zlib
f41d6665
DJ
39685 @[ -d stage3-$(TARGET_SUBDIR) ] || \
39686 mkdir stage3-$(TARGET_SUBDIR); \
2d309510
PB
39687 mv stage3-$(TARGET_SUBDIR) $(TARGET_SUBDIR) ; \
39688 mv stage2-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage2-lean
7c27e184 39689
2d309510 39690stage3-end::
7c27e184 39691@if bfd
2d309510
PB
39692 @if test -d $(HOST_SUBDIR)/bfd ; then \
39693 cd $(HOST_SUBDIR); mv bfd stage3-bfd ; \
39694 mv prev-bfd stage2-bfd ; : ; \
f41d6665 39695 fi
7c27e184
PB
39696@endif bfd
39697@if opcodes
2d309510
PB
39698 @if test -d $(HOST_SUBDIR)/opcodes ; then \
39699 cd $(HOST_SUBDIR); mv opcodes stage3-opcodes ; \
39700 mv prev-opcodes stage2-opcodes ; : ; \
f41d6665 39701 fi
7c27e184
PB
39702@endif opcodes
39703@if binutils
2d309510
PB
39704 @if test -d $(HOST_SUBDIR)/binutils ; then \
39705 cd $(HOST_SUBDIR); mv binutils stage3-binutils ; \
39706 mv prev-binutils stage2-binutils ; : ; \
f41d6665 39707 fi
7c27e184
PB
39708@endif binutils
39709@if gas
2d309510
PB
39710 @if test -d $(HOST_SUBDIR)/gas ; then \
39711 cd $(HOST_SUBDIR); mv gas stage3-gas ; \
39712 mv prev-gas stage2-gas ; : ; \
f41d6665 39713 fi
7c27e184
PB
39714@endif gas
39715@if gcc
2d309510
PB
39716 @if test -d $(HOST_SUBDIR)/gcc ; then \
39717 cd $(HOST_SUBDIR); mv gcc stage3-gcc ; \
39718 mv prev-gcc stage2-gcc ; : ; \
f41d6665 39719 fi
7c27e184
PB
39720@endif gcc
39721@if intl
2d309510
PB
39722 @if test -d $(HOST_SUBDIR)/intl ; then \
39723 cd $(HOST_SUBDIR); mv intl stage3-intl ; \
39724 mv prev-intl stage2-intl ; : ; \
f41d6665 39725 fi
7c27e184
PB
39726@endif intl
39727@if ld
2d309510
PB
39728 @if test -d $(HOST_SUBDIR)/ld ; then \
39729 cd $(HOST_SUBDIR); mv ld stage3-ld ; \
39730 mv prev-ld stage2-ld ; : ; \
f41d6665 39731 fi
7c27e184
PB
39732@endif ld
39733@if libcpp
2d309510
PB
39734 @if test -d $(HOST_SUBDIR)/libcpp ; then \
39735 cd $(HOST_SUBDIR); mv libcpp stage3-libcpp ; \
39736 mv prev-libcpp stage2-libcpp ; : ; \
f41d6665 39737 fi
7c27e184 39738@endif libcpp
a4b6c45a 39739@if libdecnumber
2d309510
PB
39740 @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
39741 cd $(HOST_SUBDIR); mv libdecnumber stage3-libdecnumber ; \
39742 mv prev-libdecnumber stage2-libdecnumber ; : ; \
f41d6665 39743 fi
a4b6c45a 39744@endif libdecnumber
7c27e184 39745@if libiberty
2d309510
PB
39746 @if test -d $(HOST_SUBDIR)/libiberty ; then \
39747 cd $(HOST_SUBDIR); mv libiberty stage3-libiberty ; \
39748 mv prev-libiberty stage2-libiberty ; : ; \
f41d6665 39749 fi
7c27e184
PB
39750@endif libiberty
39751@if zlib
2d309510
PB
39752 @if test -d $(HOST_SUBDIR)/zlib ; then \
39753 cd $(HOST_SUBDIR); mv zlib stage3-zlib ; \
39754 mv prev-zlib stage2-zlib ; : ; \
f41d6665 39755 fi
7c27e184 39756@endif zlib
f41d6665 39757 @if test -d $(TARGET_SUBDIR) ; then \
2d309510
PB
39758 mv $(TARGET_SUBDIR) stage3-$(TARGET_SUBDIR) ; \
39759 mv prev-$(TARGET_SUBDIR) stage2-$(TARGET_SUBDIR) ; : ; \
f41d6665 39760 fi
2d309510 39761 rm -f stage_current
7c27e184 39762
f41d6665
DJ
39763# Bubble a bugfix through all the stages up to stage 3. They are
39764# remade, but not reconfigured. The next stage (if any) will not be
39765# reconfigured as well.
7c27e184
PB
39766.PHONY: stage3-bubble
39767stage3-bubble:: stage2-bubble
e7c84bf8
PB
39768 @r=`${PWD_COMMAND}`; export r; \
39769 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39770 if test -f stage3-lean || test -f stage2-lean ; then \
ce521a9c
PB
39771 echo Skipping rebuild of stage3 ; \
39772 else \
1061f99e 39773 $(MAKE) stage3-start; \
2d309510
PB
39774 if $(LEAN); then \
39775 rm -rf stage1-* ; \
39776 $(STAMP) stage1-lean ; \
39777 fi; \
1061f99e 39778 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage3; \
ce521a9c 39779 fi
d19bca38 39780 $(MAKE) $(RECURSE_FLAGS_TO_PASS) compare
7c27e184 39781
45f366ab 39782.PHONY: all-stage3 clean-stage3
45f366ab 39783do-clean: clean-stage3
45f366ab 39784
ce406537
PB
39785# FIXME: Will not need to be conditional when toplevel bootstrap is the
39786# only possibility, but now it conflicts with no-bootstrap rules
39787@if gcc-bootstrap
7c27e184 39788
ce406537 39789compare:
e7c84bf8
PB
39790 @r=`${PWD_COMMAND}`; export r; \
39791 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39792 if test -f stage2-lean; then \
ce406537
PB
39793 echo Cannot compare object files as stage 2 was deleted. ; \
39794 exit 0 ; \
39795 fi; \
f41d6665 39796 : $(MAKE); $(stage); \
ce406537 39797 rm -f .bad_compare ; \
cc11cc9b 39798 echo Comparing stages 2 and 3 ; \
ce406537
PB
39799 cd stage3-gcc; \
39800 files=`find . -name "*$(objext)" -print` ; \
39801 cd .. ; \
39802 for file in $${files} ; do \
39803 f1=$$r/stage2-gcc/$$file; f2=$$r/stage3-gcc/$$file; \
39804 @do_compare@ > /dev/null 2>&1; \
1061f99e
PB
39805 if test $$? -eq 1; then \
39806 case $$file in \
39807 ./cc*-checksum$(objext) | ./libgcc/* ) \
39808 echo warning: $$file differs ;; \
39809 *) \
39810 echo $$file differs >> .bad_compare ;; \
39811 esac ; \
39812 fi ; \
ce406537
PB
39813 done ; \
39814 if [ -f .bad_compare ]; then \
39815 echo "Bootstrap comparison failure!"; \
39816 cat .bad_compare; \
39817 exit 1; \
39818 else \
cc11cc9b 39819 echo Comparison successful.; \
ce406537
PB
39820 fi ; \
39821 $(STAMP) compare
2d309510
PB
39822 if $(LEAN); then \
39823 rm -rf stage2-*; \
39824 $(STAMP) stage2-lean; \
39825 fi
ce521a9c 39826
7c27e184 39827
7c27e184 39828
2d309510 39829.PHONY: bootstrap bootstrap-lean
2abefe3d
PB
39830bootstrap:
39831 echo stage3 > stage_final
39832 @r=`${PWD_COMMAND}`; export r; \
39833 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39834 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage3-bubble
f41d6665 39835 @: $(MAKE); $(unstage)
2abefe3d
PB
39836 @r=`${PWD_COMMAND}`; export r; \
39837 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39838 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
45f366ab 39839
2d309510
PB
39840bootstrap-lean:
39841 echo stage3 > stage_final
39842 @r=`${PWD_COMMAND}`; export r; \
39843 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39844 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage3-bubble
39845 @: $(MAKE); $(unstage)
39846 @r=`${PWD_COMMAND}`; export r; \
39847 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39848 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
39849
7c27e184 39850
ce406537
PB
39851# Rules to wipe a stage and all the following ones, also used for cleanstrap
39852distclean-stage2:: distclean-stage3
39853.PHONY: distclean-stage3
39854distclean-stage3::
f41d6665 39855 @: $(MAKE); $(stage)
ce406537 39856 rm -rf stage3-* compare
45f366ab 39857
ce521a9c 39858
ce406537
PB
39859.PHONY: cleanstrap
39860cleanstrap: distclean bootstrap
7c27e184
PB
39861
39862@endif gcc-bootstrap
39863
39864
39865.PHONY: stage4-start stage4-end
39866
39867stage4-start::
f41d6665 39868 @: $(MAKE); $(stage); \
7c27e184 39869 echo stage4 > stage_current ; \
215c351a 39870 echo stage4 > stage_last; \
f41d6665 39871 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
7c27e184 39872@if bfd
215c351a
PB
39873 @cd $(HOST_SUBDIR); [ -d stage4-bfd ] || \
39874 mkdir stage4-bfd; \
2d309510
PB
39875 mv stage4-bfd bfd ; \
39876 mv stage3-bfd prev-bfd || test -f stage3-lean
7c27e184
PB
39877@endif bfd
39878@if opcodes
215c351a
PB
39879 @cd $(HOST_SUBDIR); [ -d stage4-opcodes ] || \
39880 mkdir stage4-opcodes; \
2d309510
PB
39881 mv stage4-opcodes opcodes ; \
39882 mv stage3-opcodes prev-opcodes || test -f stage3-lean
7c27e184
PB
39883@endif opcodes
39884@if binutils
215c351a
PB
39885 @cd $(HOST_SUBDIR); [ -d stage4-binutils ] || \
39886 mkdir stage4-binutils; \
2d309510
PB
39887 mv stage4-binutils binutils ; \
39888 mv stage3-binutils prev-binutils || test -f stage3-lean
7c27e184
PB
39889@endif binutils
39890@if gas
215c351a
PB
39891 @cd $(HOST_SUBDIR); [ -d stage4-gas ] || \
39892 mkdir stage4-gas; \
2d309510
PB
39893 mv stage4-gas gas ; \
39894 mv stage3-gas prev-gas || test -f stage3-lean
7c27e184
PB
39895@endif gas
39896@if gcc
215c351a
PB
39897 @cd $(HOST_SUBDIR); [ -d stage4-gcc ] || \
39898 mkdir stage4-gcc; \
2d309510
PB
39899 mv stage4-gcc gcc ; \
39900 mv stage3-gcc prev-gcc || test -f stage3-lean
7c27e184
PB
39901@endif gcc
39902@if intl
215c351a
PB
39903 @cd $(HOST_SUBDIR); [ -d stage4-intl ] || \
39904 mkdir stage4-intl; \
2d309510
PB
39905 mv stage4-intl intl ; \
39906 mv stage3-intl prev-intl || test -f stage3-lean
7c27e184
PB
39907@endif intl
39908@if ld
215c351a
PB
39909 @cd $(HOST_SUBDIR); [ -d stage4-ld ] || \
39910 mkdir stage4-ld; \
2d309510
PB
39911 mv stage4-ld ld ; \
39912 mv stage3-ld prev-ld || test -f stage3-lean
7c27e184
PB
39913@endif ld
39914@if libcpp
215c351a
PB
39915 @cd $(HOST_SUBDIR); [ -d stage4-libcpp ] || \
39916 mkdir stage4-libcpp; \
2d309510
PB
39917 mv stage4-libcpp libcpp ; \
39918 mv stage3-libcpp prev-libcpp || test -f stage3-lean
7c27e184 39919@endif libcpp
a4b6c45a
BE
39920@if libdecnumber
39921 @cd $(HOST_SUBDIR); [ -d stage4-libdecnumber ] || \
39922 mkdir stage4-libdecnumber; \
2d309510
PB
39923 mv stage4-libdecnumber libdecnumber ; \
39924 mv stage3-libdecnumber prev-libdecnumber || test -f stage3-lean
a4b6c45a 39925@endif libdecnumber
7c27e184 39926@if libiberty
215c351a
PB
39927 @cd $(HOST_SUBDIR); [ -d stage4-libiberty ] || \
39928 mkdir stage4-libiberty; \
2d309510
PB
39929 mv stage4-libiberty libiberty ; \
39930 mv stage3-libiberty prev-libiberty || test -f stage3-lean
7c27e184
PB
39931@endif libiberty
39932@if zlib
215c351a
PB
39933 @cd $(HOST_SUBDIR); [ -d stage4-zlib ] || \
39934 mkdir stage4-zlib; \
2d309510
PB
39935 mv stage4-zlib zlib ; \
39936 mv stage3-zlib prev-zlib || test -f stage3-lean
7c27e184 39937@endif zlib
f41d6665
DJ
39938 @[ -d stage4-$(TARGET_SUBDIR) ] || \
39939 mkdir stage4-$(TARGET_SUBDIR); \
2d309510
PB
39940 mv stage4-$(TARGET_SUBDIR) $(TARGET_SUBDIR) ; \
39941 mv stage3-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage3-lean
7c27e184 39942
2d309510 39943stage4-end::
7c27e184 39944@if bfd
2d309510
PB
39945 @if test -d $(HOST_SUBDIR)/bfd ; then \
39946 cd $(HOST_SUBDIR); mv bfd stage4-bfd ; \
39947 mv prev-bfd stage3-bfd ; : ; \
f41d6665 39948 fi
7c27e184
PB
39949@endif bfd
39950@if opcodes
2d309510
PB
39951 @if test -d $(HOST_SUBDIR)/opcodes ; then \
39952 cd $(HOST_SUBDIR); mv opcodes stage4-opcodes ; \
39953 mv prev-opcodes stage3-opcodes ; : ; \
f41d6665 39954 fi
7c27e184
PB
39955@endif opcodes
39956@if binutils
2d309510
PB
39957 @if test -d $(HOST_SUBDIR)/binutils ; then \
39958 cd $(HOST_SUBDIR); mv binutils stage4-binutils ; \
39959 mv prev-binutils stage3-binutils ; : ; \
f41d6665 39960 fi
7c27e184
PB
39961@endif binutils
39962@if gas
2d309510
PB
39963 @if test -d $(HOST_SUBDIR)/gas ; then \
39964 cd $(HOST_SUBDIR); mv gas stage4-gas ; \
39965 mv prev-gas stage3-gas ; : ; \
f41d6665 39966 fi
7c27e184
PB
39967@endif gas
39968@if gcc
2d309510
PB
39969 @if test -d $(HOST_SUBDIR)/gcc ; then \
39970 cd $(HOST_SUBDIR); mv gcc stage4-gcc ; \
39971 mv prev-gcc stage3-gcc ; : ; \
f41d6665 39972 fi
7c27e184
PB
39973@endif gcc
39974@if intl
2d309510
PB
39975 @if test -d $(HOST_SUBDIR)/intl ; then \
39976 cd $(HOST_SUBDIR); mv intl stage4-intl ; \
39977 mv prev-intl stage3-intl ; : ; \
f41d6665 39978 fi
7c27e184
PB
39979@endif intl
39980@if ld
2d309510
PB
39981 @if test -d $(HOST_SUBDIR)/ld ; then \
39982 cd $(HOST_SUBDIR); mv ld stage4-ld ; \
39983 mv prev-ld stage3-ld ; : ; \
f41d6665 39984 fi
7c27e184
PB
39985@endif ld
39986@if libcpp
2d309510
PB
39987 @if test -d $(HOST_SUBDIR)/libcpp ; then \
39988 cd $(HOST_SUBDIR); mv libcpp stage4-libcpp ; \
39989 mv prev-libcpp stage3-libcpp ; : ; \
f41d6665 39990 fi
7c27e184 39991@endif libcpp
a4b6c45a 39992@if libdecnumber
2d309510
PB
39993 @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
39994 cd $(HOST_SUBDIR); mv libdecnumber stage4-libdecnumber ; \
39995 mv prev-libdecnumber stage3-libdecnumber ; : ; \
f41d6665 39996 fi
a4b6c45a 39997@endif libdecnumber
7c27e184 39998@if libiberty
2d309510
PB
39999 @if test -d $(HOST_SUBDIR)/libiberty ; then \
40000 cd $(HOST_SUBDIR); mv libiberty stage4-libiberty ; \
40001 mv prev-libiberty stage3-libiberty ; : ; \
f41d6665 40002 fi
7c27e184
PB
40003@endif libiberty
40004@if zlib
2d309510
PB
40005 @if test -d $(HOST_SUBDIR)/zlib ; then \
40006 cd $(HOST_SUBDIR); mv zlib stage4-zlib ; \
40007 mv prev-zlib stage3-zlib ; : ; \
f41d6665 40008 fi
7c27e184 40009@endif zlib
f41d6665 40010 @if test -d $(TARGET_SUBDIR) ; then \
2d309510
PB
40011 mv $(TARGET_SUBDIR) stage4-$(TARGET_SUBDIR) ; \
40012 mv prev-$(TARGET_SUBDIR) stage3-$(TARGET_SUBDIR) ; : ; \
f41d6665 40013 fi
2d309510 40014 rm -f stage_current
7c27e184 40015
f41d6665
DJ
40016# Bubble a bugfix through all the stages up to stage 4. They are
40017# remade, but not reconfigured. The next stage (if any) will not be
40018# reconfigured as well.
7c27e184
PB
40019.PHONY: stage4-bubble
40020stage4-bubble:: stage3-bubble
e7c84bf8
PB
40021 @r=`${PWD_COMMAND}`; export r; \
40022 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40023 if test -f stage4-lean || test -f stage3-lean ; then \
ce521a9c
PB
40024 echo Skipping rebuild of stage4 ; \
40025 else \
1061f99e 40026 $(MAKE) stage4-start; \
2d309510
PB
40027 if $(LEAN); then \
40028 rm -rf stage2-* ; \
40029 $(STAMP) stage2-lean ; \
40030 fi; \
1061f99e 40031 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage4; \
ce521a9c 40032 fi
d19bca38 40033 $(MAKE) $(RECURSE_FLAGS_TO_PASS) compare3
7c27e184 40034
45f366ab 40035.PHONY: all-stage4 clean-stage4
45f366ab 40036do-clean: clean-stage4
45f366ab 40037
ce406537
PB
40038# FIXME: Will not need to be conditional when toplevel bootstrap is the
40039# only possibility, but now it conflicts with no-bootstrap rules
40040@if gcc-bootstrap
7c27e184 40041
ce406537 40042compare3:
e7c84bf8
PB
40043 @r=`${PWD_COMMAND}`; export r; \
40044 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40045 if test -f stage3-lean; then \
ce406537
PB
40046 echo Cannot compare object files as stage 3 was deleted. ; \
40047 exit 0 ; \
40048 fi; \
f41d6665 40049 : $(MAKE); $(stage); \
ce406537 40050 rm -f .bad_compare ; \
cc11cc9b 40051 echo Comparing stages 3 and 4 ; \
ce406537
PB
40052 cd stage4-gcc; \
40053 files=`find . -name "*$(objext)" -print` ; \
40054 cd .. ; \
40055 for file in $${files} ; do \
40056 f1=$$r/stage3-gcc/$$file; f2=$$r/stage4-gcc/$$file; \
40057 @do_compare@ > /dev/null 2>&1; \
1061f99e
PB
40058 if test $$? -eq 1; then \
40059 case $$file in \
40060 ./cc*-checksum$(objext) | ./libgcc/* ) \
40061 echo warning: $$file differs ;; \
40062 *) \
40063 echo $$file differs >> .bad_compare ;; \
40064 esac ; \
40065 fi ; \
ce406537
PB
40066 done ; \
40067 if [ -f .bad_compare ]; then \
40068 echo "Bootstrap comparison failure!"; \
40069 cat .bad_compare; \
40070 exit 1; \
40071 else \
cc11cc9b 40072 echo Comparison successful.; \
ce406537
PB
40073 fi ; \
40074 $(STAMP) compare3
2d309510
PB
40075 if $(LEAN); then \
40076 rm -rf stage3-*; \
40077 $(STAMP) stage3-lean; \
40078 fi
ce521a9c 40079
7c27e184 40080
7c27e184 40081
2d309510 40082.PHONY: bootstrap4 bootstrap4-lean
2abefe3d
PB
40083bootstrap4:
40084 echo stage4 > stage_final
40085 @r=`${PWD_COMMAND}`; export r; \
40086 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40087 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage4-bubble
f41d6665 40088 @: $(MAKE); $(unstage)
2abefe3d
PB
40089 @r=`${PWD_COMMAND}`; export r; \
40090 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40091 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
45f366ab 40092
2d309510
PB
40093bootstrap4-lean:
40094 echo stage4 > stage_final
40095 @r=`${PWD_COMMAND}`; export r; \
40096 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40097 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage4-bubble
40098 @: $(MAKE); $(unstage)
40099 @r=`${PWD_COMMAND}`; export r; \
40100 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40101 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
40102
7c27e184 40103
ce406537
PB
40104# Rules to wipe a stage and all the following ones, also used for cleanstrap
40105distclean-stage3:: distclean-stage4
40106.PHONY: distclean-stage4
40107distclean-stage4::
f41d6665 40108 @: $(MAKE); $(stage)
ce406537 40109 rm -rf stage4-* compare3
45f366ab 40110
ce521a9c 40111
ce406537 40112@endif gcc-bootstrap
7c27e184
PB
40113
40114
40115.PHONY: stageprofile-start stageprofile-end
40116
40117stageprofile-start::
f41d6665 40118 @: $(MAKE); $(stage); \
7c27e184 40119 echo stageprofile > stage_current ; \
215c351a 40120 echo stageprofile > stage_last; \
f41d6665 40121 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
7c27e184 40122@if bfd
215c351a
PB
40123 @cd $(HOST_SUBDIR); [ -d stageprofile-bfd ] || \
40124 mkdir stageprofile-bfd; \
2d309510
PB
40125 mv stageprofile-bfd bfd ; \
40126 mv stage1-bfd prev-bfd || test -f stage1-lean
7c27e184
PB
40127@endif bfd
40128@if opcodes
215c351a
PB
40129 @cd $(HOST_SUBDIR); [ -d stageprofile-opcodes ] || \
40130 mkdir stageprofile-opcodes; \
2d309510
PB
40131 mv stageprofile-opcodes opcodes ; \
40132 mv stage1-opcodes prev-opcodes || test -f stage1-lean
7c27e184
PB
40133@endif opcodes
40134@if binutils
215c351a
PB
40135 @cd $(HOST_SUBDIR); [ -d stageprofile-binutils ] || \
40136 mkdir stageprofile-binutils; \
2d309510
PB
40137 mv stageprofile-binutils binutils ; \
40138 mv stage1-binutils prev-binutils || test -f stage1-lean
7c27e184
PB
40139@endif binutils
40140@if gas
215c351a
PB
40141 @cd $(HOST_SUBDIR); [ -d stageprofile-gas ] || \
40142 mkdir stageprofile-gas; \
2d309510
PB
40143 mv stageprofile-gas gas ; \
40144 mv stage1-gas prev-gas || test -f stage1-lean
7c27e184
PB
40145@endif gas
40146@if gcc
215c351a
PB
40147 @cd $(HOST_SUBDIR); [ -d stageprofile-gcc ] || \
40148 mkdir stageprofile-gcc; \
2d309510
PB
40149 mv stageprofile-gcc gcc ; \
40150 mv stage1-gcc prev-gcc || test -f stage1-lean
7c27e184
PB
40151@endif gcc
40152@if intl
215c351a
PB
40153 @cd $(HOST_SUBDIR); [ -d stageprofile-intl ] || \
40154 mkdir stageprofile-intl; \
2d309510
PB
40155 mv stageprofile-intl intl ; \
40156 mv stage1-intl prev-intl || test -f stage1-lean
7c27e184
PB
40157@endif intl
40158@if ld
215c351a
PB
40159 @cd $(HOST_SUBDIR); [ -d stageprofile-ld ] || \
40160 mkdir stageprofile-ld; \
2d309510
PB
40161 mv stageprofile-ld ld ; \
40162 mv stage1-ld prev-ld || test -f stage1-lean
7c27e184
PB
40163@endif ld
40164@if libcpp
215c351a
PB
40165 @cd $(HOST_SUBDIR); [ -d stageprofile-libcpp ] || \
40166 mkdir stageprofile-libcpp; \
2d309510
PB
40167 mv stageprofile-libcpp libcpp ; \
40168 mv stage1-libcpp prev-libcpp || test -f stage1-lean
7c27e184 40169@endif libcpp
a4b6c45a
BE
40170@if libdecnumber
40171 @cd $(HOST_SUBDIR); [ -d stageprofile-libdecnumber ] || \
40172 mkdir stageprofile-libdecnumber; \
2d309510
PB
40173 mv stageprofile-libdecnumber libdecnumber ; \
40174 mv stage1-libdecnumber prev-libdecnumber || test -f stage1-lean
a4b6c45a 40175@endif libdecnumber
7c27e184 40176@if libiberty
215c351a
PB
40177 @cd $(HOST_SUBDIR); [ -d stageprofile-libiberty ] || \
40178 mkdir stageprofile-libiberty; \
2d309510
PB
40179 mv stageprofile-libiberty libiberty ; \
40180 mv stage1-libiberty prev-libiberty || test -f stage1-lean
7c27e184
PB
40181@endif libiberty
40182@if zlib
ce406537
PB
40183 @cd $(HOST_SUBDIR); [ -d stageprofile-zlib ] || \
40184 mkdir stageprofile-zlib; \
2d309510
PB
40185 mv stageprofile-zlib zlib ; \
40186 mv stage1-zlib prev-zlib || test -f stage1-lean
ce406537 40187@endif zlib
f41d6665
DJ
40188 @[ -d stageprofile-$(TARGET_SUBDIR) ] || \
40189 mkdir stageprofile-$(TARGET_SUBDIR); \
2d309510
PB
40190 mv stageprofile-$(TARGET_SUBDIR) $(TARGET_SUBDIR) ; \
40191 mv stage1-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage1-lean
45f366ab 40192
2d309510 40193stageprofile-end::
ce406537 40194@if bfd
2d309510
PB
40195 @if test -d $(HOST_SUBDIR)/bfd ; then \
40196 cd $(HOST_SUBDIR); mv bfd stageprofile-bfd ; \
40197 mv prev-bfd stage1-bfd ; : ; \
f41d6665 40198 fi
ce406537
PB
40199@endif bfd
40200@if opcodes
2d309510
PB
40201 @if test -d $(HOST_SUBDIR)/opcodes ; then \
40202 cd $(HOST_SUBDIR); mv opcodes stageprofile-opcodes ; \
40203 mv prev-opcodes stage1-opcodes ; : ; \
f41d6665 40204 fi
ce406537
PB
40205@endif opcodes
40206@if binutils
2d309510
PB
40207 @if test -d $(HOST_SUBDIR)/binutils ; then \
40208 cd $(HOST_SUBDIR); mv binutils stageprofile-binutils ; \
40209 mv prev-binutils stage1-binutils ; : ; \
f41d6665 40210 fi
ce406537
PB
40211@endif binutils
40212@if gas
2d309510
PB
40213 @if test -d $(HOST_SUBDIR)/gas ; then \
40214 cd $(HOST_SUBDIR); mv gas stageprofile-gas ; \
40215 mv prev-gas stage1-gas ; : ; \
f41d6665 40216 fi
ce406537
PB
40217@endif gas
40218@if gcc
2d309510
PB
40219 @if test -d $(HOST_SUBDIR)/gcc ; then \
40220 cd $(HOST_SUBDIR); mv gcc stageprofile-gcc ; \
40221 mv prev-gcc stage1-gcc ; : ; \
f41d6665 40222 fi
ce406537
PB
40223@endif gcc
40224@if intl
2d309510
PB
40225 @if test -d $(HOST_SUBDIR)/intl ; then \
40226 cd $(HOST_SUBDIR); mv intl stageprofile-intl ; \
40227 mv prev-intl stage1-intl ; : ; \
f41d6665 40228 fi
ce406537
PB
40229@endif intl
40230@if ld
2d309510
PB
40231 @if test -d $(HOST_SUBDIR)/ld ; then \
40232 cd $(HOST_SUBDIR); mv ld stageprofile-ld ; \
40233 mv prev-ld stage1-ld ; : ; \
f41d6665 40234 fi
ce406537
PB
40235@endif ld
40236@if libcpp
2d309510
PB
40237 @if test -d $(HOST_SUBDIR)/libcpp ; then \
40238 cd $(HOST_SUBDIR); mv libcpp stageprofile-libcpp ; \
40239 mv prev-libcpp stage1-libcpp ; : ; \
f41d6665 40240 fi
ce406537 40241@endif libcpp
a4b6c45a 40242@if libdecnumber
2d309510
PB
40243 @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
40244 cd $(HOST_SUBDIR); mv libdecnumber stageprofile-libdecnumber ; \
40245 mv prev-libdecnumber stage1-libdecnumber ; : ; \
f41d6665 40246 fi
a4b6c45a 40247@endif libdecnumber
ce406537 40248@if libiberty
2d309510
PB
40249 @if test -d $(HOST_SUBDIR)/libiberty ; then \
40250 cd $(HOST_SUBDIR); mv libiberty stageprofile-libiberty ; \
40251 mv prev-libiberty stage1-libiberty ; : ; \
f41d6665 40252 fi
ce406537
PB
40253@endif libiberty
40254@if zlib
2d309510
PB
40255 @if test -d $(HOST_SUBDIR)/zlib ; then \
40256 cd $(HOST_SUBDIR); mv zlib stageprofile-zlib ; \
40257 mv prev-zlib stage1-zlib ; : ; \
f41d6665 40258 fi
ce406537 40259@endif zlib
f41d6665 40260 @if test -d $(TARGET_SUBDIR) ; then \
2d309510
PB
40261 mv $(TARGET_SUBDIR) stageprofile-$(TARGET_SUBDIR) ; \
40262 mv prev-$(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR) ; : ; \
f41d6665 40263 fi
2d309510 40264 rm -f stage_current
7c27e184 40265
f41d6665
DJ
40266# Bubble a bugfix through all the stages up to stage profile. They are
40267# remade, but not reconfigured. The next stage (if any) will not be
40268# reconfigured as well.
ce406537
PB
40269.PHONY: stageprofile-bubble
40270stageprofile-bubble:: stage1-bubble
e7c84bf8
PB
40271 @r=`${PWD_COMMAND}`; export r; \
40272 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40273 if test -f stageprofile-lean || test -f stage1-lean ; then \
ce406537
PB
40274 echo Skipping rebuild of stageprofile ; \
40275 else \
1061f99e
PB
40276 $(MAKE) stageprofile-start; \
40277 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stageprofile; \
ce406537 40278 fi
7c27e184 40279
ce406537
PB
40280.PHONY: all-stageprofile clean-stageprofile
40281do-clean: clean-stageprofile
45f366ab 40282
7c27e184
PB
40283# FIXME: Will not need to be conditional when toplevel bootstrap is the
40284# only possibility, but now it conflicts with no-bootstrap rules
40285@if gcc-bootstrap
40286
40287
40288
40289
45f366ab 40290# Rules to wipe a stage and all the following ones, also used for cleanstrap
05750653 40291distclean-stage1:: distclean-stageprofile
45f366ab 40292.PHONY: distclean-stageprofile
7c27e184 40293distclean-stageprofile::
f41d6665 40294 @: $(MAKE); $(stage)
05750653 40295 rm -rf stageprofile-*
148907ea
PB
40296
40297
7c27e184 40298@endif gcc-bootstrap
148907ea
PB
40299
40300
7c27e184 40301.PHONY: stagefeedback-start stagefeedback-end
148907ea 40302
7c27e184 40303stagefeedback-start::
f41d6665 40304 @: $(MAKE); $(stage); \
7c27e184 40305 echo stagefeedback > stage_current ; \
215c351a 40306 echo stagefeedback > stage_last; \
f41d6665 40307 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
7c27e184 40308@if bfd
215c351a
PB
40309 @cd $(HOST_SUBDIR); [ -d stagefeedback-bfd ] || \
40310 mkdir stagefeedback-bfd; \
2d309510
PB
40311 mv stagefeedback-bfd bfd ; \
40312 mv stageprofile-bfd prev-bfd || test -f stageprofile-lean
7c27e184
PB
40313@endif bfd
40314@if opcodes
215c351a
PB
40315 @cd $(HOST_SUBDIR); [ -d stagefeedback-opcodes ] || \
40316 mkdir stagefeedback-opcodes; \
2d309510
PB
40317 mv stagefeedback-opcodes opcodes ; \
40318 mv stageprofile-opcodes prev-opcodes || test -f stageprofile-lean
7c27e184
PB
40319@endif opcodes
40320@if binutils
215c351a
PB
40321 @cd $(HOST_SUBDIR); [ -d stagefeedback-binutils ] || \
40322 mkdir stagefeedback-binutils; \
2d309510
PB
40323 mv stagefeedback-binutils binutils ; \
40324 mv stageprofile-binutils prev-binutils || test -f stageprofile-lean
7c27e184
PB
40325@endif binutils
40326@if gas
215c351a
PB
40327 @cd $(HOST_SUBDIR); [ -d stagefeedback-gas ] || \
40328 mkdir stagefeedback-gas; \
2d309510
PB
40329 mv stagefeedback-gas gas ; \
40330 mv stageprofile-gas prev-gas || test -f stageprofile-lean
7c27e184
PB
40331@endif gas
40332@if gcc
215c351a
PB
40333 @cd $(HOST_SUBDIR); [ -d stagefeedback-gcc ] || \
40334 mkdir stagefeedback-gcc; \
2d309510
PB
40335 mv stagefeedback-gcc gcc ; \
40336 mv stageprofile-gcc prev-gcc || test -f stageprofile-lean
7c27e184
PB
40337@endif gcc
40338@if intl
215c351a
PB
40339 @cd $(HOST_SUBDIR); [ -d stagefeedback-intl ] || \
40340 mkdir stagefeedback-intl; \
2d309510
PB
40341 mv stagefeedback-intl intl ; \
40342 mv stageprofile-intl prev-intl || test -f stageprofile-lean
7c27e184
PB
40343@endif intl
40344@if ld
215c351a
PB
40345 @cd $(HOST_SUBDIR); [ -d stagefeedback-ld ] || \
40346 mkdir stagefeedback-ld; \
2d309510
PB
40347 mv stagefeedback-ld ld ; \
40348 mv stageprofile-ld prev-ld || test -f stageprofile-lean
7c27e184
PB
40349@endif ld
40350@if libcpp
215c351a
PB
40351 @cd $(HOST_SUBDIR); [ -d stagefeedback-libcpp ] || \
40352 mkdir stagefeedback-libcpp; \
2d309510
PB
40353 mv stagefeedback-libcpp libcpp ; \
40354 mv stageprofile-libcpp prev-libcpp || test -f stageprofile-lean
7c27e184 40355@endif libcpp
a4b6c45a
BE
40356@if libdecnumber
40357 @cd $(HOST_SUBDIR); [ -d stagefeedback-libdecnumber ] || \
40358 mkdir stagefeedback-libdecnumber; \
2d309510
PB
40359 mv stagefeedback-libdecnumber libdecnumber ; \
40360 mv stageprofile-libdecnumber prev-libdecnumber || test -f stageprofile-lean
a4b6c45a 40361@endif libdecnumber
7c27e184 40362@if libiberty
215c351a
PB
40363 @cd $(HOST_SUBDIR); [ -d stagefeedback-libiberty ] || \
40364 mkdir stagefeedback-libiberty; \
2d309510
PB
40365 mv stagefeedback-libiberty libiberty ; \
40366 mv stageprofile-libiberty prev-libiberty || test -f stageprofile-lean
7c27e184
PB
40367@endif libiberty
40368@if zlib
215c351a
PB
40369 @cd $(HOST_SUBDIR); [ -d stagefeedback-zlib ] || \
40370 mkdir stagefeedback-zlib; \
2d309510
PB
40371 mv stagefeedback-zlib zlib ; \
40372 mv stageprofile-zlib prev-zlib || test -f stageprofile-lean
7c27e184 40373@endif zlib
f41d6665
DJ
40374 @[ -d stagefeedback-$(TARGET_SUBDIR) ] || \
40375 mkdir stagefeedback-$(TARGET_SUBDIR); \
2d309510
PB
40376 mv stagefeedback-$(TARGET_SUBDIR) $(TARGET_SUBDIR) ; \
40377 mv stageprofile-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stageprofile-lean
148907ea 40378
2d309510 40379stagefeedback-end::
7c27e184 40380@if bfd
2d309510
PB
40381 @if test -d $(HOST_SUBDIR)/bfd ; then \
40382 cd $(HOST_SUBDIR); mv bfd stagefeedback-bfd ; \
40383 mv prev-bfd stageprofile-bfd ; : ; \
f41d6665 40384 fi
7c27e184
PB
40385@endif bfd
40386@if opcodes
2d309510
PB
40387 @if test -d $(HOST_SUBDIR)/opcodes ; then \
40388 cd $(HOST_SUBDIR); mv opcodes stagefeedback-opcodes ; \
40389 mv prev-opcodes stageprofile-opcodes ; : ; \
f41d6665 40390 fi
7c27e184
PB
40391@endif opcodes
40392@if binutils
2d309510
PB
40393 @if test -d $(HOST_SUBDIR)/binutils ; then \
40394 cd $(HOST_SUBDIR); mv binutils stagefeedback-binutils ; \
40395 mv prev-binutils stageprofile-binutils ; : ; \
f41d6665 40396 fi
7c27e184
PB
40397@endif binutils
40398@if gas
2d309510
PB
40399 @if test -d $(HOST_SUBDIR)/gas ; then \
40400 cd $(HOST_SUBDIR); mv gas stagefeedback-gas ; \
40401 mv prev-gas stageprofile-gas ; : ; \
f41d6665 40402 fi
7c27e184
PB
40403@endif gas
40404@if gcc
2d309510
PB
40405 @if test -d $(HOST_SUBDIR)/gcc ; then \
40406 cd $(HOST_SUBDIR); mv gcc stagefeedback-gcc ; \
40407 mv prev-gcc stageprofile-gcc ; : ; \
f41d6665 40408 fi
7c27e184
PB
40409@endif gcc
40410@if intl
2d309510
PB
40411 @if test -d $(HOST_SUBDIR)/intl ; then \
40412 cd $(HOST_SUBDIR); mv intl stagefeedback-intl ; \
40413 mv prev-intl stageprofile-intl ; : ; \
f41d6665 40414 fi
7c27e184
PB
40415@endif intl
40416@if ld
2d309510
PB
40417 @if test -d $(HOST_SUBDIR)/ld ; then \
40418 cd $(HOST_SUBDIR); mv ld stagefeedback-ld ; \
40419 mv prev-ld stageprofile-ld ; : ; \
f41d6665 40420 fi
7c27e184
PB
40421@endif ld
40422@if libcpp
2d309510
PB
40423 @if test -d $(HOST_SUBDIR)/libcpp ; then \
40424 cd $(HOST_SUBDIR); mv libcpp stagefeedback-libcpp ; \
40425 mv prev-libcpp stageprofile-libcpp ; : ; \
f41d6665 40426 fi
7c27e184 40427@endif libcpp
a4b6c45a 40428@if libdecnumber
2d309510
PB
40429 @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
40430 cd $(HOST_SUBDIR); mv libdecnumber stagefeedback-libdecnumber ; \
40431 mv prev-libdecnumber stageprofile-libdecnumber ; : ; \
f41d6665 40432 fi
a4b6c45a 40433@endif libdecnumber
7c27e184 40434@if libiberty
2d309510
PB
40435 @if test -d $(HOST_SUBDIR)/libiberty ; then \
40436 cd $(HOST_SUBDIR); mv libiberty stagefeedback-libiberty ; \
40437 mv prev-libiberty stageprofile-libiberty ; : ; \
f41d6665 40438 fi
7c27e184
PB
40439@endif libiberty
40440@if zlib
2d309510
PB
40441 @if test -d $(HOST_SUBDIR)/zlib ; then \
40442 cd $(HOST_SUBDIR); mv zlib stagefeedback-zlib ; \
40443 mv prev-zlib stageprofile-zlib ; : ; \
f41d6665 40444 fi
7c27e184 40445@endif zlib
f41d6665 40446 @if test -d $(TARGET_SUBDIR) ; then \
2d309510
PB
40447 mv $(TARGET_SUBDIR) stagefeedback-$(TARGET_SUBDIR) ; \
40448 mv prev-$(TARGET_SUBDIR) stageprofile-$(TARGET_SUBDIR) ; : ; \
f41d6665 40449 fi
2d309510 40450 rm -f stage_current
148907ea 40451
f41d6665
DJ
40452# Bubble a bugfix through all the stages up to stage feedback. They are
40453# remade, but not reconfigured. The next stage (if any) will not be
40454# reconfigured as well.
7c27e184 40455.PHONY: stagefeedback-bubble
c7870f5d 40456stagefeedback-bubble:: stageprofile-bubble
e7c84bf8
PB
40457 @r=`${PWD_COMMAND}`; export r; \
40458 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40459 if test -f stagefeedback-lean || test -f stageprofile-lean ; then \
ce521a9c
PB
40460 echo Skipping rebuild of stagefeedback ; \
40461 else \
1061f99e
PB
40462 $(MAKE) stagefeedback-start; \
40463 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stagefeedback; \
ce521a9c 40464 fi
7c27e184 40465
45f366ab 40466.PHONY: all-stagefeedback clean-stagefeedback
45f366ab 40467do-clean: clean-stagefeedback
45f366ab 40468
7c27e184
PB
40469# FIXME: Will not need to be conditional when toplevel bootstrap is the
40470# only possibility, but now it conflicts with no-bootstrap rules
40471@if gcc-bootstrap
ad6717df
PB
40472
40473
40474
2d309510 40475.PHONY: profiledbootstrap profiledbootstrap-lean
2abefe3d
PB
40476profiledbootstrap:
40477 echo stagefeedback > stage_final
40478 @r=`${PWD_COMMAND}`; export r; \
40479 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40480 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stagefeedback-bubble
f41d6665 40481 @: $(MAKE); $(unstage)
2abefe3d
PB
40482 @r=`${PWD_COMMAND}`; export r; \
40483 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40484 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
c7870f5d 40485
2d309510
PB
40486profiledbootstrap-lean:
40487 echo stagefeedback > stage_final
40488 @r=`${PWD_COMMAND}`; export r; \
40489 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40490 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stagefeedback-bubble
40491 @: $(MAKE); $(unstage)
40492 @r=`${PWD_COMMAND}`; export r; \
40493 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40494 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
40495
ad6717df 40496
45f366ab 40497# Rules to wipe a stage and all the following ones, also used for cleanstrap
c7870f5d 40498distclean-stageprofile:: distclean-stagefeedback
45f366ab 40499.PHONY: distclean-stagefeedback
ad6717df 40500distclean-stagefeedback::
f41d6665 40501 @: $(MAKE); $(stage)
05750653 40502 rm -rf stagefeedback-*
ad6717df
PB
40503
40504
7c27e184 40505@endif gcc-bootstrap
ad6717df
PB
40506
40507
40508
c7870f5d
PB
40509stageprofile-end::
40510 $(MAKE) distclean-stagefeedback
ad6717df 40511
c7870f5d 40512stagefeedback-start::
ad6717df
PB
40513 @r=`${PWD_COMMAND}`; export r; \
40514 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c7870f5d
PB
40515 for i in prev-*; do \
40516 j=`echo $$i | sed s/^prev-//` ; \
40517 cd $$r/$$i && \
40518 { find . -type d | sort | sed 's,.*,$(SHELL) '"$$s"'/mkinstalldirs "../'$$j'/&",' | $(SHELL) ; } && \
40519 { find . -name '*.*da' | sed 's,.*,$(LN) -f "&" "../'$$j'/&",' | $(SHELL) ; } ; \
40520 done
03a91701 40521
45f366ab 40522@if gcc-bootstrap
45f366ab 40523do-distclean: distclean-stage1
cc11cc9b
PB
40524
40525# Provide a GCC build when we're building target libraries. This does
40526# not work as a dependency, just as the minimum necessary to avoid errors.
40527stage_last:
40528 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage1-bubble
45f366ab 40529
3ff3adad
PB
40530# Same as unstage, but not phony and defaulting to stage1-start. We place
40531# it in the dependency so that for example `make -j3 all-gcc' works.
40532stage_current:
40533 @if test -f stage_last; then $(unstage); else $(MAKE) stage1-start; fi
40534
cc11cc9b
PB
40535.PHONY: restrap
40536restrap:
40537 @: $(MAKE); $(stage)
e9a54b07 40538 rm -rf stage1-$(TARGET_SUBDIR) stage2-* stage3-* stage4-* stageprofile-* stagefeedback-*
cc11cc9b 40539 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all
e9a54b07 40540@endif gcc-bootstrap
cc11cc9b 40541
4977bab6
ZW
40542# --------------------------------------
40543# Dependencies between different modules
40544# --------------------------------------
40545
3589b69e 40546# Generic dependencies for target modules on host stuff, especially gcc
cc11cc9b
PB
40547@if gcc-bootstrap
40548configure-target-libstdc++-v3: stage_last
40549configure-target-libmudflap: stage_last
40550configure-target-libssp: stage_last
cc11cc9b
PB
40551configure-target-newlib: stage_last
40552configure-target-libgfortran: stage_last
40553configure-target-libobjc: stage_last
40554configure-target-libtermcap: stage_last
40555configure-target-winsup: stage_last
40556configure-target-libgloss: stage_last
40557configure-target-libiberty: stage_last
40558configure-target-gperf: stage_last
40559configure-target-examples: stage_last
40560configure-target-libffi: stage_last
40561configure-target-libjava: stage_last
40562configure-target-zlib: stage_last
40563configure-target-boehm-gc: stage_last
40564configure-target-qthreads: stage_last
40565configure-target-rda: stage_last
40566configure-target-libada: stage_last
40567configure-target-libgomp: stage_last
40568@endif gcc-bootstrap
3589b69e 40569
cc11cc9b 40570@if gcc-no-bootstrap
3589b69e 40571configure-target-libstdc++-v3: maybe-all-gcc
3589b69e 40572configure-target-libmudflap: maybe-all-gcc
77008252 40573configure-target-libssp: maybe-all-gcc
3589b69e 40574configure-target-newlib: maybe-all-gcc
3589b69e 40575configure-target-libgfortran: maybe-all-gcc
3589b69e 40576configure-target-libobjc: maybe-all-gcc
3589b69e 40577configure-target-libtermcap: maybe-all-gcc
3589b69e 40578configure-target-winsup: maybe-all-gcc
3589b69e 40579configure-target-libgloss: maybe-all-gcc
3589b69e 40580configure-target-libiberty: maybe-all-gcc
3589b69e 40581configure-target-gperf: maybe-all-gcc
3589b69e 40582configure-target-examples: maybe-all-gcc
3589b69e 40583configure-target-libffi: maybe-all-gcc
3589b69e 40584configure-target-libjava: maybe-all-gcc
3589b69e 40585configure-target-zlib: maybe-all-gcc
3589b69e 40586configure-target-boehm-gc: maybe-all-gcc
3589b69e 40587configure-target-qthreads: maybe-all-gcc
3589b69e 40588configure-target-rda: maybe-all-gcc
3589b69e 40589configure-target-libada: maybe-all-gcc
953ff289 40590configure-target-libgomp: maybe-all-gcc
cc11cc9b 40591@endif gcc-no-bootstrap
953ff289 40592
3589b69e
PB
40593
40594
40595configure-target-boehm-gc: maybe-all-target-newlib maybe-all-target-libgloss
40596
40597configure-target-gperf: maybe-all-target-newlib maybe-all-target-libgloss
40598configure-target-gperf: maybe-all-target-libstdc++-v3
40599
40600configure-target-libada: maybe-all-target-newlib maybe-all-target-libgloss
40601
40602configure-target-libgfortran: maybe-all-target-newlib maybe-all-target-libgloss
40603
40604configure-target-libffi: maybe-all-target-newlib maybe-all-target-libgloss
40605
40606configure-target-libjava: maybe-all-target-newlib maybe-all-target-libgloss
40607configure-target-libjava: maybe-all-target-libstdc++-v3
40608
4a9c436f
JW
40609configure-target-libmudflap: maybe-all-target-newlib maybe-all-target-libgloss
40610
3589b69e
PB
40611configure-target-libobjc: maybe-all-target-newlib maybe-all-target-libgloss
40612
b00d752c
RE
40613configure-target-libssp: maybe-all-target-newlib maybe-all-target-libgloss
40614
3589b69e
PB
40615configure-target-libstdc++-v3: maybe-all-target-newlib maybe-all-target-libgloss
40616
40617configure-target-zlib: maybe-all-target-newlib maybe-all-target-libgloss
40618
40619configure-target-examples: maybe-all-target-newlib maybe-all-target-libgloss
40620
40621configure-target-libtermcap: maybe-all-target-newlib maybe-all-target-libgloss
40622
40623configure-target-rda: maybe-all-target-newlib maybe-all-target-libgloss
40624
40625configure-target-winsup: maybe-all-target-newlib maybe-all-target-libgloss
40626
40627configure-target-qthreads: maybe-all-target-newlib maybe-all-target-libgloss
40628
40629
4977bab6
ZW
40630# There are two types of dependencies here: 'hard' dependencies, where one
40631# module simply won't build without the other; and 'soft' dependencies, where
40632# if the depended-on module is missing, the depending module will do without
40633# or find a substitute somewhere (perhaps installed). Soft dependencies
3589b69e 40634# are made here to depend on a 'maybe-' target. If you're not sure,
4977bab6
ZW
40635# it's safer to use a soft dependency.
40636
3589b69e
PB
40637
40638
40639
40640
2dfbef6d 40641
3589b69e
PB
40642# With all the machinery above in place, it is pretty easy to generate
40643# dependencies. Host dependencies are a bit more complex because we have
40644# to check for bootstrap/prebootstrap dependencies. To resolve
40645# prebootstrap dependencies, prebootstrap modules are gathered in
40646# a hash table.
23f6b2f9 40647all-build-bison: maybe-all-build-texinfo
3589b69e 40648all-build-byacc: maybe-all-build-texinfo
23f6b2f9 40649all-build-flex: maybe-all-build-texinfo
3589b69e
PB
40650all-build-flex: maybe-all-build-bison
40651all-build-flex: maybe-all-build-byacc
40652all-build-flex: maybe-all-build-m4
23f6b2f9 40653all-build-libiberty: maybe-all-build-texinfo
3589b69e 40654all-build-m4: maybe-all-build-texinfo
71b5d516 40655all-build-fixincludes: maybe-all-build-libiberty
3589b69e
PB
40656configure-gcc: maybe-configure-intl
40657
40658configure-stage1-gcc: maybe-configure-stage1-intl
40659configure-stage2-gcc: maybe-configure-stage2-intl
40660configure-stage3-gcc: maybe-configure-stage3-intl
40661configure-stage4-gcc: maybe-configure-stage4-intl
40662configure-stageprofile-gcc: maybe-configure-stageprofile-intl
40663configure-stagefeedback-gcc: maybe-configure-stagefeedback-intl
bcb28cf5
PB
40664configure-gcc: maybe-all-binutils
40665
40666configure-stage1-gcc: maybe-all-stage1-binutils
40667configure-stage2-gcc: maybe-all-stage2-binutils
40668configure-stage3-gcc: maybe-all-stage3-binutils
40669configure-stage4-gcc: maybe-all-stage4-binutils
40670configure-stageprofile-gcc: maybe-all-stageprofile-binutils
40671configure-stagefeedback-gcc: maybe-all-stagefeedback-binutils
40672configure-gcc: maybe-all-gas
40673
40674configure-stage1-gcc: maybe-all-stage1-gas
40675configure-stage2-gcc: maybe-all-stage2-gas
40676configure-stage3-gcc: maybe-all-stage3-gas
40677configure-stage4-gcc: maybe-all-stage4-gas
40678configure-stageprofile-gcc: maybe-all-stageprofile-gas
40679configure-stagefeedback-gcc: maybe-all-stagefeedback-gas
40680configure-gcc: maybe-all-ld
40681
40682configure-stage1-gcc: maybe-all-stage1-ld
40683configure-stage2-gcc: maybe-all-stage2-ld
40684configure-stage3-gcc: maybe-all-stage3-ld
40685configure-stage4-gcc: maybe-all-stage4-ld
40686configure-stageprofile-gcc: maybe-all-stageprofile-ld
40687configure-stagefeedback-gcc: maybe-all-stagefeedback-ld
3589b69e
PB
40688all-gcc: all-libiberty
40689
40690all-stage1-gcc: all-stage1-libiberty
40691all-stage2-gcc: all-stage2-libiberty
40692all-stage3-gcc: all-stage3-libiberty
40693all-stage4-gcc: all-stage4-libiberty
40694all-stageprofile-gcc: all-stageprofile-libiberty
40695all-stagefeedback-gcc: all-stagefeedback-libiberty
40696all-gcc: maybe-all-intl
40697
40698all-stage1-gcc: maybe-all-stage1-intl
40699all-stage2-gcc: maybe-all-stage2-intl
40700all-stage3-gcc: maybe-all-stage3-intl
40701all-stage4-gcc: maybe-all-stage4-intl
40702all-stageprofile-gcc: maybe-all-stageprofile-intl
40703all-stagefeedback-gcc: maybe-all-stagefeedback-intl
7c27e184
PB
40704all-gcc: maybe-all-build-texinfo
40705
40706all-stage1-gcc: maybe-all-build-texinfo
40707all-stage2-gcc: maybe-all-build-texinfo
40708all-stage3-gcc: maybe-all-build-texinfo
40709all-stage4-gcc: maybe-all-build-texinfo
40710all-stageprofile-gcc: maybe-all-build-texinfo
40711all-stagefeedback-gcc: maybe-all-build-texinfo
40712all-prebootstrap: maybe-all-build-texinfo
40713all-gcc: maybe-all-build-bison
40714
40715all-stage1-gcc: maybe-all-build-bison
40716all-stage2-gcc: maybe-all-build-bison
40717all-stage3-gcc: maybe-all-build-bison
40718all-stage4-gcc: maybe-all-build-bison
40719all-stageprofile-gcc: maybe-all-build-bison
40720all-stagefeedback-gcc: maybe-all-build-bison
40721all-prebootstrap: maybe-all-build-bison
40722all-gcc: maybe-all-build-byacc
40723
40724all-stage1-gcc: maybe-all-build-byacc
40725all-stage2-gcc: maybe-all-build-byacc
40726all-stage3-gcc: maybe-all-build-byacc
40727all-stage4-gcc: maybe-all-build-byacc
40728all-stageprofile-gcc: maybe-all-build-byacc
40729all-stagefeedback-gcc: maybe-all-build-byacc
40730all-prebootstrap: maybe-all-build-byacc
40731all-gcc: maybe-all-build-flex
40732
40733all-stage1-gcc: maybe-all-build-flex
40734all-stage2-gcc: maybe-all-build-flex
40735all-stage3-gcc: maybe-all-build-flex
40736all-stage4-gcc: maybe-all-build-flex
40737all-stageprofile-gcc: maybe-all-build-flex
40738all-stagefeedback-gcc: maybe-all-build-flex
40739all-prebootstrap: maybe-all-build-flex
71b5d516
PB
40740all-gcc: maybe-all-build-libiberty
40741
40742all-stage1-gcc: maybe-all-build-libiberty
40743all-stage2-gcc: maybe-all-build-libiberty
40744all-stage3-gcc: maybe-all-build-libiberty
40745all-stage4-gcc: maybe-all-build-libiberty
40746all-stageprofile-gcc: maybe-all-build-libiberty
40747all-stagefeedback-gcc: maybe-all-build-libiberty
40748all-prebootstrap: maybe-all-build-libiberty
40749all-gcc: maybe-all-build-fixincludes
40750
40751all-stage1-gcc: maybe-all-build-fixincludes
40752all-stage2-gcc: maybe-all-build-fixincludes
40753all-stage3-gcc: maybe-all-build-fixincludes
40754all-stage4-gcc: maybe-all-build-fixincludes
40755all-stageprofile-gcc: maybe-all-build-fixincludes
40756all-stagefeedback-gcc: maybe-all-build-fixincludes
40757all-prebootstrap: maybe-all-build-fixincludes
3589b69e
PB
40758all-gcc: maybe-all-zlib
40759
40760all-stage1-gcc: maybe-all-stage1-zlib
40761all-stage2-gcc: maybe-all-stage2-zlib
40762all-stage3-gcc: maybe-all-stage3-zlib
40763all-stage4-gcc: maybe-all-stage4-zlib
40764all-stageprofile-gcc: maybe-all-stageprofile-zlib
40765all-stagefeedback-gcc: maybe-all-stagefeedback-zlib
3589b69e
PB
40766all-gcc: all-libcpp
40767
40768all-stage1-gcc: all-stage1-libcpp
40769all-stage2-gcc: all-stage2-libcpp
40770all-stage3-gcc: all-stage3-libcpp
40771all-stage4-gcc: all-stage4-libcpp
40772all-stageprofile-gcc: all-stageprofile-libcpp
40773all-stagefeedback-gcc: all-stagefeedback-libcpp
a4b6c45a
BE
40774all-gcc: all-libdecnumber
40775
40776all-stage1-gcc: all-stage1-libdecnumber
40777all-stage2-gcc: all-stage2-libdecnumber
40778all-stage3-gcc: all-stage3-libdecnumber
40779all-stage4-gcc: all-stage4-libdecnumber
40780all-stageprofile-gcc: all-stageprofile-libdecnumber
40781all-stagefeedback-gcc: all-stagefeedback-libdecnumber
53c7ffe7
GK
40782all-gcc: maybe-all-libiberty
40783
40784all-stage1-gcc: maybe-all-stage1-libiberty
40785all-stage2-gcc: maybe-all-stage2-libiberty
40786all-stage3-gcc: maybe-all-stage3-libiberty
40787all-stage4-gcc: maybe-all-stage4-libiberty
40788all-stageprofile-gcc: maybe-all-stageprofile-libiberty
40789all-stagefeedback-gcc: maybe-all-stagefeedback-libiberty
40790all-gcc: maybe-all-fixincludes
848556c2 40791install-gcc: maybe-install-fixincludes
3589b69e
PB
40792configure-libcpp: configure-libiberty
40793
40794configure-stage1-libcpp: configure-stage1-libiberty
40795configure-stage2-libcpp: configure-stage2-libiberty
40796configure-stage3-libcpp: configure-stage3-libiberty
40797configure-stage4-libcpp: configure-stage4-libiberty
40798configure-stageprofile-libcpp: configure-stageprofile-libiberty
40799configure-stagefeedback-libcpp: configure-stagefeedback-libiberty
40800configure-libcpp: maybe-configure-intl
40801
40802configure-stage1-libcpp: maybe-configure-stage1-intl
40803configure-stage2-libcpp: maybe-configure-stage2-intl
40804configure-stage3-libcpp: maybe-configure-stage3-intl
40805configure-stage4-libcpp: maybe-configure-stage4-intl
40806configure-stageprofile-libcpp: maybe-configure-stageprofile-intl
40807configure-stagefeedback-libcpp: maybe-configure-stagefeedback-intl
40808all-libcpp: all-libiberty
40809
40810all-stage1-libcpp: all-stage1-libiberty
40811all-stage2-libcpp: all-stage2-libiberty
40812all-stage3-libcpp: all-stage3-libiberty
40813all-stage4-libcpp: all-stage4-libiberty
40814all-stageprofile-libcpp: all-stageprofile-libiberty
40815all-stagefeedback-libcpp: all-stagefeedback-libiberty
40816all-libcpp: maybe-all-intl
40817
40818all-stage1-libcpp: maybe-all-stage1-intl
40819all-stage2-libcpp: maybe-all-stage2-intl
40820all-stage3-libcpp: maybe-all-stage3-intl
40821all-stage4-libcpp: maybe-all-stage4-intl
40822all-stageprofile-libcpp: maybe-all-stageprofile-intl
40823all-stagefeedback-libcpp: maybe-all-stagefeedback-intl
53c7ffe7 40824all-fixincludes: maybe-all-libiberty
5395b47b 40825all-gnattools: maybe-all-target-libada
32845532 40826configure-gdb: maybe-configure-intl
3589b69e 40827configure-gdb: maybe-configure-sim
32845532 40828all-gdb: maybe-all-intl
3589b69e
PB
40829all-gdb: maybe-all-libiberty
40830all-gdb: maybe-all-opcodes
40831all-gdb: maybe-all-bfd
3589b69e 40832all-gdb: maybe-all-readline
7c27e184
PB
40833all-gdb: maybe-all-build-bison
40834all-gdb: maybe-all-build-byacc
3589b69e 40835all-gdb: maybe-all-sim
3589b69e
PB
40836configure-libgui: maybe-configure-tcl
40837configure-libgui: maybe-configure-tk
40838all-libgui: maybe-all-tcl
40839all-libgui: maybe-all-tk
40840all-libgui: maybe-all-itcl
4977bab6 40841configure-bfd: configure-libiberty
3589b69e
PB
40842
40843configure-stage1-bfd: configure-stage1-libiberty
40844configure-stage2-bfd: configure-stage2-libiberty
40845configure-stage3-bfd: configure-stage3-libiberty
40846configure-stage4-bfd: configure-stage4-libiberty
40847configure-stageprofile-bfd: configure-stageprofile-libiberty
40848configure-stagefeedback-bfd: configure-stagefeedback-libiberty
32845532
CD
40849configure-bfd: maybe-configure-intl
40850
40851configure-stage1-bfd: maybe-configure-stage1-intl
40852configure-stage2-bfd: maybe-configure-stage2-intl
40853configure-stage3-bfd: maybe-configure-stage3-intl
40854configure-stage4-bfd: maybe-configure-stage4-intl
40855configure-stageprofile-bfd: maybe-configure-stageprofile-intl
40856configure-stagefeedback-bfd: maybe-configure-stagefeedback-intl
3589b69e
PB
40857all-bfd: maybe-all-libiberty
40858
40859all-stage1-bfd: maybe-all-stage1-libiberty
40860all-stage2-bfd: maybe-all-stage2-libiberty
40861all-stage3-bfd: maybe-all-stage3-libiberty
40862all-stage4-bfd: maybe-all-stage4-libiberty
40863all-stageprofile-bfd: maybe-all-stageprofile-libiberty
40864all-stagefeedback-bfd: maybe-all-stagefeedback-libiberty
40865all-bfd: maybe-all-intl
40866
40867all-stage1-bfd: maybe-all-stage1-intl
40868all-stage2-bfd: maybe-all-stage2-intl
40869all-stage3-bfd: maybe-all-stage3-intl
40870all-stage4-bfd: maybe-all-stage4-intl
40871all-stageprofile-bfd: maybe-all-stageprofile-intl
40872all-stagefeedback-bfd: maybe-all-stagefeedback-intl
32845532
CD
40873configure-binutils: maybe-configure-intl
40874
40875configure-stage1-binutils: maybe-configure-stage1-intl
40876configure-stage2-binutils: maybe-configure-stage2-intl
40877configure-stage3-binutils: maybe-configure-stage3-intl
40878configure-stage4-binutils: maybe-configure-stage4-intl
40879configure-stageprofile-binutils: maybe-configure-stageprofile-intl
40880configure-stagefeedback-binutils: maybe-configure-stagefeedback-intl
3589b69e
PB
40881all-binutils: maybe-all-libiberty
40882
40883all-stage1-binutils: maybe-all-stage1-libiberty
40884all-stage2-binutils: maybe-all-stage2-libiberty
40885all-stage3-binutils: maybe-all-stage3-libiberty
40886all-stage4-binutils: maybe-all-stage4-libiberty
40887all-stageprofile-binutils: maybe-all-stageprofile-libiberty
40888all-stagefeedback-binutils: maybe-all-stagefeedback-libiberty
40889all-binutils: maybe-all-opcodes
40890
40891all-stage1-binutils: maybe-all-stage1-opcodes
40892all-stage2-binutils: maybe-all-stage2-opcodes
40893all-stage3-binutils: maybe-all-stage3-opcodes
40894all-stage4-binutils: maybe-all-stage4-opcodes
40895all-stageprofile-binutils: maybe-all-stageprofile-opcodes
40896all-stagefeedback-binutils: maybe-all-stagefeedback-opcodes
40897all-binutils: maybe-all-bfd
40898
40899all-stage1-binutils: maybe-all-stage1-bfd
40900all-stage2-binutils: maybe-all-stage2-bfd
40901all-stage3-binutils: maybe-all-stage3-bfd
40902all-stage4-binutils: maybe-all-stage4-bfd
40903all-stageprofile-binutils: maybe-all-stageprofile-bfd
40904all-stagefeedback-binutils: maybe-all-stagefeedback-bfd
7c27e184
PB
40905all-binutils: maybe-all-build-flex
40906
40907all-stage1-binutils: maybe-all-build-flex
40908all-stage2-binutils: maybe-all-build-flex
40909all-stage3-binutils: maybe-all-build-flex
40910all-stage4-binutils: maybe-all-build-flex
40911all-stageprofile-binutils: maybe-all-build-flex
40912all-stagefeedback-binutils: maybe-all-build-flex
40913all-prebootstrap: maybe-all-build-flex
40914all-binutils: maybe-all-build-bison
40915
40916all-stage1-binutils: maybe-all-build-bison
40917all-stage2-binutils: maybe-all-build-bison
40918all-stage3-binutils: maybe-all-build-bison
40919all-stage4-binutils: maybe-all-build-bison
40920all-stageprofile-binutils: maybe-all-build-bison
40921all-stagefeedback-binutils: maybe-all-build-bison
40922all-prebootstrap: maybe-all-build-bison
40923all-binutils: maybe-all-build-byacc
40924
40925all-stage1-binutils: maybe-all-build-byacc
40926all-stage2-binutils: maybe-all-build-byacc
40927all-stage3-binutils: maybe-all-build-byacc
40928all-stage4-binutils: maybe-all-build-byacc
40929all-stageprofile-binutils: maybe-all-build-byacc
40930all-stagefeedback-binutils: maybe-all-build-byacc
40931all-prebootstrap: maybe-all-build-byacc
3589b69e
PB
40932all-binutils: maybe-all-intl
40933
40934all-stage1-binutils: maybe-all-stage1-intl
40935all-stage2-binutils: maybe-all-stage2-intl
40936all-stage3-binutils: maybe-all-stage3-intl
40937all-stage4-binutils: maybe-all-stage4-intl
40938all-stageprofile-binutils: maybe-all-stageprofile-intl
40939all-stagefeedback-binutils: maybe-all-stagefeedback-intl
4977bab6 40940install-binutils: maybe-install-opcodes
c3969745 40941install-opcodes: maybe-install-bfd
32845532
CD
40942configure-gas: maybe-configure-intl
40943
40944configure-stage1-gas: maybe-configure-stage1-intl
40945configure-stage2-gas: maybe-configure-stage2-intl
40946configure-stage3-gas: maybe-configure-stage3-intl
40947configure-stage4-gas: maybe-configure-stage4-intl
40948configure-stageprofile-gas: maybe-configure-stageprofile-intl
40949configure-stagefeedback-gas: maybe-configure-stagefeedback-intl
3589b69e
PB
40950all-gas: maybe-all-libiberty
40951
40952all-stage1-gas: maybe-all-stage1-libiberty
40953all-stage2-gas: maybe-all-stage2-libiberty
40954all-stage3-gas: maybe-all-stage3-libiberty
40955all-stage4-gas: maybe-all-stage4-libiberty
40956all-stageprofile-gas: maybe-all-stageprofile-libiberty
40957all-stagefeedback-gas: maybe-all-stagefeedback-libiberty
40958all-gas: maybe-all-opcodes
40959
40960all-stage1-gas: maybe-all-stage1-opcodes
40961all-stage2-gas: maybe-all-stage2-opcodes
40962all-stage3-gas: maybe-all-stage3-opcodes
40963all-stage4-gas: maybe-all-stage4-opcodes
40964all-stageprofile-gas: maybe-all-stageprofile-opcodes
40965all-stagefeedback-gas: maybe-all-stagefeedback-opcodes
40966all-gas: maybe-all-bfd
40967
40968all-stage1-gas: maybe-all-stage1-bfd
40969all-stage2-gas: maybe-all-stage2-bfd
40970all-stage3-gas: maybe-all-stage3-bfd
40971all-stage4-gas: maybe-all-stage4-bfd
40972all-stageprofile-gas: maybe-all-stageprofile-bfd
40973all-stagefeedback-gas: maybe-all-stagefeedback-bfd
40974all-gas: maybe-all-intl
40975
40976all-stage1-gas: maybe-all-stage1-intl
40977all-stage2-gas: maybe-all-stage2-intl
40978all-stage3-gas: maybe-all-stage3-intl
40979all-stage4-gas: maybe-all-stage4-intl
40980all-stageprofile-gas: maybe-all-stageprofile-intl
40981all-stagefeedback-gas: maybe-all-stagefeedback-intl
32845532 40982configure-gprof: maybe-configure-intl
3589b69e
PB
40983all-gprof: maybe-all-libiberty
40984all-gprof: maybe-all-bfd
40985all-gprof: maybe-all-opcodes
40986all-gprof: maybe-all-intl
32845532
CD
40987configure-ld: maybe-configure-intl
40988
40989configure-stage1-ld: maybe-configure-stage1-intl
40990configure-stage2-ld: maybe-configure-stage2-intl
40991configure-stage3-ld: maybe-configure-stage3-intl
40992configure-stage4-ld: maybe-configure-stage4-intl
40993configure-stageprofile-ld: maybe-configure-stageprofile-intl
40994configure-stagefeedback-ld: maybe-configure-stagefeedback-intl
3589b69e
PB
40995all-ld: maybe-all-libiberty
40996
40997all-stage1-ld: maybe-all-stage1-libiberty
40998all-stage2-ld: maybe-all-stage2-libiberty
40999all-stage3-ld: maybe-all-stage3-libiberty
41000all-stage4-ld: maybe-all-stage4-libiberty
41001all-stageprofile-ld: maybe-all-stageprofile-libiberty
41002all-stagefeedback-ld: maybe-all-stagefeedback-libiberty
41003all-ld: maybe-all-bfd
41004
41005all-stage1-ld: maybe-all-stage1-bfd
41006all-stage2-ld: maybe-all-stage2-bfd
41007all-stage3-ld: maybe-all-stage3-bfd
41008all-stage4-ld: maybe-all-stage4-bfd
41009all-stageprofile-ld: maybe-all-stageprofile-bfd
41010all-stagefeedback-ld: maybe-all-stagefeedback-bfd
41011all-ld: maybe-all-opcodes
41012
41013all-stage1-ld: maybe-all-stage1-opcodes
41014all-stage2-ld: maybe-all-stage2-opcodes
41015all-stage3-ld: maybe-all-stage3-opcodes
41016all-stage4-ld: maybe-all-stage4-opcodes
41017all-stageprofile-ld: maybe-all-stageprofile-opcodes
41018all-stagefeedback-ld: maybe-all-stagefeedback-opcodes
7c27e184
PB
41019all-ld: maybe-all-build-bison
41020
41021all-stage1-ld: maybe-all-build-bison
41022all-stage2-ld: maybe-all-build-bison
41023all-stage3-ld: maybe-all-build-bison
41024all-stage4-ld: maybe-all-build-bison
41025all-stageprofile-ld: maybe-all-build-bison
41026all-stagefeedback-ld: maybe-all-build-bison
41027all-prebootstrap: maybe-all-build-bison
41028all-ld: maybe-all-build-byacc
41029
41030all-stage1-ld: maybe-all-build-byacc
41031all-stage2-ld: maybe-all-build-byacc
41032all-stage3-ld: maybe-all-build-byacc
41033all-stage4-ld: maybe-all-build-byacc
41034all-stageprofile-ld: maybe-all-build-byacc
41035all-stagefeedback-ld: maybe-all-build-byacc
41036all-prebootstrap: maybe-all-build-byacc
41037all-ld: maybe-all-build-flex
41038
41039all-stage1-ld: maybe-all-build-flex
41040all-stage2-ld: maybe-all-build-flex
41041all-stage3-ld: maybe-all-build-flex
41042all-stage4-ld: maybe-all-build-flex
41043all-stageprofile-ld: maybe-all-build-flex
41044all-stagefeedback-ld: maybe-all-build-flex
41045all-prebootstrap: maybe-all-build-flex
3589b69e
PB
41046all-ld: maybe-all-intl
41047
41048all-stage1-ld: maybe-all-stage1-intl
41049all-stage2-ld: maybe-all-stage2-intl
41050all-stage3-ld: maybe-all-stage3-intl
41051all-stage4-ld: maybe-all-stage4-intl
41052all-stageprofile-ld: maybe-all-stageprofile-intl
41053all-stagefeedback-ld: maybe-all-stagefeedback-intl
41054all-opcodes: maybe-all-bfd
41055
41056all-stage1-opcodes: maybe-all-stage1-bfd
41057all-stage2-opcodes: maybe-all-stage2-bfd
41058all-stage3-opcodes: maybe-all-stage3-bfd
41059all-stage4-opcodes: maybe-all-stage4-bfd
41060all-stageprofile-opcodes: maybe-all-stageprofile-bfd
41061all-stagefeedback-opcodes: maybe-all-stagefeedback-bfd
41062all-opcodes: maybe-all-libiberty
41063
41064all-stage1-opcodes: maybe-all-stage1-libiberty
41065all-stage2-opcodes: maybe-all-stage2-libiberty
41066all-stage3-opcodes: maybe-all-stage3-libiberty
41067all-stage4-opcodes: maybe-all-stage4-libiberty
41068all-stageprofile-opcodes: maybe-all-stageprofile-libiberty
41069all-stagefeedback-opcodes: maybe-all-stagefeedback-libiberty
41070all-dejagnu: maybe-all-tcl
41071all-dejagnu: maybe-all-expect
41072all-dejagnu: maybe-all-tk
41073configure-expect: maybe-configure-tcl
41074configure-expect: maybe-configure-tk
41075all-expect: maybe-all-tcl
41076all-expect: maybe-all-tk
41077configure-itcl: maybe-configure-tcl
41078configure-itcl: maybe-configure-tk
41079all-itcl: maybe-all-tcl
41080all-itcl: maybe-all-tk
4977bab6 41081install-itcl: maybe-install-tcl
4977bab6
ZW
41082configure-tk: maybe-configure-tcl
41083all-tk: maybe-all-tcl
3589b69e
PB
41084all-sid: maybe-all-libiberty
41085all-sid: maybe-all-bfd
41086all-sid: maybe-all-opcodes
41087all-sid: maybe-all-tcl
41088all-sid: maybe-all-tk
41089install-sid: maybe-install-tcl
41090install-sid: maybe-install-tk
32845532
CD
41091configure-sim: maybe-configure-intl
41092all-sim: maybe-all-intl
3589b69e
PB
41093all-sim: maybe-all-libiberty
41094all-sim: maybe-all-bfd
41095all-sim: maybe-all-opcodes
41096all-sim: maybe-all-readline
41097all-sim: maybe-configure-gdb
41098all-fastjar: maybe-all-zlib
7c27e184 41099all-fastjar: maybe-all-build-texinfo
3589b69e
PB
41100all-fastjar: maybe-all-libiberty
41101all-autoconf: maybe-all-m4
7c27e184 41102all-autoconf: maybe-all-build-texinfo
3589b69e 41103all-automake: maybe-all-m4
7c27e184 41104all-automake: maybe-all-build-texinfo
3589b69e
PB
41105all-automake: maybe-all-autoconf
41106all-bison: maybe-all-intl
7c27e184 41107all-bison: maybe-all-build-texinfo
3589b69e 41108all-diff: maybe-all-intl
7c27e184 41109all-diff: maybe-all-build-texinfo
3589b69e 41110all-fileutils: maybe-all-intl
7c27e184
PB
41111all-fileutils: maybe-all-build-texinfo
41112all-flex: maybe-all-build-bison
41113all-flex: maybe-all-build-byacc
3589b69e
PB
41114all-flex: maybe-all-intl
41115all-flex: maybe-all-m4
7c27e184 41116all-flex: maybe-all-build-texinfo
3589b69e
PB
41117all-gzip: maybe-all-intl
41118all-gzip: maybe-all-zlib
7c27e184 41119all-gzip: maybe-all-build-texinfo
3589b69e 41120all-hello: maybe-all-intl
7c27e184 41121all-hello: maybe-all-build-texinfo
3589b69e 41122all-m4: maybe-all-intl
7c27e184 41123all-m4: maybe-all-build-texinfo
3589b69e 41124all-make: maybe-all-intl
7c27e184
PB
41125all-make: maybe-all-build-texinfo
41126all-patch: maybe-all-build-texinfo
41127all-make: maybe-all-build-texinfo
4977bab6 41128all-prms: maybe-all-libiberty
7c27e184
PB
41129all-recode: maybe-all-build-texinfo
41130all-sed: maybe-all-build-texinfo
4977bab6 41131all-send-pr: maybe-all-prms
7c27e184
PB
41132all-tar: maybe-all-build-texinfo
41133all-uudecode: maybe-all-build-texinfo
3589b69e 41134configure-target-boehm-gc: maybe-configure-target-qthreads
4977bab6 41135configure-target-fastjar: maybe-configure-target-zlib
3589b69e
PB
41136all-target-fastjar: maybe-all-target-zlib
41137all-target-fastjar: maybe-all-target-libiberty
41138configure-target-libjava: maybe-configure-target-zlib
41139configure-target-libjava: maybe-configure-target-boehm-gc
41140configure-target-libjava: maybe-configure-target-qthreads
41141configure-target-libjava: maybe-configure-target-libffi
41142all-target-libjava: maybe-all-fastjar
41143all-target-libjava: maybe-all-target-zlib
41144all-target-libjava: maybe-all-target-boehm-gc
41145all-target-libjava: maybe-all-target-qthreads
41146all-target-libjava: maybe-all-target-libffi
7cd0cf9c 41147configure-target-libobjc: maybe-configure-target-boehm-gc
4977bab6 41148all-target-libobjc: maybe-all-target-libiberty
7cd0cf9c 41149all-target-libobjc: maybe-all-target-boehm-gc
4977bab6 41150all-target-libstdc++-v3: maybe-all-target-libiberty
4977bab6 41151all-target-libgloss: maybe-configure-target-newlib
3589b69e
PB
41152all-target-winsup: maybe-all-target-libiberty
41153all-target-winsup: maybe-all-target-libtermcap
41154
41155
7c27e184
PB
41156# Non-toplevel bootstrap rules must depend on several packages, to be built
41157# before gcc. Another wart that will go away, hopefully soon.
3589b69e
PB
41158@if gcc-no-bootstrap
41159
41160all-prebootstrap: maybe-all-bfd
41161all-prebootstrap: maybe-all-opcodes
41162all-prebootstrap: maybe-all-binutils
41163all-prebootstrap: maybe-all-gas
41164all-prebootstrap: maybe-all-intl
41165all-prebootstrap: maybe-all-ld
41166all-prebootstrap: maybe-all-libcpp
a4b6c45a 41167all-prebootstrap: maybe-all-libdecnumber
3589b69e
PB
41168all-prebootstrap: maybe-all-libiberty
41169all-prebootstrap: maybe-all-zlib
41170@endif gcc-no-bootstrap
41171
ef9db8d5 41172CONFIGURE_GDB_TK = @CONFIGURE_GDB_TK@
3589b69e 41173GDB_TK = @GDB_TK@
ef9db8d5
DJ
41174INSTALL_GDB_TK = @INSTALL_GDB_TK@
41175configure-gdb: $(CONFIGURE_GDB_TK)
3589b69e 41176all-gdb: $(gdbnlmrequirements) $(GDB_TK)
ef9db8d5 41177install-gdb: $(INSTALL_GDB_TK)
6599da04 41178
4977bab6 41179# Serialization dependencies. Host configures don't work well in parallel to
05750653 41180# each other, due to contention over config.cache. Target configures and
4977bab6
ZW
41181# build configures are similar.
41182@serialization_dependencies@
6599da04 41183
4977bab6
ZW
41184# --------------------------------
41185# Regenerating top level configury
41186# --------------------------------
6599da04 41187
6f950405 41188# Rebuilding Makefile.in, using autogen.
e245b0ea 41189AUTOGEN = autogen
ee03dc5e 41190$(srcdir)/Makefile.in: @MAINT@ $(srcdir)/Makefile.tpl $(srcdir)/Makefile.def
e245b0ea 41191 cd $(srcdir) && $(AUTOGEN) Makefile.def
6f950405 41192
671aa708 41193# Rebuilding Makefile.
e245b0ea
AO
41194Makefile: $(srcdir)/Makefile.in config.status
41195 CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
41196
191dd2c9 41197config.status: configure
e75f9147 41198 CONFIG_SHELL="$(SHELL)" $(SHELL) ./config.status --recheck
6599da04 41199
671aa708 41200# Rebuilding configure.
e245b0ea 41201AUTOCONF = autoconf
ee03dc5e 41202$(srcdir)/configure: @MAINT@ $(srcdir)/configure.in $(srcdir)/config/acx.m4
e245b0ea 41203 cd $(srcdir) && $(AUTOCONF)
6599da04 41204
93c834b7
NN
41205# ------------------------------
41206# Special directives to GNU Make
41207# ------------------------------
41208
93c834b7
NN
41209# Don't pass command-line variables to submakes.
41210.NOEXPORT:
41211MAKEOVERRIDES=
41212
6599da04 41213# end of Makefile.in