]> git.ipfire.org Git - thirdparty/gcc.git/blame - Makefile.in
Makefile.tpl (configure-stageN-MODULE): Pass --with-build-libsubdir for stages after...
[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/ \
ec6c7392
PB
180 -B$(build_tooldir)/bin/"; export CC_FOR_BUILD; \
181 CFLAGS="$(BOOT_CFLAGS)"; export CFLAGS; \
182 LDFLAGS="$(BOOT_LDFLAGS)"; export LDFLAGS;
df0f0674 183
df0f0674
NN
184# Target libraries are put under this directory:
185TARGET_SUBDIR = @target_subdir@
186# This is set by the configure script to the arguments to use when configuring
187# directories built for the target.
25b42232 188TARGET_CONFIGARGS = @target_configargs@ --with-target-subdir="$(TARGET_SUBDIR)"
4fc4dd12 189# This is the list of variables to export in the environment when
23f6b2f9 190# configuring subdirectories for the host system.
4fc4dd12 191BASE_TARGET_EXPORTS = \
23f6b2f9 192 $(BASE_EXPORTS) \
4fc4dd12 193 AR="$(AR_FOR_TARGET)"; export AR; \
2abefe3d 194 AS="$(COMPILER_AS_FOR_TARGET)"; export AS; \
4fc4dd12
DJ
195 CC="$(CC_FOR_TARGET)"; export CC; \
196 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
197 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
e7daab31 198 CPPFLAGS="$(CPPFLAGS_FOR_TARGET)"; export CPPFLAGS; \
4fc4dd12
DJ
199 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
200 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
201 GFORTRAN="$(GFORTRAN_FOR_TARGET)"; export GFORTRAN; \
202 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
2abefe3d 203 LD="$(COMPILER_LD_FOR_TARGET)"; export LD; \
4fc4dd12 204 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
040b1c5a 205 LIPO="$(LIPO_FOR_TARGET)"; export LIPO; \
2abefe3d 206 NM="$(COMPILER_NM_FOR_TARGET)"; export NM; \
d739199a 207 OBJDUMP="$(OBJDUMP_FOR_TARGET)"; export OBJDUMP; \
4fc4dd12 208 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
040b1c5a 209 STRIP="$(STRIP_FOR_TARGET)"; export STRIP; \
4c4a5bbc 210 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
0bff65e7 211 $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR);
4fc4dd12
DJ
212
213RAW_CXX_TARGET_EXPORTS = \
214 $(BASE_TARGET_EXPORTS) \
215 CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \
216 CXX="$(RAW_CXX_FOR_TARGET)"; export CXX;
217
218NORMAL_TARGET_EXPORTS = \
219 $(BASE_TARGET_EXPORTS) \
220 CXX="$(CXX_FOR_TARGET)"; export CXX;
df0f0674 221
6de9cd9a
DN
222# Where to find GMP
223HOST_GMPLIBS = @gmplibs@
224HOST_GMPINC = @gmpinc@
225
df0f0674
NN
226# ----------------------------------------------
227# Programs producing files for the BUILD machine
228# ----------------------------------------------
229
230SHELL = @config_shell@
231
232# pwd command to use. Allow user to override default by setting PWDCMD in
233# the environment to account for automounters. The make variable must not
234# be called PWDCMD, otherwise the value set here is passed to make
235# subprocesses and overrides the setting from the user's environment.
8c90b13a
L
236# Don't use PWD since it is a common shell environment variable and we
237# don't want to corrupt it.
238PWD_COMMAND = $${PWDCMD-pwd}
df0f0674
NN
239
240# compilers to use to create programs which must be run in the build
241# environment.
242CC_FOR_BUILD = @CC_FOR_BUILD@
6691a79e 243CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
df0f0674
NN
244
245CXX_FOR_BUILD = $(CXX)
246
247# Special variables passed down in EXTRA_GCC_FLAGS. They are defined
248# here so that they can be overridden by Makefile fragments.
df0f0674
NN
249BUILD_PREFIX = @BUILD_PREFIX@
250BUILD_PREFIX_1 = @BUILD_PREFIX_1@
6599da04 251
45f366ab
PB
252# Flags to pass to stage2 and later makes. They are defined
253# here so that they can be overridden by Makefile fragments.
254BOOT_CFLAGS= -g -O2
d19bca38 255BOOT_LDFLAGS=
45f366ab 256
2abefe3d
PB
257BISON = @BISON@
258YACC = @YACC@
259FLEX = @FLEX@
260LEX = @LEX@
261M4 = @M4@
262MAKEINFO = @MAKEINFO@
263EXPECT = @EXPECT@
264RUNTEST = @RUNTEST@
6599da04
JM
265
266# This just becomes part of the MAKEINFO definition passed down to
267# sub-makes. It lets flags be given on the command line while still
268# using the makeinfo from the object tree.
2f50999f
GP
269# (Default to avoid splitting info files by setting the threshold high.)
270MAKEINFOFLAGS = --split-size=5000000
6599da04 271
df0f0674
NN
272# ---------------------------------------------
273# Programs producing files for the HOST machine
274# ---------------------------------------------
6599da04 275
df0f0674 276AS = @AS@
df0f0674
NN
277AR = @AR@
278AR_FLAGS = rc
df0f0674 279CC = @CC@
df0f0674 280CXX = @CXX@
df0f0674 281DLLTOOL = @DLLTOOL@
df0f0674 282LD = @LD@
2abefe3d
PB
283LIPO = @LIPO@
284NM = @NM@
2d309510 285OBJDUMP = @OBJDUMP@
df0f0674 286RANLIB = @RANLIB@
2abefe3d 287STRIP = @STRIP@
df0f0674 288WINDRES = @WINDRES@
6599da04 289
2abefe3d
PB
290CFLAGS = @CFLAGS@
291LDFLAGS =
292LIBCFLAGS = $(CFLAGS)
293CXXFLAGS = @CXXFLAGS@
294LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
05750653 295PICFLAG =
df0f0674
NN
296
297# -----------------------------------------------
298# Programs producing files for the TARGET machine
299# -----------------------------------------------
ce8e06b1 300
ec0461f6 301FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@
6599da04 302
df0f0674 303AR_FOR_TARGET=@AR_FOR_TARGET@
4977bab6 304AS_FOR_TARGET=@AS_FOR_TARGET@
4de997d1 305CC_FOR_TARGET=$(STAGE_CC_WRAPPER) @CC_FOR_TARGET@ $(FLAGS_FOR_TARGET)
4de997d1 306
df0f0674
NN
307# If GCC_FOR_TARGET is not overriden on the command line, then this
308# variable is passed down to the gcc Makefile, where it is used to
309# build libgcc2.a. We define it here so that it can itself be
310# overridden on the command line.
2abefe3d 311GCC_FOR_TARGET=$(STAGE_CC_WRAPPER) @GCC_FOR_TARGET@ $(FLAGS_FOR_TARGET)
4de997d1 312CXX_FOR_TARGET=$(STAGE_CC_WRAPPER) @CXX_FOR_TARGET@ $(FLAGS_FOR_TARGET)
4de997d1 313RAW_CXX_FOR_TARGET=$(STAGE_CC_WRAPPER) @RAW_CXX_FOR_TARGET@ $(FLAGS_FOR_TARGET)
4de997d1 314GCJ_FOR_TARGET=$(STAGE_CC_WRAPPER) @GCJ_FOR_TARGET@ $(FLAGS_FOR_TARGET)
4de997d1 315GFORTRAN_FOR_TARGET=$(STAGE_CC_WRAPPER) @GFORTRAN_FOR_TARGET@ $(FLAGS_FOR_TARGET)
4977bab6 316DLLTOOL_FOR_TARGET=@DLLTOOL_FOR_TARGET@
df0f0674 317LD_FOR_TARGET=@LD_FOR_TARGET@
df0f0674 318
040b1c5a 319LIPO_FOR_TARGET=@LIPO_FOR_TARGET@
df0f0674 320NM_FOR_TARGET=@NM_FOR_TARGET@
d739199a 321OBJDUMP_FOR_TARGET=@OBJDUMP_FOR_TARGET@
4977bab6 322RANLIB_FOR_TARGET=@RANLIB_FOR_TARGET@
040b1c5a 323STRIP_FOR_TARGET=@STRIP_FOR_TARGET@
df0f0674 324WINDRES_FOR_TARGET=@WINDRES_FOR_TARGET@
6599da04 325
2abefe3d
PB
326COMPILER_AS_FOR_TARGET=@COMPILER_AS_FOR_TARGET@
327COMPILER_LD_FOR_TARGET=@COMPILER_LD_FOR_TARGET@
328COMPILER_NM_FOR_TARGET=@COMPILER_NM_FOR_TARGET@
329
330# During gcc bootstrap, if we use some random cc for stage1 then
331# CFLAGS will be just -g. We want to ensure that TARGET libraries
332# (which we know are built with gcc) are built with optimizations so
333# prepend -O2 when setting CFLAGS_FOR_TARGET.
334CFLAGS_FOR_TARGET = -O2 $(CFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET)
335SYSROOT_CFLAGS_FOR_TARGET = @SYSROOT_CFLAGS_FOR_TARGET@
336CXXFLAGS_FOR_TARGET = $(CXXFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET)
337LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
338LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
339LDFLAGS_FOR_TARGET =
05750653 340PICFLAG_FOR_TARGET =
df0f0674
NN
341
342# ------------------------------------
343# Miscellaneous targets and flag lists
344# ------------------------------------
345
5d4a5ee6
JL
346# The first rule in the file had better be this one. Don't put any above it.
347# This lives here to allow makefile fragments to contain dependencies.
1061f99e 348all:
5d4a5ee6 349
6599da04 350#### host and target specific makefile fragments come in here.
671aa708
NN
351@target_makefile_frag@
352@alphaieee_frag@
353@ospace_frag@
354@host_makefile_frag@
6599da04
JM
355###
356
0bff65e7
PB
357# This is the list of directories that may be needed in RPATH_ENVVAR
358# so that prorgams built for the target machine work.
c31202cd 359TARGET_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
360
361@if target-libstdc++-v3
362TARGET_LIB_PATH_libstdc++-v3 = $$r/$(TARGET_SUBDIR)/libstdc++-v3/.libs:
363@endif target-libstdc++-v3
364
365@if target-libmudflap
366TARGET_LIB_PATH_libmudflap = $$r/$(TARGET_SUBDIR)/libmudflap/.libs:
367@endif target-libmudflap
368
77008252
JJ
369@if target-libssp
370TARGET_LIB_PATH_libssp = $$r/$(TARGET_SUBDIR)/libssp/.libs:
371@endif target-libssp
372
953ff289
DN
373@if target-libgomp
374TARGET_LIB_PATH_libgomp = $$r/$(TARGET_SUBDIR)/libgomp/.libs:
375@endif target-libgomp
376
0bff65e7
PB
377
378
379# This is the list of directories that may be needed in RPATH_ENVVAR
380# so that programs built for the host machine work.
381HOST_LIB_PATH = $(HOST_LIB_PATH_bfd)$(HOST_LIB_PATH_opcodes)
382
383# Define HOST_LIB_PATH_gcc here, for the sake of TARGET_LIB_PATH, ouch
384@if gcc
385HOST_LIB_PATH_gcc = $$r/$(HOST_SUBDIR)/gcc:$$r/$(HOST_SUBDIR)/prev-gcc:
386@endif gcc
387
388
389@if bfd
390HOST_LIB_PATH_bfd = \
e9a54b07 391 $$r/$(HOST_SUBDIR)/bfd/.libs:$$r/$(HOST_SUBDIR)/prev-bfd/.libs:
0bff65e7
PB
392@endif bfd
393
394@if opcodes
395HOST_LIB_PATH_opcodes = \
e9a54b07 396 $$r/$(HOST_SUBDIR)/opcodes/.libs:$$r/$(HOST_SUBDIR)/prev-opcodes/.libs:
0bff65e7
PB
397@endif opcodes
398
399
6599da04 400# Flags to pass down to all sub-makes.
6599da04 401BASE_FLAGS_TO_PASS = \
3fbe8e4a 402 "DESTDIR=$(DESTDIR)" \
5d4a5ee6 403 "RPATH_ENVVAR=$(RPATH_ENVVAR)" \
81241b5e 404 "TARGET_SUBDIR=$(TARGET_SUBDIR)" \
632933d5
PB
405 "bindir=$(bindir)" \
406 "datadir=$(datadir)" \
407 "exec_prefix=$(exec_prefix)" \
408 "includedir=$(includedir)" \
65d6e994
CD
409 "datarootdir=$(datarootdir)" \
410 "docdir=$(docdir)" \
632933d5 411 "infodir=$(infodir)" \
65d6e994 412 "htmldir=$(htmldir)" \
632933d5
PB
413 "libdir=$(libdir)" \
414 "libexecdir=$(libexecdir)" \
5bea4a03 415 "lispdir=$(lispdir)" \
632933d5
PB
416 "localstatedir=$(localstatedir)" \
417 "mandir=$(mandir)" \
5d4a5ee6 418 "oldincludedir=$(oldincludedir)" \
632933d5
PB
419 "prefix=$(prefix)" \
420 "sbindir=$(sbindir)" \
421 "sharedstatedir=$(sharedstatedir)" \
422 "sysconfdir=$(sysconfdir)" \
d0a8352c 423 "tooldir=$(tooldir)" \
5cb95c7a 424 "build_tooldir=$(build_tooldir)" \
11405c93
NN
425 "target_alias=$(target_alias)" \
426 "BISON=$(BISON)" \
427 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
452190fb 428 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
11405c93
NN
429 "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
430 "EXPECT=$(EXPECT)" \
23f6b2f9 431 "FLEX=$(FLEX)" \
11405c93
NN
432 "INSTALL=$(INSTALL)" \
433 "INSTALL_DATA=$(INSTALL_DATA)" \
434 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
435 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
436 "LEX=$(LEX)" \
437 "M4=$(M4)" \
438 "MAKE=$(MAKE)" \
439 "RUNTEST=$(RUNTEST)" \
440 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
441 "SHELL=$(SHELL)" \
442 "YACC=$(YACC)" \
cc11cc9b 443 "`echo 'ADAFLAGS=$(ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
11405c93 444 "AR_FLAGS=$(AR_FLAGS)" \
cc11cc9b 445 "`echo 'BOOT_ADAFLAGS=$(BOOT_ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
d19bca38
PB
446 "BOOT_CFLAGS=$(BOOT_CFLAGS)" \
447 "BOOT_LDFLAGS=$(BOOT_LDFLAGS)" \
11405c93
NN
448 "CFLAGS=$(CFLAGS)" \
449 "CXXFLAGS=$(CXXFLAGS)" \
450 "LDFLAGS=$(LDFLAGS)" \
451 "LIBCFLAGS=$(LIBCFLAGS)" \
452 "LIBCXXFLAGS=$(LIBCXXFLAGS)" \
2d309510
PB
453 "STAGE1_CFLAGS=$(STAGE1_CFLAGS)" \
454 "STAGE1_LANGUAGES=$(STAGE1_LANGUAGES)" \
11405c93
NN
455 "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
456 "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
457 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
458 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
e7daab31 459 "CPPFLAGS_FOR_TARGET=$(CPPFLAGS_FOR_TARGET)" \
11405c93
NN
460 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
461 "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
462 "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
463 "GCJ_FOR_TARGET=$(GCJ_FOR_TARGET)" \
6de9cd9a 464 "GFORTRAN_FOR_TARGET=$(GFORTRAN_FOR_TARGET)" \
11405c93 465 "LD_FOR_TARGET=$(LD_FOR_TARGET)" \
040b1c5a 466 "LIPO_FOR_TARGET=$(LIPO_FOR_TARGET)" \
e3791243 467 "LDFLAGS_FOR_TARGET=$(LDFLAGS_FOR_TARGET)" \
11405c93
NN
468 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
469 "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \
470 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
d739199a 471 "OBJDUMP_FOR_TARGET=$(OBJDUMP_FOR_TARGET)" \
11405c93 472 "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
040b1c5a 473 "STRIP_FOR_TARGET=$(STRIP_FOR_TARGET)" \
11405c93 474 "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \
cc11cc9b 475 "`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
2d309510 476 "LEAN=$(LEAN)" \
e75f9147 477 "CONFIG_SHELL=$(SHELL)" \
05750653 478 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)"
6599da04 479
4de997d1
PB
480# We leave this in just in case, but it is not needed anymore.
481RECURSE_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS)
ad6717df 482
6599da04
JM
483# Flags to pass down to most sub-makes, in which we're building with
484# the host environment.
6599da04
JM
485EXTRA_HOST_FLAGS = \
486 'AR=$(AR)' \
487 'AS=$(AS)' \
488 'CC=$(CC)' \
489 'CXX=$(CXX)' \
490 'DLLTOOL=$(DLLTOOL)' \
491 'LD=$(LD)' \
2abefe3d 492 'LIPO=$(LIPO)' \
6599da04 493 'NM=$(NM)' \
2d309510 494 'OBJDUMP=$(OBJDUMP)' \
c858bf1e 495 'RANLIB=$(RANLIB)' \
2abefe3d 496 'STRIP=$(STRIP)' \
6599da04
JM
497 'WINDRES=$(WINDRES)'
498
499FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
500
501# Flags that are concerned with the location of the X11 include files
502# and library files
503#
504# NOTE: until the top-level is getting the values via autoconf, it only
505# causes problems to have this top-level Makefile overriding the autoconf-set
506# values in child directories. Only variables that don't conflict with
507# autoconf'ed ones should be passed by X11_FLAGS_TO_PASS for now.
508#
509X11_FLAGS_TO_PASS = \
510 'X11_EXTRA_CFLAGS=$(X11_EXTRA_CFLAGS)' \
511 'X11_EXTRA_LIBS=$(X11_EXTRA_LIBS)'
512
513# Flags to pass down to makes which are built with the target environment.
f41d6665
DJ
514# The double $ decreases the length of the command line; those variables
515# are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them. The
516# COMPILER_ prefixed variables are not passed down so we expand them here.
6599da04
JM
517EXTRA_TARGET_FLAGS = \
518 'AR=$$(AR_FOR_TARGET)' \
f41d6665 519 'AS=$(COMPILER_AS_FOR_TARGET)' \
6599da04
JM
520 'CC=$$(CC_FOR_TARGET)' \
521 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
522 'CXX=$$(CXX_FOR_TARGET)' \
523 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
524 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
f41d6665 525 'LD=$(COMPILER_LD_FOR_TARGET)' \
e3791243 526 'LDFLAGS=$$(LDFLAGS_FOR_TARGET)' \
6599da04
JM
527 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
528 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
f41d6665 529 'NM=$(COMPILER_NM_FOR_TARGET)' \
d739199a 530 'OBJDUMP=$$(OBJDUMP_FOR_TARGET)' \
0c055e34 531 'RANLIB=$$(RANLIB_FOR_TARGET)' \
6599da04
JM
532 'WINDRES=$$(WINDRES_FOR_TARGET)'
533
534TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
535
536# Flags to pass down to gcc. gcc builds a library, libgcc.a, so it
537# unfortunately needs the native compiler and the target ar and
538# ranlib.
539# If any variables are added here, they must be added to do-*, below.
1358ccea 540# The BUILD_* variables are a special case, which are used for the gcc
6599da04
JM
541# cross-building scheme.
542EXTRA_GCC_FLAGS = \
6599da04 543 "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
d4cd9d81
NN
544 "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
545 "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
546 "`echo 'LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
547 "`echo 'LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
cc11cc9b 548 "`echo 'LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"
6599da04 549
d29b8ad8 550GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS)
6599da04 551
8b87bb96 552.PHONY: configure-host
d32ab992 553configure-host: \
8b87bb96
NN
554 maybe-configure-ash \
555 maybe-configure-autoconf \
556 maybe-configure-automake \
557 maybe-configure-bash \
558 maybe-configure-bfd \
559 maybe-configure-opcodes \
560 maybe-configure-binutils \
561 maybe-configure-bison \
562 maybe-configure-byacc \
563 maybe-configure-bzip2 \
564 maybe-configure-dejagnu \
565 maybe-configure-diff \
566 maybe-configure-dosutils \
567 maybe-configure-etc \
568 maybe-configure-fastjar \
569 maybe-configure-fileutils \
570 maybe-configure-findutils \
571 maybe-configure-find \
53c7ffe7 572 maybe-configure-fixincludes \
8b87bb96
NN
573 maybe-configure-flex \
574 maybe-configure-gas \
d32ab992 575 maybe-configure-gcc \
8b87bb96
NN
576 maybe-configure-gawk \
577 maybe-configure-gettext \
578 maybe-configure-gnuserv \
579 maybe-configure-gprof \
580 maybe-configure-gzip \
581 maybe-configure-hello \
582 maybe-configure-indent \
583 maybe-configure-intl \
584 maybe-configure-tcl \
585 maybe-configure-itcl \
586 maybe-configure-ld \
4f4e53dd 587 maybe-configure-libcpp \
a4b6c45a 588 maybe-configure-libdecnumber \
8b87bb96
NN
589 maybe-configure-libgui \
590 maybe-configure-libiberty \
591 maybe-configure-libtool \
592 maybe-configure-m4 \
593 maybe-configure-make \
594 maybe-configure-mmalloc \
595 maybe-configure-patch \
596 maybe-configure-perl \
597 maybe-configure-prms \
598 maybe-configure-rcs \
599 maybe-configure-readline \
600 maybe-configure-release \
601 maybe-configure-recode \
602 maybe-configure-sed \
603 maybe-configure-send-pr \
604 maybe-configure-shellutils \
605 maybe-configure-sid \
606 maybe-configure-sim \
607 maybe-configure-tar \
608 maybe-configure-texinfo \
609 maybe-configure-textutils \
610 maybe-configure-time \
611 maybe-configure-uudecode \
612 maybe-configure-wdiff \
613 maybe-configure-zip \
614 maybe-configure-zlib \
615 maybe-configure-gdb \
616 maybe-configure-expect \
617 maybe-configure-guile \
618 maybe-configure-tk \
8b87bb96 619 maybe-configure-libtermcap \
5395b47b
NN
620 maybe-configure-utils \
621 maybe-configure-gnattools
8b87bb96
NN
622.PHONY: configure-target
623configure-target: \
624 maybe-configure-target-libstdc++-v3 \
6de9cd9a 625 maybe-configure-target-libmudflap \
77008252 626 maybe-configure-target-libssp \
8b87bb96 627 maybe-configure-target-newlib \
6de9cd9a 628 maybe-configure-target-libgfortran \
8b87bb96
NN
629 maybe-configure-target-libobjc \
630 maybe-configure-target-libtermcap \
631 maybe-configure-target-winsup \
632 maybe-configure-target-libgloss \
633 maybe-configure-target-libiberty \
634 maybe-configure-target-gperf \
635 maybe-configure-target-examples \
636 maybe-configure-target-libffi \
637 maybe-configure-target-libjava \
638 maybe-configure-target-zlib \
639 maybe-configure-target-boehm-gc \
640 maybe-configure-target-qthreads \
d9cdb878 641 maybe-configure-target-rda \
953ff289
DN
642 maybe-configure-target-libada \
643 maybe-configure-target-libgomp
6599da04 644
f516a7da
PB
645# The target built for a native non-bootstrap build.
646.PHONY: all
1061f99e
PB
647all:
648@if gcc-bootstrap
2abefe3d 649 [ -f stage_final ] || echo stage3 > stage_final
1061f99e
PB
650 @r=`${PWD_COMMAND}`; export r; \
651 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 652 $(MAKE) $(RECURSE_FLAGS_TO_PASS) `cat stage_final`-bubble
1061f99e 653@endif gcc-bootstrap
f41d6665 654 @: $(MAKE); $(unstage)
1061f99e
PB
655 @r=`${PWD_COMMAND}`; export r; \
656 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
657 if [ -f stage_last ]; then \
2abefe3d 658 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target; \
1061f99e 659 else \
2abefe3d 660 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-host all-target; \
1061f99e 661 fi
23f6b2f9
PB
662
663.PHONY: all-build
cc11cc9b
PB
664
665all-build: maybe-all-build-libiberty
666all-build: maybe-all-build-bison
667all-build: maybe-all-build-byacc
668all-build: maybe-all-build-flex
669all-build: maybe-all-build-m4
670all-build: maybe-all-build-texinfo
671all-build: maybe-all-build-fixincludes
672
8b87bb96 673.PHONY: all-host
cc11cc9b
PB
674
675all-host: maybe-all-ash
676all-host: maybe-all-autoconf
677all-host: maybe-all-automake
678all-host: maybe-all-bash
679@if bfd-no-bootstrap
680all-host: maybe-all-bfd
681@endif bfd-no-bootstrap
682@if opcodes-no-bootstrap
683all-host: maybe-all-opcodes
684@endif opcodes-no-bootstrap
685@if binutils-no-bootstrap
686all-host: maybe-all-binutils
687@endif binutils-no-bootstrap
688all-host: maybe-all-bison
689all-host: maybe-all-byacc
690all-host: maybe-all-bzip2
691all-host: maybe-all-dejagnu
692all-host: maybe-all-diff
693all-host: maybe-all-dosutils
694all-host: maybe-all-etc
695all-host: maybe-all-fastjar
696all-host: maybe-all-fileutils
697all-host: maybe-all-findutils
698all-host: maybe-all-find
699all-host: maybe-all-fixincludes
700all-host: maybe-all-flex
701@if gas-no-bootstrap
702all-host: maybe-all-gas
703@endif gas-no-bootstrap
704@if gcc-no-bootstrap
705all-host: maybe-all-gcc
706@endif gcc-no-bootstrap
707all-host: maybe-all-gawk
708all-host: maybe-all-gettext
709all-host: maybe-all-gnuserv
710all-host: maybe-all-gprof
711all-host: maybe-all-gzip
712all-host: maybe-all-hello
713all-host: maybe-all-indent
714@if intl-no-bootstrap
715all-host: maybe-all-intl
716@endif intl-no-bootstrap
717all-host: maybe-all-tcl
718all-host: maybe-all-itcl
719@if ld-no-bootstrap
720all-host: maybe-all-ld
721@endif ld-no-bootstrap
722@if libcpp-no-bootstrap
723all-host: maybe-all-libcpp
724@endif libcpp-no-bootstrap
725@if libdecnumber-no-bootstrap
726all-host: maybe-all-libdecnumber
727@endif libdecnumber-no-bootstrap
728all-host: maybe-all-libgui
729@if libiberty-no-bootstrap
730all-host: maybe-all-libiberty
731@endif libiberty-no-bootstrap
732all-host: maybe-all-libtool
733all-host: maybe-all-m4
734all-host: maybe-all-make
735all-host: maybe-all-mmalloc
736all-host: maybe-all-patch
737all-host: maybe-all-perl
738all-host: maybe-all-prms
739all-host: maybe-all-rcs
740all-host: maybe-all-readline
741all-host: maybe-all-release
742all-host: maybe-all-recode
743all-host: maybe-all-sed
744all-host: maybe-all-send-pr
745all-host: maybe-all-shellutils
746all-host: maybe-all-sid
747all-host: maybe-all-sim
748all-host: maybe-all-tar
749all-host: maybe-all-texinfo
750all-host: maybe-all-textutils
751all-host: maybe-all-time
752all-host: maybe-all-uudecode
753all-host: maybe-all-wdiff
754all-host: maybe-all-zip
755@if zlib-no-bootstrap
756all-host: maybe-all-zlib
757@endif zlib-no-bootstrap
758all-host: maybe-all-gdb
759all-host: maybe-all-expect
760all-host: maybe-all-guile
761all-host: maybe-all-tk
762all-host: maybe-all-libtermcap
763all-host: maybe-all-utils
764all-host: maybe-all-gnattools
765
8b87bb96 766.PHONY: all-target
cc11cc9b
PB
767
768all-target: maybe-all-target-libstdc++-v3
769all-target: maybe-all-target-libmudflap
770all-target: maybe-all-target-libssp
cc11cc9b
PB
771all-target: maybe-all-target-newlib
772all-target: maybe-all-target-libgfortran
773all-target: maybe-all-target-libobjc
774all-target: maybe-all-target-libtermcap
775all-target: maybe-all-target-winsup
776all-target: maybe-all-target-libgloss
777all-target: maybe-all-target-libiberty
778all-target: maybe-all-target-gperf
779all-target: maybe-all-target-examples
780all-target: maybe-all-target-libffi
781all-target: maybe-all-target-libjava
782all-target: maybe-all-target-zlib
783all-target: maybe-all-target-boehm-gc
784all-target: maybe-all-target-qthreads
785all-target: maybe-all-target-rda
786all-target: maybe-all-target-libada
787all-target: maybe-all-target-libgomp
6599da04
JM
788
789# Do a target for all the subdirectories. A ``make do-X'' will do a
790# ``make X'' in all subdirectories (because, in general, there is a
791# dependency (below) of X upon do-X, a ``make X'' will also do this,
792# but it may do additional work as well).
4977bab6 793
1358ccea 794.PHONY: do-info
1061f99e 795do-info:
f41d6665 796 @: $(MAKE); $(unstage)
e7c84bf8
PB
797 @r=`${PWD_COMMAND}`; export r; \
798 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
799 $(MAKE) $(RECURSE_FLAGS_TO_PASS) info-host \
1061f99e 800 info-target
1061f99e 801
6599da04 802
1358ccea 803.PHONY: info-host
cc11cc9b
PB
804
805info-host: maybe-info-ash
806info-host: maybe-info-autoconf
807info-host: maybe-info-automake
808info-host: maybe-info-bash
809info-host: maybe-info-bfd
810info-host: maybe-info-opcodes
811info-host: maybe-info-binutils
812info-host: maybe-info-bison
813info-host: maybe-info-byacc
814info-host: maybe-info-bzip2
815info-host: maybe-info-dejagnu
816info-host: maybe-info-diff
817info-host: maybe-info-dosutils
818info-host: maybe-info-etc
819info-host: maybe-info-fastjar
820info-host: maybe-info-fileutils
821info-host: maybe-info-findutils
822info-host: maybe-info-find
823info-host: maybe-info-fixincludes
824info-host: maybe-info-flex
825info-host: maybe-info-gas
826info-host: maybe-info-gcc
827info-host: maybe-info-gawk
828info-host: maybe-info-gettext
829info-host: maybe-info-gnuserv
830info-host: maybe-info-gprof
831info-host: maybe-info-gzip
832info-host: maybe-info-hello
833info-host: maybe-info-indent
834info-host: maybe-info-intl
835info-host: maybe-info-tcl
836info-host: maybe-info-itcl
837info-host: maybe-info-ld
838info-host: maybe-info-libcpp
839info-host: maybe-info-libdecnumber
840info-host: maybe-info-libgui
841info-host: maybe-info-libiberty
842info-host: maybe-info-libtool
843info-host: maybe-info-m4
844info-host: maybe-info-make
845info-host: maybe-info-mmalloc
846info-host: maybe-info-patch
847info-host: maybe-info-perl
848info-host: maybe-info-prms
849info-host: maybe-info-rcs
850info-host: maybe-info-readline
851info-host: maybe-info-release
852info-host: maybe-info-recode
853info-host: maybe-info-sed
854info-host: maybe-info-send-pr
855info-host: maybe-info-shellutils
856info-host: maybe-info-sid
857info-host: maybe-info-sim
858info-host: maybe-info-tar
859info-host: maybe-info-texinfo
860info-host: maybe-info-textutils
861info-host: maybe-info-time
862info-host: maybe-info-uudecode
863info-host: maybe-info-wdiff
864info-host: maybe-info-zip
865info-host: maybe-info-zlib
866info-host: maybe-info-gdb
867info-host: maybe-info-expect
868info-host: maybe-info-guile
869info-host: maybe-info-tk
870info-host: maybe-info-libtermcap
871info-host: maybe-info-utils
872info-host: maybe-info-gnattools
6599da04 873
1358ccea 874.PHONY: info-target
cc11cc9b
PB
875
876info-target: maybe-info-target-libstdc++-v3
877info-target: maybe-info-target-libmudflap
878info-target: maybe-info-target-libssp
cc11cc9b
PB
879info-target: maybe-info-target-newlib
880info-target: maybe-info-target-libgfortran
881info-target: maybe-info-target-libobjc
882info-target: maybe-info-target-libtermcap
883info-target: maybe-info-target-winsup
884info-target: maybe-info-target-libgloss
885info-target: maybe-info-target-libiberty
886info-target: maybe-info-target-gperf
887info-target: maybe-info-target-examples
888info-target: maybe-info-target-libffi
889info-target: maybe-info-target-libjava
890info-target: maybe-info-target-zlib
891info-target: maybe-info-target-boehm-gc
892info-target: maybe-info-target-qthreads
893info-target: maybe-info-target-rda
894info-target: maybe-info-target-libada
895info-target: maybe-info-target-libgomp
6599da04 896
295f4e42 897.PHONY: do-dvi
1061f99e 898do-dvi:
f41d6665 899 @: $(MAKE); $(unstage)
e7c84bf8
PB
900 @r=`${PWD_COMMAND}`; export r; \
901 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
902 $(MAKE) $(RECURSE_FLAGS_TO_PASS) dvi-host \
1061f99e 903 dvi-target
1061f99e 904
4977bab6 905
295f4e42 906.PHONY: dvi-host
cc11cc9b
PB
907
908dvi-host: maybe-dvi-ash
909dvi-host: maybe-dvi-autoconf
910dvi-host: maybe-dvi-automake
911dvi-host: maybe-dvi-bash
912dvi-host: maybe-dvi-bfd
913dvi-host: maybe-dvi-opcodes
914dvi-host: maybe-dvi-binutils
915dvi-host: maybe-dvi-bison
916dvi-host: maybe-dvi-byacc
917dvi-host: maybe-dvi-bzip2
918dvi-host: maybe-dvi-dejagnu
919dvi-host: maybe-dvi-diff
920dvi-host: maybe-dvi-dosutils
921dvi-host: maybe-dvi-etc
922dvi-host: maybe-dvi-fastjar
923dvi-host: maybe-dvi-fileutils
924dvi-host: maybe-dvi-findutils
925dvi-host: maybe-dvi-find
926dvi-host: maybe-dvi-fixincludes
927dvi-host: maybe-dvi-flex
928dvi-host: maybe-dvi-gas
929dvi-host: maybe-dvi-gcc
930dvi-host: maybe-dvi-gawk
931dvi-host: maybe-dvi-gettext
932dvi-host: maybe-dvi-gnuserv
933dvi-host: maybe-dvi-gprof
934dvi-host: maybe-dvi-gzip
935dvi-host: maybe-dvi-hello
936dvi-host: maybe-dvi-indent
937dvi-host: maybe-dvi-intl
938dvi-host: maybe-dvi-tcl
939dvi-host: maybe-dvi-itcl
940dvi-host: maybe-dvi-ld
941dvi-host: maybe-dvi-libcpp
942dvi-host: maybe-dvi-libdecnumber
943dvi-host: maybe-dvi-libgui
944dvi-host: maybe-dvi-libiberty
945dvi-host: maybe-dvi-libtool
946dvi-host: maybe-dvi-m4
947dvi-host: maybe-dvi-make
948dvi-host: maybe-dvi-mmalloc
949dvi-host: maybe-dvi-patch
950dvi-host: maybe-dvi-perl
951dvi-host: maybe-dvi-prms
952dvi-host: maybe-dvi-rcs
953dvi-host: maybe-dvi-readline
954dvi-host: maybe-dvi-release
955dvi-host: maybe-dvi-recode
956dvi-host: maybe-dvi-sed
957dvi-host: maybe-dvi-send-pr
958dvi-host: maybe-dvi-shellutils
959dvi-host: maybe-dvi-sid
960dvi-host: maybe-dvi-sim
961dvi-host: maybe-dvi-tar
962dvi-host: maybe-dvi-texinfo
963dvi-host: maybe-dvi-textutils
964dvi-host: maybe-dvi-time
965dvi-host: maybe-dvi-uudecode
966dvi-host: maybe-dvi-wdiff
967dvi-host: maybe-dvi-zip
968dvi-host: maybe-dvi-zlib
969dvi-host: maybe-dvi-gdb
970dvi-host: maybe-dvi-expect
971dvi-host: maybe-dvi-guile
972dvi-host: maybe-dvi-tk
973dvi-host: maybe-dvi-libtermcap
974dvi-host: maybe-dvi-utils
975dvi-host: maybe-dvi-gnattools
4977bab6 976
295f4e42 977.PHONY: dvi-target
cc11cc9b
PB
978
979dvi-target: maybe-dvi-target-libstdc++-v3
980dvi-target: maybe-dvi-target-libmudflap
981dvi-target: maybe-dvi-target-libssp
cc11cc9b
PB
982dvi-target: maybe-dvi-target-newlib
983dvi-target: maybe-dvi-target-libgfortran
984dvi-target: maybe-dvi-target-libobjc
985dvi-target: maybe-dvi-target-libtermcap
986dvi-target: maybe-dvi-target-winsup
987dvi-target: maybe-dvi-target-libgloss
988dvi-target: maybe-dvi-target-libiberty
989dvi-target: maybe-dvi-target-gperf
990dvi-target: maybe-dvi-target-examples
991dvi-target: maybe-dvi-target-libffi
992dvi-target: maybe-dvi-target-libjava
993dvi-target: maybe-dvi-target-zlib
994dvi-target: maybe-dvi-target-boehm-gc
995dvi-target: maybe-dvi-target-qthreads
996dvi-target: maybe-dvi-target-rda
997dvi-target: maybe-dvi-target-libada
998dvi-target: maybe-dvi-target-libgomp
4977bab6 999
f87a2b2e 1000.PHONY: do-html
1061f99e 1001do-html:
f41d6665 1002 @: $(MAKE); $(unstage)
e7c84bf8
PB
1003 @r=`${PWD_COMMAND}`; export r; \
1004 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1005 $(MAKE) $(RECURSE_FLAGS_TO_PASS) html-host \
1061f99e 1006 html-target
1061f99e 1007
f87a2b2e
MS
1008
1009.PHONY: html-host
cc11cc9b
PB
1010
1011html-host: maybe-html-ash
1012html-host: maybe-html-autoconf
1013html-host: maybe-html-automake
1014html-host: maybe-html-bash
1015html-host: maybe-html-bfd
1016html-host: maybe-html-opcodes
1017html-host: maybe-html-binutils
1018html-host: maybe-html-bison
1019html-host: maybe-html-byacc
1020html-host: maybe-html-bzip2
1021html-host: maybe-html-dejagnu
1022html-host: maybe-html-diff
1023html-host: maybe-html-dosutils
1024html-host: maybe-html-etc
1025html-host: maybe-html-fastjar
1026html-host: maybe-html-fileutils
1027html-host: maybe-html-findutils
1028html-host: maybe-html-find
1029html-host: maybe-html-fixincludes
1030html-host: maybe-html-flex
1031html-host: maybe-html-gas
1032html-host: maybe-html-gcc
1033html-host: maybe-html-gawk
1034html-host: maybe-html-gettext
1035html-host: maybe-html-gnuserv
1036html-host: maybe-html-gprof
1037html-host: maybe-html-gzip
1038html-host: maybe-html-hello
1039html-host: maybe-html-indent
1040html-host: maybe-html-intl
1041html-host: maybe-html-tcl
1042html-host: maybe-html-itcl
1043html-host: maybe-html-ld
1044html-host: maybe-html-libcpp
1045html-host: maybe-html-libdecnumber
1046html-host: maybe-html-libgui
1047html-host: maybe-html-libiberty
1048html-host: maybe-html-libtool
1049html-host: maybe-html-m4
1050html-host: maybe-html-make
1051html-host: maybe-html-mmalloc
1052html-host: maybe-html-patch
1053html-host: maybe-html-perl
1054html-host: maybe-html-prms
1055html-host: maybe-html-rcs
1056html-host: maybe-html-readline
1057html-host: maybe-html-release
1058html-host: maybe-html-recode
1059html-host: maybe-html-sed
1060html-host: maybe-html-send-pr
1061html-host: maybe-html-shellutils
1062html-host: maybe-html-sid
1063html-host: maybe-html-sim
1064html-host: maybe-html-tar
1065html-host: maybe-html-texinfo
1066html-host: maybe-html-textutils
1067html-host: maybe-html-time
1068html-host: maybe-html-uudecode
1069html-host: maybe-html-wdiff
1070html-host: maybe-html-zip
1071html-host: maybe-html-zlib
1072html-host: maybe-html-gdb
1073html-host: maybe-html-expect
1074html-host: maybe-html-guile
1075html-host: maybe-html-tk
1076html-host: maybe-html-libtermcap
1077html-host: maybe-html-utils
1078html-host: maybe-html-gnattools
f87a2b2e
MS
1079
1080.PHONY: html-target
cc11cc9b
PB
1081
1082html-target: maybe-html-target-libstdc++-v3
1083html-target: maybe-html-target-libmudflap
1084html-target: maybe-html-target-libssp
cc11cc9b
PB
1085html-target: maybe-html-target-newlib
1086html-target: maybe-html-target-libgfortran
1087html-target: maybe-html-target-libobjc
1088html-target: maybe-html-target-libtermcap
1089html-target: maybe-html-target-winsup
1090html-target: maybe-html-target-libgloss
1091html-target: maybe-html-target-libiberty
1092html-target: maybe-html-target-gperf
1093html-target: maybe-html-target-examples
1094html-target: maybe-html-target-libffi
1095html-target: maybe-html-target-libjava
1096html-target: maybe-html-target-zlib
1097html-target: maybe-html-target-boehm-gc
1098html-target: maybe-html-target-qthreads
1099html-target: maybe-html-target-rda
1100html-target: maybe-html-target-libada
1101html-target: maybe-html-target-libgomp
f87a2b2e 1102
295f4e42 1103.PHONY: do-TAGS
1061f99e 1104do-TAGS:
f41d6665 1105 @: $(MAKE); $(unstage)
e7c84bf8
PB
1106 @r=`${PWD_COMMAND}`; export r; \
1107 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1108 $(MAKE) $(RECURSE_FLAGS_TO_PASS) TAGS-host \
1061f99e 1109 TAGS-target
1061f99e 1110
4977bab6 1111
295f4e42 1112.PHONY: TAGS-host
cc11cc9b
PB
1113
1114TAGS-host: maybe-TAGS-ash
1115TAGS-host: maybe-TAGS-autoconf
1116TAGS-host: maybe-TAGS-automake
1117TAGS-host: maybe-TAGS-bash
1118TAGS-host: maybe-TAGS-bfd
1119TAGS-host: maybe-TAGS-opcodes
1120TAGS-host: maybe-TAGS-binutils
1121TAGS-host: maybe-TAGS-bison
1122TAGS-host: maybe-TAGS-byacc
1123TAGS-host: maybe-TAGS-bzip2
1124TAGS-host: maybe-TAGS-dejagnu
1125TAGS-host: maybe-TAGS-diff
1126TAGS-host: maybe-TAGS-dosutils
1127TAGS-host: maybe-TAGS-etc
1128TAGS-host: maybe-TAGS-fastjar
1129TAGS-host: maybe-TAGS-fileutils
1130TAGS-host: maybe-TAGS-findutils
1131TAGS-host: maybe-TAGS-find
1132TAGS-host: maybe-TAGS-fixincludes
1133TAGS-host: maybe-TAGS-flex
1134TAGS-host: maybe-TAGS-gas
1135TAGS-host: maybe-TAGS-gcc
1136TAGS-host: maybe-TAGS-gawk
1137TAGS-host: maybe-TAGS-gettext
1138TAGS-host: maybe-TAGS-gnuserv
1139TAGS-host: maybe-TAGS-gprof
1140TAGS-host: maybe-TAGS-gzip
1141TAGS-host: maybe-TAGS-hello
1142TAGS-host: maybe-TAGS-indent
1143TAGS-host: maybe-TAGS-intl
1144TAGS-host: maybe-TAGS-tcl
1145TAGS-host: maybe-TAGS-itcl
1146TAGS-host: maybe-TAGS-ld
1147TAGS-host: maybe-TAGS-libcpp
1148TAGS-host: maybe-TAGS-libdecnumber
1149TAGS-host: maybe-TAGS-libgui
1150TAGS-host: maybe-TAGS-libiberty
1151TAGS-host: maybe-TAGS-libtool
1152TAGS-host: maybe-TAGS-m4
1153TAGS-host: maybe-TAGS-make
1154TAGS-host: maybe-TAGS-mmalloc
1155TAGS-host: maybe-TAGS-patch
1156TAGS-host: maybe-TAGS-perl
1157TAGS-host: maybe-TAGS-prms
1158TAGS-host: maybe-TAGS-rcs
1159TAGS-host: maybe-TAGS-readline
1160TAGS-host: maybe-TAGS-release
1161TAGS-host: maybe-TAGS-recode
1162TAGS-host: maybe-TAGS-sed
1163TAGS-host: maybe-TAGS-send-pr
1164TAGS-host: maybe-TAGS-shellutils
1165TAGS-host: maybe-TAGS-sid
1166TAGS-host: maybe-TAGS-sim
1167TAGS-host: maybe-TAGS-tar
1168TAGS-host: maybe-TAGS-texinfo
1169TAGS-host: maybe-TAGS-textutils
1170TAGS-host: maybe-TAGS-time
1171TAGS-host: maybe-TAGS-uudecode
1172TAGS-host: maybe-TAGS-wdiff
1173TAGS-host: maybe-TAGS-zip
1174TAGS-host: maybe-TAGS-zlib
1175TAGS-host: maybe-TAGS-gdb
1176TAGS-host: maybe-TAGS-expect
1177TAGS-host: maybe-TAGS-guile
1178TAGS-host: maybe-TAGS-tk
1179TAGS-host: maybe-TAGS-libtermcap
1180TAGS-host: maybe-TAGS-utils
1181TAGS-host: maybe-TAGS-gnattools
4977bab6 1182
295f4e42 1183.PHONY: TAGS-target
cc11cc9b
PB
1184
1185TAGS-target: maybe-TAGS-target-libstdc++-v3
1186TAGS-target: maybe-TAGS-target-libmudflap
1187TAGS-target: maybe-TAGS-target-libssp
cc11cc9b
PB
1188TAGS-target: maybe-TAGS-target-newlib
1189TAGS-target: maybe-TAGS-target-libgfortran
1190TAGS-target: maybe-TAGS-target-libobjc
1191TAGS-target: maybe-TAGS-target-libtermcap
1192TAGS-target: maybe-TAGS-target-winsup
1193TAGS-target: maybe-TAGS-target-libgloss
1194TAGS-target: maybe-TAGS-target-libiberty
1195TAGS-target: maybe-TAGS-target-gperf
1196TAGS-target: maybe-TAGS-target-examples
1197TAGS-target: maybe-TAGS-target-libffi
1198TAGS-target: maybe-TAGS-target-libjava
1199TAGS-target: maybe-TAGS-target-zlib
1200TAGS-target: maybe-TAGS-target-boehm-gc
1201TAGS-target: maybe-TAGS-target-qthreads
1202TAGS-target: maybe-TAGS-target-rda
1203TAGS-target: maybe-TAGS-target-libada
1204TAGS-target: maybe-TAGS-target-libgomp
4977bab6 1205
295f4e42 1206.PHONY: do-install-info
1061f99e 1207do-install-info:
f41d6665 1208 @: $(MAKE); $(unstage)
e7c84bf8
PB
1209 @r=`${PWD_COMMAND}`; export r; \
1210 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1211 $(MAKE) $(RECURSE_FLAGS_TO_PASS) install-info-host \
1061f99e 1212 install-info-target
1061f99e 1213
4977bab6 1214
295f4e42 1215.PHONY: install-info-host
cc11cc9b
PB
1216
1217install-info-host: maybe-install-info-ash
1218install-info-host: maybe-install-info-autoconf
1219install-info-host: maybe-install-info-automake
1220install-info-host: maybe-install-info-bash
1221install-info-host: maybe-install-info-bfd
1222install-info-host: maybe-install-info-opcodes
1223install-info-host: maybe-install-info-binutils
1224install-info-host: maybe-install-info-bison
1225install-info-host: maybe-install-info-byacc
1226install-info-host: maybe-install-info-bzip2
1227install-info-host: maybe-install-info-dejagnu
1228install-info-host: maybe-install-info-diff
1229install-info-host: maybe-install-info-dosutils
1230install-info-host: maybe-install-info-etc
1231install-info-host: maybe-install-info-fastjar
1232install-info-host: maybe-install-info-fileutils
1233install-info-host: maybe-install-info-findutils
1234install-info-host: maybe-install-info-find
1235install-info-host: maybe-install-info-fixincludes
1236install-info-host: maybe-install-info-flex
1237install-info-host: maybe-install-info-gas
1238install-info-host: maybe-install-info-gcc
1239install-info-host: maybe-install-info-gawk
1240install-info-host: maybe-install-info-gettext
1241install-info-host: maybe-install-info-gnuserv
1242install-info-host: maybe-install-info-gprof
1243install-info-host: maybe-install-info-gzip
1244install-info-host: maybe-install-info-hello
1245install-info-host: maybe-install-info-indent
1246install-info-host: maybe-install-info-intl
1247install-info-host: maybe-install-info-tcl
1248install-info-host: maybe-install-info-itcl
1249install-info-host: maybe-install-info-ld
1250install-info-host: maybe-install-info-libcpp
1251install-info-host: maybe-install-info-libdecnumber
1252install-info-host: maybe-install-info-libgui
1253install-info-host: maybe-install-info-libiberty
1254install-info-host: maybe-install-info-libtool
1255install-info-host: maybe-install-info-m4
1256install-info-host: maybe-install-info-make
1257install-info-host: maybe-install-info-mmalloc
1258install-info-host: maybe-install-info-patch
1259install-info-host: maybe-install-info-perl
1260install-info-host: maybe-install-info-prms
1261install-info-host: maybe-install-info-rcs
1262install-info-host: maybe-install-info-readline
1263install-info-host: maybe-install-info-release
1264install-info-host: maybe-install-info-recode
1265install-info-host: maybe-install-info-sed
1266install-info-host: maybe-install-info-send-pr
1267install-info-host: maybe-install-info-shellutils
1268install-info-host: maybe-install-info-sid
1269install-info-host: maybe-install-info-sim
1270install-info-host: maybe-install-info-tar
1271install-info-host: maybe-install-info-texinfo
1272install-info-host: maybe-install-info-textutils
1273install-info-host: maybe-install-info-time
1274install-info-host: maybe-install-info-uudecode
1275install-info-host: maybe-install-info-wdiff
1276install-info-host: maybe-install-info-zip
1277install-info-host: maybe-install-info-zlib
1278install-info-host: maybe-install-info-gdb
1279install-info-host: maybe-install-info-expect
1280install-info-host: maybe-install-info-guile
1281install-info-host: maybe-install-info-tk
1282install-info-host: maybe-install-info-libtermcap
1283install-info-host: maybe-install-info-utils
1284install-info-host: maybe-install-info-gnattools
1358ccea 1285
295f4e42 1286.PHONY: install-info-target
cc11cc9b
PB
1287
1288install-info-target: maybe-install-info-target-libstdc++-v3
1289install-info-target: maybe-install-info-target-libmudflap
1290install-info-target: maybe-install-info-target-libssp
cc11cc9b
PB
1291install-info-target: maybe-install-info-target-newlib
1292install-info-target: maybe-install-info-target-libgfortran
1293install-info-target: maybe-install-info-target-libobjc
1294install-info-target: maybe-install-info-target-libtermcap
1295install-info-target: maybe-install-info-target-winsup
1296install-info-target: maybe-install-info-target-libgloss
1297install-info-target: maybe-install-info-target-libiberty
1298install-info-target: maybe-install-info-target-gperf
1299install-info-target: maybe-install-info-target-examples
1300install-info-target: maybe-install-info-target-libffi
1301install-info-target: maybe-install-info-target-libjava
1302install-info-target: maybe-install-info-target-zlib
1303install-info-target: maybe-install-info-target-boehm-gc
1304install-info-target: maybe-install-info-target-qthreads
1305install-info-target: maybe-install-info-target-rda
1306install-info-target: maybe-install-info-target-libada
1307install-info-target: maybe-install-info-target-libgomp
1358ccea 1308
65d6e994
CD
1309.PHONY: do-install-html
1310do-install-html:
1311 @: $(MAKE); $(unstage)
1312 @r=`${PWD_COMMAND}`; export r; \
1313 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1314 $(MAKE) $(RECURSE_FLAGS_TO_PASS) install-html-host \
1315 install-html-target
1316
1317
1318.PHONY: install-html-host
1319
1320install-html-host: maybe-install-html-ash
1321install-html-host: maybe-install-html-autoconf
1322install-html-host: maybe-install-html-automake
1323install-html-host: maybe-install-html-bash
1324install-html-host: maybe-install-html-bfd
1325install-html-host: maybe-install-html-opcodes
1326install-html-host: maybe-install-html-binutils
1327install-html-host: maybe-install-html-bison
1328install-html-host: maybe-install-html-byacc
1329install-html-host: maybe-install-html-bzip2
1330install-html-host: maybe-install-html-dejagnu
1331install-html-host: maybe-install-html-diff
1332install-html-host: maybe-install-html-dosutils
1333install-html-host: maybe-install-html-etc
1334install-html-host: maybe-install-html-fastjar
1335install-html-host: maybe-install-html-fileutils
1336install-html-host: maybe-install-html-findutils
1337install-html-host: maybe-install-html-find
1338install-html-host: maybe-install-html-fixincludes
1339install-html-host: maybe-install-html-flex
1340install-html-host: maybe-install-html-gas
1341install-html-host: maybe-install-html-gcc
1342install-html-host: maybe-install-html-gawk
1343install-html-host: maybe-install-html-gettext
1344install-html-host: maybe-install-html-gnuserv
1345install-html-host: maybe-install-html-gprof
1346install-html-host: maybe-install-html-gzip
1347install-html-host: maybe-install-html-hello
1348install-html-host: maybe-install-html-indent
1349install-html-host: maybe-install-html-intl
1350install-html-host: maybe-install-html-tcl
1351install-html-host: maybe-install-html-itcl
1352install-html-host: maybe-install-html-ld
1353install-html-host: maybe-install-html-libcpp
1354install-html-host: maybe-install-html-libdecnumber
1355install-html-host: maybe-install-html-libgui
1356install-html-host: maybe-install-html-libiberty
1357install-html-host: maybe-install-html-libtool
1358install-html-host: maybe-install-html-m4
1359install-html-host: maybe-install-html-make
1360install-html-host: maybe-install-html-mmalloc
1361install-html-host: maybe-install-html-patch
1362install-html-host: maybe-install-html-perl
1363install-html-host: maybe-install-html-prms
1364install-html-host: maybe-install-html-rcs
1365install-html-host: maybe-install-html-readline
1366install-html-host: maybe-install-html-release
1367install-html-host: maybe-install-html-recode
1368install-html-host: maybe-install-html-sed
1369install-html-host: maybe-install-html-send-pr
1370install-html-host: maybe-install-html-shellutils
1371install-html-host: maybe-install-html-sid
1372install-html-host: maybe-install-html-sim
1373install-html-host: maybe-install-html-tar
1374install-html-host: maybe-install-html-texinfo
1375install-html-host: maybe-install-html-textutils
1376install-html-host: maybe-install-html-time
1377install-html-host: maybe-install-html-uudecode
1378install-html-host: maybe-install-html-wdiff
1379install-html-host: maybe-install-html-zip
1380install-html-host: maybe-install-html-zlib
1381install-html-host: maybe-install-html-gdb
1382install-html-host: maybe-install-html-expect
1383install-html-host: maybe-install-html-guile
1384install-html-host: maybe-install-html-tk
1385install-html-host: maybe-install-html-libtermcap
1386install-html-host: maybe-install-html-utils
1387install-html-host: maybe-install-html-gnattools
1388
1389.PHONY: install-html-target
1390
1391install-html-target: maybe-install-html-target-libstdc++-v3
1392install-html-target: maybe-install-html-target-libmudflap
1393install-html-target: maybe-install-html-target-libssp
65d6e994
CD
1394install-html-target: maybe-install-html-target-newlib
1395install-html-target: maybe-install-html-target-libgfortran
1396install-html-target: maybe-install-html-target-libobjc
1397install-html-target: maybe-install-html-target-libtermcap
1398install-html-target: maybe-install-html-target-winsup
1399install-html-target: maybe-install-html-target-libgloss
1400install-html-target: maybe-install-html-target-libiberty
1401install-html-target: maybe-install-html-target-gperf
1402install-html-target: maybe-install-html-target-examples
1403install-html-target: maybe-install-html-target-libffi
1404install-html-target: maybe-install-html-target-libjava
1405install-html-target: maybe-install-html-target-zlib
1406install-html-target: maybe-install-html-target-boehm-gc
1407install-html-target: maybe-install-html-target-qthreads
1408install-html-target: maybe-install-html-target-rda
1409install-html-target: maybe-install-html-target-libada
1410install-html-target: maybe-install-html-target-libgomp
1411
295f4e42 1412.PHONY: do-installcheck
1061f99e 1413do-installcheck:
f41d6665 1414 @: $(MAKE); $(unstage)
e7c84bf8
PB
1415 @r=`${PWD_COMMAND}`; export r; \
1416 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1417 $(MAKE) $(RECURSE_FLAGS_TO_PASS) installcheck-host \
1061f99e 1418 installcheck-target
1061f99e 1419
1358ccea 1420
295f4e42 1421.PHONY: installcheck-host
cc11cc9b
PB
1422
1423installcheck-host: maybe-installcheck-ash
1424installcheck-host: maybe-installcheck-autoconf
1425installcheck-host: maybe-installcheck-automake
1426installcheck-host: maybe-installcheck-bash
1427installcheck-host: maybe-installcheck-bfd
1428installcheck-host: maybe-installcheck-opcodes
1429installcheck-host: maybe-installcheck-binutils
1430installcheck-host: maybe-installcheck-bison
1431installcheck-host: maybe-installcheck-byacc
1432installcheck-host: maybe-installcheck-bzip2
1433installcheck-host: maybe-installcheck-dejagnu
1434installcheck-host: maybe-installcheck-diff
1435installcheck-host: maybe-installcheck-dosutils
1436installcheck-host: maybe-installcheck-etc
1437installcheck-host: maybe-installcheck-fastjar
1438installcheck-host: maybe-installcheck-fileutils
1439installcheck-host: maybe-installcheck-findutils
1440installcheck-host: maybe-installcheck-find
1441installcheck-host: maybe-installcheck-fixincludes
1442installcheck-host: maybe-installcheck-flex
1443installcheck-host: maybe-installcheck-gas
1444installcheck-host: maybe-installcheck-gcc
1445installcheck-host: maybe-installcheck-gawk
1446installcheck-host: maybe-installcheck-gettext
1447installcheck-host: maybe-installcheck-gnuserv
1448installcheck-host: maybe-installcheck-gprof
1449installcheck-host: maybe-installcheck-gzip
1450installcheck-host: maybe-installcheck-hello
1451installcheck-host: maybe-installcheck-indent
1452installcheck-host: maybe-installcheck-intl
1453installcheck-host: maybe-installcheck-tcl
1454installcheck-host: maybe-installcheck-itcl
1455installcheck-host: maybe-installcheck-ld
1456installcheck-host: maybe-installcheck-libcpp
1457installcheck-host: maybe-installcheck-libdecnumber
1458installcheck-host: maybe-installcheck-libgui
1459installcheck-host: maybe-installcheck-libiberty
1460installcheck-host: maybe-installcheck-libtool
1461installcheck-host: maybe-installcheck-m4
1462installcheck-host: maybe-installcheck-make
1463installcheck-host: maybe-installcheck-mmalloc
1464installcheck-host: maybe-installcheck-patch
1465installcheck-host: maybe-installcheck-perl
1466installcheck-host: maybe-installcheck-prms
1467installcheck-host: maybe-installcheck-rcs
1468installcheck-host: maybe-installcheck-readline
1469installcheck-host: maybe-installcheck-release
1470installcheck-host: maybe-installcheck-recode
1471installcheck-host: maybe-installcheck-sed
1472installcheck-host: maybe-installcheck-send-pr
1473installcheck-host: maybe-installcheck-shellutils
1474installcheck-host: maybe-installcheck-sid
1475installcheck-host: maybe-installcheck-sim
1476installcheck-host: maybe-installcheck-tar
1477installcheck-host: maybe-installcheck-texinfo
1478installcheck-host: maybe-installcheck-textutils
1479installcheck-host: maybe-installcheck-time
1480installcheck-host: maybe-installcheck-uudecode
1481installcheck-host: maybe-installcheck-wdiff
1482installcheck-host: maybe-installcheck-zip
1483installcheck-host: maybe-installcheck-zlib
1484installcheck-host: maybe-installcheck-gdb
1485installcheck-host: maybe-installcheck-expect
1486installcheck-host: maybe-installcheck-guile
1487installcheck-host: maybe-installcheck-tk
1488installcheck-host: maybe-installcheck-libtermcap
1489installcheck-host: maybe-installcheck-utils
1490installcheck-host: maybe-installcheck-gnattools
1358ccea 1491
295f4e42 1492.PHONY: installcheck-target
cc11cc9b
PB
1493
1494installcheck-target: maybe-installcheck-target-libstdc++-v3
1495installcheck-target: maybe-installcheck-target-libmudflap
1496installcheck-target: maybe-installcheck-target-libssp
cc11cc9b
PB
1497installcheck-target: maybe-installcheck-target-newlib
1498installcheck-target: maybe-installcheck-target-libgfortran
1499installcheck-target: maybe-installcheck-target-libobjc
1500installcheck-target: maybe-installcheck-target-libtermcap
1501installcheck-target: maybe-installcheck-target-winsup
1502installcheck-target: maybe-installcheck-target-libgloss
1503installcheck-target: maybe-installcheck-target-libiberty
1504installcheck-target: maybe-installcheck-target-gperf
1505installcheck-target: maybe-installcheck-target-examples
1506installcheck-target: maybe-installcheck-target-libffi
1507installcheck-target: maybe-installcheck-target-libjava
1508installcheck-target: maybe-installcheck-target-zlib
1509installcheck-target: maybe-installcheck-target-boehm-gc
1510installcheck-target: maybe-installcheck-target-qthreads
1511installcheck-target: maybe-installcheck-target-rda
1512installcheck-target: maybe-installcheck-target-libada
1513installcheck-target: maybe-installcheck-target-libgomp
1358ccea 1514
295f4e42 1515.PHONY: do-mostlyclean
1061f99e 1516do-mostlyclean:
f41d6665 1517 @: $(MAKE); $(unstage)
e7c84bf8
PB
1518 @r=`${PWD_COMMAND}`; export r; \
1519 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1520 $(MAKE) $(RECURSE_FLAGS_TO_PASS) mostlyclean-host \
1061f99e 1521 mostlyclean-target
1061f99e 1522
1358ccea 1523
295f4e42 1524.PHONY: mostlyclean-host
cc11cc9b
PB
1525
1526mostlyclean-host: maybe-mostlyclean-ash
1527mostlyclean-host: maybe-mostlyclean-autoconf
1528mostlyclean-host: maybe-mostlyclean-automake
1529mostlyclean-host: maybe-mostlyclean-bash
1530mostlyclean-host: maybe-mostlyclean-bfd
1531mostlyclean-host: maybe-mostlyclean-opcodes
1532mostlyclean-host: maybe-mostlyclean-binutils
1533mostlyclean-host: maybe-mostlyclean-bison
1534mostlyclean-host: maybe-mostlyclean-byacc
1535mostlyclean-host: maybe-mostlyclean-bzip2
1536mostlyclean-host: maybe-mostlyclean-dejagnu
1537mostlyclean-host: maybe-mostlyclean-diff
1538mostlyclean-host: maybe-mostlyclean-dosutils
1539mostlyclean-host: maybe-mostlyclean-etc
1540mostlyclean-host: maybe-mostlyclean-fastjar
1541mostlyclean-host: maybe-mostlyclean-fileutils
1542mostlyclean-host: maybe-mostlyclean-findutils
1543mostlyclean-host: maybe-mostlyclean-find
1544mostlyclean-host: maybe-mostlyclean-fixincludes
1545mostlyclean-host: maybe-mostlyclean-flex
1546mostlyclean-host: maybe-mostlyclean-gas
1547mostlyclean-host: maybe-mostlyclean-gcc
1548mostlyclean-host: maybe-mostlyclean-gawk
1549mostlyclean-host: maybe-mostlyclean-gettext
1550mostlyclean-host: maybe-mostlyclean-gnuserv
1551mostlyclean-host: maybe-mostlyclean-gprof
1552mostlyclean-host: maybe-mostlyclean-gzip
1553mostlyclean-host: maybe-mostlyclean-hello
1554mostlyclean-host: maybe-mostlyclean-indent
1555mostlyclean-host: maybe-mostlyclean-intl
1556mostlyclean-host: maybe-mostlyclean-tcl
1557mostlyclean-host: maybe-mostlyclean-itcl
1558mostlyclean-host: maybe-mostlyclean-ld
1559mostlyclean-host: maybe-mostlyclean-libcpp
1560mostlyclean-host: maybe-mostlyclean-libdecnumber
1561mostlyclean-host: maybe-mostlyclean-libgui
1562mostlyclean-host: maybe-mostlyclean-libiberty
1563mostlyclean-host: maybe-mostlyclean-libtool
1564mostlyclean-host: maybe-mostlyclean-m4
1565mostlyclean-host: maybe-mostlyclean-make
1566mostlyclean-host: maybe-mostlyclean-mmalloc
1567mostlyclean-host: maybe-mostlyclean-patch
1568mostlyclean-host: maybe-mostlyclean-perl
1569mostlyclean-host: maybe-mostlyclean-prms
1570mostlyclean-host: maybe-mostlyclean-rcs
1571mostlyclean-host: maybe-mostlyclean-readline
1572mostlyclean-host: maybe-mostlyclean-release
1573mostlyclean-host: maybe-mostlyclean-recode
1574mostlyclean-host: maybe-mostlyclean-sed
1575mostlyclean-host: maybe-mostlyclean-send-pr
1576mostlyclean-host: maybe-mostlyclean-shellutils
1577mostlyclean-host: maybe-mostlyclean-sid
1578mostlyclean-host: maybe-mostlyclean-sim
1579mostlyclean-host: maybe-mostlyclean-tar
1580mostlyclean-host: maybe-mostlyclean-texinfo
1581mostlyclean-host: maybe-mostlyclean-textutils
1582mostlyclean-host: maybe-mostlyclean-time
1583mostlyclean-host: maybe-mostlyclean-uudecode
1584mostlyclean-host: maybe-mostlyclean-wdiff
1585mostlyclean-host: maybe-mostlyclean-zip
1586mostlyclean-host: maybe-mostlyclean-zlib
1587mostlyclean-host: maybe-mostlyclean-gdb
1588mostlyclean-host: maybe-mostlyclean-expect
1589mostlyclean-host: maybe-mostlyclean-guile
1590mostlyclean-host: maybe-mostlyclean-tk
1591mostlyclean-host: maybe-mostlyclean-libtermcap
1592mostlyclean-host: maybe-mostlyclean-utils
1593mostlyclean-host: maybe-mostlyclean-gnattools
1358ccea 1594
295f4e42 1595.PHONY: mostlyclean-target
cc11cc9b
PB
1596
1597mostlyclean-target: maybe-mostlyclean-target-libstdc++-v3
1598mostlyclean-target: maybe-mostlyclean-target-libmudflap
1599mostlyclean-target: maybe-mostlyclean-target-libssp
cc11cc9b
PB
1600mostlyclean-target: maybe-mostlyclean-target-newlib
1601mostlyclean-target: maybe-mostlyclean-target-libgfortran
1602mostlyclean-target: maybe-mostlyclean-target-libobjc
1603mostlyclean-target: maybe-mostlyclean-target-libtermcap
1604mostlyclean-target: maybe-mostlyclean-target-winsup
1605mostlyclean-target: maybe-mostlyclean-target-libgloss
1606mostlyclean-target: maybe-mostlyclean-target-libiberty
1607mostlyclean-target: maybe-mostlyclean-target-gperf
1608mostlyclean-target: maybe-mostlyclean-target-examples
1609mostlyclean-target: maybe-mostlyclean-target-libffi
1610mostlyclean-target: maybe-mostlyclean-target-libjava
1611mostlyclean-target: maybe-mostlyclean-target-zlib
1612mostlyclean-target: maybe-mostlyclean-target-boehm-gc
1613mostlyclean-target: maybe-mostlyclean-target-qthreads
1614mostlyclean-target: maybe-mostlyclean-target-rda
1615mostlyclean-target: maybe-mostlyclean-target-libada
1616mostlyclean-target: maybe-mostlyclean-target-libgomp
1358ccea 1617
295f4e42 1618.PHONY: do-clean
1061f99e 1619do-clean:
f41d6665 1620 @: $(MAKE); $(unstage)
e7c84bf8
PB
1621 @r=`${PWD_COMMAND}`; export r; \
1622 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1623 $(MAKE) $(RECURSE_FLAGS_TO_PASS) clean-host \
1061f99e 1624 clean-target
1061f99e 1625
1358ccea 1626
295f4e42 1627.PHONY: clean-host
cc11cc9b
PB
1628
1629clean-host: maybe-clean-ash
1630clean-host: maybe-clean-autoconf
1631clean-host: maybe-clean-automake
1632clean-host: maybe-clean-bash
1633clean-host: maybe-clean-bfd
1634clean-host: maybe-clean-opcodes
1635clean-host: maybe-clean-binutils
1636clean-host: maybe-clean-bison
1637clean-host: maybe-clean-byacc
1638clean-host: maybe-clean-bzip2
1639clean-host: maybe-clean-dejagnu
1640clean-host: maybe-clean-diff
1641clean-host: maybe-clean-dosutils
1642clean-host: maybe-clean-etc
1643clean-host: maybe-clean-fastjar
1644clean-host: maybe-clean-fileutils
1645clean-host: maybe-clean-findutils
1646clean-host: maybe-clean-find
1647clean-host: maybe-clean-fixincludes
1648clean-host: maybe-clean-flex
1649clean-host: maybe-clean-gas
1650clean-host: maybe-clean-gcc
1651clean-host: maybe-clean-gawk
1652clean-host: maybe-clean-gettext
1653clean-host: maybe-clean-gnuserv
1654clean-host: maybe-clean-gprof
1655clean-host: maybe-clean-gzip
1656clean-host: maybe-clean-hello
1657clean-host: maybe-clean-indent
1658clean-host: maybe-clean-intl
1659clean-host: maybe-clean-tcl
1660clean-host: maybe-clean-itcl
1661clean-host: maybe-clean-ld
1662clean-host: maybe-clean-libcpp
1663clean-host: maybe-clean-libdecnumber
1664clean-host: maybe-clean-libgui
1665clean-host: maybe-clean-libiberty
1666clean-host: maybe-clean-libtool
1667clean-host: maybe-clean-m4
1668clean-host: maybe-clean-make
1669clean-host: maybe-clean-mmalloc
1670clean-host: maybe-clean-patch
1671clean-host: maybe-clean-perl
1672clean-host: maybe-clean-prms
1673clean-host: maybe-clean-rcs
1674clean-host: maybe-clean-readline
1675clean-host: maybe-clean-release
1676clean-host: maybe-clean-recode
1677clean-host: maybe-clean-sed
1678clean-host: maybe-clean-send-pr
1679clean-host: maybe-clean-shellutils
1680clean-host: maybe-clean-sid
1681clean-host: maybe-clean-sim
1682clean-host: maybe-clean-tar
1683clean-host: maybe-clean-texinfo
1684clean-host: maybe-clean-textutils
1685clean-host: maybe-clean-time
1686clean-host: maybe-clean-uudecode
1687clean-host: maybe-clean-wdiff
1688clean-host: maybe-clean-zip
1689clean-host: maybe-clean-zlib
1690clean-host: maybe-clean-gdb
1691clean-host: maybe-clean-expect
1692clean-host: maybe-clean-guile
1693clean-host: maybe-clean-tk
1694clean-host: maybe-clean-libtermcap
1695clean-host: maybe-clean-utils
1696clean-host: maybe-clean-gnattools
1358ccea 1697
295f4e42 1698.PHONY: clean-target
cc11cc9b
PB
1699
1700clean-target: maybe-clean-target-libstdc++-v3
1701clean-target: maybe-clean-target-libmudflap
1702clean-target: maybe-clean-target-libssp
cc11cc9b
PB
1703clean-target: maybe-clean-target-newlib
1704clean-target: maybe-clean-target-libgfortran
1705clean-target: maybe-clean-target-libobjc
1706clean-target: maybe-clean-target-libtermcap
1707clean-target: maybe-clean-target-winsup
1708clean-target: maybe-clean-target-libgloss
1709clean-target: maybe-clean-target-libiberty
1710clean-target: maybe-clean-target-gperf
1711clean-target: maybe-clean-target-examples
1712clean-target: maybe-clean-target-libffi
1713clean-target: maybe-clean-target-libjava
1714clean-target: maybe-clean-target-zlib
1715clean-target: maybe-clean-target-boehm-gc
1716clean-target: maybe-clean-target-qthreads
1717clean-target: maybe-clean-target-rda
1718clean-target: maybe-clean-target-libada
1719clean-target: maybe-clean-target-libgomp
1358ccea 1720
295f4e42 1721.PHONY: do-distclean
1061f99e 1722do-distclean:
f41d6665 1723 @: $(MAKE); $(unstage)
e7c84bf8
PB
1724 @r=`${PWD_COMMAND}`; export r; \
1725 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1726 $(MAKE) $(RECURSE_FLAGS_TO_PASS) distclean-host \
1061f99e 1727 distclean-target
1061f99e 1728
1358ccea 1729
295f4e42 1730.PHONY: distclean-host
cc11cc9b
PB
1731
1732distclean-host: maybe-distclean-ash
1733distclean-host: maybe-distclean-autoconf
1734distclean-host: maybe-distclean-automake
1735distclean-host: maybe-distclean-bash
1736distclean-host: maybe-distclean-bfd
1737distclean-host: maybe-distclean-opcodes
1738distclean-host: maybe-distclean-binutils
1739distclean-host: maybe-distclean-bison
1740distclean-host: maybe-distclean-byacc
1741distclean-host: maybe-distclean-bzip2
1742distclean-host: maybe-distclean-dejagnu
1743distclean-host: maybe-distclean-diff
1744distclean-host: maybe-distclean-dosutils
1745distclean-host: maybe-distclean-etc
1746distclean-host: maybe-distclean-fastjar
1747distclean-host: maybe-distclean-fileutils
1748distclean-host: maybe-distclean-findutils
1749distclean-host: maybe-distclean-find
1750distclean-host: maybe-distclean-fixincludes
1751distclean-host: maybe-distclean-flex
1752distclean-host: maybe-distclean-gas
1753distclean-host: maybe-distclean-gcc
1754distclean-host: maybe-distclean-gawk
1755distclean-host: maybe-distclean-gettext
1756distclean-host: maybe-distclean-gnuserv
1757distclean-host: maybe-distclean-gprof
1758distclean-host: maybe-distclean-gzip
1759distclean-host: maybe-distclean-hello
1760distclean-host: maybe-distclean-indent
1761distclean-host: maybe-distclean-intl
1762distclean-host: maybe-distclean-tcl
1763distclean-host: maybe-distclean-itcl
1764distclean-host: maybe-distclean-ld
1765distclean-host: maybe-distclean-libcpp
1766distclean-host: maybe-distclean-libdecnumber
1767distclean-host: maybe-distclean-libgui
1768distclean-host: maybe-distclean-libiberty
1769distclean-host: maybe-distclean-libtool
1770distclean-host: maybe-distclean-m4
1771distclean-host: maybe-distclean-make
1772distclean-host: maybe-distclean-mmalloc
1773distclean-host: maybe-distclean-patch
1774distclean-host: maybe-distclean-perl
1775distclean-host: maybe-distclean-prms
1776distclean-host: maybe-distclean-rcs
1777distclean-host: maybe-distclean-readline
1778distclean-host: maybe-distclean-release
1779distclean-host: maybe-distclean-recode
1780distclean-host: maybe-distclean-sed
1781distclean-host: maybe-distclean-send-pr
1782distclean-host: maybe-distclean-shellutils
1783distclean-host: maybe-distclean-sid
1784distclean-host: maybe-distclean-sim
1785distclean-host: maybe-distclean-tar
1786distclean-host: maybe-distclean-texinfo
1787distclean-host: maybe-distclean-textutils
1788distclean-host: maybe-distclean-time
1789distclean-host: maybe-distclean-uudecode
1790distclean-host: maybe-distclean-wdiff
1791distclean-host: maybe-distclean-zip
1792distclean-host: maybe-distclean-zlib
1793distclean-host: maybe-distclean-gdb
1794distclean-host: maybe-distclean-expect
1795distclean-host: maybe-distclean-guile
1796distclean-host: maybe-distclean-tk
1797distclean-host: maybe-distclean-libtermcap
1798distclean-host: maybe-distclean-utils
1799distclean-host: maybe-distclean-gnattools
1358ccea 1800
295f4e42 1801.PHONY: distclean-target
cc11cc9b
PB
1802
1803distclean-target: maybe-distclean-target-libstdc++-v3
1804distclean-target: maybe-distclean-target-libmudflap
1805distclean-target: maybe-distclean-target-libssp
cc11cc9b
PB
1806distclean-target: maybe-distclean-target-newlib
1807distclean-target: maybe-distclean-target-libgfortran
1808distclean-target: maybe-distclean-target-libobjc
1809distclean-target: maybe-distclean-target-libtermcap
1810distclean-target: maybe-distclean-target-winsup
1811distclean-target: maybe-distclean-target-libgloss
1812distclean-target: maybe-distclean-target-libiberty
1813distclean-target: maybe-distclean-target-gperf
1814distclean-target: maybe-distclean-target-examples
1815distclean-target: maybe-distclean-target-libffi
1816distclean-target: maybe-distclean-target-libjava
1817distclean-target: maybe-distclean-target-zlib
1818distclean-target: maybe-distclean-target-boehm-gc
1819distclean-target: maybe-distclean-target-qthreads
1820distclean-target: maybe-distclean-target-rda
1821distclean-target: maybe-distclean-target-libada
1822distclean-target: maybe-distclean-target-libgomp
1358ccea 1823
295f4e42 1824.PHONY: do-maintainer-clean
1061f99e 1825do-maintainer-clean:
f41d6665 1826 @: $(MAKE); $(unstage)
e7c84bf8
PB
1827 @r=`${PWD_COMMAND}`; export r; \
1828 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1829 $(MAKE) $(RECURSE_FLAGS_TO_PASS) maintainer-clean-host \
1061f99e 1830 maintainer-clean-target
1061f99e 1831
1358ccea 1832
295f4e42 1833.PHONY: maintainer-clean-host
cc11cc9b
PB
1834
1835maintainer-clean-host: maybe-maintainer-clean-ash
1836maintainer-clean-host: maybe-maintainer-clean-autoconf
1837maintainer-clean-host: maybe-maintainer-clean-automake
1838maintainer-clean-host: maybe-maintainer-clean-bash
1839maintainer-clean-host: maybe-maintainer-clean-bfd
1840maintainer-clean-host: maybe-maintainer-clean-opcodes
1841maintainer-clean-host: maybe-maintainer-clean-binutils
1842maintainer-clean-host: maybe-maintainer-clean-bison
1843maintainer-clean-host: maybe-maintainer-clean-byacc
1844maintainer-clean-host: maybe-maintainer-clean-bzip2
1845maintainer-clean-host: maybe-maintainer-clean-dejagnu
1846maintainer-clean-host: maybe-maintainer-clean-diff
1847maintainer-clean-host: maybe-maintainer-clean-dosutils
1848maintainer-clean-host: maybe-maintainer-clean-etc
1849maintainer-clean-host: maybe-maintainer-clean-fastjar
1850maintainer-clean-host: maybe-maintainer-clean-fileutils
1851maintainer-clean-host: maybe-maintainer-clean-findutils
1852maintainer-clean-host: maybe-maintainer-clean-find
1853maintainer-clean-host: maybe-maintainer-clean-fixincludes
1854maintainer-clean-host: maybe-maintainer-clean-flex
1855maintainer-clean-host: maybe-maintainer-clean-gas
1856maintainer-clean-host: maybe-maintainer-clean-gcc
1857maintainer-clean-host: maybe-maintainer-clean-gawk
1858maintainer-clean-host: maybe-maintainer-clean-gettext
1859maintainer-clean-host: maybe-maintainer-clean-gnuserv
1860maintainer-clean-host: maybe-maintainer-clean-gprof
1861maintainer-clean-host: maybe-maintainer-clean-gzip
1862maintainer-clean-host: maybe-maintainer-clean-hello
1863maintainer-clean-host: maybe-maintainer-clean-indent
1864maintainer-clean-host: maybe-maintainer-clean-intl
1865maintainer-clean-host: maybe-maintainer-clean-tcl
1866maintainer-clean-host: maybe-maintainer-clean-itcl
1867maintainer-clean-host: maybe-maintainer-clean-ld
1868maintainer-clean-host: maybe-maintainer-clean-libcpp
1869maintainer-clean-host: maybe-maintainer-clean-libdecnumber
1870maintainer-clean-host: maybe-maintainer-clean-libgui
1871maintainer-clean-host: maybe-maintainer-clean-libiberty
1872maintainer-clean-host: maybe-maintainer-clean-libtool
1873maintainer-clean-host: maybe-maintainer-clean-m4
1874maintainer-clean-host: maybe-maintainer-clean-make
1875maintainer-clean-host: maybe-maintainer-clean-mmalloc
1876maintainer-clean-host: maybe-maintainer-clean-patch
1877maintainer-clean-host: maybe-maintainer-clean-perl
1878maintainer-clean-host: maybe-maintainer-clean-prms
1879maintainer-clean-host: maybe-maintainer-clean-rcs
1880maintainer-clean-host: maybe-maintainer-clean-readline
1881maintainer-clean-host: maybe-maintainer-clean-release
1882maintainer-clean-host: maybe-maintainer-clean-recode
1883maintainer-clean-host: maybe-maintainer-clean-sed
1884maintainer-clean-host: maybe-maintainer-clean-send-pr
1885maintainer-clean-host: maybe-maintainer-clean-shellutils
1886maintainer-clean-host: maybe-maintainer-clean-sid
1887maintainer-clean-host: maybe-maintainer-clean-sim
1888maintainer-clean-host: maybe-maintainer-clean-tar
1889maintainer-clean-host: maybe-maintainer-clean-texinfo
1890maintainer-clean-host: maybe-maintainer-clean-textutils
1891maintainer-clean-host: maybe-maintainer-clean-time
1892maintainer-clean-host: maybe-maintainer-clean-uudecode
1893maintainer-clean-host: maybe-maintainer-clean-wdiff
1894maintainer-clean-host: maybe-maintainer-clean-zip
1895maintainer-clean-host: maybe-maintainer-clean-zlib
1896maintainer-clean-host: maybe-maintainer-clean-gdb
1897maintainer-clean-host: maybe-maintainer-clean-expect
1898maintainer-clean-host: maybe-maintainer-clean-guile
1899maintainer-clean-host: maybe-maintainer-clean-tk
1900maintainer-clean-host: maybe-maintainer-clean-libtermcap
1901maintainer-clean-host: maybe-maintainer-clean-utils
1902maintainer-clean-host: maybe-maintainer-clean-gnattools
1358ccea 1903
295f4e42 1904.PHONY: maintainer-clean-target
cc11cc9b
PB
1905
1906maintainer-clean-target: maybe-maintainer-clean-target-libstdc++-v3
1907maintainer-clean-target: maybe-maintainer-clean-target-libmudflap
1908maintainer-clean-target: maybe-maintainer-clean-target-libssp
cc11cc9b
PB
1909maintainer-clean-target: maybe-maintainer-clean-target-newlib
1910maintainer-clean-target: maybe-maintainer-clean-target-libgfortran
1911maintainer-clean-target: maybe-maintainer-clean-target-libobjc
1912maintainer-clean-target: maybe-maintainer-clean-target-libtermcap
1913maintainer-clean-target: maybe-maintainer-clean-target-winsup
1914maintainer-clean-target: maybe-maintainer-clean-target-libgloss
1915maintainer-clean-target: maybe-maintainer-clean-target-libiberty
1916maintainer-clean-target: maybe-maintainer-clean-target-gperf
1917maintainer-clean-target: maybe-maintainer-clean-target-examples
1918maintainer-clean-target: maybe-maintainer-clean-target-libffi
1919maintainer-clean-target: maybe-maintainer-clean-target-libjava
1920maintainer-clean-target: maybe-maintainer-clean-target-zlib
1921maintainer-clean-target: maybe-maintainer-clean-target-boehm-gc
1922maintainer-clean-target: maybe-maintainer-clean-target-qthreads
1923maintainer-clean-target: maybe-maintainer-clean-target-rda
1924maintainer-clean-target: maybe-maintainer-clean-target-libada
1925maintainer-clean-target: maybe-maintainer-clean-target-libgomp
1358ccea 1926
1358ccea 1927
295f4e42 1928# Here are the targets which correspond to the do-X targets.
1358ccea 1929
65d6e994 1930.PHONY: info installcheck dvi html install-info install-html
295f4e42
NN
1931.PHONY: clean distclean mostlyclean maintainer-clean realclean
1932.PHONY: local-clean local-distclean local-maintainer-clean
1933info: do-info
1934installcheck: do-installcheck
1935dvi: do-dvi
f87a2b2e 1936html: do-html
1358ccea 1937
295f4e42
NN
1938# Make sure makeinfo is built before we do a `make info', if we're
1939# in fact building texinfo.
1940do-info: maybe-all-texinfo
1358ccea 1941
295f4e42 1942install-info: do-install-info dir.info
8c90b13a 1943 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
295f4e42
NN
1944 if [ -f dir.info ] ; then \
1945 $(INSTALL_DATA) dir.info $(DESTDIR)$(infodir)/dir.info ; \
1946 else true ; fi
1358ccea 1947
65d6e994
CD
1948install-html: do-install-html
1949
295f4e42
NN
1950local-clean:
1951 -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
1358ccea 1952
295f4e42
NN
1953local-distclean:
1954 -rm -f Makefile config.status config.cache mh-frag mt-frag
f41d6665 1955 -rm -f maybedep.tmp serdep.tmp
295f4e42
NN
1956 -if [ "$(TARGET_SUBDIR)" != "." ]; then \
1957 rm -rf $(TARGET_SUBDIR); \
1958 else true; fi
1959 -rm -rf $(BUILD_SUBDIR)
215c351a
PB
1960 -if [ "$(HOST_SUBDIR)" != "." ]; then \
1961 rm -rf $(HOST_SUBDIR); \
1962 else true; fi
295f4e42
NN
1963 -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile
1964 -rm -f texinfo/doc/Makefile texinfo/po/POTFILES
1965 -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
1966 -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
1967 -rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null
1358ccea 1968
295f4e42
NN
1969local-maintainer-clean:
1970 @echo "This command is intended for maintainers to use;"
1971 @echo "it deletes files that may require special tools to rebuild."
1358ccea 1972
295f4e42
NN
1973clean: do-clean local-clean
1974mostlyclean: do-mostlyclean local-clean
1975distclean: do-distclean local-clean local-distclean
05750653 1976maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean
295f4e42
NN
1977maintainer-clean: local-distclean
1978realclean: maintainer-clean
1358ccea 1979
2f3bdde7 1980# Extra dependency for clean-target, owing to the mixed nature of gcc.
295f4e42
NN
1981clean-target: clean-target-libgcc
1982clean-target-libgcc:
2f3bdde7 1983 test ! -d gcc || (cd gcc && $(MAKE) $@)
1358ccea 1984
295f4e42 1985# Check target.
1358ccea 1986
295f4e42
NN
1987.PHONY: check do-check
1988check: do-check
1358ccea 1989
295f4e42 1990# Only include modules actually being configured and built.
1061f99e
PB
1991.PHONY: check-host
1992check-host: \
295f4e42
NN
1993 maybe-check-ash \
1994 maybe-check-autoconf \
1995 maybe-check-automake \
1996 maybe-check-bash \
1997 maybe-check-bfd \
1998 maybe-check-opcodes \
1999 maybe-check-binutils \
2000 maybe-check-bison \
2001 maybe-check-byacc \
2002 maybe-check-bzip2 \
2003 maybe-check-dejagnu \
2004 maybe-check-diff \
2005 maybe-check-dosutils \
2006 maybe-check-etc \
2007 maybe-check-fastjar \
2008 maybe-check-fileutils \
2009 maybe-check-findutils \
2010 maybe-check-find \
53c7ffe7 2011 maybe-check-fixincludes \
295f4e42
NN
2012 maybe-check-flex \
2013 maybe-check-gas \
d32ab992 2014 maybe-check-gcc \
295f4e42
NN
2015 maybe-check-gawk \
2016 maybe-check-gettext \
2017 maybe-check-gnuserv \
2018 maybe-check-gprof \
2019 maybe-check-gzip \
2020 maybe-check-hello \
2021 maybe-check-indent \
2022 maybe-check-intl \
2023 maybe-check-tcl \
2024 maybe-check-itcl \
2025 maybe-check-ld \
4f4e53dd 2026 maybe-check-libcpp \
a4b6c45a 2027 maybe-check-libdecnumber \
295f4e42
NN
2028 maybe-check-libgui \
2029 maybe-check-libiberty \
2030 maybe-check-libtool \
2031 maybe-check-m4 \
2032 maybe-check-make \
2033 maybe-check-mmalloc \
2034 maybe-check-patch \
2035 maybe-check-perl \
2036 maybe-check-prms \
2037 maybe-check-rcs \
2038 maybe-check-readline \
2039 maybe-check-release \
2040 maybe-check-recode \
2041 maybe-check-sed \
2042 maybe-check-send-pr \
2043 maybe-check-shellutils \
2044 maybe-check-sid \
2045 maybe-check-sim \
2046 maybe-check-tar \
2047 maybe-check-texinfo \
2048 maybe-check-textutils \
2049 maybe-check-time \
2050 maybe-check-uudecode \
2051 maybe-check-wdiff \
2052 maybe-check-zip \
2053 maybe-check-zlib \
2054 maybe-check-gdb \
2055 maybe-check-expect \
2056 maybe-check-guile \
2057 maybe-check-tk \
295f4e42
NN
2058 maybe-check-libtermcap \
2059 maybe-check-utils \
1061f99e
PB
2060 maybe-check-gnattools
2061
2062.PHONY: check-target
2063check-target: \
295f4e42 2064 maybe-check-target-libstdc++-v3 \
6de9cd9a 2065 maybe-check-target-libmudflap \
77008252 2066 maybe-check-target-libssp \
295f4e42 2067 maybe-check-target-newlib \
6de9cd9a 2068 maybe-check-target-libgfortran \
295f4e42
NN
2069 maybe-check-target-libobjc \
2070 maybe-check-target-libtermcap \
2071 maybe-check-target-winsup \
2072 maybe-check-target-libgloss \
2073 maybe-check-target-libiberty \
2074 maybe-check-target-gperf \
2075 maybe-check-target-examples \
2076 maybe-check-target-libffi \
2077 maybe-check-target-libjava \
2078 maybe-check-target-zlib \
2079 maybe-check-target-boehm-gc \
2080 maybe-check-target-qthreads \
2081 maybe-check-target-rda \
953ff289
DN
2082 maybe-check-target-libada \
2083 maybe-check-target-libgomp
1061f99e
PB
2084
2085do-check:
f41d6665 2086 @: $(MAKE); $(unstage)
e7c84bf8
PB
2087 @r=`${PWD_COMMAND}`; export r; \
2088 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2089 $(MAKE) $(RECURSE_FLAGS_TO_PASS) check-host check-target
1358ccea 2090
295f4e42 2091# Automated reporting of test results.
1358ccea 2092
295f4e42
NN
2093warning.log: build.log
2094 $(srcdir)/contrib/warn_summary build.log > $@
d9cdb878 2095
295f4e42
NN
2096mail-report.log:
2097 if test x'$(BOOT_CFLAGS)' != x''; then \
2098 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
2099 fi; \
2100 $(srcdir)/contrib/test_summary -t >$@
2101 chmod +x $@
2102 echo If you really want to send e-mail, run ./$@ now
d9cdb878 2103
295f4e42
NN
2104mail-report-with-warnings.log: warning.log
2105 if test x'$(BOOT_CFLAGS)' != x''; then \
2106 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
2107 fi; \
2108 $(srcdir)/contrib/test_summary -t -i warning.log >$@
2109 chmod +x $@
2110 echo If you really want to send e-mail, run ./$@ now
d9cdb878 2111
295f4e42 2112# Installation targets.
1358ccea 2113
295f4e42 2114.PHONY: install uninstall
1061f99e 2115install:
f41d6665 2116 @: $(MAKE); $(unstage)
e7c84bf8
PB
2117 @r=`${PWD_COMMAND}`; export r; \
2118 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2119 $(MAKE) $(RECURSE_FLAGS_TO_PASS) installdirs install-host install-target
1358ccea 2120
295f4e42
NN
2121.PHONY: install-host-nogcc
2122install-host-nogcc: \
2123 maybe-install-ash \
2124 maybe-install-autoconf \
2125 maybe-install-automake \
2126 maybe-install-bash \
2127 maybe-install-bfd \
2128 maybe-install-opcodes \
2129 maybe-install-binutils \
2130 maybe-install-bison \
2131 maybe-install-byacc \
2132 maybe-install-bzip2 \
2133 maybe-install-dejagnu \
2134 maybe-install-diff \
2135 maybe-install-dosutils \
2136 maybe-install-etc \
2137 maybe-install-fastjar \
2138 maybe-install-fileutils \
2139 maybe-install-findutils \
2140 maybe-install-find \
53c7ffe7 2141 maybe-install-fixincludes \
295f4e42
NN
2142 maybe-install-flex \
2143 maybe-install-gas \
2144 maybe-install-gawk \
2145 maybe-install-gettext \
2146 maybe-install-gnuserv \
2147 maybe-install-gprof \
2148 maybe-install-gzip \
2149 maybe-install-hello \
2150 maybe-install-indent \
2151 maybe-install-intl \
2152 maybe-install-tcl \
2153 maybe-install-itcl \
2154 maybe-install-ld \
4f4e53dd 2155 maybe-install-libcpp \
a4b6c45a 2156 maybe-install-libdecnumber \
295f4e42
NN
2157 maybe-install-libgui \
2158 maybe-install-libiberty \
2159 maybe-install-libtool \
2160 maybe-install-m4 \
2161 maybe-install-make \
2162 maybe-install-mmalloc \
2163 maybe-install-patch \
2164 maybe-install-perl \
2165 maybe-install-prms \
2166 maybe-install-rcs \
2167 maybe-install-readline \
2168 maybe-install-release \
2169 maybe-install-recode \
2170 maybe-install-sed \
2171 maybe-install-send-pr \
2172 maybe-install-shellutils \
2173 maybe-install-sid \
2174 maybe-install-sim \
2175 maybe-install-tar \
2176 maybe-install-texinfo \
2177 maybe-install-textutils \
2178 maybe-install-time \
2179 maybe-install-uudecode \
2180 maybe-install-wdiff \
2181 maybe-install-zip \
2182 maybe-install-zlib \
2183 maybe-install-gdb \
2184 maybe-install-expect \
2185 maybe-install-guile \
2186 maybe-install-tk \
295f4e42 2187 maybe-install-libtermcap \
5395b47b
NN
2188 maybe-install-utils \
2189 maybe-install-gnattools
295f4e42
NN
2190
2191.PHONY: install-host
d32ab992 2192install-host: \
295f4e42
NN
2193 maybe-install-ash \
2194 maybe-install-autoconf \
2195 maybe-install-automake \
2196 maybe-install-bash \
2197 maybe-install-bfd \
2198 maybe-install-opcodes \
2199 maybe-install-binutils \
2200 maybe-install-bison \
2201 maybe-install-byacc \
2202 maybe-install-bzip2 \
2203 maybe-install-dejagnu \
2204 maybe-install-diff \
2205 maybe-install-dosutils \
2206 maybe-install-etc \
2207 maybe-install-fastjar \
2208 maybe-install-fileutils \
2209 maybe-install-findutils \
2210 maybe-install-find \
53c7ffe7 2211 maybe-install-fixincludes \
295f4e42
NN
2212 maybe-install-flex \
2213 maybe-install-gas \
d32ab992 2214 maybe-install-gcc \
295f4e42
NN
2215 maybe-install-gawk \
2216 maybe-install-gettext \
2217 maybe-install-gnuserv \
2218 maybe-install-gprof \
2219 maybe-install-gzip \
2220 maybe-install-hello \
2221 maybe-install-indent \
2222 maybe-install-intl \
2223 maybe-install-tcl \
2224 maybe-install-itcl \
2225 maybe-install-ld \
4f4e53dd 2226 maybe-install-libcpp \
a4b6c45a 2227 maybe-install-libdecnumber \
295f4e42
NN
2228 maybe-install-libgui \
2229 maybe-install-libiberty \
2230 maybe-install-libtool \
2231 maybe-install-m4 \
2232 maybe-install-make \
2233 maybe-install-mmalloc \
2234 maybe-install-patch \
2235 maybe-install-perl \
2236 maybe-install-prms \
2237 maybe-install-rcs \
2238 maybe-install-readline \
2239 maybe-install-release \
2240 maybe-install-recode \
2241 maybe-install-sed \
2242 maybe-install-send-pr \
2243 maybe-install-shellutils \
2244 maybe-install-sid \
2245 maybe-install-sim \
2246 maybe-install-tar \
2247 maybe-install-texinfo \
2248 maybe-install-textutils \
2249 maybe-install-time \
2250 maybe-install-uudecode \
2251 maybe-install-wdiff \
2252 maybe-install-zip \
2253 maybe-install-zlib \
2254 maybe-install-gdb \
2255 maybe-install-expect \
2256 maybe-install-guile \
2257 maybe-install-tk \
295f4e42 2258 maybe-install-libtermcap \
5395b47b
NN
2259 maybe-install-utils \
2260 maybe-install-gnattools
295f4e42
NN
2261
2262.PHONY: install-target
2263install-target: \
2264 maybe-install-target-libstdc++-v3 \
6de9cd9a 2265 maybe-install-target-libmudflap \
77008252 2266 maybe-install-target-libssp \
295f4e42 2267 maybe-install-target-newlib \
6de9cd9a 2268 maybe-install-target-libgfortran \
295f4e42
NN
2269 maybe-install-target-libobjc \
2270 maybe-install-target-libtermcap \
2271 maybe-install-target-winsup \
2272 maybe-install-target-libgloss \
2273 maybe-install-target-libiberty \
2274 maybe-install-target-gperf \
2275 maybe-install-target-examples \
2276 maybe-install-target-libffi \
2277 maybe-install-target-libjava \
2278 maybe-install-target-zlib \
2279 maybe-install-target-boehm-gc \
2280 maybe-install-target-qthreads \
2281 maybe-install-target-rda \
953ff289
DN
2282 maybe-install-target-libada \
2283 maybe-install-target-libgomp
1358ccea 2284
295f4e42
NN
2285uninstall:
2286 @echo "the uninstall target is not supported in this tree"
1358ccea 2287
295f4e42
NN
2288.PHONY: install.all
2289install.all: install-no-fixedincludes
2290 @if [ -f ./gcc/Makefile ] ; then \
2291 r=`${PWD_COMMAND}` ; export r ; \
f41d6665 2292 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a52a0a7f 2293 $(HOST_EXPORTS) \
295f4e42
NN
2294 (cd ./gcc && \
2295 $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \
2296 else \
2297 true ; \
2298 fi
1358ccea 2299
295f4e42
NN
2300# install-no-fixedincludes is used because Cygnus can not distribute
2301# the fixed header files.
2302.PHONY: install-no-fixedincludes
2303install-no-fixedincludes: installdirs install-host-nogcc \
2304 install-target gcc-no-fixedincludes
1358ccea 2305
295f4e42 2306### other supporting targets
1358ccea 2307
295f4e42
NN
2308MAKEDIRS= \
2309 $(DESTDIR)$(prefix) \
2310 $(DESTDIR)$(exec_prefix)
2311.PHONY: installdirs
2312installdirs: mkinstalldirs
2313 $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
1358ccea 2314
295f4e42
NN
2315dir.info: do-install-info
2316 if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \
2317 $(srcdir)/texinfo/gen-info-dir $(DESTDIR)$(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \
2318 mv -f dir.info.new dir.info ; \
2319 else true ; \
2320 fi
1358ccea 2321
295f4e42
NN
2322dist:
2323 @echo "Building a full distribution of this tree isn't done"
05750653 2324 @echo "via 'make dist'. Check out the etc/ subdirectory"
1358ccea 2325
295f4e42 2326etags tags: TAGS
1358ccea 2327
295f4e42
NN
2328# Right now this just builds TAGS in each subdirectory. emacs19 has the
2329# ability to use several tags files at once, so there is probably no need
2330# to combine them into one big TAGS file (like CVS 1.3 does). We could
2331# (if we felt like it) have this Makefile write a piece of elisp which
2332# the user could load to tell emacs19 where all the TAGS files we just
2333# built are.
2334TAGS: do-TAGS
1358ccea 2335
25b42232
PB
2336# ------------------------------------
2337# Macros for configure and all targets
2338# ------------------------------------
2339
2340
2341
2342
2343
295f4e42
NN
2344# --------------------------------------
2345# Modules which run on the build machine
2346# --------------------------------------
1358ccea 2347
25b42232 2348
295f4e42
NN
2349.PHONY: configure-build-libiberty maybe-configure-build-libiberty
2350maybe-configure-build-libiberty:
3ff3adad
PB
2351@if gcc-bootstrap
2352configure-build-libiberty: stage_current
2353@endif gcc-bootstrap
60975492
PB
2354@if build-libiberty
2355maybe-configure-build-libiberty: configure-build-libiberty
cc11cc9b 2356configure-build-libiberty:
f41d6665 2357 @: $(MAKE); $(unstage)
cc11cc9b 2358 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 2359 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
2360 test ! -f $(BUILD_SUBDIR)/libiberty/Makefile || exit 0; \
2361 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/libiberty ; \
4fc4dd12 2362 $(BUILD_EXPORTS) \
295f4e42
NN
2363 echo Configuring in $(BUILD_SUBDIR)/libiberty; \
2364 cd "$(BUILD_SUBDIR)/libiberty" || exit 1; \
2365 case $(srcdir) in \
215c351a
PB
2366 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2367 *) topdir=`echo $(BUILD_SUBDIR)/libiberty/ | \
2368 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 2369 esac; \
215c351a
PB
2370 srcdiroption="--srcdir=$${topdir}/libiberty"; \
2371 libsrcdir="$$s/libiberty"; \
295f4e42
NN
2372 rm -f no-such-file || : ; \
2373 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 2374 $(BUILD_CONFIGARGS) $${srcdiroption} \
1358ccea 2375 || exit 1
60975492 2376@endif build-libiberty
1358ccea 2377
25b42232
PB
2378
2379
ce406537
PB
2380
2381
295f4e42
NN
2382.PHONY: all-build-libiberty maybe-all-build-libiberty
2383maybe-all-build-libiberty:
3ff3adad
PB
2384@if gcc-bootstrap
2385all-build-libiberty: stage_current
2386@endif gcc-bootstrap
60975492 2387@if build-libiberty
7c27e184 2388TARGET-build-libiberty=all
60975492 2389maybe-all-build-libiberty: all-build-libiberty
295f4e42 2390all-build-libiberty: configure-build-libiberty
f41d6665 2391 @: $(MAKE); $(unstage)
295f4e42
NN
2392 @r=`${PWD_COMMAND}`; export r; \
2393 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 2394 $(BUILD_EXPORTS) \
7c27e184 2395 (cd $(BUILD_SUBDIR)/libiberty && \
25b42232 2396 $(MAKE) $(TARGET-build-libiberty))
60975492 2397@endif build-libiberty
295f4e42 2398
25b42232
PB
2399
2400
ce406537
PB
2401
2402
23f6b2f9
PB
2403.PHONY: configure-build-bison maybe-configure-build-bison
2404maybe-configure-build-bison:
3ff3adad
PB
2405@if gcc-bootstrap
2406configure-build-bison: stage_current
2407@endif gcc-bootstrap
23f6b2f9
PB
2408@if build-bison
2409maybe-configure-build-bison: configure-build-bison
cc11cc9b 2410configure-build-bison:
f41d6665 2411 @: $(MAKE); $(unstage)
cc11cc9b 2412 @r=`${PWD_COMMAND}`; export r; \
23f6b2f9 2413 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
2414 test ! -f $(BUILD_SUBDIR)/bison/Makefile || exit 0; \
2415 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/bison ; \
23f6b2f9
PB
2416 $(BUILD_EXPORTS) \
2417 echo Configuring in $(BUILD_SUBDIR)/bison; \
2418 cd "$(BUILD_SUBDIR)/bison" || exit 1; \
2419 case $(srcdir) in \
215c351a
PB
2420 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2421 *) topdir=`echo $(BUILD_SUBDIR)/bison/ | \
2422 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23f6b2f9 2423 esac; \
215c351a
PB
2424 srcdiroption="--srcdir=$${topdir}/bison"; \
2425 libsrcdir="$$s/bison"; \
23f6b2f9
PB
2426 rm -f no-such-file || : ; \
2427 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 2428 $(BUILD_CONFIGARGS) $${srcdiroption} \
23f6b2f9
PB
2429 || exit 1
2430@endif build-bison
2431
25b42232
PB
2432
2433
ce406537
PB
2434
2435
23f6b2f9
PB
2436.PHONY: all-build-bison maybe-all-build-bison
2437maybe-all-build-bison:
3ff3adad
PB
2438@if gcc-bootstrap
2439all-build-bison: stage_current
2440@endif gcc-bootstrap
23f6b2f9 2441@if build-bison
7c27e184 2442TARGET-build-bison=all
23f6b2f9
PB
2443maybe-all-build-bison: all-build-bison
2444all-build-bison: configure-build-bison
f41d6665 2445 @: $(MAKE); $(unstage)
23f6b2f9
PB
2446 @r=`${PWD_COMMAND}`; export r; \
2447 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2448 $(BUILD_EXPORTS) \
7c27e184 2449 (cd $(BUILD_SUBDIR)/bison && \
25b42232 2450 $(MAKE) $(TARGET-build-bison))
23f6b2f9
PB
2451@endif build-bison
2452
25b42232
PB
2453
2454
ce406537
PB
2455
2456
23f6b2f9
PB
2457.PHONY: configure-build-byacc maybe-configure-build-byacc
2458maybe-configure-build-byacc:
3ff3adad
PB
2459@if gcc-bootstrap
2460configure-build-byacc: stage_current
2461@endif gcc-bootstrap
23f6b2f9
PB
2462@if build-byacc
2463maybe-configure-build-byacc: configure-build-byacc
cc11cc9b 2464configure-build-byacc:
f41d6665 2465 @: $(MAKE); $(unstage)
cc11cc9b 2466 @r=`${PWD_COMMAND}`; export r; \
23f6b2f9 2467 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
2468 test ! -f $(BUILD_SUBDIR)/byacc/Makefile || exit 0; \
2469 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/byacc ; \
23f6b2f9
PB
2470 $(BUILD_EXPORTS) \
2471 echo Configuring in $(BUILD_SUBDIR)/byacc; \
2472 cd "$(BUILD_SUBDIR)/byacc" || exit 1; \
2473 case $(srcdir) in \
215c351a
PB
2474 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2475 *) topdir=`echo $(BUILD_SUBDIR)/byacc/ | \
2476 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23f6b2f9 2477 esac; \
215c351a
PB
2478 srcdiroption="--srcdir=$${topdir}/byacc"; \
2479 libsrcdir="$$s/byacc"; \
23f6b2f9
PB
2480 rm -f no-such-file || : ; \
2481 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 2482 $(BUILD_CONFIGARGS) $${srcdiroption} \
23f6b2f9
PB
2483 || exit 1
2484@endif build-byacc
2485
25b42232
PB
2486
2487
ce406537
PB
2488
2489
23f6b2f9
PB
2490.PHONY: all-build-byacc maybe-all-build-byacc
2491maybe-all-build-byacc:
3ff3adad
PB
2492@if gcc-bootstrap
2493all-build-byacc: stage_current
2494@endif gcc-bootstrap
23f6b2f9 2495@if build-byacc
7c27e184 2496TARGET-build-byacc=all
23f6b2f9
PB
2497maybe-all-build-byacc: all-build-byacc
2498all-build-byacc: configure-build-byacc
f41d6665 2499 @: $(MAKE); $(unstage)
23f6b2f9
PB
2500 @r=`${PWD_COMMAND}`; export r; \
2501 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2502 $(BUILD_EXPORTS) \
7c27e184 2503 (cd $(BUILD_SUBDIR)/byacc && \
25b42232 2504 $(MAKE) $(TARGET-build-byacc))
23f6b2f9
PB
2505@endif build-byacc
2506
25b42232
PB
2507
2508
ce406537
PB
2509
2510
23f6b2f9
PB
2511.PHONY: configure-build-flex maybe-configure-build-flex
2512maybe-configure-build-flex:
3ff3adad
PB
2513@if gcc-bootstrap
2514configure-build-flex: stage_current
2515@endif gcc-bootstrap
23f6b2f9
PB
2516@if build-flex
2517maybe-configure-build-flex: configure-build-flex
cc11cc9b 2518configure-build-flex:
f41d6665 2519 @: $(MAKE); $(unstage)
cc11cc9b 2520 @r=`${PWD_COMMAND}`; export r; \
23f6b2f9 2521 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
2522 test ! -f $(BUILD_SUBDIR)/flex/Makefile || exit 0; \
2523 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/flex ; \
23f6b2f9
PB
2524 $(BUILD_EXPORTS) \
2525 echo Configuring in $(BUILD_SUBDIR)/flex; \
2526 cd "$(BUILD_SUBDIR)/flex" || exit 1; \
2527 case $(srcdir) in \
215c351a
PB
2528 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2529 *) topdir=`echo $(BUILD_SUBDIR)/flex/ | \
2530 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23f6b2f9 2531 esac; \
215c351a
PB
2532 srcdiroption="--srcdir=$${topdir}/flex"; \
2533 libsrcdir="$$s/flex"; \
23f6b2f9
PB
2534 rm -f no-such-file || : ; \
2535 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 2536 $(BUILD_CONFIGARGS) $${srcdiroption} \
23f6b2f9
PB
2537 || exit 1
2538@endif build-flex
2539
25b42232
PB
2540
2541
ce406537
PB
2542
2543
23f6b2f9
PB
2544.PHONY: all-build-flex maybe-all-build-flex
2545maybe-all-build-flex:
3ff3adad
PB
2546@if gcc-bootstrap
2547all-build-flex: stage_current
2548@endif gcc-bootstrap
23f6b2f9 2549@if build-flex
7c27e184 2550TARGET-build-flex=all
23f6b2f9
PB
2551maybe-all-build-flex: all-build-flex
2552all-build-flex: configure-build-flex
f41d6665 2553 @: $(MAKE); $(unstage)
23f6b2f9
PB
2554 @r=`${PWD_COMMAND}`; export r; \
2555 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2556 $(BUILD_EXPORTS) \
7c27e184 2557 (cd $(BUILD_SUBDIR)/flex && \
25b42232 2558 $(MAKE) $(TARGET-build-flex))
23f6b2f9
PB
2559@endif build-flex
2560
25b42232
PB
2561
2562
ce406537
PB
2563
2564
23f6b2f9
PB
2565.PHONY: configure-build-m4 maybe-configure-build-m4
2566maybe-configure-build-m4:
3ff3adad
PB
2567@if gcc-bootstrap
2568configure-build-m4: stage_current
2569@endif gcc-bootstrap
23f6b2f9
PB
2570@if build-m4
2571maybe-configure-build-m4: configure-build-m4
cc11cc9b 2572configure-build-m4:
f41d6665 2573 @: $(MAKE); $(unstage)
cc11cc9b 2574 @r=`${PWD_COMMAND}`; export r; \
23f6b2f9 2575 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
2576 test ! -f $(BUILD_SUBDIR)/m4/Makefile || exit 0; \
2577 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/m4 ; \
23f6b2f9
PB
2578 $(BUILD_EXPORTS) \
2579 echo Configuring in $(BUILD_SUBDIR)/m4; \
2580 cd "$(BUILD_SUBDIR)/m4" || exit 1; \
2581 case $(srcdir) in \
215c351a
PB
2582 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2583 *) topdir=`echo $(BUILD_SUBDIR)/m4/ | \
2584 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23f6b2f9 2585 esac; \
215c351a
PB
2586 srcdiroption="--srcdir=$${topdir}/m4"; \
2587 libsrcdir="$$s/m4"; \
23f6b2f9
PB
2588 rm -f no-such-file || : ; \
2589 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 2590 $(BUILD_CONFIGARGS) $${srcdiroption} \
23f6b2f9
PB
2591 || exit 1
2592@endif build-m4
2593
25b42232
PB
2594
2595
ce406537
PB
2596
2597
23f6b2f9
PB
2598.PHONY: all-build-m4 maybe-all-build-m4
2599maybe-all-build-m4:
3ff3adad
PB
2600@if gcc-bootstrap
2601all-build-m4: stage_current
2602@endif gcc-bootstrap
23f6b2f9 2603@if build-m4
7c27e184 2604TARGET-build-m4=all
23f6b2f9
PB
2605maybe-all-build-m4: all-build-m4
2606all-build-m4: configure-build-m4
f41d6665 2607 @: $(MAKE); $(unstage)
23f6b2f9
PB
2608 @r=`${PWD_COMMAND}`; export r; \
2609 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2610 $(BUILD_EXPORTS) \
7c27e184 2611 (cd $(BUILD_SUBDIR)/m4 && \
25b42232 2612 $(MAKE) $(TARGET-build-m4))
23f6b2f9
PB
2613@endif build-m4
2614
25b42232
PB
2615
2616
ce406537
PB
2617
2618
23f6b2f9
PB
2619.PHONY: configure-build-texinfo maybe-configure-build-texinfo
2620maybe-configure-build-texinfo:
3ff3adad
PB
2621@if gcc-bootstrap
2622configure-build-texinfo: stage_current
2623@endif gcc-bootstrap
23f6b2f9
PB
2624@if build-texinfo
2625maybe-configure-build-texinfo: configure-build-texinfo
cc11cc9b 2626configure-build-texinfo:
f41d6665 2627 @: $(MAKE); $(unstage)
cc11cc9b 2628 @r=`${PWD_COMMAND}`; export r; \
23f6b2f9 2629 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
2630 test ! -f $(BUILD_SUBDIR)/texinfo/Makefile || exit 0; \
2631 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/texinfo ; \
23f6b2f9
PB
2632 $(BUILD_EXPORTS) \
2633 echo Configuring in $(BUILD_SUBDIR)/texinfo; \
2634 cd "$(BUILD_SUBDIR)/texinfo" || exit 1; \
2635 case $(srcdir) in \
215c351a
PB
2636 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2637 *) topdir=`echo $(BUILD_SUBDIR)/texinfo/ | \
2638 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23f6b2f9 2639 esac; \
215c351a
PB
2640 srcdiroption="--srcdir=$${topdir}/texinfo"; \
2641 libsrcdir="$$s/texinfo"; \
23f6b2f9
PB
2642 rm -f no-such-file || : ; \
2643 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 2644 $(BUILD_CONFIGARGS) $${srcdiroption} \
23f6b2f9
PB
2645 || exit 1
2646@endif build-texinfo
2647
25b42232
PB
2648
2649
ce406537
PB
2650
2651
23f6b2f9
PB
2652.PHONY: all-build-texinfo maybe-all-build-texinfo
2653maybe-all-build-texinfo:
3ff3adad
PB
2654@if gcc-bootstrap
2655all-build-texinfo: stage_current
2656@endif gcc-bootstrap
23f6b2f9 2657@if build-texinfo
7c27e184 2658TARGET-build-texinfo=all
23f6b2f9
PB
2659maybe-all-build-texinfo: all-build-texinfo
2660all-build-texinfo: configure-build-texinfo
f41d6665 2661 @: $(MAKE); $(unstage)
23f6b2f9
PB
2662 @r=`${PWD_COMMAND}`; export r; \
2663 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2664 $(BUILD_EXPORTS) \
7c27e184 2665 (cd $(BUILD_SUBDIR)/texinfo && \
25b42232 2666 $(MAKE) $(TARGET-build-texinfo))
23f6b2f9
PB
2667@endif build-texinfo
2668
25b42232
PB
2669
2670
ce406537
PB
2671
2672
71b5d516
PB
2673.PHONY: configure-build-fixincludes maybe-configure-build-fixincludes
2674maybe-configure-build-fixincludes:
3ff3adad
PB
2675@if gcc-bootstrap
2676configure-build-fixincludes: stage_current
2677@endif gcc-bootstrap
71b5d516
PB
2678@if build-fixincludes
2679maybe-configure-build-fixincludes: configure-build-fixincludes
cc11cc9b 2680configure-build-fixincludes:
f41d6665 2681 @: $(MAKE); $(unstage)
cc11cc9b 2682 @r=`${PWD_COMMAND}`; export r; \
71b5d516 2683 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
2684 test ! -f $(BUILD_SUBDIR)/fixincludes/Makefile || exit 0; \
2685 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/fixincludes ; \
71b5d516
PB
2686 $(BUILD_EXPORTS) \
2687 echo Configuring in $(BUILD_SUBDIR)/fixincludes; \
2688 cd "$(BUILD_SUBDIR)/fixincludes" || exit 1; \
2689 case $(srcdir) in \
215c351a
PB
2690 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2691 *) topdir=`echo $(BUILD_SUBDIR)/fixincludes/ | \
2692 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
71b5d516 2693 esac; \
215c351a
PB
2694 srcdiroption="--srcdir=$${topdir}/fixincludes"; \
2695 libsrcdir="$$s/fixincludes"; \
71b5d516
PB
2696 rm -f no-such-file || : ; \
2697 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 2698 $(BUILD_CONFIGARGS) $${srcdiroption} \
71b5d516
PB
2699 || exit 1
2700@endif build-fixincludes
2701
25b42232
PB
2702
2703
ce406537
PB
2704
2705
71b5d516
PB
2706.PHONY: all-build-fixincludes maybe-all-build-fixincludes
2707maybe-all-build-fixincludes:
3ff3adad
PB
2708@if gcc-bootstrap
2709all-build-fixincludes: stage_current
2710@endif gcc-bootstrap
71b5d516
PB
2711@if build-fixincludes
2712TARGET-build-fixincludes=all
2713maybe-all-build-fixincludes: all-build-fixincludes
2714all-build-fixincludes: configure-build-fixincludes
f41d6665 2715 @: $(MAKE); $(unstage)
71b5d516
PB
2716 @r=`${PWD_COMMAND}`; export r; \
2717 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2718 $(BUILD_EXPORTS) \
2719 (cd $(BUILD_SUBDIR)/fixincludes && \
25b42232 2720 $(MAKE) $(TARGET-build-fixincludes))
71b5d516
PB
2721@endif build-fixincludes
2722
1358ccea 2723
25b42232 2724
ce406537
PB
2725
2726
295f4e42
NN
2727# --------------------------------------
2728# Modules which run on the host machine
2729# --------------------------------------
1358ccea 2730
25b42232 2731
295f4e42
NN
2732.PHONY: configure-ash maybe-configure-ash
2733maybe-configure-ash:
3ff3adad
PB
2734@if gcc-bootstrap
2735configure-ash: stage_current
2736@endif gcc-bootstrap
60975492
PB
2737@if ash
2738maybe-configure-ash: configure-ash
cc11cc9b 2739configure-ash:
f41d6665 2740 @: $(MAKE); $(unstage)
cc11cc9b 2741 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 2742 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
2743 test ! -f $(HOST_SUBDIR)/ash/Makefile || exit 0; \
2744 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ash ; \
4fc4dd12 2745 $(HOST_EXPORTS) \
25b42232
PB
2746 echo Configuring in $(HOST_SUBDIR)/ash; \
2747 cd "$(HOST_SUBDIR)/ash" || exit 1; \
295f4e42 2748 case $(srcdir) in \
215c351a
PB
2749 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2750 *) topdir=`echo $(HOST_SUBDIR)/ash/ | \
2751 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 2752 esac; \
215c351a
PB
2753 srcdiroption="--srcdir=$${topdir}/ash"; \
2754 libsrcdir="$$s/ash"; \
295f4e42 2755 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 2756 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 2757 || exit 1
60975492 2758@endif ash
1358ccea 2759
25b42232
PB
2760
2761
ce406537
PB
2762
2763
295f4e42
NN
2764.PHONY: all-ash maybe-all-ash
2765maybe-all-ash:
3ff3adad
PB
2766@if gcc-bootstrap
2767all-ash: stage_current
2768@endif gcc-bootstrap
60975492 2769@if ash
7e0b5752 2770TARGET-ash=all
60975492 2771maybe-all-ash: all-ash
295f4e42 2772all-ash: configure-ash
f41d6665 2773 @: $(MAKE); $(unstage)
295f4e42
NN
2774 @r=`${PWD_COMMAND}`; export r; \
2775 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 2776 $(HOST_EXPORTS) \
215c351a
PB
2777 (cd $(HOST_SUBDIR)/ash && \
2778 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-ash))
60975492 2779@endif ash
1358ccea 2780
25b42232 2781
ce406537
PB
2782
2783
295f4e42
NN
2784.PHONY: check-ash maybe-check-ash
2785maybe-check-ash:
60975492
PB
2786@if ash
2787maybe-check-ash: check-ash
1358ccea 2788
295f4e42 2789check-ash:
f41d6665 2790 @: $(MAKE); $(unstage)
295f4e42 2791 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 2792 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 2793 $(HOST_EXPORTS) \
215c351a
PB
2794 (cd $(HOST_SUBDIR)/ash && \
2795 $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 2796
60975492 2797@endif ash
1358ccea 2798
295f4e42
NN
2799.PHONY: install-ash maybe-install-ash
2800maybe-install-ash:
60975492
PB
2801@if ash
2802maybe-install-ash: install-ash
1358ccea 2803
295f4e42 2804install-ash: installdirs
f41d6665 2805 @: $(MAKE); $(unstage)
295f4e42 2806 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 2807 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 2808 $(HOST_EXPORTS) \
215c351a 2809 (cd $(HOST_SUBDIR)/ash && \
ace9ac7b 2810 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 2811
60975492 2812@endif ash
1358ccea 2813
295f4e42 2814# Other targets (info, dvi, etc.)
1358ccea 2815
295f4e42
NN
2816.PHONY: maybe-info-ash info-ash
2817maybe-info-ash:
60975492
PB
2818@if ash
2819maybe-info-ash: info-ash
295f4e42
NN
2820
2821info-ash: \
05750653 2822 configure-ash
f41d6665 2823 @: $(MAKE); $(unstage)
295f4e42 2824 @[ -f ./ash/Makefile ] || exit 0; \
8c90b13a
L
2825 r=`${PWD_COMMAND}`; export r; \
2826 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 2827 $(HOST_EXPORTS) \
d32ab992 2828 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
2829 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2830 done; \
295f4e42 2831 echo "Doing info in ash" ; \
215c351a 2832 (cd $(HOST_SUBDIR)/ash && \
1358ccea
NN
2833 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2834 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2835 "RANLIB=$${RANLIB}" \
2836 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 2837 info) \
1358ccea
NN
2838 || exit 1
2839
60975492 2840@endif ash
1358ccea 2841
295f4e42
NN
2842.PHONY: maybe-dvi-ash dvi-ash
2843maybe-dvi-ash:
60975492
PB
2844@if ash
2845maybe-dvi-ash: dvi-ash
1358ccea 2846
295f4e42 2847dvi-ash: \
05750653 2848 configure-ash
f41d6665 2849 @: $(MAKE); $(unstage)
295f4e42 2850 @[ -f ./ash/Makefile ] || exit 0; \
8c90b13a
L
2851 r=`${PWD_COMMAND}`; export r; \
2852 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 2853 $(HOST_EXPORTS) \
d32ab992 2854 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
2855 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2856 done; \
295f4e42 2857 echo "Doing dvi in ash" ; \
215c351a 2858 (cd $(HOST_SUBDIR)/ash && \
1358ccea
NN
2859 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2860 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2861 "RANLIB=$${RANLIB}" \
2862 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 2863 dvi) \
1358ccea
NN
2864 || exit 1
2865
60975492 2866@endif ash
1358ccea 2867
f87a2b2e
MS
2868.PHONY: maybe-html-ash html-ash
2869maybe-html-ash:
2870@if ash
2871maybe-html-ash: html-ash
2872
2873html-ash: \
05750653 2874 configure-ash
f41d6665 2875 @: $(MAKE); $(unstage)
f87a2b2e
MS
2876 @[ -f ./ash/Makefile ] || exit 0; \
2877 r=`${PWD_COMMAND}`; export r; \
2878 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
2879 $(HOST_EXPORTS) \
2880 for flag in $(EXTRA_HOST_FLAGS) ; do \
2881 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2882 done; \
2883 echo "Doing html in ash" ; \
215c351a 2884 (cd $(HOST_SUBDIR)/ash && \
f87a2b2e
MS
2885 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2886 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2887 "RANLIB=$${RANLIB}" \
2888 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2889 html) \
2890 || exit 1
2891
2892@endif ash
2893
295f4e42
NN
2894.PHONY: maybe-TAGS-ash TAGS-ash
2895maybe-TAGS-ash:
60975492
PB
2896@if ash
2897maybe-TAGS-ash: TAGS-ash
1358ccea 2898
295f4e42 2899TAGS-ash: \
05750653 2900 configure-ash
f41d6665 2901 @: $(MAKE); $(unstage)
295f4e42 2902 @[ -f ./ash/Makefile ] || exit 0; \
8c90b13a
L
2903 r=`${PWD_COMMAND}`; export r; \
2904 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 2905 $(HOST_EXPORTS) \
d32ab992 2906 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
2907 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2908 done; \
295f4e42 2909 echo "Doing TAGS in ash" ; \
215c351a 2910 (cd $(HOST_SUBDIR)/ash && \
1358ccea
NN
2911 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2912 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2913 "RANLIB=$${RANLIB}" \
2914 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 2915 TAGS) \
1358ccea
NN
2916 || exit 1
2917
60975492 2918@endif ash
1358ccea 2919
295f4e42
NN
2920.PHONY: maybe-install-info-ash install-info-ash
2921maybe-install-info-ash:
60975492
PB
2922@if ash
2923maybe-install-info-ash: install-info-ash
1358ccea 2924
295f4e42
NN
2925install-info-ash: \
2926 configure-ash \
05750653 2927 info-ash
f41d6665 2928 @: $(MAKE); $(unstage)
295f4e42 2929 @[ -f ./ash/Makefile ] || exit 0; \
8c90b13a
L
2930 r=`${PWD_COMMAND}`; export r; \
2931 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 2932 $(HOST_EXPORTS) \
d32ab992 2933 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
2934 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2935 done; \
295f4e42 2936 echo "Doing install-info in ash" ; \
215c351a 2937 (cd $(HOST_SUBDIR)/ash && \
1358ccea
NN
2938 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2939 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2940 "RANLIB=$${RANLIB}" \
2941 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 2942 install-info) \
1358ccea
NN
2943 || exit 1
2944
60975492 2945@endif ash
1358ccea 2946
65d6e994
CD
2947.PHONY: maybe-install-html-ash install-html-ash
2948maybe-install-html-ash:
2949@if ash
2950maybe-install-html-ash: install-html-ash
2951
2952install-html-ash: \
2953 configure-ash \
2954 html-ash
2955 @: $(MAKE); $(unstage)
2956 @[ -f ./ash/Makefile ] || exit 0; \
2957 r=`${PWD_COMMAND}`; export r; \
2958 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2959 $(HOST_EXPORTS) \
2960 for flag in $(EXTRA_HOST_FLAGS) ; do \
2961 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2962 done; \
2963 echo "Doing install-html in ash" ; \
2964 (cd $(HOST_SUBDIR)/ash && \
2965 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2966 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2967 "RANLIB=$${RANLIB}" \
2968 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2969 install-html) \
2970 || exit 1
2971
2972@endif ash
2973
295f4e42
NN
2974.PHONY: maybe-installcheck-ash installcheck-ash
2975maybe-installcheck-ash:
60975492
PB
2976@if ash
2977maybe-installcheck-ash: installcheck-ash
1358ccea 2978
295f4e42 2979installcheck-ash: \
05750653 2980 configure-ash
f41d6665 2981 @: $(MAKE); $(unstage)
295f4e42 2982 @[ -f ./ash/Makefile ] || exit 0; \
8c90b13a
L
2983 r=`${PWD_COMMAND}`; export r; \
2984 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 2985 $(HOST_EXPORTS) \
d32ab992 2986 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
2987 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2988 done; \
295f4e42 2989 echo "Doing installcheck in ash" ; \
215c351a 2990 (cd $(HOST_SUBDIR)/ash && \
1358ccea
NN
2991 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2992 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2993 "RANLIB=$${RANLIB}" \
2994 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 2995 installcheck) \
1358ccea
NN
2996 || exit 1
2997
60975492 2998@endif ash
1358ccea 2999
295f4e42
NN
3000.PHONY: maybe-mostlyclean-ash mostlyclean-ash
3001maybe-mostlyclean-ash:
60975492
PB
3002@if ash
3003maybe-mostlyclean-ash: mostlyclean-ash
1358ccea 3004
05750653 3005mostlyclean-ash:
f41d6665 3006 @: $(MAKE); $(unstage)
295f4e42 3007 @[ -f ./ash/Makefile ] || exit 0; \
8c90b13a
L
3008 r=`${PWD_COMMAND}`; export r; \
3009 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3010 $(HOST_EXPORTS) \
d32ab992 3011 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3012 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3013 done; \
295f4e42 3014 echo "Doing mostlyclean in ash" ; \
215c351a 3015 (cd $(HOST_SUBDIR)/ash && \
1358ccea
NN
3016 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3017 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3018 "RANLIB=$${RANLIB}" \
3019 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3020 mostlyclean) \
1358ccea
NN
3021 || exit 1
3022
60975492 3023@endif ash
1358ccea 3024
295f4e42
NN
3025.PHONY: maybe-clean-ash clean-ash
3026maybe-clean-ash:
60975492
PB
3027@if ash
3028maybe-clean-ash: clean-ash
1358ccea 3029
05750653 3030clean-ash:
f41d6665 3031 @: $(MAKE); $(unstage)
295f4e42 3032 @[ -f ./ash/Makefile ] || exit 0; \
8c90b13a
L
3033 r=`${PWD_COMMAND}`; export r; \
3034 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3035 $(HOST_EXPORTS) \
d32ab992 3036 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3037 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3038 done; \
295f4e42 3039 echo "Doing clean in ash" ; \
215c351a 3040 (cd $(HOST_SUBDIR)/ash && \
1358ccea
NN
3041 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3042 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3043 "RANLIB=$${RANLIB}" \
3044 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3045 clean) \
1358ccea
NN
3046 || exit 1
3047
60975492 3048@endif ash
1358ccea 3049
295f4e42
NN
3050.PHONY: maybe-distclean-ash distclean-ash
3051maybe-distclean-ash:
60975492
PB
3052@if ash
3053maybe-distclean-ash: distclean-ash
1358ccea 3054
05750653 3055distclean-ash:
f41d6665 3056 @: $(MAKE); $(unstage)
295f4e42 3057 @[ -f ./ash/Makefile ] || exit 0; \
8c90b13a
L
3058 r=`${PWD_COMMAND}`; export r; \
3059 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3060 $(HOST_EXPORTS) \
d32ab992 3061 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3062 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3063 done; \
295f4e42 3064 echo "Doing distclean in ash" ; \
215c351a 3065 (cd $(HOST_SUBDIR)/ash && \
1358ccea
NN
3066 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3067 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3068 "RANLIB=$${RANLIB}" \
3069 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3070 distclean) \
1358ccea
NN
3071 || exit 1
3072
60975492 3073@endif ash
1358ccea 3074
295f4e42
NN
3075.PHONY: maybe-maintainer-clean-ash maintainer-clean-ash
3076maybe-maintainer-clean-ash:
60975492
PB
3077@if ash
3078maybe-maintainer-clean-ash: maintainer-clean-ash
1358ccea 3079
05750653 3080maintainer-clean-ash:
f41d6665 3081 @: $(MAKE); $(unstage)
295f4e42 3082 @[ -f ./ash/Makefile ] || exit 0; \
8c90b13a
L
3083 r=`${PWD_COMMAND}`; export r; \
3084 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3085 $(HOST_EXPORTS) \
d32ab992 3086 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3087 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3088 done; \
295f4e42 3089 echo "Doing maintainer-clean in ash" ; \
215c351a 3090 (cd $(HOST_SUBDIR)/ash && \
1358ccea
NN
3091 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3092 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3093 "RANLIB=$${RANLIB}" \
3094 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3095 maintainer-clean) \
1358ccea
NN
3096 || exit 1
3097
60975492 3098@endif ash
1358ccea 3099
1358ccea 3100
25b42232 3101
295f4e42
NN
3102.PHONY: configure-autoconf maybe-configure-autoconf
3103maybe-configure-autoconf:
3ff3adad
PB
3104@if gcc-bootstrap
3105configure-autoconf: stage_current
3106@endif gcc-bootstrap
60975492
PB
3107@if autoconf
3108maybe-configure-autoconf: configure-autoconf
cc11cc9b 3109configure-autoconf:
f41d6665 3110 @: $(MAKE); $(unstage)
cc11cc9b 3111 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 3112 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
3113 test ! -f $(HOST_SUBDIR)/autoconf/Makefile || exit 0; \
3114 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/autoconf ; \
4fc4dd12 3115 $(HOST_EXPORTS) \
25b42232
PB
3116 echo Configuring in $(HOST_SUBDIR)/autoconf; \
3117 cd "$(HOST_SUBDIR)/autoconf" || exit 1; \
295f4e42 3118 case $(srcdir) in \
215c351a
PB
3119 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3120 *) topdir=`echo $(HOST_SUBDIR)/autoconf/ | \
3121 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 3122 esac; \
215c351a
PB
3123 srcdiroption="--srcdir=$${topdir}/autoconf"; \
3124 libsrcdir="$$s/autoconf"; \
295f4e42 3125 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 3126 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 3127 || exit 1
60975492 3128@endif autoconf
1358ccea 3129
25b42232
PB
3130
3131
ce406537
PB
3132
3133
295f4e42
NN
3134.PHONY: all-autoconf maybe-all-autoconf
3135maybe-all-autoconf:
3ff3adad
PB
3136@if gcc-bootstrap
3137all-autoconf: stage_current
3138@endif gcc-bootstrap
60975492 3139@if autoconf
7e0b5752 3140TARGET-autoconf=all
60975492 3141maybe-all-autoconf: all-autoconf
295f4e42 3142all-autoconf: configure-autoconf
f41d6665 3143 @: $(MAKE); $(unstage)
295f4e42
NN
3144 @r=`${PWD_COMMAND}`; export r; \
3145 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3146 $(HOST_EXPORTS) \
215c351a
PB
3147 (cd $(HOST_SUBDIR)/autoconf && \
3148 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-autoconf))
60975492 3149@endif autoconf
1358ccea 3150
25b42232 3151
ce406537
PB
3152
3153
295f4e42
NN
3154.PHONY: check-autoconf maybe-check-autoconf
3155maybe-check-autoconf:
60975492
PB
3156@if autoconf
3157maybe-check-autoconf: check-autoconf
1358ccea 3158
295f4e42 3159check-autoconf:
f41d6665 3160 @: $(MAKE); $(unstage)
295f4e42 3161 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 3162 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3163 $(HOST_EXPORTS) \
215c351a
PB
3164 (cd $(HOST_SUBDIR)/autoconf && \
3165 $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 3166
60975492 3167@endif autoconf
1358ccea 3168
295f4e42
NN
3169.PHONY: install-autoconf maybe-install-autoconf
3170maybe-install-autoconf:
60975492
PB
3171@if autoconf
3172maybe-install-autoconf: install-autoconf
1358ccea 3173
295f4e42 3174install-autoconf: installdirs
f41d6665 3175 @: $(MAKE); $(unstage)
295f4e42 3176 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 3177 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3178 $(HOST_EXPORTS) \
215c351a 3179 (cd $(HOST_SUBDIR)/autoconf && \
ace9ac7b 3180 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 3181
60975492 3182@endif autoconf
1358ccea 3183
295f4e42 3184# Other targets (info, dvi, etc.)
1358ccea 3185
295f4e42
NN
3186.PHONY: maybe-info-autoconf info-autoconf
3187maybe-info-autoconf:
60975492
PB
3188@if autoconf
3189maybe-info-autoconf: info-autoconf
295f4e42
NN
3190
3191info-autoconf: \
05750653 3192 configure-autoconf
f41d6665 3193 @: $(MAKE); $(unstage)
295f4e42 3194 @[ -f ./autoconf/Makefile ] || exit 0; \
8c90b13a
L
3195 r=`${PWD_COMMAND}`; export r; \
3196 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3197 $(HOST_EXPORTS) \
d32ab992 3198 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3199 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3200 done; \
295f4e42 3201 echo "Doing info in autoconf" ; \
215c351a 3202 (cd $(HOST_SUBDIR)/autoconf && \
1358ccea
NN
3203 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3204 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3205 "RANLIB=$${RANLIB}" \
3206 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3207 info) \
1358ccea
NN
3208 || exit 1
3209
60975492 3210@endif autoconf
1358ccea 3211
295f4e42
NN
3212.PHONY: maybe-dvi-autoconf dvi-autoconf
3213maybe-dvi-autoconf:
60975492
PB
3214@if autoconf
3215maybe-dvi-autoconf: dvi-autoconf
1358ccea 3216
295f4e42 3217dvi-autoconf: \
05750653 3218 configure-autoconf
f41d6665 3219 @: $(MAKE); $(unstage)
295f4e42 3220 @[ -f ./autoconf/Makefile ] || exit 0; \
8c90b13a
L
3221 r=`${PWD_COMMAND}`; export r; \
3222 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3223 $(HOST_EXPORTS) \
d32ab992 3224 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3225 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3226 done; \
295f4e42 3227 echo "Doing dvi in autoconf" ; \
215c351a 3228 (cd $(HOST_SUBDIR)/autoconf && \
1358ccea
NN
3229 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3230 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3231 "RANLIB=$${RANLIB}" \
3232 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3233 dvi) \
1358ccea
NN
3234 || exit 1
3235
60975492 3236@endif autoconf
1358ccea 3237
f87a2b2e
MS
3238.PHONY: maybe-html-autoconf html-autoconf
3239maybe-html-autoconf:
3240@if autoconf
3241maybe-html-autoconf: html-autoconf
3242
3243html-autoconf: \
05750653 3244 configure-autoconf
f41d6665 3245 @: $(MAKE); $(unstage)
f87a2b2e
MS
3246 @[ -f ./autoconf/Makefile ] || exit 0; \
3247 r=`${PWD_COMMAND}`; export r; \
3248 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
3249 $(HOST_EXPORTS) \
3250 for flag in $(EXTRA_HOST_FLAGS) ; do \
3251 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3252 done; \
3253 echo "Doing html in autoconf" ; \
215c351a 3254 (cd $(HOST_SUBDIR)/autoconf && \
f87a2b2e
MS
3255 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3256 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3257 "RANLIB=$${RANLIB}" \
3258 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3259 html) \
3260 || exit 1
3261
3262@endif autoconf
3263
295f4e42
NN
3264.PHONY: maybe-TAGS-autoconf TAGS-autoconf
3265maybe-TAGS-autoconf:
60975492
PB
3266@if autoconf
3267maybe-TAGS-autoconf: TAGS-autoconf
1358ccea 3268
295f4e42 3269TAGS-autoconf: \
05750653 3270 configure-autoconf
f41d6665 3271 @: $(MAKE); $(unstage)
295f4e42 3272 @[ -f ./autoconf/Makefile ] || exit 0; \
8c90b13a
L
3273 r=`${PWD_COMMAND}`; export r; \
3274 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3275 $(HOST_EXPORTS) \
d32ab992 3276 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3277 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3278 done; \
295f4e42 3279 echo "Doing TAGS in autoconf" ; \
215c351a 3280 (cd $(HOST_SUBDIR)/autoconf && \
1358ccea
NN
3281 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3282 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3283 "RANLIB=$${RANLIB}" \
3284 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3285 TAGS) \
1358ccea
NN
3286 || exit 1
3287
60975492 3288@endif autoconf
1358ccea 3289
295f4e42
NN
3290.PHONY: maybe-install-info-autoconf install-info-autoconf
3291maybe-install-info-autoconf:
60975492
PB
3292@if autoconf
3293maybe-install-info-autoconf: install-info-autoconf
1358ccea 3294
295f4e42
NN
3295install-info-autoconf: \
3296 configure-autoconf \
05750653 3297 info-autoconf
f41d6665 3298 @: $(MAKE); $(unstage)
295f4e42 3299 @[ -f ./autoconf/Makefile ] || exit 0; \
8c90b13a
L
3300 r=`${PWD_COMMAND}`; export r; \
3301 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3302 $(HOST_EXPORTS) \
d32ab992 3303 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3304 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3305 done; \
295f4e42 3306 echo "Doing install-info in autoconf" ; \
215c351a 3307 (cd $(HOST_SUBDIR)/autoconf && \
1358ccea
NN
3308 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3309 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3310 "RANLIB=$${RANLIB}" \
3311 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3312 install-info) \
1358ccea
NN
3313 || exit 1
3314
60975492 3315@endif autoconf
1358ccea 3316
65d6e994
CD
3317.PHONY: maybe-install-html-autoconf install-html-autoconf
3318maybe-install-html-autoconf:
3319@if autoconf
3320maybe-install-html-autoconf: install-html-autoconf
3321
3322install-html-autoconf: \
3323 configure-autoconf \
3324 html-autoconf
3325 @: $(MAKE); $(unstage)
3326 @[ -f ./autoconf/Makefile ] || exit 0; \
3327 r=`${PWD_COMMAND}`; export r; \
3328 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3329 $(HOST_EXPORTS) \
3330 for flag in $(EXTRA_HOST_FLAGS) ; do \
3331 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3332 done; \
3333 echo "Doing install-html in autoconf" ; \
3334 (cd $(HOST_SUBDIR)/autoconf && \
3335 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3336 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3337 "RANLIB=$${RANLIB}" \
3338 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3339 install-html) \
3340 || exit 1
3341
3342@endif autoconf
3343
295f4e42
NN
3344.PHONY: maybe-installcheck-autoconf installcheck-autoconf
3345maybe-installcheck-autoconf:
60975492
PB
3346@if autoconf
3347maybe-installcheck-autoconf: installcheck-autoconf
1358ccea 3348
295f4e42 3349installcheck-autoconf: \
05750653 3350 configure-autoconf
f41d6665 3351 @: $(MAKE); $(unstage)
295f4e42 3352 @[ -f ./autoconf/Makefile ] || exit 0; \
8c90b13a
L
3353 r=`${PWD_COMMAND}`; export r; \
3354 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3355 $(HOST_EXPORTS) \
d32ab992 3356 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3357 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3358 done; \
295f4e42 3359 echo "Doing installcheck in autoconf" ; \
215c351a 3360 (cd $(HOST_SUBDIR)/autoconf && \
1358ccea
NN
3361 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3362 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3363 "RANLIB=$${RANLIB}" \
3364 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3365 installcheck) \
1358ccea
NN
3366 || exit 1
3367
60975492 3368@endif autoconf
1358ccea 3369
295f4e42
NN
3370.PHONY: maybe-mostlyclean-autoconf mostlyclean-autoconf
3371maybe-mostlyclean-autoconf:
60975492
PB
3372@if autoconf
3373maybe-mostlyclean-autoconf: mostlyclean-autoconf
1358ccea 3374
05750653 3375mostlyclean-autoconf:
f41d6665 3376 @: $(MAKE); $(unstage)
295f4e42 3377 @[ -f ./autoconf/Makefile ] || exit 0; \
8c90b13a
L
3378 r=`${PWD_COMMAND}`; export r; \
3379 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3380 $(HOST_EXPORTS) \
d32ab992 3381 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3382 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3383 done; \
295f4e42 3384 echo "Doing mostlyclean in autoconf" ; \
215c351a 3385 (cd $(HOST_SUBDIR)/autoconf && \
1358ccea
NN
3386 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3387 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3388 "RANLIB=$${RANLIB}" \
3389 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3390 mostlyclean) \
1358ccea
NN
3391 || exit 1
3392
60975492 3393@endif autoconf
1358ccea 3394
295f4e42
NN
3395.PHONY: maybe-clean-autoconf clean-autoconf
3396maybe-clean-autoconf:
60975492
PB
3397@if autoconf
3398maybe-clean-autoconf: clean-autoconf
1358ccea 3399
05750653 3400clean-autoconf:
f41d6665 3401 @: $(MAKE); $(unstage)
295f4e42 3402 @[ -f ./autoconf/Makefile ] || exit 0; \
8c90b13a
L
3403 r=`${PWD_COMMAND}`; export r; \
3404 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3405 $(HOST_EXPORTS) \
d32ab992 3406 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3407 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3408 done; \
295f4e42 3409 echo "Doing clean in autoconf" ; \
215c351a 3410 (cd $(HOST_SUBDIR)/autoconf && \
1358ccea
NN
3411 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3412 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3413 "RANLIB=$${RANLIB}" \
3414 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3415 clean) \
1358ccea
NN
3416 || exit 1
3417
60975492 3418@endif autoconf
1358ccea 3419
295f4e42
NN
3420.PHONY: maybe-distclean-autoconf distclean-autoconf
3421maybe-distclean-autoconf:
60975492
PB
3422@if autoconf
3423maybe-distclean-autoconf: distclean-autoconf
1358ccea 3424
05750653 3425distclean-autoconf:
f41d6665 3426 @: $(MAKE); $(unstage)
295f4e42 3427 @[ -f ./autoconf/Makefile ] || exit 0; \
8c90b13a
L
3428 r=`${PWD_COMMAND}`; export r; \
3429 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3430 $(HOST_EXPORTS) \
d32ab992 3431 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3432 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3433 done; \
295f4e42 3434 echo "Doing distclean in autoconf" ; \
215c351a 3435 (cd $(HOST_SUBDIR)/autoconf && \
1358ccea
NN
3436 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3437 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3438 "RANLIB=$${RANLIB}" \
3439 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3440 distclean) \
1358ccea
NN
3441 || exit 1
3442
60975492 3443@endif autoconf
1358ccea 3444
295f4e42
NN
3445.PHONY: maybe-maintainer-clean-autoconf maintainer-clean-autoconf
3446maybe-maintainer-clean-autoconf:
60975492
PB
3447@if autoconf
3448maybe-maintainer-clean-autoconf: maintainer-clean-autoconf
1358ccea 3449
05750653 3450maintainer-clean-autoconf:
f41d6665 3451 @: $(MAKE); $(unstage)
295f4e42 3452 @[ -f ./autoconf/Makefile ] || exit 0; \
8c90b13a
L
3453 r=`${PWD_COMMAND}`; export r; \
3454 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3455 $(HOST_EXPORTS) \
d32ab992 3456 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3457 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3458 done; \
295f4e42 3459 echo "Doing maintainer-clean in autoconf" ; \
215c351a 3460 (cd $(HOST_SUBDIR)/autoconf && \
1358ccea
NN
3461 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3462 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3463 "RANLIB=$${RANLIB}" \
3464 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3465 maintainer-clean) \
1358ccea
NN
3466 || exit 1
3467
60975492 3468@endif autoconf
1358ccea 3469
1358ccea 3470
25b42232 3471
295f4e42
NN
3472.PHONY: configure-automake maybe-configure-automake
3473maybe-configure-automake:
3ff3adad
PB
3474@if gcc-bootstrap
3475configure-automake: stage_current
3476@endif gcc-bootstrap
60975492
PB
3477@if automake
3478maybe-configure-automake: configure-automake
cc11cc9b 3479configure-automake:
f41d6665 3480 @: $(MAKE); $(unstage)
cc11cc9b 3481 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 3482 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
3483 test ! -f $(HOST_SUBDIR)/automake/Makefile || exit 0; \
3484 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/automake ; \
4fc4dd12 3485 $(HOST_EXPORTS) \
25b42232
PB
3486 echo Configuring in $(HOST_SUBDIR)/automake; \
3487 cd "$(HOST_SUBDIR)/automake" || exit 1; \
295f4e42 3488 case $(srcdir) in \
215c351a
PB
3489 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3490 *) topdir=`echo $(HOST_SUBDIR)/automake/ | \
3491 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 3492 esac; \
215c351a
PB
3493 srcdiroption="--srcdir=$${topdir}/automake"; \
3494 libsrcdir="$$s/automake"; \
295f4e42 3495 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 3496 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 3497 || exit 1
60975492 3498@endif automake
1358ccea 3499
25b42232
PB
3500
3501
ce406537
PB
3502
3503
295f4e42
NN
3504.PHONY: all-automake maybe-all-automake
3505maybe-all-automake:
3ff3adad
PB
3506@if gcc-bootstrap
3507all-automake: stage_current
3508@endif gcc-bootstrap
60975492 3509@if automake
7e0b5752 3510TARGET-automake=all
60975492 3511maybe-all-automake: all-automake
295f4e42 3512all-automake: configure-automake
f41d6665 3513 @: $(MAKE); $(unstage)
295f4e42
NN
3514 @r=`${PWD_COMMAND}`; export r; \
3515 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3516 $(HOST_EXPORTS) \
215c351a
PB
3517 (cd $(HOST_SUBDIR)/automake && \
3518 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-automake))
60975492 3519@endif automake
1358ccea 3520
25b42232 3521
ce406537
PB
3522
3523
295f4e42
NN
3524.PHONY: check-automake maybe-check-automake
3525maybe-check-automake:
60975492
PB
3526@if automake
3527maybe-check-automake: check-automake
1358ccea 3528
295f4e42 3529check-automake:
f41d6665 3530 @: $(MAKE); $(unstage)
295f4e42 3531 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 3532 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3533 $(HOST_EXPORTS) \
215c351a
PB
3534 (cd $(HOST_SUBDIR)/automake && \
3535 $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 3536
60975492 3537@endif automake
1358ccea 3538
295f4e42
NN
3539.PHONY: install-automake maybe-install-automake
3540maybe-install-automake:
60975492
PB
3541@if automake
3542maybe-install-automake: install-automake
1358ccea 3543
295f4e42 3544install-automake: installdirs
f41d6665 3545 @: $(MAKE); $(unstage)
295f4e42 3546 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 3547 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3548 $(HOST_EXPORTS) \
215c351a 3549 (cd $(HOST_SUBDIR)/automake && \
ace9ac7b 3550 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 3551
60975492 3552@endif automake
1358ccea 3553
295f4e42 3554# Other targets (info, dvi, etc.)
1358ccea 3555
295f4e42
NN
3556.PHONY: maybe-info-automake info-automake
3557maybe-info-automake:
60975492
PB
3558@if automake
3559maybe-info-automake: info-automake
295f4e42
NN
3560
3561info-automake: \
05750653 3562 configure-automake
f41d6665 3563 @: $(MAKE); $(unstage)
295f4e42 3564 @[ -f ./automake/Makefile ] || exit 0; \
8c90b13a
L
3565 r=`${PWD_COMMAND}`; export r; \
3566 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3567 $(HOST_EXPORTS) \
d32ab992 3568 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3569 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3570 done; \
295f4e42 3571 echo "Doing info in automake" ; \
215c351a 3572 (cd $(HOST_SUBDIR)/automake && \
1358ccea
NN
3573 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3574 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3575 "RANLIB=$${RANLIB}" \
3576 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3577 info) \
1358ccea
NN
3578 || exit 1
3579
60975492 3580@endif automake
1358ccea 3581
295f4e42
NN
3582.PHONY: maybe-dvi-automake dvi-automake
3583maybe-dvi-automake:
60975492
PB
3584@if automake
3585maybe-dvi-automake: dvi-automake
1358ccea 3586
295f4e42 3587dvi-automake: \
05750653 3588 configure-automake
f41d6665 3589 @: $(MAKE); $(unstage)
295f4e42 3590 @[ -f ./automake/Makefile ] || exit 0; \
8c90b13a
L
3591 r=`${PWD_COMMAND}`; export r; \
3592 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3593 $(HOST_EXPORTS) \
d32ab992 3594 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3595 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3596 done; \
295f4e42 3597 echo "Doing dvi in automake" ; \
215c351a 3598 (cd $(HOST_SUBDIR)/automake && \
1358ccea
NN
3599 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3600 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3601 "RANLIB=$${RANLIB}" \
3602 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3603 dvi) \
1358ccea
NN
3604 || exit 1
3605
60975492 3606@endif automake
1358ccea 3607
f87a2b2e
MS
3608.PHONY: maybe-html-automake html-automake
3609maybe-html-automake:
3610@if automake
3611maybe-html-automake: html-automake
3612
3613html-automake: \
05750653 3614 configure-automake
f41d6665 3615 @: $(MAKE); $(unstage)
f87a2b2e
MS
3616 @[ -f ./automake/Makefile ] || exit 0; \
3617 r=`${PWD_COMMAND}`; export r; \
3618 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
3619 $(HOST_EXPORTS) \
3620 for flag in $(EXTRA_HOST_FLAGS) ; do \
3621 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3622 done; \
3623 echo "Doing html in automake" ; \
215c351a 3624 (cd $(HOST_SUBDIR)/automake && \
f87a2b2e
MS
3625 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3626 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3627 "RANLIB=$${RANLIB}" \
3628 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3629 html) \
3630 || exit 1
3631
3632@endif automake
3633
295f4e42
NN
3634.PHONY: maybe-TAGS-automake TAGS-automake
3635maybe-TAGS-automake:
60975492
PB
3636@if automake
3637maybe-TAGS-automake: TAGS-automake
1358ccea 3638
295f4e42 3639TAGS-automake: \
05750653 3640 configure-automake
f41d6665 3641 @: $(MAKE); $(unstage)
295f4e42 3642 @[ -f ./automake/Makefile ] || exit 0; \
8c90b13a
L
3643 r=`${PWD_COMMAND}`; export r; \
3644 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3645 $(HOST_EXPORTS) \
d32ab992 3646 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3647 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3648 done; \
295f4e42 3649 echo "Doing TAGS in automake" ; \
215c351a 3650 (cd $(HOST_SUBDIR)/automake && \
1358ccea
NN
3651 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3652 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3653 "RANLIB=$${RANLIB}" \
3654 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3655 TAGS) \
1358ccea
NN
3656 || exit 1
3657
60975492 3658@endif automake
1358ccea 3659
295f4e42
NN
3660.PHONY: maybe-install-info-automake install-info-automake
3661maybe-install-info-automake:
60975492
PB
3662@if automake
3663maybe-install-info-automake: install-info-automake
1358ccea 3664
295f4e42
NN
3665install-info-automake: \
3666 configure-automake \
05750653 3667 info-automake
f41d6665 3668 @: $(MAKE); $(unstage)
295f4e42 3669 @[ -f ./automake/Makefile ] || exit 0; \
8c90b13a
L
3670 r=`${PWD_COMMAND}`; export r; \
3671 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3672 $(HOST_EXPORTS) \
d32ab992 3673 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3674 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3675 done; \
295f4e42 3676 echo "Doing install-info in automake" ; \
215c351a 3677 (cd $(HOST_SUBDIR)/automake && \
1358ccea
NN
3678 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3679 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3680 "RANLIB=$${RANLIB}" \
3681 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3682 install-info) \
1358ccea
NN
3683 || exit 1
3684
60975492 3685@endif automake
1358ccea 3686
65d6e994
CD
3687.PHONY: maybe-install-html-automake install-html-automake
3688maybe-install-html-automake:
3689@if automake
3690maybe-install-html-automake: install-html-automake
3691
3692install-html-automake: \
3693 configure-automake \
3694 html-automake
3695 @: $(MAKE); $(unstage)
3696 @[ -f ./automake/Makefile ] || exit 0; \
3697 r=`${PWD_COMMAND}`; export r; \
3698 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3699 $(HOST_EXPORTS) \
3700 for flag in $(EXTRA_HOST_FLAGS) ; do \
3701 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3702 done; \
3703 echo "Doing install-html in automake" ; \
3704 (cd $(HOST_SUBDIR)/automake && \
3705 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3706 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3707 "RANLIB=$${RANLIB}" \
3708 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3709 install-html) \
3710 || exit 1
3711
3712@endif automake
3713
295f4e42
NN
3714.PHONY: maybe-installcheck-automake installcheck-automake
3715maybe-installcheck-automake:
60975492
PB
3716@if automake
3717maybe-installcheck-automake: installcheck-automake
1358ccea 3718
295f4e42 3719installcheck-automake: \
05750653 3720 configure-automake
f41d6665 3721 @: $(MAKE); $(unstage)
295f4e42 3722 @[ -f ./automake/Makefile ] || exit 0; \
8c90b13a
L
3723 r=`${PWD_COMMAND}`; export r; \
3724 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3725 $(HOST_EXPORTS) \
d32ab992 3726 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3727 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3728 done; \
295f4e42 3729 echo "Doing installcheck in automake" ; \
215c351a 3730 (cd $(HOST_SUBDIR)/automake && \
1358ccea
NN
3731 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3732 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3733 "RANLIB=$${RANLIB}" \
3734 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3735 installcheck) \
1358ccea
NN
3736 || exit 1
3737
60975492 3738@endif automake
1358ccea 3739
295f4e42
NN
3740.PHONY: maybe-mostlyclean-automake mostlyclean-automake
3741maybe-mostlyclean-automake:
60975492
PB
3742@if automake
3743maybe-mostlyclean-automake: mostlyclean-automake
1358ccea 3744
05750653 3745mostlyclean-automake:
f41d6665 3746 @: $(MAKE); $(unstage)
295f4e42 3747 @[ -f ./automake/Makefile ] || exit 0; \
8c90b13a
L
3748 r=`${PWD_COMMAND}`; export r; \
3749 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3750 $(HOST_EXPORTS) \
d32ab992 3751 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3752 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3753 done; \
295f4e42 3754 echo "Doing mostlyclean in automake" ; \
215c351a 3755 (cd $(HOST_SUBDIR)/automake && \
1358ccea
NN
3756 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3757 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3758 "RANLIB=$${RANLIB}" \
3759 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3760 mostlyclean) \
1358ccea
NN
3761 || exit 1
3762
60975492 3763@endif automake
1358ccea 3764
295f4e42
NN
3765.PHONY: maybe-clean-automake clean-automake
3766maybe-clean-automake:
60975492
PB
3767@if automake
3768maybe-clean-automake: clean-automake
1358ccea 3769
05750653 3770clean-automake:
f41d6665 3771 @: $(MAKE); $(unstage)
295f4e42 3772 @[ -f ./automake/Makefile ] || exit 0; \
8c90b13a
L
3773 r=`${PWD_COMMAND}`; export r; \
3774 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3775 $(HOST_EXPORTS) \
d32ab992 3776 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3777 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3778 done; \
295f4e42 3779 echo "Doing clean in automake" ; \
215c351a 3780 (cd $(HOST_SUBDIR)/automake && \
1358ccea
NN
3781 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3782 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3783 "RANLIB=$${RANLIB}" \
3784 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3785 clean) \
1358ccea
NN
3786 || exit 1
3787
60975492 3788@endif automake
1358ccea 3789
295f4e42
NN
3790.PHONY: maybe-distclean-automake distclean-automake
3791maybe-distclean-automake:
60975492
PB
3792@if automake
3793maybe-distclean-automake: distclean-automake
1358ccea 3794
05750653 3795distclean-automake:
f41d6665 3796 @: $(MAKE); $(unstage)
295f4e42 3797 @[ -f ./automake/Makefile ] || exit 0; \
8c90b13a
L
3798 r=`${PWD_COMMAND}`; export r; \
3799 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3800 $(HOST_EXPORTS) \
d32ab992 3801 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3802 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3803 done; \
295f4e42 3804 echo "Doing distclean in automake" ; \
215c351a 3805 (cd $(HOST_SUBDIR)/automake && \
1358ccea
NN
3806 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3807 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3808 "RANLIB=$${RANLIB}" \
3809 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3810 distclean) \
1358ccea
NN
3811 || exit 1
3812
60975492 3813@endif automake
1358ccea 3814
295f4e42
NN
3815.PHONY: maybe-maintainer-clean-automake maintainer-clean-automake
3816maybe-maintainer-clean-automake:
60975492
PB
3817@if automake
3818maybe-maintainer-clean-automake: maintainer-clean-automake
1358ccea 3819
05750653 3820maintainer-clean-automake:
f41d6665 3821 @: $(MAKE); $(unstage)
295f4e42 3822 @[ -f ./automake/Makefile ] || exit 0; \
8c90b13a
L
3823 r=`${PWD_COMMAND}`; export r; \
3824 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3825 $(HOST_EXPORTS) \
d32ab992 3826 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3827 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3828 done; \
295f4e42 3829 echo "Doing maintainer-clean in automake" ; \
215c351a 3830 (cd $(HOST_SUBDIR)/automake && \
1358ccea
NN
3831 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3832 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3833 "RANLIB=$${RANLIB}" \
3834 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3835 maintainer-clean) \
1358ccea
NN
3836 || exit 1
3837
60975492 3838@endif automake
1358ccea 3839
1358ccea 3840
25b42232 3841
295f4e42
NN
3842.PHONY: configure-bash maybe-configure-bash
3843maybe-configure-bash:
3ff3adad
PB
3844@if gcc-bootstrap
3845configure-bash: stage_current
3846@endif gcc-bootstrap
60975492
PB
3847@if bash
3848maybe-configure-bash: configure-bash
cc11cc9b 3849configure-bash:
f41d6665 3850 @: $(MAKE); $(unstage)
cc11cc9b 3851 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 3852 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
3853 test ! -f $(HOST_SUBDIR)/bash/Makefile || exit 0; \
3854 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bash ; \
4fc4dd12 3855 $(HOST_EXPORTS) \
25b42232
PB
3856 echo Configuring in $(HOST_SUBDIR)/bash; \
3857 cd "$(HOST_SUBDIR)/bash" || exit 1; \
295f4e42 3858 case $(srcdir) in \
215c351a
PB
3859 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3860 *) topdir=`echo $(HOST_SUBDIR)/bash/ | \
3861 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 3862 esac; \
215c351a
PB
3863 srcdiroption="--srcdir=$${topdir}/bash"; \
3864 libsrcdir="$$s/bash"; \
295f4e42 3865 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 3866 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 3867 || exit 1
60975492 3868@endif bash
1358ccea 3869
25b42232
PB
3870
3871
ce406537
PB
3872
3873
295f4e42
NN
3874.PHONY: all-bash maybe-all-bash
3875maybe-all-bash:
3ff3adad
PB
3876@if gcc-bootstrap
3877all-bash: stage_current
3878@endif gcc-bootstrap
60975492 3879@if bash
7e0b5752 3880TARGET-bash=all
60975492 3881maybe-all-bash: all-bash
295f4e42 3882all-bash: configure-bash
f41d6665 3883 @: $(MAKE); $(unstage)
295f4e42
NN
3884 @r=`${PWD_COMMAND}`; export r; \
3885 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3886 $(HOST_EXPORTS) \
215c351a
PB
3887 (cd $(HOST_SUBDIR)/bash && \
3888 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-bash))
60975492 3889@endif bash
1358ccea 3890
25b42232 3891
ce406537
PB
3892
3893
295f4e42
NN
3894.PHONY: check-bash maybe-check-bash
3895maybe-check-bash:
60975492
PB
3896@if bash
3897maybe-check-bash: check-bash
1358ccea 3898
295f4e42 3899check-bash:
f41d6665 3900 @: $(MAKE); $(unstage)
295f4e42 3901 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 3902 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3903 $(HOST_EXPORTS) \
215c351a
PB
3904 (cd $(HOST_SUBDIR)/bash && \
3905 $(MAKE) $(FLAGS_TO_PASS) check)
295f4e42 3906
60975492 3907@endif bash
1358ccea 3908
295f4e42
NN
3909.PHONY: install-bash maybe-install-bash
3910maybe-install-bash:
60975492
PB
3911@if bash
3912maybe-install-bash: install-bash
1358ccea 3913
295f4e42 3914install-bash: installdirs
f41d6665 3915 @: $(MAKE); $(unstage)
295f4e42
NN
3916 @r=`${PWD_COMMAND}`; export r; \
3917 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3918 $(HOST_EXPORTS) \
215c351a 3919 (cd $(HOST_SUBDIR)/bash && \
ace9ac7b 3920 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 3921
60975492 3922@endif bash
295f4e42
NN
3923
3924# Other targets (info, dvi, etc.)
3925
3926.PHONY: maybe-info-bash info-bash
3927maybe-info-bash:
60975492
PB
3928@if bash
3929maybe-info-bash: info-bash
295f4e42
NN
3930
3931info-bash: \
05750653 3932 configure-bash
f41d6665 3933 @: $(MAKE); $(unstage)
295f4e42 3934 @[ -f ./bash/Makefile ] || exit 0; \
8c90b13a
L
3935 r=`${PWD_COMMAND}`; export r; \
3936 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3937 $(HOST_EXPORTS) \
d32ab992 3938 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3939 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3940 done; \
295f4e42 3941 echo "Doing info in bash" ; \
215c351a 3942 (cd $(HOST_SUBDIR)/bash && \
1358ccea
NN
3943 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3944 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3945 "RANLIB=$${RANLIB}" \
3946 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3947 info) \
1358ccea
NN
3948 || exit 1
3949
60975492 3950@endif bash
1358ccea 3951
295f4e42
NN
3952.PHONY: maybe-dvi-bash dvi-bash
3953maybe-dvi-bash:
60975492
PB
3954@if bash
3955maybe-dvi-bash: dvi-bash
1358ccea 3956
295f4e42 3957dvi-bash: \
05750653 3958 configure-bash
f41d6665 3959 @: $(MAKE); $(unstage)
295f4e42 3960 @[ -f ./bash/Makefile ] || exit 0; \
8c90b13a
L
3961 r=`${PWD_COMMAND}`; export r; \
3962 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3963 $(HOST_EXPORTS) \
d32ab992 3964 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3965 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3966 done; \
295f4e42 3967 echo "Doing dvi in bash" ; \
215c351a 3968 (cd $(HOST_SUBDIR)/bash && \
1358ccea
NN
3969 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3970 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3971 "RANLIB=$${RANLIB}" \
3972 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3973 dvi) \
1358ccea
NN
3974 || exit 1
3975
60975492 3976@endif bash
1358ccea 3977
f87a2b2e
MS
3978.PHONY: maybe-html-bash html-bash
3979maybe-html-bash:
3980@if bash
3981maybe-html-bash: html-bash
3982
3983html-bash: \
05750653 3984 configure-bash
f41d6665 3985 @: $(MAKE); $(unstage)
f87a2b2e
MS
3986 @[ -f ./bash/Makefile ] || exit 0; \
3987 r=`${PWD_COMMAND}`; export r; \
3988 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
3989 $(HOST_EXPORTS) \
3990 for flag in $(EXTRA_HOST_FLAGS) ; do \
3991 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3992 done; \
3993 echo "Doing html in bash" ; \
215c351a 3994 (cd $(HOST_SUBDIR)/bash && \
f87a2b2e
MS
3995 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3996 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3997 "RANLIB=$${RANLIB}" \
3998 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3999 html) \
4000 || exit 1
4001
4002@endif bash
4003
295f4e42
NN
4004.PHONY: maybe-TAGS-bash TAGS-bash
4005maybe-TAGS-bash:
60975492
PB
4006@if bash
4007maybe-TAGS-bash: TAGS-bash
1358ccea 4008
295f4e42 4009TAGS-bash: \
05750653 4010 configure-bash
f41d6665 4011 @: $(MAKE); $(unstage)
295f4e42 4012 @[ -f ./bash/Makefile ] || exit 0; \
8c90b13a
L
4013 r=`${PWD_COMMAND}`; export r; \
4014 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4015 $(HOST_EXPORTS) \
d32ab992 4016 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4017 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4018 done; \
295f4e42 4019 echo "Doing TAGS in bash" ; \
215c351a 4020 (cd $(HOST_SUBDIR)/bash && \
1358ccea
NN
4021 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4022 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4023 "RANLIB=$${RANLIB}" \
4024 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4025 TAGS) \
1358ccea
NN
4026 || exit 1
4027
60975492 4028@endif bash
1358ccea 4029
295f4e42
NN
4030.PHONY: maybe-install-info-bash install-info-bash
4031maybe-install-info-bash:
60975492
PB
4032@if bash
4033maybe-install-info-bash: install-info-bash
1358ccea 4034
295f4e42
NN
4035install-info-bash: \
4036 configure-bash \
05750653 4037 info-bash
f41d6665 4038 @: $(MAKE); $(unstage)
295f4e42 4039 @[ -f ./bash/Makefile ] || exit 0; \
8c90b13a
L
4040 r=`${PWD_COMMAND}`; export r; \
4041 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4042 $(HOST_EXPORTS) \
d32ab992 4043 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4044 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4045 done; \
295f4e42 4046 echo "Doing install-info in bash" ; \
215c351a 4047 (cd $(HOST_SUBDIR)/bash && \
1358ccea
NN
4048 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4049 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4050 "RANLIB=$${RANLIB}" \
4051 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4052 install-info) \
1358ccea
NN
4053 || exit 1
4054
60975492 4055@endif bash
1358ccea 4056
65d6e994
CD
4057.PHONY: maybe-install-html-bash install-html-bash
4058maybe-install-html-bash:
4059@if bash
4060maybe-install-html-bash: install-html-bash
4061
4062install-html-bash: \
4063 configure-bash \
4064 html-bash
4065 @: $(MAKE); $(unstage)
4066 @[ -f ./bash/Makefile ] || exit 0; \
4067 r=`${PWD_COMMAND}`; export r; \
4068 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4069 $(HOST_EXPORTS) \
4070 for flag in $(EXTRA_HOST_FLAGS) ; do \
4071 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4072 done; \
4073 echo "Doing install-html in bash" ; \
4074 (cd $(HOST_SUBDIR)/bash && \
4075 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4076 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4077 "RANLIB=$${RANLIB}" \
4078 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4079 install-html) \
4080 || exit 1
4081
4082@endif bash
4083
295f4e42
NN
4084.PHONY: maybe-installcheck-bash installcheck-bash
4085maybe-installcheck-bash:
60975492
PB
4086@if bash
4087maybe-installcheck-bash: installcheck-bash
1358ccea 4088
295f4e42 4089installcheck-bash: \
05750653 4090 configure-bash
f41d6665 4091 @: $(MAKE); $(unstage)
295f4e42 4092 @[ -f ./bash/Makefile ] || exit 0; \
8c90b13a
L
4093 r=`${PWD_COMMAND}`; export r; \
4094 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4095 $(HOST_EXPORTS) \
d32ab992 4096 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4097 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4098 done; \
295f4e42 4099 echo "Doing installcheck in bash" ; \
215c351a 4100 (cd $(HOST_SUBDIR)/bash && \
1358ccea
NN
4101 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4102 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4103 "RANLIB=$${RANLIB}" \
4104 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4105 installcheck) \
1358ccea
NN
4106 || exit 1
4107
60975492 4108@endif bash
1358ccea 4109
295f4e42
NN
4110.PHONY: maybe-mostlyclean-bash mostlyclean-bash
4111maybe-mostlyclean-bash:
60975492
PB
4112@if bash
4113maybe-mostlyclean-bash: mostlyclean-bash
1358ccea 4114
05750653 4115mostlyclean-bash:
f41d6665 4116 @: $(MAKE); $(unstage)
295f4e42 4117 @[ -f ./bash/Makefile ] || exit 0; \
8c90b13a
L
4118 r=`${PWD_COMMAND}`; export r; \
4119 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4120 $(HOST_EXPORTS) \
d32ab992 4121 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4122 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4123 done; \
295f4e42 4124 echo "Doing mostlyclean in bash" ; \
215c351a 4125 (cd $(HOST_SUBDIR)/bash && \
1358ccea
NN
4126 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4127 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4128 "RANLIB=$${RANLIB}" \
4129 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4130 mostlyclean) \
1358ccea
NN
4131 || exit 1
4132
60975492 4133@endif bash
1358ccea 4134
295f4e42
NN
4135.PHONY: maybe-clean-bash clean-bash
4136maybe-clean-bash:
60975492
PB
4137@if bash
4138maybe-clean-bash: clean-bash
1358ccea 4139
05750653 4140clean-bash:
f41d6665 4141 @: $(MAKE); $(unstage)
295f4e42 4142 @[ -f ./bash/Makefile ] || exit 0; \
8c90b13a
L
4143 r=`${PWD_COMMAND}`; export r; \
4144 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4145 $(HOST_EXPORTS) \
d32ab992 4146 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4147 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4148 done; \
295f4e42 4149 echo "Doing clean in bash" ; \
215c351a 4150 (cd $(HOST_SUBDIR)/bash && \
1358ccea
NN
4151 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4152 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4153 "RANLIB=$${RANLIB}" \
4154 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4155 clean) \
1358ccea
NN
4156 || exit 1
4157
60975492 4158@endif bash
1358ccea 4159
295f4e42
NN
4160.PHONY: maybe-distclean-bash distclean-bash
4161maybe-distclean-bash:
60975492
PB
4162@if bash
4163maybe-distclean-bash: distclean-bash
1358ccea 4164
05750653 4165distclean-bash:
f41d6665 4166 @: $(MAKE); $(unstage)
295f4e42 4167 @[ -f ./bash/Makefile ] || exit 0; \
8c90b13a
L
4168 r=`${PWD_COMMAND}`; export r; \
4169 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4170 $(HOST_EXPORTS) \
d32ab992 4171 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4172 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4173 done; \
295f4e42 4174 echo "Doing distclean in bash" ; \
215c351a 4175 (cd $(HOST_SUBDIR)/bash && \
1358ccea
NN
4176 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4177 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4178 "RANLIB=$${RANLIB}" \
4179 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4180 distclean) \
1358ccea
NN
4181 || exit 1
4182
60975492 4183@endif bash
1358ccea 4184
295f4e42
NN
4185.PHONY: maybe-maintainer-clean-bash maintainer-clean-bash
4186maybe-maintainer-clean-bash:
60975492
PB
4187@if bash
4188maybe-maintainer-clean-bash: maintainer-clean-bash
1358ccea 4189
05750653 4190maintainer-clean-bash:
f41d6665 4191 @: $(MAKE); $(unstage)
295f4e42 4192 @[ -f ./bash/Makefile ] || exit 0; \
8c90b13a
L
4193 r=`${PWD_COMMAND}`; export r; \
4194 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4195 $(HOST_EXPORTS) \
d32ab992 4196 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4197 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4198 done; \
295f4e42 4199 echo "Doing maintainer-clean in bash" ; \
215c351a 4200 (cd $(HOST_SUBDIR)/bash && \
1358ccea
NN
4201 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4202 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4203 "RANLIB=$${RANLIB}" \
4204 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4205 maintainer-clean) \
1358ccea
NN
4206 || exit 1
4207
60975492 4208@endif bash
1358ccea 4209
1358ccea 4210
25b42232 4211
295f4e42
NN
4212.PHONY: configure-bfd maybe-configure-bfd
4213maybe-configure-bfd:
3ff3adad
PB
4214@if gcc-bootstrap
4215configure-bfd: stage_current
4216@endif gcc-bootstrap
60975492
PB
4217@if bfd
4218maybe-configure-bfd: configure-bfd
cc11cc9b 4219configure-bfd:
cc11cc9b
PB
4220 @r=`${PWD_COMMAND}`; export r; \
4221 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
215c351a
PB
4222 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
4223 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
4fc4dd12 4224 $(HOST_EXPORTS) \
25b42232
PB
4225 echo Configuring in $(HOST_SUBDIR)/bfd; \
4226 cd "$(HOST_SUBDIR)/bfd" || exit 1; \
295f4e42 4227 case $(srcdir) in \
215c351a
PB
4228 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4229 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
4230 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 4231 esac; \
215c351a
PB
4232 srcdiroption="--srcdir=$${topdir}/bfd"; \
4233 libsrcdir="$$s/bfd"; \
295f4e42 4234 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 4235 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 4236 || exit 1
60975492 4237@endif bfd
1358ccea 4238
25b42232
PB
4239
4240
ce406537
PB
4241.PHONY: configure-stage1-bfd maybe-configure-stage1-bfd
4242maybe-configure-stage1-bfd:
4243@if bfd-bootstrap
4244maybe-configure-stage1-bfd: configure-stage1-bfd
f41d6665 4245configure-stage1-bfd:
cc11cc9b 4246 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
f41d6665 4247 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
cc11cc9b
PB
4248 @r=`${PWD_COMMAND}`; export r; \
4249 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 4250 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
ce406537
PB
4251 $(HOST_EXPORTS) \
4252 echo Configuring stage 1 in $(HOST_SUBDIR)/bfd ; \
f41d6665 4253 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
ce406537
PB
4254 cd $(HOST_SUBDIR)/bfd || exit 1; \
4255 case $(srcdir) in \
4256 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4257 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
4258 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4259 esac; \
4260 srcdiroption="--srcdir=$${topdir}/bfd"; \
4261 libsrcdir="$$s/bfd"; \
4262 $(SHELL) $${libsrcdir}/configure \
4263 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 4264 \
ce406537
PB
4265 --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
4266@endif bfd-bootstrap
4267
4268.PHONY: configure-stage2-bfd maybe-configure-stage2-bfd
4269maybe-configure-stage2-bfd:
4270@if bfd-bootstrap
4271maybe-configure-stage2-bfd: configure-stage2-bfd
f41d6665 4272configure-stage2-bfd:
cc11cc9b 4273 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
f41d6665 4274 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
cc11cc9b
PB
4275 @r=`${PWD_COMMAND}`; export r; \
4276 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 4277 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
ce406537
PB
4278 $(HOST_EXPORTS) \
4279 $(POSTSTAGE1_HOST_EXPORTS) \
4280 echo Configuring stage 2 in $(HOST_SUBDIR)/bfd ; \
f41d6665 4281 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
ce406537
PB
4282 cd $(HOST_SUBDIR)/bfd || exit 1; \
4283 case $(srcdir) in \
4284 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4285 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
4286 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4287 esac; \
4288 srcdiroption="--srcdir=$${topdir}/bfd"; \
4289 libsrcdir="$$s/bfd"; \
4290 $(SHELL) $${libsrcdir}/configure \
4291 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 4292 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
4293 @stage2_werror_flag@
4294@endif bfd-bootstrap
4295
4296.PHONY: configure-stage3-bfd maybe-configure-stage3-bfd
4297maybe-configure-stage3-bfd:
4298@if bfd-bootstrap
4299maybe-configure-stage3-bfd: configure-stage3-bfd
f41d6665 4300configure-stage3-bfd:
cc11cc9b 4301 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
f41d6665 4302 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
cc11cc9b
PB
4303 @r=`${PWD_COMMAND}`; export r; \
4304 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 4305 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
ce406537
PB
4306 $(HOST_EXPORTS) \
4307 $(POSTSTAGE1_HOST_EXPORTS) \
4308 echo Configuring stage 3 in $(HOST_SUBDIR)/bfd ; \
f41d6665 4309 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
ce406537
PB
4310 cd $(HOST_SUBDIR)/bfd || exit 1; \
4311 case $(srcdir) in \
4312 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4313 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
4314 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4315 esac; \
4316 srcdiroption="--srcdir=$${topdir}/bfd"; \
4317 libsrcdir="$$s/bfd"; \
4318 $(SHELL) $${libsrcdir}/configure \
4319 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 4320 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
4321 @stage2_werror_flag@
4322@endif bfd-bootstrap
4323
4324.PHONY: configure-stage4-bfd maybe-configure-stage4-bfd
4325maybe-configure-stage4-bfd:
4326@if bfd-bootstrap
4327maybe-configure-stage4-bfd: configure-stage4-bfd
f41d6665 4328configure-stage4-bfd:
cc11cc9b 4329 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
f41d6665 4330 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
cc11cc9b
PB
4331 @r=`${PWD_COMMAND}`; export r; \
4332 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 4333 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
ce406537
PB
4334 $(HOST_EXPORTS) \
4335 $(POSTSTAGE1_HOST_EXPORTS) \
4336 echo Configuring stage 4 in $(HOST_SUBDIR)/bfd ; \
f41d6665 4337 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
ce406537
PB
4338 cd $(HOST_SUBDIR)/bfd || exit 1; \
4339 case $(srcdir) in \
4340 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4341 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
4342 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4343 esac; \
4344 srcdiroption="--srcdir=$${topdir}/bfd"; \
4345 libsrcdir="$$s/bfd"; \
4346 $(SHELL) $${libsrcdir}/configure \
4347 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 4348 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
4349 @stage2_werror_flag@
4350@endif bfd-bootstrap
4351
4352.PHONY: configure-stageprofile-bfd maybe-configure-stageprofile-bfd
4353maybe-configure-stageprofile-bfd:
4354@if bfd-bootstrap
4355maybe-configure-stageprofile-bfd: configure-stageprofile-bfd
f41d6665 4356configure-stageprofile-bfd:
cc11cc9b 4357 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
f41d6665 4358 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
cc11cc9b
PB
4359 @r=`${PWD_COMMAND}`; export r; \
4360 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 4361 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
ce406537
PB
4362 $(HOST_EXPORTS) \
4363 $(POSTSTAGE1_HOST_EXPORTS) \
4364 echo Configuring stage profile in $(HOST_SUBDIR)/bfd ; \
f41d6665 4365 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
ce406537
PB
4366 cd $(HOST_SUBDIR)/bfd || exit 1; \
4367 case $(srcdir) in \
4368 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4369 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
4370 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4371 esac; \
4372 srcdiroption="--srcdir=$${topdir}/bfd"; \
4373 libsrcdir="$$s/bfd"; \
4374 $(SHELL) $${libsrcdir}/configure \
4375 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 4376 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
4377 @stage2_werror_flag@
4378@endif bfd-bootstrap
4379
4380.PHONY: configure-stagefeedback-bfd maybe-configure-stagefeedback-bfd
4381maybe-configure-stagefeedback-bfd:
4382@if bfd-bootstrap
4383maybe-configure-stagefeedback-bfd: configure-stagefeedback-bfd
f41d6665 4384configure-stagefeedback-bfd:
cc11cc9b 4385 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
f41d6665 4386 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
cc11cc9b
PB
4387 @r=`${PWD_COMMAND}`; export r; \
4388 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 4389 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
ce406537
PB
4390 $(HOST_EXPORTS) \
4391 $(POSTSTAGE1_HOST_EXPORTS) \
4392 echo Configuring stage feedback in $(HOST_SUBDIR)/bfd ; \
f41d6665 4393 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
ce406537
PB
4394 cd $(HOST_SUBDIR)/bfd || exit 1; \
4395 case $(srcdir) in \
4396 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4397 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
4398 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4399 esac; \
4400 srcdiroption="--srcdir=$${topdir}/bfd"; \
4401 libsrcdir="$$s/bfd"; \
4402 $(SHELL) $${libsrcdir}/configure \
4403 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 4404 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
4405 @stage2_werror_flag@
4406@endif bfd-bootstrap
4407
4408
4409
4410
4411
295f4e42
NN
4412.PHONY: all-bfd maybe-all-bfd
4413maybe-all-bfd:
3ff3adad
PB
4414@if gcc-bootstrap
4415all-bfd: stage_current
4416@endif gcc-bootstrap
60975492 4417@if bfd
7e0b5752 4418TARGET-bfd=all
60975492 4419maybe-all-bfd: all-bfd
295f4e42 4420all-bfd: configure-bfd
cc11cc9b 4421 @r=`${PWD_COMMAND}`; export r; \
295f4e42 4422 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4423 $(HOST_EXPORTS) \
215c351a
PB
4424 (cd $(HOST_SUBDIR)/bfd && \
4425 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-bfd))
60975492 4426@endif bfd
1358ccea 4427
25b42232 4428
ce406537
PB
4429
4430.PHONY: all-stage1-bfd maybe-all-stage1-bfd
4431.PHONY: clean-stage1-bfd maybe-clean-stage1-bfd
4432maybe-all-stage1-bfd:
4433maybe-clean-stage1-bfd:
4434@if bfd-bootstrap
4435maybe-all-stage1-bfd: all-stage1-bfd
4436all-stage1: all-stage1-bfd
1061f99e 4437TARGET-stage1-bfd = $(TARGET-bfd)
ce406537 4438all-stage1-bfd: configure-stage1-bfd
cc11cc9b 4439 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
ce406537
PB
4440 @r=`${PWD_COMMAND}`; export r; \
4441 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4442 $(HOST_EXPORTS) \
4443 cd $(HOST_SUBDIR)/bfd && \
cc11cc9b 4444 $(MAKE) $(FLAGS_TO_PASS) CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" \
1061f99e 4445 $(TARGET-stage1-bfd)
ce406537
PB
4446
4447maybe-clean-stage1-bfd: clean-stage1-bfd
4448clean-stage1: clean-stage1-bfd
4449clean-stage1-bfd:
4450 @[ -f $(HOST_SUBDIR)/bfd/Makefile ] || [ -f $(HOST_SUBDIR)/stage1-bfd/Makefile ] \
4451 || exit 0 ; \
cc11cc9b 4452 [ $(current_stage) = stage1 ] || $(MAKE) stage1-start; \
ce406537
PB
4453 cd $(HOST_SUBDIR)/bfd && \
4454 $(MAKE) $(FLAGS_TO_PASS) \
cc11cc9b 4455 CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" clean
ce406537
PB
4456@endif bfd-bootstrap
4457
4458
4459.PHONY: all-stage2-bfd maybe-all-stage2-bfd
4460.PHONY: clean-stage2-bfd maybe-clean-stage2-bfd
4461maybe-all-stage2-bfd:
4462maybe-clean-stage2-bfd:
4463@if bfd-bootstrap
4464maybe-all-stage2-bfd: all-stage2-bfd
4465all-stage2: all-stage2-bfd
1061f99e 4466TARGET-stage2-bfd = $(TARGET-bfd)
ce406537 4467all-stage2-bfd: configure-stage2-bfd
cc11cc9b 4468 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
ce406537
PB
4469 @r=`${PWD_COMMAND}`; export r; \
4470 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4471 $(HOST_EXPORTS) \
4472 $(POSTSTAGE1_HOST_EXPORTS) \
4473 cd $(HOST_SUBDIR)/bfd && \
1061f99e
PB
4474 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
4475 $(TARGET-stage2-bfd)
ce406537
PB
4476
4477maybe-clean-stage2-bfd: clean-stage2-bfd
4478clean-stage2: clean-stage2-bfd
4479clean-stage2-bfd:
4480 @[ -f $(HOST_SUBDIR)/bfd/Makefile ] || [ -f $(HOST_SUBDIR)/stage2-bfd/Makefile ] \
4481 || exit 0 ; \
cc11cc9b 4482 [ $(current_stage) = stage2 ] || $(MAKE) stage2-start; \
ce406537
PB
4483 cd $(HOST_SUBDIR)/bfd && \
4484 $(MAKE) $(FLAGS_TO_PASS) \
4485 $(POSTSTAGE1_FLAGS_TO_PASS) \
4486 clean
4487@endif bfd-bootstrap
4488
4489
4490.PHONY: all-stage3-bfd maybe-all-stage3-bfd
4491.PHONY: clean-stage3-bfd maybe-clean-stage3-bfd
4492maybe-all-stage3-bfd:
4493maybe-clean-stage3-bfd:
4494@if bfd-bootstrap
4495maybe-all-stage3-bfd: all-stage3-bfd
4496all-stage3: all-stage3-bfd
1061f99e 4497TARGET-stage3-bfd = $(TARGET-bfd)
ce406537 4498all-stage3-bfd: configure-stage3-bfd
cc11cc9b 4499 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
ce406537
PB
4500 @r=`${PWD_COMMAND}`; export r; \
4501 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4502 $(HOST_EXPORTS) \
4503 $(POSTSTAGE1_HOST_EXPORTS) \
4504 cd $(HOST_SUBDIR)/bfd && \
1061f99e
PB
4505 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
4506 $(TARGET-stage3-bfd)
ce406537
PB
4507
4508maybe-clean-stage3-bfd: clean-stage3-bfd
4509clean-stage3: clean-stage3-bfd
4510clean-stage3-bfd:
4511 @[ -f $(HOST_SUBDIR)/bfd/Makefile ] || [ -f $(HOST_SUBDIR)/stage3-bfd/Makefile ] \
4512 || exit 0 ; \
cc11cc9b 4513 [ $(current_stage) = stage3 ] || $(MAKE) stage3-start; \
ce406537
PB
4514 cd $(HOST_SUBDIR)/bfd && \
4515 $(MAKE) $(FLAGS_TO_PASS) \
4516 $(POSTSTAGE1_FLAGS_TO_PASS) \
4517 clean
4518@endif bfd-bootstrap
4519
4520
4521.PHONY: all-stage4-bfd maybe-all-stage4-bfd
4522.PHONY: clean-stage4-bfd maybe-clean-stage4-bfd
4523maybe-all-stage4-bfd:
4524maybe-clean-stage4-bfd:
4525@if bfd-bootstrap
4526maybe-all-stage4-bfd: all-stage4-bfd
4527all-stage4: all-stage4-bfd
1061f99e 4528TARGET-stage4-bfd = $(TARGET-bfd)
ce406537 4529all-stage4-bfd: configure-stage4-bfd
cc11cc9b 4530 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
ce406537
PB
4531 @r=`${PWD_COMMAND}`; export r; \
4532 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4533 $(HOST_EXPORTS) \
4534 $(POSTSTAGE1_HOST_EXPORTS) \
4535 cd $(HOST_SUBDIR)/bfd && \
1061f99e
PB
4536 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
4537 $(TARGET-stage4-bfd)
ce406537
PB
4538
4539maybe-clean-stage4-bfd: clean-stage4-bfd
4540clean-stage4: clean-stage4-bfd
4541clean-stage4-bfd:
4542 @[ -f $(HOST_SUBDIR)/bfd/Makefile ] || [ -f $(HOST_SUBDIR)/stage4-bfd/Makefile ] \
4543 || exit 0 ; \
cc11cc9b 4544 [ $(current_stage) = stage4 ] || $(MAKE) stage4-start; \
ce406537
PB
4545 cd $(HOST_SUBDIR)/bfd && \
4546 $(MAKE) $(FLAGS_TO_PASS) \
4547 $(POSTSTAGE1_FLAGS_TO_PASS) \
4548 clean
4549@endif bfd-bootstrap
4550
4551
4552.PHONY: all-stageprofile-bfd maybe-all-stageprofile-bfd
4553.PHONY: clean-stageprofile-bfd maybe-clean-stageprofile-bfd
4554maybe-all-stageprofile-bfd:
4555maybe-clean-stageprofile-bfd:
4556@if bfd-bootstrap
4557maybe-all-stageprofile-bfd: all-stageprofile-bfd
4558all-stageprofile: all-stageprofile-bfd
1061f99e 4559TARGET-stageprofile-bfd = $(TARGET-bfd)
ce406537 4560all-stageprofile-bfd: configure-stageprofile-bfd
cc11cc9b 4561 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
ce406537
PB
4562 @r=`${PWD_COMMAND}`; export r; \
4563 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4564 $(HOST_EXPORTS) \
4565 $(POSTSTAGE1_HOST_EXPORTS) \
4566 cd $(HOST_SUBDIR)/bfd && \
1061f99e
PB
4567 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" \
4568 $(TARGET-stageprofile-bfd)
ce406537
PB
4569
4570maybe-clean-stageprofile-bfd: clean-stageprofile-bfd
4571clean-stageprofile: clean-stageprofile-bfd
4572clean-stageprofile-bfd:
4573 @[ -f $(HOST_SUBDIR)/bfd/Makefile ] || [ -f $(HOST_SUBDIR)/stageprofile-bfd/Makefile ] \
4574 || exit 0 ; \
cc11cc9b 4575 [ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start; \
ce406537
PB
4576 cd $(HOST_SUBDIR)/bfd && \
4577 $(MAKE) $(FLAGS_TO_PASS) \
4578 $(POSTSTAGE1_FLAGS_TO_PASS) \
4579 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean
4580@endif bfd-bootstrap
4581
4582
4583.PHONY: all-stagefeedback-bfd maybe-all-stagefeedback-bfd
4584.PHONY: clean-stagefeedback-bfd maybe-clean-stagefeedback-bfd
4585maybe-all-stagefeedback-bfd:
4586maybe-clean-stagefeedback-bfd:
4587@if bfd-bootstrap
4588maybe-all-stagefeedback-bfd: all-stagefeedback-bfd
4589all-stagefeedback: all-stagefeedback-bfd
1061f99e 4590TARGET-stagefeedback-bfd = $(TARGET-bfd)
ce406537 4591all-stagefeedback-bfd: configure-stagefeedback-bfd
cc11cc9b 4592 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
ce406537
PB
4593 @r=`${PWD_COMMAND}`; export r; \
4594 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4595 $(HOST_EXPORTS) \
4596 $(POSTSTAGE1_HOST_EXPORTS) \
4597 cd $(HOST_SUBDIR)/bfd && \
1061f99e
PB
4598 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-use" \
4599 $(TARGET-stagefeedback-bfd)
ce406537
PB
4600
4601maybe-clean-stagefeedback-bfd: clean-stagefeedback-bfd
4602clean-stagefeedback: clean-stagefeedback-bfd
4603clean-stagefeedback-bfd:
4604 @[ -f $(HOST_SUBDIR)/bfd/Makefile ] || [ -f $(HOST_SUBDIR)/stagefeedback-bfd/Makefile ] \
4605 || exit 0 ; \
cc11cc9b 4606 [ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start; \
ce406537
PB
4607 cd $(HOST_SUBDIR)/bfd && \
4608 $(MAKE) $(FLAGS_TO_PASS) \
4609 $(POSTSTAGE1_FLAGS_TO_PASS) \
4610 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean
4611@endif bfd-bootstrap
4612
4613
4614
4615
4616
295f4e42
NN
4617.PHONY: check-bfd maybe-check-bfd
4618maybe-check-bfd:
60975492
PB
4619@if bfd
4620maybe-check-bfd: check-bfd
1358ccea 4621
295f4e42 4622check-bfd:
f41d6665 4623 @: $(MAKE); $(unstage)
295f4e42 4624 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 4625 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4626 $(HOST_EXPORTS) \
215c351a
PB
4627 (cd $(HOST_SUBDIR)/bfd && \
4628 $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 4629
60975492 4630@endif bfd
1358ccea 4631
295f4e42
NN
4632.PHONY: install-bfd maybe-install-bfd
4633maybe-install-bfd:
60975492
PB
4634@if bfd
4635maybe-install-bfd: install-bfd
1358ccea 4636
295f4e42 4637install-bfd: installdirs
f41d6665 4638 @: $(MAKE); $(unstage)
295f4e42 4639 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 4640 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4641 $(HOST_EXPORTS) \
215c351a 4642 (cd $(HOST_SUBDIR)/bfd && \
ace9ac7b 4643 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 4644
60975492 4645@endif bfd
1358ccea 4646
295f4e42
NN
4647# Other targets (info, dvi, etc.)
4648
4649.PHONY: maybe-info-bfd info-bfd
4650maybe-info-bfd:
60975492
PB
4651@if bfd
4652maybe-info-bfd: info-bfd
1358ccea 4653
295f4e42 4654info-bfd: \
05750653 4655 configure-bfd
295f4e42 4656 @[ -f ./bfd/Makefile ] || exit 0; \
8c90b13a
L
4657 r=`${PWD_COMMAND}`; export r; \
4658 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4659 $(HOST_EXPORTS) \
d32ab992 4660 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4661 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4662 done; \
295f4e42 4663 echo "Doing info in bfd" ; \
215c351a 4664 (cd $(HOST_SUBDIR)/bfd && \
1358ccea
NN
4665 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4666 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4667 "RANLIB=$${RANLIB}" \
4668 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4669 info) \
1358ccea
NN
4670 || exit 1
4671
60975492 4672@endif bfd
1358ccea 4673
295f4e42
NN
4674.PHONY: maybe-dvi-bfd dvi-bfd
4675maybe-dvi-bfd:
60975492
PB
4676@if bfd
4677maybe-dvi-bfd: dvi-bfd
1358ccea 4678
295f4e42 4679dvi-bfd: \
05750653 4680 configure-bfd
295f4e42 4681 @[ -f ./bfd/Makefile ] || exit 0; \
8c90b13a
L
4682 r=`${PWD_COMMAND}`; export r; \
4683 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4684 $(HOST_EXPORTS) \
d32ab992 4685 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4686 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4687 done; \
295f4e42 4688 echo "Doing dvi in bfd" ; \
215c351a 4689 (cd $(HOST_SUBDIR)/bfd && \
1358ccea
NN
4690 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4691 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4692 "RANLIB=$${RANLIB}" \
4693 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4694 dvi) \
1358ccea
NN
4695 || exit 1
4696
60975492 4697@endif bfd
1358ccea 4698
f87a2b2e
MS
4699.PHONY: maybe-html-bfd html-bfd
4700maybe-html-bfd:
4701@if bfd
4702maybe-html-bfd: html-bfd
4703
4704html-bfd: \
05750653 4705 configure-bfd
f87a2b2e
MS
4706 @[ -f ./bfd/Makefile ] || exit 0; \
4707 r=`${PWD_COMMAND}`; export r; \
4708 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
4709 $(HOST_EXPORTS) \
4710 for flag in $(EXTRA_HOST_FLAGS) ; do \
4711 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4712 done; \
4713 echo "Doing html in bfd" ; \
215c351a 4714 (cd $(HOST_SUBDIR)/bfd && \
f87a2b2e
MS
4715 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4716 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4717 "RANLIB=$${RANLIB}" \
4718 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4719 html) \
4720 || exit 1
4721
4722@endif bfd
4723
295f4e42
NN
4724.PHONY: maybe-TAGS-bfd TAGS-bfd
4725maybe-TAGS-bfd:
60975492
PB
4726@if bfd
4727maybe-TAGS-bfd: TAGS-bfd
1358ccea 4728
295f4e42 4729TAGS-bfd: \
05750653 4730 configure-bfd
295f4e42 4731 @[ -f ./bfd/Makefile ] || exit 0; \
8c90b13a
L
4732 r=`${PWD_COMMAND}`; export r; \
4733 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4734 $(HOST_EXPORTS) \
d32ab992 4735 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4736 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4737 done; \
295f4e42 4738 echo "Doing TAGS in bfd" ; \
215c351a 4739 (cd $(HOST_SUBDIR)/bfd && \
1358ccea
NN
4740 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4741 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4742 "RANLIB=$${RANLIB}" \
4743 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4744 TAGS) \
1358ccea
NN
4745 || exit 1
4746
60975492 4747@endif bfd
1358ccea 4748
295f4e42
NN
4749.PHONY: maybe-install-info-bfd install-info-bfd
4750maybe-install-info-bfd:
60975492
PB
4751@if bfd
4752maybe-install-info-bfd: install-info-bfd
1358ccea 4753
295f4e42
NN
4754install-info-bfd: \
4755 configure-bfd \
05750653 4756 info-bfd
295f4e42 4757 @[ -f ./bfd/Makefile ] || exit 0; \
8c90b13a
L
4758 r=`${PWD_COMMAND}`; export r; \
4759 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4760 $(HOST_EXPORTS) \
d32ab992 4761 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4762 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4763 done; \
295f4e42 4764 echo "Doing install-info in bfd" ; \
215c351a 4765 (cd $(HOST_SUBDIR)/bfd && \
1358ccea
NN
4766 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4767 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4768 "RANLIB=$${RANLIB}" \
4769 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4770 install-info) \
1358ccea
NN
4771 || exit 1
4772
60975492 4773@endif bfd
1358ccea 4774
65d6e994
CD
4775.PHONY: maybe-install-html-bfd install-html-bfd
4776maybe-install-html-bfd:
4777@if bfd
4778maybe-install-html-bfd: install-html-bfd
4779
4780install-html-bfd: \
4781 configure-bfd \
4782 html-bfd
4783 @[ -f ./bfd/Makefile ] || exit 0; \
4784 r=`${PWD_COMMAND}`; export r; \
4785 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4786 $(HOST_EXPORTS) \
4787 for flag in $(EXTRA_HOST_FLAGS) ; do \
4788 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4789 done; \
4790 echo "Doing install-html in bfd" ; \
4791 (cd $(HOST_SUBDIR)/bfd && \
4792 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4793 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4794 "RANLIB=$${RANLIB}" \
4795 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4796 install-html) \
4797 || exit 1
4798
4799@endif bfd
4800
295f4e42
NN
4801.PHONY: maybe-installcheck-bfd installcheck-bfd
4802maybe-installcheck-bfd:
60975492
PB
4803@if bfd
4804maybe-installcheck-bfd: installcheck-bfd
1358ccea 4805
295f4e42 4806installcheck-bfd: \
05750653 4807 configure-bfd
295f4e42 4808 @[ -f ./bfd/Makefile ] || exit 0; \
8c90b13a
L
4809 r=`${PWD_COMMAND}`; export r; \
4810 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4811 $(HOST_EXPORTS) \
d32ab992 4812 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4813 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4814 done; \
295f4e42 4815 echo "Doing installcheck in bfd" ; \
215c351a 4816 (cd $(HOST_SUBDIR)/bfd && \
1358ccea
NN
4817 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4818 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4819 "RANLIB=$${RANLIB}" \
4820 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4821 installcheck) \
1358ccea
NN
4822 || exit 1
4823
60975492 4824@endif bfd
1358ccea 4825
295f4e42
NN
4826.PHONY: maybe-mostlyclean-bfd mostlyclean-bfd
4827maybe-mostlyclean-bfd:
60975492
PB
4828@if bfd
4829maybe-mostlyclean-bfd: mostlyclean-bfd
1358ccea 4830
05750653 4831mostlyclean-bfd:
295f4e42 4832 @[ -f ./bfd/Makefile ] || exit 0; \
8c90b13a
L
4833 r=`${PWD_COMMAND}`; export r; \
4834 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4835 $(HOST_EXPORTS) \
d32ab992 4836 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4837 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4838 done; \
295f4e42 4839 echo "Doing mostlyclean in bfd" ; \
215c351a 4840 (cd $(HOST_SUBDIR)/bfd && \
1358ccea
NN
4841 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4842 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4843 "RANLIB=$${RANLIB}" \
4844 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4845 mostlyclean) \
1358ccea
NN
4846 || exit 1
4847
60975492 4848@endif bfd
1358ccea 4849
295f4e42
NN
4850.PHONY: maybe-clean-bfd clean-bfd
4851maybe-clean-bfd:
60975492
PB
4852@if bfd
4853maybe-clean-bfd: clean-bfd
1358ccea 4854
05750653 4855clean-bfd:
295f4e42 4856 @[ -f ./bfd/Makefile ] || exit 0; \
8c90b13a
L
4857 r=`${PWD_COMMAND}`; export r; \
4858 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4859 $(HOST_EXPORTS) \
d32ab992 4860 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4861 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4862 done; \
295f4e42 4863 echo "Doing clean in bfd" ; \
215c351a 4864 (cd $(HOST_SUBDIR)/bfd && \
1358ccea
NN
4865 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4866 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4867 "RANLIB=$${RANLIB}" \
4868 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4869 clean) \
1358ccea
NN
4870 || exit 1
4871
60975492 4872@endif bfd
1358ccea 4873
295f4e42
NN
4874.PHONY: maybe-distclean-bfd distclean-bfd
4875maybe-distclean-bfd:
60975492
PB
4876@if bfd
4877maybe-distclean-bfd: distclean-bfd
1358ccea 4878
05750653 4879distclean-bfd:
295f4e42 4880 @[ -f ./bfd/Makefile ] || exit 0; \
8c90b13a
L
4881 r=`${PWD_COMMAND}`; export r; \
4882 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4883 $(HOST_EXPORTS) \
d32ab992 4884 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4885 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4886 done; \
295f4e42 4887 echo "Doing distclean in bfd" ; \
215c351a 4888 (cd $(HOST_SUBDIR)/bfd && \
1358ccea
NN
4889 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4890 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4891 "RANLIB=$${RANLIB}" \
4892 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4893 distclean) \
1358ccea
NN
4894 || exit 1
4895
60975492 4896@endif bfd
1358ccea 4897
295f4e42
NN
4898.PHONY: maybe-maintainer-clean-bfd maintainer-clean-bfd
4899maybe-maintainer-clean-bfd:
60975492
PB
4900@if bfd
4901maybe-maintainer-clean-bfd: maintainer-clean-bfd
1358ccea 4902
05750653 4903maintainer-clean-bfd:
295f4e42 4904 @[ -f ./bfd/Makefile ] || exit 0; \
8c90b13a
L
4905 r=`${PWD_COMMAND}`; export r; \
4906 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4907 $(HOST_EXPORTS) \
d32ab992 4908 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4909 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4910 done; \
295f4e42 4911 echo "Doing maintainer-clean in bfd" ; \
215c351a 4912 (cd $(HOST_SUBDIR)/bfd && \
1358ccea
NN
4913 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4914 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4915 "RANLIB=$${RANLIB}" \
4916 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4917 maintainer-clean) \
1358ccea
NN
4918 || exit 1
4919
60975492 4920@endif bfd
1358ccea 4921
1358ccea 4922
25b42232 4923
295f4e42
NN
4924.PHONY: configure-opcodes maybe-configure-opcodes
4925maybe-configure-opcodes:
3ff3adad
PB
4926@if gcc-bootstrap
4927configure-opcodes: stage_current
4928@endif gcc-bootstrap
60975492
PB
4929@if opcodes
4930maybe-configure-opcodes: configure-opcodes
cc11cc9b 4931configure-opcodes:
cc11cc9b
PB
4932 @r=`${PWD_COMMAND}`; export r; \
4933 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
215c351a
PB
4934 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
4935 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
4fc4dd12 4936 $(HOST_EXPORTS) \
25b42232
PB
4937 echo Configuring in $(HOST_SUBDIR)/opcodes; \
4938 cd "$(HOST_SUBDIR)/opcodes" || exit 1; \
295f4e42 4939 case $(srcdir) in \
215c351a
PB
4940 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4941 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4942 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 4943 esac; \
215c351a
PB
4944 srcdiroption="--srcdir=$${topdir}/opcodes"; \
4945 libsrcdir="$$s/opcodes"; \
295f4e42 4946 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 4947 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 4948 || exit 1
60975492 4949@endif opcodes
1358ccea 4950
25b42232
PB
4951
4952
ce406537
PB
4953.PHONY: configure-stage1-opcodes maybe-configure-stage1-opcodes
4954maybe-configure-stage1-opcodes:
4955@if opcodes-bootstrap
4956maybe-configure-stage1-opcodes: configure-stage1-opcodes
f41d6665 4957configure-stage1-opcodes:
cc11cc9b 4958 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
f41d6665 4959 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
cc11cc9b
PB
4960 @r=`${PWD_COMMAND}`; export r; \
4961 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 4962 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
ce406537
PB
4963 $(HOST_EXPORTS) \
4964 echo Configuring stage 1 in $(HOST_SUBDIR)/opcodes ; \
f41d6665 4965 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
ce406537
PB
4966 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4967 case $(srcdir) in \
4968 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4969 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4970 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4971 esac; \
4972 srcdiroption="--srcdir=$${topdir}/opcodes"; \
4973 libsrcdir="$$s/opcodes"; \
4974 $(SHELL) $${libsrcdir}/configure \
4975 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 4976 \
ce406537
PB
4977 --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
4978@endif opcodes-bootstrap
4979
4980.PHONY: configure-stage2-opcodes maybe-configure-stage2-opcodes
4981maybe-configure-stage2-opcodes:
4982@if opcodes-bootstrap
4983maybe-configure-stage2-opcodes: configure-stage2-opcodes
f41d6665 4984configure-stage2-opcodes:
cc11cc9b 4985 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
f41d6665 4986 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
cc11cc9b
PB
4987 @r=`${PWD_COMMAND}`; export r; \
4988 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 4989 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
ce406537
PB
4990 $(HOST_EXPORTS) \
4991 $(POSTSTAGE1_HOST_EXPORTS) \
4992 echo Configuring stage 2 in $(HOST_SUBDIR)/opcodes ; \
f41d6665 4993 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
ce406537
PB
4994 cd $(HOST_SUBDIR)/opcodes || exit 1; \
4995 case $(srcdir) in \
4996 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4997 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
4998 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4999 esac; \
5000 srcdiroption="--srcdir=$${topdir}/opcodes"; \
5001 libsrcdir="$$s/opcodes"; \
5002 $(SHELL) $${libsrcdir}/configure \
5003 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 5004 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
5005 @stage2_werror_flag@
5006@endif opcodes-bootstrap
5007
5008.PHONY: configure-stage3-opcodes maybe-configure-stage3-opcodes
5009maybe-configure-stage3-opcodes:
5010@if opcodes-bootstrap
5011maybe-configure-stage3-opcodes: configure-stage3-opcodes
f41d6665 5012configure-stage3-opcodes:
cc11cc9b 5013 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
f41d6665 5014 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
cc11cc9b
PB
5015 @r=`${PWD_COMMAND}`; export r; \
5016 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 5017 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
ce406537
PB
5018 $(HOST_EXPORTS) \
5019 $(POSTSTAGE1_HOST_EXPORTS) \
5020 echo Configuring stage 3 in $(HOST_SUBDIR)/opcodes ; \
f41d6665 5021 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
ce406537
PB
5022 cd $(HOST_SUBDIR)/opcodes || exit 1; \
5023 case $(srcdir) in \
5024 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
5025 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
5026 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5027 esac; \
5028 srcdiroption="--srcdir=$${topdir}/opcodes"; \
5029 libsrcdir="$$s/opcodes"; \
5030 $(SHELL) $${libsrcdir}/configure \
5031 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 5032 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
5033 @stage2_werror_flag@
5034@endif opcodes-bootstrap
5035
5036.PHONY: configure-stage4-opcodes maybe-configure-stage4-opcodes
5037maybe-configure-stage4-opcodes:
5038@if opcodes-bootstrap
5039maybe-configure-stage4-opcodes: configure-stage4-opcodes
f41d6665 5040configure-stage4-opcodes:
cc11cc9b 5041 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
f41d6665 5042 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
cc11cc9b
PB
5043 @r=`${PWD_COMMAND}`; export r; \
5044 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 5045 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
ce406537
PB
5046 $(HOST_EXPORTS) \
5047 $(POSTSTAGE1_HOST_EXPORTS) \
5048 echo Configuring stage 4 in $(HOST_SUBDIR)/opcodes ; \
f41d6665 5049 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
ce406537
PB
5050 cd $(HOST_SUBDIR)/opcodes || exit 1; \
5051 case $(srcdir) in \
5052 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
5053 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
5054 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5055 esac; \
5056 srcdiroption="--srcdir=$${topdir}/opcodes"; \
5057 libsrcdir="$$s/opcodes"; \
5058 $(SHELL) $${libsrcdir}/configure \
5059 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 5060 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
5061 @stage2_werror_flag@
5062@endif opcodes-bootstrap
5063
5064.PHONY: configure-stageprofile-opcodes maybe-configure-stageprofile-opcodes
5065maybe-configure-stageprofile-opcodes:
5066@if opcodes-bootstrap
5067maybe-configure-stageprofile-opcodes: configure-stageprofile-opcodes
f41d6665 5068configure-stageprofile-opcodes:
cc11cc9b 5069 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
f41d6665 5070 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
cc11cc9b
PB
5071 @r=`${PWD_COMMAND}`; export r; \
5072 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 5073 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
ce406537
PB
5074 $(HOST_EXPORTS) \
5075 $(POSTSTAGE1_HOST_EXPORTS) \
5076 echo Configuring stage profile in $(HOST_SUBDIR)/opcodes ; \
f41d6665 5077 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
ce406537
PB
5078 cd $(HOST_SUBDIR)/opcodes || exit 1; \
5079 case $(srcdir) in \
5080 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
5081 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
5082 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5083 esac; \
5084 srcdiroption="--srcdir=$${topdir}/opcodes"; \
5085 libsrcdir="$$s/opcodes"; \
5086 $(SHELL) $${libsrcdir}/configure \
5087 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 5088 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
5089 @stage2_werror_flag@
5090@endif opcodes-bootstrap
5091
5092.PHONY: configure-stagefeedback-opcodes maybe-configure-stagefeedback-opcodes
5093maybe-configure-stagefeedback-opcodes:
5094@if opcodes-bootstrap
5095maybe-configure-stagefeedback-opcodes: configure-stagefeedback-opcodes
f41d6665 5096configure-stagefeedback-opcodes:
cc11cc9b 5097 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
f41d6665 5098 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
cc11cc9b
PB
5099 @r=`${PWD_COMMAND}`; export r; \
5100 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 5101 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
ce406537
PB
5102 $(HOST_EXPORTS) \
5103 $(POSTSTAGE1_HOST_EXPORTS) \
5104 echo Configuring stage feedback in $(HOST_SUBDIR)/opcodes ; \
f41d6665 5105 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
ce406537
PB
5106 cd $(HOST_SUBDIR)/opcodes || exit 1; \
5107 case $(srcdir) in \
5108 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
5109 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
5110 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5111 esac; \
5112 srcdiroption="--srcdir=$${topdir}/opcodes"; \
5113 libsrcdir="$$s/opcodes"; \
5114 $(SHELL) $${libsrcdir}/configure \
5115 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 5116 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
5117 @stage2_werror_flag@
5118@endif opcodes-bootstrap
5119
5120
5121
5122
5123
295f4e42
NN
5124.PHONY: all-opcodes maybe-all-opcodes
5125maybe-all-opcodes:
3ff3adad
PB
5126@if gcc-bootstrap
5127all-opcodes: stage_current
5128@endif gcc-bootstrap
60975492 5129@if opcodes
7e0b5752 5130TARGET-opcodes=all
60975492 5131maybe-all-opcodes: all-opcodes
295f4e42 5132all-opcodes: configure-opcodes
cc11cc9b 5133 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 5134 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5135 $(HOST_EXPORTS) \
215c351a
PB
5136 (cd $(HOST_SUBDIR)/opcodes && \
5137 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-opcodes))
60975492 5138@endif opcodes
1358ccea 5139
25b42232 5140
ce406537
PB
5141
5142.PHONY: all-stage1-opcodes maybe-all-stage1-opcodes
5143.PHONY: clean-stage1-opcodes maybe-clean-stage1-opcodes
5144maybe-all-stage1-opcodes:
5145maybe-clean-stage1-opcodes:
5146@if opcodes-bootstrap
5147maybe-all-stage1-opcodes: all-stage1-opcodes
5148all-stage1: all-stage1-opcodes
1061f99e 5149TARGET-stage1-opcodes = $(TARGET-opcodes)
ce406537 5150all-stage1-opcodes: configure-stage1-opcodes
cc11cc9b 5151 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
ce406537
PB
5152 @r=`${PWD_COMMAND}`; export r; \
5153 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5154 $(HOST_EXPORTS) \
5155 cd $(HOST_SUBDIR)/opcodes && \
cc11cc9b 5156 $(MAKE) $(FLAGS_TO_PASS) CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" \
1061f99e 5157 $(TARGET-stage1-opcodes)
ce406537
PB
5158
5159maybe-clean-stage1-opcodes: clean-stage1-opcodes
5160clean-stage1: clean-stage1-opcodes
5161clean-stage1-opcodes:
5162 @[ -f $(HOST_SUBDIR)/opcodes/Makefile ] || [ -f $(HOST_SUBDIR)/stage1-opcodes/Makefile ] \
5163 || exit 0 ; \
cc11cc9b 5164 [ $(current_stage) = stage1 ] || $(MAKE) stage1-start; \
ce406537
PB
5165 cd $(HOST_SUBDIR)/opcodes && \
5166 $(MAKE) $(FLAGS_TO_PASS) \
cc11cc9b 5167 CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" clean
ce406537
PB
5168@endif opcodes-bootstrap
5169
5170
5171.PHONY: all-stage2-opcodes maybe-all-stage2-opcodes
5172.PHONY: clean-stage2-opcodes maybe-clean-stage2-opcodes
5173maybe-all-stage2-opcodes:
5174maybe-clean-stage2-opcodes:
5175@if opcodes-bootstrap
5176maybe-all-stage2-opcodes: all-stage2-opcodes
5177all-stage2: all-stage2-opcodes
1061f99e 5178TARGET-stage2-opcodes = $(TARGET-opcodes)
ce406537 5179all-stage2-opcodes: configure-stage2-opcodes
cc11cc9b 5180 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
ce406537
PB
5181 @r=`${PWD_COMMAND}`; export r; \
5182 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5183 $(HOST_EXPORTS) \
5184 $(POSTSTAGE1_HOST_EXPORTS) \
5185 cd $(HOST_SUBDIR)/opcodes && \
1061f99e
PB
5186 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
5187 $(TARGET-stage2-opcodes)
ce406537
PB
5188
5189maybe-clean-stage2-opcodes: clean-stage2-opcodes
5190clean-stage2: clean-stage2-opcodes
5191clean-stage2-opcodes:
5192 @[ -f $(HOST_SUBDIR)/opcodes/Makefile ] || [ -f $(HOST_SUBDIR)/stage2-opcodes/Makefile ] \
5193 || exit 0 ; \
cc11cc9b 5194 [ $(current_stage) = stage2 ] || $(MAKE) stage2-start; \
ce406537
PB
5195 cd $(HOST_SUBDIR)/opcodes && \
5196 $(MAKE) $(FLAGS_TO_PASS) \
5197 $(POSTSTAGE1_FLAGS_TO_PASS) \
5198 clean
5199@endif opcodes-bootstrap
5200
5201
5202.PHONY: all-stage3-opcodes maybe-all-stage3-opcodes
5203.PHONY: clean-stage3-opcodes maybe-clean-stage3-opcodes
5204maybe-all-stage3-opcodes:
5205maybe-clean-stage3-opcodes:
5206@if opcodes-bootstrap
5207maybe-all-stage3-opcodes: all-stage3-opcodes
5208all-stage3: all-stage3-opcodes
1061f99e 5209TARGET-stage3-opcodes = $(TARGET-opcodes)
ce406537 5210all-stage3-opcodes: configure-stage3-opcodes
cc11cc9b 5211 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
ce406537
PB
5212 @r=`${PWD_COMMAND}`; export r; \
5213 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5214 $(HOST_EXPORTS) \
5215 $(POSTSTAGE1_HOST_EXPORTS) \
5216 cd $(HOST_SUBDIR)/opcodes && \
1061f99e
PB
5217 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
5218 $(TARGET-stage3-opcodes)
ce406537
PB
5219
5220maybe-clean-stage3-opcodes: clean-stage3-opcodes
5221clean-stage3: clean-stage3-opcodes
5222clean-stage3-opcodes:
5223 @[ -f $(HOST_SUBDIR)/opcodes/Makefile ] || [ -f $(HOST_SUBDIR)/stage3-opcodes/Makefile ] \
5224 || exit 0 ; \
cc11cc9b 5225 [ $(current_stage) = stage3 ] || $(MAKE) stage3-start; \
ce406537
PB
5226 cd $(HOST_SUBDIR)/opcodes && \
5227 $(MAKE) $(FLAGS_TO_PASS) \
5228 $(POSTSTAGE1_FLAGS_TO_PASS) \
5229 clean
5230@endif opcodes-bootstrap
5231
5232
5233.PHONY: all-stage4-opcodes maybe-all-stage4-opcodes
5234.PHONY: clean-stage4-opcodes maybe-clean-stage4-opcodes
5235maybe-all-stage4-opcodes:
5236maybe-clean-stage4-opcodes:
5237@if opcodes-bootstrap
5238maybe-all-stage4-opcodes: all-stage4-opcodes
5239all-stage4: all-stage4-opcodes
1061f99e 5240TARGET-stage4-opcodes = $(TARGET-opcodes)
ce406537 5241all-stage4-opcodes: configure-stage4-opcodes
cc11cc9b 5242 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
ce406537
PB
5243 @r=`${PWD_COMMAND}`; export r; \
5244 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5245 $(HOST_EXPORTS) \
5246 $(POSTSTAGE1_HOST_EXPORTS) \
5247 cd $(HOST_SUBDIR)/opcodes && \
1061f99e
PB
5248 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
5249 $(TARGET-stage4-opcodes)
ce406537
PB
5250
5251maybe-clean-stage4-opcodes: clean-stage4-opcodes
5252clean-stage4: clean-stage4-opcodes
5253clean-stage4-opcodes:
5254 @[ -f $(HOST_SUBDIR)/opcodes/Makefile ] || [ -f $(HOST_SUBDIR)/stage4-opcodes/Makefile ] \
5255 || exit 0 ; \
cc11cc9b 5256 [ $(current_stage) = stage4 ] || $(MAKE) stage4-start; \
ce406537
PB
5257 cd $(HOST_SUBDIR)/opcodes && \
5258 $(MAKE) $(FLAGS_TO_PASS) \
5259 $(POSTSTAGE1_FLAGS_TO_PASS) \
5260 clean
5261@endif opcodes-bootstrap
5262
5263
5264.PHONY: all-stageprofile-opcodes maybe-all-stageprofile-opcodes
5265.PHONY: clean-stageprofile-opcodes maybe-clean-stageprofile-opcodes
5266maybe-all-stageprofile-opcodes:
5267maybe-clean-stageprofile-opcodes:
5268@if opcodes-bootstrap
5269maybe-all-stageprofile-opcodes: all-stageprofile-opcodes
5270all-stageprofile: all-stageprofile-opcodes
1061f99e 5271TARGET-stageprofile-opcodes = $(TARGET-opcodes)
ce406537 5272all-stageprofile-opcodes: configure-stageprofile-opcodes
cc11cc9b 5273 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
ce406537
PB
5274 @r=`${PWD_COMMAND}`; export r; \
5275 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5276 $(HOST_EXPORTS) \
5277 $(POSTSTAGE1_HOST_EXPORTS) \
5278 cd $(HOST_SUBDIR)/opcodes && \
1061f99e
PB
5279 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" \
5280 $(TARGET-stageprofile-opcodes)
ce406537
PB
5281
5282maybe-clean-stageprofile-opcodes: clean-stageprofile-opcodes
5283clean-stageprofile: clean-stageprofile-opcodes
5284clean-stageprofile-opcodes:
5285 @[ -f $(HOST_SUBDIR)/opcodes/Makefile ] || [ -f $(HOST_SUBDIR)/stageprofile-opcodes/Makefile ] \
5286 || exit 0 ; \
cc11cc9b 5287 [ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start; \
ce406537
PB
5288 cd $(HOST_SUBDIR)/opcodes && \
5289 $(MAKE) $(FLAGS_TO_PASS) \
5290 $(POSTSTAGE1_FLAGS_TO_PASS) \
5291 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean
5292@endif opcodes-bootstrap
5293
5294
5295.PHONY: all-stagefeedback-opcodes maybe-all-stagefeedback-opcodes
5296.PHONY: clean-stagefeedback-opcodes maybe-clean-stagefeedback-opcodes
5297maybe-all-stagefeedback-opcodes:
5298maybe-clean-stagefeedback-opcodes:
5299@if opcodes-bootstrap
5300maybe-all-stagefeedback-opcodes: all-stagefeedback-opcodes
5301all-stagefeedback: all-stagefeedback-opcodes
1061f99e 5302TARGET-stagefeedback-opcodes = $(TARGET-opcodes)
ce406537 5303all-stagefeedback-opcodes: configure-stagefeedback-opcodes
cc11cc9b 5304 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
ce406537
PB
5305 @r=`${PWD_COMMAND}`; export r; \
5306 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5307 $(HOST_EXPORTS) \
5308 $(POSTSTAGE1_HOST_EXPORTS) \
5309 cd $(HOST_SUBDIR)/opcodes && \
1061f99e
PB
5310 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-use" \
5311 $(TARGET-stagefeedback-opcodes)
ce406537
PB
5312
5313maybe-clean-stagefeedback-opcodes: clean-stagefeedback-opcodes
5314clean-stagefeedback: clean-stagefeedback-opcodes
5315clean-stagefeedback-opcodes:
5316 @[ -f $(HOST_SUBDIR)/opcodes/Makefile ] || [ -f $(HOST_SUBDIR)/stagefeedback-opcodes/Makefile ] \
5317 || exit 0 ; \
cc11cc9b 5318 [ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start; \
ce406537
PB
5319 cd $(HOST_SUBDIR)/opcodes && \
5320 $(MAKE) $(FLAGS_TO_PASS) \
5321 $(POSTSTAGE1_FLAGS_TO_PASS) \
5322 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean
5323@endif opcodes-bootstrap
5324
5325
5326
5327
5328
295f4e42
NN
5329.PHONY: check-opcodes maybe-check-opcodes
5330maybe-check-opcodes:
60975492
PB
5331@if opcodes
5332maybe-check-opcodes: check-opcodes
1358ccea 5333
295f4e42 5334check-opcodes:
f41d6665 5335 @: $(MAKE); $(unstage)
295f4e42
NN
5336 @r=`${PWD_COMMAND}`; export r; \
5337 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5338 $(HOST_EXPORTS) \
215c351a
PB
5339 (cd $(HOST_SUBDIR)/opcodes && \
5340 $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 5341
60975492 5342@endif opcodes
1358ccea 5343
295f4e42
NN
5344.PHONY: install-opcodes maybe-install-opcodes
5345maybe-install-opcodes:
60975492
PB
5346@if opcodes
5347maybe-install-opcodes: install-opcodes
1358ccea 5348
295f4e42 5349install-opcodes: installdirs
f41d6665 5350 @: $(MAKE); $(unstage)
295f4e42 5351 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 5352 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5353 $(HOST_EXPORTS) \
215c351a 5354 (cd $(HOST_SUBDIR)/opcodes && \
ace9ac7b 5355 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 5356
60975492 5357@endif opcodes
1358ccea 5358
295f4e42 5359# Other targets (info, dvi, etc.)
1358ccea 5360
295f4e42
NN
5361.PHONY: maybe-info-opcodes info-opcodes
5362maybe-info-opcodes:
60975492
PB
5363@if opcodes
5364maybe-info-opcodes: info-opcodes
295f4e42
NN
5365
5366info-opcodes: \
05750653 5367 configure-opcodes
295f4e42 5368 @[ -f ./opcodes/Makefile ] || exit 0; \
8c90b13a
L
5369 r=`${PWD_COMMAND}`; export r; \
5370 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5371 $(HOST_EXPORTS) \
d32ab992 5372 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5373 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5374 done; \
295f4e42 5375 echo "Doing info in opcodes" ; \
215c351a 5376 (cd $(HOST_SUBDIR)/opcodes && \
1358ccea
NN
5377 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5378 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5379 "RANLIB=$${RANLIB}" \
5380 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 5381 info) \
1358ccea
NN
5382 || exit 1
5383
60975492 5384@endif opcodes
1358ccea 5385
295f4e42
NN
5386.PHONY: maybe-dvi-opcodes dvi-opcodes
5387maybe-dvi-opcodes:
60975492
PB
5388@if opcodes
5389maybe-dvi-opcodes: dvi-opcodes
1358ccea 5390
295f4e42 5391dvi-opcodes: \
05750653 5392 configure-opcodes
295f4e42 5393 @[ -f ./opcodes/Makefile ] || exit 0; \
8c90b13a
L
5394 r=`${PWD_COMMAND}`; export r; \
5395 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5396 $(HOST_EXPORTS) \
d32ab992 5397 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5398 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5399 done; \
295f4e42 5400 echo "Doing dvi in opcodes" ; \
215c351a 5401 (cd $(HOST_SUBDIR)/opcodes && \
1358ccea
NN
5402 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5403 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5404 "RANLIB=$${RANLIB}" \
5405 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 5406 dvi) \
1358ccea
NN
5407 || exit 1
5408
60975492 5409@endif opcodes
1358ccea 5410
f87a2b2e
MS
5411.PHONY: maybe-html-opcodes html-opcodes
5412maybe-html-opcodes:
5413@if opcodes
5414maybe-html-opcodes: html-opcodes
5415
5416html-opcodes: \
05750653 5417 configure-opcodes
f87a2b2e
MS
5418 @[ -f ./opcodes/Makefile ] || exit 0; \
5419 r=`${PWD_COMMAND}`; export r; \
5420 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
5421 $(HOST_EXPORTS) \
5422 for flag in $(EXTRA_HOST_FLAGS) ; do \
5423 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5424 done; \
5425 echo "Doing html in opcodes" ; \
215c351a 5426 (cd $(HOST_SUBDIR)/opcodes && \
f87a2b2e
MS
5427 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5428 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5429 "RANLIB=$${RANLIB}" \
5430 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5431 html) \
5432 || exit 1
5433
5434@endif opcodes
5435
295f4e42
NN
5436.PHONY: maybe-TAGS-opcodes TAGS-opcodes
5437maybe-TAGS-opcodes:
60975492
PB
5438@if opcodes
5439maybe-TAGS-opcodes: TAGS-opcodes
1358ccea 5440
295f4e42 5441TAGS-opcodes: \
05750653 5442 configure-opcodes
295f4e42 5443 @[ -f ./opcodes/Makefile ] || exit 0; \
8c90b13a
L
5444 r=`${PWD_COMMAND}`; export r; \
5445 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5446 $(HOST_EXPORTS) \
d32ab992 5447 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5448 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5449 done; \
295f4e42 5450 echo "Doing TAGS in opcodes" ; \
215c351a 5451 (cd $(HOST_SUBDIR)/opcodes && \
1358ccea
NN
5452 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5453 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5454 "RANLIB=$${RANLIB}" \
5455 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 5456 TAGS) \
1358ccea
NN
5457 || exit 1
5458
60975492 5459@endif opcodes
1358ccea 5460
295f4e42
NN
5461.PHONY: maybe-install-info-opcodes install-info-opcodes
5462maybe-install-info-opcodes:
60975492
PB
5463@if opcodes
5464maybe-install-info-opcodes: install-info-opcodes
1358ccea 5465
295f4e42
NN
5466install-info-opcodes: \
5467 configure-opcodes \
05750653 5468 info-opcodes
295f4e42 5469 @[ -f ./opcodes/Makefile ] || exit 0; \
8c90b13a
L
5470 r=`${PWD_COMMAND}`; export r; \
5471 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5472 $(HOST_EXPORTS) \
d32ab992 5473 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5474 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5475 done; \
295f4e42 5476 echo "Doing install-info in opcodes" ; \
215c351a 5477 (cd $(HOST_SUBDIR)/opcodes && \
1358ccea
NN
5478 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5479 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5480 "RANLIB=$${RANLIB}" \
5481 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 5482 install-info) \
1358ccea
NN
5483 || exit 1
5484
60975492 5485@endif opcodes
1358ccea 5486
65d6e994
CD
5487.PHONY: maybe-install-html-opcodes install-html-opcodes
5488maybe-install-html-opcodes:
5489@if opcodes
5490maybe-install-html-opcodes: install-html-opcodes
5491
5492install-html-opcodes: \
5493 configure-opcodes \
5494 html-opcodes
5495 @[ -f ./opcodes/Makefile ] || exit 0; \
5496 r=`${PWD_COMMAND}`; export r; \
5497 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5498 $(HOST_EXPORTS) \
5499 for flag in $(EXTRA_HOST_FLAGS) ; do \
5500 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5501 done; \
5502 echo "Doing install-html in opcodes" ; \
5503 (cd $(HOST_SUBDIR)/opcodes && \
5504 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5505 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5506 "RANLIB=$${RANLIB}" \
5507 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5508 install-html) \
5509 || exit 1
5510
5511@endif opcodes
5512
295f4e42
NN
5513.PHONY: maybe-installcheck-opcodes installcheck-opcodes
5514maybe-installcheck-opcodes:
60975492
PB
5515@if opcodes
5516maybe-installcheck-opcodes: installcheck-opcodes
1358ccea 5517
295f4e42 5518installcheck-opcodes: \
05750653 5519 configure-opcodes
295f4e42 5520 @[ -f ./opcodes/Makefile ] || exit 0; \
8c90b13a
L
5521 r=`${PWD_COMMAND}`; export r; \
5522 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5523 $(HOST_EXPORTS) \
d32ab992 5524 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5525 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5526 done; \
295f4e42 5527 echo "Doing installcheck in opcodes" ; \
215c351a 5528 (cd $(HOST_SUBDIR)/opcodes && \
1358ccea
NN
5529 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5530 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5531 "RANLIB=$${RANLIB}" \
5532 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 5533 installcheck) \
1358ccea
NN
5534 || exit 1
5535
60975492 5536@endif opcodes
1358ccea 5537
295f4e42
NN
5538.PHONY: maybe-mostlyclean-opcodes mostlyclean-opcodes
5539maybe-mostlyclean-opcodes:
60975492
PB
5540@if opcodes
5541maybe-mostlyclean-opcodes: mostlyclean-opcodes
1358ccea 5542
05750653 5543mostlyclean-opcodes:
295f4e42 5544 @[ -f ./opcodes/Makefile ] || exit 0; \
8c90b13a
L
5545 r=`${PWD_COMMAND}`; export r; \
5546 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5547 $(HOST_EXPORTS) \
d32ab992 5548 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5549 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5550 done; \
295f4e42 5551 echo "Doing mostlyclean in opcodes" ; \
215c351a 5552 (cd $(HOST_SUBDIR)/opcodes && \
1358ccea
NN
5553 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5554 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5555 "RANLIB=$${RANLIB}" \
5556 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 5557 mostlyclean) \
1358ccea
NN
5558 || exit 1
5559
60975492 5560@endif opcodes
1358ccea 5561
295f4e42
NN
5562.PHONY: maybe-clean-opcodes clean-opcodes
5563maybe-clean-opcodes:
60975492
PB
5564@if opcodes
5565maybe-clean-opcodes: clean-opcodes
1358ccea 5566
05750653 5567clean-opcodes:
295f4e42 5568 @[ -f ./opcodes/Makefile ] || exit 0; \
8c90b13a
L
5569 r=`${PWD_COMMAND}`; export r; \
5570 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5571 $(HOST_EXPORTS) \
d32ab992 5572 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5573 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5574 done; \
295f4e42 5575 echo "Doing clean in opcodes" ; \
215c351a 5576 (cd $(HOST_SUBDIR)/opcodes && \
1358ccea
NN
5577 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5578 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5579 "RANLIB=$${RANLIB}" \
5580 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 5581 clean) \
1358ccea
NN
5582 || exit 1
5583
60975492 5584@endif opcodes
1358ccea 5585
295f4e42
NN
5586.PHONY: maybe-distclean-opcodes distclean-opcodes
5587maybe-distclean-opcodes:
60975492
PB
5588@if opcodes
5589maybe-distclean-opcodes: distclean-opcodes
1358ccea 5590
05750653 5591distclean-opcodes:
295f4e42 5592 @[ -f ./opcodes/Makefile ] || exit 0; \
8c90b13a
L
5593 r=`${PWD_COMMAND}`; export r; \
5594 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5595 $(HOST_EXPORTS) \
d32ab992 5596 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5597 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5598 done; \
295f4e42 5599 echo "Doing distclean in opcodes" ; \
215c351a 5600 (cd $(HOST_SUBDIR)/opcodes && \
1358ccea
NN
5601 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5602 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5603 "RANLIB=$${RANLIB}" \
5604 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 5605 distclean) \
1358ccea
NN
5606 || exit 1
5607
60975492 5608@endif opcodes
1358ccea 5609
295f4e42
NN
5610.PHONY: maybe-maintainer-clean-opcodes maintainer-clean-opcodes
5611maybe-maintainer-clean-opcodes:
60975492
PB
5612@if opcodes
5613maybe-maintainer-clean-opcodes: maintainer-clean-opcodes
1358ccea 5614
05750653 5615maintainer-clean-opcodes:
295f4e42 5616 @[ -f ./opcodes/Makefile ] || exit 0; \
8c90b13a
L
5617 r=`${PWD_COMMAND}`; export r; \
5618 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5619 $(HOST_EXPORTS) \
d32ab992 5620 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5621 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5622 done; \
295f4e42 5623 echo "Doing maintainer-clean in opcodes" ; \
215c351a 5624 (cd $(HOST_SUBDIR)/opcodes && \
1358ccea
NN
5625 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5626 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5627 "RANLIB=$${RANLIB}" \
5628 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 5629 maintainer-clean) \
1358ccea
NN
5630 || exit 1
5631
60975492 5632@endif opcodes
1358ccea 5633
1358ccea 5634
25b42232 5635
295f4e42
NN
5636.PHONY: configure-binutils maybe-configure-binutils
5637maybe-configure-binutils:
3ff3adad
PB
5638@if gcc-bootstrap
5639configure-binutils: stage_current
5640@endif gcc-bootstrap
60975492
PB
5641@if binutils
5642maybe-configure-binutils: configure-binutils
cc11cc9b 5643configure-binutils:
cc11cc9b
PB
5644 @r=`${PWD_COMMAND}`; export r; \
5645 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
215c351a
PB
5646 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
5647 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
4fc4dd12 5648 $(HOST_EXPORTS) \
25b42232
PB
5649 echo Configuring in $(HOST_SUBDIR)/binutils; \
5650 cd "$(HOST_SUBDIR)/binutils" || exit 1; \
295f4e42 5651 case $(srcdir) in \
215c351a
PB
5652 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
5653 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
5654 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 5655 esac; \
215c351a
PB
5656 srcdiroption="--srcdir=$${topdir}/binutils"; \
5657 libsrcdir="$$s/binutils"; \
295f4e42 5658 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 5659 $(HOST_CONFIGARGS) $${srcdiroption} \
295f4e42 5660 || exit 1
60975492 5661@endif binutils
295f4e42 5662
25b42232
PB
5663
5664
ce406537
PB
5665.PHONY: configure-stage1-binutils maybe-configure-stage1-binutils
5666maybe-configure-stage1-binutils:
5667@if binutils-bootstrap
5668maybe-configure-stage1-binutils: configure-stage1-binutils
f41d6665 5669configure-stage1-binutils:
cc11cc9b 5670 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
f41d6665 5671 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
cc11cc9b
PB
5672 @r=`${PWD_COMMAND}`; export r; \
5673 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 5674 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
ce406537
PB
5675 $(HOST_EXPORTS) \
5676 echo Configuring stage 1 in $(HOST_SUBDIR)/binutils ; \
f41d6665 5677 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
ce406537
PB
5678 cd $(HOST_SUBDIR)/binutils || exit 1; \
5679 case $(srcdir) in \
5680 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
5681 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
5682 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5683 esac; \
5684 srcdiroption="--srcdir=$${topdir}/binutils"; \
5685 libsrcdir="$$s/binutils"; \
5686 $(SHELL) $${libsrcdir}/configure \
5687 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 5688 \
ce406537
PB
5689 --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
5690@endif binutils-bootstrap
5691
5692.PHONY: configure-stage2-binutils maybe-configure-stage2-binutils
5693maybe-configure-stage2-binutils:
5694@if binutils-bootstrap
5695maybe-configure-stage2-binutils: configure-stage2-binutils
f41d6665 5696configure-stage2-binutils:
cc11cc9b 5697 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
f41d6665 5698 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
cc11cc9b
PB
5699 @r=`${PWD_COMMAND}`; export r; \
5700 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 5701 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
ce406537
PB
5702 $(HOST_EXPORTS) \
5703 $(POSTSTAGE1_HOST_EXPORTS) \
5704 echo Configuring stage 2 in $(HOST_SUBDIR)/binutils ; \
f41d6665 5705 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
ce406537
PB
5706 cd $(HOST_SUBDIR)/binutils || exit 1; \
5707 case $(srcdir) in \
5708 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
5709 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
5710 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5711 esac; \
5712 srcdiroption="--srcdir=$${topdir}/binutils"; \
5713 libsrcdir="$$s/binutils"; \
5714 $(SHELL) $${libsrcdir}/configure \
5715 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 5716 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
5717 @stage2_werror_flag@
5718@endif binutils-bootstrap
5719
5720.PHONY: configure-stage3-binutils maybe-configure-stage3-binutils
5721maybe-configure-stage3-binutils:
5722@if binutils-bootstrap
5723maybe-configure-stage3-binutils: configure-stage3-binutils
f41d6665 5724configure-stage3-binutils:
cc11cc9b 5725 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
f41d6665 5726 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
cc11cc9b
PB
5727 @r=`${PWD_COMMAND}`; export r; \
5728 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 5729 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
ce406537
PB
5730 $(HOST_EXPORTS) \
5731 $(POSTSTAGE1_HOST_EXPORTS) \
5732 echo Configuring stage 3 in $(HOST_SUBDIR)/binutils ; \
f41d6665 5733 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
ce406537
PB
5734 cd $(HOST_SUBDIR)/binutils || exit 1; \
5735 case $(srcdir) in \
5736 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
5737 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
5738 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5739 esac; \
5740 srcdiroption="--srcdir=$${topdir}/binutils"; \
5741 libsrcdir="$$s/binutils"; \
5742 $(SHELL) $${libsrcdir}/configure \
5743 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 5744 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
5745 @stage2_werror_flag@
5746@endif binutils-bootstrap
5747
5748.PHONY: configure-stage4-binutils maybe-configure-stage4-binutils
5749maybe-configure-stage4-binutils:
5750@if binutils-bootstrap
5751maybe-configure-stage4-binutils: configure-stage4-binutils
f41d6665 5752configure-stage4-binutils:
cc11cc9b 5753 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
f41d6665 5754 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
cc11cc9b
PB
5755 @r=`${PWD_COMMAND}`; export r; \
5756 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 5757 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
ce406537
PB
5758 $(HOST_EXPORTS) \
5759 $(POSTSTAGE1_HOST_EXPORTS) \
5760 echo Configuring stage 4 in $(HOST_SUBDIR)/binutils ; \
f41d6665 5761 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
ce406537
PB
5762 cd $(HOST_SUBDIR)/binutils || exit 1; \
5763 case $(srcdir) in \
5764 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
5765 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
5766 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5767 esac; \
5768 srcdiroption="--srcdir=$${topdir}/binutils"; \
5769 libsrcdir="$$s/binutils"; \
5770 $(SHELL) $${libsrcdir}/configure \
5771 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 5772 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
5773 @stage2_werror_flag@
5774@endif binutils-bootstrap
5775
5776.PHONY: configure-stageprofile-binutils maybe-configure-stageprofile-binutils
5777maybe-configure-stageprofile-binutils:
5778@if binutils-bootstrap
5779maybe-configure-stageprofile-binutils: configure-stageprofile-binutils
f41d6665 5780configure-stageprofile-binutils:
cc11cc9b 5781 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
f41d6665 5782 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
cc11cc9b
PB
5783 @r=`${PWD_COMMAND}`; export r; \
5784 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 5785 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
ce406537
PB
5786 $(HOST_EXPORTS) \
5787 $(POSTSTAGE1_HOST_EXPORTS) \
5788 echo Configuring stage profile in $(HOST_SUBDIR)/binutils ; \
f41d6665 5789 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
ce406537
PB
5790 cd $(HOST_SUBDIR)/binutils || exit 1; \
5791 case $(srcdir) in \
5792 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
5793 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
5794 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5795 esac; \
5796 srcdiroption="--srcdir=$${topdir}/binutils"; \
5797 libsrcdir="$$s/binutils"; \
5798 $(SHELL) $${libsrcdir}/configure \
5799 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 5800 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
5801 @stage2_werror_flag@
5802@endif binutils-bootstrap
5803
5804.PHONY: configure-stagefeedback-binutils maybe-configure-stagefeedback-binutils
5805maybe-configure-stagefeedback-binutils:
5806@if binutils-bootstrap
5807maybe-configure-stagefeedback-binutils: configure-stagefeedback-binutils
f41d6665 5808configure-stagefeedback-binutils:
cc11cc9b 5809 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
f41d6665 5810 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
cc11cc9b
PB
5811 @r=`${PWD_COMMAND}`; export r; \
5812 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 5813 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
ce406537
PB
5814 $(HOST_EXPORTS) \
5815 $(POSTSTAGE1_HOST_EXPORTS) \
5816 echo Configuring stage feedback in $(HOST_SUBDIR)/binutils ; \
f41d6665 5817 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
ce406537
PB
5818 cd $(HOST_SUBDIR)/binutils || exit 1; \
5819 case $(srcdir) in \
5820 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
5821 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
5822 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5823 esac; \
5824 srcdiroption="--srcdir=$${topdir}/binutils"; \
5825 libsrcdir="$$s/binutils"; \
5826 $(SHELL) $${libsrcdir}/configure \
5827 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 5828 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
5829 @stage2_werror_flag@
5830@endif binutils-bootstrap
5831
5832
5833
5834
5835
295f4e42
NN
5836.PHONY: all-binutils maybe-all-binutils
5837maybe-all-binutils:
3ff3adad
PB
5838@if gcc-bootstrap
5839all-binutils: stage_current
5840@endif gcc-bootstrap
60975492 5841@if binutils
7e0b5752 5842TARGET-binutils=all
60975492 5843maybe-all-binutils: all-binutils
295f4e42 5844all-binutils: configure-binutils
cc11cc9b 5845 @r=`${PWD_COMMAND}`; export r; \
295f4e42 5846 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5847 $(HOST_EXPORTS) \
215c351a
PB
5848 (cd $(HOST_SUBDIR)/binutils && \
5849 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-binutils))
60975492 5850@endif binutils
295f4e42 5851
25b42232 5852
295f4e42 5853
ce406537
PB
5854.PHONY: all-stage1-binutils maybe-all-stage1-binutils
5855.PHONY: clean-stage1-binutils maybe-clean-stage1-binutils
5856maybe-all-stage1-binutils:
5857maybe-clean-stage1-binutils:
5858@if binutils-bootstrap
5859maybe-all-stage1-binutils: all-stage1-binutils
5860all-stage1: all-stage1-binutils
1061f99e 5861TARGET-stage1-binutils = $(TARGET-binutils)
ce406537 5862all-stage1-binutils: configure-stage1-binutils
cc11cc9b 5863 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
295f4e42
NN
5864 @r=`${PWD_COMMAND}`; export r; \
5865 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5866 $(HOST_EXPORTS) \
ce406537 5867 cd $(HOST_SUBDIR)/binutils && \
cc11cc9b 5868 $(MAKE) $(FLAGS_TO_PASS) CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" \
1061f99e 5869 $(TARGET-stage1-binutils)
295f4e42 5870
ce406537
PB
5871maybe-clean-stage1-binutils: clean-stage1-binutils
5872clean-stage1: clean-stage1-binutils
5873clean-stage1-binutils:
5874 @[ -f $(HOST_SUBDIR)/binutils/Makefile ] || [ -f $(HOST_SUBDIR)/stage1-binutils/Makefile ] \
5875 || exit 0 ; \
cc11cc9b 5876 [ $(current_stage) = stage1 ] || $(MAKE) stage1-start; \
ce406537
PB
5877 cd $(HOST_SUBDIR)/binutils && \
5878 $(MAKE) $(FLAGS_TO_PASS) \
cc11cc9b 5879 CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" clean
ce406537 5880@endif binutils-bootstrap
295f4e42 5881
295f4e42 5882
ce406537
PB
5883.PHONY: all-stage2-binutils maybe-all-stage2-binutils
5884.PHONY: clean-stage2-binutils maybe-clean-stage2-binutils
5885maybe-all-stage2-binutils:
5886maybe-clean-stage2-binutils:
5887@if binutils-bootstrap
5888maybe-all-stage2-binutils: all-stage2-binutils
5889all-stage2: all-stage2-binutils
1061f99e 5890TARGET-stage2-binutils = $(TARGET-binutils)
ce406537 5891all-stage2-binutils: configure-stage2-binutils
cc11cc9b 5892 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
295f4e42
NN
5893 @r=`${PWD_COMMAND}`; export r; \
5894 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5895 $(HOST_EXPORTS) \
ce406537
PB
5896 $(POSTSTAGE1_HOST_EXPORTS) \
5897 cd $(HOST_SUBDIR)/binutils && \
1061f99e
PB
5898 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
5899 $(TARGET-stage2-binutils)
295f4e42 5900
ce406537
PB
5901maybe-clean-stage2-binutils: clean-stage2-binutils
5902clean-stage2: clean-stage2-binutils
5903clean-stage2-binutils:
5904 @[ -f $(HOST_SUBDIR)/binutils/Makefile ] || [ -f $(HOST_SUBDIR)/stage2-binutils/Makefile ] \
5905 || exit 0 ; \
cc11cc9b 5906 [ $(current_stage) = stage2 ] || $(MAKE) stage2-start; \
ce406537
PB
5907 cd $(HOST_SUBDIR)/binutils && \
5908 $(MAKE) $(FLAGS_TO_PASS) \
5909 $(POSTSTAGE1_FLAGS_TO_PASS) \
5910 clean
5911@endif binutils-bootstrap
295f4e42 5912
295f4e42 5913
ce406537
PB
5914.PHONY: all-stage3-binutils maybe-all-stage3-binutils
5915.PHONY: clean-stage3-binutils maybe-clean-stage3-binutils
5916maybe-all-stage3-binutils:
5917maybe-clean-stage3-binutils:
5918@if binutils-bootstrap
5919maybe-all-stage3-binutils: all-stage3-binutils
5920all-stage3: all-stage3-binutils
1061f99e 5921TARGET-stage3-binutils = $(TARGET-binutils)
ce406537 5922all-stage3-binutils: configure-stage3-binutils
cc11cc9b 5923 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
ce406537 5924 @r=`${PWD_COMMAND}`; export r; \
295f4e42 5925 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5926 $(HOST_EXPORTS) \
ce406537
PB
5927 $(POSTSTAGE1_HOST_EXPORTS) \
5928 cd $(HOST_SUBDIR)/binutils && \
1061f99e
PB
5929 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
5930 $(TARGET-stage3-binutils)
1358ccea 5931
ce406537
PB
5932maybe-clean-stage3-binutils: clean-stage3-binutils
5933clean-stage3: clean-stage3-binutils
5934clean-stage3-binutils:
5935 @[ -f $(HOST_SUBDIR)/binutils/Makefile ] || [ -f $(HOST_SUBDIR)/stage3-binutils/Makefile ] \
5936 || exit 0 ; \
cc11cc9b 5937 [ $(current_stage) = stage3 ] || $(MAKE) stage3-start; \
ce406537
PB
5938 cd $(HOST_SUBDIR)/binutils && \
5939 $(MAKE) $(FLAGS_TO_PASS) \
5940 $(POSTSTAGE1_FLAGS_TO_PASS) \
5941 clean
5942@endif binutils-bootstrap
1358ccea 5943
1358ccea 5944
ce406537
PB
5945.PHONY: all-stage4-binutils maybe-all-stage4-binutils
5946.PHONY: clean-stage4-binutils maybe-clean-stage4-binutils
5947maybe-all-stage4-binutils:
5948maybe-clean-stage4-binutils:
5949@if binutils-bootstrap
5950maybe-all-stage4-binutils: all-stage4-binutils
5951all-stage4: all-stage4-binutils
1061f99e 5952TARGET-stage4-binutils = $(TARGET-binutils)
ce406537 5953all-stage4-binutils: configure-stage4-binutils
cc11cc9b 5954 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
ce406537 5955 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 5956 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5957 $(HOST_EXPORTS) \
ce406537
PB
5958 $(POSTSTAGE1_HOST_EXPORTS) \
5959 cd $(HOST_SUBDIR)/binutils && \
1061f99e
PB
5960 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
5961 $(TARGET-stage4-binutils)
ce406537
PB
5962
5963maybe-clean-stage4-binutils: clean-stage4-binutils
5964clean-stage4: clean-stage4-binutils
5965clean-stage4-binutils:
5966 @[ -f $(HOST_SUBDIR)/binutils/Makefile ] || [ -f $(HOST_SUBDIR)/stage4-binutils/Makefile ] \
5967 || exit 0 ; \
cc11cc9b 5968 [ $(current_stage) = stage4 ] || $(MAKE) stage4-start; \
ce406537
PB
5969 cd $(HOST_SUBDIR)/binutils && \
5970 $(MAKE) $(FLAGS_TO_PASS) \
5971 $(POSTSTAGE1_FLAGS_TO_PASS) \
5972 clean
5973@endif binutils-bootstrap
5974
5975
5976.PHONY: all-stageprofile-binutils maybe-all-stageprofile-binutils
5977.PHONY: clean-stageprofile-binutils maybe-clean-stageprofile-binutils
5978maybe-all-stageprofile-binutils:
5979maybe-clean-stageprofile-binutils:
5980@if binutils-bootstrap
5981maybe-all-stageprofile-binutils: all-stageprofile-binutils
5982all-stageprofile: all-stageprofile-binutils
1061f99e 5983TARGET-stageprofile-binutils = $(TARGET-binutils)
ce406537 5984all-stageprofile-binutils: configure-stageprofile-binutils
cc11cc9b 5985 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
ce406537
PB
5986 @r=`${PWD_COMMAND}`; export r; \
5987 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5988 $(HOST_EXPORTS) \
5989 $(POSTSTAGE1_HOST_EXPORTS) \
5990 cd $(HOST_SUBDIR)/binutils && \
1061f99e
PB
5991 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" \
5992 $(TARGET-stageprofile-binutils)
ce406537
PB
5993
5994maybe-clean-stageprofile-binutils: clean-stageprofile-binutils
5995clean-stageprofile: clean-stageprofile-binutils
5996clean-stageprofile-binutils:
5997 @[ -f $(HOST_SUBDIR)/binutils/Makefile ] || [ -f $(HOST_SUBDIR)/stageprofile-binutils/Makefile ] \
5998 || exit 0 ; \
cc11cc9b 5999 [ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start; \
ce406537
PB
6000 cd $(HOST_SUBDIR)/binutils && \
6001 $(MAKE) $(FLAGS_TO_PASS) \
6002 $(POSTSTAGE1_FLAGS_TO_PASS) \
6003 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean
6004@endif binutils-bootstrap
6005
6006
6007.PHONY: all-stagefeedback-binutils maybe-all-stagefeedback-binutils
6008.PHONY: clean-stagefeedback-binutils maybe-clean-stagefeedback-binutils
6009maybe-all-stagefeedback-binutils:
6010maybe-clean-stagefeedback-binutils:
6011@if binutils-bootstrap
6012maybe-all-stagefeedback-binutils: all-stagefeedback-binutils
6013all-stagefeedback: all-stagefeedback-binutils
1061f99e 6014TARGET-stagefeedback-binutils = $(TARGET-binutils)
ce406537 6015all-stagefeedback-binutils: configure-stagefeedback-binutils
cc11cc9b 6016 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
ce406537
PB
6017 @r=`${PWD_COMMAND}`; export r; \
6018 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6019 $(HOST_EXPORTS) \
6020 $(POSTSTAGE1_HOST_EXPORTS) \
6021 cd $(HOST_SUBDIR)/binutils && \
1061f99e
PB
6022 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-use" \
6023 $(TARGET-stagefeedback-binutils)
ce406537
PB
6024
6025maybe-clean-stagefeedback-binutils: clean-stagefeedback-binutils
6026clean-stagefeedback: clean-stagefeedback-binutils
6027clean-stagefeedback-binutils:
6028 @[ -f $(HOST_SUBDIR)/binutils/Makefile ] || [ -f $(HOST_SUBDIR)/stagefeedback-binutils/Makefile ] \
6029 || exit 0 ; \
cc11cc9b 6030 [ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start; \
ce406537
PB
6031 cd $(HOST_SUBDIR)/binutils && \
6032 $(MAKE) $(FLAGS_TO_PASS) \
6033 $(POSTSTAGE1_FLAGS_TO_PASS) \
6034 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean
6035@endif binutils-bootstrap
6036
6037
6038
6039
6040
6041.PHONY: check-binutils maybe-check-binutils
6042maybe-check-binutils:
6043@if binutils
6044maybe-check-binutils: check-binutils
6045
6046check-binutils:
f41d6665 6047 @: $(MAKE); $(unstage)
ce406537
PB
6048 @r=`${PWD_COMMAND}`; export r; \
6049 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6050 $(HOST_EXPORTS) \
6051 (cd $(HOST_SUBDIR)/binutils && \
6052 $(MAKE) $(FLAGS_TO_PASS) check)
6053
6054@endif binutils
6055
6056.PHONY: install-binutils maybe-install-binutils
6057maybe-install-binutils:
6058@if binutils
6059maybe-install-binutils: install-binutils
6060
6061install-binutils: installdirs
f41d6665 6062 @: $(MAKE); $(unstage)
ce406537
PB
6063 @r=`${PWD_COMMAND}`; export r; \
6064 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6065 $(HOST_EXPORTS) \
6066 (cd $(HOST_SUBDIR)/binutils && \
6067 $(MAKE) $(FLAGS_TO_PASS) install)
6068
6069@endif binutils
6070
6071# Other targets (info, dvi, etc.)
6072
6073.PHONY: maybe-info-binutils info-binutils
6074maybe-info-binutils:
6075@if binutils
6076maybe-info-binutils: info-binutils
6077
6078info-binutils: \
6079 configure-binutils
6080 @[ -f ./binutils/Makefile ] || exit 0; \
6081 r=`${PWD_COMMAND}`; export r; \
6082 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6083 $(HOST_EXPORTS) \
6084 for flag in $(EXTRA_HOST_FLAGS) ; do \
6085 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6086 done; \
6087 echo "Doing info in binutils" ; \
6088 (cd $(HOST_SUBDIR)/binutils && \
6089 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6090 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6091 "RANLIB=$${RANLIB}" \
6092 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6093 info) \
6094 || exit 1
6095
6096@endif binutils
6097
6098.PHONY: maybe-dvi-binutils dvi-binutils
6099maybe-dvi-binutils:
6100@if binutils
6101maybe-dvi-binutils: dvi-binutils
6102
6103dvi-binutils: \
6104 configure-binutils
6105 @[ -f ./binutils/Makefile ] || exit 0; \
6106 r=`${PWD_COMMAND}`; export r; \
6107 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6108 $(HOST_EXPORTS) \
6109 for flag in $(EXTRA_HOST_FLAGS) ; do \
6110 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6111 done; \
6112 echo "Doing dvi in binutils" ; \
6113 (cd $(HOST_SUBDIR)/binutils && \
1358ccea
NN
6114 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6115 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6116 "RANLIB=$${RANLIB}" \
6117 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6118 dvi) \
1358ccea
NN
6119 || exit 1
6120
60975492 6121@endif binutils
1358ccea 6122
f87a2b2e
MS
6123.PHONY: maybe-html-binutils html-binutils
6124maybe-html-binutils:
6125@if binutils
6126maybe-html-binutils: html-binutils
6127
6128html-binutils: \
05750653 6129 configure-binutils
f87a2b2e
MS
6130 @[ -f ./binutils/Makefile ] || exit 0; \
6131 r=`${PWD_COMMAND}`; export r; \
6132 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
6133 $(HOST_EXPORTS) \
6134 for flag in $(EXTRA_HOST_FLAGS) ; do \
6135 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6136 done; \
6137 echo "Doing html in binutils" ; \
215c351a 6138 (cd $(HOST_SUBDIR)/binutils && \
f87a2b2e
MS
6139 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6140 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6141 "RANLIB=$${RANLIB}" \
6142 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6143 html) \
6144 || exit 1
6145
6146@endif binutils
6147
295f4e42
NN
6148.PHONY: maybe-TAGS-binutils TAGS-binutils
6149maybe-TAGS-binutils:
60975492
PB
6150@if binutils
6151maybe-TAGS-binutils: TAGS-binutils
1358ccea 6152
295f4e42 6153TAGS-binutils: \
05750653 6154 configure-binutils
295f4e42 6155 @[ -f ./binutils/Makefile ] || exit 0; \
8c90b13a
L
6156 r=`${PWD_COMMAND}`; export r; \
6157 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6158 $(HOST_EXPORTS) \
d32ab992 6159 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6160 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6161 done; \
295f4e42 6162 echo "Doing TAGS in binutils" ; \
215c351a 6163 (cd $(HOST_SUBDIR)/binutils && \
1358ccea
NN
6164 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6165 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6166 "RANLIB=$${RANLIB}" \
6167 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6168 TAGS) \
1358ccea
NN
6169 || exit 1
6170
60975492 6171@endif binutils
1358ccea 6172
295f4e42
NN
6173.PHONY: maybe-install-info-binutils install-info-binutils
6174maybe-install-info-binutils:
60975492
PB
6175@if binutils
6176maybe-install-info-binutils: install-info-binutils
1358ccea 6177
295f4e42
NN
6178install-info-binutils: \
6179 configure-binutils \
05750653 6180 info-binutils
295f4e42 6181 @[ -f ./binutils/Makefile ] || exit 0; \
8c90b13a
L
6182 r=`${PWD_COMMAND}`; export r; \
6183 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6184 $(HOST_EXPORTS) \
d32ab992 6185 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6186 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6187 done; \
295f4e42 6188 echo "Doing install-info in binutils" ; \
215c351a 6189 (cd $(HOST_SUBDIR)/binutils && \
1358ccea
NN
6190 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6191 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6192 "RANLIB=$${RANLIB}" \
6193 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6194 install-info) \
1358ccea
NN
6195 || exit 1
6196
60975492 6197@endif binutils
1358ccea 6198
65d6e994
CD
6199.PHONY: maybe-install-html-binutils install-html-binutils
6200maybe-install-html-binutils:
6201@if binutils
6202maybe-install-html-binutils: install-html-binutils
6203
6204install-html-binutils: \
6205 configure-binutils \
6206 html-binutils
6207 @[ -f ./binutils/Makefile ] || exit 0; \
6208 r=`${PWD_COMMAND}`; export r; \
6209 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6210 $(HOST_EXPORTS) \
6211 for flag in $(EXTRA_HOST_FLAGS) ; do \
6212 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6213 done; \
6214 echo "Doing install-html in binutils" ; \
6215 (cd $(HOST_SUBDIR)/binutils && \
6216 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6217 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6218 "RANLIB=$${RANLIB}" \
6219 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6220 install-html) \
6221 || exit 1
6222
6223@endif binutils
6224
295f4e42
NN
6225.PHONY: maybe-installcheck-binutils installcheck-binutils
6226maybe-installcheck-binutils:
60975492
PB
6227@if binutils
6228maybe-installcheck-binutils: installcheck-binutils
1358ccea 6229
295f4e42 6230installcheck-binutils: \
05750653 6231 configure-binutils
295f4e42 6232 @[ -f ./binutils/Makefile ] || exit 0; \
8c90b13a
L
6233 r=`${PWD_COMMAND}`; export r; \
6234 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6235 $(HOST_EXPORTS) \
d32ab992 6236 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6237 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6238 done; \
295f4e42 6239 echo "Doing installcheck in binutils" ; \
215c351a 6240 (cd $(HOST_SUBDIR)/binutils && \
1358ccea
NN
6241 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6242 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6243 "RANLIB=$${RANLIB}" \
6244 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6245 installcheck) \
1358ccea
NN
6246 || exit 1
6247
60975492 6248@endif binutils
1358ccea 6249
295f4e42
NN
6250.PHONY: maybe-mostlyclean-binutils mostlyclean-binutils
6251maybe-mostlyclean-binutils:
60975492
PB
6252@if binutils
6253maybe-mostlyclean-binutils: mostlyclean-binutils
1358ccea 6254
05750653 6255mostlyclean-binutils:
295f4e42 6256 @[ -f ./binutils/Makefile ] || exit 0; \
8c90b13a
L
6257 r=`${PWD_COMMAND}`; export r; \
6258 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6259 $(HOST_EXPORTS) \
d32ab992 6260 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6261 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6262 done; \
295f4e42 6263 echo "Doing mostlyclean in binutils" ; \
215c351a 6264 (cd $(HOST_SUBDIR)/binutils && \
1358ccea
NN
6265 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6266 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6267 "RANLIB=$${RANLIB}" \
6268 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6269 mostlyclean) \
1358ccea
NN
6270 || exit 1
6271
60975492 6272@endif binutils
1358ccea 6273
295f4e42
NN
6274.PHONY: maybe-clean-binutils clean-binutils
6275maybe-clean-binutils:
60975492
PB
6276@if binutils
6277maybe-clean-binutils: clean-binutils
d9cdb878 6278
05750653 6279clean-binutils:
295f4e42 6280 @[ -f ./binutils/Makefile ] || exit 0; \
d9cdb878
AC
6281 r=`${PWD_COMMAND}`; export r; \
6282 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6283 $(HOST_EXPORTS) \
d32ab992 6284 for flag in $(EXTRA_HOST_FLAGS) ; do \
d9cdb878
AC
6285 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6286 done; \
295f4e42 6287 echo "Doing clean in binutils" ; \
215c351a 6288 (cd $(HOST_SUBDIR)/binutils && \
d9cdb878
AC
6289 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6290 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6291 "RANLIB=$${RANLIB}" \
6292 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6293 clean) \
d9cdb878
AC
6294 || exit 1
6295
60975492 6296@endif binutils
d9cdb878 6297
295f4e42
NN
6298.PHONY: maybe-distclean-binutils distclean-binutils
6299maybe-distclean-binutils:
60975492
PB
6300@if binutils
6301maybe-distclean-binutils: distclean-binutils
1358ccea 6302
05750653 6303distclean-binutils:
295f4e42 6304 @[ -f ./binutils/Makefile ] || exit 0; \
8c90b13a
L
6305 r=`${PWD_COMMAND}`; export r; \
6306 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6307 $(HOST_EXPORTS) \
d32ab992 6308 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6309 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6310 done; \
295f4e42 6311 echo "Doing distclean in binutils" ; \
215c351a 6312 (cd $(HOST_SUBDIR)/binutils && \
1358ccea
NN
6313 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6314 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6315 "RANLIB=$${RANLIB}" \
6316 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6317 distclean) \
1358ccea
NN
6318 || exit 1
6319
60975492 6320@endif binutils
1358ccea 6321
295f4e42
NN
6322.PHONY: maybe-maintainer-clean-binutils maintainer-clean-binutils
6323maybe-maintainer-clean-binutils:
60975492
PB
6324@if binutils
6325maybe-maintainer-clean-binutils: maintainer-clean-binutils
1358ccea 6326
05750653 6327maintainer-clean-binutils:
295f4e42 6328 @[ -f ./binutils/Makefile ] || exit 0; \
8c90b13a
L
6329 r=`${PWD_COMMAND}`; export r; \
6330 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6331 $(HOST_EXPORTS) \
d32ab992 6332 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6333 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6334 done; \
295f4e42 6335 echo "Doing maintainer-clean in binutils" ; \
215c351a 6336 (cd $(HOST_SUBDIR)/binutils && \
1358ccea
NN
6337 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6338 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6339 "RANLIB=$${RANLIB}" \
6340 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6341 maintainer-clean) \
295f4e42
NN
6342 || exit 1
6343
60975492 6344@endif binutils
295f4e42
NN
6345
6346
25b42232 6347
295f4e42
NN
6348.PHONY: configure-bison maybe-configure-bison
6349maybe-configure-bison:
3ff3adad
PB
6350@if gcc-bootstrap
6351configure-bison: stage_current
6352@endif gcc-bootstrap
60975492
PB
6353@if bison
6354maybe-configure-bison: configure-bison
cc11cc9b 6355configure-bison:
f41d6665 6356 @: $(MAKE); $(unstage)
cc11cc9b 6357 @r=`${PWD_COMMAND}`; export r; \
295f4e42 6358 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
6359 test ! -f $(HOST_SUBDIR)/bison/Makefile || exit 0; \
6360 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bison ; \
4fc4dd12 6361 $(HOST_EXPORTS) \
25b42232
PB
6362 echo Configuring in $(HOST_SUBDIR)/bison; \
6363 cd "$(HOST_SUBDIR)/bison" || exit 1; \
295f4e42 6364 case $(srcdir) in \
215c351a
PB
6365 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
6366 *) topdir=`echo $(HOST_SUBDIR)/bison/ | \
6367 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 6368 esac; \
215c351a
PB
6369 srcdiroption="--srcdir=$${topdir}/bison"; \
6370 libsrcdir="$$s/bison"; \
295f4e42 6371 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 6372 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 6373 || exit 1
60975492 6374@endif bison
1358ccea 6375
25b42232
PB
6376
6377
ce406537
PB
6378
6379
295f4e42
NN
6380.PHONY: all-bison maybe-all-bison
6381maybe-all-bison:
3ff3adad
PB
6382@if gcc-bootstrap
6383all-bison: stage_current
6384@endif gcc-bootstrap
60975492 6385@if bison
7e0b5752 6386TARGET-bison=all
60975492 6387maybe-all-bison: all-bison
295f4e42 6388all-bison: configure-bison
f41d6665 6389 @: $(MAKE); $(unstage)
295f4e42
NN
6390 @r=`${PWD_COMMAND}`; export r; \
6391 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6392 $(HOST_EXPORTS) \
215c351a
PB
6393 (cd $(HOST_SUBDIR)/bison && \
6394 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-bison))
60975492 6395@endif bison
295f4e42 6396
25b42232 6397
ce406537
PB
6398
6399
295f4e42
NN
6400.PHONY: check-bison maybe-check-bison
6401maybe-check-bison:
60975492
PB
6402@if bison
6403maybe-check-bison: check-bison
295f4e42
NN
6404
6405# This module is only tested in a native toolchain.
6406check-bison:
f41d6665 6407 @: $(MAKE); $(unstage)
295f4e42
NN
6408 @if [ '$(host)' = '$(target)' ] ; then \
6409 r=`${PWD_COMMAND}`; export r; \
6410 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6411 $(HOST_EXPORTS) \
215c351a 6412 (cd $(HOST_SUBDIR)/bison && \
ef6e9bc0 6413 $(MAKE) $(FLAGS_TO_PASS) check); \
295f4e42
NN
6414 fi
6415
60975492 6416@endif bison
1358ccea 6417
295f4e42
NN
6418.PHONY: install-bison maybe-install-bison
6419maybe-install-bison:
60975492
PB
6420@if bison
6421maybe-install-bison: install-bison
1358ccea 6422
295f4e42 6423install-bison: installdirs
f41d6665 6424 @: $(MAKE); $(unstage)
295f4e42 6425 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 6426 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6427 $(HOST_EXPORTS) \
215c351a 6428 (cd $(HOST_SUBDIR)/bison && \
ace9ac7b 6429 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 6430
60975492 6431@endif bison
1358ccea 6432
295f4e42 6433# Other targets (info, dvi, etc.)
1358ccea 6434
295f4e42
NN
6435.PHONY: maybe-info-bison info-bison
6436maybe-info-bison:
60975492
PB
6437@if bison
6438maybe-info-bison: info-bison
295f4e42
NN
6439
6440info-bison: \
05750653 6441 configure-bison
f41d6665 6442 @: $(MAKE); $(unstage)
295f4e42 6443 @[ -f ./bison/Makefile ] || exit 0; \
8c90b13a
L
6444 r=`${PWD_COMMAND}`; export r; \
6445 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6446 $(HOST_EXPORTS) \
d32ab992 6447 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6448 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6449 done; \
295f4e42 6450 echo "Doing info in bison" ; \
215c351a 6451 (cd $(HOST_SUBDIR)/bison && \
1358ccea
NN
6452 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6453 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6454 "RANLIB=$${RANLIB}" \
6455 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6456 info) \
1358ccea
NN
6457 || exit 1
6458
60975492 6459@endif bison
1358ccea 6460
295f4e42
NN
6461.PHONY: maybe-dvi-bison dvi-bison
6462maybe-dvi-bison:
60975492
PB
6463@if bison
6464maybe-dvi-bison: dvi-bison
1358ccea 6465
295f4e42 6466dvi-bison: \
05750653 6467 configure-bison
f41d6665 6468 @: $(MAKE); $(unstage)
295f4e42 6469 @[ -f ./bison/Makefile ] || exit 0; \
8c90b13a
L
6470 r=`${PWD_COMMAND}`; export r; \
6471 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6472 $(HOST_EXPORTS) \
d32ab992 6473 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6474 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6475 done; \
295f4e42 6476 echo "Doing dvi in bison" ; \
215c351a 6477 (cd $(HOST_SUBDIR)/bison && \
1358ccea
NN
6478 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6479 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6480 "RANLIB=$${RANLIB}" \
6481 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6482 dvi) \
1358ccea
NN
6483 || exit 1
6484
60975492 6485@endif bison
1358ccea 6486
f87a2b2e
MS
6487.PHONY: maybe-html-bison html-bison
6488maybe-html-bison:
6489@if bison
6490maybe-html-bison: html-bison
6491
6492html-bison: \
05750653 6493 configure-bison
f41d6665 6494 @: $(MAKE); $(unstage)
f87a2b2e
MS
6495 @[ -f ./bison/Makefile ] || exit 0; \
6496 r=`${PWD_COMMAND}`; export r; \
6497 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
6498 $(HOST_EXPORTS) \
6499 for flag in $(EXTRA_HOST_FLAGS) ; do \
6500 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6501 done; \
6502 echo "Doing html in bison" ; \
215c351a 6503 (cd $(HOST_SUBDIR)/bison && \
f87a2b2e
MS
6504 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6505 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6506 "RANLIB=$${RANLIB}" \
6507 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6508 html) \
6509 || exit 1
6510
6511@endif bison
6512
295f4e42
NN
6513.PHONY: maybe-TAGS-bison TAGS-bison
6514maybe-TAGS-bison:
60975492
PB
6515@if bison
6516maybe-TAGS-bison: TAGS-bison
1358ccea 6517
295f4e42 6518TAGS-bison: \
05750653 6519 configure-bison
f41d6665 6520 @: $(MAKE); $(unstage)
295f4e42 6521 @[ -f ./bison/Makefile ] || exit 0; \
8c90b13a
L
6522 r=`${PWD_COMMAND}`; export r; \
6523 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6524 $(HOST_EXPORTS) \
d32ab992 6525 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6526 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6527 done; \
295f4e42 6528 echo "Doing TAGS in bison" ; \
215c351a 6529 (cd $(HOST_SUBDIR)/bison && \
1358ccea
NN
6530 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6531 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6532 "RANLIB=$${RANLIB}" \
6533 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6534 TAGS) \
1358ccea
NN
6535 || exit 1
6536
60975492 6537@endif bison
1358ccea 6538
295f4e42
NN
6539.PHONY: maybe-install-info-bison install-info-bison
6540maybe-install-info-bison:
60975492
PB
6541@if bison
6542maybe-install-info-bison: install-info-bison
1358ccea 6543
295f4e42
NN
6544install-info-bison: \
6545 configure-bison \
05750653 6546 info-bison
f41d6665 6547 @: $(MAKE); $(unstage)
295f4e42 6548 @[ -f ./bison/Makefile ] || exit 0; \
8c90b13a
L
6549 r=`${PWD_COMMAND}`; export r; \
6550 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6551 $(HOST_EXPORTS) \
d32ab992 6552 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6553 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6554 done; \
295f4e42 6555 echo "Doing install-info in bison" ; \
215c351a 6556 (cd $(HOST_SUBDIR)/bison && \
1358ccea
NN
6557 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6558 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6559 "RANLIB=$${RANLIB}" \
6560 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6561 install-info) \
1358ccea
NN
6562 || exit 1
6563
60975492 6564@endif bison
1358ccea 6565
65d6e994
CD
6566.PHONY: maybe-install-html-bison install-html-bison
6567maybe-install-html-bison:
6568@if bison
6569maybe-install-html-bison: install-html-bison
6570
6571install-html-bison: \
6572 configure-bison \
6573 html-bison
6574 @: $(MAKE); $(unstage)
6575 @[ -f ./bison/Makefile ] || exit 0; \
6576 r=`${PWD_COMMAND}`; export r; \
6577 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6578 $(HOST_EXPORTS) \
6579 for flag in $(EXTRA_HOST_FLAGS) ; do \
6580 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6581 done; \
6582 echo "Doing install-html in bison" ; \
6583 (cd $(HOST_SUBDIR)/bison && \
6584 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6585 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6586 "RANLIB=$${RANLIB}" \
6587 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6588 install-html) \
6589 || exit 1
6590
6591@endif bison
6592
295f4e42
NN
6593.PHONY: maybe-installcheck-bison installcheck-bison
6594maybe-installcheck-bison:
60975492
PB
6595@if bison
6596maybe-installcheck-bison: installcheck-bison
1358ccea 6597
295f4e42 6598installcheck-bison: \
05750653 6599 configure-bison
f41d6665 6600 @: $(MAKE); $(unstage)
295f4e42 6601 @[ -f ./bison/Makefile ] || exit 0; \
8c90b13a
L
6602 r=`${PWD_COMMAND}`; export r; \
6603 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6604 $(HOST_EXPORTS) \
d32ab992 6605 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6606 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6607 done; \
295f4e42 6608 echo "Doing installcheck in bison" ; \
215c351a 6609 (cd $(HOST_SUBDIR)/bison && \
1358ccea
NN
6610 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6611 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6612 "RANLIB=$${RANLIB}" \
6613 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6614 installcheck) \
1358ccea
NN
6615 || exit 1
6616
60975492 6617@endif bison
1358ccea
NN
6618
6619.PHONY: maybe-mostlyclean-bison mostlyclean-bison
6620maybe-mostlyclean-bison:
60975492
PB
6621@if bison
6622maybe-mostlyclean-bison: mostlyclean-bison
1358ccea 6623
05750653 6624mostlyclean-bison:
f41d6665 6625 @: $(MAKE); $(unstage)
1358ccea 6626 @[ -f ./bison/Makefile ] || exit 0; \
8c90b13a
L
6627 r=`${PWD_COMMAND}`; export r; \
6628 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6629 $(HOST_EXPORTS) \
d32ab992 6630 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6631 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6632 done; \
6633 echo "Doing mostlyclean in bison" ; \
215c351a 6634 (cd $(HOST_SUBDIR)/bison && \
1358ccea
NN
6635 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6636 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6637 "RANLIB=$${RANLIB}" \
6638 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6639 mostlyclean) \
1358ccea
NN
6640 || exit 1
6641
60975492 6642@endif bison
1358ccea 6643
295f4e42
NN
6644.PHONY: maybe-clean-bison clean-bison
6645maybe-clean-bison:
60975492
PB
6646@if bison
6647maybe-clean-bison: clean-bison
1358ccea 6648
05750653 6649clean-bison:
f41d6665 6650 @: $(MAKE); $(unstage)
295f4e42 6651 @[ -f ./bison/Makefile ] || exit 0; \
8c90b13a
L
6652 r=`${PWD_COMMAND}`; export r; \
6653 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6654 $(HOST_EXPORTS) \
d32ab992 6655 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6656 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6657 done; \
295f4e42 6658 echo "Doing clean in bison" ; \
215c351a 6659 (cd $(HOST_SUBDIR)/bison && \
1358ccea
NN
6660 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6661 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6662 "RANLIB=$${RANLIB}" \
6663 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6664 clean) \
1358ccea
NN
6665 || exit 1
6666
60975492 6667@endif bison
1358ccea 6668
295f4e42
NN
6669.PHONY: maybe-distclean-bison distclean-bison
6670maybe-distclean-bison:
60975492
PB
6671@if bison
6672maybe-distclean-bison: distclean-bison
1358ccea 6673
05750653 6674distclean-bison:
f41d6665 6675 @: $(MAKE); $(unstage)
295f4e42 6676 @[ -f ./bison/Makefile ] || exit 0; \
8c90b13a
L
6677 r=`${PWD_COMMAND}`; export r; \
6678 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6679 $(HOST_EXPORTS) \
d32ab992 6680 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6681 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6682 done; \
295f4e42 6683 echo "Doing distclean in bison" ; \
215c351a 6684 (cd $(HOST_SUBDIR)/bison && \
1358ccea
NN
6685 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6686 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6687 "RANLIB=$${RANLIB}" \
6688 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6689 distclean) \
1358ccea
NN
6690 || exit 1
6691
60975492 6692@endif bison
1358ccea 6693
295f4e42
NN
6694.PHONY: maybe-maintainer-clean-bison maintainer-clean-bison
6695maybe-maintainer-clean-bison:
60975492
PB
6696@if bison
6697maybe-maintainer-clean-bison: maintainer-clean-bison
1358ccea 6698
05750653 6699maintainer-clean-bison:
f41d6665 6700 @: $(MAKE); $(unstage)
295f4e42 6701 @[ -f ./bison/Makefile ] || exit 0; \
8c90b13a
L
6702 r=`${PWD_COMMAND}`; export r; \
6703 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6704 $(HOST_EXPORTS) \
d32ab992 6705 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6706 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6707 done; \
295f4e42 6708 echo "Doing maintainer-clean in bison" ; \
215c351a 6709 (cd $(HOST_SUBDIR)/bison && \
1358ccea
NN
6710 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6711 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6712 "RANLIB=$${RANLIB}" \
6713 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6714 maintainer-clean) \
1358ccea
NN
6715 || exit 1
6716
60975492 6717@endif bison
1358ccea 6718
1358ccea 6719
25b42232 6720
295f4e42
NN
6721.PHONY: configure-byacc maybe-configure-byacc
6722maybe-configure-byacc:
3ff3adad
PB
6723@if gcc-bootstrap
6724configure-byacc: stage_current
6725@endif gcc-bootstrap
60975492
PB
6726@if byacc
6727maybe-configure-byacc: configure-byacc
cc11cc9b 6728configure-byacc:
f41d6665 6729 @: $(MAKE); $(unstage)
cc11cc9b 6730 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 6731 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
6732 test ! -f $(HOST_SUBDIR)/byacc/Makefile || exit 0; \
6733 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/byacc ; \
4fc4dd12 6734 $(HOST_EXPORTS) \
25b42232
PB
6735 echo Configuring in $(HOST_SUBDIR)/byacc; \
6736 cd "$(HOST_SUBDIR)/byacc" || exit 1; \
295f4e42 6737 case $(srcdir) in \
215c351a
PB
6738 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
6739 *) topdir=`echo $(HOST_SUBDIR)/byacc/ | \
6740 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 6741 esac; \
215c351a
PB
6742 srcdiroption="--srcdir=$${topdir}/byacc"; \
6743 libsrcdir="$$s/byacc"; \
295f4e42 6744 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 6745 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 6746 || exit 1
60975492 6747@endif byacc
1358ccea 6748
25b42232
PB
6749
6750
ce406537
PB
6751
6752
295f4e42
NN
6753.PHONY: all-byacc maybe-all-byacc
6754maybe-all-byacc:
3ff3adad
PB
6755@if gcc-bootstrap
6756all-byacc: stage_current
6757@endif gcc-bootstrap
60975492 6758@if byacc
7e0b5752 6759TARGET-byacc=all
60975492 6760maybe-all-byacc: all-byacc
295f4e42 6761all-byacc: configure-byacc
f41d6665 6762 @: $(MAKE); $(unstage)
295f4e42 6763 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 6764 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6765 $(HOST_EXPORTS) \
215c351a
PB
6766 (cd $(HOST_SUBDIR)/byacc && \
6767 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-byacc))
60975492 6768@endif byacc
1358ccea 6769
25b42232 6770
ce406537
PB
6771
6772
295f4e42
NN
6773.PHONY: check-byacc maybe-check-byacc
6774maybe-check-byacc:
60975492
PB
6775@if byacc
6776maybe-check-byacc: check-byacc
1358ccea 6777
295f4e42
NN
6778# This module is only tested in a native toolchain.
6779check-byacc:
f41d6665 6780 @: $(MAKE); $(unstage)
295f4e42
NN
6781 @if [ '$(host)' = '$(target)' ] ; then \
6782 r=`${PWD_COMMAND}`; export r; \
6783 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6784 $(HOST_EXPORTS) \
215c351a 6785 (cd $(HOST_SUBDIR)/byacc && \
ef6e9bc0 6786 $(MAKE) $(FLAGS_TO_PASS) check); \
295f4e42 6787 fi
1358ccea 6788
60975492 6789@endif byacc
295f4e42
NN
6790
6791.PHONY: install-byacc maybe-install-byacc
6792maybe-install-byacc:
60975492
PB
6793@if byacc
6794maybe-install-byacc: install-byacc
295f4e42
NN
6795
6796install-byacc: installdirs
f41d6665 6797 @: $(MAKE); $(unstage)
295f4e42 6798 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 6799 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6800 $(HOST_EXPORTS) \
215c351a 6801 (cd $(HOST_SUBDIR)/byacc && \
ace9ac7b 6802 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 6803
60975492 6804@endif byacc
1358ccea 6805
295f4e42 6806# Other targets (info, dvi, etc.)
1358ccea 6807
295f4e42
NN
6808.PHONY: maybe-info-byacc info-byacc
6809maybe-info-byacc:
60975492
PB
6810@if byacc
6811maybe-info-byacc: info-byacc
295f4e42
NN
6812
6813info-byacc: \
05750653 6814 configure-byacc
f41d6665 6815 @: $(MAKE); $(unstage)
295f4e42 6816 @[ -f ./byacc/Makefile ] || exit 0; \
8c90b13a
L
6817 r=`${PWD_COMMAND}`; export r; \
6818 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6819 $(HOST_EXPORTS) \
d32ab992 6820 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6821 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6822 done; \
295f4e42 6823 echo "Doing info in byacc" ; \
215c351a 6824 (cd $(HOST_SUBDIR)/byacc && \
1358ccea
NN
6825 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6826 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6827 "RANLIB=$${RANLIB}" \
6828 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6829 info) \
1358ccea
NN
6830 || exit 1
6831
60975492 6832@endif byacc
1358ccea 6833
295f4e42
NN
6834.PHONY: maybe-dvi-byacc dvi-byacc
6835maybe-dvi-byacc:
60975492
PB
6836@if byacc
6837maybe-dvi-byacc: dvi-byacc
1358ccea 6838
295f4e42 6839dvi-byacc: \
05750653 6840 configure-byacc
f41d6665 6841 @: $(MAKE); $(unstage)
295f4e42 6842 @[ -f ./byacc/Makefile ] || exit 0; \
8c90b13a
L
6843 r=`${PWD_COMMAND}`; export r; \
6844 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6845 $(HOST_EXPORTS) \
d32ab992 6846 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6847 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6848 done; \
295f4e42 6849 echo "Doing dvi in byacc" ; \
215c351a 6850 (cd $(HOST_SUBDIR)/byacc && \
1358ccea
NN
6851 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6852 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6853 "RANLIB=$${RANLIB}" \
6854 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6855 dvi) \
1358ccea
NN
6856 || exit 1
6857
60975492 6858@endif byacc
1358ccea 6859
f87a2b2e
MS
6860.PHONY: maybe-html-byacc html-byacc
6861maybe-html-byacc:
6862@if byacc
6863maybe-html-byacc: html-byacc
6864
6865html-byacc: \
05750653 6866 configure-byacc
f41d6665 6867 @: $(MAKE); $(unstage)
f87a2b2e
MS
6868 @[ -f ./byacc/Makefile ] || exit 0; \
6869 r=`${PWD_COMMAND}`; export r; \
6870 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
6871 $(HOST_EXPORTS) \
6872 for flag in $(EXTRA_HOST_FLAGS) ; do \
6873 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6874 done; \
6875 echo "Doing html in byacc" ; \
215c351a 6876 (cd $(HOST_SUBDIR)/byacc && \
f87a2b2e
MS
6877 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6878 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6879 "RANLIB=$${RANLIB}" \
6880 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6881 html) \
6882 || exit 1
6883
6884@endif byacc
6885
295f4e42
NN
6886.PHONY: maybe-TAGS-byacc TAGS-byacc
6887maybe-TAGS-byacc:
60975492
PB
6888@if byacc
6889maybe-TAGS-byacc: TAGS-byacc
1358ccea 6890
295f4e42 6891TAGS-byacc: \
05750653 6892 configure-byacc
f41d6665 6893 @: $(MAKE); $(unstage)
295f4e42 6894 @[ -f ./byacc/Makefile ] || exit 0; \
8c90b13a
L
6895 r=`${PWD_COMMAND}`; export r; \
6896 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6897 $(HOST_EXPORTS) \
d32ab992 6898 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6899 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6900 done; \
295f4e42 6901 echo "Doing TAGS in byacc" ; \
215c351a 6902 (cd $(HOST_SUBDIR)/byacc && \
1358ccea
NN
6903 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6904 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6905 "RANLIB=$${RANLIB}" \
6906 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6907 TAGS) \
1358ccea
NN
6908 || exit 1
6909
60975492 6910@endif byacc
1358ccea 6911
295f4e42
NN
6912.PHONY: maybe-install-info-byacc install-info-byacc
6913maybe-install-info-byacc:
60975492
PB
6914@if byacc
6915maybe-install-info-byacc: install-info-byacc
1358ccea 6916
295f4e42
NN
6917install-info-byacc: \
6918 configure-byacc \
05750653 6919 info-byacc
f41d6665 6920 @: $(MAKE); $(unstage)
295f4e42 6921 @[ -f ./byacc/Makefile ] || exit 0; \
8c90b13a
L
6922 r=`${PWD_COMMAND}`; export r; \
6923 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6924 $(HOST_EXPORTS) \
d32ab992 6925 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6926 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6927 done; \
295f4e42 6928 echo "Doing install-info in byacc" ; \
215c351a 6929 (cd $(HOST_SUBDIR)/byacc && \
1358ccea
NN
6930 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6931 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6932 "RANLIB=$${RANLIB}" \
6933 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6934 install-info) \
1358ccea
NN
6935 || exit 1
6936
60975492 6937@endif byacc
1358ccea 6938
65d6e994
CD
6939.PHONY: maybe-install-html-byacc install-html-byacc
6940maybe-install-html-byacc:
6941@if byacc
6942maybe-install-html-byacc: install-html-byacc
6943
6944install-html-byacc: \
6945 configure-byacc \
6946 html-byacc
6947 @: $(MAKE); $(unstage)
6948 @[ -f ./byacc/Makefile ] || exit 0; \
6949 r=`${PWD_COMMAND}`; export r; \
6950 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6951 $(HOST_EXPORTS) \
6952 for flag in $(EXTRA_HOST_FLAGS) ; do \
6953 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6954 done; \
6955 echo "Doing install-html in byacc" ; \
6956 (cd $(HOST_SUBDIR)/byacc && \
6957 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6958 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6959 "RANLIB=$${RANLIB}" \
6960 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6961 install-html) \
6962 || exit 1
6963
6964@endif byacc
6965
295f4e42
NN
6966.PHONY: maybe-installcheck-byacc installcheck-byacc
6967maybe-installcheck-byacc:
60975492
PB
6968@if byacc
6969maybe-installcheck-byacc: installcheck-byacc
1358ccea 6970
295f4e42 6971installcheck-byacc: \
05750653 6972 configure-byacc
f41d6665 6973 @: $(MAKE); $(unstage)
295f4e42 6974 @[ -f ./byacc/Makefile ] || exit 0; \
8c90b13a
L
6975 r=`${PWD_COMMAND}`; export r; \
6976 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6977 $(HOST_EXPORTS) \
d32ab992 6978 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6979 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6980 done; \
295f4e42 6981 echo "Doing installcheck in byacc" ; \
215c351a 6982 (cd $(HOST_SUBDIR)/byacc && \
1358ccea
NN
6983 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6984 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6985 "RANLIB=$${RANLIB}" \
6986 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6987 installcheck) \
1358ccea
NN
6988 || exit 1
6989
60975492 6990@endif byacc
1358ccea 6991
295f4e42
NN
6992.PHONY: maybe-mostlyclean-byacc mostlyclean-byacc
6993maybe-mostlyclean-byacc:
60975492
PB
6994@if byacc
6995maybe-mostlyclean-byacc: mostlyclean-byacc
1358ccea 6996
05750653 6997mostlyclean-byacc:
f41d6665 6998 @: $(MAKE); $(unstage)
295f4e42 6999 @[ -f ./byacc/Makefile ] || exit 0; \
8c90b13a
L
7000 r=`${PWD_COMMAND}`; export r; \
7001 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7002 $(HOST_EXPORTS) \
d32ab992 7003 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7004 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7005 done; \
295f4e42 7006 echo "Doing mostlyclean in byacc" ; \
215c351a 7007 (cd $(HOST_SUBDIR)/byacc && \
1358ccea
NN
7008 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7009 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7010 "RANLIB=$${RANLIB}" \
7011 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7012 mostlyclean) \
1358ccea
NN
7013 || exit 1
7014
60975492 7015@endif byacc
1358ccea 7016
295f4e42
NN
7017.PHONY: maybe-clean-byacc clean-byacc
7018maybe-clean-byacc:
60975492
PB
7019@if byacc
7020maybe-clean-byacc: clean-byacc
1358ccea 7021
05750653 7022clean-byacc:
f41d6665 7023 @: $(MAKE); $(unstage)
295f4e42 7024 @[ -f ./byacc/Makefile ] || exit 0; \
8c90b13a
L
7025 r=`${PWD_COMMAND}`; export r; \
7026 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7027 $(HOST_EXPORTS) \
d32ab992 7028 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7029 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7030 done; \
295f4e42 7031 echo "Doing clean in byacc" ; \
215c351a 7032 (cd $(HOST_SUBDIR)/byacc && \
1358ccea
NN
7033 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7034 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7035 "RANLIB=$${RANLIB}" \
7036 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7037 clean) \
1358ccea
NN
7038 || exit 1
7039
60975492 7040@endif byacc
1358ccea 7041
295f4e42
NN
7042.PHONY: maybe-distclean-byacc distclean-byacc
7043maybe-distclean-byacc:
60975492
PB
7044@if byacc
7045maybe-distclean-byacc: distclean-byacc
1358ccea 7046
05750653 7047distclean-byacc:
f41d6665 7048 @: $(MAKE); $(unstage)
295f4e42 7049 @[ -f ./byacc/Makefile ] || exit 0; \
8c90b13a
L
7050 r=`${PWD_COMMAND}`; export r; \
7051 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7052 $(HOST_EXPORTS) \
d32ab992 7053 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7054 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7055 done; \
295f4e42 7056 echo "Doing distclean in byacc" ; \
215c351a 7057 (cd $(HOST_SUBDIR)/byacc && \
1358ccea
NN
7058 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7059 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7060 "RANLIB=$${RANLIB}" \
7061 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7062 distclean) \
1358ccea
NN
7063 || exit 1
7064
60975492 7065@endif byacc
1358ccea 7066
295f4e42
NN
7067.PHONY: maybe-maintainer-clean-byacc maintainer-clean-byacc
7068maybe-maintainer-clean-byacc:
60975492
PB
7069@if byacc
7070maybe-maintainer-clean-byacc: maintainer-clean-byacc
1358ccea 7071
05750653 7072maintainer-clean-byacc:
f41d6665 7073 @: $(MAKE); $(unstage)
295f4e42 7074 @[ -f ./byacc/Makefile ] || exit 0; \
8c90b13a
L
7075 r=`${PWD_COMMAND}`; export r; \
7076 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7077 $(HOST_EXPORTS) \
d32ab992 7078 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7079 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7080 done; \
295f4e42 7081 echo "Doing maintainer-clean in byacc" ; \
215c351a 7082 (cd $(HOST_SUBDIR)/byacc && \
1358ccea
NN
7083 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7084 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7085 "RANLIB=$${RANLIB}" \
7086 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7087 maintainer-clean) \
1358ccea
NN
7088 || exit 1
7089
60975492 7090@endif byacc
1358ccea 7091
1358ccea 7092
25b42232 7093
295f4e42
NN
7094.PHONY: configure-bzip2 maybe-configure-bzip2
7095maybe-configure-bzip2:
3ff3adad
PB
7096@if gcc-bootstrap
7097configure-bzip2: stage_current
7098@endif gcc-bootstrap
60975492
PB
7099@if bzip2
7100maybe-configure-bzip2: configure-bzip2
cc11cc9b 7101configure-bzip2:
f41d6665 7102 @: $(MAKE); $(unstage)
cc11cc9b 7103 @r=`${PWD_COMMAND}`; export r; \
295f4e42 7104 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
7105 test ! -f $(HOST_SUBDIR)/bzip2/Makefile || exit 0; \
7106 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bzip2 ; \
4fc4dd12 7107 $(HOST_EXPORTS) \
25b42232
PB
7108 echo Configuring in $(HOST_SUBDIR)/bzip2; \
7109 cd "$(HOST_SUBDIR)/bzip2" || exit 1; \
295f4e42 7110 case $(srcdir) in \
215c351a
PB
7111 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7112 *) topdir=`echo $(HOST_SUBDIR)/bzip2/ | \
7113 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 7114 esac; \
215c351a
PB
7115 srcdiroption="--srcdir=$${topdir}/bzip2"; \
7116 libsrcdir="$$s/bzip2"; \
295f4e42 7117 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 7118 $(HOST_CONFIGARGS) $${srcdiroption} \
295f4e42 7119 || exit 1
60975492 7120@endif bzip2
295f4e42 7121
25b42232
PB
7122
7123
ce406537
PB
7124
7125
295f4e42
NN
7126.PHONY: all-bzip2 maybe-all-bzip2
7127maybe-all-bzip2:
3ff3adad
PB
7128@if gcc-bootstrap
7129all-bzip2: stage_current
7130@endif gcc-bootstrap
60975492 7131@if bzip2
7e0b5752 7132TARGET-bzip2=all
60975492 7133maybe-all-bzip2: all-bzip2
295f4e42 7134all-bzip2: configure-bzip2
f41d6665 7135 @: $(MAKE); $(unstage)
295f4e42
NN
7136 @r=`${PWD_COMMAND}`; export r; \
7137 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7138 $(HOST_EXPORTS) \
215c351a
PB
7139 (cd $(HOST_SUBDIR)/bzip2 && \
7140 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-bzip2))
60975492 7141@endif bzip2
295f4e42 7142
25b42232 7143
ce406537
PB
7144
7145
295f4e42
NN
7146.PHONY: check-bzip2 maybe-check-bzip2
7147maybe-check-bzip2:
60975492
PB
7148@if bzip2
7149maybe-check-bzip2: check-bzip2
295f4e42
NN
7150
7151check-bzip2:
f41d6665 7152 @: $(MAKE); $(unstage)
295f4e42
NN
7153 @r=`${PWD_COMMAND}`; export r; \
7154 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7155 $(HOST_EXPORTS) \
215c351a
PB
7156 (cd $(HOST_SUBDIR)/bzip2 && \
7157 $(MAKE) $(FLAGS_TO_PASS) check)
295f4e42 7158
60975492 7159@endif bzip2
295f4e42
NN
7160
7161.PHONY: install-bzip2 maybe-install-bzip2
7162maybe-install-bzip2:
60975492
PB
7163@if bzip2
7164maybe-install-bzip2: install-bzip2
295f4e42
NN
7165
7166install-bzip2: installdirs
f41d6665 7167 @: $(MAKE); $(unstage)
295f4e42
NN
7168 @r=`${PWD_COMMAND}`; export r; \
7169 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7170 $(HOST_EXPORTS) \
215c351a 7171 (cd $(HOST_SUBDIR)/bzip2 && \
ace9ac7b 7172 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 7173
60975492 7174@endif bzip2
295f4e42
NN
7175
7176# Other targets (info, dvi, etc.)
7177
7178.PHONY: maybe-info-bzip2 info-bzip2
7179maybe-info-bzip2:
60975492
PB
7180@if bzip2
7181maybe-info-bzip2: info-bzip2
295f4e42
NN
7182
7183info-bzip2: \
05750653 7184 configure-bzip2
f41d6665 7185 @: $(MAKE); $(unstage)
295f4e42 7186 @[ -f ./bzip2/Makefile ] || exit 0; \
8c90b13a
L
7187 r=`${PWD_COMMAND}`; export r; \
7188 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7189 $(HOST_EXPORTS) \
d32ab992 7190 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7191 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7192 done; \
295f4e42 7193 echo "Doing info in bzip2" ; \
215c351a 7194 (cd $(HOST_SUBDIR)/bzip2 && \
1358ccea
NN
7195 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7196 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7197 "RANLIB=$${RANLIB}" \
7198 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7199 info) \
1358ccea
NN
7200 || exit 1
7201
60975492 7202@endif bzip2
1358ccea 7203
295f4e42
NN
7204.PHONY: maybe-dvi-bzip2 dvi-bzip2
7205maybe-dvi-bzip2:
60975492
PB
7206@if bzip2
7207maybe-dvi-bzip2: dvi-bzip2
1358ccea 7208
295f4e42 7209dvi-bzip2: \
05750653 7210 configure-bzip2
f41d6665 7211 @: $(MAKE); $(unstage)
295f4e42 7212 @[ -f ./bzip2/Makefile ] || exit 0; \
8c90b13a
L
7213 r=`${PWD_COMMAND}`; export r; \
7214 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7215 $(HOST_EXPORTS) \
d32ab992 7216 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7217 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7218 done; \
295f4e42 7219 echo "Doing dvi in bzip2" ; \
215c351a 7220 (cd $(HOST_SUBDIR)/bzip2 && \
1358ccea
NN
7221 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7222 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7223 "RANLIB=$${RANLIB}" \
7224 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7225 dvi) \
1358ccea
NN
7226 || exit 1
7227
60975492 7228@endif bzip2
1358ccea 7229
f87a2b2e
MS
7230.PHONY: maybe-html-bzip2 html-bzip2
7231maybe-html-bzip2:
7232@if bzip2
7233maybe-html-bzip2: html-bzip2
7234
7235html-bzip2: \
05750653 7236 configure-bzip2
f41d6665 7237 @: $(MAKE); $(unstage)
f87a2b2e
MS
7238 @[ -f ./bzip2/Makefile ] || exit 0; \
7239 r=`${PWD_COMMAND}`; export r; \
7240 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
7241 $(HOST_EXPORTS) \
7242 for flag in $(EXTRA_HOST_FLAGS) ; do \
7243 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7244 done; \
7245 echo "Doing html in bzip2" ; \
215c351a 7246 (cd $(HOST_SUBDIR)/bzip2 && \
f87a2b2e
MS
7247 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7248 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7249 "RANLIB=$${RANLIB}" \
7250 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7251 html) \
7252 || exit 1
7253
7254@endif bzip2
7255
295f4e42
NN
7256.PHONY: maybe-TAGS-bzip2 TAGS-bzip2
7257maybe-TAGS-bzip2:
60975492
PB
7258@if bzip2
7259maybe-TAGS-bzip2: TAGS-bzip2
1358ccea 7260
295f4e42 7261TAGS-bzip2: \
05750653 7262 configure-bzip2
f41d6665 7263 @: $(MAKE); $(unstage)
295f4e42 7264 @[ -f ./bzip2/Makefile ] || exit 0; \
8c90b13a
L
7265 r=`${PWD_COMMAND}`; export r; \
7266 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7267 $(HOST_EXPORTS) \
d32ab992 7268 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7269 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7270 done; \
295f4e42 7271 echo "Doing TAGS in bzip2" ; \
215c351a 7272 (cd $(HOST_SUBDIR)/bzip2 && \
1358ccea
NN
7273 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7274 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7275 "RANLIB=$${RANLIB}" \
7276 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7277 TAGS) \
1358ccea
NN
7278 || exit 1
7279
60975492 7280@endif bzip2
1358ccea 7281
295f4e42
NN
7282.PHONY: maybe-install-info-bzip2 install-info-bzip2
7283maybe-install-info-bzip2:
60975492
PB
7284@if bzip2
7285maybe-install-info-bzip2: install-info-bzip2
1358ccea 7286
295f4e42
NN
7287install-info-bzip2: \
7288 configure-bzip2 \
05750653 7289 info-bzip2
f41d6665 7290 @: $(MAKE); $(unstage)
295f4e42 7291 @[ -f ./bzip2/Makefile ] || exit 0; \
8c90b13a
L
7292 r=`${PWD_COMMAND}`; export r; \
7293 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7294 $(HOST_EXPORTS) \
d32ab992 7295 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7296 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7297 done; \
295f4e42 7298 echo "Doing install-info in bzip2" ; \
215c351a 7299 (cd $(HOST_SUBDIR)/bzip2 && \
1358ccea
NN
7300 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7301 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7302 "RANLIB=$${RANLIB}" \
7303 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7304 install-info) \
1358ccea
NN
7305 || exit 1
7306
60975492 7307@endif bzip2
1358ccea 7308
65d6e994
CD
7309.PHONY: maybe-install-html-bzip2 install-html-bzip2
7310maybe-install-html-bzip2:
7311@if bzip2
7312maybe-install-html-bzip2: install-html-bzip2
7313
7314install-html-bzip2: \
7315 configure-bzip2 \
7316 html-bzip2
7317 @: $(MAKE); $(unstage)
7318 @[ -f ./bzip2/Makefile ] || exit 0; \
7319 r=`${PWD_COMMAND}`; export r; \
7320 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7321 $(HOST_EXPORTS) \
7322 for flag in $(EXTRA_HOST_FLAGS) ; do \
7323 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7324 done; \
7325 echo "Doing install-html in bzip2" ; \
7326 (cd $(HOST_SUBDIR)/bzip2 && \
7327 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7328 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7329 "RANLIB=$${RANLIB}" \
7330 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7331 install-html) \
7332 || exit 1
7333
7334@endif bzip2
7335
295f4e42
NN
7336.PHONY: maybe-installcheck-bzip2 installcheck-bzip2
7337maybe-installcheck-bzip2:
60975492
PB
7338@if bzip2
7339maybe-installcheck-bzip2: installcheck-bzip2
295f4e42
NN
7340
7341installcheck-bzip2: \
05750653 7342 configure-bzip2
f41d6665 7343 @: $(MAKE); $(unstage)
295f4e42 7344 @[ -f ./bzip2/Makefile ] || exit 0; \
8c90b13a
L
7345 r=`${PWD_COMMAND}`; export r; \
7346 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7347 $(HOST_EXPORTS) \
d32ab992 7348 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7349 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7350 done; \
295f4e42 7351 echo "Doing installcheck in bzip2" ; \
215c351a 7352 (cd $(HOST_SUBDIR)/bzip2 && \
1358ccea
NN
7353 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7354 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7355 "RANLIB=$${RANLIB}" \
7356 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7357 installcheck) \
1358ccea
NN
7358 || exit 1
7359
60975492 7360@endif bzip2
1358ccea 7361
295f4e42
NN
7362.PHONY: maybe-mostlyclean-bzip2 mostlyclean-bzip2
7363maybe-mostlyclean-bzip2:
60975492
PB
7364@if bzip2
7365maybe-mostlyclean-bzip2: mostlyclean-bzip2
1358ccea 7366
05750653 7367mostlyclean-bzip2:
f41d6665 7368 @: $(MAKE); $(unstage)
295f4e42 7369 @[ -f ./bzip2/Makefile ] || exit 0; \
8c90b13a
L
7370 r=`${PWD_COMMAND}`; export r; \
7371 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7372 $(HOST_EXPORTS) \
d32ab992 7373 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7374 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7375 done; \
295f4e42 7376 echo "Doing mostlyclean in bzip2" ; \
215c351a 7377 (cd $(HOST_SUBDIR)/bzip2 && \
1358ccea
NN
7378 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7379 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7380 "RANLIB=$${RANLIB}" \
7381 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7382 mostlyclean) \
1358ccea
NN
7383 || exit 1
7384
60975492 7385@endif bzip2
1358ccea 7386
295f4e42
NN
7387.PHONY: maybe-clean-bzip2 clean-bzip2
7388maybe-clean-bzip2:
60975492
PB
7389@if bzip2
7390maybe-clean-bzip2: clean-bzip2
1358ccea 7391
05750653 7392clean-bzip2:
f41d6665 7393 @: $(MAKE); $(unstage)
295f4e42 7394 @[ -f ./bzip2/Makefile ] || exit 0; \
8c90b13a
L
7395 r=`${PWD_COMMAND}`; export r; \
7396 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7397 $(HOST_EXPORTS) \
d32ab992 7398 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7399 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7400 done; \
295f4e42 7401 echo "Doing clean in bzip2" ; \
215c351a 7402 (cd $(HOST_SUBDIR)/bzip2 && \
1358ccea
NN
7403 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7404 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7405 "RANLIB=$${RANLIB}" \
7406 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7407 clean) \
1358ccea
NN
7408 || exit 1
7409
60975492 7410@endif bzip2
1358ccea 7411
295f4e42
NN
7412.PHONY: maybe-distclean-bzip2 distclean-bzip2
7413maybe-distclean-bzip2:
60975492
PB
7414@if bzip2
7415maybe-distclean-bzip2: distclean-bzip2
1358ccea 7416
05750653 7417distclean-bzip2:
f41d6665 7418 @: $(MAKE); $(unstage)
295f4e42 7419 @[ -f ./bzip2/Makefile ] || exit 0; \
8c90b13a
L
7420 r=`${PWD_COMMAND}`; export r; \
7421 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7422 $(HOST_EXPORTS) \
d32ab992 7423 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7424 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7425 done; \
295f4e42 7426 echo "Doing distclean in bzip2" ; \
215c351a 7427 (cd $(HOST_SUBDIR)/bzip2 && \
1358ccea
NN
7428 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7429 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7430 "RANLIB=$${RANLIB}" \
7431 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7432 distclean) \
1358ccea
NN
7433 || exit 1
7434
60975492 7435@endif bzip2
1358ccea 7436
295f4e42
NN
7437.PHONY: maybe-maintainer-clean-bzip2 maintainer-clean-bzip2
7438maybe-maintainer-clean-bzip2:
60975492
PB
7439@if bzip2
7440maybe-maintainer-clean-bzip2: maintainer-clean-bzip2
1358ccea 7441
05750653 7442maintainer-clean-bzip2:
f41d6665 7443 @: $(MAKE); $(unstage)
295f4e42 7444 @[ -f ./bzip2/Makefile ] || exit 0; \
8c90b13a
L
7445 r=`${PWD_COMMAND}`; export r; \
7446 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7447 $(HOST_EXPORTS) \
d32ab992 7448 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7449 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7450 done; \
295f4e42 7451 echo "Doing maintainer-clean in bzip2" ; \
215c351a 7452 (cd $(HOST_SUBDIR)/bzip2 && \
1358ccea
NN
7453 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7454 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7455 "RANLIB=$${RANLIB}" \
7456 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7457 maintainer-clean) \
1358ccea
NN
7458 || exit 1
7459
60975492 7460@endif bzip2
1358ccea 7461
1358ccea 7462
25b42232 7463
295f4e42
NN
7464.PHONY: configure-dejagnu maybe-configure-dejagnu
7465maybe-configure-dejagnu:
3ff3adad
PB
7466@if gcc-bootstrap
7467configure-dejagnu: stage_current
7468@endif gcc-bootstrap
60975492
PB
7469@if dejagnu
7470maybe-configure-dejagnu: configure-dejagnu
cc11cc9b 7471configure-dejagnu:
f41d6665 7472 @: $(MAKE); $(unstage)
cc11cc9b 7473 @r=`${PWD_COMMAND}`; export r; \
295f4e42 7474 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
7475 test ! -f $(HOST_SUBDIR)/dejagnu/Makefile || exit 0; \
7476 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/dejagnu ; \
4fc4dd12 7477 $(HOST_EXPORTS) \
25b42232
PB
7478 echo Configuring in $(HOST_SUBDIR)/dejagnu; \
7479 cd "$(HOST_SUBDIR)/dejagnu" || exit 1; \
295f4e42 7480 case $(srcdir) in \
215c351a
PB
7481 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7482 *) topdir=`echo $(HOST_SUBDIR)/dejagnu/ | \
7483 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 7484 esac; \
215c351a
PB
7485 srcdiroption="--srcdir=$${topdir}/dejagnu"; \
7486 libsrcdir="$$s/dejagnu"; \
295f4e42 7487 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 7488 $(HOST_CONFIGARGS) $${srcdiroption} \
295f4e42 7489 || exit 1
60975492 7490@endif dejagnu
295f4e42 7491
25b42232
PB
7492
7493
ce406537
PB
7494
7495
295f4e42
NN
7496.PHONY: all-dejagnu maybe-all-dejagnu
7497maybe-all-dejagnu:
3ff3adad
PB
7498@if gcc-bootstrap
7499all-dejagnu: stage_current
7500@endif gcc-bootstrap
60975492 7501@if dejagnu
7e0b5752 7502TARGET-dejagnu=all
60975492 7503maybe-all-dejagnu: all-dejagnu
295f4e42 7504all-dejagnu: configure-dejagnu
f41d6665 7505 @: $(MAKE); $(unstage)
295f4e42
NN
7506 @r=`${PWD_COMMAND}`; export r; \
7507 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7508 $(HOST_EXPORTS) \
215c351a
PB
7509 (cd $(HOST_SUBDIR)/dejagnu && \
7510 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-dejagnu))
60975492 7511@endif dejagnu
295f4e42 7512
25b42232 7513
ce406537
PB
7514
7515
295f4e42
NN
7516.PHONY: check-dejagnu maybe-check-dejagnu
7517maybe-check-dejagnu:
60975492
PB
7518@if dejagnu
7519maybe-check-dejagnu: check-dejagnu
295f4e42
NN
7520
7521check-dejagnu:
f41d6665 7522 @: $(MAKE); $(unstage)
295f4e42
NN
7523 @r=`${PWD_COMMAND}`; export r; \
7524 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7525 $(HOST_EXPORTS) \
215c351a
PB
7526 (cd $(HOST_SUBDIR)/dejagnu && \
7527 $(MAKE) $(FLAGS_TO_PASS) check)
295f4e42 7528
60975492 7529@endif dejagnu
295f4e42
NN
7530
7531.PHONY: install-dejagnu maybe-install-dejagnu
7532maybe-install-dejagnu:
60975492
PB
7533@if dejagnu
7534maybe-install-dejagnu: install-dejagnu
295f4e42
NN
7535
7536install-dejagnu: installdirs
f41d6665 7537 @: $(MAKE); $(unstage)
295f4e42
NN
7538 @r=`${PWD_COMMAND}`; export r; \
7539 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7540 $(HOST_EXPORTS) \
215c351a 7541 (cd $(HOST_SUBDIR)/dejagnu && \
ace9ac7b 7542 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 7543
60975492 7544@endif dejagnu
295f4e42
NN
7545
7546# Other targets (info, dvi, etc.)
7547
7548.PHONY: maybe-info-dejagnu info-dejagnu
7549maybe-info-dejagnu:
60975492
PB
7550@if dejagnu
7551maybe-info-dejagnu: info-dejagnu
295f4e42
NN
7552
7553info-dejagnu: \
05750653 7554 configure-dejagnu
f41d6665 7555 @: $(MAKE); $(unstage)
295f4e42 7556 @[ -f ./dejagnu/Makefile ] || exit 0; \
8c90b13a
L
7557 r=`${PWD_COMMAND}`; export r; \
7558 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7559 $(HOST_EXPORTS) \
d32ab992 7560 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7561 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7562 done; \
295f4e42 7563 echo "Doing info in dejagnu" ; \
215c351a 7564 (cd $(HOST_SUBDIR)/dejagnu && \
1358ccea
NN
7565 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7566 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7567 "RANLIB=$${RANLIB}" \
7568 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7569 info) \
1358ccea
NN
7570 || exit 1
7571
60975492 7572@endif dejagnu
1358ccea 7573
295f4e42
NN
7574.PHONY: maybe-dvi-dejagnu dvi-dejagnu
7575maybe-dvi-dejagnu:
60975492
PB
7576@if dejagnu
7577maybe-dvi-dejagnu: dvi-dejagnu
1358ccea 7578
295f4e42 7579dvi-dejagnu: \
05750653 7580 configure-dejagnu
f41d6665 7581 @: $(MAKE); $(unstage)
295f4e42 7582 @[ -f ./dejagnu/Makefile ] || exit 0; \
8c90b13a
L
7583 r=`${PWD_COMMAND}`; export r; \
7584 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7585 $(HOST_EXPORTS) \
d32ab992 7586 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7587 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7588 done; \
295f4e42 7589 echo "Doing dvi in dejagnu" ; \
215c351a 7590 (cd $(HOST_SUBDIR)/dejagnu && \
1358ccea
NN
7591 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7592 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7593 "RANLIB=$${RANLIB}" \
7594 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7595 dvi) \
1358ccea
NN
7596 || exit 1
7597
60975492 7598@endif dejagnu
1358ccea 7599
f87a2b2e
MS
7600.PHONY: maybe-html-dejagnu html-dejagnu
7601maybe-html-dejagnu:
7602@if dejagnu
7603maybe-html-dejagnu: html-dejagnu
7604
7605html-dejagnu: \
05750653 7606 configure-dejagnu
f41d6665 7607 @: $(MAKE); $(unstage)
f87a2b2e
MS
7608 @[ -f ./dejagnu/Makefile ] || exit 0; \
7609 r=`${PWD_COMMAND}`; export r; \
7610 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
7611 $(HOST_EXPORTS) \
7612 for flag in $(EXTRA_HOST_FLAGS) ; do \
7613 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7614 done; \
7615 echo "Doing html in dejagnu" ; \
215c351a 7616 (cd $(HOST_SUBDIR)/dejagnu && \
f87a2b2e
MS
7617 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7618 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7619 "RANLIB=$${RANLIB}" \
7620 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7621 html) \
7622 || exit 1
7623
7624@endif dejagnu
7625
295f4e42
NN
7626.PHONY: maybe-TAGS-dejagnu TAGS-dejagnu
7627maybe-TAGS-dejagnu:
60975492
PB
7628@if dejagnu
7629maybe-TAGS-dejagnu: TAGS-dejagnu
1358ccea 7630
295f4e42 7631TAGS-dejagnu: \
05750653 7632 configure-dejagnu
f41d6665 7633 @: $(MAKE); $(unstage)
295f4e42 7634 @[ -f ./dejagnu/Makefile ] || exit 0; \
8c90b13a
L
7635 r=`${PWD_COMMAND}`; export r; \
7636 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7637 $(HOST_EXPORTS) \
d32ab992 7638 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7639 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7640 done; \
295f4e42 7641 echo "Doing TAGS in dejagnu" ; \
215c351a 7642 (cd $(HOST_SUBDIR)/dejagnu && \
1358ccea
NN
7643 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7644 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7645 "RANLIB=$${RANLIB}" \
7646 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7647 TAGS) \
1358ccea
NN
7648 || exit 1
7649
60975492 7650@endif dejagnu
1358ccea 7651
295f4e42
NN
7652.PHONY: maybe-install-info-dejagnu install-info-dejagnu
7653maybe-install-info-dejagnu:
60975492
PB
7654@if dejagnu
7655maybe-install-info-dejagnu: install-info-dejagnu
1358ccea 7656
295f4e42
NN
7657install-info-dejagnu: \
7658 configure-dejagnu \
05750653 7659 info-dejagnu
f41d6665 7660 @: $(MAKE); $(unstage)
295f4e42 7661 @[ -f ./dejagnu/Makefile ] || exit 0; \
8c90b13a
L
7662 r=`${PWD_COMMAND}`; export r; \
7663 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7664 $(HOST_EXPORTS) \
d32ab992 7665 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7666 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7667 done; \
295f4e42 7668 echo "Doing install-info in dejagnu" ; \
215c351a 7669 (cd $(HOST_SUBDIR)/dejagnu && \
1358ccea
NN
7670 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7671 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7672 "RANLIB=$${RANLIB}" \
7673 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7674 install-info) \
1358ccea
NN
7675 || exit 1
7676
60975492 7677@endif dejagnu
1358ccea 7678
65d6e994
CD
7679.PHONY: maybe-install-html-dejagnu install-html-dejagnu
7680maybe-install-html-dejagnu:
7681@if dejagnu
7682maybe-install-html-dejagnu: install-html-dejagnu
7683
7684install-html-dejagnu: \
7685 configure-dejagnu \
7686 html-dejagnu
7687 @: $(MAKE); $(unstage)
7688 @[ -f ./dejagnu/Makefile ] || exit 0; \
7689 r=`${PWD_COMMAND}`; export r; \
7690 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7691 $(HOST_EXPORTS) \
7692 for flag in $(EXTRA_HOST_FLAGS) ; do \
7693 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7694 done; \
7695 echo "Doing install-html in dejagnu" ; \
7696 (cd $(HOST_SUBDIR)/dejagnu && \
7697 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7698 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7699 "RANLIB=$${RANLIB}" \
7700 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7701 install-html) \
7702 || exit 1
7703
7704@endif dejagnu
7705
295f4e42
NN
7706.PHONY: maybe-installcheck-dejagnu installcheck-dejagnu
7707maybe-installcheck-dejagnu:
60975492
PB
7708@if dejagnu
7709maybe-installcheck-dejagnu: installcheck-dejagnu
1358ccea 7710
295f4e42 7711installcheck-dejagnu: \
05750653 7712 configure-dejagnu
f41d6665 7713 @: $(MAKE); $(unstage)
295f4e42 7714 @[ -f ./dejagnu/Makefile ] || exit 0; \
8c90b13a
L
7715 r=`${PWD_COMMAND}`; export r; \
7716 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7717 $(HOST_EXPORTS) \
d32ab992 7718 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7719 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7720 done; \
295f4e42 7721 echo "Doing installcheck in dejagnu" ; \
215c351a 7722 (cd $(HOST_SUBDIR)/dejagnu && \
1358ccea
NN
7723 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7724 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7725 "RANLIB=$${RANLIB}" \
7726 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7727 installcheck) \
1358ccea
NN
7728 || exit 1
7729
60975492 7730@endif dejagnu
1358ccea 7731
295f4e42
NN
7732.PHONY: maybe-mostlyclean-dejagnu mostlyclean-dejagnu
7733maybe-mostlyclean-dejagnu:
60975492
PB
7734@if dejagnu
7735maybe-mostlyclean-dejagnu: mostlyclean-dejagnu
1358ccea 7736
05750653 7737mostlyclean-dejagnu:
f41d6665 7738 @: $(MAKE); $(unstage)
295f4e42 7739 @[ -f ./dejagnu/Makefile ] || exit 0; \
8c90b13a
L
7740 r=`${PWD_COMMAND}`; export r; \
7741 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7742 $(HOST_EXPORTS) \
d32ab992 7743 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7744 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7745 done; \
295f4e42 7746 echo "Doing mostlyclean in dejagnu" ; \
215c351a 7747 (cd $(HOST_SUBDIR)/dejagnu && \
1358ccea
NN
7748 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7749 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7750 "RANLIB=$${RANLIB}" \
7751 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7752 mostlyclean) \
1358ccea
NN
7753 || exit 1
7754
60975492 7755@endif dejagnu
1358ccea 7756
295f4e42
NN
7757.PHONY: maybe-clean-dejagnu clean-dejagnu
7758maybe-clean-dejagnu:
60975492
PB
7759@if dejagnu
7760maybe-clean-dejagnu: clean-dejagnu
1358ccea 7761
05750653 7762clean-dejagnu:
f41d6665 7763 @: $(MAKE); $(unstage)
295f4e42 7764 @[ -f ./dejagnu/Makefile ] || exit 0; \
8c90b13a
L
7765 r=`${PWD_COMMAND}`; export r; \
7766 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7767 $(HOST_EXPORTS) \
d32ab992 7768 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7769 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7770 done; \
295f4e42 7771 echo "Doing clean in dejagnu" ; \
215c351a 7772 (cd $(HOST_SUBDIR)/dejagnu && \
1358ccea
NN
7773 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7774 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7775 "RANLIB=$${RANLIB}" \
7776 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7777 clean) \
1358ccea
NN
7778 || exit 1
7779
60975492 7780@endif dejagnu
1358ccea 7781
295f4e42
NN
7782.PHONY: maybe-distclean-dejagnu distclean-dejagnu
7783maybe-distclean-dejagnu:
60975492
PB
7784@if dejagnu
7785maybe-distclean-dejagnu: distclean-dejagnu
1358ccea 7786
05750653 7787distclean-dejagnu:
f41d6665 7788 @: $(MAKE); $(unstage)
295f4e42 7789 @[ -f ./dejagnu/Makefile ] || exit 0; \
8c90b13a
L
7790 r=`${PWD_COMMAND}`; export r; \
7791 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7792 $(HOST_EXPORTS) \
d32ab992 7793 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7794 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7795 done; \
295f4e42 7796 echo "Doing distclean in dejagnu" ; \
215c351a 7797 (cd $(HOST_SUBDIR)/dejagnu && \
1358ccea
NN
7798 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7799 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7800 "RANLIB=$${RANLIB}" \
7801 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7802 distclean) \
1358ccea
NN
7803 || exit 1
7804
60975492 7805@endif dejagnu
1358ccea 7806
295f4e42
NN
7807.PHONY: maybe-maintainer-clean-dejagnu maintainer-clean-dejagnu
7808maybe-maintainer-clean-dejagnu:
60975492
PB
7809@if dejagnu
7810maybe-maintainer-clean-dejagnu: maintainer-clean-dejagnu
1358ccea 7811
05750653 7812maintainer-clean-dejagnu:
f41d6665 7813 @: $(MAKE); $(unstage)
295f4e42 7814 @[ -f ./dejagnu/Makefile ] || exit 0; \
8c90b13a
L
7815 r=`${PWD_COMMAND}`; export r; \
7816 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7817 $(HOST_EXPORTS) \
d32ab992 7818 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7819 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7820 done; \
295f4e42 7821 echo "Doing maintainer-clean in dejagnu" ; \
215c351a 7822 (cd $(HOST_SUBDIR)/dejagnu && \
1358ccea
NN
7823 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7824 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7825 "RANLIB=$${RANLIB}" \
7826 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7827 maintainer-clean) \
1358ccea
NN
7828 || exit 1
7829
60975492 7830@endif dejagnu
1358ccea 7831
1358ccea 7832
25b42232 7833
295f4e42
NN
7834.PHONY: configure-diff maybe-configure-diff
7835maybe-configure-diff:
3ff3adad
PB
7836@if gcc-bootstrap
7837configure-diff: stage_current
7838@endif gcc-bootstrap
60975492
PB
7839@if diff
7840maybe-configure-diff: configure-diff
cc11cc9b 7841configure-diff:
f41d6665 7842 @: $(MAKE); $(unstage)
cc11cc9b 7843 @r=`${PWD_COMMAND}`; export r; \
295f4e42 7844 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
7845 test ! -f $(HOST_SUBDIR)/diff/Makefile || exit 0; \
7846 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/diff ; \
4fc4dd12 7847 $(HOST_EXPORTS) \
25b42232
PB
7848 echo Configuring in $(HOST_SUBDIR)/diff; \
7849 cd "$(HOST_SUBDIR)/diff" || exit 1; \
295f4e42 7850 case $(srcdir) in \
215c351a
PB
7851 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7852 *) topdir=`echo $(HOST_SUBDIR)/diff/ | \
7853 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 7854 esac; \
215c351a
PB
7855 srcdiroption="--srcdir=$${topdir}/diff"; \
7856 libsrcdir="$$s/diff"; \
295f4e42 7857 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 7858 $(HOST_CONFIGARGS) $${srcdiroption} \
295f4e42 7859 || exit 1
60975492 7860@endif diff
295f4e42 7861
25b42232
PB
7862
7863
ce406537
PB
7864
7865
295f4e42
NN
7866.PHONY: all-diff maybe-all-diff
7867maybe-all-diff:
3ff3adad
PB
7868@if gcc-bootstrap
7869all-diff: stage_current
7870@endif gcc-bootstrap
60975492 7871@if diff
7e0b5752 7872TARGET-diff=all
60975492 7873maybe-all-diff: all-diff
295f4e42 7874all-diff: configure-diff
f41d6665 7875 @: $(MAKE); $(unstage)
295f4e42
NN
7876 @r=`${PWD_COMMAND}`; export r; \
7877 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7878 $(HOST_EXPORTS) \
215c351a
PB
7879 (cd $(HOST_SUBDIR)/diff && \
7880 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-diff))
60975492 7881@endif diff
295f4e42 7882
25b42232 7883
ce406537
PB
7884
7885
295f4e42
NN
7886.PHONY: check-diff maybe-check-diff
7887maybe-check-diff:
60975492
PB
7888@if diff
7889maybe-check-diff: check-diff
295f4e42
NN
7890
7891check-diff:
f41d6665 7892 @: $(MAKE); $(unstage)
295f4e42
NN
7893 @r=`${PWD_COMMAND}`; export r; \
7894 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7895 $(HOST_EXPORTS) \
215c351a
PB
7896 (cd $(HOST_SUBDIR)/diff && \
7897 $(MAKE) $(FLAGS_TO_PASS) check)
295f4e42 7898
60975492 7899@endif diff
295f4e42
NN
7900
7901.PHONY: install-diff maybe-install-diff
7902maybe-install-diff:
60975492
PB
7903@if diff
7904maybe-install-diff: install-diff
295f4e42
NN
7905
7906install-diff: installdirs
f41d6665 7907 @: $(MAKE); $(unstage)
295f4e42
NN
7908 @r=`${PWD_COMMAND}`; export r; \
7909 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7910 $(HOST_EXPORTS) \
215c351a 7911 (cd $(HOST_SUBDIR)/diff && \
ace9ac7b 7912 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 7913
60975492 7914@endif diff
295f4e42
NN
7915
7916# Other targets (info, dvi, etc.)
7917
7918.PHONY: maybe-info-diff info-diff
7919maybe-info-diff:
60975492
PB
7920@if diff
7921maybe-info-diff: info-diff
295f4e42
NN
7922
7923info-diff: \
05750653 7924 configure-diff
f41d6665 7925 @: $(MAKE); $(unstage)
295f4e42 7926 @[ -f ./diff/Makefile ] || exit 0; \
8c90b13a
L
7927 r=`${PWD_COMMAND}`; export r; \
7928 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7929 $(HOST_EXPORTS) \
d32ab992 7930 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7931 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7932 done; \
295f4e42 7933 echo "Doing info in diff" ; \
215c351a 7934 (cd $(HOST_SUBDIR)/diff && \
1358ccea
NN
7935 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7936 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7937 "RANLIB=$${RANLIB}" \
7938 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7939 info) \
1358ccea
NN
7940 || exit 1
7941
60975492 7942@endif diff
1358ccea 7943
295f4e42
NN
7944.PHONY: maybe-dvi-diff dvi-diff
7945maybe-dvi-diff:
60975492
PB
7946@if diff
7947maybe-dvi-diff: dvi-diff
1358ccea 7948
295f4e42 7949dvi-diff: \
05750653 7950 configure-diff
f41d6665 7951 @: $(MAKE); $(unstage)
295f4e42 7952 @[ -f ./diff/Makefile ] || exit 0; \
8c90b13a
L
7953 r=`${PWD_COMMAND}`; export r; \
7954 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7955 $(HOST_EXPORTS) \
d32ab992 7956 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7957 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7958 done; \
295f4e42 7959 echo "Doing dvi in diff" ; \
215c351a 7960 (cd $(HOST_SUBDIR)/diff && \
1358ccea
NN
7961 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7962 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7963 "RANLIB=$${RANLIB}" \
7964 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7965 dvi) \
1358ccea
NN
7966 || exit 1
7967
60975492 7968@endif diff
1358ccea 7969
f87a2b2e
MS
7970.PHONY: maybe-html-diff html-diff
7971maybe-html-diff:
7972@if diff
7973maybe-html-diff: html-diff
7974
7975html-diff: \
05750653 7976 configure-diff
f41d6665 7977 @: $(MAKE); $(unstage)
f87a2b2e
MS
7978 @[ -f ./diff/Makefile ] || exit 0; \
7979 r=`${PWD_COMMAND}`; export r; \
7980 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
7981 $(HOST_EXPORTS) \
7982 for flag in $(EXTRA_HOST_FLAGS) ; do \
7983 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7984 done; \
7985 echo "Doing html in diff" ; \
215c351a 7986 (cd $(HOST_SUBDIR)/diff && \
f87a2b2e
MS
7987 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7988 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7989 "RANLIB=$${RANLIB}" \
7990 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7991 html) \
7992 || exit 1
7993
7994@endif diff
7995
295f4e42
NN
7996.PHONY: maybe-TAGS-diff TAGS-diff
7997maybe-TAGS-diff:
60975492
PB
7998@if diff
7999maybe-TAGS-diff: TAGS-diff
1358ccea 8000
295f4e42 8001TAGS-diff: \
05750653 8002 configure-diff
f41d6665 8003 @: $(MAKE); $(unstage)
295f4e42 8004 @[ -f ./diff/Makefile ] || exit 0; \
8c90b13a
L
8005 r=`${PWD_COMMAND}`; export r; \
8006 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8007 $(HOST_EXPORTS) \
d32ab992 8008 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8009 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8010 done; \
295f4e42 8011 echo "Doing TAGS in diff" ; \
215c351a 8012 (cd $(HOST_SUBDIR)/diff && \
1358ccea
NN
8013 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8014 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8015 "RANLIB=$${RANLIB}" \
8016 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8017 TAGS) \
1358ccea
NN
8018 || exit 1
8019
60975492 8020@endif diff
1358ccea 8021
295f4e42
NN
8022.PHONY: maybe-install-info-diff install-info-diff
8023maybe-install-info-diff:
60975492
PB
8024@if diff
8025maybe-install-info-diff: install-info-diff
1358ccea 8026
295f4e42
NN
8027install-info-diff: \
8028 configure-diff \
05750653 8029 info-diff
f41d6665 8030 @: $(MAKE); $(unstage)
295f4e42 8031 @[ -f ./diff/Makefile ] || exit 0; \
8c90b13a
L
8032 r=`${PWD_COMMAND}`; export r; \
8033 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8034 $(HOST_EXPORTS) \
d32ab992 8035 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8036 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8037 done; \
295f4e42 8038 echo "Doing install-info in diff" ; \
215c351a 8039 (cd $(HOST_SUBDIR)/diff && \
1358ccea
NN
8040 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8041 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8042 "RANLIB=$${RANLIB}" \
8043 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8044 install-info) \
1358ccea
NN
8045 || exit 1
8046
60975492 8047@endif diff
1358ccea 8048
65d6e994
CD
8049.PHONY: maybe-install-html-diff install-html-diff
8050maybe-install-html-diff:
8051@if diff
8052maybe-install-html-diff: install-html-diff
8053
8054install-html-diff: \
8055 configure-diff \
8056 html-diff
8057 @: $(MAKE); $(unstage)
8058 @[ -f ./diff/Makefile ] || exit 0; \
8059 r=`${PWD_COMMAND}`; export r; \
8060 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8061 $(HOST_EXPORTS) \
8062 for flag in $(EXTRA_HOST_FLAGS) ; do \
8063 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8064 done; \
8065 echo "Doing install-html in diff" ; \
8066 (cd $(HOST_SUBDIR)/diff && \
8067 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8068 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8069 "RANLIB=$${RANLIB}" \
8070 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8071 install-html) \
8072 || exit 1
8073
8074@endif diff
8075
295f4e42
NN
8076.PHONY: maybe-installcheck-diff installcheck-diff
8077maybe-installcheck-diff:
60975492
PB
8078@if diff
8079maybe-installcheck-diff: installcheck-diff
1358ccea 8080
295f4e42 8081installcheck-diff: \
05750653 8082 configure-diff
f41d6665 8083 @: $(MAKE); $(unstage)
295f4e42 8084 @[ -f ./diff/Makefile ] || exit 0; \
8c90b13a
L
8085 r=`${PWD_COMMAND}`; export r; \
8086 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8087 $(HOST_EXPORTS) \
d32ab992 8088 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8089 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8090 done; \
295f4e42 8091 echo "Doing installcheck in diff" ; \
215c351a 8092 (cd $(HOST_SUBDIR)/diff && \
1358ccea
NN
8093 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8094 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8095 "RANLIB=$${RANLIB}" \
8096 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8097 installcheck) \
1358ccea
NN
8098 || exit 1
8099
60975492 8100@endif diff
1358ccea 8101
295f4e42
NN
8102.PHONY: maybe-mostlyclean-diff mostlyclean-diff
8103maybe-mostlyclean-diff:
60975492
PB
8104@if diff
8105maybe-mostlyclean-diff: mostlyclean-diff
1358ccea 8106
05750653 8107mostlyclean-diff:
f41d6665 8108 @: $(MAKE); $(unstage)
295f4e42 8109 @[ -f ./diff/Makefile ] || exit 0; \
8c90b13a
L
8110 r=`${PWD_COMMAND}`; export r; \
8111 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8112 $(HOST_EXPORTS) \
d32ab992 8113 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8114 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8115 done; \
295f4e42 8116 echo "Doing mostlyclean in diff" ; \
215c351a 8117 (cd $(HOST_SUBDIR)/diff && \
1358ccea
NN
8118 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8119 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8120 "RANLIB=$${RANLIB}" \
8121 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8122 mostlyclean) \
1358ccea
NN
8123 || exit 1
8124
60975492 8125@endif diff
1358ccea 8126
295f4e42
NN
8127.PHONY: maybe-clean-diff clean-diff
8128maybe-clean-diff:
60975492
PB
8129@if diff
8130maybe-clean-diff: clean-diff
1358ccea 8131
05750653 8132clean-diff:
f41d6665 8133 @: $(MAKE); $(unstage)
295f4e42 8134 @[ -f ./diff/Makefile ] || exit 0; \
8c90b13a
L
8135 r=`${PWD_COMMAND}`; export r; \
8136 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8137 $(HOST_EXPORTS) \
d32ab992 8138 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8139 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8140 done; \
295f4e42 8141 echo "Doing clean in diff" ; \
215c351a 8142 (cd $(HOST_SUBDIR)/diff && \
1358ccea
NN
8143 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8144 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8145 "RANLIB=$${RANLIB}" \
8146 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8147 clean) \
1358ccea
NN
8148 || exit 1
8149
60975492 8150@endif diff
1358ccea 8151
295f4e42
NN
8152.PHONY: maybe-distclean-diff distclean-diff
8153maybe-distclean-diff:
60975492
PB
8154@if diff
8155maybe-distclean-diff: distclean-diff
1358ccea 8156
05750653 8157distclean-diff:
f41d6665 8158 @: $(MAKE); $(unstage)
295f4e42 8159 @[ -f ./diff/Makefile ] || exit 0; \
8c90b13a
L
8160 r=`${PWD_COMMAND}`; export r; \
8161 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8162 $(HOST_EXPORTS) \
d32ab992 8163 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8164 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8165 done; \
295f4e42 8166 echo "Doing distclean in diff" ; \
215c351a 8167 (cd $(HOST_SUBDIR)/diff && \
1358ccea
NN
8168 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8169 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8170 "RANLIB=$${RANLIB}" \
8171 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8172 distclean) \
1358ccea
NN
8173 || exit 1
8174
60975492 8175@endif diff
1358ccea 8176
295f4e42
NN
8177.PHONY: maybe-maintainer-clean-diff maintainer-clean-diff
8178maybe-maintainer-clean-diff:
60975492
PB
8179@if diff
8180maybe-maintainer-clean-diff: maintainer-clean-diff
1358ccea 8181
05750653 8182maintainer-clean-diff:
f41d6665 8183 @: $(MAKE); $(unstage)
295f4e42 8184 @[ -f ./diff/Makefile ] || exit 0; \
8c90b13a
L
8185 r=`${PWD_COMMAND}`; export r; \
8186 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8187 $(HOST_EXPORTS) \
d32ab992 8188 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8189 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8190 done; \
295f4e42 8191 echo "Doing maintainer-clean in diff" ; \
215c351a 8192 (cd $(HOST_SUBDIR)/diff && \
1358ccea
NN
8193 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8194 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8195 "RANLIB=$${RANLIB}" \
8196 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8197 maintainer-clean) \
295f4e42
NN
8198 || exit 1
8199
60975492 8200@endif diff
295f4e42
NN
8201
8202
25b42232 8203
295f4e42
NN
8204.PHONY: configure-dosutils maybe-configure-dosutils
8205maybe-configure-dosutils:
3ff3adad
PB
8206@if gcc-bootstrap
8207configure-dosutils: stage_current
8208@endif gcc-bootstrap
60975492
PB
8209@if dosutils
8210maybe-configure-dosutils: configure-dosutils
cc11cc9b 8211configure-dosutils:
f41d6665 8212 @: $(MAKE); $(unstage)
cc11cc9b 8213 @r=`${PWD_COMMAND}`; export r; \
295f4e42 8214 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
8215 test ! -f $(HOST_SUBDIR)/dosutils/Makefile || exit 0; \
8216 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/dosutils ; \
4fc4dd12 8217 $(HOST_EXPORTS) \
25b42232
PB
8218 echo Configuring in $(HOST_SUBDIR)/dosutils; \
8219 cd "$(HOST_SUBDIR)/dosutils" || exit 1; \
295f4e42 8220 case $(srcdir) in \
215c351a
PB
8221 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8222 *) topdir=`echo $(HOST_SUBDIR)/dosutils/ | \
8223 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 8224 esac; \
215c351a
PB
8225 srcdiroption="--srcdir=$${topdir}/dosutils"; \
8226 libsrcdir="$$s/dosutils"; \
295f4e42 8227 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 8228 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 8229 || exit 1
60975492 8230@endif dosutils
1358ccea 8231
25b42232
PB
8232
8233
ce406537
PB
8234
8235
295f4e42
NN
8236.PHONY: all-dosutils maybe-all-dosutils
8237maybe-all-dosutils:
3ff3adad
PB
8238@if gcc-bootstrap
8239all-dosutils: stage_current
8240@endif gcc-bootstrap
60975492 8241@if dosutils
7e0b5752 8242TARGET-dosutils=all
60975492 8243maybe-all-dosutils: all-dosutils
295f4e42 8244all-dosutils: configure-dosutils
f41d6665 8245 @: $(MAKE); $(unstage)
295f4e42 8246 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 8247 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8248 $(HOST_EXPORTS) \
215c351a
PB
8249 (cd $(HOST_SUBDIR)/dosutils && \
8250 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-dosutils))
60975492 8251@endif dosutils
1358ccea 8252
25b42232 8253
ce406537
PB
8254
8255
295f4e42
NN
8256.PHONY: check-dosutils maybe-check-dosutils
8257maybe-check-dosutils:
60975492
PB
8258@if dosutils
8259maybe-check-dosutils: check-dosutils
1358ccea 8260
295f4e42 8261check-dosutils:
1358ccea 8262
60975492 8263@endif dosutils
1358ccea 8264
295f4e42
NN
8265.PHONY: install-dosutils maybe-install-dosutils
8266maybe-install-dosutils:
60975492
PB
8267@if dosutils
8268maybe-install-dosutils: install-dosutils
1358ccea 8269
295f4e42 8270install-dosutils: installdirs
f41d6665 8271 @: $(MAKE); $(unstage)
295f4e42 8272 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 8273 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8274 $(HOST_EXPORTS) \
215c351a 8275 (cd $(HOST_SUBDIR)/dosutils && \
ace9ac7b 8276 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 8277
60975492 8278@endif dosutils
1358ccea 8279
295f4e42 8280# Other targets (info, dvi, etc.)
1358ccea 8281
295f4e42
NN
8282.PHONY: maybe-info-dosutils info-dosutils
8283maybe-info-dosutils:
60975492
PB
8284@if dosutils
8285maybe-info-dosutils: info-dosutils
295f4e42
NN
8286
8287info-dosutils: \
05750653 8288 configure-dosutils
f41d6665 8289 @: $(MAKE); $(unstage)
295f4e42 8290 @[ -f ./dosutils/Makefile ] || exit 0; \
8c90b13a
L
8291 r=`${PWD_COMMAND}`; export r; \
8292 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8293 $(HOST_EXPORTS) \
d32ab992 8294 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8295 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8296 done; \
295f4e42 8297 echo "Doing info in dosutils" ; \
215c351a 8298 (cd $(HOST_SUBDIR)/dosutils && \
1358ccea
NN
8299 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8300 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8301 "RANLIB=$${RANLIB}" \
8302 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8303 info) \
1358ccea
NN
8304 || exit 1
8305
60975492 8306@endif dosutils
1358ccea 8307
295f4e42
NN
8308.PHONY: maybe-dvi-dosutils dvi-dosutils
8309maybe-dvi-dosutils:
60975492
PB
8310@if dosutils
8311maybe-dvi-dosutils: dvi-dosutils
1358ccea 8312
295f4e42 8313dvi-dosutils: \
05750653 8314 configure-dosutils
f41d6665 8315 @: $(MAKE); $(unstage)
295f4e42 8316 @[ -f ./dosutils/Makefile ] || exit 0; \
8c90b13a
L
8317 r=`${PWD_COMMAND}`; export r; \
8318 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8319 $(HOST_EXPORTS) \
d32ab992 8320 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8321 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8322 done; \
295f4e42 8323 echo "Doing dvi in dosutils" ; \
215c351a 8324 (cd $(HOST_SUBDIR)/dosutils && \
1358ccea
NN
8325 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8326 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8327 "RANLIB=$${RANLIB}" \
8328 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8329 dvi) \
1358ccea
NN
8330 || exit 1
8331
60975492 8332@endif dosutils
1358ccea 8333
f87a2b2e
MS
8334.PHONY: maybe-html-dosutils html-dosutils
8335maybe-html-dosutils:
60975492 8336@if dosutils
f87a2b2e 8337maybe-html-dosutils: html-dosutils
1358ccea 8338
f87a2b2e 8339html-dosutils: \
05750653 8340 configure-dosutils
f41d6665 8341 @: $(MAKE); $(unstage)
295f4e42 8342 @[ -f ./dosutils/Makefile ] || exit 0; \
8c90b13a
L
8343 r=`${PWD_COMMAND}`; export r; \
8344 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8345 $(HOST_EXPORTS) \
d32ab992 8346 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8347 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8348 done; \
f87a2b2e 8349 echo "Doing html in dosutils" ; \
215c351a 8350 (cd $(HOST_SUBDIR)/dosutils && \
1358ccea
NN
8351 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8352 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8353 "RANLIB=$${RANLIB}" \
8354 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
f87a2b2e 8355 html) \
1358ccea
NN
8356 || exit 1
8357
60975492 8358@endif dosutils
1358ccea 8359
f87a2b2e
MS
8360.PHONY: maybe-TAGS-dosutils TAGS-dosutils
8361maybe-TAGS-dosutils:
60975492 8362@if dosutils
f87a2b2e 8363maybe-TAGS-dosutils: TAGS-dosutils
1358ccea 8364
f87a2b2e 8365TAGS-dosutils: \
05750653 8366 configure-dosutils
f41d6665 8367 @: $(MAKE); $(unstage)
f87a2b2e
MS
8368 @[ -f ./dosutils/Makefile ] || exit 0; \
8369 r=`${PWD_COMMAND}`; export r; \
8370 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
8371 $(HOST_EXPORTS) \
8372 for flag in $(EXTRA_HOST_FLAGS) ; do \
8373 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8374 done; \
8375 echo "Doing TAGS in dosutils" ; \
215c351a 8376 (cd $(HOST_SUBDIR)/dosutils && \
f87a2b2e
MS
8377 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8378 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8379 "RANLIB=$${RANLIB}" \
8380 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8381 TAGS) \
8382 || exit 1
8383
8384@endif dosutils
8385
8386.PHONY: maybe-install-info-dosutils install-info-dosutils
8387maybe-install-info-dosutils:
8388@if dosutils
8389maybe-install-info-dosutils: install-info-dosutils
8390
8391install-info-dosutils: \
8392 configure-dosutils \
05750653 8393 info-dosutils
f41d6665 8394 @: $(MAKE); $(unstage)
295f4e42 8395 @[ -f ./dosutils/Makefile ] || exit 0; \
8c90b13a
L
8396 r=`${PWD_COMMAND}`; export r; \
8397 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8398 $(HOST_EXPORTS) \
d32ab992 8399 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8400 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8401 done; \
295f4e42 8402 echo "Doing install-info in dosutils" ; \
215c351a 8403 (cd $(HOST_SUBDIR)/dosutils && \
1358ccea
NN
8404 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8405 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8406 "RANLIB=$${RANLIB}" \
8407 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8408 install-info) \
1358ccea
NN
8409 || exit 1
8410
60975492 8411@endif dosutils
1358ccea 8412
65d6e994
CD
8413.PHONY: maybe-install-html-dosutils install-html-dosutils
8414maybe-install-html-dosutils:
8415@if dosutils
8416maybe-install-html-dosutils: install-html-dosutils
8417
8418install-html-dosutils: \
8419 configure-dosutils \
8420 html-dosutils
8421 @: $(MAKE); $(unstage)
8422 @[ -f ./dosutils/Makefile ] || exit 0; \
8423 r=`${PWD_COMMAND}`; export r; \
8424 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8425 $(HOST_EXPORTS) \
8426 for flag in $(EXTRA_HOST_FLAGS) ; do \
8427 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8428 done; \
8429 echo "Doing install-html in dosutils" ; \
8430 (cd $(HOST_SUBDIR)/dosutils && \
8431 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8432 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8433 "RANLIB=$${RANLIB}" \
8434 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8435 install-html) \
8436 || exit 1
8437
8438@endif dosutils
8439
295f4e42
NN
8440.PHONY: maybe-installcheck-dosutils installcheck-dosutils
8441maybe-installcheck-dosutils:
60975492
PB
8442@if dosutils
8443maybe-installcheck-dosutils: installcheck-dosutils
1358ccea 8444
295f4e42 8445installcheck-dosutils: \
05750653 8446 configure-dosutils
f41d6665 8447 @: $(MAKE); $(unstage)
295f4e42 8448 @[ -f ./dosutils/Makefile ] || exit 0; \
8c90b13a
L
8449 r=`${PWD_COMMAND}`; export r; \
8450 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8451 $(HOST_EXPORTS) \
d32ab992 8452 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8453 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8454 done; \
295f4e42 8455 echo "Doing installcheck in dosutils" ; \
215c351a 8456 (cd $(HOST_SUBDIR)/dosutils && \
1358ccea
NN
8457 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8458 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8459 "RANLIB=$${RANLIB}" \
8460 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8461 installcheck) \
1358ccea
NN
8462 || exit 1
8463
60975492 8464@endif dosutils
1358ccea 8465
295f4e42
NN
8466.PHONY: maybe-mostlyclean-dosutils mostlyclean-dosutils
8467maybe-mostlyclean-dosutils:
60975492
PB
8468@if dosutils
8469maybe-mostlyclean-dosutils: mostlyclean-dosutils
1358ccea 8470
05750653 8471mostlyclean-dosutils:
f41d6665 8472 @: $(MAKE); $(unstage)
295f4e42 8473 @[ -f ./dosutils/Makefile ] || exit 0; \
8c90b13a
L
8474 r=`${PWD_COMMAND}`; export r; \
8475 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8476 $(HOST_EXPORTS) \
d32ab992 8477 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8478 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8479 done; \
295f4e42 8480 echo "Doing mostlyclean in dosutils" ; \
215c351a 8481 (cd $(HOST_SUBDIR)/dosutils && \
1358ccea
NN
8482 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8483 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8484 "RANLIB=$${RANLIB}" \
8485 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8486 mostlyclean) \
1358ccea
NN
8487 || exit 1
8488
60975492 8489@endif dosutils
1358ccea 8490
295f4e42
NN
8491.PHONY: maybe-clean-dosutils clean-dosutils
8492maybe-clean-dosutils:
60975492
PB
8493@if dosutils
8494maybe-clean-dosutils: clean-dosutils
1358ccea 8495
05750653 8496clean-dosutils:
f41d6665 8497 @: $(MAKE); $(unstage)
295f4e42 8498 @[ -f ./dosutils/Makefile ] || exit 0; \
8c90b13a
L
8499 r=`${PWD_COMMAND}`; export r; \
8500 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8501 $(HOST_EXPORTS) \
d32ab992 8502 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8503 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8504 done; \
295f4e42 8505 echo "Doing clean in dosutils" ; \
215c351a 8506 (cd $(HOST_SUBDIR)/dosutils && \
1358ccea
NN
8507 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8508 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8509 "RANLIB=$${RANLIB}" \
8510 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8511 clean) \
1358ccea
NN
8512 || exit 1
8513
60975492 8514@endif dosutils
1358ccea 8515
295f4e42
NN
8516.PHONY: maybe-distclean-dosutils distclean-dosutils
8517maybe-distclean-dosutils:
60975492
PB
8518@if dosutils
8519maybe-distclean-dosutils: distclean-dosutils
1358ccea 8520
05750653 8521distclean-dosutils:
f41d6665 8522 @: $(MAKE); $(unstage)
295f4e42 8523 @[ -f ./dosutils/Makefile ] || exit 0; \
8c90b13a
L
8524 r=`${PWD_COMMAND}`; export r; \
8525 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8526 $(HOST_EXPORTS) \
d32ab992 8527 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8528 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8529 done; \
295f4e42 8530 echo "Doing distclean in dosutils" ; \
215c351a 8531 (cd $(HOST_SUBDIR)/dosutils && \
1358ccea
NN
8532 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8533 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8534 "RANLIB=$${RANLIB}" \
8535 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8536 distclean) \
1358ccea
NN
8537 || exit 1
8538
60975492 8539@endif dosutils
1358ccea 8540
295f4e42
NN
8541.PHONY: maybe-maintainer-clean-dosutils maintainer-clean-dosutils
8542maybe-maintainer-clean-dosutils:
60975492
PB
8543@if dosutils
8544maybe-maintainer-clean-dosutils: maintainer-clean-dosutils
1358ccea 8545
05750653 8546maintainer-clean-dosutils:
f41d6665 8547 @: $(MAKE); $(unstage)
295f4e42 8548 @[ -f ./dosutils/Makefile ] || exit 0; \
8c90b13a
L
8549 r=`${PWD_COMMAND}`; export r; \
8550 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8551 $(HOST_EXPORTS) \
d32ab992 8552 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8553 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8554 done; \
295f4e42 8555 echo "Doing maintainer-clean in dosutils" ; \
215c351a 8556 (cd $(HOST_SUBDIR)/dosutils && \
1358ccea
NN
8557 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8558 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8559 "RANLIB=$${RANLIB}" \
8560 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8561 maintainer-clean) \
1358ccea
NN
8562 || exit 1
8563
60975492 8564@endif dosutils
1358ccea
NN
8565
8566
25b42232 8567
295f4e42
NN
8568.PHONY: configure-etc maybe-configure-etc
8569maybe-configure-etc:
3ff3adad
PB
8570@if gcc-bootstrap
8571configure-etc: stage_current
8572@endif gcc-bootstrap
60975492
PB
8573@if etc
8574maybe-configure-etc: configure-etc
cc11cc9b 8575configure-etc:
f41d6665 8576 @: $(MAKE); $(unstage)
cc11cc9b 8577 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 8578 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
8579 test ! -f $(HOST_SUBDIR)/etc/Makefile || exit 0; \
8580 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/etc ; \
4fc4dd12 8581 $(HOST_EXPORTS) \
25b42232
PB
8582 echo Configuring in $(HOST_SUBDIR)/etc; \
8583 cd "$(HOST_SUBDIR)/etc" || exit 1; \
295f4e42 8584 case $(srcdir) in \
215c351a
PB
8585 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8586 *) topdir=`echo $(HOST_SUBDIR)/etc/ | \
8587 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 8588 esac; \
215c351a
PB
8589 srcdiroption="--srcdir=$${topdir}/etc"; \
8590 libsrcdir="$$s/etc"; \
295f4e42 8591 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 8592 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 8593 || exit 1
60975492 8594@endif etc
1358ccea 8595
25b42232
PB
8596
8597
ce406537
PB
8598
8599
295f4e42
NN
8600.PHONY: all-etc maybe-all-etc
8601maybe-all-etc:
3ff3adad
PB
8602@if gcc-bootstrap
8603all-etc: stage_current
8604@endif gcc-bootstrap
60975492 8605@if etc
7e0b5752 8606TARGET-etc=all
60975492 8607maybe-all-etc: all-etc
295f4e42 8608all-etc: configure-etc
f41d6665 8609 @: $(MAKE); $(unstage)
295f4e42
NN
8610 @r=`${PWD_COMMAND}`; export r; \
8611 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8612 $(HOST_EXPORTS) \
215c351a
PB
8613 (cd $(HOST_SUBDIR)/etc && \
8614 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-etc))
60975492 8615@endif etc
1358ccea 8616
25b42232 8617
ce406537
PB
8618
8619
295f4e42
NN
8620.PHONY: check-etc maybe-check-etc
8621maybe-check-etc:
60975492
PB
8622@if etc
8623maybe-check-etc: check-etc
1358ccea 8624
295f4e42 8625check-etc:
f41d6665 8626 @: $(MAKE); $(unstage)
295f4e42 8627 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 8628 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8629 $(HOST_EXPORTS) \
215c351a
PB
8630 (cd $(HOST_SUBDIR)/etc && \
8631 $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 8632
60975492 8633@endif etc
1358ccea 8634
295f4e42
NN
8635.PHONY: install-etc maybe-install-etc
8636maybe-install-etc:
60975492
PB
8637@if etc
8638maybe-install-etc: install-etc
1358ccea 8639
295f4e42 8640install-etc: installdirs
f41d6665 8641 @: $(MAKE); $(unstage)
295f4e42 8642 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 8643 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8644 $(HOST_EXPORTS) \
215c351a 8645 (cd $(HOST_SUBDIR)/etc && \
ace9ac7b 8646 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 8647
60975492 8648@endif etc
1358ccea 8649
295f4e42 8650# Other targets (info, dvi, etc.)
1358ccea 8651
295f4e42
NN
8652.PHONY: maybe-info-etc info-etc
8653maybe-info-etc:
60975492
PB
8654@if etc
8655maybe-info-etc: info-etc
295f4e42
NN
8656
8657info-etc: \
05750653 8658 configure-etc
f41d6665 8659 @: $(MAKE); $(unstage)
295f4e42 8660 @[ -f ./etc/Makefile ] || exit 0; \
8c90b13a
L
8661 r=`${PWD_COMMAND}`; export r; \
8662 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8663 $(HOST_EXPORTS) \
d32ab992 8664 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8665 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8666 done; \
295f4e42 8667 echo "Doing info in etc" ; \
215c351a 8668 (cd $(HOST_SUBDIR)/etc && \
1358ccea
NN
8669 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8670 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8671 "RANLIB=$${RANLIB}" \
8672 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8673 info) \
1358ccea
NN
8674 || exit 1
8675
60975492 8676@endif etc
1358ccea 8677
295f4e42
NN
8678.PHONY: maybe-dvi-etc dvi-etc
8679maybe-dvi-etc:
60975492
PB
8680@if etc
8681maybe-dvi-etc: dvi-etc
1358ccea 8682
295f4e42 8683dvi-etc: \
05750653 8684 configure-etc
f41d6665 8685 @: $(MAKE); $(unstage)
295f4e42 8686 @[ -f ./etc/Makefile ] || exit 0; \
8c90b13a
L
8687 r=`${PWD_COMMAND}`; export r; \
8688 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8689 $(HOST_EXPORTS) \
d32ab992 8690 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8691 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8692 done; \
295f4e42 8693 echo "Doing dvi in etc" ; \
215c351a 8694 (cd $(HOST_SUBDIR)/etc && \
1358ccea
NN
8695 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8696 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8697 "RANLIB=$${RANLIB}" \
8698 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8699 dvi) \
1358ccea
NN
8700 || exit 1
8701
60975492 8702@endif etc
1358ccea 8703
f87a2b2e
MS
8704.PHONY: maybe-html-etc html-etc
8705maybe-html-etc:
8706@if etc
8707maybe-html-etc: html-etc
8708
8709html-etc: \
05750653 8710 configure-etc
f41d6665 8711 @: $(MAKE); $(unstage)
f87a2b2e
MS
8712 @[ -f ./etc/Makefile ] || exit 0; \
8713 r=`${PWD_COMMAND}`; export r; \
8714 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
8715 $(HOST_EXPORTS) \
8716 for flag in $(EXTRA_HOST_FLAGS) ; do \
8717 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8718 done; \
8719 echo "Doing html in etc" ; \
215c351a 8720 (cd $(HOST_SUBDIR)/etc && \
f87a2b2e
MS
8721 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8722 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8723 "RANLIB=$${RANLIB}" \
8724 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8725 html) \
8726 || exit 1
8727
8728@endif etc
8729
295f4e42
NN
8730.PHONY: maybe-TAGS-etc TAGS-etc
8731maybe-TAGS-etc:
60975492
PB
8732@if etc
8733maybe-TAGS-etc: TAGS-etc
1358ccea 8734
295f4e42 8735TAGS-etc: \
05750653 8736 configure-etc
f41d6665 8737 @: $(MAKE); $(unstage)
295f4e42 8738 @[ -f ./etc/Makefile ] || exit 0; \
8c90b13a
L
8739 r=`${PWD_COMMAND}`; export r; \
8740 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8741 $(HOST_EXPORTS) \
d32ab992 8742 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8743 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8744 done; \
295f4e42 8745 echo "Doing TAGS in etc" ; \
215c351a 8746 (cd $(HOST_SUBDIR)/etc && \
1358ccea
NN
8747 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8748 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8749 "RANLIB=$${RANLIB}" \
8750 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8751 TAGS) \
1358ccea
NN
8752 || exit 1
8753
60975492 8754@endif etc
1358ccea 8755
295f4e42
NN
8756.PHONY: maybe-install-info-etc install-info-etc
8757maybe-install-info-etc:
60975492
PB
8758@if etc
8759maybe-install-info-etc: install-info-etc
1358ccea 8760
295f4e42
NN
8761install-info-etc: \
8762 configure-etc \
05750653 8763 info-etc
f41d6665 8764 @: $(MAKE); $(unstage)
295f4e42 8765 @[ -f ./etc/Makefile ] || exit 0; \
8c90b13a
L
8766 r=`${PWD_COMMAND}`; export r; \
8767 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8768 $(HOST_EXPORTS) \
d32ab992 8769 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8770 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8771 done; \
295f4e42 8772 echo "Doing install-info in etc" ; \
215c351a 8773 (cd $(HOST_SUBDIR)/etc && \
1358ccea
NN
8774 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8775 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8776 "RANLIB=$${RANLIB}" \
8777 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8778 install-info) \
1358ccea
NN
8779 || exit 1
8780
60975492 8781@endif etc
1358ccea 8782
65d6e994
CD
8783.PHONY: maybe-install-html-etc install-html-etc
8784maybe-install-html-etc:
8785@if etc
8786maybe-install-html-etc: install-html-etc
8787
8788install-html-etc: \
8789 configure-etc \
8790 html-etc
8791 @: $(MAKE); $(unstage)
8792 @[ -f ./etc/Makefile ] || exit 0; \
8793 r=`${PWD_COMMAND}`; export r; \
8794 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8795 $(HOST_EXPORTS) \
8796 for flag in $(EXTRA_HOST_FLAGS) ; do \
8797 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8798 done; \
8799 echo "Doing install-html in etc" ; \
8800 (cd $(HOST_SUBDIR)/etc && \
8801 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8802 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8803 "RANLIB=$${RANLIB}" \
8804 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8805 install-html) \
8806 || exit 1
8807
8808@endif etc
8809
295f4e42
NN
8810.PHONY: maybe-installcheck-etc installcheck-etc
8811maybe-installcheck-etc:
60975492
PB
8812@if etc
8813maybe-installcheck-etc: installcheck-etc
1358ccea 8814
295f4e42 8815installcheck-etc: \
05750653 8816 configure-etc
f41d6665 8817 @: $(MAKE); $(unstage)
295f4e42 8818 @[ -f ./etc/Makefile ] || exit 0; \
8c90b13a
L
8819 r=`${PWD_COMMAND}`; export r; \
8820 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8821 $(HOST_EXPORTS) \
d32ab992 8822 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8823 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8824 done; \
295f4e42 8825 echo "Doing installcheck in etc" ; \
215c351a 8826 (cd $(HOST_SUBDIR)/etc && \
1358ccea
NN
8827 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8828 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8829 "RANLIB=$${RANLIB}" \
8830 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8831 installcheck) \
1358ccea
NN
8832 || exit 1
8833
60975492 8834@endif etc
1358ccea 8835
295f4e42
NN
8836.PHONY: maybe-mostlyclean-etc mostlyclean-etc
8837maybe-mostlyclean-etc:
60975492
PB
8838@if etc
8839maybe-mostlyclean-etc: mostlyclean-etc
1358ccea 8840
05750653 8841mostlyclean-etc:
f41d6665 8842 @: $(MAKE); $(unstage)
295f4e42 8843 @[ -f ./etc/Makefile ] || exit 0; \
8c90b13a
L
8844 r=`${PWD_COMMAND}`; export r; \
8845 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8846 $(HOST_EXPORTS) \
d32ab992 8847 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8848 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8849 done; \
295f4e42 8850 echo "Doing mostlyclean in etc" ; \
215c351a 8851 (cd $(HOST_SUBDIR)/etc && \
1358ccea
NN
8852 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8853 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8854 "RANLIB=$${RANLIB}" \
8855 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8856 mostlyclean) \
1358ccea
NN
8857 || exit 1
8858
60975492 8859@endif etc
1358ccea 8860
295f4e42
NN
8861.PHONY: maybe-clean-etc clean-etc
8862maybe-clean-etc:
60975492
PB
8863@if etc
8864maybe-clean-etc: clean-etc
1358ccea 8865
05750653 8866clean-etc:
f41d6665 8867 @: $(MAKE); $(unstage)
295f4e42 8868 @[ -f ./etc/Makefile ] || exit 0; \
8c90b13a
L
8869 r=`${PWD_COMMAND}`; export r; \
8870 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8871 $(HOST_EXPORTS) \
d32ab992 8872 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8873 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8874 done; \
295f4e42 8875 echo "Doing clean in etc" ; \
215c351a 8876 (cd $(HOST_SUBDIR)/etc && \
1358ccea
NN
8877 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8878 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8879 "RANLIB=$${RANLIB}" \
8880 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8881 clean) \
1358ccea
NN
8882 || exit 1
8883
60975492 8884@endif etc
1358ccea 8885
295f4e42
NN
8886.PHONY: maybe-distclean-etc distclean-etc
8887maybe-distclean-etc:
60975492
PB
8888@if etc
8889maybe-distclean-etc: distclean-etc
1358ccea 8890
05750653 8891distclean-etc:
f41d6665 8892 @: $(MAKE); $(unstage)
295f4e42 8893 @[ -f ./etc/Makefile ] || exit 0; \
8c90b13a
L
8894 r=`${PWD_COMMAND}`; export r; \
8895 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8896 $(HOST_EXPORTS) \
d32ab992 8897 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8898 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8899 done; \
295f4e42 8900 echo "Doing distclean in etc" ; \
215c351a 8901 (cd $(HOST_SUBDIR)/etc && \
1358ccea
NN
8902 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8903 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8904 "RANLIB=$${RANLIB}" \
8905 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8906 distclean) \
1358ccea
NN
8907 || exit 1
8908
60975492 8909@endif etc
1358ccea 8910
295f4e42
NN
8911.PHONY: maybe-maintainer-clean-etc maintainer-clean-etc
8912maybe-maintainer-clean-etc:
60975492
PB
8913@if etc
8914maybe-maintainer-clean-etc: maintainer-clean-etc
1358ccea 8915
05750653 8916maintainer-clean-etc:
f41d6665 8917 @: $(MAKE); $(unstage)
295f4e42 8918 @[ -f ./etc/Makefile ] || exit 0; \
8c90b13a
L
8919 r=`${PWD_COMMAND}`; export r; \
8920 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8921 $(HOST_EXPORTS) \
d32ab992 8922 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8923 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8924 done; \
295f4e42 8925 echo "Doing maintainer-clean in etc" ; \
215c351a 8926 (cd $(HOST_SUBDIR)/etc && \
1358ccea
NN
8927 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8928 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8929 "RANLIB=$${RANLIB}" \
8930 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8931 maintainer-clean) \
1358ccea
NN
8932 || exit 1
8933
60975492 8934@endif etc
1358ccea 8935
1358ccea 8936
25b42232 8937
295f4e42
NN
8938.PHONY: configure-fastjar maybe-configure-fastjar
8939maybe-configure-fastjar:
3ff3adad
PB
8940@if gcc-bootstrap
8941configure-fastjar: stage_current
8942@endif gcc-bootstrap
60975492
PB
8943@if fastjar
8944maybe-configure-fastjar: configure-fastjar
cc11cc9b 8945configure-fastjar:
f41d6665 8946 @: $(MAKE); $(unstage)
cc11cc9b 8947 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 8948 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
8949 test ! -f $(HOST_SUBDIR)/fastjar/Makefile || exit 0; \
8950 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fastjar ; \
4fc4dd12 8951 $(HOST_EXPORTS) \
25b42232
PB
8952 echo Configuring in $(HOST_SUBDIR)/fastjar; \
8953 cd "$(HOST_SUBDIR)/fastjar" || exit 1; \
295f4e42 8954 case $(srcdir) in \
215c351a
PB
8955 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8956 *) topdir=`echo $(HOST_SUBDIR)/fastjar/ | \
8957 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 8958 esac; \
215c351a
PB
8959 srcdiroption="--srcdir=$${topdir}/fastjar"; \
8960 libsrcdir="$$s/fastjar"; \
295f4e42 8961 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 8962 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 8963 || exit 1
60975492 8964@endif fastjar
1358ccea 8965
25b42232
PB
8966
8967
ce406537
PB
8968
8969
295f4e42
NN
8970.PHONY: all-fastjar maybe-all-fastjar
8971maybe-all-fastjar:
3ff3adad
PB
8972@if gcc-bootstrap
8973all-fastjar: stage_current
8974@endif gcc-bootstrap
60975492 8975@if fastjar
7e0b5752 8976TARGET-fastjar=all
60975492 8977maybe-all-fastjar: all-fastjar
295f4e42 8978all-fastjar: configure-fastjar
f41d6665 8979 @: $(MAKE); $(unstage)
295f4e42 8980 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 8981 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8982 $(HOST_EXPORTS) \
215c351a
PB
8983 (cd $(HOST_SUBDIR)/fastjar && \
8984 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-fastjar))
60975492 8985@endif fastjar
1358ccea 8986
25b42232 8987
ce406537
PB
8988
8989
295f4e42
NN
8990.PHONY: check-fastjar maybe-check-fastjar
8991maybe-check-fastjar:
60975492
PB
8992@if fastjar
8993maybe-check-fastjar: check-fastjar
1358ccea 8994
295f4e42
NN
8995# This module is only tested in a native toolchain.
8996check-fastjar:
f41d6665 8997 @: $(MAKE); $(unstage)
295f4e42
NN
8998 @if [ '$(host)' = '$(target)' ] ; then \
8999 r=`${PWD_COMMAND}`; export r; \
9000 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9001 $(HOST_EXPORTS) \
215c351a 9002 (cd $(HOST_SUBDIR)/fastjar && \
ef6e9bc0 9003 $(MAKE) $(FLAGS_TO_PASS) check); \
295f4e42 9004 fi
1358ccea 9005
60975492 9006@endif fastjar
295f4e42
NN
9007
9008.PHONY: install-fastjar maybe-install-fastjar
9009maybe-install-fastjar:
60975492
PB
9010@if fastjar
9011maybe-install-fastjar: install-fastjar
295f4e42
NN
9012
9013install-fastjar: installdirs
f41d6665 9014 @: $(MAKE); $(unstage)
295f4e42 9015 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 9016 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9017 $(HOST_EXPORTS) \
215c351a 9018 (cd $(HOST_SUBDIR)/fastjar && \
ace9ac7b 9019 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 9020
60975492 9021@endif fastjar
1358ccea 9022
295f4e42 9023# Other targets (info, dvi, etc.)
d9cdb878 9024
295f4e42
NN
9025.PHONY: maybe-info-fastjar info-fastjar
9026maybe-info-fastjar:
60975492
PB
9027@if fastjar
9028maybe-info-fastjar: info-fastjar
295f4e42
NN
9029
9030info-fastjar: \
05750653 9031 configure-fastjar
f41d6665 9032 @: $(MAKE); $(unstage)
295f4e42 9033 @[ -f ./fastjar/Makefile ] || exit 0; \
d9cdb878
AC
9034 r=`${PWD_COMMAND}`; export r; \
9035 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9036 $(HOST_EXPORTS) \
d32ab992 9037 for flag in $(EXTRA_HOST_FLAGS) ; do \
d9cdb878
AC
9038 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9039 done; \
295f4e42 9040 echo "Doing info in fastjar" ; \
215c351a 9041 (cd $(HOST_SUBDIR)/fastjar && \
d9cdb878
AC
9042 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9043 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9044 "RANLIB=$${RANLIB}" \
9045 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9046 info) \
d9cdb878
AC
9047 || exit 1
9048
60975492 9049@endif fastjar
d9cdb878 9050
295f4e42
NN
9051.PHONY: maybe-dvi-fastjar dvi-fastjar
9052maybe-dvi-fastjar:
60975492
PB
9053@if fastjar
9054maybe-dvi-fastjar: dvi-fastjar
1358ccea 9055
295f4e42 9056dvi-fastjar: \
05750653 9057 configure-fastjar
f41d6665 9058 @: $(MAKE); $(unstage)
295f4e42 9059 @[ -f ./fastjar/Makefile ] || exit 0; \
8c90b13a
L
9060 r=`${PWD_COMMAND}`; export r; \
9061 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9062 $(HOST_EXPORTS) \
d32ab992 9063 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9064 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9065 done; \
295f4e42 9066 echo "Doing dvi in fastjar" ; \
215c351a 9067 (cd $(HOST_SUBDIR)/fastjar && \
1358ccea
NN
9068 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9069 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9070 "RANLIB=$${RANLIB}" \
9071 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9072 dvi) \
1358ccea
NN
9073 || exit 1
9074
60975492 9075@endif fastjar
1358ccea 9076
f87a2b2e
MS
9077.PHONY: maybe-html-fastjar html-fastjar
9078maybe-html-fastjar:
9079@if fastjar
9080maybe-html-fastjar: html-fastjar
9081
9082html-fastjar: \
05750653 9083 configure-fastjar
f41d6665 9084 @: $(MAKE); $(unstage)
f87a2b2e
MS
9085 @[ -f ./fastjar/Makefile ] || exit 0; \
9086 r=`${PWD_COMMAND}`; export r; \
9087 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
9088 $(HOST_EXPORTS) \
9089 for flag in $(EXTRA_HOST_FLAGS) ; do \
9090 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9091 done; \
9092 echo "Doing html in fastjar" ; \
215c351a 9093 (cd $(HOST_SUBDIR)/fastjar && \
f87a2b2e
MS
9094 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9095 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9096 "RANLIB=$${RANLIB}" \
9097 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9098 html) \
9099 || exit 1
9100
9101@endif fastjar
9102
295f4e42
NN
9103.PHONY: maybe-TAGS-fastjar TAGS-fastjar
9104maybe-TAGS-fastjar:
60975492
PB
9105@if fastjar
9106maybe-TAGS-fastjar: TAGS-fastjar
1358ccea 9107
295f4e42 9108TAGS-fastjar: \
05750653 9109 configure-fastjar
f41d6665 9110 @: $(MAKE); $(unstage)
295f4e42 9111 @[ -f ./fastjar/Makefile ] || exit 0; \
8c90b13a
L
9112 r=`${PWD_COMMAND}`; export r; \
9113 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9114 $(HOST_EXPORTS) \
d32ab992 9115 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9116 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9117 done; \
295f4e42 9118 echo "Doing TAGS in fastjar" ; \
215c351a 9119 (cd $(HOST_SUBDIR)/fastjar && \
1358ccea
NN
9120 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9121 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9122 "RANLIB=$${RANLIB}" \
9123 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9124 TAGS) \
1358ccea
NN
9125 || exit 1
9126
60975492 9127@endif fastjar
1358ccea 9128
295f4e42
NN
9129.PHONY: maybe-install-info-fastjar install-info-fastjar
9130maybe-install-info-fastjar:
60975492
PB
9131@if fastjar
9132maybe-install-info-fastjar: install-info-fastjar
1358ccea 9133
295f4e42
NN
9134install-info-fastjar: \
9135 configure-fastjar \
05750653 9136 info-fastjar
f41d6665 9137 @: $(MAKE); $(unstage)
295f4e42 9138 @[ -f ./fastjar/Makefile ] || exit 0; \
8c90b13a
L
9139 r=`${PWD_COMMAND}`; export r; \
9140 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9141 $(HOST_EXPORTS) \
d32ab992 9142 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9143 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9144 done; \
295f4e42 9145 echo "Doing install-info in fastjar" ; \
215c351a 9146 (cd $(HOST_SUBDIR)/fastjar && \
1358ccea
NN
9147 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9148 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9149 "RANLIB=$${RANLIB}" \
9150 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9151 install-info) \
1358ccea
NN
9152 || exit 1
9153
60975492 9154@endif fastjar
1358ccea 9155
65d6e994
CD
9156.PHONY: maybe-install-html-fastjar install-html-fastjar
9157maybe-install-html-fastjar:
9158@if fastjar
9159maybe-install-html-fastjar: install-html-fastjar
9160
9161install-html-fastjar: \
9162 configure-fastjar \
9163 html-fastjar
9164 @: $(MAKE); $(unstage)
9165 @[ -f ./fastjar/Makefile ] || exit 0; \
9166 r=`${PWD_COMMAND}`; export r; \
9167 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9168 $(HOST_EXPORTS) \
9169 for flag in $(EXTRA_HOST_FLAGS) ; do \
9170 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9171 done; \
9172 echo "Doing install-html in fastjar" ; \
9173 (cd $(HOST_SUBDIR)/fastjar && \
9174 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9175 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9176 "RANLIB=$${RANLIB}" \
9177 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9178 install-html) \
9179 || exit 1
9180
9181@endif fastjar
9182
295f4e42
NN
9183.PHONY: maybe-installcheck-fastjar installcheck-fastjar
9184maybe-installcheck-fastjar:
60975492
PB
9185@if fastjar
9186maybe-installcheck-fastjar: installcheck-fastjar
1358ccea 9187
295f4e42 9188installcheck-fastjar: \
05750653 9189 configure-fastjar
f41d6665 9190 @: $(MAKE); $(unstage)
295f4e42 9191 @[ -f ./fastjar/Makefile ] || exit 0; \
8c90b13a
L
9192 r=`${PWD_COMMAND}`; export r; \
9193 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9194 $(HOST_EXPORTS) \
d32ab992 9195 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9196 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9197 done; \
295f4e42 9198 echo "Doing installcheck in fastjar" ; \
215c351a 9199 (cd $(HOST_SUBDIR)/fastjar && \
1358ccea
NN
9200 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9201 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9202 "RANLIB=$${RANLIB}" \
9203 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9204 installcheck) \
1358ccea
NN
9205 || exit 1
9206
60975492 9207@endif fastjar
1358ccea 9208
295f4e42
NN
9209.PHONY: maybe-mostlyclean-fastjar mostlyclean-fastjar
9210maybe-mostlyclean-fastjar:
60975492
PB
9211@if fastjar
9212maybe-mostlyclean-fastjar: mostlyclean-fastjar
1358ccea 9213
05750653 9214mostlyclean-fastjar:
f41d6665 9215 @: $(MAKE); $(unstage)
295f4e42 9216 @[ -f ./fastjar/Makefile ] || exit 0; \
8c90b13a
L
9217 r=`${PWD_COMMAND}`; export r; \
9218 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9219 $(HOST_EXPORTS) \
d32ab992 9220 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9221 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9222 done; \
295f4e42 9223 echo "Doing mostlyclean in fastjar" ; \
215c351a 9224 (cd $(HOST_SUBDIR)/fastjar && \
1358ccea
NN
9225 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9226 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9227 "RANLIB=$${RANLIB}" \
9228 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9229 mostlyclean) \
1358ccea
NN
9230 || exit 1
9231
60975492 9232@endif fastjar
1358ccea 9233
295f4e42
NN
9234.PHONY: maybe-clean-fastjar clean-fastjar
9235maybe-clean-fastjar:
60975492
PB
9236@if fastjar
9237maybe-clean-fastjar: clean-fastjar
1358ccea 9238
05750653 9239clean-fastjar:
f41d6665 9240 @: $(MAKE); $(unstage)
295f4e42 9241 @[ -f ./fastjar/Makefile ] || exit 0; \
8c90b13a
L
9242 r=`${PWD_COMMAND}`; export r; \
9243 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9244 $(HOST_EXPORTS) \
d32ab992 9245 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9246 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9247 done; \
295f4e42 9248 echo "Doing clean in fastjar" ; \
215c351a 9249 (cd $(HOST_SUBDIR)/fastjar && \
1358ccea
NN
9250 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9251 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9252 "RANLIB=$${RANLIB}" \
9253 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9254 clean) \
1358ccea
NN
9255 || exit 1
9256
60975492 9257@endif fastjar
1358ccea 9258
295f4e42
NN
9259.PHONY: maybe-distclean-fastjar distclean-fastjar
9260maybe-distclean-fastjar:
60975492
PB
9261@if fastjar
9262maybe-distclean-fastjar: distclean-fastjar
1358ccea 9263
05750653 9264distclean-fastjar:
f41d6665 9265 @: $(MAKE); $(unstage)
295f4e42 9266 @[ -f ./fastjar/Makefile ] || exit 0; \
8c90b13a
L
9267 r=`${PWD_COMMAND}`; export r; \
9268 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9269 $(HOST_EXPORTS) \
d32ab992 9270 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9271 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9272 done; \
295f4e42 9273 echo "Doing distclean in fastjar" ; \
215c351a 9274 (cd $(HOST_SUBDIR)/fastjar && \
1358ccea
NN
9275 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9276 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9277 "RANLIB=$${RANLIB}" \
9278 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9279 distclean) \
1358ccea
NN
9280 || exit 1
9281
60975492 9282@endif fastjar
1358ccea 9283
295f4e42
NN
9284.PHONY: maybe-maintainer-clean-fastjar maintainer-clean-fastjar
9285maybe-maintainer-clean-fastjar:
60975492
PB
9286@if fastjar
9287maybe-maintainer-clean-fastjar: maintainer-clean-fastjar
1358ccea 9288
05750653 9289maintainer-clean-fastjar:
f41d6665 9290 @: $(MAKE); $(unstage)
295f4e42 9291 @[ -f ./fastjar/Makefile ] || exit 0; \
8c90b13a
L
9292 r=`${PWD_COMMAND}`; export r; \
9293 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9294 $(HOST_EXPORTS) \
d32ab992 9295 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9296 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9297 done; \
295f4e42 9298 echo "Doing maintainer-clean in fastjar" ; \
215c351a 9299 (cd $(HOST_SUBDIR)/fastjar && \
1358ccea
NN
9300 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9301 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9302 "RANLIB=$${RANLIB}" \
9303 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9304 maintainer-clean) \
1358ccea
NN
9305 || exit 1
9306
60975492 9307@endif fastjar
1358ccea 9308
1358ccea 9309
25b42232 9310
295f4e42
NN
9311.PHONY: configure-fileutils maybe-configure-fileutils
9312maybe-configure-fileutils:
3ff3adad
PB
9313@if gcc-bootstrap
9314configure-fileutils: stage_current
9315@endif gcc-bootstrap
60975492
PB
9316@if fileutils
9317maybe-configure-fileutils: configure-fileutils
cc11cc9b 9318configure-fileutils:
f41d6665 9319 @: $(MAKE); $(unstage)
cc11cc9b 9320 @r=`${PWD_COMMAND}`; export r; \
295f4e42 9321 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
9322 test ! -f $(HOST_SUBDIR)/fileutils/Makefile || exit 0; \
9323 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fileutils ; \
4fc4dd12 9324 $(HOST_EXPORTS) \
25b42232
PB
9325 echo Configuring in $(HOST_SUBDIR)/fileutils; \
9326 cd "$(HOST_SUBDIR)/fileutils" || exit 1; \
295f4e42 9327 case $(srcdir) in \
215c351a
PB
9328 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9329 *) topdir=`echo $(HOST_SUBDIR)/fileutils/ | \
9330 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 9331 esac; \
215c351a
PB
9332 srcdiroption="--srcdir=$${topdir}/fileutils"; \
9333 libsrcdir="$$s/fileutils"; \
295f4e42 9334 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 9335 $(HOST_CONFIGARGS) $${srcdiroption} \
295f4e42 9336 || exit 1
60975492 9337@endif fileutils
295f4e42 9338
25b42232
PB
9339
9340
ce406537
PB
9341
9342
295f4e42
NN
9343.PHONY: all-fileutils maybe-all-fileutils
9344maybe-all-fileutils:
3ff3adad
PB
9345@if gcc-bootstrap
9346all-fileutils: stage_current
9347@endif gcc-bootstrap
60975492 9348@if fileutils
7e0b5752 9349TARGET-fileutils=all
60975492 9350maybe-all-fileutils: all-fileutils
295f4e42 9351all-fileutils: configure-fileutils
f41d6665 9352 @: $(MAKE); $(unstage)
295f4e42
NN
9353 @r=`${PWD_COMMAND}`; export r; \
9354 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9355 $(HOST_EXPORTS) \
215c351a
PB
9356 (cd $(HOST_SUBDIR)/fileutils && \
9357 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-fileutils))
60975492 9358@endif fileutils
295f4e42 9359
25b42232 9360
ce406537
PB
9361
9362
295f4e42
NN
9363.PHONY: check-fileutils maybe-check-fileutils
9364maybe-check-fileutils:
60975492
PB
9365@if fileutils
9366maybe-check-fileutils: check-fileutils
295f4e42
NN
9367
9368check-fileutils:
f41d6665 9369 @: $(MAKE); $(unstage)
295f4e42
NN
9370 @r=`${PWD_COMMAND}`; export r; \
9371 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9372 $(HOST_EXPORTS) \
215c351a
PB
9373 (cd $(HOST_SUBDIR)/fileutils && \
9374 $(MAKE) $(FLAGS_TO_PASS) check)
295f4e42 9375
60975492 9376@endif fileutils
295f4e42
NN
9377
9378.PHONY: install-fileutils maybe-install-fileutils
9379maybe-install-fileutils:
60975492
PB
9380@if fileutils
9381maybe-install-fileutils: install-fileutils
295f4e42
NN
9382
9383install-fileutils: installdirs
f41d6665 9384 @: $(MAKE); $(unstage)
295f4e42
NN
9385 @r=`${PWD_COMMAND}`; export r; \
9386 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9387 $(HOST_EXPORTS) \
215c351a 9388 (cd $(HOST_SUBDIR)/fileutils && \
ace9ac7b 9389 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 9390
60975492 9391@endif fileutils
295f4e42
NN
9392
9393# Other targets (info, dvi, etc.)
9394
9395.PHONY: maybe-info-fileutils info-fileutils
9396maybe-info-fileutils:
60975492
PB
9397@if fileutils
9398maybe-info-fileutils: info-fileutils
295f4e42
NN
9399
9400info-fileutils: \
05750653 9401 configure-fileutils
f41d6665 9402 @: $(MAKE); $(unstage)
295f4e42 9403 @[ -f ./fileutils/Makefile ] || exit 0; \
8c90b13a
L
9404 r=`${PWD_COMMAND}`; export r; \
9405 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9406 $(HOST_EXPORTS) \
d32ab992 9407 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9408 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9409 done; \
295f4e42 9410 echo "Doing info in fileutils" ; \
215c351a 9411 (cd $(HOST_SUBDIR)/fileutils && \
1358ccea
NN
9412 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9413 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9414 "RANLIB=$${RANLIB}" \
9415 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9416 info) \
1358ccea
NN
9417 || exit 1
9418
60975492 9419@endif fileutils
1358ccea 9420
295f4e42
NN
9421.PHONY: maybe-dvi-fileutils dvi-fileutils
9422maybe-dvi-fileutils:
60975492
PB
9423@if fileutils
9424maybe-dvi-fileutils: dvi-fileutils
1358ccea 9425
295f4e42 9426dvi-fileutils: \
05750653 9427 configure-fileutils
f41d6665 9428 @: $(MAKE); $(unstage)
295f4e42 9429 @[ -f ./fileutils/Makefile ] || exit 0; \
8c90b13a
L
9430 r=`${PWD_COMMAND}`; export r; \
9431 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9432 $(HOST_EXPORTS) \
d32ab992 9433 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9434 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9435 done; \
295f4e42 9436 echo "Doing dvi in fileutils" ; \
215c351a 9437 (cd $(HOST_SUBDIR)/fileutils && \
1358ccea
NN
9438 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9439 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9440 "RANLIB=$${RANLIB}" \
9441 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9442 dvi) \
1358ccea
NN
9443 || exit 1
9444
60975492 9445@endif fileutils
1358ccea 9446
f87a2b2e
MS
9447.PHONY: maybe-html-fileutils html-fileutils
9448maybe-html-fileutils:
9449@if fileutils
9450maybe-html-fileutils: html-fileutils
9451
9452html-fileutils: \
05750653 9453 configure-fileutils
f41d6665 9454 @: $(MAKE); $(unstage)
f87a2b2e
MS
9455 @[ -f ./fileutils/Makefile ] || exit 0; \
9456 r=`${PWD_COMMAND}`; export r; \
9457 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
9458 $(HOST_EXPORTS) \
9459 for flag in $(EXTRA_HOST_FLAGS) ; do \
9460 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9461 done; \
9462 echo "Doing html in fileutils" ; \
215c351a 9463 (cd $(HOST_SUBDIR)/fileutils && \
f87a2b2e
MS
9464 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9465 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9466 "RANLIB=$${RANLIB}" \
9467 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9468 html) \
9469 || exit 1
9470
9471@endif fileutils
9472
295f4e42
NN
9473.PHONY: maybe-TAGS-fileutils TAGS-fileutils
9474maybe-TAGS-fileutils:
60975492
PB
9475@if fileutils
9476maybe-TAGS-fileutils: TAGS-fileutils
1358ccea 9477
295f4e42 9478TAGS-fileutils: \
05750653 9479 configure-fileutils
f41d6665 9480 @: $(MAKE); $(unstage)
295f4e42 9481 @[ -f ./fileutils/Makefile ] || exit 0; \
8c90b13a
L
9482 r=`${PWD_COMMAND}`; export r; \
9483 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9484 $(HOST_EXPORTS) \
d32ab992 9485 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9486 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9487 done; \
295f4e42 9488 echo "Doing TAGS in fileutils" ; \
215c351a 9489 (cd $(HOST_SUBDIR)/fileutils && \
1358ccea
NN
9490 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9491 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9492 "RANLIB=$${RANLIB}" \
9493 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9494 TAGS) \
1358ccea
NN
9495 || exit 1
9496
60975492 9497@endif fileutils
1358ccea 9498
295f4e42
NN
9499.PHONY: maybe-install-info-fileutils install-info-fileutils
9500maybe-install-info-fileutils:
60975492
PB
9501@if fileutils
9502maybe-install-info-fileutils: install-info-fileutils
1358ccea 9503
295f4e42
NN
9504install-info-fileutils: \
9505 configure-fileutils \
05750653 9506 info-fileutils
f41d6665 9507 @: $(MAKE); $(unstage)
295f4e42 9508 @[ -f ./fileutils/Makefile ] || exit 0; \
8c90b13a
L
9509 r=`${PWD_COMMAND}`; export r; \
9510 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9511 $(HOST_EXPORTS) \
d32ab992 9512 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9513 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9514 done; \
295f4e42 9515 echo "Doing install-info in fileutils" ; \
215c351a 9516 (cd $(HOST_SUBDIR)/fileutils && \
1358ccea
NN
9517 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9518 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9519 "RANLIB=$${RANLIB}" \
9520 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9521 install-info) \
1358ccea
NN
9522 || exit 1
9523
60975492 9524@endif fileutils
1358ccea 9525
65d6e994
CD
9526.PHONY: maybe-install-html-fileutils install-html-fileutils
9527maybe-install-html-fileutils:
9528@if fileutils
9529maybe-install-html-fileutils: install-html-fileutils
9530
9531install-html-fileutils: \
9532 configure-fileutils \
9533 html-fileutils
9534 @: $(MAKE); $(unstage)
9535 @[ -f ./fileutils/Makefile ] || exit 0; \
9536 r=`${PWD_COMMAND}`; export r; \
9537 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9538 $(HOST_EXPORTS) \
9539 for flag in $(EXTRA_HOST_FLAGS) ; do \
9540 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9541 done; \
9542 echo "Doing install-html in fileutils" ; \
9543 (cd $(HOST_SUBDIR)/fileutils && \
9544 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9545 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9546 "RANLIB=$${RANLIB}" \
9547 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9548 install-html) \
9549 || exit 1
9550
9551@endif fileutils
9552
295f4e42
NN
9553.PHONY: maybe-installcheck-fileutils installcheck-fileutils
9554maybe-installcheck-fileutils:
60975492
PB
9555@if fileutils
9556maybe-installcheck-fileutils: installcheck-fileutils
1358ccea 9557
295f4e42 9558installcheck-fileutils: \
05750653 9559 configure-fileutils
f41d6665 9560 @: $(MAKE); $(unstage)
295f4e42 9561 @[ -f ./fileutils/Makefile ] || exit 0; \
8c90b13a
L
9562 r=`${PWD_COMMAND}`; export r; \
9563 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9564 $(HOST_EXPORTS) \
d32ab992 9565 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9566 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9567 done; \
295f4e42 9568 echo "Doing installcheck in fileutils" ; \
215c351a 9569 (cd $(HOST_SUBDIR)/fileutils && \
1358ccea
NN
9570 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9571 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9572 "RANLIB=$${RANLIB}" \
9573 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9574 installcheck) \
1358ccea
NN
9575 || exit 1
9576
60975492 9577@endif fileutils
1358ccea 9578
295f4e42
NN
9579.PHONY: maybe-mostlyclean-fileutils mostlyclean-fileutils
9580maybe-mostlyclean-fileutils:
60975492
PB
9581@if fileutils
9582maybe-mostlyclean-fileutils: mostlyclean-fileutils
1358ccea 9583
05750653 9584mostlyclean-fileutils:
f41d6665 9585 @: $(MAKE); $(unstage)
295f4e42 9586 @[ -f ./fileutils/Makefile ] || exit 0; \
8c90b13a
L
9587 r=`${PWD_COMMAND}`; export r; \
9588 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9589 $(HOST_EXPORTS) \
d32ab992 9590 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9591 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9592 done; \
295f4e42 9593 echo "Doing mostlyclean in fileutils" ; \
215c351a 9594 (cd $(HOST_SUBDIR)/fileutils && \
1358ccea
NN
9595 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9596 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9597 "RANLIB=$${RANLIB}" \
9598 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9599 mostlyclean) \
1358ccea
NN
9600 || exit 1
9601
60975492 9602@endif fileutils
1358ccea 9603
295f4e42
NN
9604.PHONY: maybe-clean-fileutils clean-fileutils
9605maybe-clean-fileutils:
60975492
PB
9606@if fileutils
9607maybe-clean-fileutils: clean-fileutils
1358ccea 9608
05750653 9609clean-fileutils:
f41d6665 9610 @: $(MAKE); $(unstage)
295f4e42 9611 @[ -f ./fileutils/Makefile ] || exit 0; \
8c90b13a
L
9612 r=`${PWD_COMMAND}`; export r; \
9613 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9614 $(HOST_EXPORTS) \
d32ab992 9615 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9616 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9617 done; \
295f4e42 9618 echo "Doing clean in fileutils" ; \
215c351a 9619 (cd $(HOST_SUBDIR)/fileutils && \
1358ccea
NN
9620 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9621 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9622 "RANLIB=$${RANLIB}" \
9623 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9624 clean) \
1358ccea
NN
9625 || exit 1
9626
60975492 9627@endif fileutils
1358ccea 9628
295f4e42
NN
9629.PHONY: maybe-distclean-fileutils distclean-fileutils
9630maybe-distclean-fileutils:
60975492
PB
9631@if fileutils
9632maybe-distclean-fileutils: distclean-fileutils
1358ccea 9633
05750653 9634distclean-fileutils:
f41d6665 9635 @: $(MAKE); $(unstage)
295f4e42 9636 @[ -f ./fileutils/Makefile ] || exit 0; \
8c90b13a
L
9637 r=`${PWD_COMMAND}`; export r; \
9638 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9639 $(HOST_EXPORTS) \
d32ab992 9640 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9641 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9642 done; \
295f4e42 9643 echo "Doing distclean in fileutils" ; \
215c351a 9644 (cd $(HOST_SUBDIR)/fileutils && \
1358ccea
NN
9645 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9646 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9647 "RANLIB=$${RANLIB}" \
9648 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9649 distclean) \
1358ccea
NN
9650 || exit 1
9651
60975492 9652@endif fileutils
1358ccea 9653
295f4e42
NN
9654.PHONY: maybe-maintainer-clean-fileutils maintainer-clean-fileutils
9655maybe-maintainer-clean-fileutils:
60975492
PB
9656@if fileutils
9657maybe-maintainer-clean-fileutils: maintainer-clean-fileutils
1358ccea 9658
05750653 9659maintainer-clean-fileutils:
f41d6665 9660 @: $(MAKE); $(unstage)
1358ccea 9661 @[ -f ./fileutils/Makefile ] || exit 0; \
8c90b13a
L
9662 r=`${PWD_COMMAND}`; export r; \
9663 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9664 $(HOST_EXPORTS) \
d32ab992 9665 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9666 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9667 done; \
295f4e42 9668 echo "Doing maintainer-clean in fileutils" ; \
215c351a 9669 (cd $(HOST_SUBDIR)/fileutils && \
1358ccea
NN
9670 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9671 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9672 "RANLIB=$${RANLIB}" \
9673 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9674 maintainer-clean) \
295f4e42
NN
9675 || exit 1
9676
60975492 9677@endif fileutils
295f4e42
NN
9678
9679
25b42232 9680
295f4e42
NN
9681.PHONY: configure-findutils maybe-configure-findutils
9682maybe-configure-findutils:
3ff3adad
PB
9683@if gcc-bootstrap
9684configure-findutils: stage_current
9685@endif gcc-bootstrap
60975492
PB
9686@if findutils
9687maybe-configure-findutils: configure-findutils
cc11cc9b 9688configure-findutils:
f41d6665 9689 @: $(MAKE); $(unstage)
cc11cc9b 9690 @r=`${PWD_COMMAND}`; export r; \
295f4e42 9691 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
9692 test ! -f $(HOST_SUBDIR)/findutils/Makefile || exit 0; \
9693 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/findutils ; \
4fc4dd12 9694 $(HOST_EXPORTS) \
25b42232
PB
9695 echo Configuring in $(HOST_SUBDIR)/findutils; \
9696 cd "$(HOST_SUBDIR)/findutils" || exit 1; \
295f4e42 9697 case $(srcdir) in \
215c351a
PB
9698 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9699 *) topdir=`echo $(HOST_SUBDIR)/findutils/ | \
9700 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 9701 esac; \
215c351a
PB
9702 srcdiroption="--srcdir=$${topdir}/findutils"; \
9703 libsrcdir="$$s/findutils"; \
295f4e42 9704 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 9705 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 9706 || exit 1
60975492 9707@endif findutils
1358ccea 9708
25b42232
PB
9709
9710
ce406537
PB
9711
9712
295f4e42
NN
9713.PHONY: all-findutils maybe-all-findutils
9714maybe-all-findutils:
3ff3adad
PB
9715@if gcc-bootstrap
9716all-findutils: stage_current
9717@endif gcc-bootstrap
60975492 9718@if findutils
7e0b5752 9719TARGET-findutils=all
60975492 9720maybe-all-findutils: all-findutils
295f4e42 9721all-findutils: configure-findutils
f41d6665 9722 @: $(MAKE); $(unstage)
295f4e42 9723 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 9724 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9725 $(HOST_EXPORTS) \
215c351a
PB
9726 (cd $(HOST_SUBDIR)/findutils && \
9727 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-findutils))
60975492 9728@endif findutils
1358ccea 9729
25b42232 9730
ce406537
PB
9731
9732
295f4e42
NN
9733.PHONY: check-findutils maybe-check-findutils
9734maybe-check-findutils:
60975492
PB
9735@if findutils
9736maybe-check-findutils: check-findutils
1358ccea 9737
295f4e42 9738check-findutils:
f41d6665 9739 @: $(MAKE); $(unstage)
295f4e42 9740 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 9741 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9742 $(HOST_EXPORTS) \
215c351a
PB
9743 (cd $(HOST_SUBDIR)/findutils && \
9744 $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 9745
60975492 9746@endif findutils
1358ccea 9747
295f4e42
NN
9748.PHONY: install-findutils maybe-install-findutils
9749maybe-install-findutils:
60975492
PB
9750@if findutils
9751maybe-install-findutils: install-findutils
1358ccea 9752
295f4e42 9753install-findutils: installdirs
f41d6665 9754 @: $(MAKE); $(unstage)
295f4e42 9755 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 9756 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9757 $(HOST_EXPORTS) \
215c351a 9758 (cd $(HOST_SUBDIR)/findutils && \
ace9ac7b 9759 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 9760
60975492 9761@endif findutils
1358ccea 9762
295f4e42 9763# Other targets (info, dvi, etc.)
1358ccea 9764
295f4e42
NN
9765.PHONY: maybe-info-findutils info-findutils
9766maybe-info-findutils:
60975492
PB
9767@if findutils
9768maybe-info-findutils: info-findutils
295f4e42
NN
9769
9770info-findutils: \
05750653 9771 configure-findutils
f41d6665 9772 @: $(MAKE); $(unstage)
295f4e42 9773 @[ -f ./findutils/Makefile ] || exit 0; \
8c90b13a
L
9774 r=`${PWD_COMMAND}`; export r; \
9775 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9776 $(HOST_EXPORTS) \
d32ab992 9777 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9778 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9779 done; \
295f4e42 9780 echo "Doing info in findutils" ; \
215c351a 9781 (cd $(HOST_SUBDIR)/findutils && \
1358ccea
NN
9782 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9783 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9784 "RANLIB=$${RANLIB}" \
9785 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9786 info) \
1358ccea
NN
9787 || exit 1
9788
60975492 9789@endif findutils
1358ccea 9790
295f4e42
NN
9791.PHONY: maybe-dvi-findutils dvi-findutils
9792maybe-dvi-findutils:
60975492
PB
9793@if findutils
9794maybe-dvi-findutils: dvi-findutils
1358ccea 9795
295f4e42 9796dvi-findutils: \
05750653 9797 configure-findutils
f41d6665 9798 @: $(MAKE); $(unstage)
295f4e42 9799 @[ -f ./findutils/Makefile ] || exit 0; \
8c90b13a
L
9800 r=`${PWD_COMMAND}`; export r; \
9801 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9802 $(HOST_EXPORTS) \
d32ab992 9803 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9804 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9805 done; \
295f4e42 9806 echo "Doing dvi in findutils" ; \
215c351a 9807 (cd $(HOST_SUBDIR)/findutils && \
1358ccea
NN
9808 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9809 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9810 "RANLIB=$${RANLIB}" \
9811 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9812 dvi) \
1358ccea
NN
9813 || exit 1
9814
60975492 9815@endif findutils
1358ccea 9816
f87a2b2e
MS
9817.PHONY: maybe-html-findutils html-findutils
9818maybe-html-findutils:
9819@if findutils
9820maybe-html-findutils: html-findutils
9821
9822html-findutils: \
05750653 9823 configure-findutils
f41d6665 9824 @: $(MAKE); $(unstage)
f87a2b2e
MS
9825 @[ -f ./findutils/Makefile ] || exit 0; \
9826 r=`${PWD_COMMAND}`; export r; \
9827 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
9828 $(HOST_EXPORTS) \
9829 for flag in $(EXTRA_HOST_FLAGS) ; do \
9830 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9831 done; \
9832 echo "Doing html in findutils" ; \
215c351a 9833 (cd $(HOST_SUBDIR)/findutils && \
f87a2b2e
MS
9834 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9835 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9836 "RANLIB=$${RANLIB}" \
9837 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9838 html) \
9839 || exit 1
9840
9841@endif findutils
9842
295f4e42
NN
9843.PHONY: maybe-TAGS-findutils TAGS-findutils
9844maybe-TAGS-findutils:
60975492
PB
9845@if findutils
9846maybe-TAGS-findutils: TAGS-findutils
1358ccea 9847
295f4e42 9848TAGS-findutils: \
05750653 9849 configure-findutils
f41d6665 9850 @: $(MAKE); $(unstage)
295f4e42 9851 @[ -f ./findutils/Makefile ] || exit 0; \
8c90b13a
L
9852 r=`${PWD_COMMAND}`; export r; \
9853 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9854 $(HOST_EXPORTS) \
d32ab992 9855 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9856 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9857 done; \
295f4e42 9858 echo "Doing TAGS in findutils" ; \
215c351a 9859 (cd $(HOST_SUBDIR)/findutils && \
1358ccea
NN
9860 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9861 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9862 "RANLIB=$${RANLIB}" \
9863 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9864 TAGS) \
1358ccea
NN
9865 || exit 1
9866
60975492 9867@endif findutils
1358ccea 9868
295f4e42
NN
9869.PHONY: maybe-install-info-findutils install-info-findutils
9870maybe-install-info-findutils:
60975492
PB
9871@if findutils
9872maybe-install-info-findutils: install-info-findutils
1358ccea 9873
295f4e42
NN
9874install-info-findutils: \
9875 configure-findutils \
05750653 9876 info-findutils
f41d6665 9877 @: $(MAKE); $(unstage)
295f4e42 9878 @[ -f ./findutils/Makefile ] || exit 0; \
8c90b13a
L
9879 r=`${PWD_COMMAND}`; export r; \
9880 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9881 $(HOST_EXPORTS) \
d32ab992 9882 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9883 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9884 done; \
295f4e42 9885 echo "Doing install-info in findutils" ; \
215c351a 9886 (cd $(HOST_SUBDIR)/findutils && \
1358ccea
NN
9887 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9888 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9889 "RANLIB=$${RANLIB}" \
9890 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9891 install-info) \
1358ccea
NN
9892 || exit 1
9893
60975492 9894@endif findutils
1358ccea 9895
65d6e994
CD
9896.PHONY: maybe-install-html-findutils install-html-findutils
9897maybe-install-html-findutils:
9898@if findutils
9899maybe-install-html-findutils: install-html-findutils
9900
9901install-html-findutils: \
9902 configure-findutils \
9903 html-findutils
9904 @: $(MAKE); $(unstage)
9905 @[ -f ./findutils/Makefile ] || exit 0; \
9906 r=`${PWD_COMMAND}`; export r; \
9907 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9908 $(HOST_EXPORTS) \
9909 for flag in $(EXTRA_HOST_FLAGS) ; do \
9910 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9911 done; \
9912 echo "Doing install-html in findutils" ; \
9913 (cd $(HOST_SUBDIR)/findutils && \
9914 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9915 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9916 "RANLIB=$${RANLIB}" \
9917 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9918 install-html) \
9919 || exit 1
9920
9921@endif findutils
9922
295f4e42
NN
9923.PHONY: maybe-installcheck-findutils installcheck-findutils
9924maybe-installcheck-findutils:
60975492
PB
9925@if findutils
9926maybe-installcheck-findutils: installcheck-findutils
1358ccea 9927
295f4e42 9928installcheck-findutils: \
05750653 9929 configure-findutils
f41d6665 9930 @: $(MAKE); $(unstage)
295f4e42 9931 @[ -f ./findutils/Makefile ] || exit 0; \
8c90b13a
L
9932 r=`${PWD_COMMAND}`; export r; \
9933 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9934 $(HOST_EXPORTS) \
d32ab992 9935 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9936 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9937 done; \
295f4e42 9938 echo "Doing installcheck in findutils" ; \
215c351a 9939 (cd $(HOST_SUBDIR)/findutils && \
1358ccea
NN
9940 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9941 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9942 "RANLIB=$${RANLIB}" \
9943 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9944 installcheck) \
1358ccea
NN
9945 || exit 1
9946
60975492 9947@endif findutils
1358ccea 9948
295f4e42
NN
9949.PHONY: maybe-mostlyclean-findutils mostlyclean-findutils
9950maybe-mostlyclean-findutils:
60975492
PB
9951@if findutils
9952maybe-mostlyclean-findutils: mostlyclean-findutils
1358ccea 9953
05750653 9954mostlyclean-findutils:
f41d6665 9955 @: $(MAKE); $(unstage)
295f4e42 9956 @[ -f ./findutils/Makefile ] || exit 0; \
8c90b13a
L
9957 r=`${PWD_COMMAND}`; export r; \
9958 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9959 $(HOST_EXPORTS) \
d32ab992 9960 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9961 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9962 done; \
295f4e42 9963 echo "Doing mostlyclean in findutils" ; \
215c351a 9964 (cd $(HOST_SUBDIR)/findutils && \
1358ccea
NN
9965 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9966 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9967 "RANLIB=$${RANLIB}" \
9968 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9969 mostlyclean) \
1358ccea
NN
9970 || exit 1
9971
60975492 9972@endif findutils
1358ccea 9973
295f4e42
NN
9974.PHONY: maybe-clean-findutils clean-findutils
9975maybe-clean-findutils:
60975492
PB
9976@if findutils
9977maybe-clean-findutils: clean-findutils
1358ccea 9978
05750653 9979clean-findutils:
f41d6665 9980 @: $(MAKE); $(unstage)
295f4e42 9981 @[ -f ./findutils/Makefile ] || exit 0; \
8c90b13a
L
9982 r=`${PWD_COMMAND}`; export r; \
9983 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9984 $(HOST_EXPORTS) \
d32ab992 9985 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9986 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9987 done; \
295f4e42 9988 echo "Doing clean in findutils" ; \
215c351a 9989 (cd $(HOST_SUBDIR)/findutils && \
1358ccea
NN
9990 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9991 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9992 "RANLIB=$${RANLIB}" \
9993 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9994 clean) \
1358ccea
NN
9995 || exit 1
9996
60975492 9997@endif findutils
1358ccea 9998
295f4e42
NN
9999.PHONY: maybe-distclean-findutils distclean-findutils
10000maybe-distclean-findutils:
60975492
PB
10001@if findutils
10002maybe-distclean-findutils: distclean-findutils
1358ccea 10003
05750653 10004distclean-findutils:
f41d6665 10005 @: $(MAKE); $(unstage)
295f4e42 10006 @[ -f ./findutils/Makefile ] || exit 0; \
8c90b13a
L
10007 r=`${PWD_COMMAND}`; export r; \
10008 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10009 $(HOST_EXPORTS) \
d32ab992 10010 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10011 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10012 done; \
295f4e42 10013 echo "Doing distclean in findutils" ; \
215c351a 10014 (cd $(HOST_SUBDIR)/findutils && \
1358ccea
NN
10015 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10016 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10017 "RANLIB=$${RANLIB}" \
10018 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10019 distclean) \
1358ccea
NN
10020 || exit 1
10021
60975492 10022@endif findutils
1358ccea 10023
295f4e42
NN
10024.PHONY: maybe-maintainer-clean-findutils maintainer-clean-findutils
10025maybe-maintainer-clean-findutils:
60975492
PB
10026@if findutils
10027maybe-maintainer-clean-findutils: maintainer-clean-findutils
1358ccea 10028
05750653 10029maintainer-clean-findutils:
f41d6665 10030 @: $(MAKE); $(unstage)
295f4e42 10031 @[ -f ./findutils/Makefile ] || exit 0; \
8c90b13a
L
10032 r=`${PWD_COMMAND}`; export r; \
10033 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10034 $(HOST_EXPORTS) \
d32ab992 10035 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10036 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10037 done; \
295f4e42 10038 echo "Doing maintainer-clean in findutils" ; \
215c351a 10039 (cd $(HOST_SUBDIR)/findutils && \
1358ccea
NN
10040 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10041 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10042 "RANLIB=$${RANLIB}" \
10043 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10044 maintainer-clean) \
1358ccea
NN
10045 || exit 1
10046
60975492 10047@endif findutils
1358ccea 10048
1358ccea 10049
25b42232 10050
295f4e42
NN
10051.PHONY: configure-find maybe-configure-find
10052maybe-configure-find:
3ff3adad
PB
10053@if gcc-bootstrap
10054configure-find: stage_current
10055@endif gcc-bootstrap
60975492
PB
10056@if find
10057maybe-configure-find: configure-find
cc11cc9b 10058configure-find:
f41d6665 10059 @: $(MAKE); $(unstage)
cc11cc9b 10060 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 10061 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
10062 test ! -f $(HOST_SUBDIR)/find/Makefile || exit 0; \
10063 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/find ; \
4fc4dd12 10064 $(HOST_EXPORTS) \
25b42232
PB
10065 echo Configuring in $(HOST_SUBDIR)/find; \
10066 cd "$(HOST_SUBDIR)/find" || exit 1; \
295f4e42 10067 case $(srcdir) in \
215c351a
PB
10068 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10069 *) topdir=`echo $(HOST_SUBDIR)/find/ | \
10070 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 10071 esac; \
215c351a
PB
10072 srcdiroption="--srcdir=$${topdir}/find"; \
10073 libsrcdir="$$s/find"; \
295f4e42 10074 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 10075 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 10076 || exit 1
60975492 10077@endif find
1358ccea 10078
25b42232
PB
10079
10080
ce406537
PB
10081
10082
295f4e42
NN
10083.PHONY: all-find maybe-all-find
10084maybe-all-find:
3ff3adad
PB
10085@if gcc-bootstrap
10086all-find: stage_current
10087@endif gcc-bootstrap
60975492 10088@if find
7e0b5752 10089TARGET-find=all
60975492 10090maybe-all-find: all-find
295f4e42 10091all-find: configure-find
f41d6665 10092 @: $(MAKE); $(unstage)
295f4e42
NN
10093 @r=`${PWD_COMMAND}`; export r; \
10094 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10095 $(HOST_EXPORTS) \
215c351a
PB
10096 (cd $(HOST_SUBDIR)/find && \
10097 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-find))
60975492 10098@endif find
1358ccea 10099
25b42232 10100
ce406537
PB
10101
10102
295f4e42
NN
10103.PHONY: check-find maybe-check-find
10104maybe-check-find:
60975492
PB
10105@if find
10106maybe-check-find: check-find
1358ccea 10107
295f4e42 10108check-find:
f41d6665 10109 @: $(MAKE); $(unstage)
295f4e42 10110 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 10111 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10112 $(HOST_EXPORTS) \
215c351a
PB
10113 (cd $(HOST_SUBDIR)/find && \
10114 $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 10115
60975492 10116@endif find
1358ccea 10117
295f4e42
NN
10118.PHONY: install-find maybe-install-find
10119maybe-install-find:
60975492
PB
10120@if find
10121maybe-install-find: install-find
1358ccea 10122
295f4e42 10123install-find: installdirs
f41d6665 10124 @: $(MAKE); $(unstage)
295f4e42 10125 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 10126 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10127 $(HOST_EXPORTS) \
215c351a 10128 (cd $(HOST_SUBDIR)/find && \
ace9ac7b 10129 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 10130
60975492 10131@endif find
1358ccea 10132
295f4e42 10133# Other targets (info, dvi, etc.)
1358ccea 10134
295f4e42
NN
10135.PHONY: maybe-info-find info-find
10136maybe-info-find:
60975492
PB
10137@if find
10138maybe-info-find: info-find
295f4e42
NN
10139
10140info-find: \
05750653 10141 configure-find
f41d6665 10142 @: $(MAKE); $(unstage)
295f4e42 10143 @[ -f ./find/Makefile ] || exit 0; \
8c90b13a
L
10144 r=`${PWD_COMMAND}`; export r; \
10145 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10146 $(HOST_EXPORTS) \
d32ab992 10147 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10148 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10149 done; \
295f4e42 10150 echo "Doing info in find" ; \
215c351a 10151 (cd $(HOST_SUBDIR)/find && \
1358ccea
NN
10152 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10153 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10154 "RANLIB=$${RANLIB}" \
10155 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10156 info) \
1358ccea
NN
10157 || exit 1
10158
60975492 10159@endif find
1358ccea 10160
295f4e42
NN
10161.PHONY: maybe-dvi-find dvi-find
10162maybe-dvi-find:
60975492
PB
10163@if find
10164maybe-dvi-find: dvi-find
1358ccea 10165
295f4e42 10166dvi-find: \
05750653 10167 configure-find
f41d6665 10168 @: $(MAKE); $(unstage)
295f4e42 10169 @[ -f ./find/Makefile ] || exit 0; \
8c90b13a
L
10170 r=`${PWD_COMMAND}`; export r; \
10171 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10172 $(HOST_EXPORTS) \
d32ab992 10173 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10174 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10175 done; \
295f4e42 10176 echo "Doing dvi in find" ; \
215c351a 10177 (cd $(HOST_SUBDIR)/find && \
1358ccea
NN
10178 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10179 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10180 "RANLIB=$${RANLIB}" \
10181 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10182 dvi) \
1358ccea
NN
10183 || exit 1
10184
60975492 10185@endif find
1358ccea 10186
f87a2b2e
MS
10187.PHONY: maybe-html-find html-find
10188maybe-html-find:
10189@if find
10190maybe-html-find: html-find
10191
10192html-find: \
05750653 10193 configure-find
f41d6665 10194 @: $(MAKE); $(unstage)
f87a2b2e
MS
10195 @[ -f ./find/Makefile ] || exit 0; \
10196 r=`${PWD_COMMAND}`; export r; \
10197 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
10198 $(HOST_EXPORTS) \
10199 for flag in $(EXTRA_HOST_FLAGS) ; do \
10200 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10201 done; \
10202 echo "Doing html in find" ; \
215c351a 10203 (cd $(HOST_SUBDIR)/find && \
f87a2b2e
MS
10204 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10205 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10206 "RANLIB=$${RANLIB}" \
10207 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10208 html) \
10209 || exit 1
10210
10211@endif find
10212
295f4e42
NN
10213.PHONY: maybe-TAGS-find TAGS-find
10214maybe-TAGS-find:
60975492
PB
10215@if find
10216maybe-TAGS-find: TAGS-find
1358ccea 10217
295f4e42 10218TAGS-find: \
05750653 10219 configure-find
f41d6665 10220 @: $(MAKE); $(unstage)
295f4e42 10221 @[ -f ./find/Makefile ] || exit 0; \
8c90b13a
L
10222 r=`${PWD_COMMAND}`; export r; \
10223 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10224 $(HOST_EXPORTS) \
d32ab992 10225 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10226 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10227 done; \
295f4e42 10228 echo "Doing TAGS in find" ; \
215c351a 10229 (cd $(HOST_SUBDIR)/find && \
1358ccea
NN
10230 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10231 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10232 "RANLIB=$${RANLIB}" \
10233 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10234 TAGS) \
1358ccea
NN
10235 || exit 1
10236
60975492 10237@endif find
1358ccea 10238
295f4e42
NN
10239.PHONY: maybe-install-info-find install-info-find
10240maybe-install-info-find:
60975492
PB
10241@if find
10242maybe-install-info-find: install-info-find
1358ccea 10243
295f4e42
NN
10244install-info-find: \
10245 configure-find \
05750653 10246 info-find
f41d6665 10247 @: $(MAKE); $(unstage)
295f4e42 10248 @[ -f ./find/Makefile ] || exit 0; \
8c90b13a
L
10249 r=`${PWD_COMMAND}`; export r; \
10250 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10251 $(HOST_EXPORTS) \
d32ab992 10252 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10253 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10254 done; \
295f4e42 10255 echo "Doing install-info in find" ; \
215c351a 10256 (cd $(HOST_SUBDIR)/find && \
1358ccea
NN
10257 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10258 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10259 "RANLIB=$${RANLIB}" \
10260 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10261 install-info) \
1358ccea
NN
10262 || exit 1
10263
60975492 10264@endif find
1358ccea 10265
65d6e994
CD
10266.PHONY: maybe-install-html-find install-html-find
10267maybe-install-html-find:
10268@if find
10269maybe-install-html-find: install-html-find
10270
10271install-html-find: \
10272 configure-find \
10273 html-find
10274 @: $(MAKE); $(unstage)
10275 @[ -f ./find/Makefile ] || exit 0; \
10276 r=`${PWD_COMMAND}`; export r; \
10277 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10278 $(HOST_EXPORTS) \
10279 for flag in $(EXTRA_HOST_FLAGS) ; do \
10280 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10281 done; \
10282 echo "Doing install-html in find" ; \
10283 (cd $(HOST_SUBDIR)/find && \
10284 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10285 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10286 "RANLIB=$${RANLIB}" \
10287 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10288 install-html) \
10289 || exit 1
10290
10291@endif find
10292
295f4e42
NN
10293.PHONY: maybe-installcheck-find installcheck-find
10294maybe-installcheck-find:
60975492
PB
10295@if find
10296maybe-installcheck-find: installcheck-find
1358ccea 10297
295f4e42 10298installcheck-find: \
05750653 10299 configure-find
f41d6665 10300 @: $(MAKE); $(unstage)
295f4e42 10301 @[ -f ./find/Makefile ] || exit 0; \
8c90b13a
L
10302 r=`${PWD_COMMAND}`; export r; \
10303 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10304 $(HOST_EXPORTS) \
d32ab992 10305 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10306 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10307 done; \
295f4e42 10308 echo "Doing installcheck in find" ; \
215c351a 10309 (cd $(HOST_SUBDIR)/find && \
1358ccea
NN
10310 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10311 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10312 "RANLIB=$${RANLIB}" \
10313 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10314 installcheck) \
1358ccea
NN
10315 || exit 1
10316
60975492 10317@endif find
1358ccea 10318
295f4e42
NN
10319.PHONY: maybe-mostlyclean-find mostlyclean-find
10320maybe-mostlyclean-find:
60975492
PB
10321@if find
10322maybe-mostlyclean-find: mostlyclean-find
1358ccea 10323
05750653 10324mostlyclean-find:
f41d6665 10325 @: $(MAKE); $(unstage)
295f4e42 10326 @[ -f ./find/Makefile ] || exit 0; \
8c90b13a
L
10327 r=`${PWD_COMMAND}`; export r; \
10328 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10329 $(HOST_EXPORTS) \
d32ab992 10330 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10331 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10332 done; \
295f4e42 10333 echo "Doing mostlyclean in find" ; \
215c351a 10334 (cd $(HOST_SUBDIR)/find && \
1358ccea
NN
10335 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10336 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10337 "RANLIB=$${RANLIB}" \
10338 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10339 mostlyclean) \
1358ccea
NN
10340 || exit 1
10341
60975492 10342@endif find
1358ccea 10343
295f4e42
NN
10344.PHONY: maybe-clean-find clean-find
10345maybe-clean-find:
60975492
PB
10346@if find
10347maybe-clean-find: clean-find
1358ccea 10348
05750653 10349clean-find:
f41d6665 10350 @: $(MAKE); $(unstage)
295f4e42 10351 @[ -f ./find/Makefile ] || exit 0; \
8c90b13a
L
10352 r=`${PWD_COMMAND}`; export r; \
10353 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10354 $(HOST_EXPORTS) \
d32ab992 10355 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10356 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10357 done; \
295f4e42 10358 echo "Doing clean in find" ; \
215c351a 10359 (cd $(HOST_SUBDIR)/find && \
1358ccea
NN
10360 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10361 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10362 "RANLIB=$${RANLIB}" \
10363 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10364 clean) \
1358ccea
NN
10365 || exit 1
10366
60975492 10367@endif find
1358ccea 10368
295f4e42
NN
10369.PHONY: maybe-distclean-find distclean-find
10370maybe-distclean-find:
60975492
PB
10371@if find
10372maybe-distclean-find: distclean-find
1358ccea 10373
05750653 10374distclean-find:
f41d6665 10375 @: $(MAKE); $(unstage)
295f4e42 10376 @[ -f ./find/Makefile ] || exit 0; \
8c90b13a
L
10377 r=`${PWD_COMMAND}`; export r; \
10378 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10379 $(HOST_EXPORTS) \
d32ab992 10380 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10381 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10382 done; \
295f4e42 10383 echo "Doing distclean in find" ; \
215c351a 10384 (cd $(HOST_SUBDIR)/find && \
1358ccea
NN
10385 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10386 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10387 "RANLIB=$${RANLIB}" \
10388 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10389 distclean) \
1358ccea
NN
10390 || exit 1
10391
60975492 10392@endif find
1358ccea 10393
295f4e42
NN
10394.PHONY: maybe-maintainer-clean-find maintainer-clean-find
10395maybe-maintainer-clean-find:
60975492
PB
10396@if find
10397maybe-maintainer-clean-find: maintainer-clean-find
1358ccea 10398
05750653 10399maintainer-clean-find:
f41d6665 10400 @: $(MAKE); $(unstage)
295f4e42 10401 @[ -f ./find/Makefile ] || exit 0; \
8c90b13a
L
10402 r=`${PWD_COMMAND}`; export r; \
10403 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10404 $(HOST_EXPORTS) \
d32ab992 10405 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10406 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10407 done; \
295f4e42 10408 echo "Doing maintainer-clean in find" ; \
215c351a 10409 (cd $(HOST_SUBDIR)/find && \
1358ccea
NN
10410 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10411 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10412 "RANLIB=$${RANLIB}" \
10413 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10414 maintainer-clean) \
1358ccea
NN
10415 || exit 1
10416
60975492 10417@endif find
1358ccea 10418
1358ccea 10419
25b42232 10420
53c7ffe7
GK
10421.PHONY: configure-fixincludes maybe-configure-fixincludes
10422maybe-configure-fixincludes:
3ff3adad
PB
10423@if gcc-bootstrap
10424configure-fixincludes: stage_current
10425@endif gcc-bootstrap
53c7ffe7
GK
10426@if fixincludes
10427maybe-configure-fixincludes: configure-fixincludes
cc11cc9b 10428configure-fixincludes:
f41d6665 10429 @: $(MAKE); $(unstage)
cc11cc9b 10430 @r=`${PWD_COMMAND}`; export r; \
53c7ffe7 10431 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
10432 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
10433 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes ; \
53c7ffe7 10434 $(HOST_EXPORTS) \
25b42232
PB
10435 echo Configuring in $(HOST_SUBDIR)/fixincludes; \
10436 cd "$(HOST_SUBDIR)/fixincludes" || exit 1; \
53c7ffe7 10437 case $(srcdir) in \
215c351a
PB
10438 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10439 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
10440 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
53c7ffe7 10441 esac; \
215c351a
PB
10442 srcdiroption="--srcdir=$${topdir}/fixincludes"; \
10443 libsrcdir="$$s/fixincludes"; \
53c7ffe7
GK
10444 $(SHELL) $${libsrcdir}/configure \
10445 $(HOST_CONFIGARGS) $${srcdiroption} \
10446 || exit 1
10447@endif fixincludes
10448
25b42232
PB
10449
10450
ce406537
PB
10451
10452
53c7ffe7
GK
10453.PHONY: all-fixincludes maybe-all-fixincludes
10454maybe-all-fixincludes:
3ff3adad
PB
10455@if gcc-bootstrap
10456all-fixincludes: stage_current
10457@endif gcc-bootstrap
53c7ffe7
GK
10458@if fixincludes
10459TARGET-fixincludes=all
10460maybe-all-fixincludes: all-fixincludes
10461all-fixincludes: configure-fixincludes
f41d6665 10462 @: $(MAKE); $(unstage)
53c7ffe7
GK
10463 @r=`${PWD_COMMAND}`; export r; \
10464 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53c7ffe7 10465 $(HOST_EXPORTS) \
215c351a
PB
10466 (cd $(HOST_SUBDIR)/fixincludes && \
10467 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-fixincludes))
53c7ffe7
GK
10468@endif fixincludes
10469
25b42232 10470
ce406537
PB
10471
10472
53c7ffe7
GK
10473.PHONY: check-fixincludes maybe-check-fixincludes
10474maybe-check-fixincludes:
10475@if fixincludes
10476maybe-check-fixincludes: check-fixincludes
10477
10478check-fixincludes:
f41d6665 10479 @: $(MAKE); $(unstage)
53c7ffe7
GK
10480 @r=`${PWD_COMMAND}`; export r; \
10481 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53c7ffe7 10482 $(HOST_EXPORTS) \
215c351a
PB
10483 (cd $(HOST_SUBDIR)/fixincludes && \
10484 $(MAKE) $(FLAGS_TO_PASS) check)
53c7ffe7
GK
10485
10486@endif fixincludes
10487
10488.PHONY: install-fixincludes maybe-install-fixincludes
10489maybe-install-fixincludes:
10490@if fixincludes
10491maybe-install-fixincludes: install-fixincludes
10492
10493install-fixincludes: installdirs
f41d6665 10494 @: $(MAKE); $(unstage)
53c7ffe7
GK
10495 @r=`${PWD_COMMAND}`; export r; \
10496 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53c7ffe7 10497 $(HOST_EXPORTS) \
215c351a 10498 (cd $(HOST_SUBDIR)/fixincludes && \
ace9ac7b 10499 $(MAKE) $(FLAGS_TO_PASS) install)
53c7ffe7
GK
10500
10501@endif fixincludes
10502
10503# Other targets (info, dvi, etc.)
10504
10505.PHONY: maybe-info-fixincludes info-fixincludes
10506maybe-info-fixincludes:
10507@if fixincludes
10508maybe-info-fixincludes: info-fixincludes
10509
54f88091
PB
10510# fixincludes doesn't support info.
10511info-fixincludes:
53c7ffe7
GK
10512
10513@endif fixincludes
10514
10515.PHONY: maybe-dvi-fixincludes dvi-fixincludes
10516maybe-dvi-fixincludes:
10517@if fixincludes
10518maybe-dvi-fixincludes: dvi-fixincludes
10519
54f88091
PB
10520# fixincludes doesn't support dvi.
10521dvi-fixincludes:
53c7ffe7
GK
10522
10523@endif fixincludes
10524
f87a2b2e
MS
10525.PHONY: maybe-html-fixincludes html-fixincludes
10526maybe-html-fixincludes:
10527@if fixincludes
10528maybe-html-fixincludes: html-fixincludes
10529
10530html-fixincludes: \
05750653 10531 configure-fixincludes
f41d6665 10532 @: $(MAKE); $(unstage)
f87a2b2e
MS
10533 @[ -f ./fixincludes/Makefile ] || exit 0; \
10534 r=`${PWD_COMMAND}`; export r; \
10535 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
10536 $(HOST_EXPORTS) \
10537 for flag in $(EXTRA_HOST_FLAGS) ; do \
10538 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10539 done; \
10540 echo "Doing html in fixincludes" ; \
215c351a 10541 (cd $(HOST_SUBDIR)/fixincludes && \
f87a2b2e
MS
10542 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10543 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10544 "RANLIB=$${RANLIB}" \
10545 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10546 html) \
10547 || exit 1
10548
10549@endif fixincludes
10550
53c7ffe7
GK
10551.PHONY: maybe-TAGS-fixincludes TAGS-fixincludes
10552maybe-TAGS-fixincludes:
10553@if fixincludes
10554maybe-TAGS-fixincludes: TAGS-fixincludes
10555
54f88091
PB
10556# fixincludes doesn't support TAGS.
10557TAGS-fixincludes:
53c7ffe7
GK
10558
10559@endif fixincludes
10560
10561.PHONY: maybe-install-info-fixincludes install-info-fixincludes
10562maybe-install-info-fixincludes:
10563@if fixincludes
10564maybe-install-info-fixincludes: install-info-fixincludes
10565
54f88091
PB
10566# fixincludes doesn't support install-info.
10567install-info-fixincludes:
53c7ffe7
GK
10568
10569@endif fixincludes
10570
65d6e994
CD
10571.PHONY: maybe-install-html-fixincludes install-html-fixincludes
10572maybe-install-html-fixincludes:
10573@if fixincludes
10574maybe-install-html-fixincludes: install-html-fixincludes
10575
10576install-html-fixincludes: \
10577 configure-fixincludes \
10578 html-fixincludes
10579 @: $(MAKE); $(unstage)
10580 @[ -f ./fixincludes/Makefile ] || exit 0; \
10581 r=`${PWD_COMMAND}`; export r; \
10582 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10583 $(HOST_EXPORTS) \
10584 for flag in $(EXTRA_HOST_FLAGS) ; do \
10585 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10586 done; \
10587 echo "Doing install-html in fixincludes" ; \
10588 (cd $(HOST_SUBDIR)/fixincludes && \
10589 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10590 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10591 "RANLIB=$${RANLIB}" \
10592 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10593 install-html) \
10594 || exit 1
10595
10596@endif fixincludes
10597
53c7ffe7
GK
10598.PHONY: maybe-installcheck-fixincludes installcheck-fixincludes
10599maybe-installcheck-fixincludes:
10600@if fixincludes
10601maybe-installcheck-fixincludes: installcheck-fixincludes
10602
54f88091
PB
10603# fixincludes doesn't support installcheck.
10604installcheck-fixincludes:
53c7ffe7
GK
10605
10606@endif fixincludes
10607
10608.PHONY: maybe-mostlyclean-fixincludes mostlyclean-fixincludes
10609maybe-mostlyclean-fixincludes:
10610@if fixincludes
10611maybe-mostlyclean-fixincludes: mostlyclean-fixincludes
10612
05750653 10613mostlyclean-fixincludes:
f41d6665 10614 @: $(MAKE); $(unstage)
53c7ffe7
GK
10615 @[ -f ./fixincludes/Makefile ] || exit 0; \
10616 r=`${PWD_COMMAND}`; export r; \
10617 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53c7ffe7
GK
10618 $(HOST_EXPORTS) \
10619 for flag in $(EXTRA_HOST_FLAGS) ; do \
10620 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10621 done; \
10622 echo "Doing mostlyclean in fixincludes" ; \
215c351a 10623 (cd $(HOST_SUBDIR)/fixincludes && \
53c7ffe7
GK
10624 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10625 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10626 "RANLIB=$${RANLIB}" \
10627 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10628 mostlyclean) \
10629 || exit 1
10630
10631@endif fixincludes
10632
10633.PHONY: maybe-clean-fixincludes clean-fixincludes
10634maybe-clean-fixincludes:
10635@if fixincludes
10636maybe-clean-fixincludes: clean-fixincludes
10637
05750653 10638clean-fixincludes:
f41d6665 10639 @: $(MAKE); $(unstage)
53c7ffe7
GK
10640 @[ -f ./fixincludes/Makefile ] || exit 0; \
10641 r=`${PWD_COMMAND}`; export r; \
10642 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53c7ffe7
GK
10643 $(HOST_EXPORTS) \
10644 for flag in $(EXTRA_HOST_FLAGS) ; do \
10645 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10646 done; \
10647 echo "Doing clean in fixincludes" ; \
215c351a 10648 (cd $(HOST_SUBDIR)/fixincludes && \
53c7ffe7
GK
10649 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10650 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10651 "RANLIB=$${RANLIB}" \
10652 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10653 clean) \
10654 || exit 1
10655
10656@endif fixincludes
10657
10658.PHONY: maybe-distclean-fixincludes distclean-fixincludes
10659maybe-distclean-fixincludes:
10660@if fixincludes
10661maybe-distclean-fixincludes: distclean-fixincludes
10662
05750653 10663distclean-fixincludes:
f41d6665 10664 @: $(MAKE); $(unstage)
53c7ffe7
GK
10665 @[ -f ./fixincludes/Makefile ] || exit 0; \
10666 r=`${PWD_COMMAND}`; export r; \
10667 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53c7ffe7
GK
10668 $(HOST_EXPORTS) \
10669 for flag in $(EXTRA_HOST_FLAGS) ; do \
10670 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10671 done; \
10672 echo "Doing distclean in fixincludes" ; \
215c351a 10673 (cd $(HOST_SUBDIR)/fixincludes && \
53c7ffe7
GK
10674 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10675 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10676 "RANLIB=$${RANLIB}" \
10677 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10678 distclean) \
10679 || exit 1
10680
10681@endif fixincludes
10682
10683.PHONY: maybe-maintainer-clean-fixincludes maintainer-clean-fixincludes
10684maybe-maintainer-clean-fixincludes:
10685@if fixincludes
10686maybe-maintainer-clean-fixincludes: maintainer-clean-fixincludes
10687
05750653 10688maintainer-clean-fixincludes:
f41d6665 10689 @: $(MAKE); $(unstage)
53c7ffe7
GK
10690 @[ -f ./fixincludes/Makefile ] || exit 0; \
10691 r=`${PWD_COMMAND}`; export r; \
10692 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53c7ffe7
GK
10693 $(HOST_EXPORTS) \
10694 for flag in $(EXTRA_HOST_FLAGS) ; do \
10695 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10696 done; \
10697 echo "Doing maintainer-clean in fixincludes" ; \
215c351a 10698 (cd $(HOST_SUBDIR)/fixincludes && \
53c7ffe7
GK
10699 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10700 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10701 "RANLIB=$${RANLIB}" \
10702 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10703 maintainer-clean) \
10704 || exit 1
10705
10706@endif fixincludes
10707
10708
25b42232 10709
295f4e42
NN
10710.PHONY: configure-flex maybe-configure-flex
10711maybe-configure-flex:
3ff3adad
PB
10712@if gcc-bootstrap
10713configure-flex: stage_current
10714@endif gcc-bootstrap
60975492
PB
10715@if flex
10716maybe-configure-flex: configure-flex
cc11cc9b 10717configure-flex:
f41d6665 10718 @: $(MAKE); $(unstage)
cc11cc9b 10719 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 10720 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
10721 test ! -f $(HOST_SUBDIR)/flex/Makefile || exit 0; \
10722 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/flex ; \
4fc4dd12 10723 $(HOST_EXPORTS) \
25b42232
PB
10724 echo Configuring in $(HOST_SUBDIR)/flex; \
10725 cd "$(HOST_SUBDIR)/flex" || exit 1; \
295f4e42 10726 case $(srcdir) in \
215c351a
PB
10727 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10728 *) topdir=`echo $(HOST_SUBDIR)/flex/ | \
10729 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 10730 esac; \
215c351a
PB
10731 srcdiroption="--srcdir=$${topdir}/flex"; \
10732 libsrcdir="$$s/flex"; \
295f4e42 10733 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 10734 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 10735 || exit 1
60975492 10736@endif flex
1358ccea 10737
25b42232
PB
10738
10739
ce406537
PB
10740
10741
295f4e42
NN
10742.PHONY: all-flex maybe-all-flex
10743maybe-all-flex:
3ff3adad
PB
10744@if gcc-bootstrap
10745all-flex: stage_current
10746@endif gcc-bootstrap
60975492 10747@if flex
7e0b5752 10748TARGET-flex=all
60975492 10749maybe-all-flex: all-flex
295f4e42 10750all-flex: configure-flex
f41d6665 10751 @: $(MAKE); $(unstage)
295f4e42 10752 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 10753 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10754 $(HOST_EXPORTS) \
215c351a
PB
10755 (cd $(HOST_SUBDIR)/flex && \
10756 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-flex))
60975492 10757@endif flex
295f4e42 10758
25b42232 10759
ce406537
PB
10760
10761
295f4e42
NN
10762.PHONY: check-flex maybe-check-flex
10763maybe-check-flex:
60975492
PB
10764@if flex
10765maybe-check-flex: check-flex
295f4e42
NN
10766
10767# This module is only tested in a native toolchain.
10768check-flex:
f41d6665 10769 @: $(MAKE); $(unstage)
295f4e42
NN
10770 @if [ '$(host)' = '$(target)' ] ; then \
10771 r=`${PWD_COMMAND}`; export r; \
10772 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10773 $(HOST_EXPORTS) \
215c351a 10774 (cd $(HOST_SUBDIR)/flex && \
ef6e9bc0 10775 $(MAKE) $(FLAGS_TO_PASS) check); \
295f4e42 10776 fi
1358ccea 10777
60975492 10778@endif flex
1358ccea 10779
295f4e42
NN
10780.PHONY: install-flex maybe-install-flex
10781maybe-install-flex:
60975492
PB
10782@if flex
10783maybe-install-flex: install-flex
1358ccea 10784
295f4e42 10785install-flex: installdirs
f41d6665 10786 @: $(MAKE); $(unstage)
295f4e42 10787 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 10788 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10789 $(HOST_EXPORTS) \
215c351a 10790 (cd $(HOST_SUBDIR)/flex && \
ace9ac7b 10791 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 10792
60975492 10793@endif flex
1358ccea 10794
295f4e42 10795# Other targets (info, dvi, etc.)
1358ccea 10796
295f4e42
NN
10797.PHONY: maybe-info-flex info-flex
10798maybe-info-flex:
60975492
PB
10799@if flex
10800maybe-info-flex: info-flex
295f4e42
NN
10801
10802info-flex: \
05750653 10803 configure-flex
f41d6665 10804 @: $(MAKE); $(unstage)
295f4e42 10805 @[ -f ./flex/Makefile ] || exit 0; \
8c90b13a
L
10806 r=`${PWD_COMMAND}`; export r; \
10807 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10808 $(HOST_EXPORTS) \
d32ab992 10809 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10810 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10811 done; \
295f4e42 10812 echo "Doing info in flex" ; \
215c351a 10813 (cd $(HOST_SUBDIR)/flex && \
1358ccea
NN
10814 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10815 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10816 "RANLIB=$${RANLIB}" \
10817 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10818 info) \
1358ccea
NN
10819 || exit 1
10820
60975492 10821@endif flex
1358ccea 10822
295f4e42
NN
10823.PHONY: maybe-dvi-flex dvi-flex
10824maybe-dvi-flex:
60975492
PB
10825@if flex
10826maybe-dvi-flex: dvi-flex
1358ccea 10827
295f4e42 10828dvi-flex: \
05750653 10829 configure-flex
f41d6665 10830 @: $(MAKE); $(unstage)
295f4e42 10831 @[ -f ./flex/Makefile ] || exit 0; \
8c90b13a
L
10832 r=`${PWD_COMMAND}`; export r; \
10833 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10834 $(HOST_EXPORTS) \
d32ab992 10835 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10836 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10837 done; \
295f4e42 10838 echo "Doing dvi in flex" ; \
215c351a 10839 (cd $(HOST_SUBDIR)/flex && \
1358ccea
NN
10840 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10841 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10842 "RANLIB=$${RANLIB}" \
10843 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10844 dvi) \
1358ccea
NN
10845 || exit 1
10846
60975492 10847@endif flex
1358ccea 10848
f87a2b2e
MS
10849.PHONY: maybe-html-flex html-flex
10850maybe-html-flex:
10851@if flex
10852maybe-html-flex: html-flex
10853
10854html-flex: \
05750653 10855 configure-flex
f41d6665 10856 @: $(MAKE); $(unstage)
f87a2b2e
MS
10857 @[ -f ./flex/Makefile ] || exit 0; \
10858 r=`${PWD_COMMAND}`; export r; \
10859 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
10860 $(HOST_EXPORTS) \
10861 for flag in $(EXTRA_HOST_FLAGS) ; do \
10862 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10863 done; \
10864 echo "Doing html in flex" ; \
215c351a 10865 (cd $(HOST_SUBDIR)/flex && \
f87a2b2e
MS
10866 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10867 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10868 "RANLIB=$${RANLIB}" \
10869 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10870 html) \
10871 || exit 1
10872
10873@endif flex
10874
295f4e42
NN
10875.PHONY: maybe-TAGS-flex TAGS-flex
10876maybe-TAGS-flex:
60975492
PB
10877@if flex
10878maybe-TAGS-flex: TAGS-flex
1358ccea 10879
295f4e42 10880TAGS-flex: \
05750653 10881 configure-flex
f41d6665 10882 @: $(MAKE); $(unstage)
295f4e42 10883 @[ -f ./flex/Makefile ] || exit 0; \
8c90b13a
L
10884 r=`${PWD_COMMAND}`; export r; \
10885 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10886 $(HOST_EXPORTS) \
d32ab992 10887 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10888 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10889 done; \
295f4e42 10890 echo "Doing TAGS in flex" ; \
215c351a 10891 (cd $(HOST_SUBDIR)/flex && \
1358ccea
NN
10892 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10893 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10894 "RANLIB=$${RANLIB}" \
10895 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10896 TAGS) \
1358ccea
NN
10897 || exit 1
10898
60975492 10899@endif flex
1358ccea 10900
295f4e42
NN
10901.PHONY: maybe-install-info-flex install-info-flex
10902maybe-install-info-flex:
60975492
PB
10903@if flex
10904maybe-install-info-flex: install-info-flex
1358ccea 10905
295f4e42
NN
10906install-info-flex: \
10907 configure-flex \
05750653 10908 info-flex
f41d6665 10909 @: $(MAKE); $(unstage)
295f4e42 10910 @[ -f ./flex/Makefile ] || exit 0; \
8c90b13a
L
10911 r=`${PWD_COMMAND}`; export r; \
10912 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10913 $(HOST_EXPORTS) \
d32ab992 10914 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10915 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10916 done; \
295f4e42 10917 echo "Doing install-info in flex" ; \
215c351a 10918 (cd $(HOST_SUBDIR)/flex && \
1358ccea
NN
10919 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10920 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10921 "RANLIB=$${RANLIB}" \
10922 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10923 install-info) \
1358ccea
NN
10924 || exit 1
10925
60975492 10926@endif flex
1358ccea 10927
65d6e994
CD
10928.PHONY: maybe-install-html-flex install-html-flex
10929maybe-install-html-flex:
10930@if flex
10931maybe-install-html-flex: install-html-flex
10932
10933install-html-flex: \
10934 configure-flex \
10935 html-flex
10936 @: $(MAKE); $(unstage)
10937 @[ -f ./flex/Makefile ] || exit 0; \
10938 r=`${PWD_COMMAND}`; export r; \
10939 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10940 $(HOST_EXPORTS) \
10941 for flag in $(EXTRA_HOST_FLAGS) ; do \
10942 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10943 done; \
10944 echo "Doing install-html in flex" ; \
10945 (cd $(HOST_SUBDIR)/flex && \
10946 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10947 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10948 "RANLIB=$${RANLIB}" \
10949 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10950 install-html) \
10951 || exit 1
10952
10953@endif flex
10954
295f4e42
NN
10955.PHONY: maybe-installcheck-flex installcheck-flex
10956maybe-installcheck-flex:
60975492
PB
10957@if flex
10958maybe-installcheck-flex: installcheck-flex
1358ccea 10959
295f4e42 10960installcheck-flex: \
05750653 10961 configure-flex
f41d6665 10962 @: $(MAKE); $(unstage)
295f4e42 10963 @[ -f ./flex/Makefile ] || exit 0; \
8c90b13a
L
10964 r=`${PWD_COMMAND}`; export r; \
10965 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10966 $(HOST_EXPORTS) \
d32ab992 10967 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10968 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10969 done; \
295f4e42 10970 echo "Doing installcheck in flex" ; \
215c351a 10971 (cd $(HOST_SUBDIR)/flex && \
1358ccea
NN
10972 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10973 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10974 "RANLIB=$${RANLIB}" \
10975 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10976 installcheck) \
1358ccea
NN
10977 || exit 1
10978
60975492 10979@endif flex
1358ccea 10980
295f4e42
NN
10981.PHONY: maybe-mostlyclean-flex mostlyclean-flex
10982maybe-mostlyclean-flex:
60975492
PB
10983@if flex
10984maybe-mostlyclean-flex: mostlyclean-flex
1358ccea 10985
05750653 10986mostlyclean-flex:
f41d6665 10987 @: $(MAKE); $(unstage)
295f4e42 10988 @[ -f ./flex/Makefile ] || exit 0; \
8c90b13a
L
10989 r=`${PWD_COMMAND}`; export r; \
10990 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10991 $(HOST_EXPORTS) \
d32ab992 10992 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10993 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10994 done; \
295f4e42 10995 echo "Doing mostlyclean in flex" ; \
215c351a 10996 (cd $(HOST_SUBDIR)/flex && \
1358ccea
NN
10997 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10998 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10999 "RANLIB=$${RANLIB}" \
11000 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 11001 mostlyclean) \
1358ccea
NN
11002 || exit 1
11003
60975492 11004@endif flex
1358ccea 11005
295f4e42
NN
11006.PHONY: maybe-clean-flex clean-flex
11007maybe-clean-flex:
60975492
PB
11008@if flex
11009maybe-clean-flex: clean-flex
1358ccea 11010
05750653 11011clean-flex:
f41d6665 11012 @: $(MAKE); $(unstage)
295f4e42 11013 @[ -f ./flex/Makefile ] || exit 0; \
8c90b13a
L
11014 r=`${PWD_COMMAND}`; export r; \
11015 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 11016 $(HOST_EXPORTS) \
d32ab992 11017 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11018 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11019 done; \
295f4e42 11020 echo "Doing clean in flex" ; \
215c351a 11021 (cd $(HOST_SUBDIR)/flex && \
1358ccea
NN
11022 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11023 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11024 "RANLIB=$${RANLIB}" \
11025 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 11026 clean) \
1358ccea
NN
11027 || exit 1
11028
60975492 11029@endif flex
1358ccea 11030
295f4e42
NN
11031.PHONY: maybe-distclean-flex distclean-flex
11032maybe-distclean-flex:
60975492
PB
11033@if flex
11034maybe-distclean-flex: distclean-flex
1358ccea 11035
05750653 11036distclean-flex:
f41d6665 11037 @: $(MAKE); $(unstage)
295f4e42 11038 @[ -f ./flex/Makefile ] || exit 0; \
8c90b13a
L
11039 r=`${PWD_COMMAND}`; export r; \
11040 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 11041 $(HOST_EXPORTS) \
d32ab992 11042 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11043 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11044 done; \
295f4e42 11045 echo "Doing distclean in flex" ; \
215c351a 11046 (cd $(HOST_SUBDIR)/flex && \
1358ccea
NN
11047 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11048 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11049 "RANLIB=$${RANLIB}" \
11050 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 11051 distclean) \
1358ccea
NN
11052 || exit 1
11053
60975492 11054@endif flex
1358ccea 11055
295f4e42
NN
11056.PHONY: maybe-maintainer-clean-flex maintainer-clean-flex
11057maybe-maintainer-clean-flex:
60975492
PB
11058@if flex
11059maybe-maintainer-clean-flex: maintainer-clean-flex
1358ccea 11060
05750653 11061maintainer-clean-flex:
f41d6665 11062 @: $(MAKE); $(unstage)
295f4e42 11063 @[ -f ./flex/Makefile ] || exit 0; \
8c90b13a
L
11064 r=`${PWD_COMMAND}`; export r; \
11065 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 11066 $(HOST_EXPORTS) \
d32ab992 11067 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11068 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11069 done; \
295f4e42 11070 echo "Doing maintainer-clean in flex" ; \
215c351a 11071 (cd $(HOST_SUBDIR)/flex && \
1358ccea
NN
11072 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11073 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11074 "RANLIB=$${RANLIB}" \
11075 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 11076 maintainer-clean) \
1358ccea
NN
11077 || exit 1
11078
60975492 11079@endif flex
1358ccea 11080
1358ccea 11081
25b42232 11082
295f4e42
NN
11083.PHONY: configure-gas maybe-configure-gas
11084maybe-configure-gas:
3ff3adad
PB
11085@if gcc-bootstrap
11086configure-gas: stage_current
11087@endif gcc-bootstrap
60975492
PB
11088@if gas
11089maybe-configure-gas: configure-gas
cc11cc9b 11090configure-gas:
cc11cc9b
PB
11091 @r=`${PWD_COMMAND}`; export r; \
11092 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
215c351a
PB
11093 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
11094 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
4fc4dd12 11095 $(HOST_EXPORTS) \
25b42232
PB
11096 echo Configuring in $(HOST_SUBDIR)/gas; \
11097 cd "$(HOST_SUBDIR)/gas" || exit 1; \
295f4e42 11098 case $(srcdir) in \
215c351a
PB
11099 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11100 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
11101 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 11102 esac; \
215c351a
PB
11103 srcdiroption="--srcdir=$${topdir}/gas"; \
11104 libsrcdir="$$s/gas"; \
295f4e42 11105 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 11106 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 11107 || exit 1
60975492 11108@endif gas
1358ccea 11109
25b42232
PB
11110
11111
ce406537
PB
11112.PHONY: configure-stage1-gas maybe-configure-stage1-gas
11113maybe-configure-stage1-gas:
11114@if gas-bootstrap
11115maybe-configure-stage1-gas: configure-stage1-gas
f41d6665 11116configure-stage1-gas:
cc11cc9b 11117 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
f41d6665 11118 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
cc11cc9b
PB
11119 @r=`${PWD_COMMAND}`; export r; \
11120 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 11121 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
ce406537
PB
11122 $(HOST_EXPORTS) \
11123 echo Configuring stage 1 in $(HOST_SUBDIR)/gas ; \
f41d6665 11124 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
ce406537
PB
11125 cd $(HOST_SUBDIR)/gas || exit 1; \
11126 case $(srcdir) in \
11127 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11128 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
11129 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11130 esac; \
11131 srcdiroption="--srcdir=$${topdir}/gas"; \
11132 libsrcdir="$$s/gas"; \
11133 $(SHELL) $${libsrcdir}/configure \
11134 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 11135 \
ce406537
PB
11136 --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
11137@endif gas-bootstrap
11138
11139.PHONY: configure-stage2-gas maybe-configure-stage2-gas
11140maybe-configure-stage2-gas:
11141@if gas-bootstrap
11142maybe-configure-stage2-gas: configure-stage2-gas
f41d6665 11143configure-stage2-gas:
cc11cc9b 11144 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
f41d6665 11145 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
cc11cc9b
PB
11146 @r=`${PWD_COMMAND}`; export r; \
11147 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 11148 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
ce406537
PB
11149 $(HOST_EXPORTS) \
11150 $(POSTSTAGE1_HOST_EXPORTS) \
11151 echo Configuring stage 2 in $(HOST_SUBDIR)/gas ; \
f41d6665 11152 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
ce406537
PB
11153 cd $(HOST_SUBDIR)/gas || exit 1; \
11154 case $(srcdir) in \
11155 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11156 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
11157 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11158 esac; \
11159 srcdiroption="--srcdir=$${topdir}/gas"; \
11160 libsrcdir="$$s/gas"; \
11161 $(SHELL) $${libsrcdir}/configure \
11162 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 11163 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
11164 @stage2_werror_flag@
11165@endif gas-bootstrap
11166
11167.PHONY: configure-stage3-gas maybe-configure-stage3-gas
11168maybe-configure-stage3-gas:
11169@if gas-bootstrap
11170maybe-configure-stage3-gas: configure-stage3-gas
f41d6665 11171configure-stage3-gas:
cc11cc9b 11172 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
f41d6665 11173 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
cc11cc9b
PB
11174 @r=`${PWD_COMMAND}`; export r; \
11175 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 11176 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
ce406537
PB
11177 $(HOST_EXPORTS) \
11178 $(POSTSTAGE1_HOST_EXPORTS) \
11179 echo Configuring stage 3 in $(HOST_SUBDIR)/gas ; \
f41d6665 11180 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
ce406537
PB
11181 cd $(HOST_SUBDIR)/gas || exit 1; \
11182 case $(srcdir) in \
11183 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11184 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
11185 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11186 esac; \
11187 srcdiroption="--srcdir=$${topdir}/gas"; \
11188 libsrcdir="$$s/gas"; \
11189 $(SHELL) $${libsrcdir}/configure \
11190 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 11191 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
11192 @stage2_werror_flag@
11193@endif gas-bootstrap
11194
11195.PHONY: configure-stage4-gas maybe-configure-stage4-gas
11196maybe-configure-stage4-gas:
11197@if gas-bootstrap
11198maybe-configure-stage4-gas: configure-stage4-gas
f41d6665 11199configure-stage4-gas:
cc11cc9b 11200 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
f41d6665 11201 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
cc11cc9b
PB
11202 @r=`${PWD_COMMAND}`; export r; \
11203 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 11204 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
ce406537
PB
11205 $(HOST_EXPORTS) \
11206 $(POSTSTAGE1_HOST_EXPORTS) \
11207 echo Configuring stage 4 in $(HOST_SUBDIR)/gas ; \
f41d6665 11208 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
ce406537
PB
11209 cd $(HOST_SUBDIR)/gas || exit 1; \
11210 case $(srcdir) in \
11211 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11212 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
11213 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11214 esac; \
11215 srcdiroption="--srcdir=$${topdir}/gas"; \
11216 libsrcdir="$$s/gas"; \
11217 $(SHELL) $${libsrcdir}/configure \
11218 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 11219 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
11220 @stage2_werror_flag@
11221@endif gas-bootstrap
11222
11223.PHONY: configure-stageprofile-gas maybe-configure-stageprofile-gas
11224maybe-configure-stageprofile-gas:
11225@if gas-bootstrap
11226maybe-configure-stageprofile-gas: configure-stageprofile-gas
f41d6665 11227configure-stageprofile-gas:
cc11cc9b 11228 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
f41d6665 11229 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
cc11cc9b
PB
11230 @r=`${PWD_COMMAND}`; export r; \
11231 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 11232 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
ce406537
PB
11233 $(HOST_EXPORTS) \
11234 $(POSTSTAGE1_HOST_EXPORTS) \
11235 echo Configuring stage profile in $(HOST_SUBDIR)/gas ; \
f41d6665 11236 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
ce406537
PB
11237 cd $(HOST_SUBDIR)/gas || exit 1; \
11238 case $(srcdir) in \
11239 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11240 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
11241 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11242 esac; \
11243 srcdiroption="--srcdir=$${topdir}/gas"; \
11244 libsrcdir="$$s/gas"; \
11245 $(SHELL) $${libsrcdir}/configure \
11246 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 11247 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
11248 @stage2_werror_flag@
11249@endif gas-bootstrap
11250
11251.PHONY: configure-stagefeedback-gas maybe-configure-stagefeedback-gas
11252maybe-configure-stagefeedback-gas:
11253@if gas-bootstrap
11254maybe-configure-stagefeedback-gas: configure-stagefeedback-gas
f41d6665 11255configure-stagefeedback-gas:
cc11cc9b 11256 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
f41d6665 11257 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
cc11cc9b
PB
11258 @r=`${PWD_COMMAND}`; export r; \
11259 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 11260 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
ce406537
PB
11261 $(HOST_EXPORTS) \
11262 $(POSTSTAGE1_HOST_EXPORTS) \
11263 echo Configuring stage feedback in $(HOST_SUBDIR)/gas ; \
f41d6665 11264 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
ce406537
PB
11265 cd $(HOST_SUBDIR)/gas || exit 1; \
11266 case $(srcdir) in \
11267 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11268 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
11269 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11270 esac; \
11271 srcdiroption="--srcdir=$${topdir}/gas"; \
11272 libsrcdir="$$s/gas"; \
11273 $(SHELL) $${libsrcdir}/configure \
11274 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 11275 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
11276 @stage2_werror_flag@
11277@endif gas-bootstrap
11278
11279
11280
11281
11282
295f4e42
NN
11283.PHONY: all-gas maybe-all-gas
11284maybe-all-gas:
3ff3adad
PB
11285@if gcc-bootstrap
11286all-gas: stage_current
11287@endif gcc-bootstrap
60975492 11288@if gas
7e0b5752 11289TARGET-gas=all
60975492 11290maybe-all-gas: all-gas
295f4e42 11291all-gas: configure-gas
cc11cc9b 11292 @r=`${PWD_COMMAND}`; export r; \
295f4e42 11293 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 11294 $(HOST_EXPORTS) \
215c351a
PB
11295 (cd $(HOST_SUBDIR)/gas && \
11296 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-gas))
60975492 11297@endif gas
1358ccea 11298
25b42232 11299
ce406537
PB
11300
11301.PHONY: all-stage1-gas maybe-all-stage1-gas
11302.PHONY: clean-stage1-gas maybe-clean-stage1-gas
11303maybe-all-stage1-gas:
11304maybe-clean-stage1-gas:
11305@if gas-bootstrap
11306maybe-all-stage1-gas: all-stage1-gas
11307all-stage1: all-stage1-gas
1061f99e 11308TARGET-stage1-gas = $(TARGET-gas)
ce406537 11309all-stage1-gas: configure-stage1-gas
cc11cc9b 11310 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
ce406537
PB
11311 @r=`${PWD_COMMAND}`; export r; \
11312 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11313 $(HOST_EXPORTS) \
11314 cd $(HOST_SUBDIR)/gas && \
cc11cc9b 11315 $(MAKE) $(FLAGS_TO_PASS) CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" \
1061f99e 11316 $(TARGET-stage1-gas)
ce406537
PB
11317
11318maybe-clean-stage1-gas: clean-stage1-gas
11319clean-stage1: clean-stage1-gas
11320clean-stage1-gas:
11321 @[ -f $(HOST_SUBDIR)/gas/Makefile ] || [ -f $(HOST_SUBDIR)/stage1-gas/Makefile ] \
11322 || exit 0 ; \
cc11cc9b 11323 [ $(current_stage) = stage1 ] || $(MAKE) stage1-start; \
ce406537
PB
11324 cd $(HOST_SUBDIR)/gas && \
11325 $(MAKE) $(FLAGS_TO_PASS) \
cc11cc9b 11326 CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" clean
ce406537
PB
11327@endif gas-bootstrap
11328
11329
11330.PHONY: all-stage2-gas maybe-all-stage2-gas
11331.PHONY: clean-stage2-gas maybe-clean-stage2-gas
11332maybe-all-stage2-gas:
11333maybe-clean-stage2-gas:
11334@if gas-bootstrap
11335maybe-all-stage2-gas: all-stage2-gas
11336all-stage2: all-stage2-gas
1061f99e 11337TARGET-stage2-gas = $(TARGET-gas)
ce406537 11338all-stage2-gas: configure-stage2-gas
cc11cc9b 11339 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
ce406537
PB
11340 @r=`${PWD_COMMAND}`; export r; \
11341 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11342 $(HOST_EXPORTS) \
11343 $(POSTSTAGE1_HOST_EXPORTS) \
11344 cd $(HOST_SUBDIR)/gas && \
1061f99e
PB
11345 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
11346 $(TARGET-stage2-gas)
ce406537
PB
11347
11348maybe-clean-stage2-gas: clean-stage2-gas
11349clean-stage2: clean-stage2-gas
11350clean-stage2-gas:
11351 @[ -f $(HOST_SUBDIR)/gas/Makefile ] || [ -f $(HOST_SUBDIR)/stage2-gas/Makefile ] \
11352 || exit 0 ; \
cc11cc9b 11353 [ $(current_stage) = stage2 ] || $(MAKE) stage2-start; \
ce406537
PB
11354 cd $(HOST_SUBDIR)/gas && \
11355 $(MAKE) $(FLAGS_TO_PASS) \
11356 $(POSTSTAGE1_FLAGS_TO_PASS) \
11357 clean
11358@endif gas-bootstrap
11359
11360
11361.PHONY: all-stage3-gas maybe-all-stage3-gas
11362.PHONY: clean-stage3-gas maybe-clean-stage3-gas
11363maybe-all-stage3-gas:
11364maybe-clean-stage3-gas:
11365@if gas-bootstrap
11366maybe-all-stage3-gas: all-stage3-gas
11367all-stage3: all-stage3-gas
1061f99e 11368TARGET-stage3-gas = $(TARGET-gas)
ce406537 11369all-stage3-gas: configure-stage3-gas
cc11cc9b 11370 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
ce406537
PB
11371 @r=`${PWD_COMMAND}`; export r; \
11372 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11373 $(HOST_EXPORTS) \
11374 $(POSTSTAGE1_HOST_EXPORTS) \
11375 cd $(HOST_SUBDIR)/gas && \
1061f99e
PB
11376 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
11377 $(TARGET-stage3-gas)
ce406537
PB
11378
11379maybe-clean-stage3-gas: clean-stage3-gas
11380clean-stage3: clean-stage3-gas
11381clean-stage3-gas:
11382 @[ -f $(HOST_SUBDIR)/gas/Makefile ] || [ -f $(HOST_SUBDIR)/stage3-gas/Makefile ] \
11383 || exit 0 ; \
cc11cc9b 11384 [ $(current_stage) = stage3 ] || $(MAKE) stage3-start; \
ce406537
PB
11385 cd $(HOST_SUBDIR)/gas && \
11386 $(MAKE) $(FLAGS_TO_PASS) \
11387 $(POSTSTAGE1_FLAGS_TO_PASS) \
11388 clean
11389@endif gas-bootstrap
11390
11391
11392.PHONY: all-stage4-gas maybe-all-stage4-gas
11393.PHONY: clean-stage4-gas maybe-clean-stage4-gas
11394maybe-all-stage4-gas:
11395maybe-clean-stage4-gas:
11396@if gas-bootstrap
11397maybe-all-stage4-gas: all-stage4-gas
11398all-stage4: all-stage4-gas
1061f99e 11399TARGET-stage4-gas = $(TARGET-gas)
ce406537 11400all-stage4-gas: configure-stage4-gas
cc11cc9b 11401 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
ce406537
PB
11402 @r=`${PWD_COMMAND}`; export r; \
11403 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11404 $(HOST_EXPORTS) \
11405 $(POSTSTAGE1_HOST_EXPORTS) \
11406 cd $(HOST_SUBDIR)/gas && \
1061f99e
PB
11407 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
11408 $(TARGET-stage4-gas)
ce406537
PB
11409
11410maybe-clean-stage4-gas: clean-stage4-gas
11411clean-stage4: clean-stage4-gas
11412clean-stage4-gas:
11413 @[ -f $(HOST_SUBDIR)/gas/Makefile ] || [ -f $(HOST_SUBDIR)/stage4-gas/Makefile ] \
11414 || exit 0 ; \
cc11cc9b 11415 [ $(current_stage) = stage4 ] || $(MAKE) stage4-start; \
ce406537
PB
11416 cd $(HOST_SUBDIR)/gas && \
11417 $(MAKE) $(FLAGS_TO_PASS) \
11418 $(POSTSTAGE1_FLAGS_TO_PASS) \
11419 clean
11420@endif gas-bootstrap
11421
11422
11423.PHONY: all-stageprofile-gas maybe-all-stageprofile-gas
11424.PHONY: clean-stageprofile-gas maybe-clean-stageprofile-gas
11425maybe-all-stageprofile-gas:
11426maybe-clean-stageprofile-gas:
11427@if gas-bootstrap
11428maybe-all-stageprofile-gas: all-stageprofile-gas
11429all-stageprofile: all-stageprofile-gas
1061f99e 11430TARGET-stageprofile-gas = $(TARGET-gas)
ce406537 11431all-stageprofile-gas: configure-stageprofile-gas
cc11cc9b 11432 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
ce406537
PB
11433 @r=`${PWD_COMMAND}`; export r; \
11434 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11435 $(HOST_EXPORTS) \
11436 $(POSTSTAGE1_HOST_EXPORTS) \
11437 cd $(HOST_SUBDIR)/gas && \
1061f99e
PB
11438 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" \
11439 $(TARGET-stageprofile-gas)
ce406537
PB
11440
11441maybe-clean-stageprofile-gas: clean-stageprofile-gas
11442clean-stageprofile: clean-stageprofile-gas
11443clean-stageprofile-gas:
11444 @[ -f $(HOST_SUBDIR)/gas/Makefile ] || [ -f $(HOST_SUBDIR)/stageprofile-gas/Makefile ] \
11445 || exit 0 ; \
cc11cc9b 11446 [ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start; \
ce406537
PB
11447 cd $(HOST_SUBDIR)/gas && \
11448 $(MAKE) $(FLAGS_TO_PASS) \
11449 $(POSTSTAGE1_FLAGS_TO_PASS) \
11450 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean
11451@endif gas-bootstrap
11452
11453
11454.PHONY: all-stagefeedback-gas maybe-all-stagefeedback-gas
11455.PHONY: clean-stagefeedback-gas maybe-clean-stagefeedback-gas
11456maybe-all-stagefeedback-gas:
11457maybe-clean-stagefeedback-gas:
11458@if gas-bootstrap
11459maybe-all-stagefeedback-gas: all-stagefeedback-gas
11460all-stagefeedback: all-stagefeedback-gas
1061f99e 11461TARGET-stagefeedback-gas = $(TARGET-gas)
ce406537 11462all-stagefeedback-gas: configure-stagefeedback-gas
cc11cc9b 11463 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
ce406537
PB
11464 @r=`${PWD_COMMAND}`; export r; \
11465 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11466 $(HOST_EXPORTS) \
11467 $(POSTSTAGE1_HOST_EXPORTS) \
11468 cd $(HOST_SUBDIR)/gas && \
1061f99e
PB
11469 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-use" \
11470 $(TARGET-stagefeedback-gas)
ce406537
PB
11471
11472maybe-clean-stagefeedback-gas: clean-stagefeedback-gas
11473clean-stagefeedback: clean-stagefeedback-gas
11474clean-stagefeedback-gas:
11475 @[ -f $(HOST_SUBDIR)/gas/Makefile ] || [ -f $(HOST_SUBDIR)/stagefeedback-gas/Makefile ] \
11476 || exit 0 ; \
cc11cc9b 11477 [ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start; \
ce406537
PB
11478 cd $(HOST_SUBDIR)/gas && \
11479 $(MAKE) $(FLAGS_TO_PASS) \
11480 $(POSTSTAGE1_FLAGS_TO_PASS) \
11481 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean
11482@endif gas-bootstrap
11483
11484
11485
11486
11487
295f4e42
NN
11488.PHONY: check-gas maybe-check-gas
11489maybe-check-gas:
60975492
PB
11490@if gas
11491maybe-check-gas: check-gas
1358ccea 11492
295f4e42 11493check-gas:
f41d6665 11494 @: $(MAKE); $(unstage)
295f4e42 11495 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 11496 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 11497 $(HOST_EXPORTS) \
215c351a
PB
11498 (cd $(HOST_SUBDIR)/gas && \
11499 $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 11500
60975492 11501@endif gas
1358ccea 11502
295f4e42
NN
11503.PHONY: install-gas maybe-install-gas
11504maybe-install-gas:
60975492
PB
11505@if gas
11506maybe-install-gas: install-gas
1358ccea 11507
295f4e42 11508install-gas: installdirs
f41d6665 11509 @: $(MAKE); $(unstage)
295f4e42 11510 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 11511 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 11512 $(HOST_EXPORTS) \
215c351a 11513 (cd $(HOST_SUBDIR)/gas && \
ace9ac7b 11514 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 11515
60975492 11516@endif gas
1358ccea 11517
295f4e42 11518# Other targets (info, dvi, etc.)
1358ccea 11519
295f4e42
NN
11520.PHONY: maybe-info-gas info-gas
11521maybe-info-gas:
60975492
PB
11522@if gas
11523maybe-info-gas: info-gas
295f4e42
NN
11524
11525info-gas: \
05750653 11526 configure-gas
295f4e42 11527 @[ -f ./gas/Makefile ] || exit 0; \
8c90b13a
L
11528 r=`${PWD_COMMAND}`; export r; \
11529 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 11530 $(HOST_EXPORTS) \
d32ab992 11531 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11532 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11533 done; \
295f4e42 11534 echo "Doing info in gas" ; \
215c351a 11535 (cd $(HOST_SUBDIR)/gas && \
1358ccea
NN
11536 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11537 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11538 "RANLIB=$${RANLIB}" \
11539 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 11540 info) \
1358ccea
NN
11541 || exit 1
11542
60975492 11543@endif gas
1358ccea 11544
295f4e42
NN
11545.PHONY: maybe-dvi-gas dvi-gas
11546maybe-dvi-gas:
60975492
PB
11547@if gas
11548maybe-dvi-gas: dvi-gas
1358ccea 11549
295f4e42 11550dvi-gas: \
05750653 11551 configure-gas
295f4e42 11552 @[ -f ./gas/Makefile ] || exit 0; \
8c90b13a
L
11553 r=`${PWD_COMMAND}`; export r; \
11554 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 11555 $(HOST_EXPORTS) \
d32ab992 11556 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11557 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11558 done; \
295f4e42 11559 echo "Doing dvi in gas" ; \
215c351a 11560 (cd $(HOST_SUBDIR)/gas && \
1358ccea
NN
11561 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11562 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11563 "RANLIB=$${RANLIB}" \
11564 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 11565 dvi) \
1358ccea
NN
11566 || exit 1
11567
60975492 11568@endif gas
1358ccea 11569
f87a2b2e
MS
11570.PHONY: maybe-html-gas html-gas
11571maybe-html-gas:
11572@if gas
11573maybe-html-gas: html-gas
11574
11575html-gas: \
05750653 11576 configure-gas
f87a2b2e
MS
11577 @[ -f ./gas/Makefile ] || exit 0; \
11578 r=`${PWD_COMMAND}`; export r; \
11579 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
11580 $(HOST_EXPORTS) \
11581 for flag in $(EXTRA_HOST_FLAGS) ; do \
11582 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11583 done; \
11584 echo "Doing html in gas" ; \
215c351a 11585 (cd $(HOST_SUBDIR)/gas && \
f87a2b2e
MS
11586 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11587 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11588 "RANLIB=$${RANLIB}" \
11589 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11590 html) \
11591 || exit 1
11592
11593@endif gas
11594
295f4e42
NN
11595.PHONY: maybe-TAGS-gas TAGS-gas
11596maybe-TAGS-gas:
60975492
PB
11597@if gas
11598maybe-TAGS-gas: TAGS-gas
1358ccea 11599
295f4e42 11600TAGS-gas: \
05750653 11601 configure-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 TAGS 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 TAGS) \
1358ccea
NN
11616 || exit 1
11617
60975492 11618@endif gas
1358ccea 11619
295f4e42
NN
11620.PHONY: maybe-install-info-gas install-info-gas
11621maybe-install-info-gas:
60975492
PB
11622@if gas
11623maybe-install-info-gas: install-info-gas
1358ccea 11624
295f4e42
NN
11625install-info-gas: \
11626 configure-gas \
05750653 11627 info-gas
295f4e42 11628 @[ -f ./gas/Makefile ] || exit 0; \
8c90b13a
L
11629 r=`${PWD_COMMAND}`; export r; \
11630 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 11631 $(HOST_EXPORTS) \
d32ab992 11632 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11633 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11634 done; \
295f4e42 11635 echo "Doing install-info in gas" ; \
215c351a 11636 (cd $(HOST_SUBDIR)/gas && \
1358ccea
NN
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}" \
d32ab992 11641 install-info) \
1358ccea
NN
11642 || exit 1
11643
60975492 11644@endif gas
1358ccea 11645
65d6e994
CD
11646.PHONY: maybe-install-html-gas install-html-gas
11647maybe-install-html-gas:
11648@if gas
11649maybe-install-html-gas: install-html-gas
11650
11651install-html-gas: \
11652 configure-gas \
11653 html-gas
11654 @[ -f ./gas/Makefile ] || exit 0; \
11655 r=`${PWD_COMMAND}`; export r; \
11656 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11657 $(HOST_EXPORTS) \
11658 for flag in $(EXTRA_HOST_FLAGS) ; do \
11659 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11660 done; \
11661 echo "Doing install-html in gas" ; \
11662 (cd $(HOST_SUBDIR)/gas && \
11663 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11664 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11665 "RANLIB=$${RANLIB}" \
11666 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11667 install-html) \
11668 || exit 1
11669
11670@endif gas
11671
295f4e42
NN
11672.PHONY: maybe-installcheck-gas installcheck-gas
11673maybe-installcheck-gas:
60975492
PB
11674@if gas
11675maybe-installcheck-gas: installcheck-gas
1358ccea 11676
295f4e42 11677installcheck-gas: \
05750653 11678 configure-gas
295f4e42 11679 @[ -f ./gas/Makefile ] || exit 0; \
8c90b13a
L
11680 r=`${PWD_COMMAND}`; export r; \
11681 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 11682 $(HOST_EXPORTS) \
d32ab992 11683 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11684 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11685 done; \
295f4e42 11686 echo "Doing installcheck in gas" ; \
215c351a 11687 (cd $(HOST_SUBDIR)/gas && \
1358ccea
NN
11688 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11689 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11690 "RANLIB=$${RANLIB}" \
11691 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 11692 installcheck) \
1358ccea
NN
11693 || exit 1
11694
60975492 11695@endif gas
1358ccea 11696
295f4e42
NN
11697.PHONY: maybe-mostlyclean-gas mostlyclean-gas
11698maybe-mostlyclean-gas:
60975492
PB
11699@if gas
11700maybe-mostlyclean-gas: mostlyclean-gas
1358ccea 11701
05750653 11702mostlyclean-gas:
295f4e42 11703 @[ -f ./gas/Makefile ] || exit 0; \
8c90b13a
L
11704 r=`${PWD_COMMAND}`; export r; \
11705 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 11706 $(HOST_EXPORTS) \
d32ab992 11707 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11708 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11709 done; \
295f4e42 11710 echo "Doing mostlyclean in gas" ; \
215c351a 11711 (cd $(HOST_SUBDIR)/gas && \
1358ccea
NN
11712 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11713 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11714 "RANLIB=$${RANLIB}" \
11715 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 11716 mostlyclean) \
1358ccea
NN
11717 || exit 1
11718
60975492 11719@endif gas
1358ccea 11720
295f4e42
NN
11721.PHONY: maybe-clean-gas clean-gas
11722maybe-clean-gas:
60975492
PB
11723@if gas
11724maybe-clean-gas: clean-gas
1358ccea 11725
05750653 11726clean-gas:
295f4e42 11727 @[ -f ./gas/Makefile ] || exit 0; \
8c90b13a
L
11728 r=`${PWD_COMMAND}`; export r; \
11729 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 11730 $(HOST_EXPORTS) \
d32ab992 11731 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11732 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11733 done; \
295f4e42 11734 echo "Doing clean in gas" ; \
215c351a 11735 (cd $(HOST_SUBDIR)/gas && \
1358ccea
NN
11736 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11737 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11738 "RANLIB=$${RANLIB}" \
11739 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 11740 clean) \
1358ccea
NN
11741 || exit 1
11742
60975492 11743@endif gas
1358ccea 11744
295f4e42
NN
11745.PHONY: maybe-distclean-gas distclean-gas
11746maybe-distclean-gas:
60975492
PB
11747@if gas
11748maybe-distclean-gas: distclean-gas
1358ccea 11749
05750653 11750distclean-gas:
295f4e42 11751 @[ -f ./gas/Makefile ] || exit 0; \
8c90b13a
L
11752 r=`${PWD_COMMAND}`; export r; \
11753 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 11754 $(HOST_EXPORTS) \
d32ab992 11755 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11756 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11757 done; \
295f4e42 11758 echo "Doing distclean in gas" ; \
215c351a 11759 (cd $(HOST_SUBDIR)/gas && \
1358ccea
NN
11760 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11761 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11762 "RANLIB=$${RANLIB}" \
11763 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 11764 distclean) \
1358ccea
NN
11765 || exit 1
11766
60975492 11767@endif gas
1358ccea 11768
295f4e42
NN
11769.PHONY: maybe-maintainer-clean-gas maintainer-clean-gas
11770maybe-maintainer-clean-gas:
60975492
PB
11771@if gas
11772maybe-maintainer-clean-gas: maintainer-clean-gas
1358ccea 11773
05750653 11774maintainer-clean-gas:
295f4e42 11775 @[ -f ./gas/Makefile ] || exit 0; \
8c90b13a
L
11776 r=`${PWD_COMMAND}`; export r; \
11777 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 11778 $(HOST_EXPORTS) \
d32ab992 11779 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11780 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11781 done; \
295f4e42 11782 echo "Doing maintainer-clean in gas" ; \
215c351a 11783 (cd $(HOST_SUBDIR)/gas && \
1358ccea
NN
11784 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11785 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11786 "RANLIB=$${RANLIB}" \
11787 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 11788 maintainer-clean) \
1358ccea
NN
11789 || exit 1
11790
60975492 11791@endif gas
1358ccea 11792
1358ccea 11793
25b42232 11794
d32ab992
PB
11795.PHONY: configure-gcc maybe-configure-gcc
11796maybe-configure-gcc:
cc11cc9b 11797@if gcc-bootstrap
3ff3adad 11798configure-gcc: stage_current
cc11cc9b
PB
11799@endif gcc-bootstrap
11800@if gcc
3ff3adad
PB
11801maybe-configure-gcc: configure-gcc
11802configure-gcc:
cc11cc9b
PB
11803 @r=`${PWD_COMMAND}`; export r; \
11804 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
215c351a
PB
11805 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
11806 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \
4fc4dd12 11807 $(HOST_EXPORTS) \
25b42232
PB
11808 echo Configuring in $(HOST_SUBDIR)/gcc; \
11809 cd "$(HOST_SUBDIR)/gcc" || exit 1; \
295f4e42 11810 case $(srcdir) in \
215c351a
PB
11811 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11812 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
11813 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 11814 esac; \
215c351a
PB
11815 srcdiroption="--srcdir=$${topdir}/gcc"; \
11816 libsrcdir="$$s/gcc"; \
295f4e42 11817 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 11818 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 11819 || exit 1
d32ab992 11820@endif gcc
1358ccea 11821
25b42232
PB
11822
11823
ce406537
PB
11824.PHONY: configure-stage1-gcc maybe-configure-stage1-gcc
11825maybe-configure-stage1-gcc:
11826@if gcc-bootstrap
11827maybe-configure-stage1-gcc: configure-stage1-gcc
f41d6665 11828configure-stage1-gcc:
cc11cc9b 11829 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-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 echo Configuring stage 1 in $(HOST_SUBDIR)/gcc ; \
f41d6665 11836 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \
ce406537
PB
11837 cd $(HOST_SUBDIR)/gcc || exit 1; \
11838 case $(srcdir) in \
11839 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11840 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
11841 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11842 esac; \
11843 srcdiroption="--srcdir=$${topdir}/gcc"; \
11844 libsrcdir="$$s/gcc"; \
11845 $(SHELL) $${libsrcdir}/configure \
11846 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 11847 \
ce406537
PB
11848 --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
11849@endif gcc-bootstrap
11850
11851.PHONY: configure-stage2-gcc maybe-configure-stage2-gcc
11852maybe-configure-stage2-gcc:
11853@if gcc-bootstrap
11854maybe-configure-stage2-gcc: configure-stage2-gcc
f41d6665 11855configure-stage2-gcc:
cc11cc9b 11856 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-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 2 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} \
57255173 11875 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
11876 @stage2_werror_flag@
11877@endif gcc-bootstrap
11878
11879.PHONY: configure-stage3-gcc maybe-configure-stage3-gcc
11880maybe-configure-stage3-gcc:
11881@if gcc-bootstrap
11882maybe-configure-stage3-gcc: configure-stage3-gcc
f41d6665 11883configure-stage3-gcc:
cc11cc9b 11884 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
f41d6665 11885 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
cc11cc9b
PB
11886 @r=`${PWD_COMMAND}`; export r; \
11887 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 11888 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
ce406537
PB
11889 $(HOST_EXPORTS) \
11890 $(POSTSTAGE1_HOST_EXPORTS) \
11891 echo Configuring stage 3 in $(HOST_SUBDIR)/gcc ; \
f41d6665 11892 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \
ce406537
PB
11893 cd $(HOST_SUBDIR)/gcc || exit 1; \
11894 case $(srcdir) in \
11895 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11896 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
11897 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11898 esac; \
11899 srcdiroption="--srcdir=$${topdir}/gcc"; \
11900 libsrcdir="$$s/gcc"; \
11901 $(SHELL) $${libsrcdir}/configure \
11902 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 11903 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
11904 @stage2_werror_flag@
11905@endif gcc-bootstrap
11906
11907.PHONY: configure-stage4-gcc maybe-configure-stage4-gcc
11908maybe-configure-stage4-gcc:
11909@if gcc-bootstrap
11910maybe-configure-stage4-gcc: configure-stage4-gcc
f41d6665 11911configure-stage4-gcc:
cc11cc9b 11912 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
f41d6665 11913 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
cc11cc9b
PB
11914 @r=`${PWD_COMMAND}`; export r; \
11915 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 11916 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
ce406537
PB
11917 $(HOST_EXPORTS) \
11918 $(POSTSTAGE1_HOST_EXPORTS) \
11919 echo Configuring stage 4 in $(HOST_SUBDIR)/gcc ; \
f41d6665 11920 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \
ce406537
PB
11921 cd $(HOST_SUBDIR)/gcc || exit 1; \
11922 case $(srcdir) in \
11923 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11924 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
11925 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11926 esac; \
11927 srcdiroption="--srcdir=$${topdir}/gcc"; \
11928 libsrcdir="$$s/gcc"; \
11929 $(SHELL) $${libsrcdir}/configure \
11930 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 11931 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
11932 @stage2_werror_flag@
11933@endif gcc-bootstrap
11934
11935.PHONY: configure-stageprofile-gcc maybe-configure-stageprofile-gcc
11936maybe-configure-stageprofile-gcc:
11937@if gcc-bootstrap
11938maybe-configure-stageprofile-gcc: configure-stageprofile-gcc
f41d6665 11939configure-stageprofile-gcc:
cc11cc9b 11940 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
f41d6665 11941 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
cc11cc9b
PB
11942 @r=`${PWD_COMMAND}`; export r; \
11943 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 11944 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
ce406537
PB
11945 $(HOST_EXPORTS) \
11946 $(POSTSTAGE1_HOST_EXPORTS) \
11947 echo Configuring stage profile in $(HOST_SUBDIR)/gcc ; \
f41d6665 11948 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \
ce406537
PB
11949 cd $(HOST_SUBDIR)/gcc || exit 1; \
11950 case $(srcdir) in \
11951 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11952 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
11953 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11954 esac; \
11955 srcdiroption="--srcdir=$${topdir}/gcc"; \
11956 libsrcdir="$$s/gcc"; \
11957 $(SHELL) $${libsrcdir}/configure \
11958 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 11959 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
11960 @stage2_werror_flag@
11961@endif gcc-bootstrap
11962
11963.PHONY: configure-stagefeedback-gcc maybe-configure-stagefeedback-gcc
11964maybe-configure-stagefeedback-gcc:
11965@if gcc-bootstrap
11966maybe-configure-stagefeedback-gcc: configure-stagefeedback-gcc
f41d6665 11967configure-stagefeedback-gcc:
cc11cc9b 11968 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
f41d6665 11969 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
cc11cc9b
PB
11970 @r=`${PWD_COMMAND}`; export r; \
11971 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 11972 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
ce406537
PB
11973 $(HOST_EXPORTS) \
11974 $(POSTSTAGE1_HOST_EXPORTS) \
11975 echo Configuring stage feedback in $(HOST_SUBDIR)/gcc ; \
f41d6665 11976 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \
ce406537
PB
11977 cd $(HOST_SUBDIR)/gcc || exit 1; \
11978 case $(srcdir) in \
11979 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11980 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
11981 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11982 esac; \
11983 srcdiroption="--srcdir=$${topdir}/gcc"; \
11984 libsrcdir="$$s/gcc"; \
11985 $(SHELL) $${libsrcdir}/configure \
11986 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 11987 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
11988 @stage2_werror_flag@
11989@endif gcc-bootstrap
11990
11991
11992
11993
11994
d32ab992
PB
11995.PHONY: all-gcc maybe-all-gcc
11996maybe-all-gcc:
3ff3adad
PB
11997@if gcc-bootstrap
11998all-gcc: stage_current
11999@endif gcc-bootstrap
d32ab992 12000@if gcc
b88a7564 12001TARGET-gcc=`if [ -f stage_last ]; then echo quickstrap ; else echo all; fi`
d32ab992
PB
12002maybe-all-gcc: all-gcc
12003all-gcc: configure-gcc
cc11cc9b 12004 @r=`${PWD_COMMAND}`; export r; \
295f4e42 12005 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12006 $(HOST_EXPORTS) \
215c351a
PB
12007 (cd $(HOST_SUBDIR)/gcc && \
12008 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) $(TARGET-gcc))
d32ab992 12009@endif gcc
1358ccea 12010
25b42232 12011
ce406537
PB
12012
12013.PHONY: all-stage1-gcc maybe-all-stage1-gcc
12014.PHONY: clean-stage1-gcc maybe-clean-stage1-gcc
12015maybe-all-stage1-gcc:
12016maybe-clean-stage1-gcc:
12017@if gcc-bootstrap
12018maybe-all-stage1-gcc: all-stage1-gcc
12019all-stage1: all-stage1-gcc
1061f99e 12020TARGET-stage1-gcc = $(TARGET-gcc)
ce406537 12021all-stage1-gcc: configure-stage1-gcc
cc11cc9b 12022 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
ce406537
PB
12023 @r=`${PWD_COMMAND}`; export r; \
12024 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12025 $(HOST_EXPORTS) \
12026 cd $(HOST_SUBDIR)/gcc && \
cc11cc9b 12027 $(MAKE) $(FLAGS_TO_PASS) CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" $(EXTRA_GCC_FLAGS) \
1061f99e 12028 $(TARGET-stage1-gcc)
ce406537
PB
12029
12030maybe-clean-stage1-gcc: clean-stage1-gcc
12031clean-stage1: clean-stage1-gcc
12032clean-stage1-gcc:
12033 @[ -f $(HOST_SUBDIR)/gcc/Makefile ] || [ -f $(HOST_SUBDIR)/stage1-gcc/Makefile ] \
12034 || exit 0 ; \
cc11cc9b 12035 [ $(current_stage) = stage1 ] || $(MAKE) stage1-start; \
ce406537
PB
12036 cd $(HOST_SUBDIR)/gcc && \
12037 $(MAKE) $(FLAGS_TO_PASS) \
cc11cc9b 12038 CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" $(EXTRA_GCC_FLAGS) clean
ce406537
PB
12039@endif gcc-bootstrap
12040
12041
12042.PHONY: all-stage2-gcc maybe-all-stage2-gcc
12043.PHONY: clean-stage2-gcc maybe-clean-stage2-gcc
12044maybe-all-stage2-gcc:
12045maybe-clean-stage2-gcc:
12046@if gcc-bootstrap
12047maybe-all-stage2-gcc: all-stage2-gcc
12048all-stage2: all-stage2-gcc
1061f99e 12049TARGET-stage2-gcc = $(TARGET-gcc)
ce406537 12050all-stage2-gcc: configure-stage2-gcc
cc11cc9b 12051 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
ce406537
PB
12052 @r=`${PWD_COMMAND}`; export r; \
12053 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12054 $(HOST_EXPORTS) \
12055 $(POSTSTAGE1_HOST_EXPORTS) \
12056 cd $(HOST_SUBDIR)/gcc && \
1061f99e
PB
12057 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
12058 $(TARGET-stage2-gcc)
ce406537
PB
12059
12060maybe-clean-stage2-gcc: clean-stage2-gcc
12061clean-stage2: clean-stage2-gcc
12062clean-stage2-gcc:
12063 @[ -f $(HOST_SUBDIR)/gcc/Makefile ] || [ -f $(HOST_SUBDIR)/stage2-gcc/Makefile ] \
12064 || exit 0 ; \
cc11cc9b 12065 [ $(current_stage) = stage2 ] || $(MAKE) stage2-start; \
ce406537
PB
12066 cd $(HOST_SUBDIR)/gcc && \
12067 $(MAKE) $(FLAGS_TO_PASS) \
12068 $(POSTSTAGE1_FLAGS_TO_PASS) \
12069 $(EXTRA_GCC_FLAGS) clean
12070@endif gcc-bootstrap
12071
12072
12073.PHONY: all-stage3-gcc maybe-all-stage3-gcc
12074.PHONY: clean-stage3-gcc maybe-clean-stage3-gcc
12075maybe-all-stage3-gcc:
12076maybe-clean-stage3-gcc:
12077@if gcc-bootstrap
12078maybe-all-stage3-gcc: all-stage3-gcc
12079all-stage3: all-stage3-gcc
1061f99e 12080TARGET-stage3-gcc = $(TARGET-gcc)
ce406537 12081all-stage3-gcc: configure-stage3-gcc
cc11cc9b 12082 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
ce406537
PB
12083 @r=`${PWD_COMMAND}`; export r; \
12084 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12085 $(HOST_EXPORTS) \
12086 $(POSTSTAGE1_HOST_EXPORTS) \
12087 cd $(HOST_SUBDIR)/gcc && \
1061f99e
PB
12088 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
12089 $(TARGET-stage3-gcc)
ce406537
PB
12090
12091maybe-clean-stage3-gcc: clean-stage3-gcc
12092clean-stage3: clean-stage3-gcc
12093clean-stage3-gcc:
12094 @[ -f $(HOST_SUBDIR)/gcc/Makefile ] || [ -f $(HOST_SUBDIR)/stage3-gcc/Makefile ] \
12095 || exit 0 ; \
cc11cc9b 12096 [ $(current_stage) = stage3 ] || $(MAKE) stage3-start; \
ce406537
PB
12097 cd $(HOST_SUBDIR)/gcc && \
12098 $(MAKE) $(FLAGS_TO_PASS) \
12099 $(POSTSTAGE1_FLAGS_TO_PASS) \
12100 $(EXTRA_GCC_FLAGS) clean
12101@endif gcc-bootstrap
12102
12103
12104.PHONY: all-stage4-gcc maybe-all-stage4-gcc
12105.PHONY: clean-stage4-gcc maybe-clean-stage4-gcc
12106maybe-all-stage4-gcc:
12107maybe-clean-stage4-gcc:
12108@if gcc-bootstrap
12109maybe-all-stage4-gcc: all-stage4-gcc
12110all-stage4: all-stage4-gcc
1061f99e 12111TARGET-stage4-gcc = $(TARGET-gcc)
ce406537 12112all-stage4-gcc: configure-stage4-gcc
cc11cc9b 12113 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
ce406537
PB
12114 @r=`${PWD_COMMAND}`; export r; \
12115 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12116 $(HOST_EXPORTS) \
12117 $(POSTSTAGE1_HOST_EXPORTS) \
12118 cd $(HOST_SUBDIR)/gcc && \
1061f99e
PB
12119 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
12120 $(TARGET-stage4-gcc)
ce406537
PB
12121
12122maybe-clean-stage4-gcc: clean-stage4-gcc
12123clean-stage4: clean-stage4-gcc
12124clean-stage4-gcc:
12125 @[ -f $(HOST_SUBDIR)/gcc/Makefile ] || [ -f $(HOST_SUBDIR)/stage4-gcc/Makefile ] \
12126 || exit 0 ; \
cc11cc9b 12127 [ $(current_stage) = stage4 ] || $(MAKE) stage4-start; \
ce406537
PB
12128 cd $(HOST_SUBDIR)/gcc && \
12129 $(MAKE) $(FLAGS_TO_PASS) \
12130 $(POSTSTAGE1_FLAGS_TO_PASS) \
12131 $(EXTRA_GCC_FLAGS) clean
12132@endif gcc-bootstrap
12133
12134
12135.PHONY: all-stageprofile-gcc maybe-all-stageprofile-gcc
12136.PHONY: clean-stageprofile-gcc maybe-clean-stageprofile-gcc
12137maybe-all-stageprofile-gcc:
12138maybe-clean-stageprofile-gcc:
12139@if gcc-bootstrap
12140maybe-all-stageprofile-gcc: all-stageprofile-gcc
12141all-stageprofile: all-stageprofile-gcc
1061f99e 12142TARGET-stageprofile-gcc = $(TARGET-gcc)
ce406537 12143all-stageprofile-gcc: configure-stageprofile-gcc
cc11cc9b 12144 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
ce406537
PB
12145 @r=`${PWD_COMMAND}`; export r; \
12146 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12147 $(HOST_EXPORTS) \
12148 $(POSTSTAGE1_HOST_EXPORTS) \
12149 cd $(HOST_SUBDIR)/gcc && \
1061f99e
PB
12150 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" $(EXTRA_GCC_FLAGS) \
12151 $(TARGET-stageprofile-gcc)
ce406537
PB
12152
12153maybe-clean-stageprofile-gcc: clean-stageprofile-gcc
12154clean-stageprofile: clean-stageprofile-gcc
12155clean-stageprofile-gcc:
12156 @[ -f $(HOST_SUBDIR)/gcc/Makefile ] || [ -f $(HOST_SUBDIR)/stageprofile-gcc/Makefile ] \
12157 || exit 0 ; \
cc11cc9b 12158 [ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start; \
ce406537
PB
12159 cd $(HOST_SUBDIR)/gcc && \
12160 $(MAKE) $(FLAGS_TO_PASS) \
12161 $(POSTSTAGE1_FLAGS_TO_PASS) \
12162 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" $(EXTRA_GCC_FLAGS) clean
12163@endif gcc-bootstrap
12164
12165
12166.PHONY: all-stagefeedback-gcc maybe-all-stagefeedback-gcc
12167.PHONY: clean-stagefeedback-gcc maybe-clean-stagefeedback-gcc
12168maybe-all-stagefeedback-gcc:
12169maybe-clean-stagefeedback-gcc:
12170@if gcc-bootstrap
12171maybe-all-stagefeedback-gcc: all-stagefeedback-gcc
12172all-stagefeedback: all-stagefeedback-gcc
1061f99e 12173TARGET-stagefeedback-gcc = $(TARGET-gcc)
ce406537 12174all-stagefeedback-gcc: configure-stagefeedback-gcc
cc11cc9b 12175 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
ce406537
PB
12176 @r=`${PWD_COMMAND}`; export r; \
12177 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12178 $(HOST_EXPORTS) \
12179 $(POSTSTAGE1_HOST_EXPORTS) \
12180 cd $(HOST_SUBDIR)/gcc && \
1061f99e
PB
12181 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-use" $(EXTRA_GCC_FLAGS) \
12182 $(TARGET-stagefeedback-gcc)
ce406537
PB
12183
12184maybe-clean-stagefeedback-gcc: clean-stagefeedback-gcc
12185clean-stagefeedback: clean-stagefeedback-gcc
12186clean-stagefeedback-gcc:
12187 @[ -f $(HOST_SUBDIR)/gcc/Makefile ] || [ -f $(HOST_SUBDIR)/stagefeedback-gcc/Makefile ] \
12188 || exit 0 ; \
cc11cc9b 12189 [ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start; \
ce406537
PB
12190 cd $(HOST_SUBDIR)/gcc && \
12191 $(MAKE) $(FLAGS_TO_PASS) \
12192 $(POSTSTAGE1_FLAGS_TO_PASS) \
12193 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" $(EXTRA_GCC_FLAGS) clean
12194@endif gcc-bootstrap
12195
12196
12197
12198
12199
d32ab992
PB
12200.PHONY: check-gcc maybe-check-gcc
12201maybe-check-gcc:
12202@if gcc
12203maybe-check-gcc: check-gcc
1358ccea 12204
d32ab992 12205check-gcc:
f41d6665 12206 @: $(MAKE); $(unstage)
295f4e42 12207 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 12208 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12209 $(HOST_EXPORTS) \
215c351a
PB
12210 (cd $(HOST_SUBDIR)/gcc && \
12211 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) check)
1358ccea 12212
d32ab992 12213@endif gcc
1358ccea 12214
d32ab992
PB
12215.PHONY: install-gcc maybe-install-gcc
12216maybe-install-gcc:
12217@if gcc
12218maybe-install-gcc: install-gcc
1358ccea 12219
d32ab992 12220install-gcc: installdirs
f41d6665 12221 @: $(MAKE); $(unstage)
295f4e42 12222 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 12223 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12224 $(HOST_EXPORTS) \
215c351a 12225 (cd $(HOST_SUBDIR)/gcc && \
ace9ac7b 12226 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) install)
1358ccea 12227
d32ab992 12228@endif gcc
1358ccea 12229
295f4e42 12230# Other targets (info, dvi, etc.)
1358ccea 12231
d32ab992
PB
12232.PHONY: maybe-info-gcc info-gcc
12233maybe-info-gcc:
12234@if gcc
12235maybe-info-gcc: info-gcc
1358ccea 12236
d32ab992 12237info-gcc: \
05750653 12238 configure-gcc
d32ab992 12239 @[ -f ./gcc/Makefile ] || exit 0; \
8c90b13a
L
12240 r=`${PWD_COMMAND}`; export r; \
12241 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12242 $(HOST_EXPORTS) \
d32ab992 12243 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
1358ccea
NN
12244 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12245 done; \
d32ab992 12246 echo "Doing info in gcc" ; \
215c351a 12247 (cd $(HOST_SUBDIR)/gcc && \
1358ccea
NN
12248 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12249 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12250 "RANLIB=$${RANLIB}" \
12251 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12252 info) \
1358ccea
NN
12253 || exit 1
12254
d32ab992 12255@endif gcc
1358ccea 12256
d32ab992
PB
12257.PHONY: maybe-dvi-gcc dvi-gcc
12258maybe-dvi-gcc:
12259@if gcc
12260maybe-dvi-gcc: dvi-gcc
1358ccea 12261
d32ab992 12262dvi-gcc: \
05750653 12263 configure-gcc
d32ab992 12264 @[ -f ./gcc/Makefile ] || exit 0; \
8c90b13a
L
12265 r=`${PWD_COMMAND}`; export r; \
12266 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12267 $(HOST_EXPORTS) \
d32ab992 12268 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
1358ccea
NN
12269 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12270 done; \
d32ab992 12271 echo "Doing dvi in gcc" ; \
215c351a 12272 (cd $(HOST_SUBDIR)/gcc && \
1358ccea
NN
12273 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12274 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12275 "RANLIB=$${RANLIB}" \
12276 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12277 dvi) \
1358ccea
NN
12278 || exit 1
12279
d32ab992 12280@endif gcc
1358ccea 12281
f87a2b2e
MS
12282.PHONY: maybe-html-gcc html-gcc
12283maybe-html-gcc:
12284@if gcc
12285maybe-html-gcc: html-gcc
12286
12287html-gcc: \
05750653 12288 configure-gcc
f87a2b2e
MS
12289 @[ -f ./gcc/Makefile ] || exit 0; \
12290 r=`${PWD_COMMAND}`; export r; \
12291 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
12292 $(HOST_EXPORTS) \
12293 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
12294 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12295 done; \
12296 echo "Doing html in gcc" ; \
215c351a 12297 (cd $(HOST_SUBDIR)/gcc && \
f87a2b2e
MS
12298 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12299 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12300 "RANLIB=$${RANLIB}" \
12301 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12302 html) \
12303 || exit 1
12304
12305@endif gcc
12306
d32ab992
PB
12307.PHONY: maybe-TAGS-gcc TAGS-gcc
12308maybe-TAGS-gcc:
12309@if gcc
12310maybe-TAGS-gcc: TAGS-gcc
1358ccea 12311
d32ab992 12312TAGS-gcc: \
05750653 12313 configure-gcc
d32ab992 12314 @[ -f ./gcc/Makefile ] || exit 0; \
8c90b13a
L
12315 r=`${PWD_COMMAND}`; export r; \
12316 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12317 $(HOST_EXPORTS) \
d32ab992 12318 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
1358ccea
NN
12319 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12320 done; \
d32ab992 12321 echo "Doing TAGS in gcc" ; \
215c351a 12322 (cd $(HOST_SUBDIR)/gcc && \
1358ccea
NN
12323 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12324 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12325 "RANLIB=$${RANLIB}" \
12326 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12327 TAGS) \
1358ccea
NN
12328 || exit 1
12329
d32ab992 12330@endif gcc
1358ccea 12331
d32ab992
PB
12332.PHONY: maybe-install-info-gcc install-info-gcc
12333maybe-install-info-gcc:
12334@if gcc
12335maybe-install-info-gcc: install-info-gcc
1358ccea 12336
d32ab992
PB
12337install-info-gcc: \
12338 configure-gcc \
05750653 12339 info-gcc
d32ab992 12340 @[ -f ./gcc/Makefile ] || exit 0; \
8c90b13a
L
12341 r=`${PWD_COMMAND}`; export r; \
12342 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12343 $(HOST_EXPORTS) \
d32ab992 12344 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
1358ccea
NN
12345 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12346 done; \
d32ab992 12347 echo "Doing install-info in gcc" ; \
215c351a 12348 (cd $(HOST_SUBDIR)/gcc && \
1358ccea
NN
12349 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12350 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12351 "RANLIB=$${RANLIB}" \
12352 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12353 install-info) \
1358ccea
NN
12354 || exit 1
12355
d32ab992 12356@endif gcc
1358ccea 12357
65d6e994
CD
12358.PHONY: maybe-install-html-gcc install-html-gcc
12359maybe-install-html-gcc:
12360@if gcc
12361maybe-install-html-gcc: install-html-gcc
12362
12363install-html-gcc: \
12364 configure-gcc \
12365 html-gcc
12366 @[ -f ./gcc/Makefile ] || exit 0; \
12367 r=`${PWD_COMMAND}`; export r; \
12368 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12369 $(HOST_EXPORTS) \
12370 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
12371 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12372 done; \
12373 echo "Doing install-html in gcc" ; \
12374 (cd $(HOST_SUBDIR)/gcc && \
12375 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12376 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12377 "RANLIB=$${RANLIB}" \
12378 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12379 install-html) \
12380 || exit 1
12381
12382@endif gcc
12383
d32ab992
PB
12384.PHONY: maybe-installcheck-gcc installcheck-gcc
12385maybe-installcheck-gcc:
12386@if gcc
12387maybe-installcheck-gcc: installcheck-gcc
1358ccea 12388
d32ab992 12389installcheck-gcc: \
05750653 12390 configure-gcc
d32ab992 12391 @[ -f ./gcc/Makefile ] || exit 0; \
8c90b13a
L
12392 r=`${PWD_COMMAND}`; export r; \
12393 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12394 $(HOST_EXPORTS) \
d32ab992 12395 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
1358ccea
NN
12396 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12397 done; \
d32ab992 12398 echo "Doing installcheck in gcc" ; \
215c351a 12399 (cd $(HOST_SUBDIR)/gcc && \
1358ccea
NN
12400 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12401 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12402 "RANLIB=$${RANLIB}" \
12403 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12404 installcheck) \
1358ccea
NN
12405 || exit 1
12406
d32ab992 12407@endif gcc
1358ccea 12408
d32ab992
PB
12409.PHONY: maybe-mostlyclean-gcc mostlyclean-gcc
12410maybe-mostlyclean-gcc:
12411@if gcc
12412maybe-mostlyclean-gcc: mostlyclean-gcc
1358ccea 12413
05750653 12414mostlyclean-gcc:
d32ab992 12415 @[ -f ./gcc/Makefile ] || exit 0; \
8c90b13a
L
12416 r=`${PWD_COMMAND}`; export r; \
12417 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12418 $(HOST_EXPORTS) \
d32ab992 12419 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
1358ccea
NN
12420 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12421 done; \
d32ab992 12422 echo "Doing mostlyclean in gcc" ; \
215c351a 12423 (cd $(HOST_SUBDIR)/gcc && \
1358ccea
NN
12424 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12425 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12426 "RANLIB=$${RANLIB}" \
12427 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12428 mostlyclean) \
1358ccea
NN
12429 || exit 1
12430
d32ab992 12431@endif gcc
1358ccea 12432
d32ab992
PB
12433.PHONY: maybe-clean-gcc clean-gcc
12434maybe-clean-gcc:
12435@if gcc
12436maybe-clean-gcc: clean-gcc
1358ccea 12437
05750653 12438clean-gcc:
d32ab992 12439 @[ -f ./gcc/Makefile ] || exit 0; \
8c90b13a
L
12440 r=`${PWD_COMMAND}`; export r; \
12441 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12442 $(HOST_EXPORTS) \
d32ab992 12443 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
1358ccea
NN
12444 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12445 done; \
d32ab992 12446 echo "Doing clean in gcc" ; \
215c351a 12447 (cd $(HOST_SUBDIR)/gcc && \
1358ccea
NN
12448 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12449 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12450 "RANLIB=$${RANLIB}" \
12451 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12452 clean) \
1358ccea
NN
12453 || exit 1
12454
d32ab992 12455@endif gcc
1358ccea 12456
d32ab992
PB
12457.PHONY: maybe-distclean-gcc distclean-gcc
12458maybe-distclean-gcc:
12459@if gcc
12460maybe-distclean-gcc: distclean-gcc
1358ccea 12461
05750653 12462distclean-gcc:
d32ab992 12463 @[ -f ./gcc/Makefile ] || exit 0; \
8c90b13a
L
12464 r=`${PWD_COMMAND}`; export r; \
12465 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12466 $(HOST_EXPORTS) \
d32ab992 12467 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
1358ccea
NN
12468 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12469 done; \
d32ab992 12470 echo "Doing distclean in gcc" ; \
215c351a 12471 (cd $(HOST_SUBDIR)/gcc && \
1358ccea
NN
12472 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12473 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12474 "RANLIB=$${RANLIB}" \
12475 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12476 distclean) \
1358ccea
NN
12477 || exit 1
12478
d32ab992 12479@endif gcc
1358ccea 12480
d32ab992
PB
12481.PHONY: maybe-maintainer-clean-gcc maintainer-clean-gcc
12482maybe-maintainer-clean-gcc:
12483@if gcc
12484maybe-maintainer-clean-gcc: maintainer-clean-gcc
1358ccea 12485
05750653 12486maintainer-clean-gcc:
d32ab992 12487 @[ -f ./gcc/Makefile ] || exit 0; \
8c90b13a
L
12488 r=`${PWD_COMMAND}`; export r; \
12489 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12490 $(HOST_EXPORTS) \
d32ab992 12491 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
1358ccea
NN
12492 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12493 done; \
d32ab992 12494 echo "Doing maintainer-clean in gcc" ; \
215c351a 12495 (cd $(HOST_SUBDIR)/gcc && \
1358ccea
NN
12496 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12497 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12498 "RANLIB=$${RANLIB}" \
12499 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12500 maintainer-clean) \
1358ccea
NN
12501 || exit 1
12502
d32ab992 12503@endif gcc
1358ccea 12504
1358ccea 12505
25b42232 12506
d32ab992
PB
12507.PHONY: configure-gawk maybe-configure-gawk
12508maybe-configure-gawk:
3ff3adad
PB
12509@if gcc-bootstrap
12510configure-gawk: stage_current
12511@endif gcc-bootstrap
d32ab992
PB
12512@if gawk
12513maybe-configure-gawk: configure-gawk
cc11cc9b 12514configure-gawk:
f41d6665 12515 @: $(MAKE); $(unstage)
cc11cc9b 12516 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 12517 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
12518 test ! -f $(HOST_SUBDIR)/gawk/Makefile || exit 0; \
12519 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gawk ; \
4fc4dd12 12520 $(HOST_EXPORTS) \
25b42232
PB
12521 echo Configuring in $(HOST_SUBDIR)/gawk; \
12522 cd "$(HOST_SUBDIR)/gawk" || exit 1; \
295f4e42 12523 case $(srcdir) in \
215c351a
PB
12524 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12525 *) topdir=`echo $(HOST_SUBDIR)/gawk/ | \
12526 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 12527 esac; \
215c351a
PB
12528 srcdiroption="--srcdir=$${topdir}/gawk"; \
12529 libsrcdir="$$s/gawk"; \
295f4e42 12530 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 12531 $(HOST_CONFIGARGS) $${srcdiroption} \
295f4e42 12532 || exit 1
d32ab992 12533@endif gawk
295f4e42 12534
25b42232
PB
12535
12536
ce406537
PB
12537
12538
d32ab992
PB
12539.PHONY: all-gawk maybe-all-gawk
12540maybe-all-gawk:
3ff3adad
PB
12541@if gcc-bootstrap
12542all-gawk: stage_current
12543@endif gcc-bootstrap
d32ab992 12544@if gawk
7e0b5752 12545TARGET-gawk=all
d32ab992
PB
12546maybe-all-gawk: all-gawk
12547all-gawk: configure-gawk
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
PB
12552 (cd $(HOST_SUBDIR)/gawk && \
12553 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-gawk))
d32ab992 12554@endif gawk
295f4e42 12555
25b42232 12556
ce406537
PB
12557
12558
d32ab992
PB
12559.PHONY: check-gawk maybe-check-gawk
12560maybe-check-gawk:
12561@if gawk
12562maybe-check-gawk: check-gawk
295f4e42 12563
d32ab992 12564check-gawk:
f41d6665 12565 @: $(MAKE); $(unstage)
295f4e42
NN
12566 @r=`${PWD_COMMAND}`; export r; \
12567 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12568 $(HOST_EXPORTS) \
215c351a
PB
12569 (cd $(HOST_SUBDIR)/gawk && \
12570 $(MAKE) $(FLAGS_TO_PASS) check)
295f4e42 12571
d32ab992 12572@endif gawk
295f4e42 12573
d32ab992
PB
12574.PHONY: install-gawk maybe-install-gawk
12575maybe-install-gawk:
12576@if gawk
12577maybe-install-gawk: install-gawk
295f4e42 12578
d32ab992 12579install-gawk: installdirs
f41d6665 12580 @: $(MAKE); $(unstage)
295f4e42
NN
12581 @r=`${PWD_COMMAND}`; export r; \
12582 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12583 $(HOST_EXPORTS) \
215c351a 12584 (cd $(HOST_SUBDIR)/gawk && \
ace9ac7b 12585 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 12586
d32ab992 12587@endif gawk
295f4e42
NN
12588
12589# Other targets (info, dvi, etc.)
12590
d32ab992
PB
12591.PHONY: maybe-info-gawk info-gawk
12592maybe-info-gawk:
12593@if gawk
12594maybe-info-gawk: info-gawk
295f4e42 12595
d32ab992 12596info-gawk: \
05750653 12597 configure-gawk
f41d6665 12598 @: $(MAKE); $(unstage)
d32ab992 12599 @[ -f ./gawk/Makefile ] || exit 0; \
295f4e42
NN
12600 r=`${PWD_COMMAND}`; export r; \
12601 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12602 $(HOST_EXPORTS) \
d32ab992 12603 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
12604 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12605 done; \
d32ab992 12606 echo "Doing info in gawk" ; \
215c351a 12607 (cd $(HOST_SUBDIR)/gawk && \
1358ccea
NN
12608 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12609 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12610 "RANLIB=$${RANLIB}" \
12611 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12612 info) \
1358ccea
NN
12613 || exit 1
12614
d32ab992 12615@endif gawk
1358ccea 12616
d32ab992
PB
12617.PHONY: maybe-dvi-gawk dvi-gawk
12618maybe-dvi-gawk:
12619@if gawk
12620maybe-dvi-gawk: dvi-gawk
1358ccea 12621
d32ab992 12622dvi-gawk: \
05750653 12623 configure-gawk
f41d6665 12624 @: $(MAKE); $(unstage)
d32ab992 12625 @[ -f ./gawk/Makefile ] || exit 0; \
8c90b13a
L
12626 r=`${PWD_COMMAND}`; export r; \
12627 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12628 $(HOST_EXPORTS) \
d32ab992 12629 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
12630 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12631 done; \
d32ab992 12632 echo "Doing dvi in gawk" ; \
215c351a 12633 (cd $(HOST_SUBDIR)/gawk && \
1358ccea
NN
12634 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12635 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12636 "RANLIB=$${RANLIB}" \
12637 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12638 dvi) \
1358ccea
NN
12639 || exit 1
12640
d32ab992 12641@endif gawk
1358ccea 12642
f87a2b2e
MS
12643.PHONY: maybe-html-gawk html-gawk
12644maybe-html-gawk:
12645@if gawk
12646maybe-html-gawk: html-gawk
12647
12648html-gawk: \
05750653 12649 configure-gawk
f41d6665 12650 @: $(MAKE); $(unstage)
f87a2b2e
MS
12651 @[ -f ./gawk/Makefile ] || exit 0; \
12652 r=`${PWD_COMMAND}`; export r; \
12653 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
12654 $(HOST_EXPORTS) \
12655 for flag in $(EXTRA_HOST_FLAGS) ; do \
12656 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12657 done; \
12658 echo "Doing html in gawk" ; \
215c351a 12659 (cd $(HOST_SUBDIR)/gawk && \
f87a2b2e
MS
12660 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12661 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12662 "RANLIB=$${RANLIB}" \
12663 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12664 html) \
12665 || exit 1
12666
12667@endif gawk
12668
d32ab992
PB
12669.PHONY: maybe-TAGS-gawk TAGS-gawk
12670maybe-TAGS-gawk:
12671@if gawk
12672maybe-TAGS-gawk: TAGS-gawk
d9cdb878 12673
d32ab992 12674TAGS-gawk: \
05750653 12675 configure-gawk
f41d6665 12676 @: $(MAKE); $(unstage)
d32ab992 12677 @[ -f ./gawk/Makefile ] || exit 0; \
d9cdb878
AC
12678 r=`${PWD_COMMAND}`; export r; \
12679 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12680 $(HOST_EXPORTS) \
d32ab992 12681 for flag in $(EXTRA_HOST_FLAGS) ; do \
d9cdb878
AC
12682 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12683 done; \
d32ab992 12684 echo "Doing TAGS in gawk" ; \
215c351a 12685 (cd $(HOST_SUBDIR)/gawk && \
d9cdb878
AC
12686 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12687 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12688 "RANLIB=$${RANLIB}" \
12689 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12690 TAGS) \
d9cdb878
AC
12691 || exit 1
12692
d32ab992 12693@endif gawk
d9cdb878 12694
d32ab992
PB
12695.PHONY: maybe-install-info-gawk install-info-gawk
12696maybe-install-info-gawk:
12697@if gawk
12698maybe-install-info-gawk: install-info-gawk
1358ccea 12699
d32ab992
PB
12700install-info-gawk: \
12701 configure-gawk \
05750653 12702 info-gawk
f41d6665 12703 @: $(MAKE); $(unstage)
d32ab992 12704 @[ -f ./gawk/Makefile ] || exit 0; \
8c90b13a
L
12705 r=`${PWD_COMMAND}`; export r; \
12706 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12707 $(HOST_EXPORTS) \
d32ab992 12708 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
12709 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12710 done; \
d32ab992 12711 echo "Doing install-info in gawk" ; \
215c351a 12712 (cd $(HOST_SUBDIR)/gawk && \
1358ccea
NN
12713 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12714 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12715 "RANLIB=$${RANLIB}" \
12716 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12717 install-info) \
1358ccea
NN
12718 || exit 1
12719
d32ab992 12720@endif gawk
1358ccea 12721
65d6e994
CD
12722.PHONY: maybe-install-html-gawk install-html-gawk
12723maybe-install-html-gawk:
12724@if gawk
12725maybe-install-html-gawk: install-html-gawk
12726
12727install-html-gawk: \
12728 configure-gawk \
12729 html-gawk
12730 @: $(MAKE); $(unstage)
12731 @[ -f ./gawk/Makefile ] || exit 0; \
12732 r=`${PWD_COMMAND}`; export r; \
12733 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12734 $(HOST_EXPORTS) \
12735 for flag in $(EXTRA_HOST_FLAGS) ; do \
12736 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12737 done; \
12738 echo "Doing install-html in gawk" ; \
12739 (cd $(HOST_SUBDIR)/gawk && \
12740 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12741 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12742 "RANLIB=$${RANLIB}" \
12743 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12744 install-html) \
12745 || exit 1
12746
12747@endif gawk
12748
d32ab992
PB
12749.PHONY: maybe-installcheck-gawk installcheck-gawk
12750maybe-installcheck-gawk:
12751@if gawk
12752maybe-installcheck-gawk: installcheck-gawk
1358ccea 12753
d32ab992 12754installcheck-gawk: \
05750653 12755 configure-gawk
f41d6665 12756 @: $(MAKE); $(unstage)
d32ab992 12757 @[ -f ./gawk/Makefile ] || exit 0; \
8c90b13a
L
12758 r=`${PWD_COMMAND}`; export r; \
12759 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12760 $(HOST_EXPORTS) \
d32ab992 12761 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
12762 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12763 done; \
d32ab992 12764 echo "Doing installcheck in gawk" ; \
215c351a 12765 (cd $(HOST_SUBDIR)/gawk && \
1358ccea
NN
12766 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12767 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12768 "RANLIB=$${RANLIB}" \
12769 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12770 installcheck) \
1358ccea
NN
12771 || exit 1
12772
d32ab992 12773@endif gawk
1358ccea 12774
d32ab992
PB
12775.PHONY: maybe-mostlyclean-gawk mostlyclean-gawk
12776maybe-mostlyclean-gawk:
12777@if gawk
12778maybe-mostlyclean-gawk: mostlyclean-gawk
1358ccea 12779
05750653 12780mostlyclean-gawk:
f41d6665 12781 @: $(MAKE); $(unstage)
d32ab992 12782 @[ -f ./gawk/Makefile ] || exit 0; \
8c90b13a
L
12783 r=`${PWD_COMMAND}`; export r; \
12784 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12785 $(HOST_EXPORTS) \
d32ab992 12786 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
12787 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12788 done; \
d32ab992 12789 echo "Doing mostlyclean in gawk" ; \
215c351a 12790 (cd $(HOST_SUBDIR)/gawk && \
1358ccea
NN
12791 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12792 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12793 "RANLIB=$${RANLIB}" \
12794 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12795 mostlyclean) \
1358ccea
NN
12796 || exit 1
12797
d32ab992 12798@endif gawk
1358ccea 12799
d32ab992
PB
12800.PHONY: maybe-clean-gawk clean-gawk
12801maybe-clean-gawk:
12802@if gawk
12803maybe-clean-gawk: clean-gawk
1358ccea 12804
05750653 12805clean-gawk:
f41d6665 12806 @: $(MAKE); $(unstage)
d32ab992 12807 @[ -f ./gawk/Makefile ] || exit 0; \
8c90b13a
L
12808 r=`${PWD_COMMAND}`; export r; \
12809 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12810 $(HOST_EXPORTS) \
d32ab992 12811 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
12812 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12813 done; \
d32ab992 12814 echo "Doing clean in gawk" ; \
215c351a 12815 (cd $(HOST_SUBDIR)/gawk && \
1358ccea
NN
12816 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12817 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12818 "RANLIB=$${RANLIB}" \
12819 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12820 clean) \
1358ccea
NN
12821 || exit 1
12822
d32ab992 12823@endif gawk
1358ccea 12824
d32ab992
PB
12825.PHONY: maybe-distclean-gawk distclean-gawk
12826maybe-distclean-gawk:
12827@if gawk
12828maybe-distclean-gawk: distclean-gawk
1358ccea 12829
05750653 12830distclean-gawk:
f41d6665 12831 @: $(MAKE); $(unstage)
d32ab992 12832 @[ -f ./gawk/Makefile ] || exit 0; \
8c90b13a
L
12833 r=`${PWD_COMMAND}`; export r; \
12834 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12835 $(HOST_EXPORTS) \
d32ab992 12836 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
12837 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12838 done; \
d32ab992 12839 echo "Doing distclean in gawk" ; \
215c351a 12840 (cd $(HOST_SUBDIR)/gawk && \
1358ccea
NN
12841 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12842 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12843 "RANLIB=$${RANLIB}" \
12844 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12845 distclean) \
1358ccea
NN
12846 || exit 1
12847
d32ab992 12848@endif gawk
1358ccea 12849
d32ab992
PB
12850.PHONY: maybe-maintainer-clean-gawk maintainer-clean-gawk
12851maybe-maintainer-clean-gawk:
12852@if gawk
12853maybe-maintainer-clean-gawk: maintainer-clean-gawk
1358ccea 12854
05750653 12855maintainer-clean-gawk:
f41d6665 12856 @: $(MAKE); $(unstage)
d32ab992 12857 @[ -f ./gawk/Makefile ] || exit 0; \
8c90b13a
L
12858 r=`${PWD_COMMAND}`; export r; \
12859 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12860 $(HOST_EXPORTS) \
d32ab992 12861 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
12862 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12863 done; \
d32ab992 12864 echo "Doing maintainer-clean in gawk" ; \
215c351a 12865 (cd $(HOST_SUBDIR)/gawk && \
1358ccea
NN
12866 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12867 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12868 "RANLIB=$${RANLIB}" \
12869 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12870 maintainer-clean) \
1358ccea
NN
12871 || exit 1
12872
d32ab992 12873@endif gawk
1358ccea 12874
1358ccea 12875
25b42232 12876
d32ab992
PB
12877.PHONY: configure-gettext maybe-configure-gettext
12878maybe-configure-gettext:
3ff3adad
PB
12879@if gcc-bootstrap
12880configure-gettext: stage_current
12881@endif gcc-bootstrap
d32ab992
PB
12882@if gettext
12883maybe-configure-gettext: configure-gettext
cc11cc9b 12884configure-gettext:
f41d6665 12885 @: $(MAKE); $(unstage)
cc11cc9b 12886 @r=`${PWD_COMMAND}`; export r; \
295f4e42 12887 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
12888 test ! -f $(HOST_SUBDIR)/gettext/Makefile || exit 0; \
12889 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gettext ; \
4fc4dd12 12890 $(HOST_EXPORTS) \
25b42232
PB
12891 echo Configuring in $(HOST_SUBDIR)/gettext; \
12892 cd "$(HOST_SUBDIR)/gettext" || exit 1; \
295f4e42 12893 case $(srcdir) in \
215c351a
PB
12894 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12895 *) topdir=`echo $(HOST_SUBDIR)/gettext/ | \
12896 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 12897 esac; \
215c351a
PB
12898 srcdiroption="--srcdir=$${topdir}/gettext"; \
12899 libsrcdir="$$s/gettext"; \
295f4e42 12900 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 12901 $(HOST_CONFIGARGS) $${srcdiroption} \
295f4e42 12902 || exit 1
d32ab992 12903@endif gettext
295f4e42 12904
25b42232
PB
12905
12906
ce406537
PB
12907
12908
d32ab992
PB
12909.PHONY: all-gettext maybe-all-gettext
12910maybe-all-gettext:
3ff3adad
PB
12911@if gcc-bootstrap
12912all-gettext: stage_current
12913@endif gcc-bootstrap
d32ab992 12914@if gettext
7e0b5752 12915TARGET-gettext=all
d32ab992
PB
12916maybe-all-gettext: all-gettext
12917all-gettext: configure-gettext
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
PB
12922 (cd $(HOST_SUBDIR)/gettext && \
12923 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-gettext))
d32ab992 12924@endif gettext
295f4e42 12925
25b42232 12926
ce406537
PB
12927
12928
d32ab992
PB
12929.PHONY: check-gettext maybe-check-gettext
12930maybe-check-gettext:
12931@if gettext
12932maybe-check-gettext: check-gettext
295f4e42 12933
d32ab992 12934check-gettext:
f41d6665 12935 @: $(MAKE); $(unstage)
295f4e42
NN
12936 @r=`${PWD_COMMAND}`; export r; \
12937 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12938 $(HOST_EXPORTS) \
215c351a
PB
12939 (cd $(HOST_SUBDIR)/gettext && \
12940 $(MAKE) $(FLAGS_TO_PASS) check)
295f4e42 12941
d32ab992 12942@endif gettext
295f4e42 12943
d32ab992
PB
12944.PHONY: install-gettext maybe-install-gettext
12945maybe-install-gettext:
12946@if gettext
12947maybe-install-gettext: install-gettext
295f4e42 12948
d32ab992 12949install-gettext: installdirs
f41d6665 12950 @: $(MAKE); $(unstage)
295f4e42
NN
12951 @r=`${PWD_COMMAND}`; export r; \
12952 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12953 $(HOST_EXPORTS) \
215c351a 12954 (cd $(HOST_SUBDIR)/gettext && \
ace9ac7b 12955 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 12956
d32ab992 12957@endif gettext
295f4e42
NN
12958
12959# Other targets (info, dvi, etc.)
12960
d32ab992
PB
12961.PHONY: maybe-info-gettext info-gettext
12962maybe-info-gettext:
12963@if gettext
12964maybe-info-gettext: info-gettext
295f4e42 12965
d32ab992 12966info-gettext: \
05750653 12967 configure-gettext
f41d6665 12968 @: $(MAKE); $(unstage)
d32ab992 12969 @[ -f ./gettext/Makefile ] || exit 0; \
8c90b13a
L
12970 r=`${PWD_COMMAND}`; export r; \
12971 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12972 $(HOST_EXPORTS) \
d32ab992 12973 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
12974 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12975 done; \
d32ab992 12976 echo "Doing info in gettext" ; \
215c351a 12977 (cd $(HOST_SUBDIR)/gettext && \
1358ccea
NN
12978 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12979 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12980 "RANLIB=$${RANLIB}" \
12981 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12982 info) \
1358ccea
NN
12983 || exit 1
12984
d32ab992 12985@endif gettext
1358ccea 12986
d32ab992
PB
12987.PHONY: maybe-dvi-gettext dvi-gettext
12988maybe-dvi-gettext:
12989@if gettext
12990maybe-dvi-gettext: dvi-gettext
1358ccea 12991
d32ab992 12992dvi-gettext: \
05750653 12993 configure-gettext
f41d6665 12994 @: $(MAKE); $(unstage)
d32ab992 12995 @[ -f ./gettext/Makefile ] || exit 0; \
8c90b13a
L
12996 r=`${PWD_COMMAND}`; export r; \
12997 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12998 $(HOST_EXPORTS) \
d32ab992 12999 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13000 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13001 done; \
d32ab992 13002 echo "Doing dvi in gettext" ; \
215c351a 13003 (cd $(HOST_SUBDIR)/gettext && \
1358ccea
NN
13004 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13005 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13006 "RANLIB=$${RANLIB}" \
13007 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13008 dvi) \
1358ccea
NN
13009 || exit 1
13010
d32ab992 13011@endif gettext
1358ccea 13012
f87a2b2e
MS
13013.PHONY: maybe-html-gettext html-gettext
13014maybe-html-gettext:
13015@if gettext
13016maybe-html-gettext: html-gettext
13017
13018html-gettext: \
05750653 13019 configure-gettext
f41d6665 13020 @: $(MAKE); $(unstage)
f87a2b2e
MS
13021 @[ -f ./gettext/Makefile ] || exit 0; \
13022 r=`${PWD_COMMAND}`; export r; \
13023 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
13024 $(HOST_EXPORTS) \
13025 for flag in $(EXTRA_HOST_FLAGS) ; do \
13026 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13027 done; \
13028 echo "Doing html in gettext" ; \
215c351a 13029 (cd $(HOST_SUBDIR)/gettext && \
f87a2b2e
MS
13030 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13031 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13032 "RANLIB=$${RANLIB}" \
13033 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13034 html) \
13035 || exit 1
13036
13037@endif gettext
13038
d32ab992
PB
13039.PHONY: maybe-TAGS-gettext TAGS-gettext
13040maybe-TAGS-gettext:
13041@if gettext
13042maybe-TAGS-gettext: TAGS-gettext
1358ccea 13043
d32ab992 13044TAGS-gettext: \
05750653 13045 configure-gettext
f41d6665 13046 @: $(MAKE); $(unstage)
d32ab992 13047 @[ -f ./gettext/Makefile ] || exit 0; \
8c90b13a
L
13048 r=`${PWD_COMMAND}`; export r; \
13049 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13050 $(HOST_EXPORTS) \
d32ab992 13051 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13052 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13053 done; \
d32ab992 13054 echo "Doing TAGS in gettext" ; \
215c351a 13055 (cd $(HOST_SUBDIR)/gettext && \
1358ccea
NN
13056 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13057 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13058 "RANLIB=$${RANLIB}" \
13059 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13060 TAGS) \
1358ccea
NN
13061 || exit 1
13062
d32ab992 13063@endif gettext
1358ccea 13064
d32ab992
PB
13065.PHONY: maybe-install-info-gettext install-info-gettext
13066maybe-install-info-gettext:
13067@if gettext
13068maybe-install-info-gettext: install-info-gettext
13069
13070install-info-gettext: \
13071 configure-gettext \
05750653 13072 info-gettext
f41d6665 13073 @: $(MAKE); $(unstage)
d32ab992 13074 @[ -f ./gettext/Makefile ] || exit 0; \
8c90b13a
L
13075 r=`${PWD_COMMAND}`; export r; \
13076 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13077 $(HOST_EXPORTS) \
d32ab992 13078 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13079 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13080 done; \
d32ab992 13081 echo "Doing install-info in gettext" ; \
215c351a 13082 (cd $(HOST_SUBDIR)/gettext && \
1358ccea
NN
13083 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13084 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13085 "RANLIB=$${RANLIB}" \
13086 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13087 install-info) \
1358ccea
NN
13088 || exit 1
13089
d32ab992 13090@endif gettext
1358ccea 13091
65d6e994
CD
13092.PHONY: maybe-install-html-gettext install-html-gettext
13093maybe-install-html-gettext:
13094@if gettext
13095maybe-install-html-gettext: install-html-gettext
13096
13097install-html-gettext: \
13098 configure-gettext \
13099 html-gettext
13100 @: $(MAKE); $(unstage)
13101 @[ -f ./gettext/Makefile ] || exit 0; \
13102 r=`${PWD_COMMAND}`; export r; \
13103 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13104 $(HOST_EXPORTS) \
13105 for flag in $(EXTRA_HOST_FLAGS) ; do \
13106 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13107 done; \
13108 echo "Doing install-html in gettext" ; \
13109 (cd $(HOST_SUBDIR)/gettext && \
13110 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13111 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13112 "RANLIB=$${RANLIB}" \
13113 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13114 install-html) \
13115 || exit 1
13116
13117@endif gettext
13118
d32ab992
PB
13119.PHONY: maybe-installcheck-gettext installcheck-gettext
13120maybe-installcheck-gettext:
13121@if gettext
13122maybe-installcheck-gettext: installcheck-gettext
1358ccea 13123
d32ab992 13124installcheck-gettext: \
05750653 13125 configure-gettext
f41d6665 13126 @: $(MAKE); $(unstage)
d32ab992 13127 @[ -f ./gettext/Makefile ] || exit 0; \
8c90b13a
L
13128 r=`${PWD_COMMAND}`; export r; \
13129 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13130 $(HOST_EXPORTS) \
d32ab992 13131 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13132 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13133 done; \
d32ab992 13134 echo "Doing installcheck in gettext" ; \
215c351a 13135 (cd $(HOST_SUBDIR)/gettext && \
1358ccea
NN
13136 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13137 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13138 "RANLIB=$${RANLIB}" \
13139 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13140 installcheck) \
1358ccea
NN
13141 || exit 1
13142
d32ab992 13143@endif gettext
1358ccea 13144
d32ab992
PB
13145.PHONY: maybe-mostlyclean-gettext mostlyclean-gettext
13146maybe-mostlyclean-gettext:
13147@if gettext
13148maybe-mostlyclean-gettext: mostlyclean-gettext
1358ccea 13149
05750653 13150mostlyclean-gettext:
f41d6665 13151 @: $(MAKE); $(unstage)
d32ab992 13152 @[ -f ./gettext/Makefile ] || exit 0; \
8c90b13a
L
13153 r=`${PWD_COMMAND}`; export r; \
13154 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13155 $(HOST_EXPORTS) \
d32ab992 13156 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13157 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13158 done; \
d32ab992 13159 echo "Doing mostlyclean in gettext" ; \
215c351a 13160 (cd $(HOST_SUBDIR)/gettext && \
1358ccea
NN
13161 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13162 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13163 "RANLIB=$${RANLIB}" \
13164 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13165 mostlyclean) \
1358ccea
NN
13166 || exit 1
13167
d32ab992 13168@endif gettext
1358ccea 13169
d32ab992
PB
13170.PHONY: maybe-clean-gettext clean-gettext
13171maybe-clean-gettext:
13172@if gettext
13173maybe-clean-gettext: clean-gettext
1358ccea 13174
05750653 13175clean-gettext:
f41d6665 13176 @: $(MAKE); $(unstage)
d32ab992 13177 @[ -f ./gettext/Makefile ] || exit 0; \
8c90b13a
L
13178 r=`${PWD_COMMAND}`; export r; \
13179 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13180 $(HOST_EXPORTS) \
d32ab992 13181 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13182 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13183 done; \
d32ab992 13184 echo "Doing clean in gettext" ; \
215c351a 13185 (cd $(HOST_SUBDIR)/gettext && \
1358ccea
NN
13186 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13187 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13188 "RANLIB=$${RANLIB}" \
13189 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13190 clean) \
1358ccea
NN
13191 || exit 1
13192
d32ab992 13193@endif gettext
1358ccea 13194
d32ab992
PB
13195.PHONY: maybe-distclean-gettext distclean-gettext
13196maybe-distclean-gettext:
13197@if gettext
13198maybe-distclean-gettext: distclean-gettext
1358ccea 13199
05750653 13200distclean-gettext:
f41d6665 13201 @: $(MAKE); $(unstage)
d32ab992 13202 @[ -f ./gettext/Makefile ] || exit 0; \
8c90b13a
L
13203 r=`${PWD_COMMAND}`; export r; \
13204 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13205 $(HOST_EXPORTS) \
d32ab992 13206 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13207 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13208 done; \
d32ab992 13209 echo "Doing distclean in gettext" ; \
215c351a 13210 (cd $(HOST_SUBDIR)/gettext && \
1358ccea
NN
13211 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13212 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13213 "RANLIB=$${RANLIB}" \
13214 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13215 distclean) \
1358ccea
NN
13216 || exit 1
13217
d32ab992 13218@endif gettext
1358ccea 13219
d32ab992
PB
13220.PHONY: maybe-maintainer-clean-gettext maintainer-clean-gettext
13221maybe-maintainer-clean-gettext:
13222@if gettext
13223maybe-maintainer-clean-gettext: maintainer-clean-gettext
1358ccea 13224
05750653 13225maintainer-clean-gettext:
f41d6665 13226 @: $(MAKE); $(unstage)
d32ab992 13227 @[ -f ./gettext/Makefile ] || exit 0; \
8c90b13a
L
13228 r=`${PWD_COMMAND}`; export r; \
13229 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13230 $(HOST_EXPORTS) \
d32ab992 13231 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13232 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13233 done; \
d32ab992 13234 echo "Doing maintainer-clean in gettext" ; \
215c351a 13235 (cd $(HOST_SUBDIR)/gettext && \
1358ccea
NN
13236 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13237 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13238 "RANLIB=$${RANLIB}" \
13239 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13240 maintainer-clean) \
1358ccea
NN
13241 || exit 1
13242
d32ab992 13243@endif gettext
1358ccea 13244
1358ccea 13245
25b42232 13246
d32ab992
PB
13247.PHONY: configure-gnuserv maybe-configure-gnuserv
13248maybe-configure-gnuserv:
3ff3adad
PB
13249@if gcc-bootstrap
13250configure-gnuserv: stage_current
13251@endif gcc-bootstrap
d32ab992
PB
13252@if gnuserv
13253maybe-configure-gnuserv: configure-gnuserv
cc11cc9b 13254configure-gnuserv:
f41d6665 13255 @: $(MAKE); $(unstage)
cc11cc9b 13256 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 13257 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
13258 test ! -f $(HOST_SUBDIR)/gnuserv/Makefile || exit 0; \
13259 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gnuserv ; \
4fc4dd12 13260 $(HOST_EXPORTS) \
25b42232
PB
13261 echo Configuring in $(HOST_SUBDIR)/gnuserv; \
13262 cd "$(HOST_SUBDIR)/gnuserv" || exit 1; \
295f4e42 13263 case $(srcdir) in \
215c351a
PB
13264 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
13265 *) topdir=`echo $(HOST_SUBDIR)/gnuserv/ | \
13266 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 13267 esac; \
215c351a
PB
13268 srcdiroption="--srcdir=$${topdir}/gnuserv"; \
13269 libsrcdir="$$s/gnuserv"; \
295f4e42 13270 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 13271 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 13272 || exit 1
d32ab992 13273@endif gnuserv
1358ccea 13274
25b42232
PB
13275
13276
ce406537
PB
13277
13278
d32ab992
PB
13279.PHONY: all-gnuserv maybe-all-gnuserv
13280maybe-all-gnuserv:
3ff3adad
PB
13281@if gcc-bootstrap
13282all-gnuserv: stage_current
13283@endif gcc-bootstrap
d32ab992 13284@if gnuserv
7e0b5752 13285TARGET-gnuserv=all
d32ab992
PB
13286maybe-all-gnuserv: all-gnuserv
13287all-gnuserv: configure-gnuserv
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
PB
13292 (cd $(HOST_SUBDIR)/gnuserv && \
13293 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-gnuserv))
d32ab992 13294@endif gnuserv
1358ccea 13295
25b42232 13296
ce406537
PB
13297
13298
d32ab992
PB
13299.PHONY: check-gnuserv maybe-check-gnuserv
13300maybe-check-gnuserv:
13301@if gnuserv
13302maybe-check-gnuserv: check-gnuserv
1358ccea 13303
d32ab992 13304check-gnuserv:
f41d6665 13305 @: $(MAKE); $(unstage)
295f4e42 13306 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 13307 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13308 $(HOST_EXPORTS) \
215c351a
PB
13309 (cd $(HOST_SUBDIR)/gnuserv && \
13310 $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 13311
d32ab992 13312@endif gnuserv
1358ccea 13313
d32ab992
PB
13314.PHONY: install-gnuserv maybe-install-gnuserv
13315maybe-install-gnuserv:
13316@if gnuserv
13317maybe-install-gnuserv: install-gnuserv
1358ccea 13318
d32ab992 13319install-gnuserv: installdirs
f41d6665 13320 @: $(MAKE); $(unstage)
295f4e42
NN
13321 @r=`${PWD_COMMAND}`; export r; \
13322 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13323 $(HOST_EXPORTS) \
215c351a 13324 (cd $(HOST_SUBDIR)/gnuserv && \
ace9ac7b 13325 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 13326
d32ab992 13327@endif gnuserv
295f4e42
NN
13328
13329# Other targets (info, dvi, etc.)
13330
d32ab992
PB
13331.PHONY: maybe-info-gnuserv info-gnuserv
13332maybe-info-gnuserv:
13333@if gnuserv
13334maybe-info-gnuserv: info-gnuserv
295f4e42 13335
d32ab992 13336info-gnuserv: \
05750653 13337 configure-gnuserv
f41d6665 13338 @: $(MAKE); $(unstage)
d32ab992 13339 @[ -f ./gnuserv/Makefile ] || exit 0; \
8c90b13a
L
13340 r=`${PWD_COMMAND}`; export r; \
13341 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13342 $(HOST_EXPORTS) \
d32ab992 13343 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13344 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13345 done; \
d32ab992 13346 echo "Doing info in gnuserv" ; \
215c351a 13347 (cd $(HOST_SUBDIR)/gnuserv && \
1358ccea
NN
13348 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13349 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13350 "RANLIB=$${RANLIB}" \
13351 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13352 info) \
1358ccea
NN
13353 || exit 1
13354
d32ab992 13355@endif gnuserv
1358ccea 13356
d32ab992
PB
13357.PHONY: maybe-dvi-gnuserv dvi-gnuserv
13358maybe-dvi-gnuserv:
13359@if gnuserv
13360maybe-dvi-gnuserv: dvi-gnuserv
1358ccea 13361
d32ab992 13362dvi-gnuserv: \
05750653 13363 configure-gnuserv
f41d6665 13364 @: $(MAKE); $(unstage)
d32ab992 13365 @[ -f ./gnuserv/Makefile ] || exit 0; \
8c90b13a
L
13366 r=`${PWD_COMMAND}`; export r; \
13367 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13368 $(HOST_EXPORTS) \
d32ab992 13369 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13370 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13371 done; \
d32ab992 13372 echo "Doing dvi in gnuserv" ; \
215c351a 13373 (cd $(HOST_SUBDIR)/gnuserv && \
1358ccea
NN
13374 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13375 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13376 "RANLIB=$${RANLIB}" \
13377 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13378 dvi) \
1358ccea
NN
13379 || exit 1
13380
d32ab992 13381@endif gnuserv
1358ccea 13382
f87a2b2e
MS
13383.PHONY: maybe-html-gnuserv html-gnuserv
13384maybe-html-gnuserv:
13385@if gnuserv
13386maybe-html-gnuserv: html-gnuserv
13387
13388html-gnuserv: \
05750653 13389 configure-gnuserv
f41d6665 13390 @: $(MAKE); $(unstage)
f87a2b2e
MS
13391 @[ -f ./gnuserv/Makefile ] || exit 0; \
13392 r=`${PWD_COMMAND}`; export r; \
13393 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
13394 $(HOST_EXPORTS) \
13395 for flag in $(EXTRA_HOST_FLAGS) ; do \
13396 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13397 done; \
13398 echo "Doing html in gnuserv" ; \
215c351a 13399 (cd $(HOST_SUBDIR)/gnuserv && \
f87a2b2e
MS
13400 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13401 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13402 "RANLIB=$${RANLIB}" \
13403 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13404 html) \
13405 || exit 1
13406
13407@endif gnuserv
13408
d32ab992
PB
13409.PHONY: maybe-TAGS-gnuserv TAGS-gnuserv
13410maybe-TAGS-gnuserv:
13411@if gnuserv
13412maybe-TAGS-gnuserv: TAGS-gnuserv
1358ccea 13413
d32ab992 13414TAGS-gnuserv: \
05750653 13415 configure-gnuserv
f41d6665 13416 @: $(MAKE); $(unstage)
d32ab992 13417 @[ -f ./gnuserv/Makefile ] || exit 0; \
8c90b13a
L
13418 r=`${PWD_COMMAND}`; export r; \
13419 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13420 $(HOST_EXPORTS) \
d32ab992 13421 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13422 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13423 done; \
d32ab992 13424 echo "Doing TAGS in gnuserv" ; \
215c351a 13425 (cd $(HOST_SUBDIR)/gnuserv && \
1358ccea
NN
13426 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13427 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13428 "RANLIB=$${RANLIB}" \
13429 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13430 TAGS) \
1358ccea
NN
13431 || exit 1
13432
d32ab992 13433@endif gnuserv
1358ccea 13434
d32ab992
PB
13435.PHONY: maybe-install-info-gnuserv install-info-gnuserv
13436maybe-install-info-gnuserv:
13437@if gnuserv
13438maybe-install-info-gnuserv: install-info-gnuserv
1358ccea 13439
d32ab992
PB
13440install-info-gnuserv: \
13441 configure-gnuserv \
05750653 13442 info-gnuserv
f41d6665 13443 @: $(MAKE); $(unstage)
d32ab992 13444 @[ -f ./gnuserv/Makefile ] || exit 0; \
8c90b13a
L
13445 r=`${PWD_COMMAND}`; export r; \
13446 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13447 $(HOST_EXPORTS) \
d32ab992 13448 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13449 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13450 done; \
d32ab992 13451 echo "Doing install-info in gnuserv" ; \
215c351a 13452 (cd $(HOST_SUBDIR)/gnuserv && \
1358ccea
NN
13453 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13454 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13455 "RANLIB=$${RANLIB}" \
13456 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13457 install-info) \
1358ccea
NN
13458 || exit 1
13459
d32ab992 13460@endif gnuserv
1358ccea 13461
65d6e994
CD
13462.PHONY: maybe-install-html-gnuserv install-html-gnuserv
13463maybe-install-html-gnuserv:
13464@if gnuserv
13465maybe-install-html-gnuserv: install-html-gnuserv
13466
13467install-html-gnuserv: \
13468 configure-gnuserv \
13469 html-gnuserv
13470 @: $(MAKE); $(unstage)
13471 @[ -f ./gnuserv/Makefile ] || exit 0; \
13472 r=`${PWD_COMMAND}`; export r; \
13473 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13474 $(HOST_EXPORTS) \
13475 for flag in $(EXTRA_HOST_FLAGS) ; do \
13476 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13477 done; \
13478 echo "Doing install-html in gnuserv" ; \
13479 (cd $(HOST_SUBDIR)/gnuserv && \
13480 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13481 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13482 "RANLIB=$${RANLIB}" \
13483 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13484 install-html) \
13485 || exit 1
13486
13487@endif gnuserv
13488
d32ab992
PB
13489.PHONY: maybe-installcheck-gnuserv installcheck-gnuserv
13490maybe-installcheck-gnuserv:
13491@if gnuserv
13492maybe-installcheck-gnuserv: installcheck-gnuserv
1358ccea 13493
d32ab992 13494installcheck-gnuserv: \
05750653 13495 configure-gnuserv
f41d6665 13496 @: $(MAKE); $(unstage)
d32ab992 13497 @[ -f ./gnuserv/Makefile ] || exit 0; \
8c90b13a
L
13498 r=`${PWD_COMMAND}`; export r; \
13499 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13500 $(HOST_EXPORTS) \
d32ab992 13501 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13502 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13503 done; \
d32ab992 13504 echo "Doing installcheck in gnuserv" ; \
215c351a 13505 (cd $(HOST_SUBDIR)/gnuserv && \
1358ccea
NN
13506 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13507 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13508 "RANLIB=$${RANLIB}" \
13509 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13510 installcheck) \
1358ccea
NN
13511 || exit 1
13512
d32ab992 13513@endif gnuserv
1358ccea 13514
d32ab992
PB
13515.PHONY: maybe-mostlyclean-gnuserv mostlyclean-gnuserv
13516maybe-mostlyclean-gnuserv:
13517@if gnuserv
13518maybe-mostlyclean-gnuserv: mostlyclean-gnuserv
1358ccea 13519
05750653 13520mostlyclean-gnuserv:
f41d6665 13521 @: $(MAKE); $(unstage)
d32ab992 13522 @[ -f ./gnuserv/Makefile ] || exit 0; \
8c90b13a
L
13523 r=`${PWD_COMMAND}`; export r; \
13524 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13525 $(HOST_EXPORTS) \
d32ab992 13526 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13527 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13528 done; \
d32ab992 13529 echo "Doing mostlyclean in gnuserv" ; \
215c351a 13530 (cd $(HOST_SUBDIR)/gnuserv && \
1358ccea
NN
13531 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13532 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13533 "RANLIB=$${RANLIB}" \
13534 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13535 mostlyclean) \
1358ccea
NN
13536 || exit 1
13537
d32ab992 13538@endif gnuserv
1358ccea 13539
d32ab992
PB
13540.PHONY: maybe-clean-gnuserv clean-gnuserv
13541maybe-clean-gnuserv:
13542@if gnuserv
13543maybe-clean-gnuserv: clean-gnuserv
1358ccea 13544
05750653 13545clean-gnuserv:
f41d6665 13546 @: $(MAKE); $(unstage)
d32ab992 13547 @[ -f ./gnuserv/Makefile ] || exit 0; \
8c90b13a
L
13548 r=`${PWD_COMMAND}`; export r; \
13549 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13550 $(HOST_EXPORTS) \
d32ab992 13551 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13552 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13553 done; \
d32ab992 13554 echo "Doing clean in gnuserv" ; \
215c351a 13555 (cd $(HOST_SUBDIR)/gnuserv && \
1358ccea
NN
13556 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13557 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13558 "RANLIB=$${RANLIB}" \
13559 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13560 clean) \
1358ccea
NN
13561 || exit 1
13562
d32ab992 13563@endif gnuserv
1358ccea 13564
d32ab992
PB
13565.PHONY: maybe-distclean-gnuserv distclean-gnuserv
13566maybe-distclean-gnuserv:
13567@if gnuserv
13568maybe-distclean-gnuserv: distclean-gnuserv
1358ccea 13569
05750653 13570distclean-gnuserv:
f41d6665 13571 @: $(MAKE); $(unstage)
d32ab992 13572 @[ -f ./gnuserv/Makefile ] || exit 0; \
8c90b13a
L
13573 r=`${PWD_COMMAND}`; export r; \
13574 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13575 $(HOST_EXPORTS) \
d32ab992 13576 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13577 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13578 done; \
d32ab992 13579 echo "Doing distclean in gnuserv" ; \
215c351a 13580 (cd $(HOST_SUBDIR)/gnuserv && \
1358ccea
NN
13581 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13582 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13583 "RANLIB=$${RANLIB}" \
13584 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13585 distclean) \
1358ccea
NN
13586 || exit 1
13587
d32ab992 13588@endif gnuserv
1358ccea 13589
d32ab992
PB
13590.PHONY: maybe-maintainer-clean-gnuserv maintainer-clean-gnuserv
13591maybe-maintainer-clean-gnuserv:
13592@if gnuserv
13593maybe-maintainer-clean-gnuserv: maintainer-clean-gnuserv
1358ccea 13594
05750653 13595maintainer-clean-gnuserv:
f41d6665 13596 @: $(MAKE); $(unstage)
d32ab992 13597 @[ -f ./gnuserv/Makefile ] || exit 0; \
8c90b13a
L
13598 r=`${PWD_COMMAND}`; export r; \
13599 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13600 $(HOST_EXPORTS) \
d32ab992 13601 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13602 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13603 done; \
d32ab992 13604 echo "Doing maintainer-clean in gnuserv" ; \
215c351a 13605 (cd $(HOST_SUBDIR)/gnuserv && \
1358ccea
NN
13606 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13607 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13608 "RANLIB=$${RANLIB}" \
13609 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13610 maintainer-clean) \
1358ccea
NN
13611 || exit 1
13612
d32ab992 13613@endif gnuserv
1358ccea 13614
1358ccea 13615
25b42232 13616
d32ab992
PB
13617.PHONY: configure-gprof maybe-configure-gprof
13618maybe-configure-gprof:
3ff3adad
PB
13619@if gcc-bootstrap
13620configure-gprof: stage_current
13621@endif gcc-bootstrap
d32ab992
PB
13622@if gprof
13623maybe-configure-gprof: configure-gprof
cc11cc9b 13624configure-gprof:
f41d6665 13625 @: $(MAKE); $(unstage)
cc11cc9b 13626 @r=`${PWD_COMMAND}`; export r; \
295f4e42 13627 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
13628 test ! -f $(HOST_SUBDIR)/gprof/Makefile || exit 0; \
13629 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gprof ; \
4fc4dd12 13630 $(HOST_EXPORTS) \
25b42232
PB
13631 echo Configuring in $(HOST_SUBDIR)/gprof; \
13632 cd "$(HOST_SUBDIR)/gprof" || exit 1; \
295f4e42 13633 case $(srcdir) in \
215c351a
PB
13634 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
13635 *) topdir=`echo $(HOST_SUBDIR)/gprof/ | \
13636 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 13637 esac; \
215c351a
PB
13638 srcdiroption="--srcdir=$${topdir}/gprof"; \
13639 libsrcdir="$$s/gprof"; \
295f4e42 13640 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 13641 $(HOST_CONFIGARGS) $${srcdiroption} \
295f4e42 13642 || exit 1
d32ab992 13643@endif gprof
295f4e42 13644
25b42232
PB
13645
13646
ce406537
PB
13647
13648
d32ab992
PB
13649.PHONY: all-gprof maybe-all-gprof
13650maybe-all-gprof:
3ff3adad
PB
13651@if gcc-bootstrap
13652all-gprof: stage_current
13653@endif gcc-bootstrap
d32ab992 13654@if gprof
7e0b5752 13655TARGET-gprof=all
d32ab992
PB
13656maybe-all-gprof: all-gprof
13657all-gprof: configure-gprof
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
PB
13662 (cd $(HOST_SUBDIR)/gprof && \
13663 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-gprof))
d32ab992 13664@endif gprof
295f4e42 13665
25b42232 13666
ce406537
PB
13667
13668
d32ab992
PB
13669.PHONY: check-gprof maybe-check-gprof
13670maybe-check-gprof:
13671@if gprof
13672maybe-check-gprof: check-gprof
295f4e42 13673
d32ab992 13674check-gprof:
f41d6665 13675 @: $(MAKE); $(unstage)
295f4e42
NN
13676 @r=`${PWD_COMMAND}`; export r; \
13677 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13678 $(HOST_EXPORTS) \
215c351a
PB
13679 (cd $(HOST_SUBDIR)/gprof && \
13680 $(MAKE) $(FLAGS_TO_PASS) check)
295f4e42 13681
d32ab992 13682@endif gprof
295f4e42 13683
d32ab992
PB
13684.PHONY: install-gprof maybe-install-gprof
13685maybe-install-gprof:
13686@if gprof
13687maybe-install-gprof: install-gprof
295f4e42 13688
d32ab992 13689install-gprof: installdirs
f41d6665 13690 @: $(MAKE); $(unstage)
295f4e42
NN
13691 @r=`${PWD_COMMAND}`; export r; \
13692 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13693 $(HOST_EXPORTS) \
215c351a 13694 (cd $(HOST_SUBDIR)/gprof && \
ace9ac7b 13695 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 13696
d32ab992 13697@endif gprof
295f4e42
NN
13698
13699# Other targets (info, dvi, etc.)
13700
d32ab992
PB
13701.PHONY: maybe-info-gprof info-gprof
13702maybe-info-gprof:
13703@if gprof
13704maybe-info-gprof: info-gprof
295f4e42 13705
d32ab992 13706info-gprof: \
05750653 13707 configure-gprof
f41d6665 13708 @: $(MAKE); $(unstage)
d32ab992 13709 @[ -f ./gprof/Makefile ] || exit 0; \
8c90b13a
L
13710 r=`${PWD_COMMAND}`; export r; \
13711 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13712 $(HOST_EXPORTS) \
d32ab992 13713 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13714 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13715 done; \
d32ab992 13716 echo "Doing info in gprof" ; \
215c351a 13717 (cd $(HOST_SUBDIR)/gprof && \
1358ccea
NN
13718 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13719 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13720 "RANLIB=$${RANLIB}" \
13721 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13722 info) \
1358ccea
NN
13723 || exit 1
13724
d32ab992 13725@endif gprof
1358ccea 13726
d32ab992
PB
13727.PHONY: maybe-dvi-gprof dvi-gprof
13728maybe-dvi-gprof:
13729@if gprof
13730maybe-dvi-gprof: dvi-gprof
1358ccea 13731
d32ab992 13732dvi-gprof: \
05750653 13733 configure-gprof
f41d6665 13734 @: $(MAKE); $(unstage)
d32ab992 13735 @[ -f ./gprof/Makefile ] || exit 0; \
8c90b13a
L
13736 r=`${PWD_COMMAND}`; export r; \
13737 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13738 $(HOST_EXPORTS) \
d32ab992 13739 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13740 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13741 done; \
d32ab992 13742 echo "Doing dvi in gprof" ; \
215c351a 13743 (cd $(HOST_SUBDIR)/gprof && \
1358ccea
NN
13744 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13745 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13746 "RANLIB=$${RANLIB}" \
13747 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13748 dvi) \
1358ccea
NN
13749 || exit 1
13750
d32ab992 13751@endif gprof
1358ccea 13752
f87a2b2e
MS
13753.PHONY: maybe-html-gprof html-gprof
13754maybe-html-gprof:
13755@if gprof
13756maybe-html-gprof: html-gprof
13757
13758html-gprof: \
05750653 13759 configure-gprof
f41d6665 13760 @: $(MAKE); $(unstage)
f87a2b2e
MS
13761 @[ -f ./gprof/Makefile ] || exit 0; \
13762 r=`${PWD_COMMAND}`; export r; \
13763 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
13764 $(HOST_EXPORTS) \
13765 for flag in $(EXTRA_HOST_FLAGS) ; do \
13766 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13767 done; \
13768 echo "Doing html in gprof" ; \
215c351a 13769 (cd $(HOST_SUBDIR)/gprof && \
f87a2b2e
MS
13770 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13771 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13772 "RANLIB=$${RANLIB}" \
13773 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13774 html) \
13775 || exit 1
13776
13777@endif gprof
13778
d32ab992
PB
13779.PHONY: maybe-TAGS-gprof TAGS-gprof
13780maybe-TAGS-gprof:
13781@if gprof
13782maybe-TAGS-gprof: TAGS-gprof
1358ccea 13783
d32ab992 13784TAGS-gprof: \
05750653 13785 configure-gprof
f41d6665 13786 @: $(MAKE); $(unstage)
d32ab992 13787 @[ -f ./gprof/Makefile ] || exit 0; \
8c90b13a
L
13788 r=`${PWD_COMMAND}`; export r; \
13789 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13790 $(HOST_EXPORTS) \
d32ab992 13791 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13792 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13793 done; \
d32ab992 13794 echo "Doing TAGS in gprof" ; \
215c351a 13795 (cd $(HOST_SUBDIR)/gprof && \
1358ccea
NN
13796 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13797 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13798 "RANLIB=$${RANLIB}" \
13799 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13800 TAGS) \
1358ccea
NN
13801 || exit 1
13802
d32ab992 13803@endif gprof
1358ccea 13804
d32ab992
PB
13805.PHONY: maybe-install-info-gprof install-info-gprof
13806maybe-install-info-gprof:
13807@if gprof
13808maybe-install-info-gprof: install-info-gprof
1358ccea 13809
d32ab992
PB
13810install-info-gprof: \
13811 configure-gprof \
05750653 13812 info-gprof
f41d6665 13813 @: $(MAKE); $(unstage)
d32ab992 13814 @[ -f ./gprof/Makefile ] || exit 0; \
8c90b13a
L
13815 r=`${PWD_COMMAND}`; export r; \
13816 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13817 $(HOST_EXPORTS) \
d32ab992 13818 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13819 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13820 done; \
d32ab992 13821 echo "Doing install-info in gprof" ; \
215c351a 13822 (cd $(HOST_SUBDIR)/gprof && \
1358ccea
NN
13823 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13824 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13825 "RANLIB=$${RANLIB}" \
13826 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13827 install-info) \
1358ccea
NN
13828 || exit 1
13829
d32ab992 13830@endif gprof
1358ccea 13831
65d6e994
CD
13832.PHONY: maybe-install-html-gprof install-html-gprof
13833maybe-install-html-gprof:
13834@if gprof
13835maybe-install-html-gprof: install-html-gprof
13836
13837install-html-gprof: \
13838 configure-gprof \
13839 html-gprof
13840 @: $(MAKE); $(unstage)
13841 @[ -f ./gprof/Makefile ] || exit 0; \
13842 r=`${PWD_COMMAND}`; export r; \
13843 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13844 $(HOST_EXPORTS) \
13845 for flag in $(EXTRA_HOST_FLAGS) ; do \
13846 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13847 done; \
13848 echo "Doing install-html in gprof" ; \
13849 (cd $(HOST_SUBDIR)/gprof && \
13850 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13851 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13852 "RANLIB=$${RANLIB}" \
13853 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13854 install-html) \
13855 || exit 1
13856
13857@endif gprof
13858
d32ab992
PB
13859.PHONY: maybe-installcheck-gprof installcheck-gprof
13860maybe-installcheck-gprof:
13861@if gprof
13862maybe-installcheck-gprof: installcheck-gprof
1358ccea 13863
d32ab992 13864installcheck-gprof: \
05750653 13865 configure-gprof
f41d6665 13866 @: $(MAKE); $(unstage)
d32ab992 13867 @[ -f ./gprof/Makefile ] || exit 0; \
8c90b13a
L
13868 r=`${PWD_COMMAND}`; export r; \
13869 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13870 $(HOST_EXPORTS) \
d32ab992 13871 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13872 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13873 done; \
d32ab992 13874 echo "Doing installcheck in gprof" ; \
215c351a 13875 (cd $(HOST_SUBDIR)/gprof && \
1358ccea
NN
13876 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13877 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13878 "RANLIB=$${RANLIB}" \
13879 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13880 installcheck) \
1358ccea
NN
13881 || exit 1
13882
d32ab992 13883@endif gprof
1358ccea 13884
d32ab992
PB
13885.PHONY: maybe-mostlyclean-gprof mostlyclean-gprof
13886maybe-mostlyclean-gprof:
13887@if gprof
13888maybe-mostlyclean-gprof: mostlyclean-gprof
1358ccea 13889
05750653 13890mostlyclean-gprof:
f41d6665 13891 @: $(MAKE); $(unstage)
d32ab992 13892 @[ -f ./gprof/Makefile ] || exit 0; \
8c90b13a
L
13893 r=`${PWD_COMMAND}`; export r; \
13894 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13895 $(HOST_EXPORTS) \
d32ab992 13896 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13897 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13898 done; \
d32ab992 13899 echo "Doing mostlyclean in gprof" ; \
215c351a 13900 (cd $(HOST_SUBDIR)/gprof && \
1358ccea
NN
13901 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13902 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13903 "RANLIB=$${RANLIB}" \
13904 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13905 mostlyclean) \
1358ccea
NN
13906 || exit 1
13907
d32ab992 13908@endif gprof
1358ccea 13909
d32ab992
PB
13910.PHONY: maybe-clean-gprof clean-gprof
13911maybe-clean-gprof:
13912@if gprof
13913maybe-clean-gprof: clean-gprof
1358ccea 13914
05750653 13915clean-gprof:
f41d6665 13916 @: $(MAKE); $(unstage)
d32ab992 13917 @[ -f ./gprof/Makefile ] || exit 0; \
8c90b13a
L
13918 r=`${PWD_COMMAND}`; export r; \
13919 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13920 $(HOST_EXPORTS) \
d32ab992 13921 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13922 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13923 done; \
d32ab992 13924 echo "Doing clean in gprof" ; \
215c351a 13925 (cd $(HOST_SUBDIR)/gprof && \
1358ccea
NN
13926 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13927 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13928 "RANLIB=$${RANLIB}" \
13929 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13930 clean) \
1358ccea
NN
13931 || exit 1
13932
d32ab992 13933@endif gprof
1358ccea 13934
d32ab992
PB
13935.PHONY: maybe-distclean-gprof distclean-gprof
13936maybe-distclean-gprof:
13937@if gprof
13938maybe-distclean-gprof: distclean-gprof
1358ccea 13939
05750653 13940distclean-gprof:
f41d6665 13941 @: $(MAKE); $(unstage)
d32ab992 13942 @[ -f ./gprof/Makefile ] || exit 0; \
8c90b13a
L
13943 r=`${PWD_COMMAND}`; export r; \
13944 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13945 $(HOST_EXPORTS) \
d32ab992 13946 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13947 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13948 done; \
d32ab992 13949 echo "Doing distclean in gprof" ; \
215c351a 13950 (cd $(HOST_SUBDIR)/gprof && \
1358ccea
NN
13951 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13952 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13953 "RANLIB=$${RANLIB}" \
13954 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13955 distclean) \
1358ccea
NN
13956 || exit 1
13957
d32ab992 13958@endif gprof
1358ccea 13959
d32ab992
PB
13960.PHONY: maybe-maintainer-clean-gprof maintainer-clean-gprof
13961maybe-maintainer-clean-gprof:
13962@if gprof
13963maybe-maintainer-clean-gprof: maintainer-clean-gprof
1358ccea 13964
05750653 13965maintainer-clean-gprof:
f41d6665 13966 @: $(MAKE); $(unstage)
d32ab992 13967 @[ -f ./gprof/Makefile ] || exit 0; \
8c90b13a
L
13968 r=`${PWD_COMMAND}`; export r; \
13969 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13970 $(HOST_EXPORTS) \
d32ab992 13971 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13972 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13973 done; \
d32ab992 13974 echo "Doing maintainer-clean in gprof" ; \
215c351a 13975 (cd $(HOST_SUBDIR)/gprof && \
1358ccea
NN
13976 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13977 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13978 "RANLIB=$${RANLIB}" \
13979 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13980 maintainer-clean) \
1358ccea
NN
13981 || exit 1
13982
d32ab992 13983@endif gprof
1358ccea 13984
1358ccea 13985
25b42232 13986
d32ab992
PB
13987.PHONY: configure-gzip maybe-configure-gzip
13988maybe-configure-gzip:
3ff3adad
PB
13989@if gcc-bootstrap
13990configure-gzip: stage_current
13991@endif gcc-bootstrap
d32ab992
PB
13992@if gzip
13993maybe-configure-gzip: configure-gzip
cc11cc9b 13994configure-gzip:
f41d6665 13995 @: $(MAKE); $(unstage)
cc11cc9b 13996 @r=`${PWD_COMMAND}`; export r; \
295f4e42 13997 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
13998 test ! -f $(HOST_SUBDIR)/gzip/Makefile || exit 0; \
13999 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gzip ; \
4fc4dd12 14000 $(HOST_EXPORTS) \
25b42232
PB
14001 echo Configuring in $(HOST_SUBDIR)/gzip; \
14002 cd "$(HOST_SUBDIR)/gzip" || exit 1; \
295f4e42 14003 case $(srcdir) in \
215c351a
PB
14004 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
14005 *) topdir=`echo $(HOST_SUBDIR)/gzip/ | \
14006 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 14007 esac; \
215c351a
PB
14008 srcdiroption="--srcdir=$${topdir}/gzip"; \
14009 libsrcdir="$$s/gzip"; \
295f4e42 14010 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 14011 $(HOST_CONFIGARGS) $${srcdiroption} \
295f4e42 14012 || exit 1
d32ab992 14013@endif gzip
295f4e42 14014
25b42232
PB
14015
14016
ce406537
PB
14017
14018
d32ab992
PB
14019.PHONY: all-gzip maybe-all-gzip
14020maybe-all-gzip:
3ff3adad
PB
14021@if gcc-bootstrap
14022all-gzip: stage_current
14023@endif gcc-bootstrap
d32ab992 14024@if gzip
7e0b5752 14025TARGET-gzip=all
d32ab992
PB
14026maybe-all-gzip: all-gzip
14027all-gzip: configure-gzip
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
PB
14032 (cd $(HOST_SUBDIR)/gzip && \
14033 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-gzip))
d32ab992 14034@endif gzip
295f4e42 14035
25b42232 14036
ce406537
PB
14037
14038
d32ab992
PB
14039.PHONY: check-gzip maybe-check-gzip
14040maybe-check-gzip:
14041@if gzip
14042maybe-check-gzip: check-gzip
295f4e42 14043
d32ab992 14044check-gzip:
f41d6665 14045 @: $(MAKE); $(unstage)
295f4e42
NN
14046 @r=`${PWD_COMMAND}`; export r; \
14047 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14048 $(HOST_EXPORTS) \
215c351a
PB
14049 (cd $(HOST_SUBDIR)/gzip && \
14050 $(MAKE) $(FLAGS_TO_PASS) check)
295f4e42 14051
d32ab992 14052@endif gzip
295f4e42 14053
d32ab992
PB
14054.PHONY: install-gzip maybe-install-gzip
14055maybe-install-gzip:
14056@if gzip
14057maybe-install-gzip: install-gzip
295f4e42 14058
d32ab992 14059install-gzip: installdirs
f41d6665 14060 @: $(MAKE); $(unstage)
295f4e42
NN
14061 @r=`${PWD_COMMAND}`; export r; \
14062 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14063 $(HOST_EXPORTS) \
215c351a 14064 (cd $(HOST_SUBDIR)/gzip && \
ace9ac7b 14065 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 14066
d32ab992 14067@endif gzip
295f4e42
NN
14068
14069# Other targets (info, dvi, etc.)
14070
d32ab992
PB
14071.PHONY: maybe-info-gzip info-gzip
14072maybe-info-gzip:
14073@if gzip
14074maybe-info-gzip: info-gzip
295f4e42 14075
d32ab992 14076info-gzip: \
05750653 14077 configure-gzip
f41d6665 14078 @: $(MAKE); $(unstage)
d32ab992 14079 @[ -f ./gzip/Makefile ] || exit 0; \
8c90b13a
L
14080 r=`${PWD_COMMAND}`; export r; \
14081 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14082 $(HOST_EXPORTS) \
d32ab992 14083 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14084 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14085 done; \
d32ab992 14086 echo "Doing info in gzip" ; \
215c351a 14087 (cd $(HOST_SUBDIR)/gzip && \
1358ccea
NN
14088 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14089 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14090 "RANLIB=$${RANLIB}" \
14091 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14092 info) \
1358ccea
NN
14093 || exit 1
14094
d32ab992 14095@endif gzip
1358ccea 14096
d32ab992
PB
14097.PHONY: maybe-dvi-gzip dvi-gzip
14098maybe-dvi-gzip:
14099@if gzip
14100maybe-dvi-gzip: dvi-gzip
1358ccea 14101
d32ab992 14102dvi-gzip: \
05750653 14103 configure-gzip
f41d6665 14104 @: $(MAKE); $(unstage)
d32ab992 14105 @[ -f ./gzip/Makefile ] || exit 0; \
8c90b13a
L
14106 r=`${PWD_COMMAND}`; export r; \
14107 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14108 $(HOST_EXPORTS) \
d32ab992 14109 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14110 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14111 done; \
d32ab992 14112 echo "Doing dvi in gzip" ; \
215c351a 14113 (cd $(HOST_SUBDIR)/gzip && \
1358ccea
NN
14114 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14115 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14116 "RANLIB=$${RANLIB}" \
14117 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14118 dvi) \
1358ccea
NN
14119 || exit 1
14120
d32ab992 14121@endif gzip
1358ccea 14122
f87a2b2e
MS
14123.PHONY: maybe-html-gzip html-gzip
14124maybe-html-gzip:
14125@if gzip
14126maybe-html-gzip: html-gzip
14127
14128html-gzip: \
05750653 14129 configure-gzip
f41d6665 14130 @: $(MAKE); $(unstage)
f87a2b2e
MS
14131 @[ -f ./gzip/Makefile ] || exit 0; \
14132 r=`${PWD_COMMAND}`; export r; \
14133 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
14134 $(HOST_EXPORTS) \
14135 for flag in $(EXTRA_HOST_FLAGS) ; do \
14136 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14137 done; \
14138 echo "Doing html in gzip" ; \
215c351a 14139 (cd $(HOST_SUBDIR)/gzip && \
f87a2b2e
MS
14140 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14141 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14142 "RANLIB=$${RANLIB}" \
14143 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14144 html) \
14145 || exit 1
14146
14147@endif gzip
14148
d32ab992
PB
14149.PHONY: maybe-TAGS-gzip TAGS-gzip
14150maybe-TAGS-gzip:
14151@if gzip
14152maybe-TAGS-gzip: TAGS-gzip
1358ccea 14153
d32ab992 14154TAGS-gzip: \
05750653 14155 configure-gzip
f41d6665 14156 @: $(MAKE); $(unstage)
d32ab992 14157 @[ -f ./gzip/Makefile ] || exit 0; \
8c90b13a
L
14158 r=`${PWD_COMMAND}`; export r; \
14159 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14160 $(HOST_EXPORTS) \
d32ab992 14161 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14162 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14163 done; \
d32ab992 14164 echo "Doing TAGS in gzip" ; \
215c351a 14165 (cd $(HOST_SUBDIR)/gzip && \
1358ccea
NN
14166 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14167 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14168 "RANLIB=$${RANLIB}" \
14169 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14170 TAGS) \
1358ccea
NN
14171 || exit 1
14172
d32ab992 14173@endif gzip
1358ccea 14174
d32ab992
PB
14175.PHONY: maybe-install-info-gzip install-info-gzip
14176maybe-install-info-gzip:
14177@if gzip
14178maybe-install-info-gzip: install-info-gzip
1358ccea 14179
d32ab992
PB
14180install-info-gzip: \
14181 configure-gzip \
05750653 14182 info-gzip
f41d6665 14183 @: $(MAKE); $(unstage)
d32ab992 14184 @[ -f ./gzip/Makefile ] || exit 0; \
8c90b13a
L
14185 r=`${PWD_COMMAND}`; export r; \
14186 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14187 $(HOST_EXPORTS) \
d32ab992 14188 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14189 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14190 done; \
d32ab992 14191 echo "Doing install-info in gzip" ; \
215c351a 14192 (cd $(HOST_SUBDIR)/gzip && \
1358ccea
NN
14193 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14194 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14195 "RANLIB=$${RANLIB}" \
14196 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14197 install-info) \
1358ccea
NN
14198 || exit 1
14199
d32ab992 14200@endif gzip
1358ccea 14201
65d6e994
CD
14202.PHONY: maybe-install-html-gzip install-html-gzip
14203maybe-install-html-gzip:
14204@if gzip
14205maybe-install-html-gzip: install-html-gzip
14206
14207install-html-gzip: \
14208 configure-gzip \
14209 html-gzip
14210 @: $(MAKE); $(unstage)
14211 @[ -f ./gzip/Makefile ] || exit 0; \
14212 r=`${PWD_COMMAND}`; export r; \
14213 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14214 $(HOST_EXPORTS) \
14215 for flag in $(EXTRA_HOST_FLAGS) ; do \
14216 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14217 done; \
14218 echo "Doing install-html in gzip" ; \
14219 (cd $(HOST_SUBDIR)/gzip && \
14220 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14221 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14222 "RANLIB=$${RANLIB}" \
14223 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14224 install-html) \
14225 || exit 1
14226
14227@endif gzip
14228
d32ab992
PB
14229.PHONY: maybe-installcheck-gzip installcheck-gzip
14230maybe-installcheck-gzip:
14231@if gzip
14232maybe-installcheck-gzip: installcheck-gzip
1358ccea 14233
d32ab992 14234installcheck-gzip: \
05750653 14235 configure-gzip
f41d6665 14236 @: $(MAKE); $(unstage)
d32ab992 14237 @[ -f ./gzip/Makefile ] || exit 0; \
8c90b13a
L
14238 r=`${PWD_COMMAND}`; export r; \
14239 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14240 $(HOST_EXPORTS) \
d32ab992 14241 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14242 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14243 done; \
d32ab992 14244 echo "Doing installcheck in gzip" ; \
215c351a 14245 (cd $(HOST_SUBDIR)/gzip && \
1358ccea
NN
14246 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14247 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14248 "RANLIB=$${RANLIB}" \
14249 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14250 installcheck) \
1358ccea
NN
14251 || exit 1
14252
d32ab992 14253@endif gzip
1358ccea 14254
d32ab992
PB
14255.PHONY: maybe-mostlyclean-gzip mostlyclean-gzip
14256maybe-mostlyclean-gzip:
14257@if gzip
14258maybe-mostlyclean-gzip: mostlyclean-gzip
1358ccea 14259
05750653 14260mostlyclean-gzip:
f41d6665 14261 @: $(MAKE); $(unstage)
d32ab992 14262 @[ -f ./gzip/Makefile ] || exit 0; \
8c90b13a
L
14263 r=`${PWD_COMMAND}`; export r; \
14264 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14265 $(HOST_EXPORTS) \
d32ab992 14266 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14267 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14268 done; \
d32ab992 14269 echo "Doing mostlyclean in gzip" ; \
215c351a 14270 (cd $(HOST_SUBDIR)/gzip && \
1358ccea
NN
14271 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14272 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14273 "RANLIB=$${RANLIB}" \
14274 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14275 mostlyclean) \
1358ccea
NN
14276 || exit 1
14277
d32ab992 14278@endif gzip
1358ccea 14279
d32ab992
PB
14280.PHONY: maybe-clean-gzip clean-gzip
14281maybe-clean-gzip:
14282@if gzip
14283maybe-clean-gzip: clean-gzip
1358ccea 14284
05750653 14285clean-gzip:
f41d6665 14286 @: $(MAKE); $(unstage)
d32ab992 14287 @[ -f ./gzip/Makefile ] || exit 0; \
8c90b13a
L
14288 r=`${PWD_COMMAND}`; export r; \
14289 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14290 $(HOST_EXPORTS) \
d32ab992 14291 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14292 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14293 done; \
d32ab992 14294 echo "Doing clean in gzip" ; \
215c351a 14295 (cd $(HOST_SUBDIR)/gzip && \
1358ccea
NN
14296 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14297 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14298 "RANLIB=$${RANLIB}" \
14299 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14300 clean) \
1358ccea
NN
14301 || exit 1
14302
d32ab992 14303@endif gzip
1358ccea 14304
d32ab992
PB
14305.PHONY: maybe-distclean-gzip distclean-gzip
14306maybe-distclean-gzip:
14307@if gzip
14308maybe-distclean-gzip: distclean-gzip
1358ccea 14309
05750653 14310distclean-gzip:
f41d6665 14311 @: $(MAKE); $(unstage)
d32ab992 14312 @[ -f ./gzip/Makefile ] || exit 0; \
8c90b13a
L
14313 r=`${PWD_COMMAND}`; export r; \
14314 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14315 $(HOST_EXPORTS) \
d32ab992 14316 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14317 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14318 done; \
d32ab992 14319 echo "Doing distclean in gzip" ; \
215c351a 14320 (cd $(HOST_SUBDIR)/gzip && \
1358ccea
NN
14321 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14322 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14323 "RANLIB=$${RANLIB}" \
14324 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14325 distclean) \
1358ccea
NN
14326 || exit 1
14327
d32ab992 14328@endif gzip
1358ccea 14329
d32ab992
PB
14330.PHONY: maybe-maintainer-clean-gzip maintainer-clean-gzip
14331maybe-maintainer-clean-gzip:
14332@if gzip
14333maybe-maintainer-clean-gzip: maintainer-clean-gzip
1358ccea 14334
05750653 14335maintainer-clean-gzip:
f41d6665 14336 @: $(MAKE); $(unstage)
d32ab992 14337 @[ -f ./gzip/Makefile ] || exit 0; \
8c90b13a
L
14338 r=`${PWD_COMMAND}`; export r; \
14339 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14340 $(HOST_EXPORTS) \
d32ab992 14341 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14342 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14343 done; \
d32ab992 14344 echo "Doing maintainer-clean in gzip" ; \
215c351a 14345 (cd $(HOST_SUBDIR)/gzip && \
1358ccea
NN
14346 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14347 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14348 "RANLIB=$${RANLIB}" \
14349 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14350 maintainer-clean) \
295f4e42
NN
14351 || exit 1
14352
d32ab992 14353@endif gzip
295f4e42
NN
14354
14355
25b42232 14356
d32ab992
PB
14357.PHONY: configure-hello maybe-configure-hello
14358maybe-configure-hello:
3ff3adad
PB
14359@if gcc-bootstrap
14360configure-hello: stage_current
14361@endif gcc-bootstrap
d32ab992
PB
14362@if hello
14363maybe-configure-hello: configure-hello
cc11cc9b 14364configure-hello:
f41d6665 14365 @: $(MAKE); $(unstage)
cc11cc9b 14366 @r=`${PWD_COMMAND}`; export r; \
295f4e42 14367 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
14368 test ! -f $(HOST_SUBDIR)/hello/Makefile || exit 0; \
14369 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/hello ; \
4fc4dd12 14370 $(HOST_EXPORTS) \
25b42232
PB
14371 echo Configuring in $(HOST_SUBDIR)/hello; \
14372 cd "$(HOST_SUBDIR)/hello" || exit 1; \
295f4e42 14373 case $(srcdir) in \
215c351a
PB
14374 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
14375 *) topdir=`echo $(HOST_SUBDIR)/hello/ | \
14376 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 14377 esac; \
215c351a
PB
14378 srcdiroption="--srcdir=$${topdir}/hello"; \
14379 libsrcdir="$$s/hello"; \
295f4e42 14380 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 14381 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 14382 || exit 1
d32ab992 14383@endif hello
1358ccea 14384
25b42232
PB
14385
14386
ce406537
PB
14387
14388
d32ab992
PB
14389.PHONY: all-hello maybe-all-hello
14390maybe-all-hello:
3ff3adad
PB
14391@if gcc-bootstrap
14392all-hello: stage_current
14393@endif gcc-bootstrap
d32ab992 14394@if hello
7e0b5752 14395TARGET-hello=all
d32ab992
PB
14396maybe-all-hello: all-hello
14397all-hello: configure-hello
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
PB
14402 (cd $(HOST_SUBDIR)/hello && \
14403 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-hello))
d32ab992 14404@endif hello
1358ccea 14405
25b42232 14406
ce406537
PB
14407
14408
d32ab992
PB
14409.PHONY: check-hello maybe-check-hello
14410maybe-check-hello:
14411@if hello
14412maybe-check-hello: check-hello
1358ccea 14413
d32ab992 14414check-hello:
f41d6665 14415 @: $(MAKE); $(unstage)
295f4e42 14416 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 14417 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14418 $(HOST_EXPORTS) \
215c351a
PB
14419 (cd $(HOST_SUBDIR)/hello && \
14420 $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 14421
d32ab992 14422@endif hello
1358ccea 14423
d32ab992
PB
14424.PHONY: install-hello maybe-install-hello
14425maybe-install-hello:
14426@if hello
14427maybe-install-hello: install-hello
1358ccea 14428
d32ab992 14429install-hello: installdirs
f41d6665 14430 @: $(MAKE); $(unstage)
295f4e42 14431 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 14432 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14433 $(HOST_EXPORTS) \
215c351a 14434 (cd $(HOST_SUBDIR)/hello && \
ace9ac7b 14435 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 14436
d32ab992 14437@endif hello
1358ccea 14438
295f4e42 14439# Other targets (info, dvi, etc.)
1358ccea 14440
d32ab992
PB
14441.PHONY: maybe-info-hello info-hello
14442maybe-info-hello:
14443@if hello
14444maybe-info-hello: info-hello
295f4e42 14445
d32ab992 14446info-hello: \
05750653 14447 configure-hello
f41d6665 14448 @: $(MAKE); $(unstage)
d32ab992 14449 @[ -f ./hello/Makefile ] || exit 0; \
8c90b13a
L
14450 r=`${PWD_COMMAND}`; export r; \
14451 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14452 $(HOST_EXPORTS) \
d32ab992 14453 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14454 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14455 done; \
d32ab992 14456 echo "Doing info in hello" ; \
215c351a 14457 (cd $(HOST_SUBDIR)/hello && \
1358ccea
NN
14458 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14459 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14460 "RANLIB=$${RANLIB}" \
14461 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14462 info) \
1358ccea
NN
14463 || exit 1
14464
d32ab992 14465@endif hello
1358ccea 14466
d32ab992
PB
14467.PHONY: maybe-dvi-hello dvi-hello
14468maybe-dvi-hello:
14469@if hello
14470maybe-dvi-hello: dvi-hello
1358ccea 14471
d32ab992 14472dvi-hello: \
05750653 14473 configure-hello
f41d6665 14474 @: $(MAKE); $(unstage)
d32ab992 14475 @[ -f ./hello/Makefile ] || exit 0; \
8c90b13a
L
14476 r=`${PWD_COMMAND}`; export r; \
14477 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14478 $(HOST_EXPORTS) \
d32ab992 14479 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14480 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14481 done; \
d32ab992 14482 echo "Doing dvi in hello" ; \
215c351a 14483 (cd $(HOST_SUBDIR)/hello && \
1358ccea
NN
14484 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14485 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14486 "RANLIB=$${RANLIB}" \
14487 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14488 dvi) \
1358ccea
NN
14489 || exit 1
14490
d32ab992 14491@endif hello
1358ccea 14492
f87a2b2e
MS
14493.PHONY: maybe-html-hello html-hello
14494maybe-html-hello:
14495@if hello
14496maybe-html-hello: html-hello
14497
14498html-hello: \
05750653 14499 configure-hello
f41d6665 14500 @: $(MAKE); $(unstage)
f87a2b2e
MS
14501 @[ -f ./hello/Makefile ] || exit 0; \
14502 r=`${PWD_COMMAND}`; export r; \
14503 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
14504 $(HOST_EXPORTS) \
14505 for flag in $(EXTRA_HOST_FLAGS) ; do \
14506 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14507 done; \
14508 echo "Doing html in hello" ; \
215c351a 14509 (cd $(HOST_SUBDIR)/hello && \
f87a2b2e
MS
14510 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14511 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14512 "RANLIB=$${RANLIB}" \
14513 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14514 html) \
14515 || exit 1
14516
14517@endif hello
14518
d32ab992
PB
14519.PHONY: maybe-TAGS-hello TAGS-hello
14520maybe-TAGS-hello:
14521@if hello
14522maybe-TAGS-hello: TAGS-hello
1358ccea 14523
d32ab992 14524TAGS-hello: \
05750653 14525 configure-hello
f41d6665 14526 @: $(MAKE); $(unstage)
d32ab992 14527 @[ -f ./hello/Makefile ] || exit 0; \
8c90b13a
L
14528 r=`${PWD_COMMAND}`; export r; \
14529 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14530 $(HOST_EXPORTS) \
d32ab992 14531 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14532 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14533 done; \
d32ab992 14534 echo "Doing TAGS in hello" ; \
215c351a 14535 (cd $(HOST_SUBDIR)/hello && \
1358ccea
NN
14536 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14537 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14538 "RANLIB=$${RANLIB}" \
14539 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14540 TAGS) \
1358ccea
NN
14541 || exit 1
14542
d32ab992 14543@endif hello
1358ccea 14544
d32ab992
PB
14545.PHONY: maybe-install-info-hello install-info-hello
14546maybe-install-info-hello:
14547@if hello
14548maybe-install-info-hello: install-info-hello
1358ccea 14549
d32ab992
PB
14550install-info-hello: \
14551 configure-hello \
05750653 14552 info-hello
f41d6665 14553 @: $(MAKE); $(unstage)
d32ab992 14554 @[ -f ./hello/Makefile ] || exit 0; \
8c90b13a
L
14555 r=`${PWD_COMMAND}`; export r; \
14556 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14557 $(HOST_EXPORTS) \
d32ab992 14558 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14559 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14560 done; \
d32ab992 14561 echo "Doing install-info in hello" ; \
215c351a 14562 (cd $(HOST_SUBDIR)/hello && \
1358ccea
NN
14563 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14564 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14565 "RANLIB=$${RANLIB}" \
14566 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14567 install-info) \
1358ccea
NN
14568 || exit 1
14569
d32ab992 14570@endif hello
1358ccea 14571
65d6e994
CD
14572.PHONY: maybe-install-html-hello install-html-hello
14573maybe-install-html-hello:
14574@if hello
14575maybe-install-html-hello: install-html-hello
14576
14577install-html-hello: \
14578 configure-hello \
14579 html-hello
14580 @: $(MAKE); $(unstage)
14581 @[ -f ./hello/Makefile ] || exit 0; \
14582 r=`${PWD_COMMAND}`; export r; \
14583 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14584 $(HOST_EXPORTS) \
14585 for flag in $(EXTRA_HOST_FLAGS) ; do \
14586 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14587 done; \
14588 echo "Doing install-html in hello" ; \
14589 (cd $(HOST_SUBDIR)/hello && \
14590 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14591 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14592 "RANLIB=$${RANLIB}" \
14593 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14594 install-html) \
14595 || exit 1
14596
14597@endif hello
14598
d32ab992
PB
14599.PHONY: maybe-installcheck-hello installcheck-hello
14600maybe-installcheck-hello:
14601@if hello
14602maybe-installcheck-hello: installcheck-hello
1358ccea 14603
d32ab992 14604installcheck-hello: \
05750653 14605 configure-hello
f41d6665 14606 @: $(MAKE); $(unstage)
d32ab992 14607 @[ -f ./hello/Makefile ] || exit 0; \
8c90b13a
L
14608 r=`${PWD_COMMAND}`; export r; \
14609 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14610 $(HOST_EXPORTS) \
d32ab992 14611 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14612 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14613 done; \
d32ab992 14614 echo "Doing installcheck in hello" ; \
215c351a 14615 (cd $(HOST_SUBDIR)/hello && \
1358ccea
NN
14616 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14617 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14618 "RANLIB=$${RANLIB}" \
14619 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14620 installcheck) \
1358ccea
NN
14621 || exit 1
14622
d32ab992 14623@endif hello
1358ccea 14624
d32ab992
PB
14625.PHONY: maybe-mostlyclean-hello mostlyclean-hello
14626maybe-mostlyclean-hello:
14627@if hello
14628maybe-mostlyclean-hello: mostlyclean-hello
1358ccea 14629
05750653 14630mostlyclean-hello:
f41d6665 14631 @: $(MAKE); $(unstage)
d32ab992 14632 @[ -f ./hello/Makefile ] || exit 0; \
8c90b13a
L
14633 r=`${PWD_COMMAND}`; export r; \
14634 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14635 $(HOST_EXPORTS) \
d32ab992 14636 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14637 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14638 done; \
d32ab992 14639 echo "Doing mostlyclean in hello" ; \
215c351a 14640 (cd $(HOST_SUBDIR)/hello && \
1358ccea
NN
14641 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14642 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14643 "RANLIB=$${RANLIB}" \
14644 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14645 mostlyclean) \
1358ccea
NN
14646 || exit 1
14647
d32ab992 14648@endif hello
1358ccea 14649
d32ab992
PB
14650.PHONY: maybe-clean-hello clean-hello
14651maybe-clean-hello:
14652@if hello
14653maybe-clean-hello: clean-hello
1358ccea 14654
05750653 14655clean-hello:
f41d6665 14656 @: $(MAKE); $(unstage)
d32ab992 14657 @[ -f ./hello/Makefile ] || exit 0; \
8c90b13a
L
14658 r=`${PWD_COMMAND}`; export r; \
14659 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14660 $(HOST_EXPORTS) \
d32ab992 14661 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14662 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14663 done; \
d32ab992 14664 echo "Doing clean in hello" ; \
215c351a 14665 (cd $(HOST_SUBDIR)/hello && \
1358ccea
NN
14666 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14667 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14668 "RANLIB=$${RANLIB}" \
14669 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14670 clean) \
1358ccea
NN
14671 || exit 1
14672
d32ab992 14673@endif hello
1358ccea 14674
d32ab992
PB
14675.PHONY: maybe-distclean-hello distclean-hello
14676maybe-distclean-hello:
14677@if hello
14678maybe-distclean-hello: distclean-hello
1358ccea 14679
05750653 14680distclean-hello:
f41d6665 14681 @: $(MAKE); $(unstage)
d32ab992 14682 @[ -f ./hello/Makefile ] || exit 0; \
8c90b13a
L
14683 r=`${PWD_COMMAND}`; export r; \
14684 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14685 $(HOST_EXPORTS) \
d32ab992 14686 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14687 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14688 done; \
d32ab992 14689 echo "Doing distclean in hello" ; \
215c351a 14690 (cd $(HOST_SUBDIR)/hello && \
1358ccea
NN
14691 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14692 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14693 "RANLIB=$${RANLIB}" \
14694 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14695 distclean) \
1358ccea
NN
14696 || exit 1
14697
d32ab992 14698@endif hello
1358ccea 14699
d32ab992
PB
14700.PHONY: maybe-maintainer-clean-hello maintainer-clean-hello
14701maybe-maintainer-clean-hello:
14702@if hello
14703maybe-maintainer-clean-hello: maintainer-clean-hello
1358ccea 14704
05750653 14705maintainer-clean-hello:
f41d6665 14706 @: $(MAKE); $(unstage)
d32ab992 14707 @[ -f ./hello/Makefile ] || exit 0; \
8c90b13a
L
14708 r=`${PWD_COMMAND}`; export r; \
14709 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14710 $(HOST_EXPORTS) \
d32ab992 14711 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14712 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14713 done; \
d32ab992 14714 echo "Doing maintainer-clean in hello" ; \
215c351a 14715 (cd $(HOST_SUBDIR)/hello && \
1358ccea
NN
14716 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14717 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14718 "RANLIB=$${RANLIB}" \
14719 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14720 maintainer-clean) \
1358ccea
NN
14721 || exit 1
14722
d32ab992 14723@endif hello
1358ccea 14724
1358ccea 14725
25b42232 14726
d32ab992
PB
14727.PHONY: configure-indent maybe-configure-indent
14728maybe-configure-indent:
3ff3adad
PB
14729@if gcc-bootstrap
14730configure-indent: stage_current
14731@endif gcc-bootstrap
d32ab992
PB
14732@if indent
14733maybe-configure-indent: configure-indent
cc11cc9b 14734configure-indent:
f41d6665 14735 @: $(MAKE); $(unstage)
cc11cc9b 14736 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 14737 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
14738 test ! -f $(HOST_SUBDIR)/indent/Makefile || exit 0; \
14739 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/indent ; \
4fc4dd12 14740 $(HOST_EXPORTS) \
25b42232
PB
14741 echo Configuring in $(HOST_SUBDIR)/indent; \
14742 cd "$(HOST_SUBDIR)/indent" || exit 1; \
295f4e42 14743 case $(srcdir) in \
215c351a
PB
14744 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
14745 *) topdir=`echo $(HOST_SUBDIR)/indent/ | \
14746 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 14747 esac; \
215c351a
PB
14748 srcdiroption="--srcdir=$${topdir}/indent"; \
14749 libsrcdir="$$s/indent"; \
295f4e42 14750 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 14751 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 14752 || exit 1
d32ab992 14753@endif indent
1358ccea 14754
25b42232
PB
14755
14756
ce406537
PB
14757
14758
d32ab992
PB
14759.PHONY: all-indent maybe-all-indent
14760maybe-all-indent:
3ff3adad
PB
14761@if gcc-bootstrap
14762all-indent: stage_current
14763@endif gcc-bootstrap
d32ab992 14764@if indent
7e0b5752 14765TARGET-indent=all
d32ab992
PB
14766maybe-all-indent: all-indent
14767all-indent: configure-indent
f41d6665 14768 @: $(MAKE); $(unstage)
295f4e42
NN
14769 @r=`${PWD_COMMAND}`; export r; \
14770 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14771 $(HOST_EXPORTS) \
215c351a
PB
14772 (cd $(HOST_SUBDIR)/indent && \
14773 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-indent))
d32ab992 14774@endif indent
1358ccea 14775
25b42232 14776
ce406537
PB
14777
14778
d32ab992
PB
14779.PHONY: check-indent maybe-check-indent
14780maybe-check-indent:
14781@if indent
14782maybe-check-indent: check-indent
1358ccea 14783
d32ab992 14784check-indent:
f41d6665 14785 @: $(MAKE); $(unstage)
295f4e42 14786 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 14787 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14788 $(HOST_EXPORTS) \
215c351a
PB
14789 (cd $(HOST_SUBDIR)/indent && \
14790 $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 14791
d32ab992 14792@endif indent
1358ccea 14793
d32ab992
PB
14794.PHONY: install-indent maybe-install-indent
14795maybe-install-indent:
14796@if indent
14797maybe-install-indent: install-indent
1358ccea 14798
d32ab992 14799install-indent: installdirs
f41d6665 14800 @: $(MAKE); $(unstage)
295f4e42 14801 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 14802 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14803 $(HOST_EXPORTS) \
215c351a 14804 (cd $(HOST_SUBDIR)/indent && \
ace9ac7b 14805 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 14806
d32ab992 14807@endif indent
1358ccea 14808
295f4e42 14809# Other targets (info, dvi, etc.)
1358ccea 14810
d32ab992
PB
14811.PHONY: maybe-info-indent info-indent
14812maybe-info-indent:
14813@if indent
14814maybe-info-indent: info-indent
295f4e42 14815
d32ab992 14816info-indent: \
05750653 14817 configure-indent
f41d6665 14818 @: $(MAKE); $(unstage)
d32ab992 14819 @[ -f ./indent/Makefile ] || exit 0; \
8c90b13a
L
14820 r=`${PWD_COMMAND}`; export r; \
14821 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14822 $(HOST_EXPORTS) \
d32ab992 14823 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14824 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14825 done; \
d32ab992 14826 echo "Doing info in indent" ; \
215c351a 14827 (cd $(HOST_SUBDIR)/indent && \
1358ccea
NN
14828 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14829 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14830 "RANLIB=$${RANLIB}" \
14831 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14832 info) \
1358ccea
NN
14833 || exit 1
14834
d32ab992 14835@endif indent
1358ccea 14836
d32ab992
PB
14837.PHONY: maybe-dvi-indent dvi-indent
14838maybe-dvi-indent:
14839@if indent
14840maybe-dvi-indent: dvi-indent
1358ccea 14841
d32ab992 14842dvi-indent: \
05750653 14843 configure-indent
f41d6665 14844 @: $(MAKE); $(unstage)
d32ab992 14845 @[ -f ./indent/Makefile ] || exit 0; \
8c90b13a
L
14846 r=`${PWD_COMMAND}`; export r; \
14847 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14848 $(HOST_EXPORTS) \
d32ab992 14849 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14850 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14851 done; \
d32ab992 14852 echo "Doing dvi in indent" ; \
215c351a 14853 (cd $(HOST_SUBDIR)/indent && \
1358ccea
NN
14854 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14855 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14856 "RANLIB=$${RANLIB}" \
14857 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14858 dvi) \
1358ccea
NN
14859 || exit 1
14860
d32ab992 14861@endif indent
1358ccea 14862
f87a2b2e
MS
14863.PHONY: maybe-html-indent html-indent
14864maybe-html-indent:
14865@if indent
14866maybe-html-indent: html-indent
14867
14868html-indent: \
05750653 14869 configure-indent
f41d6665 14870 @: $(MAKE); $(unstage)
f87a2b2e
MS
14871 @[ -f ./indent/Makefile ] || exit 0; \
14872 r=`${PWD_COMMAND}`; export r; \
14873 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
14874 $(HOST_EXPORTS) \
14875 for flag in $(EXTRA_HOST_FLAGS) ; do \
14876 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14877 done; \
14878 echo "Doing html in indent" ; \
215c351a 14879 (cd $(HOST_SUBDIR)/indent && \
f87a2b2e
MS
14880 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14881 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14882 "RANLIB=$${RANLIB}" \
14883 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14884 html) \
14885 || exit 1
14886
14887@endif indent
14888
d32ab992
PB
14889.PHONY: maybe-TAGS-indent TAGS-indent
14890maybe-TAGS-indent:
14891@if indent
14892maybe-TAGS-indent: TAGS-indent
1358ccea 14893
d32ab992 14894TAGS-indent: \
05750653 14895 configure-indent
f41d6665 14896 @: $(MAKE); $(unstage)
d32ab992 14897 @[ -f ./indent/Makefile ] || exit 0; \
8c90b13a
L
14898 r=`${PWD_COMMAND}`; export r; \
14899 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14900 $(HOST_EXPORTS) \
d32ab992 14901 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14902 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14903 done; \
d32ab992 14904 echo "Doing TAGS in indent" ; \
215c351a 14905 (cd $(HOST_SUBDIR)/indent && \
1358ccea
NN
14906 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14907 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14908 "RANLIB=$${RANLIB}" \
14909 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14910 TAGS) \
1358ccea
NN
14911 || exit 1
14912
d32ab992 14913@endif indent
1358ccea 14914
d32ab992
PB
14915.PHONY: maybe-install-info-indent install-info-indent
14916maybe-install-info-indent:
14917@if indent
14918maybe-install-info-indent: install-info-indent
1358ccea 14919
d32ab992
PB
14920install-info-indent: \
14921 configure-indent \
05750653 14922 info-indent
f41d6665 14923 @: $(MAKE); $(unstage)
d32ab992 14924 @[ -f ./indent/Makefile ] || exit 0; \
8c90b13a
L
14925 r=`${PWD_COMMAND}`; export r; \
14926 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14927 $(HOST_EXPORTS) \
d32ab992 14928 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14929 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14930 done; \
d32ab992 14931 echo "Doing install-info in indent" ; \
215c351a 14932 (cd $(HOST_SUBDIR)/indent && \
1358ccea
NN
14933 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14934 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14935 "RANLIB=$${RANLIB}" \
14936 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14937 install-info) \
1358ccea
NN
14938 || exit 1
14939
d32ab992 14940@endif indent
1358ccea 14941
65d6e994
CD
14942.PHONY: maybe-install-html-indent install-html-indent
14943maybe-install-html-indent:
14944@if indent
14945maybe-install-html-indent: install-html-indent
14946
14947install-html-indent: \
14948 configure-indent \
14949 html-indent
14950 @: $(MAKE); $(unstage)
14951 @[ -f ./indent/Makefile ] || exit 0; \
14952 r=`${PWD_COMMAND}`; export r; \
14953 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14954 $(HOST_EXPORTS) \
14955 for flag in $(EXTRA_HOST_FLAGS) ; do \
14956 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14957 done; \
14958 echo "Doing install-html in indent" ; \
14959 (cd $(HOST_SUBDIR)/indent && \
14960 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14961 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14962 "RANLIB=$${RANLIB}" \
14963 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14964 install-html) \
14965 || exit 1
14966
14967@endif indent
14968
d32ab992
PB
14969.PHONY: maybe-installcheck-indent installcheck-indent
14970maybe-installcheck-indent:
14971@if indent
14972maybe-installcheck-indent: installcheck-indent
1358ccea 14973
d32ab992 14974installcheck-indent: \
05750653 14975 configure-indent
f41d6665 14976 @: $(MAKE); $(unstage)
d32ab992 14977 @[ -f ./indent/Makefile ] || exit 0; \
8c90b13a
L
14978 r=`${PWD_COMMAND}`; export r; \
14979 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14980 $(HOST_EXPORTS) \
d32ab992 14981 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14982 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14983 done; \
d32ab992 14984 echo "Doing installcheck in indent" ; \
215c351a 14985 (cd $(HOST_SUBDIR)/indent && \
1358ccea
NN
14986 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14987 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14988 "RANLIB=$${RANLIB}" \
14989 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14990 installcheck) \
1358ccea
NN
14991 || exit 1
14992
d32ab992 14993@endif indent
1358ccea 14994
d32ab992
PB
14995.PHONY: maybe-mostlyclean-indent mostlyclean-indent
14996maybe-mostlyclean-indent:
14997@if indent
14998maybe-mostlyclean-indent: mostlyclean-indent
1358ccea 14999
05750653 15000mostlyclean-indent:
f41d6665 15001 @: $(MAKE); $(unstage)
d32ab992 15002 @[ -f ./indent/Makefile ] || exit 0; \
8c90b13a
L
15003 r=`${PWD_COMMAND}`; export r; \
15004 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15005 $(HOST_EXPORTS) \
d32ab992 15006 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
15007 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15008 done; \
d32ab992 15009 echo "Doing mostlyclean in indent" ; \
215c351a 15010 (cd $(HOST_SUBDIR)/indent && \
1358ccea
NN
15011 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15012 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15013 "RANLIB=$${RANLIB}" \
15014 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15015 mostlyclean) \
1358ccea
NN
15016 || exit 1
15017
d32ab992 15018@endif indent
1358ccea 15019
d32ab992
PB
15020.PHONY: maybe-clean-indent clean-indent
15021maybe-clean-indent:
15022@if indent
15023maybe-clean-indent: clean-indent
1358ccea 15024
05750653 15025clean-indent:
f41d6665 15026 @: $(MAKE); $(unstage)
d32ab992 15027 @[ -f ./indent/Makefile ] || exit 0; \
8c90b13a
L
15028 r=`${PWD_COMMAND}`; export r; \
15029 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15030 $(HOST_EXPORTS) \
d32ab992 15031 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
15032 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15033 done; \
d32ab992 15034 echo "Doing clean in indent" ; \
215c351a 15035 (cd $(HOST_SUBDIR)/indent && \
1358ccea
NN
15036 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15037 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15038 "RANLIB=$${RANLIB}" \
15039 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15040 clean) \
1358ccea
NN
15041 || exit 1
15042
d32ab992 15043@endif indent
1358ccea 15044
d32ab992
PB
15045.PHONY: maybe-distclean-indent distclean-indent
15046maybe-distclean-indent:
15047@if indent
15048maybe-distclean-indent: distclean-indent
1358ccea 15049
05750653 15050distclean-indent:
f41d6665 15051 @: $(MAKE); $(unstage)
d32ab992 15052 @[ -f ./indent/Makefile ] || exit 0; \
8c90b13a
L
15053 r=`${PWD_COMMAND}`; export r; \
15054 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15055 $(HOST_EXPORTS) \
d32ab992 15056 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
15057 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15058 done; \
d32ab992 15059 echo "Doing distclean in indent" ; \
215c351a 15060 (cd $(HOST_SUBDIR)/indent && \
1358ccea
NN
15061 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15062 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15063 "RANLIB=$${RANLIB}" \
15064 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15065 distclean) \
1358ccea
NN
15066 || exit 1
15067
d32ab992 15068@endif indent
1358ccea 15069
d32ab992
PB
15070.PHONY: maybe-maintainer-clean-indent maintainer-clean-indent
15071maybe-maintainer-clean-indent:
15072@if indent
15073maybe-maintainer-clean-indent: maintainer-clean-indent
1358ccea 15074
05750653 15075maintainer-clean-indent:
f41d6665 15076 @: $(MAKE); $(unstage)
d32ab992 15077 @[ -f ./indent/Makefile ] || exit 0; \
8c90b13a
L
15078 r=`${PWD_COMMAND}`; export r; \
15079 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15080 $(HOST_EXPORTS) \
d32ab992 15081 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
15082 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15083 done; \
d32ab992 15084 echo "Doing maintainer-clean in indent" ; \
215c351a 15085 (cd $(HOST_SUBDIR)/indent && \
1358ccea
NN
15086 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15087 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15088 "RANLIB=$${RANLIB}" \
15089 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15090 maintainer-clean) \
1358ccea
NN
15091 || exit 1
15092
d32ab992 15093@endif indent
1358ccea 15094
1358ccea 15095
25b42232 15096
d32ab992
PB
15097.PHONY: configure-intl maybe-configure-intl
15098maybe-configure-intl:
3ff3adad
PB
15099@if gcc-bootstrap
15100configure-intl: stage_current
15101@endif gcc-bootstrap
d32ab992
PB
15102@if intl
15103maybe-configure-intl: configure-intl
cc11cc9b 15104configure-intl:
cc11cc9b
PB
15105 @r=`${PWD_COMMAND}`; export r; \
15106 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
215c351a
PB
15107 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
15108 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
4fc4dd12 15109 $(HOST_EXPORTS) \
25b42232
PB
15110 echo Configuring in $(HOST_SUBDIR)/intl; \
15111 cd "$(HOST_SUBDIR)/intl" || exit 1; \
295f4e42 15112 case $(srcdir) in \
215c351a
PB
15113 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15114 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
15115 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 15116 esac; \
215c351a
PB
15117 srcdiroption="--srcdir=$${topdir}/intl"; \
15118 libsrcdir="$$s/intl"; \
295f4e42 15119 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 15120 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 15121 || exit 1
d32ab992 15122@endif intl
1358ccea 15123
25b42232
PB
15124
15125
ce406537
PB
15126.PHONY: configure-stage1-intl maybe-configure-stage1-intl
15127maybe-configure-stage1-intl:
15128@if intl-bootstrap
15129maybe-configure-stage1-intl: configure-stage1-intl
f41d6665 15130configure-stage1-intl:
cc11cc9b 15131 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
f41d6665 15132 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
cc11cc9b
PB
15133 @r=`${PWD_COMMAND}`; export r; \
15134 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 15135 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
ce406537
PB
15136 $(HOST_EXPORTS) \
15137 echo Configuring stage 1 in $(HOST_SUBDIR)/intl ; \
f41d6665 15138 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
ce406537
PB
15139 cd $(HOST_SUBDIR)/intl || exit 1; \
15140 case $(srcdir) in \
15141 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15142 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
15143 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15144 esac; \
15145 srcdiroption="--srcdir=$${topdir}/intl"; \
15146 libsrcdir="$$s/intl"; \
15147 $(SHELL) $${libsrcdir}/configure \
15148 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 15149 \
ce406537
PB
15150 --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
15151@endif intl-bootstrap
15152
15153.PHONY: configure-stage2-intl maybe-configure-stage2-intl
15154maybe-configure-stage2-intl:
15155@if intl-bootstrap
15156maybe-configure-stage2-intl: configure-stage2-intl
f41d6665 15157configure-stage2-intl:
cc11cc9b 15158 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
f41d6665 15159 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
cc11cc9b
PB
15160 @r=`${PWD_COMMAND}`; export r; \
15161 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 15162 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
ce406537
PB
15163 $(HOST_EXPORTS) \
15164 $(POSTSTAGE1_HOST_EXPORTS) \
15165 echo Configuring stage 2 in $(HOST_SUBDIR)/intl ; \
f41d6665 15166 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
ce406537
PB
15167 cd $(HOST_SUBDIR)/intl || exit 1; \
15168 case $(srcdir) in \
15169 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15170 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
15171 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15172 esac; \
15173 srcdiroption="--srcdir=$${topdir}/intl"; \
15174 libsrcdir="$$s/intl"; \
15175 $(SHELL) $${libsrcdir}/configure \
15176 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 15177 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
15178 @stage2_werror_flag@
15179@endif intl-bootstrap
15180
15181.PHONY: configure-stage3-intl maybe-configure-stage3-intl
15182maybe-configure-stage3-intl:
15183@if intl-bootstrap
15184maybe-configure-stage3-intl: configure-stage3-intl
f41d6665 15185configure-stage3-intl:
cc11cc9b 15186 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
f41d6665 15187 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
cc11cc9b
PB
15188 @r=`${PWD_COMMAND}`; export r; \
15189 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 15190 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
ce406537
PB
15191 $(HOST_EXPORTS) \
15192 $(POSTSTAGE1_HOST_EXPORTS) \
15193 echo Configuring stage 3 in $(HOST_SUBDIR)/intl ; \
f41d6665 15194 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
ce406537
PB
15195 cd $(HOST_SUBDIR)/intl || exit 1; \
15196 case $(srcdir) in \
15197 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15198 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
15199 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15200 esac; \
15201 srcdiroption="--srcdir=$${topdir}/intl"; \
15202 libsrcdir="$$s/intl"; \
15203 $(SHELL) $${libsrcdir}/configure \
15204 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 15205 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
15206 @stage2_werror_flag@
15207@endif intl-bootstrap
15208
15209.PHONY: configure-stage4-intl maybe-configure-stage4-intl
15210maybe-configure-stage4-intl:
15211@if intl-bootstrap
15212maybe-configure-stage4-intl: configure-stage4-intl
f41d6665 15213configure-stage4-intl:
cc11cc9b 15214 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
f41d6665 15215 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
cc11cc9b
PB
15216 @r=`${PWD_COMMAND}`; export r; \
15217 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 15218 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
ce406537
PB
15219 $(HOST_EXPORTS) \
15220 $(POSTSTAGE1_HOST_EXPORTS) \
15221 echo Configuring stage 4 in $(HOST_SUBDIR)/intl ; \
f41d6665 15222 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
ce406537
PB
15223 cd $(HOST_SUBDIR)/intl || exit 1; \
15224 case $(srcdir) in \
15225 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15226 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
15227 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15228 esac; \
15229 srcdiroption="--srcdir=$${topdir}/intl"; \
15230 libsrcdir="$$s/intl"; \
15231 $(SHELL) $${libsrcdir}/configure \
15232 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 15233 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
15234 @stage2_werror_flag@
15235@endif intl-bootstrap
15236
15237.PHONY: configure-stageprofile-intl maybe-configure-stageprofile-intl
15238maybe-configure-stageprofile-intl:
15239@if intl-bootstrap
15240maybe-configure-stageprofile-intl: configure-stageprofile-intl
f41d6665 15241configure-stageprofile-intl:
cc11cc9b 15242 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
f41d6665 15243 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
cc11cc9b
PB
15244 @r=`${PWD_COMMAND}`; export r; \
15245 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 15246 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
ce406537
PB
15247 $(HOST_EXPORTS) \
15248 $(POSTSTAGE1_HOST_EXPORTS) \
15249 echo Configuring stage profile in $(HOST_SUBDIR)/intl ; \
f41d6665 15250 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
ce406537
PB
15251 cd $(HOST_SUBDIR)/intl || exit 1; \
15252 case $(srcdir) in \
15253 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15254 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
15255 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15256 esac; \
15257 srcdiroption="--srcdir=$${topdir}/intl"; \
15258 libsrcdir="$$s/intl"; \
15259 $(SHELL) $${libsrcdir}/configure \
15260 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 15261 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
15262 @stage2_werror_flag@
15263@endif intl-bootstrap
15264
15265.PHONY: configure-stagefeedback-intl maybe-configure-stagefeedback-intl
15266maybe-configure-stagefeedback-intl:
15267@if intl-bootstrap
15268maybe-configure-stagefeedback-intl: configure-stagefeedback-intl
f41d6665 15269configure-stagefeedback-intl:
cc11cc9b 15270 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
f41d6665 15271 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
cc11cc9b
PB
15272 @r=`${PWD_COMMAND}`; export r; \
15273 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 15274 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
ce406537
PB
15275 $(HOST_EXPORTS) \
15276 $(POSTSTAGE1_HOST_EXPORTS) \
15277 echo Configuring stage feedback in $(HOST_SUBDIR)/intl ; \
f41d6665 15278 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
ce406537
PB
15279 cd $(HOST_SUBDIR)/intl || exit 1; \
15280 case $(srcdir) in \
15281 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15282 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
15283 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
15284 esac; \
15285 srcdiroption="--srcdir=$${topdir}/intl"; \
15286 libsrcdir="$$s/intl"; \
15287 $(SHELL) $${libsrcdir}/configure \
15288 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 15289 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
15290 @stage2_werror_flag@
15291@endif intl-bootstrap
15292
15293
15294
15295
15296
d32ab992
PB
15297.PHONY: all-intl maybe-all-intl
15298maybe-all-intl:
3ff3adad
PB
15299@if gcc-bootstrap
15300all-intl: stage_current
15301@endif gcc-bootstrap
d32ab992 15302@if intl
7e0b5752 15303TARGET-intl=all
d32ab992
PB
15304maybe-all-intl: all-intl
15305all-intl: configure-intl
cc11cc9b 15306 @r=`${PWD_COMMAND}`; export r; \
295f4e42 15307 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15308 $(HOST_EXPORTS) \
215c351a
PB
15309 (cd $(HOST_SUBDIR)/intl && \
15310 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-intl))
d32ab992 15311@endif intl
295f4e42 15312
25b42232 15313
ce406537
PB
15314
15315.PHONY: all-stage1-intl maybe-all-stage1-intl
15316.PHONY: clean-stage1-intl maybe-clean-stage1-intl
15317maybe-all-stage1-intl:
15318maybe-clean-stage1-intl:
15319@if intl-bootstrap
15320maybe-all-stage1-intl: all-stage1-intl
15321all-stage1: all-stage1-intl
1061f99e 15322TARGET-stage1-intl = $(TARGET-intl)
ce406537 15323all-stage1-intl: configure-stage1-intl
cc11cc9b 15324 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
ce406537
PB
15325 @r=`${PWD_COMMAND}`; export r; \
15326 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15327 $(HOST_EXPORTS) \
15328 cd $(HOST_SUBDIR)/intl && \
cc11cc9b 15329 $(MAKE) $(FLAGS_TO_PASS) CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" \
1061f99e 15330 $(TARGET-stage1-intl)
ce406537
PB
15331
15332maybe-clean-stage1-intl: clean-stage1-intl
15333clean-stage1: clean-stage1-intl
15334clean-stage1-intl:
15335 @[ -f $(HOST_SUBDIR)/intl/Makefile ] || [ -f $(HOST_SUBDIR)/stage1-intl/Makefile ] \
15336 || exit 0 ; \
cc11cc9b 15337 [ $(current_stage) = stage1 ] || $(MAKE) stage1-start; \
ce406537
PB
15338 cd $(HOST_SUBDIR)/intl && \
15339 $(MAKE) $(FLAGS_TO_PASS) \
cc11cc9b 15340 CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" clean
ce406537
PB
15341@endif intl-bootstrap
15342
15343
15344.PHONY: all-stage2-intl maybe-all-stage2-intl
15345.PHONY: clean-stage2-intl maybe-clean-stage2-intl
15346maybe-all-stage2-intl:
15347maybe-clean-stage2-intl:
15348@if intl-bootstrap
15349maybe-all-stage2-intl: all-stage2-intl
15350all-stage2: all-stage2-intl
1061f99e 15351TARGET-stage2-intl = $(TARGET-intl)
ce406537 15352all-stage2-intl: configure-stage2-intl
cc11cc9b 15353 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
ce406537
PB
15354 @r=`${PWD_COMMAND}`; export r; \
15355 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15356 $(HOST_EXPORTS) \
15357 $(POSTSTAGE1_HOST_EXPORTS) \
15358 cd $(HOST_SUBDIR)/intl && \
1061f99e
PB
15359 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
15360 $(TARGET-stage2-intl)
ce406537
PB
15361
15362maybe-clean-stage2-intl: clean-stage2-intl
15363clean-stage2: clean-stage2-intl
15364clean-stage2-intl:
15365 @[ -f $(HOST_SUBDIR)/intl/Makefile ] || [ -f $(HOST_SUBDIR)/stage2-intl/Makefile ] \
15366 || exit 0 ; \
cc11cc9b 15367 [ $(current_stage) = stage2 ] || $(MAKE) stage2-start; \
ce406537
PB
15368 cd $(HOST_SUBDIR)/intl && \
15369 $(MAKE) $(FLAGS_TO_PASS) \
15370 $(POSTSTAGE1_FLAGS_TO_PASS) \
15371 clean
15372@endif intl-bootstrap
15373
15374
15375.PHONY: all-stage3-intl maybe-all-stage3-intl
15376.PHONY: clean-stage3-intl maybe-clean-stage3-intl
15377maybe-all-stage3-intl:
15378maybe-clean-stage3-intl:
15379@if intl-bootstrap
15380maybe-all-stage3-intl: all-stage3-intl
15381all-stage3: all-stage3-intl
1061f99e 15382TARGET-stage3-intl = $(TARGET-intl)
ce406537 15383all-stage3-intl: configure-stage3-intl
cc11cc9b 15384 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
ce406537
PB
15385 @r=`${PWD_COMMAND}`; export r; \
15386 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15387 $(HOST_EXPORTS) \
15388 $(POSTSTAGE1_HOST_EXPORTS) \
15389 cd $(HOST_SUBDIR)/intl && \
1061f99e
PB
15390 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
15391 $(TARGET-stage3-intl)
ce406537
PB
15392
15393maybe-clean-stage3-intl: clean-stage3-intl
15394clean-stage3: clean-stage3-intl
15395clean-stage3-intl:
15396 @[ -f $(HOST_SUBDIR)/intl/Makefile ] || [ -f $(HOST_SUBDIR)/stage3-intl/Makefile ] \
15397 || exit 0 ; \
cc11cc9b 15398 [ $(current_stage) = stage3 ] || $(MAKE) stage3-start; \
ce406537
PB
15399 cd $(HOST_SUBDIR)/intl && \
15400 $(MAKE) $(FLAGS_TO_PASS) \
15401 $(POSTSTAGE1_FLAGS_TO_PASS) \
15402 clean
15403@endif intl-bootstrap
15404
15405
15406.PHONY: all-stage4-intl maybe-all-stage4-intl
15407.PHONY: clean-stage4-intl maybe-clean-stage4-intl
15408maybe-all-stage4-intl:
15409maybe-clean-stage4-intl:
15410@if intl-bootstrap
15411maybe-all-stage4-intl: all-stage4-intl
15412all-stage4: all-stage4-intl
1061f99e 15413TARGET-stage4-intl = $(TARGET-intl)
ce406537 15414all-stage4-intl: configure-stage4-intl
cc11cc9b 15415 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
ce406537
PB
15416 @r=`${PWD_COMMAND}`; export r; \
15417 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15418 $(HOST_EXPORTS) \
15419 $(POSTSTAGE1_HOST_EXPORTS) \
15420 cd $(HOST_SUBDIR)/intl && \
1061f99e
PB
15421 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
15422 $(TARGET-stage4-intl)
ce406537
PB
15423
15424maybe-clean-stage4-intl: clean-stage4-intl
15425clean-stage4: clean-stage4-intl
15426clean-stage4-intl:
15427 @[ -f $(HOST_SUBDIR)/intl/Makefile ] || [ -f $(HOST_SUBDIR)/stage4-intl/Makefile ] \
15428 || exit 0 ; \
cc11cc9b 15429 [ $(current_stage) = stage4 ] || $(MAKE) stage4-start; \
ce406537
PB
15430 cd $(HOST_SUBDIR)/intl && \
15431 $(MAKE) $(FLAGS_TO_PASS) \
15432 $(POSTSTAGE1_FLAGS_TO_PASS) \
15433 clean
15434@endif intl-bootstrap
15435
15436
15437.PHONY: all-stageprofile-intl maybe-all-stageprofile-intl
15438.PHONY: clean-stageprofile-intl maybe-clean-stageprofile-intl
15439maybe-all-stageprofile-intl:
15440maybe-clean-stageprofile-intl:
15441@if intl-bootstrap
15442maybe-all-stageprofile-intl: all-stageprofile-intl
15443all-stageprofile: all-stageprofile-intl
1061f99e 15444TARGET-stageprofile-intl = $(TARGET-intl)
ce406537 15445all-stageprofile-intl: configure-stageprofile-intl
cc11cc9b 15446 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
ce406537
PB
15447 @r=`${PWD_COMMAND}`; export r; \
15448 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15449 $(HOST_EXPORTS) \
15450 $(POSTSTAGE1_HOST_EXPORTS) \
15451 cd $(HOST_SUBDIR)/intl && \
1061f99e
PB
15452 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" \
15453 $(TARGET-stageprofile-intl)
ce406537
PB
15454
15455maybe-clean-stageprofile-intl: clean-stageprofile-intl
15456clean-stageprofile: clean-stageprofile-intl
15457clean-stageprofile-intl:
15458 @[ -f $(HOST_SUBDIR)/intl/Makefile ] || [ -f $(HOST_SUBDIR)/stageprofile-intl/Makefile ] \
15459 || exit 0 ; \
cc11cc9b 15460 [ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start; \
ce406537
PB
15461 cd $(HOST_SUBDIR)/intl && \
15462 $(MAKE) $(FLAGS_TO_PASS) \
15463 $(POSTSTAGE1_FLAGS_TO_PASS) \
15464 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean
15465@endif intl-bootstrap
15466
15467
15468.PHONY: all-stagefeedback-intl maybe-all-stagefeedback-intl
15469.PHONY: clean-stagefeedback-intl maybe-clean-stagefeedback-intl
15470maybe-all-stagefeedback-intl:
15471maybe-clean-stagefeedback-intl:
15472@if intl-bootstrap
15473maybe-all-stagefeedback-intl: all-stagefeedback-intl
15474all-stagefeedback: all-stagefeedback-intl
1061f99e 15475TARGET-stagefeedback-intl = $(TARGET-intl)
ce406537 15476all-stagefeedback-intl: configure-stagefeedback-intl
cc11cc9b 15477 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
ce406537
PB
15478 @r=`${PWD_COMMAND}`; export r; \
15479 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15480 $(HOST_EXPORTS) \
15481 $(POSTSTAGE1_HOST_EXPORTS) \
15482 cd $(HOST_SUBDIR)/intl && \
1061f99e
PB
15483 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-use" \
15484 $(TARGET-stagefeedback-intl)
ce406537
PB
15485
15486maybe-clean-stagefeedback-intl: clean-stagefeedback-intl
15487clean-stagefeedback: clean-stagefeedback-intl
15488clean-stagefeedback-intl:
15489 @[ -f $(HOST_SUBDIR)/intl/Makefile ] || [ -f $(HOST_SUBDIR)/stagefeedback-intl/Makefile ] \
15490 || exit 0 ; \
cc11cc9b 15491 [ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start; \
ce406537
PB
15492 cd $(HOST_SUBDIR)/intl && \
15493 $(MAKE) $(FLAGS_TO_PASS) \
15494 $(POSTSTAGE1_FLAGS_TO_PASS) \
15495 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean
15496@endif intl-bootstrap
15497
15498
15499
15500
15501
d32ab992
PB
15502.PHONY: check-intl maybe-check-intl
15503maybe-check-intl:
15504@if intl
15505maybe-check-intl: check-intl
295f4e42 15506
d32ab992 15507check-intl:
f41d6665 15508 @: $(MAKE); $(unstage)
295f4e42
NN
15509 @r=`${PWD_COMMAND}`; export r; \
15510 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15511 $(HOST_EXPORTS) \
215c351a
PB
15512 (cd $(HOST_SUBDIR)/intl && \
15513 $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 15514
d32ab992 15515@endif intl
1358ccea 15516
d32ab992
PB
15517.PHONY: install-intl maybe-install-intl
15518maybe-install-intl:
15519@if intl
15520maybe-install-intl: install-intl
295f4e42 15521
d32ab992 15522install-intl: installdirs
f41d6665 15523 @: $(MAKE); $(unstage)
295f4e42 15524 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 15525 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15526 $(HOST_EXPORTS) \
215c351a 15527 (cd $(HOST_SUBDIR)/intl && \
ace9ac7b 15528 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 15529
d32ab992 15530@endif intl
1358ccea 15531
295f4e42 15532# Other targets (info, dvi, etc.)
1358ccea 15533
d32ab992
PB
15534.PHONY: maybe-info-intl info-intl
15535maybe-info-intl:
15536@if intl
15537maybe-info-intl: info-intl
295f4e42 15538
d32ab992 15539info-intl: \
05750653 15540 configure-intl
d32ab992 15541 @[ -f ./intl/Makefile ] || exit 0; \
8c90b13a
L
15542 r=`${PWD_COMMAND}`; export r; \
15543 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15544 $(HOST_EXPORTS) \
d32ab992 15545 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
15546 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15547 done; \
d32ab992 15548 echo "Doing info in intl" ; \
215c351a 15549 (cd $(HOST_SUBDIR)/intl && \
1358ccea
NN
15550 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15551 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15552 "RANLIB=$${RANLIB}" \
15553 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15554 info) \
1358ccea
NN
15555 || exit 1
15556
d32ab992 15557@endif intl
1358ccea 15558
d32ab992
PB
15559.PHONY: maybe-dvi-intl dvi-intl
15560maybe-dvi-intl:
15561@if intl
15562maybe-dvi-intl: dvi-intl
1358ccea 15563
d32ab992 15564dvi-intl: \
05750653 15565 configure-intl
d32ab992
PB
15566 @[ -f ./intl/Makefile ] || exit 0; \
15567 r=`${PWD_COMMAND}`; export r; \
8c90b13a 15568 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15569 $(HOST_EXPORTS) \
d32ab992 15570 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
15571 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15572 done; \
d32ab992 15573 echo "Doing dvi in intl" ; \
215c351a 15574 (cd $(HOST_SUBDIR)/intl && \
1358ccea
NN
15575 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15576 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15577 "RANLIB=$${RANLIB}" \
15578 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15579 dvi) \
1358ccea
NN
15580 || exit 1
15581
d32ab992 15582@endif intl
1358ccea 15583
f87a2b2e
MS
15584.PHONY: maybe-html-intl html-intl
15585maybe-html-intl:
15586@if intl
15587maybe-html-intl: html-intl
15588
15589html-intl: \
05750653 15590 configure-intl
f87a2b2e
MS
15591 @[ -f ./intl/Makefile ] || exit 0; \
15592 r=`${PWD_COMMAND}`; export r; \
15593 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
15594 $(HOST_EXPORTS) \
15595 for flag in $(EXTRA_HOST_FLAGS) ; do \
15596 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15597 done; \
15598 echo "Doing html in intl" ; \
215c351a 15599 (cd $(HOST_SUBDIR)/intl && \
f87a2b2e
MS
15600 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15601 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15602 "RANLIB=$${RANLIB}" \
15603 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15604 html) \
15605 || exit 1
15606
15607@endif intl
15608
d32ab992
PB
15609.PHONY: maybe-TAGS-intl TAGS-intl
15610maybe-TAGS-intl:
15611@if intl
15612maybe-TAGS-intl: TAGS-intl
1358ccea 15613
d32ab992 15614TAGS-intl: \
05750653 15615 configure-intl
d32ab992 15616 @[ -f ./intl/Makefile ] || exit 0; \
8c90b13a
L
15617 r=`${PWD_COMMAND}`; export r; \
15618 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15619 $(HOST_EXPORTS) \
d32ab992 15620 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
15621 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15622 done; \
d32ab992 15623 echo "Doing TAGS in intl" ; \
215c351a 15624 (cd $(HOST_SUBDIR)/intl && \
1358ccea
NN
15625 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15626 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15627 "RANLIB=$${RANLIB}" \
15628 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15629 TAGS) \
1358ccea
NN
15630 || exit 1
15631
d32ab992 15632@endif intl
1358ccea 15633
d32ab992
PB
15634.PHONY: maybe-install-info-intl install-info-intl
15635maybe-install-info-intl:
15636@if intl
15637maybe-install-info-intl: install-info-intl
1358ccea 15638
d32ab992
PB
15639install-info-intl: \
15640 configure-intl \
05750653 15641 info-intl
d32ab992 15642 @[ -f ./intl/Makefile ] || exit 0; \
8c90b13a
L
15643 r=`${PWD_COMMAND}`; export r; \
15644 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15645 $(HOST_EXPORTS) \
d32ab992 15646 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
15647 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15648 done; \
d32ab992 15649 echo "Doing install-info in intl" ; \
215c351a 15650 (cd $(HOST_SUBDIR)/intl && \
1358ccea
NN
15651 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15652 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15653 "RANLIB=$${RANLIB}" \
15654 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15655 install-info) \
1358ccea
NN
15656 || exit 1
15657
d32ab992 15658@endif intl
1358ccea 15659
65d6e994
CD
15660.PHONY: maybe-install-html-intl install-html-intl
15661maybe-install-html-intl:
15662@if intl
15663maybe-install-html-intl: install-html-intl
15664
15665install-html-intl: \
15666 configure-intl \
15667 html-intl
15668 @[ -f ./intl/Makefile ] || exit 0; \
15669 r=`${PWD_COMMAND}`; export r; \
15670 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15671 $(HOST_EXPORTS) \
15672 for flag in $(EXTRA_HOST_FLAGS) ; do \
15673 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15674 done; \
15675 echo "Doing install-html in intl" ; \
15676 (cd $(HOST_SUBDIR)/intl && \
15677 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15678 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15679 "RANLIB=$${RANLIB}" \
15680 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15681 install-html) \
15682 || exit 1
15683
15684@endif intl
15685
d32ab992
PB
15686.PHONY: maybe-installcheck-intl installcheck-intl
15687maybe-installcheck-intl:
15688@if intl
15689maybe-installcheck-intl: installcheck-intl
1358ccea 15690
d32ab992 15691installcheck-intl: \
05750653 15692 configure-intl
d32ab992 15693 @[ -f ./intl/Makefile ] || exit 0; \
8c90b13a
L
15694 r=`${PWD_COMMAND}`; export r; \
15695 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15696 $(HOST_EXPORTS) \
d32ab992 15697 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
15698 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15699 done; \
d32ab992 15700 echo "Doing installcheck in intl" ; \
215c351a 15701 (cd $(HOST_SUBDIR)/intl && \
1358ccea
NN
15702 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15703 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15704 "RANLIB=$${RANLIB}" \
15705 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15706 installcheck) \
1358ccea
NN
15707 || exit 1
15708
d32ab992 15709@endif intl
1358ccea 15710
d32ab992
PB
15711.PHONY: maybe-mostlyclean-intl mostlyclean-intl
15712maybe-mostlyclean-intl:
15713@if intl
15714maybe-mostlyclean-intl: mostlyclean-intl
1358ccea 15715
05750653 15716mostlyclean-intl:
d32ab992
PB
15717 @[ -f ./intl/Makefile ] || exit 0; \
15718 r=`${PWD_COMMAND}`; export r; \
15719 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d32ab992
PB
15720 $(HOST_EXPORTS) \
15721 for flag in $(EXTRA_HOST_FLAGS) ; do \
15722 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15723 done; \
15724 echo "Doing mostlyclean in intl" ; \
215c351a 15725 (cd $(HOST_SUBDIR)/intl && \
d32ab992
PB
15726 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15727 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15728 "RANLIB=$${RANLIB}" \
15729 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15730 mostlyclean) \
15731 || exit 1
295f4e42 15732
d32ab992 15733@endif intl
295f4e42 15734
d32ab992
PB
15735.PHONY: maybe-clean-intl clean-intl
15736maybe-clean-intl:
15737@if intl
15738maybe-clean-intl: clean-intl
295f4e42 15739
05750653 15740clean-intl:
d32ab992 15741 @[ -f ./intl/Makefile ] || exit 0; \
8c90b13a
L
15742 r=`${PWD_COMMAND}`; export r; \
15743 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15744 $(HOST_EXPORTS) \
d32ab992 15745 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
15746 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15747 done; \
d32ab992 15748 echo "Doing clean in intl" ; \
215c351a 15749 (cd $(HOST_SUBDIR)/intl && \
1358ccea
NN
15750 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15751 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15752 "RANLIB=$${RANLIB}" \
15753 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15754 clean) \
1358ccea
NN
15755 || exit 1
15756
d32ab992 15757@endif intl
1358ccea 15758
d32ab992
PB
15759.PHONY: maybe-distclean-intl distclean-intl
15760maybe-distclean-intl:
15761@if intl
15762maybe-distclean-intl: distclean-intl
1358ccea 15763
05750653 15764distclean-intl:
d32ab992 15765 @[ -f ./intl/Makefile ] || exit 0; \
8c90b13a
L
15766 r=`${PWD_COMMAND}`; export r; \
15767 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15768 $(HOST_EXPORTS) \
d32ab992 15769 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
15770 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15771 done; \
d32ab992 15772 echo "Doing distclean in intl" ; \
215c351a 15773 (cd $(HOST_SUBDIR)/intl && \
1358ccea
NN
15774 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15775 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15776 "RANLIB=$${RANLIB}" \
15777 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15778 distclean) \
1358ccea
NN
15779 || exit 1
15780
d32ab992 15781@endif intl
1358ccea 15782
d32ab992
PB
15783.PHONY: maybe-maintainer-clean-intl maintainer-clean-intl
15784maybe-maintainer-clean-intl:
15785@if intl
15786maybe-maintainer-clean-intl: maintainer-clean-intl
1358ccea 15787
05750653 15788maintainer-clean-intl:
d32ab992 15789 @[ -f ./intl/Makefile ] || exit 0; \
8c90b13a
L
15790 r=`${PWD_COMMAND}`; export r; \
15791 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15792 $(HOST_EXPORTS) \
d32ab992 15793 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
15794 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15795 done; \
d32ab992 15796 echo "Doing maintainer-clean in intl" ; \
215c351a 15797 (cd $(HOST_SUBDIR)/intl && \
1358ccea
NN
15798 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15799 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15800 "RANLIB=$${RANLIB}" \
15801 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15802 maintainer-clean) \
1358ccea
NN
15803 || exit 1
15804
d32ab992 15805@endif intl
1358ccea 15806
1358ccea 15807
25b42232 15808
d32ab992
PB
15809.PHONY: configure-tcl maybe-configure-tcl
15810maybe-configure-tcl:
3ff3adad
PB
15811@if gcc-bootstrap
15812configure-tcl: stage_current
15813@endif gcc-bootstrap
d32ab992
PB
15814@if tcl
15815maybe-configure-tcl: configure-tcl
cc11cc9b 15816configure-tcl:
f41d6665 15817 @: $(MAKE); $(unstage)
cc11cc9b 15818 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 15819 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
15820 test ! -f $(HOST_SUBDIR)/tcl/Makefile || exit 0; \
15821 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/tcl ; \
4fc4dd12 15822 $(HOST_EXPORTS) \
25b42232
PB
15823 echo Configuring in $(HOST_SUBDIR)/tcl; \
15824 cd "$(HOST_SUBDIR)/tcl" || exit 1; \
295f4e42 15825 case $(srcdir) in \
215c351a
PB
15826 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15827 *) topdir=`echo $(HOST_SUBDIR)/tcl/ | \
15828 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 15829 esac; \
215c351a
PB
15830 srcdiroption="--srcdir=$${topdir}/tcl"; \
15831 libsrcdir="$$s/tcl"; \
295f4e42 15832 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 15833 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 15834 || exit 1
d32ab992 15835@endif tcl
1358ccea 15836
25b42232
PB
15837
15838
ce406537
PB
15839
15840
d32ab992
PB
15841.PHONY: all-tcl maybe-all-tcl
15842maybe-all-tcl:
3ff3adad
PB
15843@if gcc-bootstrap
15844all-tcl: stage_current
15845@endif gcc-bootstrap
d32ab992 15846@if tcl
7e0b5752 15847TARGET-tcl=all
d32ab992
PB
15848maybe-all-tcl: all-tcl
15849all-tcl: configure-tcl
f41d6665 15850 @: $(MAKE); $(unstage)
295f4e42
NN
15851 @r=`${PWD_COMMAND}`; export r; \
15852 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15853 $(HOST_EXPORTS) \
215c351a
PB
15854 (cd $(HOST_SUBDIR)/tcl && \
15855 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-tcl))
d32ab992 15856@endif tcl
1358ccea 15857
25b42232 15858
ce406537
PB
15859
15860
d32ab992
PB
15861.PHONY: check-tcl maybe-check-tcl
15862maybe-check-tcl:
15863@if tcl
15864maybe-check-tcl: check-tcl
d9cdb878 15865
d32ab992 15866check-tcl:
f41d6665 15867 @: $(MAKE); $(unstage)
295f4e42 15868 @r=`${PWD_COMMAND}`; export r; \
d9cdb878 15869 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15870 $(HOST_EXPORTS) \
215c351a
PB
15871 (cd $(HOST_SUBDIR)/tcl && \
15872 $(MAKE) $(FLAGS_TO_PASS) check)
d9cdb878 15873
d32ab992 15874@endif tcl
d9cdb878 15875
d32ab992
PB
15876.PHONY: install-tcl maybe-install-tcl
15877maybe-install-tcl:
15878@if tcl
15879maybe-install-tcl: install-tcl
1358ccea 15880
d32ab992 15881install-tcl: installdirs
f41d6665 15882 @: $(MAKE); $(unstage)
295f4e42
NN
15883 @r=`${PWD_COMMAND}`; export r; \
15884 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15885 $(HOST_EXPORTS) \
215c351a 15886 (cd $(HOST_SUBDIR)/tcl && \
ace9ac7b 15887 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 15888
d32ab992 15889@endif tcl
1358ccea 15890
295f4e42 15891# Other targets (info, dvi, etc.)
1358ccea 15892
d32ab992
PB
15893.PHONY: maybe-info-tcl info-tcl
15894maybe-info-tcl:
15895@if tcl
15896maybe-info-tcl: info-tcl
295f4e42 15897
d32ab992 15898info-tcl: \
05750653 15899 configure-tcl
f41d6665 15900 @: $(MAKE); $(unstage)
d32ab992 15901 @[ -f ./tcl/Makefile ] || exit 0; \
8c90b13a
L
15902 r=`${PWD_COMMAND}`; export r; \
15903 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15904 $(HOST_EXPORTS) \
d32ab992 15905 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
15906 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15907 done; \
d32ab992 15908 echo "Doing info in tcl" ; \
215c351a 15909 (cd $(HOST_SUBDIR)/tcl && \
1358ccea
NN
15910 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15911 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15912 "RANLIB=$${RANLIB}" \
15913 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15914 info) \
1358ccea
NN
15915 || exit 1
15916
d32ab992 15917@endif tcl
1358ccea 15918
d32ab992
PB
15919.PHONY: maybe-dvi-tcl dvi-tcl
15920maybe-dvi-tcl:
15921@if tcl
15922maybe-dvi-tcl: dvi-tcl
1358ccea 15923
d32ab992 15924dvi-tcl: \
05750653 15925 configure-tcl
f41d6665 15926 @: $(MAKE); $(unstage)
d32ab992 15927 @[ -f ./tcl/Makefile ] || exit 0; \
8c90b13a
L
15928 r=`${PWD_COMMAND}`; export r; \
15929 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15930 $(HOST_EXPORTS) \
d32ab992 15931 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
15932 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15933 done; \
d32ab992 15934 echo "Doing dvi in tcl" ; \
215c351a 15935 (cd $(HOST_SUBDIR)/tcl && \
1358ccea
NN
15936 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15937 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15938 "RANLIB=$${RANLIB}" \
15939 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15940 dvi) \
1358ccea
NN
15941 || exit 1
15942
d32ab992 15943@endif tcl
1358ccea 15944
f87a2b2e
MS
15945.PHONY: maybe-html-tcl html-tcl
15946maybe-html-tcl:
15947@if tcl
15948maybe-html-tcl: html-tcl
15949
15950html-tcl: \
05750653 15951 configure-tcl
f41d6665 15952 @: $(MAKE); $(unstage)
f87a2b2e
MS
15953 @[ -f ./tcl/Makefile ] || exit 0; \
15954 r=`${PWD_COMMAND}`; export r; \
15955 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
15956 $(HOST_EXPORTS) \
15957 for flag in $(EXTRA_HOST_FLAGS) ; do \
15958 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15959 done; \
15960 echo "Doing html in tcl" ; \
215c351a 15961 (cd $(HOST_SUBDIR)/tcl && \
f87a2b2e
MS
15962 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15963 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15964 "RANLIB=$${RANLIB}" \
15965 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15966 html) \
15967 || exit 1
15968
15969@endif tcl
15970
d32ab992
PB
15971.PHONY: maybe-TAGS-tcl TAGS-tcl
15972maybe-TAGS-tcl:
15973@if tcl
15974maybe-TAGS-tcl: TAGS-tcl
1358ccea 15975
d32ab992 15976TAGS-tcl: \
05750653 15977 configure-tcl
f41d6665 15978 @: $(MAKE); $(unstage)
d32ab992 15979 @[ -f ./tcl/Makefile ] || exit 0; \
8c90b13a
L
15980 r=`${PWD_COMMAND}`; export r; \
15981 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15982 $(HOST_EXPORTS) \
d32ab992 15983 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
15984 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15985 done; \
d32ab992 15986 echo "Doing TAGS in tcl" ; \
215c351a 15987 (cd $(HOST_SUBDIR)/tcl && \
1358ccea
NN
15988 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15989 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15990 "RANLIB=$${RANLIB}" \
15991 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15992 TAGS) \
1358ccea
NN
15993 || exit 1
15994
d32ab992 15995@endif tcl
1358ccea 15996
d32ab992
PB
15997.PHONY: maybe-install-info-tcl install-info-tcl
15998maybe-install-info-tcl:
15999@if tcl
16000maybe-install-info-tcl: install-info-tcl
1358ccea 16001
d32ab992
PB
16002install-info-tcl: \
16003 configure-tcl \
05750653 16004 info-tcl
f41d6665 16005 @: $(MAKE); $(unstage)
d32ab992 16006 @[ -f ./tcl/Makefile ] || exit 0; \
8c90b13a
L
16007 r=`${PWD_COMMAND}`; export r; \
16008 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16009 $(HOST_EXPORTS) \
d32ab992 16010 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
16011 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16012 done; \
d32ab992 16013 echo "Doing install-info in tcl" ; \
215c351a 16014 (cd $(HOST_SUBDIR)/tcl && \
1358ccea
NN
16015 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16016 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16017 "RANLIB=$${RANLIB}" \
16018 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16019 install-info) \
1358ccea
NN
16020 || exit 1
16021
d32ab992 16022@endif tcl
1358ccea 16023
65d6e994
CD
16024.PHONY: maybe-install-html-tcl install-html-tcl
16025maybe-install-html-tcl:
16026@if tcl
16027maybe-install-html-tcl: install-html-tcl
16028
16029install-html-tcl: \
16030 configure-tcl \
16031 html-tcl
16032 @: $(MAKE); $(unstage)
16033 @[ -f ./tcl/Makefile ] || exit 0; \
16034 r=`${PWD_COMMAND}`; export r; \
16035 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16036 $(HOST_EXPORTS) \
16037 for flag in $(EXTRA_HOST_FLAGS) ; do \
16038 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16039 done; \
16040 echo "Doing install-html in tcl" ; \
16041 (cd $(HOST_SUBDIR)/tcl && \
16042 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16043 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16044 "RANLIB=$${RANLIB}" \
16045 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16046 install-html) \
16047 || exit 1
16048
16049@endif tcl
16050
d32ab992
PB
16051.PHONY: maybe-installcheck-tcl installcheck-tcl
16052maybe-installcheck-tcl:
16053@if tcl
16054maybe-installcheck-tcl: installcheck-tcl
1358ccea 16055
d32ab992 16056installcheck-tcl: \
05750653 16057 configure-tcl
f41d6665 16058 @: $(MAKE); $(unstage)
d32ab992 16059 @[ -f ./tcl/Makefile ] || exit 0; \
8c90b13a
L
16060 r=`${PWD_COMMAND}`; export r; \
16061 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16062 $(HOST_EXPORTS) \
d32ab992 16063 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
16064 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16065 done; \
d32ab992 16066 echo "Doing installcheck in tcl" ; \
215c351a 16067 (cd $(HOST_SUBDIR)/tcl && \
1358ccea
NN
16068 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16069 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16070 "RANLIB=$${RANLIB}" \
16071 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16072 installcheck) \
1358ccea
NN
16073 || exit 1
16074
d32ab992 16075@endif tcl
1358ccea 16076
d32ab992
PB
16077.PHONY: maybe-mostlyclean-tcl mostlyclean-tcl
16078maybe-mostlyclean-tcl:
16079@if tcl
16080maybe-mostlyclean-tcl: mostlyclean-tcl
1358ccea 16081
d32ab992
PB
16082# tcl doesn't support mostlyclean.
16083mostlyclean-tcl:
1358ccea 16084
d32ab992 16085@endif tcl
1358ccea 16086
d32ab992
PB
16087.PHONY: maybe-clean-tcl clean-tcl
16088maybe-clean-tcl:
16089@if tcl
16090maybe-clean-tcl: clean-tcl
1358ccea 16091
05750653 16092clean-tcl:
f41d6665 16093 @: $(MAKE); $(unstage)
d32ab992 16094 @[ -f ./tcl/Makefile ] || exit 0; \
8c90b13a
L
16095 r=`${PWD_COMMAND}`; export r; \
16096 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16097 $(HOST_EXPORTS) \
d32ab992 16098 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
16099 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16100 done; \
d32ab992 16101 echo "Doing clean in tcl" ; \
215c351a 16102 (cd $(HOST_SUBDIR)/tcl && \
1358ccea
NN
16103 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16104 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16105 "RANLIB=$${RANLIB}" \
16106 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16107 clean) \
1358ccea
NN
16108 || exit 1
16109
d32ab992 16110@endif tcl
1358ccea 16111
d32ab992
PB
16112.PHONY: maybe-distclean-tcl distclean-tcl
16113maybe-distclean-tcl:
16114@if tcl
16115maybe-distclean-tcl: distclean-tcl
1358ccea 16116
05750653 16117distclean-tcl:
f41d6665 16118 @: $(MAKE); $(unstage)
d32ab992 16119 @[ -f ./tcl/Makefile ] || exit 0; \
8c90b13a
L
16120 r=`${PWD_COMMAND}`; export r; \
16121 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16122 $(HOST_EXPORTS) \
d32ab992 16123 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
16124 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16125 done; \
d32ab992 16126 echo "Doing distclean in tcl" ; \
215c351a 16127 (cd $(HOST_SUBDIR)/tcl && \
1358ccea
NN
16128 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16129 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16130 "RANLIB=$${RANLIB}" \
16131 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16132 distclean) \
1358ccea
NN
16133 || exit 1
16134
d32ab992 16135@endif tcl
1358ccea 16136
d32ab992
PB
16137.PHONY: maybe-maintainer-clean-tcl maintainer-clean-tcl
16138maybe-maintainer-clean-tcl:
16139@if tcl
16140maybe-maintainer-clean-tcl: maintainer-clean-tcl
1358ccea 16141
05750653 16142maintainer-clean-tcl:
f41d6665 16143 @: $(MAKE); $(unstage)
d32ab992 16144 @[ -f ./tcl/Makefile ] || exit 0; \
8c90b13a
L
16145 r=`${PWD_COMMAND}`; export r; \
16146 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16147 $(HOST_EXPORTS) \
d32ab992 16148 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
16149 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16150 done; \
d32ab992 16151 echo "Doing maintainer-clean in tcl" ; \
215c351a 16152 (cd $(HOST_SUBDIR)/tcl && \
1358ccea
NN
16153 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16154 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16155 "RANLIB=$${RANLIB}" \
16156 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16157 maintainer-clean) \
1358ccea
NN
16158 || exit 1
16159
d32ab992 16160@endif tcl
295f4e42
NN
16161
16162
25b42232 16163
d32ab992
PB
16164.PHONY: configure-itcl maybe-configure-itcl
16165maybe-configure-itcl:
3ff3adad
PB
16166@if gcc-bootstrap
16167configure-itcl: stage_current
16168@endif gcc-bootstrap
d32ab992
PB
16169@if itcl
16170maybe-configure-itcl: configure-itcl
cc11cc9b 16171configure-itcl:
f41d6665 16172 @: $(MAKE); $(unstage)
cc11cc9b 16173 @r=`${PWD_COMMAND}`; export r; \
295f4e42 16174 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
16175 test ! -f $(HOST_SUBDIR)/itcl/Makefile || exit 0; \
16176 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/itcl ; \
4fc4dd12 16177 $(HOST_EXPORTS) \
25b42232
PB
16178 echo Configuring in $(HOST_SUBDIR)/itcl; \
16179 cd "$(HOST_SUBDIR)/itcl" || exit 1; \
295f4e42 16180 case $(srcdir) in \
215c351a
PB
16181 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
16182 *) topdir=`echo $(HOST_SUBDIR)/itcl/ | \
16183 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 16184 esac; \
215c351a
PB
16185 srcdiroption="--srcdir=$${topdir}/itcl"; \
16186 libsrcdir="$$s/itcl"; \
295f4e42 16187 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 16188 $(HOST_CONFIGARGS) $${srcdiroption} \
295f4e42 16189 || exit 1
d32ab992 16190@endif itcl
295f4e42 16191
25b42232
PB
16192
16193
ce406537
PB
16194
16195
d32ab992
PB
16196.PHONY: all-itcl maybe-all-itcl
16197maybe-all-itcl:
3ff3adad
PB
16198@if gcc-bootstrap
16199all-itcl: stage_current
16200@endif gcc-bootstrap
d32ab992 16201@if itcl
7e0b5752 16202TARGET-itcl=all
d32ab992
PB
16203maybe-all-itcl: all-itcl
16204all-itcl: configure-itcl
f41d6665 16205 @: $(MAKE); $(unstage)
295f4e42 16206 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 16207 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16208 $(HOST_EXPORTS) \
215c351a
PB
16209 (cd $(HOST_SUBDIR)/itcl && \
16210 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-itcl))
d32ab992 16211@endif itcl
1358ccea 16212
25b42232 16213
ce406537
PB
16214
16215
d32ab992
PB
16216.PHONY: check-itcl maybe-check-itcl
16217maybe-check-itcl:
16218@if itcl
16219maybe-check-itcl: check-itcl
1358ccea 16220
d32ab992 16221check-itcl:
f41d6665 16222 @: $(MAKE); $(unstage)
295f4e42 16223 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 16224 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16225 $(HOST_EXPORTS) \
215c351a
PB
16226 (cd $(HOST_SUBDIR)/itcl && \
16227 $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 16228
d32ab992 16229@endif itcl
1358ccea 16230
d32ab992
PB
16231.PHONY: install-itcl maybe-install-itcl
16232maybe-install-itcl:
16233@if itcl
16234maybe-install-itcl: install-itcl
1358ccea 16235
d32ab992 16236install-itcl: installdirs
f41d6665 16237 @: $(MAKE); $(unstage)
295f4e42 16238 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 16239 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16240 $(HOST_EXPORTS) \
215c351a 16241 (cd $(HOST_SUBDIR)/itcl && \
ace9ac7b 16242 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 16243
d32ab992 16244@endif itcl
1358ccea 16245
295f4e42 16246# Other targets (info, dvi, etc.)
1358ccea 16247
d32ab992
PB
16248.PHONY: maybe-info-itcl info-itcl
16249maybe-info-itcl:
16250@if itcl
16251maybe-info-itcl: info-itcl
295f4e42 16252
d32ab992 16253info-itcl: \
05750653 16254 configure-itcl
f41d6665 16255 @: $(MAKE); $(unstage)
d32ab992 16256 @[ -f ./itcl/Makefile ] || exit 0; \
8c90b13a
L
16257 r=`${PWD_COMMAND}`; export r; \
16258 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16259 $(HOST_EXPORTS) \
d32ab992 16260 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
16261 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16262 done; \
d32ab992 16263 echo "Doing info in itcl" ; \
215c351a 16264 (cd $(HOST_SUBDIR)/itcl && \
1358ccea
NN
16265 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16266 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16267 "RANLIB=$${RANLIB}" \
16268 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16269 info) \
1358ccea
NN
16270 || exit 1
16271
d32ab992 16272@endif itcl
1358ccea 16273
d32ab992
PB
16274.PHONY: maybe-dvi-itcl dvi-itcl
16275maybe-dvi-itcl:
16276@if itcl
16277maybe-dvi-itcl: dvi-itcl
1358ccea 16278
d32ab992 16279dvi-itcl: \
05750653 16280 configure-itcl
f41d6665 16281 @: $(MAKE); $(unstage)
d32ab992 16282 @[ -f ./itcl/Makefile ] || exit 0; \
8c90b13a
L
16283 r=`${PWD_COMMAND}`; export r; \
16284 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16285 $(HOST_EXPORTS) \
d32ab992 16286 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
16287 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16288 done; \
d32ab992 16289 echo "Doing dvi in itcl" ; \
215c351a 16290 (cd $(HOST_SUBDIR)/itcl && \
1358ccea
NN
16291 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16292 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16293 "RANLIB=$${RANLIB}" \
16294 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16295 dvi) \
1358ccea
NN
16296 || exit 1
16297
d32ab992 16298@endif itcl
1358ccea 16299
f87a2b2e
MS
16300.PHONY: maybe-html-itcl html-itcl
16301maybe-html-itcl:
16302@if itcl
16303maybe-html-itcl: html-itcl
16304
16305html-itcl: \
05750653 16306 configure-itcl
f41d6665 16307 @: $(MAKE); $(unstage)
f87a2b2e
MS
16308 @[ -f ./itcl/Makefile ] || exit 0; \
16309 r=`${PWD_COMMAND}`; export r; \
16310 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
16311 $(HOST_EXPORTS) \
16312 for flag in $(EXTRA_HOST_FLAGS) ; do \
16313 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16314 done; \
16315 echo "Doing html in itcl" ; \
215c351a 16316 (cd $(HOST_SUBDIR)/itcl && \
f87a2b2e
MS
16317 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16318 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16319 "RANLIB=$${RANLIB}" \
16320 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16321 html) \
16322 || exit 1
16323
16324@endif itcl
16325
d32ab992
PB
16326.PHONY: maybe-TAGS-itcl TAGS-itcl
16327maybe-TAGS-itcl:
16328@if itcl
16329maybe-TAGS-itcl: TAGS-itcl
1358ccea 16330
d32ab992 16331TAGS-itcl: \
05750653 16332 configure-itcl
f41d6665 16333 @: $(MAKE); $(unstage)
d32ab992 16334 @[ -f ./itcl/Makefile ] || exit 0; \
8c90b13a
L
16335 r=`${PWD_COMMAND}`; export r; \
16336 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16337 $(HOST_EXPORTS) \
d32ab992 16338 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
16339 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16340 done; \
d32ab992 16341 echo "Doing TAGS in itcl" ; \
215c351a 16342 (cd $(HOST_SUBDIR)/itcl && \
1358ccea
NN
16343 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16344 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16345 "RANLIB=$${RANLIB}" \
16346 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16347 TAGS) \
1358ccea
NN
16348 || exit 1
16349
d32ab992 16350@endif itcl
1358ccea 16351
d32ab992
PB
16352.PHONY: maybe-install-info-itcl install-info-itcl
16353maybe-install-info-itcl:
16354@if itcl
16355maybe-install-info-itcl: install-info-itcl
1358ccea 16356
d32ab992
PB
16357install-info-itcl: \
16358 configure-itcl \
05750653 16359 info-itcl
f41d6665 16360 @: $(MAKE); $(unstage)
d32ab992 16361 @[ -f ./itcl/Makefile ] || exit 0; \
8c90b13a
L
16362 r=`${PWD_COMMAND}`; export r; \
16363 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16364 $(HOST_EXPORTS) \
d32ab992 16365 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
16366 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16367 done; \
d32ab992 16368 echo "Doing install-info in itcl" ; \
215c351a 16369 (cd $(HOST_SUBDIR)/itcl && \
1358ccea
NN
16370 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16371 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16372 "RANLIB=$${RANLIB}" \
16373 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16374 install-info) \
1358ccea
NN
16375 || exit 1
16376
d32ab992 16377@endif itcl
1358ccea 16378
65d6e994
CD
16379.PHONY: maybe-install-html-itcl install-html-itcl
16380maybe-install-html-itcl:
16381@if itcl
16382maybe-install-html-itcl: install-html-itcl
16383
16384install-html-itcl: \
16385 configure-itcl \
16386 html-itcl
16387 @: $(MAKE); $(unstage)
16388 @[ -f ./itcl/Makefile ] || exit 0; \
16389 r=`${PWD_COMMAND}`; export r; \
16390 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16391 $(HOST_EXPORTS) \
16392 for flag in $(EXTRA_HOST_FLAGS) ; do \
16393 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16394 done; \
16395 echo "Doing install-html in itcl" ; \
16396 (cd $(HOST_SUBDIR)/itcl && \
16397 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16398 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16399 "RANLIB=$${RANLIB}" \
16400 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16401 install-html) \
16402 || exit 1
16403
16404@endif itcl
16405
d32ab992
PB
16406.PHONY: maybe-installcheck-itcl installcheck-itcl
16407maybe-installcheck-itcl:
16408@if itcl
16409maybe-installcheck-itcl: installcheck-itcl
1358ccea 16410
d32ab992 16411installcheck-itcl: \
05750653 16412 configure-itcl
f41d6665 16413 @: $(MAKE); $(unstage)
d32ab992 16414 @[ -f ./itcl/Makefile ] || exit 0; \
8c90b13a
L
16415 r=`${PWD_COMMAND}`; export r; \
16416 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16417 $(HOST_EXPORTS) \
d32ab992 16418 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
16419 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16420 done; \
d32ab992 16421 echo "Doing installcheck in itcl" ; \
215c351a 16422 (cd $(HOST_SUBDIR)/itcl && \
1358ccea
NN
16423 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16424 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16425 "RANLIB=$${RANLIB}" \
16426 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16427 installcheck) \
1358ccea
NN
16428 || exit 1
16429
d32ab992 16430@endif itcl
1358ccea 16431
d32ab992
PB
16432.PHONY: maybe-mostlyclean-itcl mostlyclean-itcl
16433maybe-mostlyclean-itcl:
16434@if itcl
16435maybe-mostlyclean-itcl: mostlyclean-itcl
1358ccea 16436
05750653 16437mostlyclean-itcl:
f41d6665 16438 @: $(MAKE); $(unstage)
d32ab992 16439 @[ -f ./itcl/Makefile ] || exit 0; \
8c90b13a
L
16440 r=`${PWD_COMMAND}`; export r; \
16441 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16442 $(HOST_EXPORTS) \
d32ab992 16443 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
16444 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16445 done; \
d32ab992 16446 echo "Doing mostlyclean in itcl" ; \
215c351a 16447 (cd $(HOST_SUBDIR)/itcl && \
1358ccea
NN
16448 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16449 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16450 "RANLIB=$${RANLIB}" \
16451 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16452 mostlyclean) \
1358ccea
NN
16453 || exit 1
16454
d32ab992 16455@endif itcl
1358ccea 16456
d32ab992
PB
16457.PHONY: maybe-clean-itcl clean-itcl
16458maybe-clean-itcl:
16459@if itcl
16460maybe-clean-itcl: clean-itcl
1358ccea 16461
05750653 16462clean-itcl:
f41d6665 16463 @: $(MAKE); $(unstage)
d32ab992 16464 @[ -f ./itcl/Makefile ] || exit 0; \
8c90b13a
L
16465 r=`${PWD_COMMAND}`; export r; \
16466 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16467 $(HOST_EXPORTS) \
d32ab992 16468 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
16469 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16470 done; \
d32ab992 16471 echo "Doing clean in itcl" ; \
215c351a 16472 (cd $(HOST_SUBDIR)/itcl && \
1358ccea
NN
16473 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16474 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16475 "RANLIB=$${RANLIB}" \
16476 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16477 clean) \
1358ccea
NN
16478 || exit 1
16479
d32ab992 16480@endif itcl
1358ccea 16481
d32ab992
PB
16482.PHONY: maybe-distclean-itcl distclean-itcl
16483maybe-distclean-itcl:
16484@if itcl
16485maybe-distclean-itcl: distclean-itcl
1358ccea 16486
05750653 16487distclean-itcl:
f41d6665 16488 @: $(MAKE); $(unstage)
d32ab992 16489 @[ -f ./itcl/Makefile ] || exit 0; \
8c90b13a
L
16490 r=`${PWD_COMMAND}`; export r; \
16491 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16492 $(HOST_EXPORTS) \
d32ab992 16493 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
16494 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16495 done; \
d32ab992 16496 echo "Doing distclean in itcl" ; \
215c351a 16497 (cd $(HOST_SUBDIR)/itcl && \
1358ccea
NN
16498 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16499 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16500 "RANLIB=$${RANLIB}" \
16501 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16502 distclean) \
1358ccea
NN
16503 || exit 1
16504
d32ab992 16505@endif itcl
1358ccea 16506
d32ab992
PB
16507.PHONY: maybe-maintainer-clean-itcl maintainer-clean-itcl
16508maybe-maintainer-clean-itcl:
16509@if itcl
16510maybe-maintainer-clean-itcl: maintainer-clean-itcl
1358ccea 16511
05750653 16512maintainer-clean-itcl:
f41d6665 16513 @: $(MAKE); $(unstage)
d32ab992 16514 @[ -f ./itcl/Makefile ] || exit 0; \
8c90b13a
L
16515 r=`${PWD_COMMAND}`; export r; \
16516 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16517 $(HOST_EXPORTS) \
d32ab992 16518 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
16519 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16520 done; \
d32ab992 16521 echo "Doing maintainer-clean in itcl" ; \
215c351a 16522 (cd $(HOST_SUBDIR)/itcl && \
1358ccea
NN
16523 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16524 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16525 "RANLIB=$${RANLIB}" \
16526 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16527 maintainer-clean) \
1358ccea
NN
16528 || exit 1
16529
d32ab992 16530@endif itcl
1358ccea 16531
1358ccea 16532
25b42232 16533
d32ab992
PB
16534.PHONY: configure-ld maybe-configure-ld
16535maybe-configure-ld:
3ff3adad
PB
16536@if gcc-bootstrap
16537configure-ld: stage_current
16538@endif gcc-bootstrap
d32ab992
PB
16539@if ld
16540maybe-configure-ld: configure-ld
cc11cc9b 16541configure-ld:
cc11cc9b
PB
16542 @r=`${PWD_COMMAND}`; export r; \
16543 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
215c351a
PB
16544 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
16545 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
4fc4dd12 16546 $(HOST_EXPORTS) \
25b42232
PB
16547 echo Configuring in $(HOST_SUBDIR)/ld; \
16548 cd "$(HOST_SUBDIR)/ld" || exit 1; \
4f4e53dd 16549 case $(srcdir) in \
215c351a
PB
16550 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
16551 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
16552 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4f4e53dd 16553 esac; \
215c351a
PB
16554 srcdiroption="--srcdir=$${topdir}/ld"; \
16555 libsrcdir="$$s/ld"; \
4f4e53dd 16556 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 16557 $(HOST_CONFIGARGS) $${srcdiroption} \
4f4e53dd 16558 || exit 1
d32ab992 16559@endif ld
4f4e53dd 16560
25b42232
PB
16561
16562
ce406537
PB
16563.PHONY: configure-stage1-ld maybe-configure-stage1-ld
16564maybe-configure-stage1-ld:
16565@if ld-bootstrap
16566maybe-configure-stage1-ld: configure-stage1-ld
f41d6665 16567configure-stage1-ld:
cc11cc9b 16568 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
f41d6665 16569 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
cc11cc9b
PB
16570 @r=`${PWD_COMMAND}`; export r; \
16571 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 16572 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
ce406537
PB
16573 $(HOST_EXPORTS) \
16574 echo Configuring stage 1 in $(HOST_SUBDIR)/ld ; \
f41d6665 16575 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
ce406537
PB
16576 cd $(HOST_SUBDIR)/ld || exit 1; \
16577 case $(srcdir) in \
16578 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
16579 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
16580 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16581 esac; \
16582 srcdiroption="--srcdir=$${topdir}/ld"; \
16583 libsrcdir="$$s/ld"; \
16584 $(SHELL) $${libsrcdir}/configure \
16585 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 16586 \
ce406537
PB
16587 --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
16588@endif ld-bootstrap
16589
16590.PHONY: configure-stage2-ld maybe-configure-stage2-ld
16591maybe-configure-stage2-ld:
16592@if ld-bootstrap
16593maybe-configure-stage2-ld: configure-stage2-ld
f41d6665 16594configure-stage2-ld:
cc11cc9b 16595 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
f41d6665 16596 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
cc11cc9b
PB
16597 @r=`${PWD_COMMAND}`; export r; \
16598 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 16599 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
ce406537
PB
16600 $(HOST_EXPORTS) \
16601 $(POSTSTAGE1_HOST_EXPORTS) \
16602 echo Configuring stage 2 in $(HOST_SUBDIR)/ld ; \
f41d6665 16603 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
ce406537
PB
16604 cd $(HOST_SUBDIR)/ld || exit 1; \
16605 case $(srcdir) in \
16606 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
16607 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
16608 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16609 esac; \
16610 srcdiroption="--srcdir=$${topdir}/ld"; \
16611 libsrcdir="$$s/ld"; \
16612 $(SHELL) $${libsrcdir}/configure \
16613 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 16614 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
16615 @stage2_werror_flag@
16616@endif ld-bootstrap
16617
16618.PHONY: configure-stage3-ld maybe-configure-stage3-ld
16619maybe-configure-stage3-ld:
16620@if ld-bootstrap
16621maybe-configure-stage3-ld: configure-stage3-ld
f41d6665 16622configure-stage3-ld:
cc11cc9b 16623 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
f41d6665 16624 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
cc11cc9b
PB
16625 @r=`${PWD_COMMAND}`; export r; \
16626 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 16627 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
ce406537
PB
16628 $(HOST_EXPORTS) \
16629 $(POSTSTAGE1_HOST_EXPORTS) \
16630 echo Configuring stage 3 in $(HOST_SUBDIR)/ld ; \
f41d6665 16631 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
ce406537
PB
16632 cd $(HOST_SUBDIR)/ld || exit 1; \
16633 case $(srcdir) in \
16634 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
16635 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
16636 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16637 esac; \
16638 srcdiroption="--srcdir=$${topdir}/ld"; \
16639 libsrcdir="$$s/ld"; \
16640 $(SHELL) $${libsrcdir}/configure \
16641 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 16642 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
16643 @stage2_werror_flag@
16644@endif ld-bootstrap
16645
16646.PHONY: configure-stage4-ld maybe-configure-stage4-ld
16647maybe-configure-stage4-ld:
16648@if ld-bootstrap
16649maybe-configure-stage4-ld: configure-stage4-ld
f41d6665 16650configure-stage4-ld:
cc11cc9b 16651 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
f41d6665 16652 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
cc11cc9b
PB
16653 @r=`${PWD_COMMAND}`; export r; \
16654 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 16655 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
ce406537
PB
16656 $(HOST_EXPORTS) \
16657 $(POSTSTAGE1_HOST_EXPORTS) \
16658 echo Configuring stage 4 in $(HOST_SUBDIR)/ld ; \
f41d6665 16659 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
ce406537
PB
16660 cd $(HOST_SUBDIR)/ld || exit 1; \
16661 case $(srcdir) in \
16662 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
16663 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
16664 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16665 esac; \
16666 srcdiroption="--srcdir=$${topdir}/ld"; \
16667 libsrcdir="$$s/ld"; \
16668 $(SHELL) $${libsrcdir}/configure \
16669 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 16670 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
16671 @stage2_werror_flag@
16672@endif ld-bootstrap
16673
16674.PHONY: configure-stageprofile-ld maybe-configure-stageprofile-ld
16675maybe-configure-stageprofile-ld:
16676@if ld-bootstrap
16677maybe-configure-stageprofile-ld: configure-stageprofile-ld
f41d6665 16678configure-stageprofile-ld:
cc11cc9b 16679 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
f41d6665 16680 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
cc11cc9b
PB
16681 @r=`${PWD_COMMAND}`; export r; \
16682 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 16683 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
ce406537
PB
16684 $(HOST_EXPORTS) \
16685 $(POSTSTAGE1_HOST_EXPORTS) \
16686 echo Configuring stage profile in $(HOST_SUBDIR)/ld ; \
f41d6665 16687 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
ce406537
PB
16688 cd $(HOST_SUBDIR)/ld || exit 1; \
16689 case $(srcdir) in \
16690 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
16691 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
16692 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16693 esac; \
16694 srcdiroption="--srcdir=$${topdir}/ld"; \
16695 libsrcdir="$$s/ld"; \
16696 $(SHELL) $${libsrcdir}/configure \
16697 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 16698 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
16699 @stage2_werror_flag@
16700@endif ld-bootstrap
16701
16702.PHONY: configure-stagefeedback-ld maybe-configure-stagefeedback-ld
16703maybe-configure-stagefeedback-ld:
16704@if ld-bootstrap
16705maybe-configure-stagefeedback-ld: configure-stagefeedback-ld
f41d6665 16706configure-stagefeedback-ld:
cc11cc9b 16707 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
f41d6665 16708 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
cc11cc9b
PB
16709 @r=`${PWD_COMMAND}`; export r; \
16710 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 16711 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
ce406537
PB
16712 $(HOST_EXPORTS) \
16713 $(POSTSTAGE1_HOST_EXPORTS) \
16714 echo Configuring stage feedback in $(HOST_SUBDIR)/ld ; \
f41d6665 16715 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
ce406537
PB
16716 cd $(HOST_SUBDIR)/ld || exit 1; \
16717 case $(srcdir) in \
16718 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
16719 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
16720 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16721 esac; \
16722 srcdiroption="--srcdir=$${topdir}/ld"; \
16723 libsrcdir="$$s/ld"; \
16724 $(SHELL) $${libsrcdir}/configure \
16725 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 16726 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
16727 @stage2_werror_flag@
16728@endif ld-bootstrap
16729
16730
16731
16732
16733
d32ab992
PB
16734.PHONY: all-ld maybe-all-ld
16735maybe-all-ld:
3ff3adad
PB
16736@if gcc-bootstrap
16737all-ld: stage_current
16738@endif gcc-bootstrap
d32ab992 16739@if ld
7e0b5752 16740TARGET-ld=all
d32ab992
PB
16741maybe-all-ld: all-ld
16742all-ld: configure-ld
cc11cc9b 16743 @r=`${PWD_COMMAND}`; export r; \
4f4e53dd 16744 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16745 $(HOST_EXPORTS) \
215c351a
PB
16746 (cd $(HOST_SUBDIR)/ld && \
16747 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-ld))
d32ab992 16748@endif ld
4f4e53dd 16749
25b42232 16750
ce406537
PB
16751
16752.PHONY: all-stage1-ld maybe-all-stage1-ld
16753.PHONY: clean-stage1-ld maybe-clean-stage1-ld
16754maybe-all-stage1-ld:
16755maybe-clean-stage1-ld:
16756@if ld-bootstrap
16757maybe-all-stage1-ld: all-stage1-ld
16758all-stage1: all-stage1-ld
1061f99e 16759TARGET-stage1-ld = $(TARGET-ld)
ce406537 16760all-stage1-ld: configure-stage1-ld
cc11cc9b 16761 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
ce406537
PB
16762 @r=`${PWD_COMMAND}`; export r; \
16763 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16764 $(HOST_EXPORTS) \
16765 cd $(HOST_SUBDIR)/ld && \
cc11cc9b 16766 $(MAKE) $(FLAGS_TO_PASS) CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" \
1061f99e 16767 $(TARGET-stage1-ld)
ce406537
PB
16768
16769maybe-clean-stage1-ld: clean-stage1-ld
16770clean-stage1: clean-stage1-ld
16771clean-stage1-ld:
16772 @[ -f $(HOST_SUBDIR)/ld/Makefile ] || [ -f $(HOST_SUBDIR)/stage1-ld/Makefile ] \
16773 || exit 0 ; \
cc11cc9b 16774 [ $(current_stage) = stage1 ] || $(MAKE) stage1-start; \
ce406537
PB
16775 cd $(HOST_SUBDIR)/ld && \
16776 $(MAKE) $(FLAGS_TO_PASS) \
cc11cc9b 16777 CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" clean
ce406537
PB
16778@endif ld-bootstrap
16779
16780
16781.PHONY: all-stage2-ld maybe-all-stage2-ld
16782.PHONY: clean-stage2-ld maybe-clean-stage2-ld
16783maybe-all-stage2-ld:
16784maybe-clean-stage2-ld:
16785@if ld-bootstrap
16786maybe-all-stage2-ld: all-stage2-ld
16787all-stage2: all-stage2-ld
1061f99e 16788TARGET-stage2-ld = $(TARGET-ld)
ce406537 16789all-stage2-ld: configure-stage2-ld
cc11cc9b 16790 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
ce406537
PB
16791 @r=`${PWD_COMMAND}`; export r; \
16792 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16793 $(HOST_EXPORTS) \
16794 $(POSTSTAGE1_HOST_EXPORTS) \
16795 cd $(HOST_SUBDIR)/ld && \
1061f99e
PB
16796 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
16797 $(TARGET-stage2-ld)
ce406537
PB
16798
16799maybe-clean-stage2-ld: clean-stage2-ld
16800clean-stage2: clean-stage2-ld
16801clean-stage2-ld:
16802 @[ -f $(HOST_SUBDIR)/ld/Makefile ] || [ -f $(HOST_SUBDIR)/stage2-ld/Makefile ] \
16803 || exit 0 ; \
cc11cc9b 16804 [ $(current_stage) = stage2 ] || $(MAKE) stage2-start; \
ce406537
PB
16805 cd $(HOST_SUBDIR)/ld && \
16806 $(MAKE) $(FLAGS_TO_PASS) \
16807 $(POSTSTAGE1_FLAGS_TO_PASS) \
16808 clean
16809@endif ld-bootstrap
16810
16811
16812.PHONY: all-stage3-ld maybe-all-stage3-ld
16813.PHONY: clean-stage3-ld maybe-clean-stage3-ld
16814maybe-all-stage3-ld:
16815maybe-clean-stage3-ld:
16816@if ld-bootstrap
16817maybe-all-stage3-ld: all-stage3-ld
16818all-stage3: all-stage3-ld
1061f99e 16819TARGET-stage3-ld = $(TARGET-ld)
ce406537 16820all-stage3-ld: configure-stage3-ld
cc11cc9b 16821 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
ce406537
PB
16822 @r=`${PWD_COMMAND}`; export r; \
16823 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16824 $(HOST_EXPORTS) \
16825 $(POSTSTAGE1_HOST_EXPORTS) \
16826 cd $(HOST_SUBDIR)/ld && \
1061f99e
PB
16827 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
16828 $(TARGET-stage3-ld)
ce406537
PB
16829
16830maybe-clean-stage3-ld: clean-stage3-ld
16831clean-stage3: clean-stage3-ld
16832clean-stage3-ld:
16833 @[ -f $(HOST_SUBDIR)/ld/Makefile ] || [ -f $(HOST_SUBDIR)/stage3-ld/Makefile ] \
16834 || exit 0 ; \
cc11cc9b 16835 [ $(current_stage) = stage3 ] || $(MAKE) stage3-start; \
ce406537
PB
16836 cd $(HOST_SUBDIR)/ld && \
16837 $(MAKE) $(FLAGS_TO_PASS) \
16838 $(POSTSTAGE1_FLAGS_TO_PASS) \
16839 clean
16840@endif ld-bootstrap
16841
16842
16843.PHONY: all-stage4-ld maybe-all-stage4-ld
16844.PHONY: clean-stage4-ld maybe-clean-stage4-ld
16845maybe-all-stage4-ld:
16846maybe-clean-stage4-ld:
16847@if ld-bootstrap
16848maybe-all-stage4-ld: all-stage4-ld
16849all-stage4: all-stage4-ld
1061f99e 16850TARGET-stage4-ld = $(TARGET-ld)
ce406537 16851all-stage4-ld: configure-stage4-ld
cc11cc9b 16852 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
ce406537
PB
16853 @r=`${PWD_COMMAND}`; export r; \
16854 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16855 $(HOST_EXPORTS) \
16856 $(POSTSTAGE1_HOST_EXPORTS) \
16857 cd $(HOST_SUBDIR)/ld && \
1061f99e
PB
16858 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
16859 $(TARGET-stage4-ld)
ce406537
PB
16860
16861maybe-clean-stage4-ld: clean-stage4-ld
16862clean-stage4: clean-stage4-ld
16863clean-stage4-ld:
16864 @[ -f $(HOST_SUBDIR)/ld/Makefile ] || [ -f $(HOST_SUBDIR)/stage4-ld/Makefile ] \
16865 || exit 0 ; \
cc11cc9b 16866 [ $(current_stage) = stage4 ] || $(MAKE) stage4-start; \
ce406537
PB
16867 cd $(HOST_SUBDIR)/ld && \
16868 $(MAKE) $(FLAGS_TO_PASS) \
16869 $(POSTSTAGE1_FLAGS_TO_PASS) \
16870 clean
16871@endif ld-bootstrap
16872
16873
16874.PHONY: all-stageprofile-ld maybe-all-stageprofile-ld
16875.PHONY: clean-stageprofile-ld maybe-clean-stageprofile-ld
16876maybe-all-stageprofile-ld:
16877maybe-clean-stageprofile-ld:
16878@if ld-bootstrap
16879maybe-all-stageprofile-ld: all-stageprofile-ld
16880all-stageprofile: all-stageprofile-ld
1061f99e 16881TARGET-stageprofile-ld = $(TARGET-ld)
ce406537 16882all-stageprofile-ld: configure-stageprofile-ld
cc11cc9b 16883 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
ce406537
PB
16884 @r=`${PWD_COMMAND}`; export r; \
16885 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16886 $(HOST_EXPORTS) \
16887 $(POSTSTAGE1_HOST_EXPORTS) \
16888 cd $(HOST_SUBDIR)/ld && \
1061f99e
PB
16889 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" \
16890 $(TARGET-stageprofile-ld)
ce406537
PB
16891
16892maybe-clean-stageprofile-ld: clean-stageprofile-ld
16893clean-stageprofile: clean-stageprofile-ld
16894clean-stageprofile-ld:
16895 @[ -f $(HOST_SUBDIR)/ld/Makefile ] || [ -f $(HOST_SUBDIR)/stageprofile-ld/Makefile ] \
16896 || exit 0 ; \
cc11cc9b 16897 [ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start; \
ce406537
PB
16898 cd $(HOST_SUBDIR)/ld && \
16899 $(MAKE) $(FLAGS_TO_PASS) \
16900 $(POSTSTAGE1_FLAGS_TO_PASS) \
16901 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean
16902@endif ld-bootstrap
16903
16904
16905.PHONY: all-stagefeedback-ld maybe-all-stagefeedback-ld
16906.PHONY: clean-stagefeedback-ld maybe-clean-stagefeedback-ld
16907maybe-all-stagefeedback-ld:
16908maybe-clean-stagefeedback-ld:
16909@if ld-bootstrap
16910maybe-all-stagefeedback-ld: all-stagefeedback-ld
16911all-stagefeedback: all-stagefeedback-ld
1061f99e 16912TARGET-stagefeedback-ld = $(TARGET-ld)
ce406537 16913all-stagefeedback-ld: configure-stagefeedback-ld
cc11cc9b 16914 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
ce406537
PB
16915 @r=`${PWD_COMMAND}`; export r; \
16916 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16917 $(HOST_EXPORTS) \
16918 $(POSTSTAGE1_HOST_EXPORTS) \
16919 cd $(HOST_SUBDIR)/ld && \
1061f99e
PB
16920 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-use" \
16921 $(TARGET-stagefeedback-ld)
ce406537
PB
16922
16923maybe-clean-stagefeedback-ld: clean-stagefeedback-ld
16924clean-stagefeedback: clean-stagefeedback-ld
16925clean-stagefeedback-ld:
16926 @[ -f $(HOST_SUBDIR)/ld/Makefile ] || [ -f $(HOST_SUBDIR)/stagefeedback-ld/Makefile ] \
16927 || exit 0 ; \
cc11cc9b 16928 [ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start; \
ce406537
PB
16929 cd $(HOST_SUBDIR)/ld && \
16930 $(MAKE) $(FLAGS_TO_PASS) \
16931 $(POSTSTAGE1_FLAGS_TO_PASS) \
16932 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean
16933@endif ld-bootstrap
16934
16935
16936
16937
16938
d32ab992
PB
16939.PHONY: check-ld maybe-check-ld
16940maybe-check-ld:
16941@if ld
16942maybe-check-ld: check-ld
4f4e53dd 16943
d32ab992 16944check-ld:
f41d6665 16945 @: $(MAKE); $(unstage)
4f4e53dd
PB
16946 @r=`${PWD_COMMAND}`; export r; \
16947 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16948 $(HOST_EXPORTS) \
215c351a
PB
16949 (cd $(HOST_SUBDIR)/ld && \
16950 $(MAKE) $(FLAGS_TO_PASS) check)
4f4e53dd 16951
d32ab992 16952@endif ld
4f4e53dd 16953
d32ab992
PB
16954.PHONY: install-ld maybe-install-ld
16955maybe-install-ld:
16956@if ld
16957maybe-install-ld: install-ld
4f4e53dd 16958
d32ab992 16959install-ld: installdirs
f41d6665 16960 @: $(MAKE); $(unstage)
4f4e53dd
PB
16961 @r=`${PWD_COMMAND}`; export r; \
16962 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16963 $(HOST_EXPORTS) \
215c351a 16964 (cd $(HOST_SUBDIR)/ld && \
ace9ac7b 16965 $(MAKE) $(FLAGS_TO_PASS) install)
4f4e53dd 16966
d32ab992 16967@endif ld
4f4e53dd
PB
16968
16969# Other targets (info, dvi, etc.)
16970
d32ab992
PB
16971.PHONY: maybe-info-ld info-ld
16972maybe-info-ld:
16973@if ld
16974maybe-info-ld: info-ld
4f4e53dd 16975
d32ab992 16976info-ld: \
05750653 16977 configure-ld
d32ab992 16978 @[ -f ./ld/Makefile ] || exit 0; \
4f4e53dd
PB
16979 r=`${PWD_COMMAND}`; export r; \
16980 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16981 $(HOST_EXPORTS) \
d32ab992 16982 for flag in $(EXTRA_HOST_FLAGS) ; do \
4f4e53dd
PB
16983 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16984 done; \
d32ab992 16985 echo "Doing info in ld" ; \
215c351a 16986 (cd $(HOST_SUBDIR)/ld && \
4f4e53dd
PB
16987 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16988 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16989 "RANLIB=$${RANLIB}" \
16990 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16991 info) \
4f4e53dd
PB
16992 || exit 1
16993
d32ab992 16994@endif ld
4f4e53dd 16995
d32ab992
PB
16996.PHONY: maybe-dvi-ld dvi-ld
16997maybe-dvi-ld:
16998@if ld
16999maybe-dvi-ld: dvi-ld
4f4e53dd 17000
d32ab992 17001dvi-ld: \
05750653 17002 configure-ld
d32ab992 17003 @[ -f ./ld/Makefile ] || exit 0; \
4f4e53dd
PB
17004 r=`${PWD_COMMAND}`; export r; \
17005 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 17006 $(HOST_EXPORTS) \
d32ab992 17007 for flag in $(EXTRA_HOST_FLAGS) ; do \
4f4e53dd
PB
17008 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17009 done; \
d32ab992 17010 echo "Doing dvi in ld" ; \
215c351a 17011 (cd $(HOST_SUBDIR)/ld && \
4f4e53dd
PB
17012 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17013 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17014 "RANLIB=$${RANLIB}" \
17015 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17016 dvi) \
4f4e53dd
PB
17017 || exit 1
17018
d32ab992 17019@endif ld
4f4e53dd 17020
f87a2b2e
MS
17021.PHONY: maybe-html-ld html-ld
17022maybe-html-ld:
17023@if ld
17024maybe-html-ld: html-ld
17025
17026html-ld: \
05750653 17027 configure-ld
f87a2b2e
MS
17028 @[ -f ./ld/Makefile ] || exit 0; \
17029 r=`${PWD_COMMAND}`; export r; \
17030 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
17031 $(HOST_EXPORTS) \
17032 for flag in $(EXTRA_HOST_FLAGS) ; do \
17033 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17034 done; \
17035 echo "Doing html in ld" ; \
215c351a 17036 (cd $(HOST_SUBDIR)/ld && \
f87a2b2e
MS
17037 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17038 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17039 "RANLIB=$${RANLIB}" \
17040 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17041 html) \
17042 || exit 1
17043
17044@endif ld
17045
d32ab992
PB
17046.PHONY: maybe-TAGS-ld TAGS-ld
17047maybe-TAGS-ld:
17048@if ld
17049maybe-TAGS-ld: TAGS-ld
4f4e53dd 17050
d32ab992 17051TAGS-ld: \
05750653 17052 configure-ld
d32ab992 17053 @[ -f ./ld/Makefile ] || exit 0; \
4f4e53dd
PB
17054 r=`${PWD_COMMAND}`; export r; \
17055 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 17056 $(HOST_EXPORTS) \
d32ab992 17057 for flag in $(EXTRA_HOST_FLAGS) ; do \
4f4e53dd
PB
17058 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17059 done; \
d32ab992 17060 echo "Doing TAGS in ld" ; \
215c351a 17061 (cd $(HOST_SUBDIR)/ld && \
4f4e53dd
PB
17062 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17063 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17064 "RANLIB=$${RANLIB}" \
17065 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17066 TAGS) \
4f4e53dd
PB
17067 || exit 1
17068
d32ab992 17069@endif ld
4f4e53dd 17070
d32ab992
PB
17071.PHONY: maybe-install-info-ld install-info-ld
17072maybe-install-info-ld:
17073@if ld
17074maybe-install-info-ld: install-info-ld
4f4e53dd 17075
d32ab992
PB
17076install-info-ld: \
17077 configure-ld \
05750653 17078 info-ld
d32ab992 17079 @[ -f ./ld/Makefile ] || exit 0; \
4f4e53dd
PB
17080 r=`${PWD_COMMAND}`; export r; \
17081 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 17082 $(HOST_EXPORTS) \
d32ab992 17083 for flag in $(EXTRA_HOST_FLAGS) ; do \
4f4e53dd
PB
17084 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17085 done; \
d32ab992 17086 echo "Doing install-info in ld" ; \
215c351a 17087 (cd $(HOST_SUBDIR)/ld && \
4f4e53dd
PB
17088 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17089 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17090 "RANLIB=$${RANLIB}" \
17091 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17092 install-info) \
4f4e53dd
PB
17093 || exit 1
17094
d32ab992 17095@endif ld
4f4e53dd 17096
65d6e994
CD
17097.PHONY: maybe-install-html-ld install-html-ld
17098maybe-install-html-ld:
17099@if ld
17100maybe-install-html-ld: install-html-ld
17101
17102install-html-ld: \
17103 configure-ld \
17104 html-ld
17105 @[ -f ./ld/Makefile ] || exit 0; \
17106 r=`${PWD_COMMAND}`; export r; \
17107 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17108 $(HOST_EXPORTS) \
17109 for flag in $(EXTRA_HOST_FLAGS) ; do \
17110 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17111 done; \
17112 echo "Doing install-html in ld" ; \
17113 (cd $(HOST_SUBDIR)/ld && \
17114 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17115 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17116 "RANLIB=$${RANLIB}" \
17117 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17118 install-html) \
17119 || exit 1
17120
17121@endif ld
17122
d32ab992
PB
17123.PHONY: maybe-installcheck-ld installcheck-ld
17124maybe-installcheck-ld:
17125@if ld
17126maybe-installcheck-ld: installcheck-ld
4f4e53dd 17127
d32ab992 17128installcheck-ld: \
05750653 17129 configure-ld
d32ab992 17130 @[ -f ./ld/Makefile ] || exit 0; \
4f4e53dd
PB
17131 r=`${PWD_COMMAND}`; export r; \
17132 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 17133 $(HOST_EXPORTS) \
d32ab992 17134 for flag in $(EXTRA_HOST_FLAGS) ; do \
4f4e53dd
PB
17135 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17136 done; \
d32ab992 17137 echo "Doing installcheck in ld" ; \
215c351a 17138 (cd $(HOST_SUBDIR)/ld && \
4f4e53dd
PB
17139 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17140 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17141 "RANLIB=$${RANLIB}" \
17142 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17143 installcheck) \
4f4e53dd
PB
17144 || exit 1
17145
d32ab992 17146@endif ld
4f4e53dd 17147
d32ab992
PB
17148.PHONY: maybe-mostlyclean-ld mostlyclean-ld
17149maybe-mostlyclean-ld:
17150@if ld
17151maybe-mostlyclean-ld: mostlyclean-ld
4f4e53dd 17152
05750653 17153mostlyclean-ld:
d32ab992 17154 @[ -f ./ld/Makefile ] || exit 0; \
4f4e53dd
PB
17155 r=`${PWD_COMMAND}`; export r; \
17156 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 17157 $(HOST_EXPORTS) \
d32ab992 17158 for flag in $(EXTRA_HOST_FLAGS) ; do \
4f4e53dd
PB
17159 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17160 done; \
d32ab992 17161 echo "Doing mostlyclean in ld" ; \
215c351a 17162 (cd $(HOST_SUBDIR)/ld && \
4f4e53dd
PB
17163 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17164 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17165 "RANLIB=$${RANLIB}" \
17166 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17167 mostlyclean) \
4f4e53dd
PB
17168 || exit 1
17169
d32ab992 17170@endif ld
4f4e53dd 17171
d32ab992
PB
17172.PHONY: maybe-clean-ld clean-ld
17173maybe-clean-ld:
17174@if ld
17175maybe-clean-ld: clean-ld
4f4e53dd 17176
05750653 17177clean-ld:
d32ab992 17178 @[ -f ./ld/Makefile ] || exit 0; \
4f4e53dd
PB
17179 r=`${PWD_COMMAND}`; export r; \
17180 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 17181 $(HOST_EXPORTS) \
d32ab992 17182 for flag in $(EXTRA_HOST_FLAGS) ; do \
4f4e53dd
PB
17183 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17184 done; \
d32ab992 17185 echo "Doing clean in ld" ; \
215c351a 17186 (cd $(HOST_SUBDIR)/ld && \
4f4e53dd
PB
17187 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17188 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17189 "RANLIB=$${RANLIB}" \
17190 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17191 clean) \
4f4e53dd
PB
17192 || exit 1
17193
d32ab992 17194@endif ld
4f4e53dd 17195
d32ab992
PB
17196.PHONY: maybe-distclean-ld distclean-ld
17197maybe-distclean-ld:
17198@if ld
17199maybe-distclean-ld: distclean-ld
4f4e53dd 17200
05750653 17201distclean-ld:
d32ab992 17202 @[ -f ./ld/Makefile ] || exit 0; \
4f4e53dd
PB
17203 r=`${PWD_COMMAND}`; export r; \
17204 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 17205 $(HOST_EXPORTS) \
d32ab992 17206 for flag in $(EXTRA_HOST_FLAGS) ; do \
4f4e53dd
PB
17207 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17208 done; \
d32ab992 17209 echo "Doing distclean in ld" ; \
215c351a 17210 (cd $(HOST_SUBDIR)/ld && \
4f4e53dd
PB
17211 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17212 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17213 "RANLIB=$${RANLIB}" \
17214 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17215 distclean) \
4f4e53dd
PB
17216 || exit 1
17217
d32ab992 17218@endif ld
4f4e53dd 17219
d32ab992
PB
17220.PHONY: maybe-maintainer-clean-ld maintainer-clean-ld
17221maybe-maintainer-clean-ld:
17222@if ld
17223maybe-maintainer-clean-ld: maintainer-clean-ld
4f4e53dd 17224
05750653 17225maintainer-clean-ld:
d32ab992 17226 @[ -f ./ld/Makefile ] || exit 0; \
4f4e53dd
PB
17227 r=`${PWD_COMMAND}`; export r; \
17228 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 17229 $(HOST_EXPORTS) \
d32ab992 17230 for flag in $(EXTRA_HOST_FLAGS) ; do \
4f4e53dd
PB
17231 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17232 done; \
d32ab992 17233 echo "Doing maintainer-clean in ld" ; \
215c351a 17234 (cd $(HOST_SUBDIR)/ld && \
4f4e53dd
PB
17235 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17236 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17237 "RANLIB=$${RANLIB}" \
17238 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17239 maintainer-clean) \
4f4e53dd
PB
17240 || exit 1
17241
d32ab992 17242@endif ld
4f4e53dd
PB
17243
17244
25b42232 17245
d32ab992
PB
17246.PHONY: configure-libcpp maybe-configure-libcpp
17247maybe-configure-libcpp:
3ff3adad
PB
17248@if gcc-bootstrap
17249configure-libcpp: stage_current
17250@endif gcc-bootstrap
d32ab992
PB
17251@if libcpp
17252maybe-configure-libcpp: configure-libcpp
cc11cc9b 17253configure-libcpp:
cc11cc9b
PB
17254 @r=`${PWD_COMMAND}`; export r; \
17255 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
215c351a
PB
17256 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
17257 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
4fc4dd12 17258 $(HOST_EXPORTS) \
25b42232
PB
17259 echo Configuring in $(HOST_SUBDIR)/libcpp; \
17260 cd "$(HOST_SUBDIR)/libcpp" || exit 1; \
295f4e42 17261 case $(srcdir) in \
215c351a
PB
17262 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
17263 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
17264 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 17265 esac; \
215c351a
PB
17266 srcdiroption="--srcdir=$${topdir}/libcpp"; \
17267 libsrcdir="$$s/libcpp"; \
295f4e42 17268 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 17269 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 17270 || exit 1
d32ab992 17271@endif libcpp
1358ccea 17272
25b42232
PB
17273
17274
ce406537
PB
17275.PHONY: configure-stage1-libcpp maybe-configure-stage1-libcpp
17276maybe-configure-stage1-libcpp:
17277@if libcpp-bootstrap
17278maybe-configure-stage1-libcpp: configure-stage1-libcpp
f41d6665 17279configure-stage1-libcpp:
cc11cc9b 17280 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
f41d6665 17281 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
cc11cc9b
PB
17282 @r=`${PWD_COMMAND}`; export r; \
17283 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 17284 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
ce406537
PB
17285 $(HOST_EXPORTS) \
17286 echo Configuring stage 1 in $(HOST_SUBDIR)/libcpp ; \
f41d6665 17287 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
ce406537
PB
17288 cd $(HOST_SUBDIR)/libcpp || exit 1; \
17289 case $(srcdir) in \
17290 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
17291 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
17292 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17293 esac; \
17294 srcdiroption="--srcdir=$${topdir}/libcpp"; \
17295 libsrcdir="$$s/libcpp"; \
17296 $(SHELL) $${libsrcdir}/configure \
17297 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 17298 \
ce406537
PB
17299 --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
17300@endif libcpp-bootstrap
17301
17302.PHONY: configure-stage2-libcpp maybe-configure-stage2-libcpp
17303maybe-configure-stage2-libcpp:
17304@if libcpp-bootstrap
17305maybe-configure-stage2-libcpp: configure-stage2-libcpp
f41d6665 17306configure-stage2-libcpp:
cc11cc9b 17307 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
f41d6665 17308 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
cc11cc9b
PB
17309 @r=`${PWD_COMMAND}`; export r; \
17310 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 17311 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
ce406537
PB
17312 $(HOST_EXPORTS) \
17313 $(POSTSTAGE1_HOST_EXPORTS) \
17314 echo Configuring stage 2 in $(HOST_SUBDIR)/libcpp ; \
f41d6665 17315 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
ce406537
PB
17316 cd $(HOST_SUBDIR)/libcpp || exit 1; \
17317 case $(srcdir) in \
17318 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
17319 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
17320 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17321 esac; \
17322 srcdiroption="--srcdir=$${topdir}/libcpp"; \
17323 libsrcdir="$$s/libcpp"; \
17324 $(SHELL) $${libsrcdir}/configure \
17325 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 17326 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
17327 @stage2_werror_flag@
17328@endif libcpp-bootstrap
17329
17330.PHONY: configure-stage3-libcpp maybe-configure-stage3-libcpp
17331maybe-configure-stage3-libcpp:
17332@if libcpp-bootstrap
17333maybe-configure-stage3-libcpp: configure-stage3-libcpp
f41d6665 17334configure-stage3-libcpp:
cc11cc9b 17335 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
f41d6665 17336 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
cc11cc9b
PB
17337 @r=`${PWD_COMMAND}`; export r; \
17338 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 17339 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
ce406537
PB
17340 $(HOST_EXPORTS) \
17341 $(POSTSTAGE1_HOST_EXPORTS) \
17342 echo Configuring stage 3 in $(HOST_SUBDIR)/libcpp ; \
f41d6665 17343 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
ce406537
PB
17344 cd $(HOST_SUBDIR)/libcpp || exit 1; \
17345 case $(srcdir) in \
17346 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
17347 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
17348 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17349 esac; \
17350 srcdiroption="--srcdir=$${topdir}/libcpp"; \
17351 libsrcdir="$$s/libcpp"; \
17352 $(SHELL) $${libsrcdir}/configure \
17353 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 17354 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
17355 @stage2_werror_flag@
17356@endif libcpp-bootstrap
17357
17358.PHONY: configure-stage4-libcpp maybe-configure-stage4-libcpp
17359maybe-configure-stage4-libcpp:
17360@if libcpp-bootstrap
17361maybe-configure-stage4-libcpp: configure-stage4-libcpp
f41d6665 17362configure-stage4-libcpp:
cc11cc9b 17363 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
f41d6665 17364 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
cc11cc9b
PB
17365 @r=`${PWD_COMMAND}`; export r; \
17366 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 17367 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
ce406537
PB
17368 $(HOST_EXPORTS) \
17369 $(POSTSTAGE1_HOST_EXPORTS) \
17370 echo Configuring stage 4 in $(HOST_SUBDIR)/libcpp ; \
f41d6665 17371 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
ce406537
PB
17372 cd $(HOST_SUBDIR)/libcpp || exit 1; \
17373 case $(srcdir) in \
17374 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
17375 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
17376 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17377 esac; \
17378 srcdiroption="--srcdir=$${topdir}/libcpp"; \
17379 libsrcdir="$$s/libcpp"; \
17380 $(SHELL) $${libsrcdir}/configure \
17381 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 17382 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
17383 @stage2_werror_flag@
17384@endif libcpp-bootstrap
17385
17386.PHONY: configure-stageprofile-libcpp maybe-configure-stageprofile-libcpp
17387maybe-configure-stageprofile-libcpp:
17388@if libcpp-bootstrap
17389maybe-configure-stageprofile-libcpp: configure-stageprofile-libcpp
f41d6665 17390configure-stageprofile-libcpp:
cc11cc9b 17391 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
f41d6665 17392 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
cc11cc9b
PB
17393 @r=`${PWD_COMMAND}`; export r; \
17394 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 17395 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
ce406537
PB
17396 $(HOST_EXPORTS) \
17397 $(POSTSTAGE1_HOST_EXPORTS) \
17398 echo Configuring stage profile in $(HOST_SUBDIR)/libcpp ; \
f41d6665 17399 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
ce406537
PB
17400 cd $(HOST_SUBDIR)/libcpp || exit 1; \
17401 case $(srcdir) in \
17402 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
17403 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
17404 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17405 esac; \
17406 srcdiroption="--srcdir=$${topdir}/libcpp"; \
17407 libsrcdir="$$s/libcpp"; \
17408 $(SHELL) $${libsrcdir}/configure \
17409 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 17410 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
17411 @stage2_werror_flag@
17412@endif libcpp-bootstrap
17413
17414.PHONY: configure-stagefeedback-libcpp maybe-configure-stagefeedback-libcpp
17415maybe-configure-stagefeedback-libcpp:
17416@if libcpp-bootstrap
17417maybe-configure-stagefeedback-libcpp: configure-stagefeedback-libcpp
f41d6665 17418configure-stagefeedback-libcpp:
cc11cc9b 17419 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
f41d6665 17420 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
cc11cc9b
PB
17421 @r=`${PWD_COMMAND}`; export r; \
17422 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 17423 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
ce406537
PB
17424 $(HOST_EXPORTS) \
17425 $(POSTSTAGE1_HOST_EXPORTS) \
17426 echo Configuring stage feedback in $(HOST_SUBDIR)/libcpp ; \
f41d6665 17427 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
ce406537
PB
17428 cd $(HOST_SUBDIR)/libcpp || exit 1; \
17429 case $(srcdir) in \
17430 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
17431 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
17432 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17433 esac; \
17434 srcdiroption="--srcdir=$${topdir}/libcpp"; \
17435 libsrcdir="$$s/libcpp"; \
17436 $(SHELL) $${libsrcdir}/configure \
17437 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 17438 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
17439 @stage2_werror_flag@
17440@endif libcpp-bootstrap
17441
17442
17443
17444
17445
d32ab992
PB
17446.PHONY: all-libcpp maybe-all-libcpp
17447maybe-all-libcpp:
3ff3adad
PB
17448@if gcc-bootstrap
17449all-libcpp: stage_current
17450@endif gcc-bootstrap
d32ab992 17451@if libcpp
7e0b5752 17452TARGET-libcpp=all
d32ab992
PB
17453maybe-all-libcpp: all-libcpp
17454all-libcpp: configure-libcpp
cc11cc9b 17455 @r=`${PWD_COMMAND}`; export r; \
295f4e42 17456 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 17457 $(HOST_EXPORTS) \
215c351a
PB
17458 (cd $(HOST_SUBDIR)/libcpp && \
17459 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-libcpp))
d32ab992 17460@endif libcpp
1358ccea 17461
25b42232 17462
ce406537
PB
17463
17464.PHONY: all-stage1-libcpp maybe-all-stage1-libcpp
17465.PHONY: clean-stage1-libcpp maybe-clean-stage1-libcpp
17466maybe-all-stage1-libcpp:
17467maybe-clean-stage1-libcpp:
17468@if libcpp-bootstrap
17469maybe-all-stage1-libcpp: all-stage1-libcpp
17470all-stage1: all-stage1-libcpp
1061f99e 17471TARGET-stage1-libcpp = $(TARGET-libcpp)
ce406537 17472all-stage1-libcpp: configure-stage1-libcpp
cc11cc9b 17473 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
ce406537
PB
17474 @r=`${PWD_COMMAND}`; export r; \
17475 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17476 $(HOST_EXPORTS) \
17477 cd $(HOST_SUBDIR)/libcpp && \
cc11cc9b 17478 $(MAKE) $(FLAGS_TO_PASS) CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" \
1061f99e 17479 $(TARGET-stage1-libcpp)
ce406537
PB
17480
17481maybe-clean-stage1-libcpp: clean-stage1-libcpp
17482clean-stage1: clean-stage1-libcpp
17483clean-stage1-libcpp:
17484 @[ -f $(HOST_SUBDIR)/libcpp/Makefile ] || [ -f $(HOST_SUBDIR)/stage1-libcpp/Makefile ] \
17485 || exit 0 ; \
cc11cc9b 17486 [ $(current_stage) = stage1 ] || $(MAKE) stage1-start; \
ce406537
PB
17487 cd $(HOST_SUBDIR)/libcpp && \
17488 $(MAKE) $(FLAGS_TO_PASS) \
cc11cc9b 17489 CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" clean
ce406537
PB
17490@endif libcpp-bootstrap
17491
17492
17493.PHONY: all-stage2-libcpp maybe-all-stage2-libcpp
17494.PHONY: clean-stage2-libcpp maybe-clean-stage2-libcpp
17495maybe-all-stage2-libcpp:
17496maybe-clean-stage2-libcpp:
17497@if libcpp-bootstrap
17498maybe-all-stage2-libcpp: all-stage2-libcpp
17499all-stage2: all-stage2-libcpp
1061f99e 17500TARGET-stage2-libcpp = $(TARGET-libcpp)
ce406537 17501all-stage2-libcpp: configure-stage2-libcpp
cc11cc9b 17502 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
ce406537
PB
17503 @r=`${PWD_COMMAND}`; export r; \
17504 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17505 $(HOST_EXPORTS) \
17506 $(POSTSTAGE1_HOST_EXPORTS) \
17507 cd $(HOST_SUBDIR)/libcpp && \
1061f99e
PB
17508 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
17509 $(TARGET-stage2-libcpp)
ce406537
PB
17510
17511maybe-clean-stage2-libcpp: clean-stage2-libcpp
17512clean-stage2: clean-stage2-libcpp
17513clean-stage2-libcpp:
17514 @[ -f $(HOST_SUBDIR)/libcpp/Makefile ] || [ -f $(HOST_SUBDIR)/stage2-libcpp/Makefile ] \
17515 || exit 0 ; \
cc11cc9b 17516 [ $(current_stage) = stage2 ] || $(MAKE) stage2-start; \
ce406537
PB
17517 cd $(HOST_SUBDIR)/libcpp && \
17518 $(MAKE) $(FLAGS_TO_PASS) \
17519 $(POSTSTAGE1_FLAGS_TO_PASS) \
17520 clean
17521@endif libcpp-bootstrap
17522
17523
17524.PHONY: all-stage3-libcpp maybe-all-stage3-libcpp
17525.PHONY: clean-stage3-libcpp maybe-clean-stage3-libcpp
17526maybe-all-stage3-libcpp:
17527maybe-clean-stage3-libcpp:
17528@if libcpp-bootstrap
17529maybe-all-stage3-libcpp: all-stage3-libcpp
17530all-stage3: all-stage3-libcpp
1061f99e 17531TARGET-stage3-libcpp = $(TARGET-libcpp)
ce406537 17532all-stage3-libcpp: configure-stage3-libcpp
cc11cc9b 17533 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
ce406537
PB
17534 @r=`${PWD_COMMAND}`; export r; \
17535 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17536 $(HOST_EXPORTS) \
17537 $(POSTSTAGE1_HOST_EXPORTS) \
17538 cd $(HOST_SUBDIR)/libcpp && \
1061f99e
PB
17539 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
17540 $(TARGET-stage3-libcpp)
ce406537
PB
17541
17542maybe-clean-stage3-libcpp: clean-stage3-libcpp
17543clean-stage3: clean-stage3-libcpp
17544clean-stage3-libcpp:
17545 @[ -f $(HOST_SUBDIR)/libcpp/Makefile ] || [ -f $(HOST_SUBDIR)/stage3-libcpp/Makefile ] \
17546 || exit 0 ; \
cc11cc9b 17547 [ $(current_stage) = stage3 ] || $(MAKE) stage3-start; \
ce406537
PB
17548 cd $(HOST_SUBDIR)/libcpp && \
17549 $(MAKE) $(FLAGS_TO_PASS) \
17550 $(POSTSTAGE1_FLAGS_TO_PASS) \
17551 clean
17552@endif libcpp-bootstrap
17553
17554
17555.PHONY: all-stage4-libcpp maybe-all-stage4-libcpp
17556.PHONY: clean-stage4-libcpp maybe-clean-stage4-libcpp
17557maybe-all-stage4-libcpp:
17558maybe-clean-stage4-libcpp:
17559@if libcpp-bootstrap
17560maybe-all-stage4-libcpp: all-stage4-libcpp
17561all-stage4: all-stage4-libcpp
1061f99e 17562TARGET-stage4-libcpp = $(TARGET-libcpp)
ce406537 17563all-stage4-libcpp: configure-stage4-libcpp
cc11cc9b 17564 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
ce406537
PB
17565 @r=`${PWD_COMMAND}`; export r; \
17566 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17567 $(HOST_EXPORTS) \
17568 $(POSTSTAGE1_HOST_EXPORTS) \
17569 cd $(HOST_SUBDIR)/libcpp && \
1061f99e
PB
17570 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
17571 $(TARGET-stage4-libcpp)
ce406537
PB
17572
17573maybe-clean-stage4-libcpp: clean-stage4-libcpp
17574clean-stage4: clean-stage4-libcpp
17575clean-stage4-libcpp:
17576 @[ -f $(HOST_SUBDIR)/libcpp/Makefile ] || [ -f $(HOST_SUBDIR)/stage4-libcpp/Makefile ] \
17577 || exit 0 ; \
cc11cc9b 17578 [ $(current_stage) = stage4 ] || $(MAKE) stage4-start; \
ce406537
PB
17579 cd $(HOST_SUBDIR)/libcpp && \
17580 $(MAKE) $(FLAGS_TO_PASS) \
17581 $(POSTSTAGE1_FLAGS_TO_PASS) \
17582 clean
17583@endif libcpp-bootstrap
17584
17585
17586.PHONY: all-stageprofile-libcpp maybe-all-stageprofile-libcpp
17587.PHONY: clean-stageprofile-libcpp maybe-clean-stageprofile-libcpp
17588maybe-all-stageprofile-libcpp:
17589maybe-clean-stageprofile-libcpp:
17590@if libcpp-bootstrap
17591maybe-all-stageprofile-libcpp: all-stageprofile-libcpp
17592all-stageprofile: all-stageprofile-libcpp
1061f99e 17593TARGET-stageprofile-libcpp = $(TARGET-libcpp)
ce406537 17594all-stageprofile-libcpp: configure-stageprofile-libcpp
cc11cc9b 17595 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
ce406537
PB
17596 @r=`${PWD_COMMAND}`; export r; \
17597 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17598 $(HOST_EXPORTS) \
17599 $(POSTSTAGE1_HOST_EXPORTS) \
17600 cd $(HOST_SUBDIR)/libcpp && \
1061f99e
PB
17601 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" \
17602 $(TARGET-stageprofile-libcpp)
ce406537
PB
17603
17604maybe-clean-stageprofile-libcpp: clean-stageprofile-libcpp
17605clean-stageprofile: clean-stageprofile-libcpp
17606clean-stageprofile-libcpp:
17607 @[ -f $(HOST_SUBDIR)/libcpp/Makefile ] || [ -f $(HOST_SUBDIR)/stageprofile-libcpp/Makefile ] \
17608 || exit 0 ; \
cc11cc9b 17609 [ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start; \
ce406537
PB
17610 cd $(HOST_SUBDIR)/libcpp && \
17611 $(MAKE) $(FLAGS_TO_PASS) \
17612 $(POSTSTAGE1_FLAGS_TO_PASS) \
17613 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean
17614@endif libcpp-bootstrap
17615
17616
17617.PHONY: all-stagefeedback-libcpp maybe-all-stagefeedback-libcpp
17618.PHONY: clean-stagefeedback-libcpp maybe-clean-stagefeedback-libcpp
17619maybe-all-stagefeedback-libcpp:
17620maybe-clean-stagefeedback-libcpp:
17621@if libcpp-bootstrap
17622maybe-all-stagefeedback-libcpp: all-stagefeedback-libcpp
17623all-stagefeedback: all-stagefeedback-libcpp
1061f99e 17624TARGET-stagefeedback-libcpp = $(TARGET-libcpp)
ce406537 17625all-stagefeedback-libcpp: configure-stagefeedback-libcpp
cc11cc9b 17626 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
ce406537
PB
17627 @r=`${PWD_COMMAND}`; export r; \
17628 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17629 $(HOST_EXPORTS) \
17630 $(POSTSTAGE1_HOST_EXPORTS) \
17631 cd $(HOST_SUBDIR)/libcpp && \
1061f99e
PB
17632 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-use" \
17633 $(TARGET-stagefeedback-libcpp)
ce406537
PB
17634
17635maybe-clean-stagefeedback-libcpp: clean-stagefeedback-libcpp
17636clean-stagefeedback: clean-stagefeedback-libcpp
17637clean-stagefeedback-libcpp:
17638 @[ -f $(HOST_SUBDIR)/libcpp/Makefile ] || [ -f $(HOST_SUBDIR)/stagefeedback-libcpp/Makefile ] \
17639 || exit 0 ; \
cc11cc9b 17640 [ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start; \
ce406537
PB
17641 cd $(HOST_SUBDIR)/libcpp && \
17642 $(MAKE) $(FLAGS_TO_PASS) \
17643 $(POSTSTAGE1_FLAGS_TO_PASS) \
17644 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean
17645@endif libcpp-bootstrap
17646
17647
17648
17649
17650
d32ab992
PB
17651.PHONY: check-libcpp maybe-check-libcpp
17652maybe-check-libcpp:
17653@if libcpp
17654maybe-check-libcpp: check-libcpp
1358ccea 17655
d32ab992 17656check-libcpp:
f41d6665 17657 @: $(MAKE); $(unstage)
295f4e42 17658 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 17659 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 17660 $(HOST_EXPORTS) \
215c351a
PB
17661 (cd $(HOST_SUBDIR)/libcpp && \
17662 $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 17663
d32ab992 17664@endif libcpp
1358ccea 17665
d32ab992
PB
17666.PHONY: install-libcpp maybe-install-libcpp
17667maybe-install-libcpp:
17668@if libcpp
17669maybe-install-libcpp: install-libcpp
17670
17671install-libcpp: installdirs
f41d6665 17672 @: $(MAKE); $(unstage)
295f4e42 17673 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 17674 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 17675 $(HOST_EXPORTS) \
215c351a 17676 (cd $(HOST_SUBDIR)/libcpp && \
ace9ac7b 17677 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 17678
d32ab992 17679@endif libcpp
1358ccea 17680
295f4e42 17681# Other targets (info, dvi, etc.)
1358ccea 17682
d32ab992
PB
17683.PHONY: maybe-info-libcpp info-libcpp
17684maybe-info-libcpp:
17685@if libcpp
17686maybe-info-libcpp: info-libcpp
295f4e42 17687
d32ab992 17688info-libcpp: \
05750653 17689 configure-libcpp
d32ab992 17690 @[ -f ./libcpp/Makefile ] || exit 0; \
8c90b13a
L
17691 r=`${PWD_COMMAND}`; export r; \
17692 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 17693 $(HOST_EXPORTS) \
d32ab992 17694 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
17695 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17696 done; \
d32ab992 17697 echo "Doing info in libcpp" ; \
215c351a 17698 (cd $(HOST_SUBDIR)/libcpp && \
1358ccea
NN
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}" \
d32ab992 17703 info) \
1358ccea
NN
17704 || exit 1
17705
d32ab992 17706@endif libcpp
1358ccea 17707
d32ab992
PB
17708.PHONY: maybe-dvi-libcpp dvi-libcpp
17709maybe-dvi-libcpp:
17710@if libcpp
17711maybe-dvi-libcpp: dvi-libcpp
1358ccea 17712
d32ab992 17713dvi-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 dvi 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 dvi) \
1358ccea
NN
17729 || exit 1
17730
d32ab992 17731@endif libcpp
1358ccea 17732
f87a2b2e
MS
17733.PHONY: maybe-html-libcpp html-libcpp
17734maybe-html-libcpp:
17735@if libcpp
17736maybe-html-libcpp: html-libcpp
17737
17738html-libcpp: \
05750653 17739 configure-libcpp
f87a2b2e
MS
17740 @[ -f ./libcpp/Makefile ] || exit 0; \
17741 r=`${PWD_COMMAND}`; export r; \
17742 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
17743 $(HOST_EXPORTS) \
17744 for flag in $(EXTRA_HOST_FLAGS) ; do \
17745 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17746 done; \
17747 echo "Doing html in libcpp" ; \
215c351a 17748 (cd $(HOST_SUBDIR)/libcpp && \
f87a2b2e
MS
17749 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17750 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17751 "RANLIB=$${RANLIB}" \
17752 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17753 html) \
17754 || exit 1
17755
17756@endif libcpp
17757
d32ab992
PB
17758.PHONY: maybe-TAGS-libcpp TAGS-libcpp
17759maybe-TAGS-libcpp:
17760@if libcpp
17761maybe-TAGS-libcpp: TAGS-libcpp
1358ccea 17762
d32ab992 17763TAGS-libcpp: \
05750653 17764 configure-libcpp
d32ab992 17765 @[ -f ./libcpp/Makefile ] || exit 0; \
8c90b13a
L
17766 r=`${PWD_COMMAND}`; export r; \
17767 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 17768 $(HOST_EXPORTS) \
d32ab992 17769 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
17770 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17771 done; \
d32ab992 17772 echo "Doing TAGS in libcpp" ; \
215c351a 17773 (cd $(HOST_SUBDIR)/libcpp && \
1358ccea
NN
17774 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17775 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17776 "RANLIB=$${RANLIB}" \
17777 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17778 TAGS) \
1358ccea
NN
17779 || exit 1
17780
d32ab992 17781@endif libcpp
1358ccea 17782
d32ab992
PB
17783.PHONY: maybe-install-info-libcpp install-info-libcpp
17784maybe-install-info-libcpp:
17785@if libcpp
17786maybe-install-info-libcpp: install-info-libcpp
1358ccea 17787
d32ab992
PB
17788install-info-libcpp: \
17789 configure-libcpp \
05750653 17790 info-libcpp
d32ab992 17791 @[ -f ./libcpp/Makefile ] || exit 0; \
8c90b13a
L
17792 r=`${PWD_COMMAND}`; export r; \
17793 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 17794 $(HOST_EXPORTS) \
d32ab992 17795 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
17796 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17797 done; \
d32ab992 17798 echo "Doing install-info in libcpp" ; \
215c351a 17799 (cd $(HOST_SUBDIR)/libcpp && \
1358ccea
NN
17800 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17801 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17802 "RANLIB=$${RANLIB}" \
17803 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17804 install-info) \
1358ccea
NN
17805 || exit 1
17806
d32ab992 17807@endif libcpp
1358ccea 17808
65d6e994
CD
17809.PHONY: maybe-install-html-libcpp install-html-libcpp
17810maybe-install-html-libcpp:
17811@if libcpp
17812maybe-install-html-libcpp: install-html-libcpp
17813
17814install-html-libcpp: \
17815 configure-libcpp \
17816 html-libcpp
17817 @[ -f ./libcpp/Makefile ] || exit 0; \
17818 r=`${PWD_COMMAND}`; export r; \
17819 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17820 $(HOST_EXPORTS) \
17821 for flag in $(EXTRA_HOST_FLAGS) ; do \
17822 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17823 done; \
17824 echo "Doing install-html in libcpp" ; \
17825 (cd $(HOST_SUBDIR)/libcpp && \
17826 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17827 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17828 "RANLIB=$${RANLIB}" \
17829 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17830 install-html) \
17831 || exit 1
17832
17833@endif libcpp
17834
d32ab992
PB
17835.PHONY: maybe-installcheck-libcpp installcheck-libcpp
17836maybe-installcheck-libcpp:
17837@if libcpp
17838maybe-installcheck-libcpp: installcheck-libcpp
1358ccea 17839
d32ab992 17840installcheck-libcpp: \
05750653 17841 configure-libcpp
d32ab992 17842 @[ -f ./libcpp/Makefile ] || exit 0; \
8c90b13a
L
17843 r=`${PWD_COMMAND}`; export r; \
17844 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 17845 $(HOST_EXPORTS) \
d32ab992 17846 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
17847 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17848 done; \
d32ab992 17849 echo "Doing installcheck in libcpp" ; \
215c351a 17850 (cd $(HOST_SUBDIR)/libcpp && \
1358ccea
NN
17851 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17852 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17853 "RANLIB=$${RANLIB}" \
17854 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17855 installcheck) \
1358ccea
NN
17856 || exit 1
17857
d32ab992 17858@endif libcpp
1358ccea 17859
d32ab992
PB
17860.PHONY: maybe-mostlyclean-libcpp mostlyclean-libcpp
17861maybe-mostlyclean-libcpp:
17862@if libcpp
17863maybe-mostlyclean-libcpp: mostlyclean-libcpp
1358ccea 17864
05750653 17865mostlyclean-libcpp:
d32ab992 17866 @[ -f ./libcpp/Makefile ] || exit 0; \
8c90b13a
L
17867 r=`${PWD_COMMAND}`; export r; \
17868 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 17869 $(HOST_EXPORTS) \
d32ab992 17870 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
17871 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17872 done; \
d32ab992 17873 echo "Doing mostlyclean in libcpp" ; \
215c351a 17874 (cd $(HOST_SUBDIR)/libcpp && \
1358ccea
NN
17875 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17876 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17877 "RANLIB=$${RANLIB}" \
17878 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17879 mostlyclean) \
1358ccea
NN
17880 || exit 1
17881
d32ab992 17882@endif libcpp
1358ccea 17883
d32ab992
PB
17884.PHONY: maybe-clean-libcpp clean-libcpp
17885maybe-clean-libcpp:
17886@if libcpp
17887maybe-clean-libcpp: clean-libcpp
1358ccea 17888
05750653 17889clean-libcpp:
d32ab992 17890 @[ -f ./libcpp/Makefile ] || exit 0; \
8c90b13a
L
17891 r=`${PWD_COMMAND}`; export r; \
17892 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 17893 $(HOST_EXPORTS) \
d32ab992 17894 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
17895 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17896 done; \
d32ab992 17897 echo "Doing clean in libcpp" ; \
215c351a 17898 (cd $(HOST_SUBDIR)/libcpp && \
1358ccea
NN
17899 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17900 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17901 "RANLIB=$${RANLIB}" \
17902 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17903 clean) \
1358ccea
NN
17904 || exit 1
17905
d32ab992 17906@endif libcpp
1358ccea 17907
d32ab992
PB
17908.PHONY: maybe-distclean-libcpp distclean-libcpp
17909maybe-distclean-libcpp:
17910@if libcpp
17911maybe-distclean-libcpp: distclean-libcpp
1358ccea 17912
05750653 17913distclean-libcpp:
d32ab992 17914 @[ -f ./libcpp/Makefile ] || exit 0; \
8c90b13a
L
17915 r=`${PWD_COMMAND}`; export r; \
17916 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 17917 $(HOST_EXPORTS) \
d32ab992 17918 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
17919 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17920 done; \
d32ab992 17921 echo "Doing distclean in libcpp" ; \
215c351a 17922 (cd $(HOST_SUBDIR)/libcpp && \
1358ccea
NN
17923 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17924 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17925 "RANLIB=$${RANLIB}" \
17926 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17927 distclean) \
1358ccea
NN
17928 || exit 1
17929
d32ab992 17930@endif libcpp
1358ccea 17931
d32ab992
PB
17932.PHONY: maybe-maintainer-clean-libcpp maintainer-clean-libcpp
17933maybe-maintainer-clean-libcpp:
17934@if libcpp
17935maybe-maintainer-clean-libcpp: maintainer-clean-libcpp
1358ccea 17936
05750653 17937maintainer-clean-libcpp:
d32ab992 17938 @[ -f ./libcpp/Makefile ] || exit 0; \
8c90b13a
L
17939 r=`${PWD_COMMAND}`; export r; \
17940 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 17941 $(HOST_EXPORTS) \
d32ab992 17942 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
17943 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17944 done; \
d32ab992 17945 echo "Doing maintainer-clean in libcpp" ; \
215c351a 17946 (cd $(HOST_SUBDIR)/libcpp && \
1358ccea
NN
17947 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17948 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17949 "RANLIB=$${RANLIB}" \
17950 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17951 maintainer-clean) \
1358ccea
NN
17952 || exit 1
17953
d32ab992 17954@endif libcpp
1358ccea 17955
1358ccea 17956
25b42232 17957
a4b6c45a
BE
17958.PHONY: configure-libdecnumber maybe-configure-libdecnumber
17959maybe-configure-libdecnumber:
3ff3adad
PB
17960@if gcc-bootstrap
17961configure-libdecnumber: stage_current
17962@endif gcc-bootstrap
a4b6c45a
BE
17963@if libdecnumber
17964maybe-configure-libdecnumber: configure-libdecnumber
cc11cc9b 17965configure-libdecnumber:
cc11cc9b
PB
17966 @r=`${PWD_COMMAND}`; export r; \
17967 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a4b6c45a
BE
17968 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
17969 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \
a4b6c45a
BE
17970 $(HOST_EXPORTS) \
17971 echo Configuring in $(HOST_SUBDIR)/libdecnumber; \
17972 cd "$(HOST_SUBDIR)/libdecnumber" || exit 1; \
17973 case $(srcdir) in \
17974 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
17975 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
17976 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17977 esac; \
17978 srcdiroption="--srcdir=$${topdir}/libdecnumber"; \
17979 libsrcdir="$$s/libdecnumber"; \
17980 $(SHELL) $${libsrcdir}/configure \
17981 $(HOST_CONFIGARGS) $${srcdiroption} \
17982 || exit 1
17983@endif libdecnumber
17984
17985
17986
17987.PHONY: configure-stage1-libdecnumber maybe-configure-stage1-libdecnumber
17988maybe-configure-stage1-libdecnumber:
17989@if libdecnumber-bootstrap
17990maybe-configure-stage1-libdecnumber: configure-stage1-libdecnumber
f41d6665 17991configure-stage1-libdecnumber:
cc11cc9b 17992 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
f41d6665 17993 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
cc11cc9b
PB
17994 @r=`${PWD_COMMAND}`; export r; \
17995 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 17996 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
a4b6c45a
BE
17997 $(HOST_EXPORTS) \
17998 echo Configuring stage 1 in $(HOST_SUBDIR)/libdecnumber ; \
f41d6665 17999 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \
a4b6c45a
BE
18000 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
18001 case $(srcdir) in \
18002 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
18003 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
18004 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18005 esac; \
18006 srcdiroption="--srcdir=$${topdir}/libdecnumber"; \
18007 libsrcdir="$$s/libdecnumber"; \
18008 $(SHELL) $${libsrcdir}/configure \
18009 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 18010 \
a4b6c45a
BE
18011 --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
18012@endif libdecnumber-bootstrap
18013
18014.PHONY: configure-stage2-libdecnumber maybe-configure-stage2-libdecnumber
18015maybe-configure-stage2-libdecnumber:
18016@if libdecnumber-bootstrap
18017maybe-configure-stage2-libdecnumber: configure-stage2-libdecnumber
f41d6665 18018configure-stage2-libdecnumber:
cc11cc9b 18019 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
f41d6665 18020 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
cc11cc9b
PB
18021 @r=`${PWD_COMMAND}`; export r; \
18022 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 18023 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
a4b6c45a
BE
18024 $(HOST_EXPORTS) \
18025 $(POSTSTAGE1_HOST_EXPORTS) \
18026 echo Configuring stage 2 in $(HOST_SUBDIR)/libdecnumber ; \
f41d6665 18027 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \
a4b6c45a
BE
18028 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
18029 case $(srcdir) in \
18030 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
18031 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
18032 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18033 esac; \
18034 srcdiroption="--srcdir=$${topdir}/libdecnumber"; \
18035 libsrcdir="$$s/libdecnumber"; \
18036 $(SHELL) $${libsrcdir}/configure \
18037 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 18038 --with-build-libsubdir=$(HOST_SUBDIR) \
a4b6c45a
BE
18039 @stage2_werror_flag@
18040@endif libdecnumber-bootstrap
18041
18042.PHONY: configure-stage3-libdecnumber maybe-configure-stage3-libdecnumber
18043maybe-configure-stage3-libdecnumber:
18044@if libdecnumber-bootstrap
18045maybe-configure-stage3-libdecnumber: configure-stage3-libdecnumber
f41d6665 18046configure-stage3-libdecnumber:
cc11cc9b 18047 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
f41d6665 18048 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
cc11cc9b
PB
18049 @r=`${PWD_COMMAND}`; export r; \
18050 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 18051 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
a4b6c45a
BE
18052 $(HOST_EXPORTS) \
18053 $(POSTSTAGE1_HOST_EXPORTS) \
18054 echo Configuring stage 3 in $(HOST_SUBDIR)/libdecnumber ; \
f41d6665 18055 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \
a4b6c45a
BE
18056 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
18057 case $(srcdir) in \
18058 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
18059 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
18060 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18061 esac; \
18062 srcdiroption="--srcdir=$${topdir}/libdecnumber"; \
18063 libsrcdir="$$s/libdecnumber"; \
18064 $(SHELL) $${libsrcdir}/configure \
18065 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 18066 --with-build-libsubdir=$(HOST_SUBDIR) \
a4b6c45a
BE
18067 @stage2_werror_flag@
18068@endif libdecnumber-bootstrap
18069
18070.PHONY: configure-stage4-libdecnumber maybe-configure-stage4-libdecnumber
18071maybe-configure-stage4-libdecnumber:
18072@if libdecnumber-bootstrap
18073maybe-configure-stage4-libdecnumber: configure-stage4-libdecnumber
f41d6665 18074configure-stage4-libdecnumber:
cc11cc9b 18075 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
f41d6665 18076 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
cc11cc9b
PB
18077 @r=`${PWD_COMMAND}`; export r; \
18078 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 18079 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
a4b6c45a
BE
18080 $(HOST_EXPORTS) \
18081 $(POSTSTAGE1_HOST_EXPORTS) \
18082 echo Configuring stage 4 in $(HOST_SUBDIR)/libdecnumber ; \
f41d6665 18083 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \
a4b6c45a
BE
18084 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
18085 case $(srcdir) in \
18086 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
18087 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
18088 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18089 esac; \
18090 srcdiroption="--srcdir=$${topdir}/libdecnumber"; \
18091 libsrcdir="$$s/libdecnumber"; \
18092 $(SHELL) $${libsrcdir}/configure \
18093 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 18094 --with-build-libsubdir=$(HOST_SUBDIR) \
a4b6c45a
BE
18095 @stage2_werror_flag@
18096@endif libdecnumber-bootstrap
18097
18098.PHONY: configure-stageprofile-libdecnumber maybe-configure-stageprofile-libdecnumber
18099maybe-configure-stageprofile-libdecnumber:
18100@if libdecnumber-bootstrap
18101maybe-configure-stageprofile-libdecnumber: configure-stageprofile-libdecnumber
f41d6665 18102configure-stageprofile-libdecnumber:
cc11cc9b 18103 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
f41d6665 18104 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
cc11cc9b
PB
18105 @r=`${PWD_COMMAND}`; export r; \
18106 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 18107 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
a4b6c45a
BE
18108 $(HOST_EXPORTS) \
18109 $(POSTSTAGE1_HOST_EXPORTS) \
18110 echo Configuring stage profile in $(HOST_SUBDIR)/libdecnumber ; \
f41d6665 18111 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \
a4b6c45a
BE
18112 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
18113 case $(srcdir) in \
18114 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
18115 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
18116 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18117 esac; \
18118 srcdiroption="--srcdir=$${topdir}/libdecnumber"; \
18119 libsrcdir="$$s/libdecnumber"; \
18120 $(SHELL) $${libsrcdir}/configure \
18121 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 18122 --with-build-libsubdir=$(HOST_SUBDIR) \
a4b6c45a
BE
18123 @stage2_werror_flag@
18124@endif libdecnumber-bootstrap
18125
18126.PHONY: configure-stagefeedback-libdecnumber maybe-configure-stagefeedback-libdecnumber
18127maybe-configure-stagefeedback-libdecnumber:
18128@if libdecnumber-bootstrap
18129maybe-configure-stagefeedback-libdecnumber: configure-stagefeedback-libdecnumber
f41d6665 18130configure-stagefeedback-libdecnumber:
cc11cc9b 18131 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
f41d6665 18132 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
cc11cc9b
PB
18133 @r=`${PWD_COMMAND}`; export r; \
18134 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 18135 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
a4b6c45a
BE
18136 $(HOST_EXPORTS) \
18137 $(POSTSTAGE1_HOST_EXPORTS) \
18138 echo Configuring stage feedback in $(HOST_SUBDIR)/libdecnumber ; \
f41d6665 18139 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \
a4b6c45a
BE
18140 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
18141 case $(srcdir) in \
18142 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
18143 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
18144 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18145 esac; \
18146 srcdiroption="--srcdir=$${topdir}/libdecnumber"; \
18147 libsrcdir="$$s/libdecnumber"; \
18148 $(SHELL) $${libsrcdir}/configure \
18149 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 18150 --with-build-libsubdir=$(HOST_SUBDIR) \
a4b6c45a
BE
18151 @stage2_werror_flag@
18152@endif libdecnumber-bootstrap
18153
18154
18155
18156
18157
18158.PHONY: all-libdecnumber maybe-all-libdecnumber
18159maybe-all-libdecnumber:
3ff3adad
PB
18160@if gcc-bootstrap
18161all-libdecnumber: stage_current
18162@endif gcc-bootstrap
a4b6c45a
BE
18163@if libdecnumber
18164TARGET-libdecnumber=all
18165maybe-all-libdecnumber: all-libdecnumber
18166all-libdecnumber: configure-libdecnumber
cc11cc9b 18167 @r=`${PWD_COMMAND}`; export r; \
a4b6c45a
BE
18168 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18169 $(HOST_EXPORTS) \
18170 (cd $(HOST_SUBDIR)/libdecnumber && \
18171 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-libdecnumber))
18172@endif libdecnumber
18173
18174
18175
18176.PHONY: all-stage1-libdecnumber maybe-all-stage1-libdecnumber
18177.PHONY: clean-stage1-libdecnumber maybe-clean-stage1-libdecnumber
18178maybe-all-stage1-libdecnumber:
18179maybe-clean-stage1-libdecnumber:
18180@if libdecnumber-bootstrap
18181maybe-all-stage1-libdecnumber: all-stage1-libdecnumber
18182all-stage1: all-stage1-libdecnumber
18183TARGET-stage1-libdecnumber = $(TARGET-libdecnumber)
18184all-stage1-libdecnumber: configure-stage1-libdecnumber
cc11cc9b 18185 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a4b6c45a
BE
18186 @r=`${PWD_COMMAND}`; export r; \
18187 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18188 $(HOST_EXPORTS) \
18189 cd $(HOST_SUBDIR)/libdecnumber && \
cc11cc9b 18190 $(MAKE) $(FLAGS_TO_PASS) CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" \
a4b6c45a
BE
18191 $(TARGET-stage1-libdecnumber)
18192
18193maybe-clean-stage1-libdecnumber: clean-stage1-libdecnumber
18194clean-stage1: clean-stage1-libdecnumber
18195clean-stage1-libdecnumber:
18196 @[ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || [ -f $(HOST_SUBDIR)/stage1-libdecnumber/Makefile ] \
18197 || exit 0 ; \
cc11cc9b 18198 [ $(current_stage) = stage1 ] || $(MAKE) stage1-start; \
a4b6c45a
BE
18199 cd $(HOST_SUBDIR)/libdecnumber && \
18200 $(MAKE) $(FLAGS_TO_PASS) \
cc11cc9b 18201 CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" clean
a4b6c45a
BE
18202@endif libdecnumber-bootstrap
18203
18204
18205.PHONY: all-stage2-libdecnumber maybe-all-stage2-libdecnumber
18206.PHONY: clean-stage2-libdecnumber maybe-clean-stage2-libdecnumber
18207maybe-all-stage2-libdecnumber:
18208maybe-clean-stage2-libdecnumber:
18209@if libdecnumber-bootstrap
18210maybe-all-stage2-libdecnumber: all-stage2-libdecnumber
18211all-stage2: all-stage2-libdecnumber
18212TARGET-stage2-libdecnumber = $(TARGET-libdecnumber)
18213all-stage2-libdecnumber: configure-stage2-libdecnumber
cc11cc9b 18214 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a4b6c45a
BE
18215 @r=`${PWD_COMMAND}`; export r; \
18216 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18217 $(HOST_EXPORTS) \
18218 $(POSTSTAGE1_HOST_EXPORTS) \
18219 cd $(HOST_SUBDIR)/libdecnumber && \
18220 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
18221 $(TARGET-stage2-libdecnumber)
18222
18223maybe-clean-stage2-libdecnumber: clean-stage2-libdecnumber
18224clean-stage2: clean-stage2-libdecnumber
18225clean-stage2-libdecnumber:
18226 @[ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || [ -f $(HOST_SUBDIR)/stage2-libdecnumber/Makefile ] \
18227 || exit 0 ; \
cc11cc9b 18228 [ $(current_stage) = stage2 ] || $(MAKE) stage2-start; \
a4b6c45a
BE
18229 cd $(HOST_SUBDIR)/libdecnumber && \
18230 $(MAKE) $(FLAGS_TO_PASS) \
18231 $(POSTSTAGE1_FLAGS_TO_PASS) \
18232 clean
18233@endif libdecnumber-bootstrap
18234
18235
18236.PHONY: all-stage3-libdecnumber maybe-all-stage3-libdecnumber
18237.PHONY: clean-stage3-libdecnumber maybe-clean-stage3-libdecnumber
18238maybe-all-stage3-libdecnumber:
18239maybe-clean-stage3-libdecnumber:
18240@if libdecnumber-bootstrap
18241maybe-all-stage3-libdecnumber: all-stage3-libdecnumber
18242all-stage3: all-stage3-libdecnumber
18243TARGET-stage3-libdecnumber = $(TARGET-libdecnumber)
18244all-stage3-libdecnumber: configure-stage3-libdecnumber
cc11cc9b 18245 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a4b6c45a
BE
18246 @r=`${PWD_COMMAND}`; export r; \
18247 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18248 $(HOST_EXPORTS) \
18249 $(POSTSTAGE1_HOST_EXPORTS) \
18250 cd $(HOST_SUBDIR)/libdecnumber && \
18251 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
18252 $(TARGET-stage3-libdecnumber)
18253
18254maybe-clean-stage3-libdecnumber: clean-stage3-libdecnumber
18255clean-stage3: clean-stage3-libdecnumber
18256clean-stage3-libdecnumber:
18257 @[ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || [ -f $(HOST_SUBDIR)/stage3-libdecnumber/Makefile ] \
18258 || exit 0 ; \
cc11cc9b 18259 [ $(current_stage) = stage3 ] || $(MAKE) stage3-start; \
a4b6c45a
BE
18260 cd $(HOST_SUBDIR)/libdecnumber && \
18261 $(MAKE) $(FLAGS_TO_PASS) \
18262 $(POSTSTAGE1_FLAGS_TO_PASS) \
18263 clean
18264@endif libdecnumber-bootstrap
18265
18266
18267.PHONY: all-stage4-libdecnumber maybe-all-stage4-libdecnumber
18268.PHONY: clean-stage4-libdecnumber maybe-clean-stage4-libdecnumber
18269maybe-all-stage4-libdecnumber:
18270maybe-clean-stage4-libdecnumber:
18271@if libdecnumber-bootstrap
18272maybe-all-stage4-libdecnumber: all-stage4-libdecnumber
18273all-stage4: all-stage4-libdecnumber
18274TARGET-stage4-libdecnumber = $(TARGET-libdecnumber)
18275all-stage4-libdecnumber: configure-stage4-libdecnumber
cc11cc9b 18276 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a4b6c45a
BE
18277 @r=`${PWD_COMMAND}`; export r; \
18278 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18279 $(HOST_EXPORTS) \
18280 $(POSTSTAGE1_HOST_EXPORTS) \
18281 cd $(HOST_SUBDIR)/libdecnumber && \
18282 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
18283 $(TARGET-stage4-libdecnumber)
18284
18285maybe-clean-stage4-libdecnumber: clean-stage4-libdecnumber
18286clean-stage4: clean-stage4-libdecnumber
18287clean-stage4-libdecnumber:
18288 @[ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || [ -f $(HOST_SUBDIR)/stage4-libdecnumber/Makefile ] \
18289 || exit 0 ; \
cc11cc9b 18290 [ $(current_stage) = stage4 ] || $(MAKE) stage4-start; \
a4b6c45a
BE
18291 cd $(HOST_SUBDIR)/libdecnumber && \
18292 $(MAKE) $(FLAGS_TO_PASS) \
18293 $(POSTSTAGE1_FLAGS_TO_PASS) \
18294 clean
18295@endif libdecnumber-bootstrap
18296
18297
18298.PHONY: all-stageprofile-libdecnumber maybe-all-stageprofile-libdecnumber
18299.PHONY: clean-stageprofile-libdecnumber maybe-clean-stageprofile-libdecnumber
18300maybe-all-stageprofile-libdecnumber:
18301maybe-clean-stageprofile-libdecnumber:
18302@if libdecnumber-bootstrap
18303maybe-all-stageprofile-libdecnumber: all-stageprofile-libdecnumber
18304all-stageprofile: all-stageprofile-libdecnumber
18305TARGET-stageprofile-libdecnumber = $(TARGET-libdecnumber)
18306all-stageprofile-libdecnumber: configure-stageprofile-libdecnumber
cc11cc9b 18307 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a4b6c45a
BE
18308 @r=`${PWD_COMMAND}`; export r; \
18309 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18310 $(HOST_EXPORTS) \
18311 $(POSTSTAGE1_HOST_EXPORTS) \
18312 cd $(HOST_SUBDIR)/libdecnumber && \
18313 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" \
18314 $(TARGET-stageprofile-libdecnumber)
18315
18316maybe-clean-stageprofile-libdecnumber: clean-stageprofile-libdecnumber
18317clean-stageprofile: clean-stageprofile-libdecnumber
18318clean-stageprofile-libdecnumber:
18319 @[ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || [ -f $(HOST_SUBDIR)/stageprofile-libdecnumber/Makefile ] \
18320 || exit 0 ; \
cc11cc9b 18321 [ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start; \
a4b6c45a
BE
18322 cd $(HOST_SUBDIR)/libdecnumber && \
18323 $(MAKE) $(FLAGS_TO_PASS) \
18324 $(POSTSTAGE1_FLAGS_TO_PASS) \
18325 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean
18326@endif libdecnumber-bootstrap
18327
18328
18329.PHONY: all-stagefeedback-libdecnumber maybe-all-stagefeedback-libdecnumber
18330.PHONY: clean-stagefeedback-libdecnumber maybe-clean-stagefeedback-libdecnumber
18331maybe-all-stagefeedback-libdecnumber:
18332maybe-clean-stagefeedback-libdecnumber:
18333@if libdecnumber-bootstrap
18334maybe-all-stagefeedback-libdecnumber: all-stagefeedback-libdecnumber
18335all-stagefeedback: all-stagefeedback-libdecnumber
18336TARGET-stagefeedback-libdecnumber = $(TARGET-libdecnumber)
18337all-stagefeedback-libdecnumber: configure-stagefeedback-libdecnumber
cc11cc9b 18338 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a4b6c45a
BE
18339 @r=`${PWD_COMMAND}`; export r; \
18340 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18341 $(HOST_EXPORTS) \
18342 $(POSTSTAGE1_HOST_EXPORTS) \
18343 cd $(HOST_SUBDIR)/libdecnumber && \
18344 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-use" \
18345 $(TARGET-stagefeedback-libdecnumber)
18346
18347maybe-clean-stagefeedback-libdecnumber: clean-stagefeedback-libdecnumber
18348clean-stagefeedback: clean-stagefeedback-libdecnumber
18349clean-stagefeedback-libdecnumber:
18350 @[ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || [ -f $(HOST_SUBDIR)/stagefeedback-libdecnumber/Makefile ] \
18351 || exit 0 ; \
cc11cc9b 18352 [ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start; \
a4b6c45a
BE
18353 cd $(HOST_SUBDIR)/libdecnumber && \
18354 $(MAKE) $(FLAGS_TO_PASS) \
18355 $(POSTSTAGE1_FLAGS_TO_PASS) \
18356 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean
18357@endif libdecnumber-bootstrap
18358
18359
18360
18361
18362
18363.PHONY: check-libdecnumber maybe-check-libdecnumber
18364maybe-check-libdecnumber:
18365@if libdecnumber
18366maybe-check-libdecnumber: check-libdecnumber
18367
18368check-libdecnumber:
f41d6665 18369 @: $(MAKE); $(unstage)
a4b6c45a
BE
18370 @r=`${PWD_COMMAND}`; export r; \
18371 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18372 $(HOST_EXPORTS) \
18373 (cd $(HOST_SUBDIR)/libdecnumber && \
18374 $(MAKE) $(FLAGS_TO_PASS) check)
18375
18376@endif libdecnumber
18377
18378.PHONY: install-libdecnumber maybe-install-libdecnumber
18379maybe-install-libdecnumber:
18380@if libdecnumber
18381maybe-install-libdecnumber: install-libdecnumber
18382
18383install-libdecnumber: installdirs
f41d6665 18384 @: $(MAKE); $(unstage)
a4b6c45a
BE
18385 @r=`${PWD_COMMAND}`; export r; \
18386 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18387 $(HOST_EXPORTS) \
18388 (cd $(HOST_SUBDIR)/libdecnumber && \
18389 $(MAKE) $(FLAGS_TO_PASS) install)
18390
18391@endif libdecnumber
18392
18393# Other targets (info, dvi, etc.)
18394
18395.PHONY: maybe-info-libdecnumber info-libdecnumber
18396maybe-info-libdecnumber:
18397@if libdecnumber
18398maybe-info-libdecnumber: info-libdecnumber
18399
18400info-libdecnumber: \
18401 configure-libdecnumber
18402 @[ -f ./libdecnumber/Makefile ] || exit 0; \
18403 r=`${PWD_COMMAND}`; export r; \
18404 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18405 $(HOST_EXPORTS) \
18406 for flag in $(EXTRA_HOST_FLAGS) ; do \
18407 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18408 done; \
18409 echo "Doing info in libdecnumber" ; \
18410 (cd $(HOST_SUBDIR)/libdecnumber && \
18411 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18412 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18413 "RANLIB=$${RANLIB}" \
18414 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18415 info) \
18416 || exit 1
18417
18418@endif libdecnumber
18419
18420.PHONY: maybe-dvi-libdecnumber dvi-libdecnumber
18421maybe-dvi-libdecnumber:
18422@if libdecnumber
18423maybe-dvi-libdecnumber: dvi-libdecnumber
18424
18425dvi-libdecnumber: \
18426 configure-libdecnumber
18427 @[ -f ./libdecnumber/Makefile ] || exit 0; \
18428 r=`${PWD_COMMAND}`; export r; \
18429 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18430 $(HOST_EXPORTS) \
18431 for flag in $(EXTRA_HOST_FLAGS) ; do \
18432 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18433 done; \
18434 echo "Doing dvi in libdecnumber" ; \
18435 (cd $(HOST_SUBDIR)/libdecnumber && \
18436 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18437 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18438 "RANLIB=$${RANLIB}" \
18439 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18440 dvi) \
18441 || exit 1
18442
18443@endif libdecnumber
18444
18445.PHONY: maybe-html-libdecnumber html-libdecnumber
18446maybe-html-libdecnumber:
18447@if libdecnumber
18448maybe-html-libdecnumber: html-libdecnumber
18449
18450html-libdecnumber: \
18451 configure-libdecnumber
18452 @[ -f ./libdecnumber/Makefile ] || exit 0; \
18453 r=`${PWD_COMMAND}`; export r; \
18454 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18455 $(HOST_EXPORTS) \
18456 for flag in $(EXTRA_HOST_FLAGS) ; do \
18457 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18458 done; \
18459 echo "Doing html in libdecnumber" ; \
18460 (cd $(HOST_SUBDIR)/libdecnumber && \
18461 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18462 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18463 "RANLIB=$${RANLIB}" \
18464 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18465 html) \
18466 || exit 1
18467
18468@endif libdecnumber
18469
18470.PHONY: maybe-TAGS-libdecnumber TAGS-libdecnumber
18471maybe-TAGS-libdecnumber:
18472@if libdecnumber
18473maybe-TAGS-libdecnumber: TAGS-libdecnumber
18474
18475TAGS-libdecnumber: \
18476 configure-libdecnumber
18477 @[ -f ./libdecnumber/Makefile ] || exit 0; \
18478 r=`${PWD_COMMAND}`; export r; \
18479 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18480 $(HOST_EXPORTS) \
18481 for flag in $(EXTRA_HOST_FLAGS) ; do \
18482 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18483 done; \
18484 echo "Doing TAGS in libdecnumber" ; \
18485 (cd $(HOST_SUBDIR)/libdecnumber && \
18486 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18487 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18488 "RANLIB=$${RANLIB}" \
18489 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18490 TAGS) \
18491 || exit 1
18492
18493@endif libdecnumber
18494
18495.PHONY: maybe-install-info-libdecnumber install-info-libdecnumber
18496maybe-install-info-libdecnumber:
18497@if libdecnumber
18498maybe-install-info-libdecnumber: install-info-libdecnumber
18499
18500install-info-libdecnumber: \
18501 configure-libdecnumber \
18502 info-libdecnumber
18503 @[ -f ./libdecnumber/Makefile ] || exit 0; \
18504 r=`${PWD_COMMAND}`; export r; \
18505 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18506 $(HOST_EXPORTS) \
18507 for flag in $(EXTRA_HOST_FLAGS) ; do \
18508 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18509 done; \
18510 echo "Doing install-info in libdecnumber" ; \
18511 (cd $(HOST_SUBDIR)/libdecnumber && \
18512 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18513 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18514 "RANLIB=$${RANLIB}" \
18515 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18516 install-info) \
18517 || exit 1
18518
18519@endif libdecnumber
18520
65d6e994
CD
18521.PHONY: maybe-install-html-libdecnumber install-html-libdecnumber
18522maybe-install-html-libdecnumber:
18523@if libdecnumber
18524maybe-install-html-libdecnumber: install-html-libdecnumber
18525
18526install-html-libdecnumber: \
18527 configure-libdecnumber \
18528 html-libdecnumber
18529 @[ -f ./libdecnumber/Makefile ] || exit 0; \
18530 r=`${PWD_COMMAND}`; export r; \
18531 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18532 $(HOST_EXPORTS) \
18533 for flag in $(EXTRA_HOST_FLAGS) ; do \
18534 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18535 done; \
18536 echo "Doing install-html in libdecnumber" ; \
18537 (cd $(HOST_SUBDIR)/libdecnumber && \
18538 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18539 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18540 "RANLIB=$${RANLIB}" \
18541 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18542 install-html) \
18543 || exit 1
18544
18545@endif libdecnumber
18546
a4b6c45a
BE
18547.PHONY: maybe-installcheck-libdecnumber installcheck-libdecnumber
18548maybe-installcheck-libdecnumber:
18549@if libdecnumber
18550maybe-installcheck-libdecnumber: installcheck-libdecnumber
18551
18552installcheck-libdecnumber: \
18553 configure-libdecnumber
18554 @[ -f ./libdecnumber/Makefile ] || exit 0; \
18555 r=`${PWD_COMMAND}`; export r; \
18556 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18557 $(HOST_EXPORTS) \
18558 for flag in $(EXTRA_HOST_FLAGS) ; do \
18559 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18560 done; \
18561 echo "Doing installcheck in libdecnumber" ; \
18562 (cd $(HOST_SUBDIR)/libdecnumber && \
18563 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18564 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18565 "RANLIB=$${RANLIB}" \
18566 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18567 installcheck) \
18568 || exit 1
18569
18570@endif libdecnumber
18571
18572.PHONY: maybe-mostlyclean-libdecnumber mostlyclean-libdecnumber
18573maybe-mostlyclean-libdecnumber:
18574@if libdecnumber
18575maybe-mostlyclean-libdecnumber: mostlyclean-libdecnumber
18576
18577mostlyclean-libdecnumber:
18578 @[ -f ./libdecnumber/Makefile ] || exit 0; \
18579 r=`${PWD_COMMAND}`; export r; \
18580 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18581 $(HOST_EXPORTS) \
18582 for flag in $(EXTRA_HOST_FLAGS) ; do \
18583 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18584 done; \
18585 echo "Doing mostlyclean in libdecnumber" ; \
18586 (cd $(HOST_SUBDIR)/libdecnumber && \
18587 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18588 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18589 "RANLIB=$${RANLIB}" \
18590 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18591 mostlyclean) \
18592 || exit 1
18593
18594@endif libdecnumber
18595
18596.PHONY: maybe-clean-libdecnumber clean-libdecnumber
18597maybe-clean-libdecnumber:
18598@if libdecnumber
18599maybe-clean-libdecnumber: clean-libdecnumber
18600
18601clean-libdecnumber:
18602 @[ -f ./libdecnumber/Makefile ] || exit 0; \
18603 r=`${PWD_COMMAND}`; export r; \
18604 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18605 $(HOST_EXPORTS) \
18606 for flag in $(EXTRA_HOST_FLAGS) ; do \
18607 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18608 done; \
18609 echo "Doing clean in libdecnumber" ; \
18610 (cd $(HOST_SUBDIR)/libdecnumber && \
18611 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18612 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18613 "RANLIB=$${RANLIB}" \
18614 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18615 clean) \
18616 || exit 1
18617
18618@endif libdecnumber
18619
18620.PHONY: maybe-distclean-libdecnumber distclean-libdecnumber
18621maybe-distclean-libdecnumber:
18622@if libdecnumber
18623maybe-distclean-libdecnumber: distclean-libdecnumber
18624
18625distclean-libdecnumber:
18626 @[ -f ./libdecnumber/Makefile ] || exit 0; \
18627 r=`${PWD_COMMAND}`; export r; \
18628 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18629 $(HOST_EXPORTS) \
18630 for flag in $(EXTRA_HOST_FLAGS) ; do \
18631 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18632 done; \
18633 echo "Doing distclean in libdecnumber" ; \
18634 (cd $(HOST_SUBDIR)/libdecnumber && \
18635 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18636 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18637 "RANLIB=$${RANLIB}" \
18638 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18639 distclean) \
18640 || exit 1
18641
18642@endif libdecnumber
18643
18644.PHONY: maybe-maintainer-clean-libdecnumber maintainer-clean-libdecnumber
18645maybe-maintainer-clean-libdecnumber:
18646@if libdecnumber
18647maybe-maintainer-clean-libdecnumber: maintainer-clean-libdecnumber
18648
18649maintainer-clean-libdecnumber:
18650 @[ -f ./libdecnumber/Makefile ] || exit 0; \
18651 r=`${PWD_COMMAND}`; export r; \
18652 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18653 $(HOST_EXPORTS) \
18654 for flag in $(EXTRA_HOST_FLAGS) ; do \
18655 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18656 done; \
18657 echo "Doing maintainer-clean in libdecnumber" ; \
18658 (cd $(HOST_SUBDIR)/libdecnumber && \
18659 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18660 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18661 "RANLIB=$${RANLIB}" \
18662 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18663 maintainer-clean) \
18664 || exit 1
18665
18666@endif libdecnumber
18667
18668
18669
d32ab992
PB
18670.PHONY: configure-libgui maybe-configure-libgui
18671maybe-configure-libgui:
3ff3adad
PB
18672@if gcc-bootstrap
18673configure-libgui: stage_current
18674@endif gcc-bootstrap
d32ab992
PB
18675@if libgui
18676maybe-configure-libgui: configure-libgui
cc11cc9b 18677configure-libgui:
f41d6665 18678 @: $(MAKE); $(unstage)
cc11cc9b 18679 @r=`${PWD_COMMAND}`; export r; \
6de9cd9a 18680 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
18681 test ! -f $(HOST_SUBDIR)/libgui/Makefile || exit 0; \
18682 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libgui ; \
4fc4dd12 18683 $(HOST_EXPORTS) \
25b42232
PB
18684 echo Configuring in $(HOST_SUBDIR)/libgui; \
18685 cd "$(HOST_SUBDIR)/libgui" || exit 1; \
6de9cd9a 18686 case $(srcdir) in \
215c351a
PB
18687 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
18688 *) topdir=`echo $(HOST_SUBDIR)/libgui/ | \
18689 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6de9cd9a 18690 esac; \
215c351a
PB
18691 srcdiroption="--srcdir=$${topdir}/libgui"; \
18692 libsrcdir="$$s/libgui"; \
6de9cd9a 18693 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 18694 $(HOST_CONFIGARGS) $${srcdiroption} \
6de9cd9a 18695 || exit 1
d32ab992 18696@endif libgui
6de9cd9a 18697
25b42232
PB
18698
18699
ce406537
PB
18700
18701
d32ab992
PB
18702.PHONY: all-libgui maybe-all-libgui
18703maybe-all-libgui:
3ff3adad
PB
18704@if gcc-bootstrap
18705all-libgui: stage_current
18706@endif gcc-bootstrap
d32ab992 18707@if libgui
7e0b5752 18708TARGET-libgui=all
d32ab992
PB
18709maybe-all-libgui: all-libgui
18710all-libgui: configure-libgui
f41d6665 18711 @: $(MAKE); $(unstage)
6de9cd9a
DN
18712 @r=`${PWD_COMMAND}`; export r; \
18713 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 18714 $(HOST_EXPORTS) \
215c351a
PB
18715 (cd $(HOST_SUBDIR)/libgui && \
18716 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-libgui))
d32ab992 18717@endif libgui
6de9cd9a 18718
25b42232 18719
ce406537
PB
18720
18721
d32ab992
PB
18722.PHONY: check-libgui maybe-check-libgui
18723maybe-check-libgui:
18724@if libgui
18725maybe-check-libgui: check-libgui
6de9cd9a 18726
d32ab992 18727check-libgui:
f41d6665 18728 @: $(MAKE); $(unstage)
6de9cd9a
DN
18729 @r=`${PWD_COMMAND}`; export r; \
18730 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 18731 $(HOST_EXPORTS) \
215c351a
PB
18732 (cd $(HOST_SUBDIR)/libgui && \
18733 $(MAKE) $(FLAGS_TO_PASS) check)
6de9cd9a 18734
d32ab992 18735@endif libgui
6de9cd9a 18736
d32ab992
PB
18737.PHONY: install-libgui maybe-install-libgui
18738maybe-install-libgui:
18739@if libgui
18740maybe-install-libgui: install-libgui
6de9cd9a 18741
d32ab992 18742install-libgui: installdirs
f41d6665 18743 @: $(MAKE); $(unstage)
d32ab992
PB
18744 @r=`${PWD_COMMAND}`; export r; \
18745 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d32ab992 18746 $(HOST_EXPORTS) \
215c351a 18747 (cd $(HOST_SUBDIR)/libgui && \
ace9ac7b 18748 $(MAKE) $(FLAGS_TO_PASS) install)
6de9cd9a 18749
d32ab992 18750@endif libgui
6de9cd9a
DN
18751
18752# Other targets (info, dvi, etc.)
18753
d32ab992
PB
18754.PHONY: maybe-info-libgui info-libgui
18755maybe-info-libgui:
18756@if libgui
18757maybe-info-libgui: info-libgui
6de9cd9a 18758
d32ab992 18759info-libgui: \
05750653 18760 configure-libgui
f41d6665 18761 @: $(MAKE); $(unstage)
d32ab992 18762 @[ -f ./libgui/Makefile ] || exit 0; \
6de9cd9a
DN
18763 r=`${PWD_COMMAND}`; export r; \
18764 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 18765 $(HOST_EXPORTS) \
d32ab992 18766 for flag in $(EXTRA_HOST_FLAGS) ; do \
6de9cd9a
DN
18767 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18768 done; \
d32ab992 18769 echo "Doing info in libgui" ; \
215c351a 18770 (cd $(HOST_SUBDIR)/libgui && \
6de9cd9a
DN
18771 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18772 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18773 "RANLIB=$${RANLIB}" \
18774 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 18775 info) \
6de9cd9a
DN
18776 || exit 1
18777
d32ab992 18778@endif libgui
6de9cd9a 18779
d32ab992
PB
18780.PHONY: maybe-dvi-libgui dvi-libgui
18781maybe-dvi-libgui:
18782@if libgui
18783maybe-dvi-libgui: dvi-libgui
6de9cd9a 18784
d32ab992 18785dvi-libgui: \
05750653 18786 configure-libgui
f41d6665 18787 @: $(MAKE); $(unstage)
d32ab992 18788 @[ -f ./libgui/Makefile ] || exit 0; \
6de9cd9a
DN
18789 r=`${PWD_COMMAND}`; export r; \
18790 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 18791 $(HOST_EXPORTS) \
d32ab992 18792 for flag in $(EXTRA_HOST_FLAGS) ; do \
6de9cd9a
DN
18793 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18794 done; \
d32ab992 18795 echo "Doing dvi in libgui" ; \
215c351a 18796 (cd $(HOST_SUBDIR)/libgui && \
6de9cd9a
DN
18797 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18798 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18799 "RANLIB=$${RANLIB}" \
18800 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 18801 dvi) \
6de9cd9a
DN
18802 || exit 1
18803
d32ab992 18804@endif libgui
6de9cd9a 18805
f87a2b2e
MS
18806.PHONY: maybe-html-libgui html-libgui
18807maybe-html-libgui:
18808@if libgui
18809maybe-html-libgui: html-libgui
18810
18811html-libgui: \
05750653 18812 configure-libgui
f41d6665 18813 @: $(MAKE); $(unstage)
f87a2b2e
MS
18814 @[ -f ./libgui/Makefile ] || exit 0; \
18815 r=`${PWD_COMMAND}`; export r; \
18816 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
18817 $(HOST_EXPORTS) \
18818 for flag in $(EXTRA_HOST_FLAGS) ; do \
18819 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18820 done; \
18821 echo "Doing html in libgui" ; \
215c351a 18822 (cd $(HOST_SUBDIR)/libgui && \
f87a2b2e
MS
18823 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18824 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18825 "RANLIB=$${RANLIB}" \
18826 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18827 html) \
18828 || exit 1
18829
18830@endif libgui
18831
d32ab992
PB
18832.PHONY: maybe-TAGS-libgui TAGS-libgui
18833maybe-TAGS-libgui:
18834@if libgui
18835maybe-TAGS-libgui: TAGS-libgui
6de9cd9a 18836
d32ab992 18837TAGS-libgui: \
05750653 18838 configure-libgui
f41d6665 18839 @: $(MAKE); $(unstage)
d32ab992 18840 @[ -f ./libgui/Makefile ] || exit 0; \
6de9cd9a
DN
18841 r=`${PWD_COMMAND}`; export r; \
18842 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 18843 $(HOST_EXPORTS) \
d32ab992 18844 for flag in $(EXTRA_HOST_FLAGS) ; do \
6de9cd9a
DN
18845 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18846 done; \
d32ab992 18847 echo "Doing TAGS in libgui" ; \
215c351a 18848 (cd $(HOST_SUBDIR)/libgui && \
6de9cd9a
DN
18849 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18850 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18851 "RANLIB=$${RANLIB}" \
18852 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 18853 TAGS) \
6de9cd9a
DN
18854 || exit 1
18855
d32ab992 18856@endif libgui
6de9cd9a 18857
d32ab992
PB
18858.PHONY: maybe-install-info-libgui install-info-libgui
18859maybe-install-info-libgui:
18860@if libgui
18861maybe-install-info-libgui: install-info-libgui
6de9cd9a 18862
d32ab992
PB
18863install-info-libgui: \
18864 configure-libgui \
05750653 18865 info-libgui
f41d6665 18866 @: $(MAKE); $(unstage)
d32ab992 18867 @[ -f ./libgui/Makefile ] || exit 0; \
6de9cd9a
DN
18868 r=`${PWD_COMMAND}`; export r; \
18869 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 18870 $(HOST_EXPORTS) \
d32ab992 18871 for flag in $(EXTRA_HOST_FLAGS) ; do \
6de9cd9a
DN
18872 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18873 done; \
d32ab992 18874 echo "Doing install-info in libgui" ; \
215c351a 18875 (cd $(HOST_SUBDIR)/libgui && \
6de9cd9a
DN
18876 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18877 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18878 "RANLIB=$${RANLIB}" \
18879 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 18880 install-info) \
6de9cd9a
DN
18881 || exit 1
18882
d32ab992 18883@endif libgui
6de9cd9a 18884
65d6e994
CD
18885.PHONY: maybe-install-html-libgui install-html-libgui
18886maybe-install-html-libgui:
18887@if libgui
18888maybe-install-html-libgui: install-html-libgui
18889
18890install-html-libgui: \
18891 configure-libgui \
18892 html-libgui
18893 @: $(MAKE); $(unstage)
18894 @[ -f ./libgui/Makefile ] || exit 0; \
18895 r=`${PWD_COMMAND}`; export r; \
18896 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18897 $(HOST_EXPORTS) \
18898 for flag in $(EXTRA_HOST_FLAGS) ; do \
18899 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18900 done; \
18901 echo "Doing install-html in libgui" ; \
18902 (cd $(HOST_SUBDIR)/libgui && \
18903 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18904 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18905 "RANLIB=$${RANLIB}" \
18906 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18907 install-html) \
18908 || exit 1
18909
18910@endif libgui
18911
d32ab992
PB
18912.PHONY: maybe-installcheck-libgui installcheck-libgui
18913maybe-installcheck-libgui:
18914@if libgui
18915maybe-installcheck-libgui: installcheck-libgui
6de9cd9a 18916
d32ab992 18917installcheck-libgui: \
05750653 18918 configure-libgui
f41d6665 18919 @: $(MAKE); $(unstage)
d32ab992 18920 @[ -f ./libgui/Makefile ] || exit 0; \
6de9cd9a
DN
18921 r=`${PWD_COMMAND}`; export r; \
18922 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 18923 $(HOST_EXPORTS) \
d32ab992 18924 for flag in $(EXTRA_HOST_FLAGS) ; do \
6de9cd9a
DN
18925 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18926 done; \
d32ab992 18927 echo "Doing installcheck in libgui" ; \
215c351a 18928 (cd $(HOST_SUBDIR)/libgui && \
6de9cd9a
DN
18929 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18930 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18931 "RANLIB=$${RANLIB}" \
18932 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 18933 installcheck) \
6de9cd9a
DN
18934 || exit 1
18935
d32ab992 18936@endif libgui
6de9cd9a 18937
d32ab992
PB
18938.PHONY: maybe-mostlyclean-libgui mostlyclean-libgui
18939maybe-mostlyclean-libgui:
18940@if libgui
18941maybe-mostlyclean-libgui: mostlyclean-libgui
6de9cd9a 18942
05750653 18943mostlyclean-libgui:
f41d6665 18944 @: $(MAKE); $(unstage)
d32ab992 18945 @[ -f ./libgui/Makefile ] || exit 0; \
6de9cd9a
DN
18946 r=`${PWD_COMMAND}`; export r; \
18947 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 18948 $(HOST_EXPORTS) \
d32ab992 18949 for flag in $(EXTRA_HOST_FLAGS) ; do \
6de9cd9a
DN
18950 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18951 done; \
d32ab992 18952 echo "Doing mostlyclean in libgui" ; \
215c351a 18953 (cd $(HOST_SUBDIR)/libgui && \
6de9cd9a
DN
18954 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18955 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18956 "RANLIB=$${RANLIB}" \
18957 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 18958 mostlyclean) \
6de9cd9a
DN
18959 || exit 1
18960
d32ab992 18961@endif libgui
6de9cd9a 18962
d32ab992
PB
18963.PHONY: maybe-clean-libgui clean-libgui
18964maybe-clean-libgui:
18965@if libgui
18966maybe-clean-libgui: clean-libgui
6de9cd9a 18967
05750653 18968clean-libgui:
f41d6665 18969 @: $(MAKE); $(unstage)
d32ab992 18970 @[ -f ./libgui/Makefile ] || exit 0; \
6de9cd9a
DN
18971 r=`${PWD_COMMAND}`; export r; \
18972 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 18973 $(HOST_EXPORTS) \
d32ab992 18974 for flag in $(EXTRA_HOST_FLAGS) ; do \
6de9cd9a
DN
18975 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18976 done; \
d32ab992 18977 echo "Doing clean in libgui" ; \
215c351a 18978 (cd $(HOST_SUBDIR)/libgui && \
6de9cd9a
DN
18979 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18980 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18981 "RANLIB=$${RANLIB}" \
18982 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 18983 clean) \
6de9cd9a
DN
18984 || exit 1
18985
d32ab992 18986@endif libgui
6de9cd9a 18987
d32ab992
PB
18988.PHONY: maybe-distclean-libgui distclean-libgui
18989maybe-distclean-libgui:
18990@if libgui
18991maybe-distclean-libgui: distclean-libgui
6de9cd9a 18992
05750653 18993distclean-libgui:
f41d6665 18994 @: $(MAKE); $(unstage)
d32ab992 18995 @[ -f ./libgui/Makefile ] || exit 0; \
6de9cd9a
DN
18996 r=`${PWD_COMMAND}`; export r; \
18997 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 18998 $(HOST_EXPORTS) \
d32ab992 18999 for flag in $(EXTRA_HOST_FLAGS) ; do \
6de9cd9a
DN
19000 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19001 done; \
d32ab992 19002 echo "Doing distclean in libgui" ; \
215c351a 19003 (cd $(HOST_SUBDIR)/libgui && \
6de9cd9a
DN
19004 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19005 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19006 "RANLIB=$${RANLIB}" \
19007 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 19008 distclean) \
6de9cd9a
DN
19009 || exit 1
19010
d32ab992 19011@endif libgui
6de9cd9a 19012
d32ab992
PB
19013.PHONY: maybe-maintainer-clean-libgui maintainer-clean-libgui
19014maybe-maintainer-clean-libgui:
19015@if libgui
19016maybe-maintainer-clean-libgui: maintainer-clean-libgui
6de9cd9a 19017
05750653 19018maintainer-clean-libgui:
f41d6665 19019 @: $(MAKE); $(unstage)
d32ab992 19020 @[ -f ./libgui/Makefile ] || exit 0; \
6de9cd9a
DN
19021 r=`${PWD_COMMAND}`; export r; \
19022 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 19023 $(HOST_EXPORTS) \
d32ab992 19024 for flag in $(EXTRA_HOST_FLAGS) ; do \
6de9cd9a
DN
19025 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19026 done; \
d32ab992 19027 echo "Doing maintainer-clean in libgui" ; \
215c351a 19028 (cd $(HOST_SUBDIR)/libgui && \
6de9cd9a
DN
19029 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19030 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19031 "RANLIB=$${RANLIB}" \
19032 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 19033 maintainer-clean) \
6de9cd9a
DN
19034 || exit 1
19035
d32ab992 19036@endif libgui
6de9cd9a
DN
19037
19038
25b42232 19039
d32ab992
PB
19040.PHONY: configure-libiberty maybe-configure-libiberty
19041maybe-configure-libiberty:
3ff3adad
PB
19042@if gcc-bootstrap
19043configure-libiberty: stage_current
19044@endif gcc-bootstrap
d32ab992
PB
19045@if libiberty
19046maybe-configure-libiberty: configure-libiberty
cc11cc9b 19047configure-libiberty:
cc11cc9b
PB
19048 @r=`${PWD_COMMAND}`; export r; \
19049 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
215c351a
PB
19050 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
19051 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
4fc4dd12 19052 $(HOST_EXPORTS) \
25b42232
PB
19053 echo Configuring in $(HOST_SUBDIR)/libiberty; \
19054 cd "$(HOST_SUBDIR)/libiberty" || exit 1; \
295f4e42 19055 case $(srcdir) in \
215c351a
PB
19056 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19057 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
19058 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 19059 esac; \
215c351a
PB
19060 srcdiroption="--srcdir=$${topdir}/libiberty"; \
19061 libsrcdir="$$s/libiberty"; \
295f4e42 19062 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 19063 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 19064 || exit 1
d32ab992 19065@endif libiberty
1358ccea 19066
25b42232
PB
19067
19068
ce406537
PB
19069.PHONY: configure-stage1-libiberty maybe-configure-stage1-libiberty
19070maybe-configure-stage1-libiberty:
19071@if libiberty-bootstrap
19072maybe-configure-stage1-libiberty: configure-stage1-libiberty
f41d6665 19073configure-stage1-libiberty:
cc11cc9b 19074 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
f41d6665 19075 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
cc11cc9b
PB
19076 @r=`${PWD_COMMAND}`; export r; \
19077 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 19078 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
ce406537
PB
19079 $(HOST_EXPORTS) \
19080 echo Configuring stage 1 in $(HOST_SUBDIR)/libiberty ; \
f41d6665 19081 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
ce406537
PB
19082 cd $(HOST_SUBDIR)/libiberty || exit 1; \
19083 case $(srcdir) in \
19084 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19085 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
19086 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19087 esac; \
19088 srcdiroption="--srcdir=$${topdir}/libiberty"; \
19089 libsrcdir="$$s/libiberty"; \
19090 $(SHELL) $${libsrcdir}/configure \
19091 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 19092 \
ce406537
PB
19093 --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
19094@endif libiberty-bootstrap
19095
19096.PHONY: configure-stage2-libiberty maybe-configure-stage2-libiberty
19097maybe-configure-stage2-libiberty:
19098@if libiberty-bootstrap
19099maybe-configure-stage2-libiberty: configure-stage2-libiberty
f41d6665 19100configure-stage2-libiberty:
cc11cc9b 19101 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
f41d6665 19102 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
cc11cc9b
PB
19103 @r=`${PWD_COMMAND}`; export r; \
19104 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 19105 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
ce406537
PB
19106 $(HOST_EXPORTS) \
19107 $(POSTSTAGE1_HOST_EXPORTS) \
19108 echo Configuring stage 2 in $(HOST_SUBDIR)/libiberty ; \
f41d6665 19109 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
ce406537
PB
19110 cd $(HOST_SUBDIR)/libiberty || exit 1; \
19111 case $(srcdir) in \
19112 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19113 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
19114 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19115 esac; \
19116 srcdiroption="--srcdir=$${topdir}/libiberty"; \
19117 libsrcdir="$$s/libiberty"; \
19118 $(SHELL) $${libsrcdir}/configure \
19119 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 19120 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
19121 @stage2_werror_flag@
19122@endif libiberty-bootstrap
19123
19124.PHONY: configure-stage3-libiberty maybe-configure-stage3-libiberty
19125maybe-configure-stage3-libiberty:
19126@if libiberty-bootstrap
19127maybe-configure-stage3-libiberty: configure-stage3-libiberty
f41d6665 19128configure-stage3-libiberty:
cc11cc9b 19129 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
f41d6665 19130 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
cc11cc9b
PB
19131 @r=`${PWD_COMMAND}`; export r; \
19132 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 19133 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
ce406537
PB
19134 $(HOST_EXPORTS) \
19135 $(POSTSTAGE1_HOST_EXPORTS) \
19136 echo Configuring stage 3 in $(HOST_SUBDIR)/libiberty ; \
f41d6665 19137 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
ce406537
PB
19138 cd $(HOST_SUBDIR)/libiberty || exit 1; \
19139 case $(srcdir) in \
19140 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19141 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
19142 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19143 esac; \
19144 srcdiroption="--srcdir=$${topdir}/libiberty"; \
19145 libsrcdir="$$s/libiberty"; \
19146 $(SHELL) $${libsrcdir}/configure \
19147 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 19148 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
19149 @stage2_werror_flag@
19150@endif libiberty-bootstrap
19151
19152.PHONY: configure-stage4-libiberty maybe-configure-stage4-libiberty
19153maybe-configure-stage4-libiberty:
19154@if libiberty-bootstrap
19155maybe-configure-stage4-libiberty: configure-stage4-libiberty
f41d6665 19156configure-stage4-libiberty:
cc11cc9b 19157 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
f41d6665 19158 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
cc11cc9b
PB
19159 @r=`${PWD_COMMAND}`; export r; \
19160 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 19161 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
ce406537
PB
19162 $(HOST_EXPORTS) \
19163 $(POSTSTAGE1_HOST_EXPORTS) \
19164 echo Configuring stage 4 in $(HOST_SUBDIR)/libiberty ; \
f41d6665 19165 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
ce406537
PB
19166 cd $(HOST_SUBDIR)/libiberty || exit 1; \
19167 case $(srcdir) in \
19168 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19169 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
19170 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19171 esac; \
19172 srcdiroption="--srcdir=$${topdir}/libiberty"; \
19173 libsrcdir="$$s/libiberty"; \
19174 $(SHELL) $${libsrcdir}/configure \
19175 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 19176 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
19177 @stage2_werror_flag@
19178@endif libiberty-bootstrap
19179
19180.PHONY: configure-stageprofile-libiberty maybe-configure-stageprofile-libiberty
19181maybe-configure-stageprofile-libiberty:
19182@if libiberty-bootstrap
19183maybe-configure-stageprofile-libiberty: configure-stageprofile-libiberty
f41d6665 19184configure-stageprofile-libiberty:
cc11cc9b 19185 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
f41d6665 19186 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
cc11cc9b
PB
19187 @r=`${PWD_COMMAND}`; export r; \
19188 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 19189 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
ce406537
PB
19190 $(HOST_EXPORTS) \
19191 $(POSTSTAGE1_HOST_EXPORTS) \
19192 echo Configuring stage profile in $(HOST_SUBDIR)/libiberty ; \
f41d6665 19193 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
ce406537
PB
19194 cd $(HOST_SUBDIR)/libiberty || exit 1; \
19195 case $(srcdir) in \
19196 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19197 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
19198 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19199 esac; \
19200 srcdiroption="--srcdir=$${topdir}/libiberty"; \
19201 libsrcdir="$$s/libiberty"; \
19202 $(SHELL) $${libsrcdir}/configure \
19203 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 19204 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
19205 @stage2_werror_flag@
19206@endif libiberty-bootstrap
19207
19208.PHONY: configure-stagefeedback-libiberty maybe-configure-stagefeedback-libiberty
19209maybe-configure-stagefeedback-libiberty:
19210@if libiberty-bootstrap
19211maybe-configure-stagefeedback-libiberty: configure-stagefeedback-libiberty
f41d6665 19212configure-stagefeedback-libiberty:
cc11cc9b 19213 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
f41d6665 19214 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
cc11cc9b
PB
19215 @r=`${PWD_COMMAND}`; export r; \
19216 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 19217 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
ce406537
PB
19218 $(HOST_EXPORTS) \
19219 $(POSTSTAGE1_HOST_EXPORTS) \
19220 echo Configuring stage feedback in $(HOST_SUBDIR)/libiberty ; \
f41d6665 19221 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
ce406537
PB
19222 cd $(HOST_SUBDIR)/libiberty || exit 1; \
19223 case $(srcdir) in \
19224 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19225 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
19226 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19227 esac; \
19228 srcdiroption="--srcdir=$${topdir}/libiberty"; \
19229 libsrcdir="$$s/libiberty"; \
19230 $(SHELL) $${libsrcdir}/configure \
19231 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 19232 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
19233 @stage2_werror_flag@
19234@endif libiberty-bootstrap
19235
19236
19237
19238
19239
d32ab992
PB
19240.PHONY: all-libiberty maybe-all-libiberty
19241maybe-all-libiberty:
3ff3adad
PB
19242@if gcc-bootstrap
19243all-libiberty: stage_current
19244@endif gcc-bootstrap
d32ab992 19245@if libiberty
7e0b5752 19246TARGET-libiberty=all
d32ab992
PB
19247maybe-all-libiberty: all-libiberty
19248all-libiberty: configure-libiberty
cc11cc9b 19249 @r=`${PWD_COMMAND}`; export r; \
d32ab992 19250 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 19251 $(HOST_EXPORTS) \
215c351a
PB
19252 (cd $(HOST_SUBDIR)/libiberty && \
19253 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-libiberty))
d32ab992 19254@endif libiberty
1358ccea 19255
25b42232 19256
ce406537
PB
19257
19258.PHONY: all-stage1-libiberty maybe-all-stage1-libiberty
19259.PHONY: clean-stage1-libiberty maybe-clean-stage1-libiberty
19260maybe-all-stage1-libiberty:
19261maybe-clean-stage1-libiberty:
19262@if libiberty-bootstrap
19263maybe-all-stage1-libiberty: all-stage1-libiberty
19264all-stage1: all-stage1-libiberty
1061f99e 19265TARGET-stage1-libiberty = $(TARGET-libiberty)
ce406537 19266all-stage1-libiberty: configure-stage1-libiberty
cc11cc9b 19267 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
ce406537
PB
19268 @r=`${PWD_COMMAND}`; export r; \
19269 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19270 $(HOST_EXPORTS) \
19271 cd $(HOST_SUBDIR)/libiberty && \
cc11cc9b 19272 $(MAKE) $(FLAGS_TO_PASS) CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" \
1061f99e 19273 $(TARGET-stage1-libiberty)
ce406537
PB
19274
19275maybe-clean-stage1-libiberty: clean-stage1-libiberty
19276clean-stage1: clean-stage1-libiberty
19277clean-stage1-libiberty:
19278 @[ -f $(HOST_SUBDIR)/libiberty/Makefile ] || [ -f $(HOST_SUBDIR)/stage1-libiberty/Makefile ] \
19279 || exit 0 ; \
cc11cc9b 19280 [ $(current_stage) = stage1 ] || $(MAKE) stage1-start; \
ce406537
PB
19281 cd $(HOST_SUBDIR)/libiberty && \
19282 $(MAKE) $(FLAGS_TO_PASS) \
cc11cc9b 19283 CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" clean
ce406537
PB
19284@endif libiberty-bootstrap
19285
19286
19287.PHONY: all-stage2-libiberty maybe-all-stage2-libiberty
19288.PHONY: clean-stage2-libiberty maybe-clean-stage2-libiberty
19289maybe-all-stage2-libiberty:
19290maybe-clean-stage2-libiberty:
19291@if libiberty-bootstrap
19292maybe-all-stage2-libiberty: all-stage2-libiberty
19293all-stage2: all-stage2-libiberty
1061f99e 19294TARGET-stage2-libiberty = $(TARGET-libiberty)
ce406537 19295all-stage2-libiberty: configure-stage2-libiberty
cc11cc9b 19296 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-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-stage2-libiberty)
ce406537
PB
19304
19305maybe-clean-stage2-libiberty: clean-stage2-libiberty
19306clean-stage2: clean-stage2-libiberty
19307clean-stage2-libiberty:
19308 @[ -f $(HOST_SUBDIR)/libiberty/Makefile ] || [ -f $(HOST_SUBDIR)/stage2-libiberty/Makefile ] \
19309 || exit 0 ; \
cc11cc9b 19310 [ $(current_stage) = stage2 ] || $(MAKE) stage2-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-stage3-libiberty maybe-all-stage3-libiberty
19319.PHONY: clean-stage3-libiberty maybe-clean-stage3-libiberty
19320maybe-all-stage3-libiberty:
19321maybe-clean-stage3-libiberty:
19322@if libiberty-bootstrap
19323maybe-all-stage3-libiberty: all-stage3-libiberty
19324all-stage3: all-stage3-libiberty
1061f99e 19325TARGET-stage3-libiberty = $(TARGET-libiberty)
ce406537 19326all-stage3-libiberty: configure-stage3-libiberty
cc11cc9b 19327 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-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) \
19334 $(TARGET-stage3-libiberty)
ce406537
PB
19335
19336maybe-clean-stage3-libiberty: clean-stage3-libiberty
19337clean-stage3: clean-stage3-libiberty
19338clean-stage3-libiberty:
19339 @[ -f $(HOST_SUBDIR)/libiberty/Makefile ] || [ -f $(HOST_SUBDIR)/stage3-libiberty/Makefile ] \
19340 || exit 0 ; \
cc11cc9b 19341 [ $(current_stage) = stage3 ] || $(MAKE) stage3-start; \
ce406537
PB
19342 cd $(HOST_SUBDIR)/libiberty && \
19343 $(MAKE) $(FLAGS_TO_PASS) \
19344 $(POSTSTAGE1_FLAGS_TO_PASS) \
19345 clean
19346@endif libiberty-bootstrap
19347
19348
19349.PHONY: all-stage4-libiberty maybe-all-stage4-libiberty
19350.PHONY: clean-stage4-libiberty maybe-clean-stage4-libiberty
19351maybe-all-stage4-libiberty:
19352maybe-clean-stage4-libiberty:
19353@if libiberty-bootstrap
19354maybe-all-stage4-libiberty: all-stage4-libiberty
19355all-stage4: all-stage4-libiberty
1061f99e 19356TARGET-stage4-libiberty = $(TARGET-libiberty)
ce406537 19357all-stage4-libiberty: configure-stage4-libiberty
cc11cc9b 19358 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-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) \
19365 $(TARGET-stage4-libiberty)
ce406537
PB
19366
19367maybe-clean-stage4-libiberty: clean-stage4-libiberty
19368clean-stage4: clean-stage4-libiberty
19369clean-stage4-libiberty:
19370 @[ -f $(HOST_SUBDIR)/libiberty/Makefile ] || [ -f $(HOST_SUBDIR)/stage4-libiberty/Makefile ] \
19371 || exit 0 ; \
cc11cc9b 19372 [ $(current_stage) = stage4 ] || $(MAKE) stage4-start; \
ce406537
PB
19373 cd $(HOST_SUBDIR)/libiberty && \
19374 $(MAKE) $(FLAGS_TO_PASS) \
19375 $(POSTSTAGE1_FLAGS_TO_PASS) \
19376 clean
19377@endif libiberty-bootstrap
19378
19379
19380.PHONY: all-stageprofile-libiberty maybe-all-stageprofile-libiberty
19381.PHONY: clean-stageprofile-libiberty maybe-clean-stageprofile-libiberty
19382maybe-all-stageprofile-libiberty:
19383maybe-clean-stageprofile-libiberty:
19384@if libiberty-bootstrap
19385maybe-all-stageprofile-libiberty: all-stageprofile-libiberty
19386all-stageprofile: all-stageprofile-libiberty
1061f99e 19387TARGET-stageprofile-libiberty = $(TARGET-libiberty)
ce406537 19388all-stageprofile-libiberty: configure-stageprofile-libiberty
cc11cc9b 19389 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
ce406537
PB
19390 @r=`${PWD_COMMAND}`; export r; \
19391 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19392 $(HOST_EXPORTS) \
19393 $(POSTSTAGE1_HOST_EXPORTS) \
19394 cd $(HOST_SUBDIR)/libiberty && \
1061f99e
PB
19395 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" \
19396 $(TARGET-stageprofile-libiberty)
ce406537
PB
19397
19398maybe-clean-stageprofile-libiberty: clean-stageprofile-libiberty
19399clean-stageprofile: clean-stageprofile-libiberty
19400clean-stageprofile-libiberty:
19401 @[ -f $(HOST_SUBDIR)/libiberty/Makefile ] || [ -f $(HOST_SUBDIR)/stageprofile-libiberty/Makefile ] \
19402 || exit 0 ; \
cc11cc9b 19403 [ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start; \
ce406537
PB
19404 cd $(HOST_SUBDIR)/libiberty && \
19405 $(MAKE) $(FLAGS_TO_PASS) \
19406 $(POSTSTAGE1_FLAGS_TO_PASS) \
19407 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean
19408@endif libiberty-bootstrap
19409
19410
19411.PHONY: all-stagefeedback-libiberty maybe-all-stagefeedback-libiberty
19412.PHONY: clean-stagefeedback-libiberty maybe-clean-stagefeedback-libiberty
19413maybe-all-stagefeedback-libiberty:
19414maybe-clean-stagefeedback-libiberty:
19415@if libiberty-bootstrap
19416maybe-all-stagefeedback-libiberty: all-stagefeedback-libiberty
19417all-stagefeedback: all-stagefeedback-libiberty
1061f99e 19418TARGET-stagefeedback-libiberty = $(TARGET-libiberty)
ce406537 19419all-stagefeedback-libiberty: configure-stagefeedback-libiberty
cc11cc9b 19420 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
ce406537
PB
19421 @r=`${PWD_COMMAND}`; export r; \
19422 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19423 $(HOST_EXPORTS) \
19424 $(POSTSTAGE1_HOST_EXPORTS) \
19425 cd $(HOST_SUBDIR)/libiberty && \
1061f99e
PB
19426 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-use" \
19427 $(TARGET-stagefeedback-libiberty)
ce406537
PB
19428
19429maybe-clean-stagefeedback-libiberty: clean-stagefeedback-libiberty
19430clean-stagefeedback: clean-stagefeedback-libiberty
19431clean-stagefeedback-libiberty:
19432 @[ -f $(HOST_SUBDIR)/libiberty/Makefile ] || [ -f $(HOST_SUBDIR)/stagefeedback-libiberty/Makefile ] \
19433 || exit 0 ; \
cc11cc9b 19434 [ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start; \
ce406537
PB
19435 cd $(HOST_SUBDIR)/libiberty && \
19436 $(MAKE) $(FLAGS_TO_PASS) \
19437 $(POSTSTAGE1_FLAGS_TO_PASS) \
19438 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean
19439@endif libiberty-bootstrap
19440
19441
19442
19443
19444
d32ab992
PB
19445.PHONY: check-libiberty maybe-check-libiberty
19446maybe-check-libiberty:
19447@if libiberty
19448maybe-check-libiberty: check-libiberty
1358ccea 19449
d32ab992 19450check-libiberty:
f41d6665 19451 @: $(MAKE); $(unstage)
295f4e42 19452 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 19453 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 19454 $(HOST_EXPORTS) \
215c351a
PB
19455 (cd $(HOST_SUBDIR)/libiberty && \
19456 $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 19457
d32ab992 19458@endif libiberty
1358ccea 19459
d32ab992
PB
19460.PHONY: install-libiberty maybe-install-libiberty
19461maybe-install-libiberty:
19462@if libiberty
19463maybe-install-libiberty: install-libiberty
1358ccea 19464
d32ab992 19465install-libiberty: installdirs
f41d6665 19466 @: $(MAKE); $(unstage)
295f4e42 19467 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 19468 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 19469 $(HOST_EXPORTS) \
215c351a 19470 (cd $(HOST_SUBDIR)/libiberty && \
ace9ac7b 19471 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 19472
d32ab992 19473@endif libiberty
1358ccea 19474
295f4e42 19475# Other targets (info, dvi, etc.)
1358ccea 19476
d32ab992
PB
19477.PHONY: maybe-info-libiberty info-libiberty
19478maybe-info-libiberty:
19479@if libiberty
19480maybe-info-libiberty: info-libiberty
295f4e42 19481
d32ab992 19482info-libiberty: \
05750653 19483 configure-libiberty
d32ab992 19484 @[ -f ./libiberty/Makefile ] || exit 0; \
8c90b13a
L
19485 r=`${PWD_COMMAND}`; export r; \
19486 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 19487 $(HOST_EXPORTS) \
d32ab992 19488 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
19489 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19490 done; \
f87a2b2e 19491 echo "Doing info in libiberty" ; \
215c351a 19492 (cd $(HOST_SUBDIR)/libiberty && \
f87a2b2e
MS
19493 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19494 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19495 "RANLIB=$${RANLIB}" \
19496 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19497 info) \
19498 || exit 1
19499
19500@endif libiberty
19501
19502.PHONY: maybe-dvi-libiberty dvi-libiberty
19503maybe-dvi-libiberty:
19504@if libiberty
19505maybe-dvi-libiberty: dvi-libiberty
19506
19507dvi-libiberty: \
05750653 19508 configure-libiberty
f87a2b2e
MS
19509 @[ -f ./libiberty/Makefile ] || exit 0; \
19510 r=`${PWD_COMMAND}`; export r; \
19511 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
19512 $(HOST_EXPORTS) \
19513 for flag in $(EXTRA_HOST_FLAGS) ; do \
19514 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19515 done; \
19516 echo "Doing dvi in libiberty" ; \
215c351a 19517 (cd $(HOST_SUBDIR)/libiberty && \
1358ccea
NN
19518 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19519 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19520 "RANLIB=$${RANLIB}" \
19521 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
f87a2b2e 19522 dvi) \
1358ccea
NN
19523 || exit 1
19524
d32ab992 19525@endif libiberty
1358ccea 19526
f87a2b2e
MS
19527.PHONY: maybe-html-libiberty html-libiberty
19528maybe-html-libiberty:
d32ab992 19529@if libiberty
f87a2b2e 19530maybe-html-libiberty: html-libiberty
1358ccea 19531
f87a2b2e 19532html-libiberty: \
05750653 19533 configure-libiberty
d32ab992 19534 @[ -f ./libiberty/Makefile ] || exit 0; \
8c90b13a
L
19535 r=`${PWD_COMMAND}`; export r; \
19536 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 19537 $(HOST_EXPORTS) \
d32ab992 19538 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
19539 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19540 done; \
f87a2b2e 19541 echo "Doing html in libiberty" ; \
215c351a 19542 (cd $(HOST_SUBDIR)/libiberty && \
1358ccea
NN
19543 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19544 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19545 "RANLIB=$${RANLIB}" \
19546 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
f87a2b2e 19547 html) \
1358ccea
NN
19548 || exit 1
19549
d32ab992 19550@endif libiberty
1358ccea 19551
d32ab992
PB
19552.PHONY: maybe-TAGS-libiberty TAGS-libiberty
19553maybe-TAGS-libiberty:
19554@if libiberty
19555maybe-TAGS-libiberty: TAGS-libiberty
1358ccea 19556
d32ab992 19557TAGS-libiberty: \
05750653 19558 configure-libiberty
d32ab992 19559 @[ -f ./libiberty/Makefile ] || exit 0; \
8c90b13a
L
19560 r=`${PWD_COMMAND}`; export r; \
19561 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 19562 $(HOST_EXPORTS) \
d32ab992 19563 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
19564 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19565 done; \
d32ab992 19566 echo "Doing TAGS in libiberty" ; \
215c351a 19567 (cd $(HOST_SUBDIR)/libiberty && \
1358ccea
NN
19568 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19569 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19570 "RANLIB=$${RANLIB}" \
19571 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 19572 TAGS) \
1358ccea
NN
19573 || exit 1
19574
d32ab992 19575@endif libiberty
1358ccea 19576
d32ab992
PB
19577.PHONY: maybe-install-info-libiberty install-info-libiberty
19578maybe-install-info-libiberty:
19579@if libiberty
19580maybe-install-info-libiberty: install-info-libiberty
1358ccea 19581
d32ab992
PB
19582install-info-libiberty: \
19583 configure-libiberty \
05750653 19584 info-libiberty
d32ab992 19585 @[ -f ./libiberty/Makefile ] || exit 0; \
8c90b13a
L
19586 r=`${PWD_COMMAND}`; export r; \
19587 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 19588 $(HOST_EXPORTS) \
d32ab992 19589 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
19590 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19591 done; \
d32ab992 19592 echo "Doing install-info in libiberty" ; \
215c351a 19593 (cd $(HOST_SUBDIR)/libiberty && \
1358ccea
NN
19594 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19595 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19596 "RANLIB=$${RANLIB}" \
19597 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 19598 install-info) \
1358ccea
NN
19599 || exit 1
19600
d32ab992 19601@endif libiberty
1358ccea 19602
65d6e994
CD
19603.PHONY: maybe-install-html-libiberty install-html-libiberty
19604maybe-install-html-libiberty:
19605@if libiberty
19606maybe-install-html-libiberty: install-html-libiberty
19607
19608install-html-libiberty: \
19609 configure-libiberty \
19610 html-libiberty
19611 @[ -f ./libiberty/Makefile ] || exit 0; \
19612 r=`${PWD_COMMAND}`; export r; \
19613 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19614 $(HOST_EXPORTS) \
19615 for flag in $(EXTRA_HOST_FLAGS) ; do \
19616 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19617 done; \
19618 echo "Doing install-html in libiberty" ; \
19619 (cd $(HOST_SUBDIR)/libiberty && \
19620 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19621 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19622 "RANLIB=$${RANLIB}" \
19623 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19624 install-html) \
19625 || exit 1
19626
19627@endif libiberty
19628
d32ab992
PB
19629.PHONY: maybe-installcheck-libiberty installcheck-libiberty
19630maybe-installcheck-libiberty:
19631@if libiberty
19632maybe-installcheck-libiberty: installcheck-libiberty
1358ccea 19633
d32ab992 19634installcheck-libiberty: \
05750653 19635 configure-libiberty
d32ab992 19636 @[ -f ./libiberty/Makefile ] || exit 0; \
8c90b13a
L
19637 r=`${PWD_COMMAND}`; export r; \
19638 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 19639 $(HOST_EXPORTS) \
d32ab992 19640 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
19641 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19642 done; \
d32ab992 19643 echo "Doing installcheck in libiberty" ; \
215c351a 19644 (cd $(HOST_SUBDIR)/libiberty && \
1358ccea
NN
19645 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19646 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19647 "RANLIB=$${RANLIB}" \
19648 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 19649 installcheck) \
1358ccea
NN
19650 || exit 1
19651
d32ab992 19652@endif libiberty
1358ccea 19653
d32ab992
PB
19654.PHONY: maybe-mostlyclean-libiberty mostlyclean-libiberty
19655maybe-mostlyclean-libiberty:
19656@if libiberty
19657maybe-mostlyclean-libiberty: mostlyclean-libiberty
1358ccea 19658
05750653 19659mostlyclean-libiberty:
d32ab992 19660 @[ -f ./libiberty/Makefile ] || exit 0; \
8c90b13a
L
19661 r=`${PWD_COMMAND}`; export r; \
19662 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 19663 $(HOST_EXPORTS) \
d32ab992 19664 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
19665 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19666 done; \
d32ab992 19667 echo "Doing mostlyclean in libiberty" ; \
215c351a 19668 (cd $(HOST_SUBDIR)/libiberty && \
1358ccea
NN
19669 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19670 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19671 "RANLIB=$${RANLIB}" \
19672 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 19673 mostlyclean) \
1358ccea
NN
19674 || exit 1
19675
d32ab992 19676@endif libiberty
1358ccea 19677
d32ab992
PB
19678.PHONY: maybe-clean-libiberty clean-libiberty
19679maybe-clean-libiberty:
19680@if libiberty
19681maybe-clean-libiberty: clean-libiberty
1358ccea 19682
05750653 19683clean-libiberty:
d32ab992 19684 @[ -f ./libiberty/Makefile ] || exit 0; \
8c90b13a
L
19685 r=`${PWD_COMMAND}`; export r; \
19686 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 19687 $(HOST_EXPORTS) \
d32ab992 19688 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
19689 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19690 done; \
d32ab992 19691 echo "Doing clean in libiberty" ; \
215c351a 19692 (cd $(HOST_SUBDIR)/libiberty && \
1358ccea
NN
19693 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19694 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19695 "RANLIB=$${RANLIB}" \
19696 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 19697 clean) \
1358ccea
NN
19698 || exit 1
19699
d32ab992 19700@endif libiberty
1358ccea 19701
d32ab992
PB
19702.PHONY: maybe-distclean-libiberty distclean-libiberty
19703maybe-distclean-libiberty:
19704@if libiberty
19705maybe-distclean-libiberty: distclean-libiberty
1358ccea 19706
05750653 19707distclean-libiberty:
d32ab992 19708 @[ -f ./libiberty/Makefile ] || exit 0; \
8c90b13a
L
19709 r=`${PWD_COMMAND}`; export r; \
19710 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 19711 $(HOST_EXPORTS) \
d32ab992 19712 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
19713 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19714 done; \
d32ab992 19715 echo "Doing distclean in libiberty" ; \
215c351a 19716 (cd $(HOST_SUBDIR)/libiberty && \
1358ccea
NN
19717 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19718 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19719 "RANLIB=$${RANLIB}" \
19720 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 19721 distclean) \
1358ccea
NN
19722 || exit 1
19723
d32ab992 19724@endif libiberty
1358ccea 19725
d32ab992
PB
19726.PHONY: maybe-maintainer-clean-libiberty maintainer-clean-libiberty
19727maybe-maintainer-clean-libiberty:
19728@if libiberty
19729maybe-maintainer-clean-libiberty: maintainer-clean-libiberty
1358ccea 19730
05750653 19731maintainer-clean-libiberty:
d32ab992 19732 @[ -f ./libiberty/Makefile ] || exit 0; \
8c90b13a
L
19733 r=`${PWD_COMMAND}`; export r; \
19734 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 19735 $(HOST_EXPORTS) \
d32ab992 19736 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
19737 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19738 done; \
d32ab992 19739 echo "Doing maintainer-clean in libiberty" ; \
215c351a 19740 (cd $(HOST_SUBDIR)/libiberty && \
1358ccea
NN
19741 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19742 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19743 "RANLIB=$${RANLIB}" \
19744 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 19745 maintainer-clean) \
1358ccea
NN
19746 || exit 1
19747
d32ab992 19748@endif libiberty
1358ccea 19749
1358ccea 19750
25b42232 19751
d32ab992
PB
19752.PHONY: configure-libtool maybe-configure-libtool
19753maybe-configure-libtool:
3ff3adad
PB
19754@if gcc-bootstrap
19755configure-libtool: stage_current
19756@endif gcc-bootstrap
d32ab992
PB
19757@if libtool
19758maybe-configure-libtool: configure-libtool
cc11cc9b 19759configure-libtool:
f41d6665 19760 @: $(MAKE); $(unstage)
cc11cc9b 19761 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 19762 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
19763 test ! -f $(HOST_SUBDIR)/libtool/Makefile || exit 0; \
19764 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libtool ; \
4fc4dd12 19765 $(HOST_EXPORTS) \
25b42232
PB
19766 echo Configuring in $(HOST_SUBDIR)/libtool; \
19767 cd "$(HOST_SUBDIR)/libtool" || exit 1; \
295f4e42 19768 case $(srcdir) in \
215c351a
PB
19769 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19770 *) topdir=`echo $(HOST_SUBDIR)/libtool/ | \
19771 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 19772 esac; \
215c351a
PB
19773 srcdiroption="--srcdir=$${topdir}/libtool"; \
19774 libsrcdir="$$s/libtool"; \
295f4e42 19775 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 19776 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 19777 || exit 1
d32ab992 19778@endif libtool
1358ccea 19779
25b42232
PB
19780
19781
ce406537
PB
19782
19783
d32ab992
PB
19784.PHONY: all-libtool maybe-all-libtool
19785maybe-all-libtool:
3ff3adad
PB
19786@if gcc-bootstrap
19787all-libtool: stage_current
19788@endif gcc-bootstrap
d32ab992 19789@if libtool
7e0b5752 19790TARGET-libtool=all
d32ab992
PB
19791maybe-all-libtool: all-libtool
19792all-libtool: configure-libtool
f41d6665 19793 @: $(MAKE); $(unstage)
295f4e42
NN
19794 @r=`${PWD_COMMAND}`; export r; \
19795 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 19796 $(HOST_EXPORTS) \
215c351a
PB
19797 (cd $(HOST_SUBDIR)/libtool && \
19798 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-libtool))
d32ab992 19799@endif libtool
1358ccea 19800
25b42232 19801
ce406537
PB
19802
19803
d32ab992
PB
19804.PHONY: check-libtool maybe-check-libtool
19805maybe-check-libtool:
19806@if libtool
19807maybe-check-libtool: check-libtool
1358ccea 19808
d32ab992 19809check-libtool:
f41d6665 19810 @: $(MAKE); $(unstage)
295f4e42 19811 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 19812 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 19813 $(HOST_EXPORTS) \
215c351a
PB
19814 (cd $(HOST_SUBDIR)/libtool && \
19815 $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 19816
d32ab992 19817@endif libtool
1358ccea 19818
d32ab992
PB
19819.PHONY: install-libtool maybe-install-libtool
19820maybe-install-libtool:
19821@if libtool
19822maybe-install-libtool: install-libtool
1358ccea 19823
d32ab992 19824install-libtool: installdirs
f41d6665 19825 @: $(MAKE); $(unstage)
295f4e42 19826 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 19827 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 19828 $(HOST_EXPORTS) \
215c351a 19829 (cd $(HOST_SUBDIR)/libtool && \
ace9ac7b 19830 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 19831
d32ab992 19832@endif libtool
1358ccea 19833
295f4e42 19834# Other targets (info, dvi, etc.)
1358ccea 19835
d32ab992
PB
19836.PHONY: maybe-info-libtool info-libtool
19837maybe-info-libtool:
19838@if libtool
19839maybe-info-libtool: info-libtool
295f4e42 19840
d32ab992 19841info-libtool: \
05750653 19842 configure-libtool
f41d6665 19843 @: $(MAKE); $(unstage)
d32ab992 19844 @[ -f ./libtool/Makefile ] || exit 0; \
8c90b13a
L
19845 r=`${PWD_COMMAND}`; export r; \
19846 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 19847 $(HOST_EXPORTS) \
d32ab992 19848 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
19849 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19850 done; \
d32ab992 19851 echo "Doing info in libtool" ; \
215c351a 19852 (cd $(HOST_SUBDIR)/libtool && \
1358ccea
NN
19853 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19854 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19855 "RANLIB=$${RANLIB}" \
19856 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 19857 info) \
1358ccea
NN
19858 || exit 1
19859
d32ab992 19860@endif libtool
1358ccea 19861
d32ab992
PB
19862.PHONY: maybe-dvi-libtool dvi-libtool
19863maybe-dvi-libtool:
19864@if libtool
19865maybe-dvi-libtool: dvi-libtool
1358ccea 19866
d32ab992 19867dvi-libtool: \
05750653 19868 configure-libtool
f41d6665 19869 @: $(MAKE); $(unstage)
d32ab992 19870 @[ -f ./libtool/Makefile ] || exit 0; \
8c90b13a
L
19871 r=`${PWD_COMMAND}`; export r; \
19872 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 19873 $(HOST_EXPORTS) \
d32ab992 19874 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
19875 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19876 done; \
d32ab992 19877 echo "Doing dvi in libtool" ; \
215c351a 19878 (cd $(HOST_SUBDIR)/libtool && \
1358ccea
NN
19879 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19880 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19881 "RANLIB=$${RANLIB}" \
19882 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 19883 dvi) \
1358ccea
NN
19884 || exit 1
19885
d32ab992 19886@endif libtool
1358ccea 19887
f87a2b2e
MS
19888.PHONY: maybe-html-libtool html-libtool
19889maybe-html-libtool:
19890@if libtool
19891maybe-html-libtool: html-libtool
19892
19893html-libtool: \
05750653 19894 configure-libtool
f41d6665 19895 @: $(MAKE); $(unstage)
f87a2b2e
MS
19896 @[ -f ./libtool/Makefile ] || exit 0; \
19897 r=`${PWD_COMMAND}`; export r; \
19898 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
19899 $(HOST_EXPORTS) \
19900 for flag in $(EXTRA_HOST_FLAGS) ; do \
19901 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19902 done; \
19903 echo "Doing html in libtool" ; \
215c351a 19904 (cd $(HOST_SUBDIR)/libtool && \
f87a2b2e
MS
19905 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19906 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19907 "RANLIB=$${RANLIB}" \
19908 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19909 html) \
19910 || exit 1
19911
19912@endif libtool
19913
d32ab992
PB
19914.PHONY: maybe-TAGS-libtool TAGS-libtool
19915maybe-TAGS-libtool:
19916@if libtool
19917maybe-TAGS-libtool: TAGS-libtool
1358ccea 19918
d32ab992 19919TAGS-libtool: \
05750653 19920 configure-libtool
f41d6665 19921 @: $(MAKE); $(unstage)
d32ab992 19922 @[ -f ./libtool/Makefile ] || exit 0; \
8c90b13a
L
19923 r=`${PWD_COMMAND}`; export r; \
19924 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 19925 $(HOST_EXPORTS) \
d32ab992 19926 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
19927 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19928 done; \
d32ab992 19929 echo "Doing TAGS in libtool" ; \
215c351a 19930 (cd $(HOST_SUBDIR)/libtool && \
1358ccea
NN
19931 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19932 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19933 "RANLIB=$${RANLIB}" \
19934 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 19935 TAGS) \
1358ccea
NN
19936 || exit 1
19937
d32ab992 19938@endif libtool
1358ccea 19939
d32ab992
PB
19940.PHONY: maybe-install-info-libtool install-info-libtool
19941maybe-install-info-libtool:
19942@if libtool
19943maybe-install-info-libtool: install-info-libtool
1358ccea 19944
d32ab992
PB
19945install-info-libtool: \
19946 configure-libtool \
05750653 19947 info-libtool
f41d6665 19948 @: $(MAKE); $(unstage)
d32ab992 19949 @[ -f ./libtool/Makefile ] || exit 0; \
8c90b13a
L
19950 r=`${PWD_COMMAND}`; export r; \
19951 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 19952 $(HOST_EXPORTS) \
d32ab992 19953 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
19954 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19955 done; \
d32ab992 19956 echo "Doing install-info in libtool" ; \
215c351a 19957 (cd $(HOST_SUBDIR)/libtool && \
1358ccea
NN
19958 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19959 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19960 "RANLIB=$${RANLIB}" \
19961 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 19962 install-info) \
1358ccea
NN
19963 || exit 1
19964
d32ab992 19965@endif libtool
1358ccea 19966
65d6e994
CD
19967.PHONY: maybe-install-html-libtool install-html-libtool
19968maybe-install-html-libtool:
19969@if libtool
19970maybe-install-html-libtool: install-html-libtool
19971
19972install-html-libtool: \
19973 configure-libtool \
19974 html-libtool
19975 @: $(MAKE); $(unstage)
19976 @[ -f ./libtool/Makefile ] || exit 0; \
19977 r=`${PWD_COMMAND}`; export r; \
19978 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19979 $(HOST_EXPORTS) \
19980 for flag in $(EXTRA_HOST_FLAGS) ; do \
19981 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19982 done; \
19983 echo "Doing install-html in libtool" ; \
19984 (cd $(HOST_SUBDIR)/libtool && \
19985 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19986 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19987 "RANLIB=$${RANLIB}" \
19988 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19989 install-html) \
19990 || exit 1
19991
19992@endif libtool
19993
d32ab992
PB
19994.PHONY: maybe-installcheck-libtool installcheck-libtool
19995maybe-installcheck-libtool:
19996@if libtool
19997maybe-installcheck-libtool: installcheck-libtool
1358ccea 19998
d32ab992 19999installcheck-libtool: \
05750653 20000 configure-libtool
f41d6665 20001 @: $(MAKE); $(unstage)
d32ab992 20002 @[ -f ./libtool/Makefile ] || exit 0; \
8c90b13a
L
20003 r=`${PWD_COMMAND}`; export r; \
20004 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20005 $(HOST_EXPORTS) \
d32ab992 20006 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
20007 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20008 done; \
d32ab992 20009 echo "Doing installcheck in libtool" ; \
215c351a 20010 (cd $(HOST_SUBDIR)/libtool && \
1358ccea
NN
20011 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20012 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20013 "RANLIB=$${RANLIB}" \
20014 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20015 installcheck) \
1358ccea
NN
20016 || exit 1
20017
d32ab992 20018@endif libtool
1358ccea 20019
d32ab992
PB
20020.PHONY: maybe-mostlyclean-libtool mostlyclean-libtool
20021maybe-mostlyclean-libtool:
20022@if libtool
20023maybe-mostlyclean-libtool: mostlyclean-libtool
1358ccea 20024
05750653 20025mostlyclean-libtool:
f41d6665 20026 @: $(MAKE); $(unstage)
d32ab992 20027 @[ -f ./libtool/Makefile ] || exit 0; \
8c90b13a
L
20028 r=`${PWD_COMMAND}`; export r; \
20029 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20030 $(HOST_EXPORTS) \
d32ab992 20031 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
20032 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20033 done; \
d32ab992 20034 echo "Doing mostlyclean in libtool" ; \
215c351a 20035 (cd $(HOST_SUBDIR)/libtool && \
1358ccea
NN
20036 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20037 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20038 "RANLIB=$${RANLIB}" \
20039 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20040 mostlyclean) \
1358ccea
NN
20041 || exit 1
20042
d32ab992 20043@endif libtool
1358ccea 20044
d32ab992
PB
20045.PHONY: maybe-clean-libtool clean-libtool
20046maybe-clean-libtool:
20047@if libtool
20048maybe-clean-libtool: clean-libtool
1358ccea 20049
05750653 20050clean-libtool:
f41d6665 20051 @: $(MAKE); $(unstage)
d32ab992 20052 @[ -f ./libtool/Makefile ] || exit 0; \
8c90b13a
L
20053 r=`${PWD_COMMAND}`; export r; \
20054 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20055 $(HOST_EXPORTS) \
d32ab992 20056 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
20057 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20058 done; \
d32ab992 20059 echo "Doing clean in libtool" ; \
215c351a 20060 (cd $(HOST_SUBDIR)/libtool && \
1358ccea
NN
20061 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20062 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20063 "RANLIB=$${RANLIB}" \
20064 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20065 clean) \
1358ccea
NN
20066 || exit 1
20067
d32ab992 20068@endif libtool
1358ccea 20069
d32ab992
PB
20070.PHONY: maybe-distclean-libtool distclean-libtool
20071maybe-distclean-libtool:
20072@if libtool
20073maybe-distclean-libtool: distclean-libtool
1358ccea 20074
05750653 20075distclean-libtool:
f41d6665 20076 @: $(MAKE); $(unstage)
d32ab992 20077 @[ -f ./libtool/Makefile ] || exit 0; \
8c90b13a
L
20078 r=`${PWD_COMMAND}`; export r; \
20079 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20080 $(HOST_EXPORTS) \
d32ab992 20081 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
20082 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20083 done; \
d32ab992 20084 echo "Doing distclean in libtool" ; \
215c351a 20085 (cd $(HOST_SUBDIR)/libtool && \
1358ccea
NN
20086 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20087 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20088 "RANLIB=$${RANLIB}" \
20089 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20090 distclean) \
1358ccea
NN
20091 || exit 1
20092
d32ab992 20093@endif libtool
1358ccea 20094
d32ab992
PB
20095.PHONY: maybe-maintainer-clean-libtool maintainer-clean-libtool
20096maybe-maintainer-clean-libtool:
20097@if libtool
20098maybe-maintainer-clean-libtool: maintainer-clean-libtool
1358ccea 20099
05750653 20100maintainer-clean-libtool:
f41d6665 20101 @: $(MAKE); $(unstage)
d32ab992 20102 @[ -f ./libtool/Makefile ] || exit 0; \
8c90b13a
L
20103 r=`${PWD_COMMAND}`; export r; \
20104 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20105 $(HOST_EXPORTS) \
d32ab992 20106 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
20107 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20108 done; \
d32ab992 20109 echo "Doing maintainer-clean in libtool" ; \
215c351a 20110 (cd $(HOST_SUBDIR)/libtool && \
1358ccea
NN
20111 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20112 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20113 "RANLIB=$${RANLIB}" \
20114 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20115 maintainer-clean) \
1358ccea
NN
20116 || exit 1
20117
d32ab992 20118@endif libtool
1358ccea 20119
1358ccea 20120
25b42232 20121
d32ab992
PB
20122.PHONY: configure-m4 maybe-configure-m4
20123maybe-configure-m4:
3ff3adad
PB
20124@if gcc-bootstrap
20125configure-m4: stage_current
20126@endif gcc-bootstrap
d32ab992
PB
20127@if m4
20128maybe-configure-m4: configure-m4
cc11cc9b 20129configure-m4:
f41d6665 20130 @: $(MAKE); $(unstage)
cc11cc9b 20131 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 20132 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
20133 test ! -f $(HOST_SUBDIR)/m4/Makefile || exit 0; \
20134 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/m4 ; \
4fc4dd12 20135 $(HOST_EXPORTS) \
25b42232
PB
20136 echo Configuring in $(HOST_SUBDIR)/m4; \
20137 cd "$(HOST_SUBDIR)/m4" || exit 1; \
295f4e42 20138 case $(srcdir) in \
215c351a
PB
20139 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
20140 *) topdir=`echo $(HOST_SUBDIR)/m4/ | \
20141 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 20142 esac; \
215c351a
PB
20143 srcdiroption="--srcdir=$${topdir}/m4"; \
20144 libsrcdir="$$s/m4"; \
295f4e42 20145 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 20146 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 20147 || exit 1
d32ab992 20148@endif m4
1358ccea 20149
25b42232
PB
20150
20151
ce406537
PB
20152
20153
d32ab992
PB
20154.PHONY: all-m4 maybe-all-m4
20155maybe-all-m4:
3ff3adad
PB
20156@if gcc-bootstrap
20157all-m4: stage_current
20158@endif gcc-bootstrap
d32ab992 20159@if m4
7e0b5752 20160TARGET-m4=all
d32ab992
PB
20161maybe-all-m4: all-m4
20162all-m4: configure-m4
f41d6665 20163 @: $(MAKE); $(unstage)
295f4e42
NN
20164 @r=`${PWD_COMMAND}`; export r; \
20165 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20166 $(HOST_EXPORTS) \
215c351a
PB
20167 (cd $(HOST_SUBDIR)/m4 && \
20168 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-m4))
d32ab992 20169@endif m4
295f4e42 20170
25b42232 20171
ce406537
PB
20172
20173
d32ab992
PB
20174.PHONY: check-m4 maybe-check-m4
20175maybe-check-m4:
20176@if m4
20177maybe-check-m4: check-m4
1358ccea 20178
d32ab992 20179check-m4:
f41d6665 20180 @: $(MAKE); $(unstage)
295f4e42
NN
20181 @r=`${PWD_COMMAND}`; export r; \
20182 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20183 $(HOST_EXPORTS) \
215c351a
PB
20184 (cd $(HOST_SUBDIR)/m4 && \
20185 $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 20186
d32ab992 20187@endif m4
295f4e42 20188
d32ab992
PB
20189.PHONY: install-m4 maybe-install-m4
20190maybe-install-m4:
20191@if m4
20192maybe-install-m4: install-m4
295f4e42 20193
d32ab992 20194install-m4: installdirs
f41d6665 20195 @: $(MAKE); $(unstage)
295f4e42
NN
20196 @r=`${PWD_COMMAND}`; export r; \
20197 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20198 $(HOST_EXPORTS) \
215c351a 20199 (cd $(HOST_SUBDIR)/m4 && \
ace9ac7b 20200 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 20201
d32ab992 20202@endif m4
295f4e42
NN
20203
20204# Other targets (info, dvi, etc.)
20205
d32ab992
PB
20206.PHONY: maybe-info-m4 info-m4
20207maybe-info-m4:
20208@if m4
20209maybe-info-m4: info-m4
295f4e42 20210
d32ab992 20211info-m4: \
05750653 20212 configure-m4
f41d6665 20213 @: $(MAKE); $(unstage)
d32ab992 20214 @[ -f ./m4/Makefile ] || exit 0; \
8c90b13a
L
20215 r=`${PWD_COMMAND}`; export r; \
20216 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20217 $(HOST_EXPORTS) \
d32ab992 20218 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
20219 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20220 done; \
d32ab992 20221 echo "Doing info in m4" ; \
215c351a 20222 (cd $(HOST_SUBDIR)/m4 && \
1358ccea
NN
20223 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20224 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20225 "RANLIB=$${RANLIB}" \
20226 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20227 info) \
1358ccea
NN
20228 || exit 1
20229
d32ab992 20230@endif m4
1358ccea 20231
d32ab992
PB
20232.PHONY: maybe-dvi-m4 dvi-m4
20233maybe-dvi-m4:
20234@if m4
20235maybe-dvi-m4: dvi-m4
1358ccea 20236
d32ab992 20237dvi-m4: \
05750653 20238 configure-m4
f41d6665 20239 @: $(MAKE); $(unstage)
d32ab992 20240 @[ -f ./m4/Makefile ] || exit 0; \
8c90b13a
L
20241 r=`${PWD_COMMAND}`; export r; \
20242 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20243 $(HOST_EXPORTS) \
d32ab992 20244 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
20245 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20246 done; \
d32ab992 20247 echo "Doing dvi in m4" ; \
215c351a 20248 (cd $(HOST_SUBDIR)/m4 && \
1358ccea
NN
20249 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20250 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20251 "RANLIB=$${RANLIB}" \
20252 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20253 dvi) \
1358ccea
NN
20254 || exit 1
20255
d32ab992 20256@endif m4
1358ccea 20257
f87a2b2e
MS
20258.PHONY: maybe-html-m4 html-m4
20259maybe-html-m4:
20260@if m4
20261maybe-html-m4: html-m4
20262
20263html-m4: \
05750653 20264 configure-m4
f41d6665 20265 @: $(MAKE); $(unstage)
f87a2b2e
MS
20266 @[ -f ./m4/Makefile ] || exit 0; \
20267 r=`${PWD_COMMAND}`; export r; \
20268 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
20269 $(HOST_EXPORTS) \
20270 for flag in $(EXTRA_HOST_FLAGS) ; do \
20271 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20272 done; \
20273 echo "Doing html in m4" ; \
215c351a 20274 (cd $(HOST_SUBDIR)/m4 && \
f87a2b2e
MS
20275 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20276 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20277 "RANLIB=$${RANLIB}" \
20278 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20279 html) \
20280 || exit 1
20281
20282@endif m4
20283
d32ab992
PB
20284.PHONY: maybe-TAGS-m4 TAGS-m4
20285maybe-TAGS-m4:
20286@if m4
20287maybe-TAGS-m4: TAGS-m4
1358ccea 20288
d32ab992 20289TAGS-m4: \
05750653 20290 configure-m4
f41d6665 20291 @: $(MAKE); $(unstage)
d32ab992 20292 @[ -f ./m4/Makefile ] || exit 0; \
8c90b13a
L
20293 r=`${PWD_COMMAND}`; export r; \
20294 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20295 $(HOST_EXPORTS) \
d32ab992 20296 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
20297 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20298 done; \
d32ab992 20299 echo "Doing TAGS in m4" ; \
215c351a 20300 (cd $(HOST_SUBDIR)/m4 && \
1358ccea
NN
20301 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20302 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20303 "RANLIB=$${RANLIB}" \
20304 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20305 TAGS) \
1358ccea
NN
20306 || exit 1
20307
d32ab992 20308@endif m4
1358ccea 20309
d32ab992
PB
20310.PHONY: maybe-install-info-m4 install-info-m4
20311maybe-install-info-m4:
20312@if m4
20313maybe-install-info-m4: install-info-m4
1358ccea 20314
d32ab992
PB
20315install-info-m4: \
20316 configure-m4 \
05750653 20317 info-m4
f41d6665 20318 @: $(MAKE); $(unstage)
d32ab992 20319 @[ -f ./m4/Makefile ] || exit 0; \
8c90b13a
L
20320 r=`${PWD_COMMAND}`; export r; \
20321 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20322 $(HOST_EXPORTS) \
d32ab992 20323 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
20324 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20325 done; \
d32ab992 20326 echo "Doing install-info in m4" ; \
215c351a 20327 (cd $(HOST_SUBDIR)/m4 && \
1358ccea
NN
20328 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20329 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20330 "RANLIB=$${RANLIB}" \
20331 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20332 install-info) \
1358ccea
NN
20333 || exit 1
20334
d32ab992 20335@endif m4
1358ccea 20336
65d6e994
CD
20337.PHONY: maybe-install-html-m4 install-html-m4
20338maybe-install-html-m4:
20339@if m4
20340maybe-install-html-m4: install-html-m4
20341
20342install-html-m4: \
20343 configure-m4 \
20344 html-m4
20345 @: $(MAKE); $(unstage)
20346 @[ -f ./m4/Makefile ] || exit 0; \
20347 r=`${PWD_COMMAND}`; export r; \
20348 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20349 $(HOST_EXPORTS) \
20350 for flag in $(EXTRA_HOST_FLAGS) ; do \
20351 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20352 done; \
20353 echo "Doing install-html in m4" ; \
20354 (cd $(HOST_SUBDIR)/m4 && \
20355 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20356 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20357 "RANLIB=$${RANLIB}" \
20358 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20359 install-html) \
20360 || exit 1
20361
20362@endif m4
20363
d32ab992
PB
20364.PHONY: maybe-installcheck-m4 installcheck-m4
20365maybe-installcheck-m4:
20366@if m4
20367maybe-installcheck-m4: installcheck-m4
1358ccea 20368
d32ab992 20369installcheck-m4: \
05750653 20370 configure-m4
f41d6665 20371 @: $(MAKE); $(unstage)
d32ab992 20372 @[ -f ./m4/Makefile ] || exit 0; \
8c90b13a
L
20373 r=`${PWD_COMMAND}`; export r; \
20374 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20375 $(HOST_EXPORTS) \
d32ab992 20376 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
20377 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20378 done; \
d32ab992 20379 echo "Doing installcheck in m4" ; \
215c351a 20380 (cd $(HOST_SUBDIR)/m4 && \
1358ccea
NN
20381 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20382 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20383 "RANLIB=$${RANLIB}" \
20384 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20385 installcheck) \
1358ccea
NN
20386 || exit 1
20387
d32ab992 20388@endif m4
1358ccea 20389
d32ab992
PB
20390.PHONY: maybe-mostlyclean-m4 mostlyclean-m4
20391maybe-mostlyclean-m4:
20392@if m4
20393maybe-mostlyclean-m4: mostlyclean-m4
1358ccea 20394
05750653 20395mostlyclean-m4:
f41d6665 20396 @: $(MAKE); $(unstage)
d32ab992 20397 @[ -f ./m4/Makefile ] || exit 0; \
8c90b13a
L
20398 r=`${PWD_COMMAND}`; export r; \
20399 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20400 $(HOST_EXPORTS) \
d32ab992 20401 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
20402 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20403 done; \
d32ab992 20404 echo "Doing mostlyclean in m4" ; \
215c351a 20405 (cd $(HOST_SUBDIR)/m4 && \
1358ccea
NN
20406 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20407 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20408 "RANLIB=$${RANLIB}" \
20409 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20410 mostlyclean) \
1358ccea
NN
20411 || exit 1
20412
d32ab992 20413@endif m4
1358ccea 20414
d32ab992
PB
20415.PHONY: maybe-clean-m4 clean-m4
20416maybe-clean-m4:
20417@if m4
20418maybe-clean-m4: clean-m4
1358ccea 20419
05750653 20420clean-m4:
f41d6665 20421 @: $(MAKE); $(unstage)
d32ab992 20422 @[ -f ./m4/Makefile ] || exit 0; \
8c90b13a
L
20423 r=`${PWD_COMMAND}`; export r; \
20424 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20425 $(HOST_EXPORTS) \
d32ab992 20426 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
20427 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20428 done; \
d32ab992 20429 echo "Doing clean in m4" ; \
215c351a 20430 (cd $(HOST_SUBDIR)/m4 && \
1358ccea
NN
20431 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20432 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20433 "RANLIB=$${RANLIB}" \
20434 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20435 clean) \
1358ccea
NN
20436 || exit 1
20437
d32ab992 20438@endif m4
1358ccea 20439
d32ab992
PB
20440.PHONY: maybe-distclean-m4 distclean-m4
20441maybe-distclean-m4:
20442@if m4
20443maybe-distclean-m4: distclean-m4
d9cdb878 20444
05750653 20445distclean-m4:
f41d6665 20446 @: $(MAKE); $(unstage)
d32ab992 20447 @[ -f ./m4/Makefile ] || exit 0; \
d9cdb878
AC
20448 r=`${PWD_COMMAND}`; export r; \
20449 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20450 $(HOST_EXPORTS) \
d32ab992 20451 for flag in $(EXTRA_HOST_FLAGS) ; do \
d9cdb878
AC
20452 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20453 done; \
d32ab992 20454 echo "Doing distclean in m4" ; \
215c351a 20455 (cd $(HOST_SUBDIR)/m4 && \
d9cdb878
AC
20456 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20457 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
295f4e42
NN
20458 "RANLIB=$${RANLIB}" \
20459 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20460 distclean) \
295f4e42 20461 || exit 1
6599da04 20462
d32ab992 20463@endif m4
c4137c50 20464
d32ab992
PB
20465.PHONY: maybe-maintainer-clean-m4 maintainer-clean-m4
20466maybe-maintainer-clean-m4:
20467@if m4
20468maybe-maintainer-clean-m4: maintainer-clean-m4
c4137c50 20469
05750653 20470maintainer-clean-m4:
f41d6665 20471 @: $(MAKE); $(unstage)
d32ab992 20472 @[ -f ./m4/Makefile ] || exit 0; \
295f4e42
NN
20473 r=`${PWD_COMMAND}`; export r; \
20474 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20475 $(HOST_EXPORTS) \
d32ab992 20476 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
20477 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20478 done; \
d32ab992 20479 echo "Doing maintainer-clean in m4" ; \
215c351a 20480 (cd $(HOST_SUBDIR)/m4 && \
295f4e42
NN
20481 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20482 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20483 "RANLIB=$${RANLIB}" \
20484 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20485 maintainer-clean) \
295f4e42 20486 || exit 1
c4137c50 20487
d32ab992 20488@endif m4
c4137c50 20489
6599da04 20490
25b42232 20491
d32ab992
PB
20492.PHONY: configure-make maybe-configure-make
20493maybe-configure-make:
3ff3adad
PB
20494@if gcc-bootstrap
20495configure-make: stage_current
20496@endif gcc-bootstrap
d32ab992
PB
20497@if make
20498maybe-configure-make: configure-make
cc11cc9b 20499configure-make:
f41d6665 20500 @: $(MAKE); $(unstage)
cc11cc9b 20501 @r=`${PWD_COMMAND}`; export r; \
d32ab992 20502 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
20503 test ! -f $(HOST_SUBDIR)/make/Makefile || exit 0; \
20504 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/make ; \
d32ab992 20505 $(HOST_EXPORTS) \
25b42232
PB
20506 echo Configuring in $(HOST_SUBDIR)/make; \
20507 cd "$(HOST_SUBDIR)/make" || exit 1; \
295f4e42 20508 case $(srcdir) in \
215c351a
PB
20509 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
20510 *) topdir=`echo $(HOST_SUBDIR)/make/ | \
20511 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 20512 esac; \
215c351a
PB
20513 srcdiroption="--srcdir=$${topdir}/make"; \
20514 libsrcdir="$$s/make"; \
295f4e42 20515 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 20516 $(HOST_CONFIGARGS) $${srcdiroption} \
295f4e42 20517 || exit 1
d32ab992 20518@endif make
8b87bb96 20519
25b42232
PB
20520
20521
ce406537
PB
20522
20523
d32ab992
PB
20524.PHONY: all-make maybe-all-make
20525maybe-all-make:
3ff3adad
PB
20526@if gcc-bootstrap
20527all-make: stage_current
20528@endif gcc-bootstrap
d32ab992 20529@if make
7e0b5752 20530TARGET-make=all
d32ab992
PB
20531maybe-all-make: all-make
20532all-make: configure-make
f41d6665 20533 @: $(MAKE); $(unstage)
295f4e42
NN
20534 @r=`${PWD_COMMAND}`; export r; \
20535 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20536 $(HOST_EXPORTS) \
215c351a
PB
20537 (cd $(HOST_SUBDIR)/make && \
20538 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-make))
d32ab992 20539@endif make
7e2dbcef 20540
25b42232 20541
ce406537
PB
20542
20543
d32ab992
PB
20544.PHONY: check-make maybe-check-make
20545maybe-check-make:
20546@if make
20547maybe-check-make: check-make
295f4e42 20548
d32ab992 20549check-make:
f41d6665 20550 @: $(MAKE); $(unstage)
d32ab992
PB
20551 @r=`${PWD_COMMAND}`; export r; \
20552 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d32ab992 20553 $(HOST_EXPORTS) \
215c351a
PB
20554 (cd $(HOST_SUBDIR)/make && \
20555 $(MAKE) $(FLAGS_TO_PASS) check)
295f4e42 20556
d32ab992 20557@endif make
295f4e42 20558
d32ab992
PB
20559.PHONY: install-make maybe-install-make
20560maybe-install-make:
20561@if make
20562maybe-install-make: install-make
295f4e42 20563
d32ab992 20564install-make: installdirs
f41d6665 20565 @: $(MAKE); $(unstage)
295f4e42
NN
20566 @r=`${PWD_COMMAND}`; export r; \
20567 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20568 $(HOST_EXPORTS) \
215c351a 20569 (cd $(HOST_SUBDIR)/make && \
ace9ac7b 20570 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 20571
d32ab992 20572@endif make
295f4e42
NN
20573
20574# Other targets (info, dvi, etc.)
20575
d32ab992
PB
20576.PHONY: maybe-info-make info-make
20577maybe-info-make:
20578@if make
20579maybe-info-make: info-make
295f4e42 20580
d32ab992 20581info-make: \
05750653 20582 configure-make
f41d6665 20583 @: $(MAKE); $(unstage)
d32ab992 20584 @[ -f ./make/Makefile ] || exit 0; \
295f4e42
NN
20585 r=`${PWD_COMMAND}`; export r; \
20586 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20587 $(HOST_EXPORTS) \
d32ab992 20588 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
20589 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20590 done; \
d32ab992 20591 echo "Doing info in make" ; \
215c351a 20592 (cd $(HOST_SUBDIR)/make && \
295f4e42
NN
20593 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20594 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20595 "RANLIB=$${RANLIB}" \
20596 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20597 info) \
295f4e42 20598 || exit 1
7e2dbcef 20599
d32ab992 20600@endif make
6599da04 20601
d32ab992
PB
20602.PHONY: maybe-dvi-make dvi-make
20603maybe-dvi-make:
20604@if make
20605maybe-dvi-make: dvi-make
6599da04 20606
d32ab992 20607dvi-make: \
05750653 20608 configure-make
f41d6665 20609 @: $(MAKE); $(unstage)
d32ab992 20610 @[ -f ./make/Makefile ] || exit 0; \
295f4e42
NN
20611 r=`${PWD_COMMAND}`; export r; \
20612 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20613 $(HOST_EXPORTS) \
d32ab992 20614 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
20615 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20616 done; \
d32ab992 20617 echo "Doing dvi in make" ; \
215c351a 20618 (cd $(HOST_SUBDIR)/make && \
295f4e42
NN
20619 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20620 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20621 "RANLIB=$${RANLIB}" \
20622 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20623 dvi) \
295f4e42 20624 || exit 1
6599da04 20625
d32ab992 20626@endif make
6599da04 20627
f87a2b2e
MS
20628.PHONY: maybe-html-make html-make
20629maybe-html-make:
20630@if make
20631maybe-html-make: html-make
20632
20633html-make: \
05750653 20634 configure-make
f41d6665 20635 @: $(MAKE); $(unstage)
f87a2b2e
MS
20636 @[ -f ./make/Makefile ] || exit 0; \
20637 r=`${PWD_COMMAND}`; export r; \
20638 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
20639 $(HOST_EXPORTS) \
20640 for flag in $(EXTRA_HOST_FLAGS) ; do \
20641 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20642 done; \
20643 echo "Doing html in make" ; \
215c351a 20644 (cd $(HOST_SUBDIR)/make && \
f87a2b2e
MS
20645 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20646 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20647 "RANLIB=$${RANLIB}" \
20648 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20649 html) \
20650 || exit 1
20651
20652@endif make
20653
d32ab992
PB
20654.PHONY: maybe-TAGS-make TAGS-make
20655maybe-TAGS-make:
20656@if make
20657maybe-TAGS-make: TAGS-make
4977bab6 20658
d32ab992 20659TAGS-make: \
05750653 20660 configure-make
f41d6665 20661 @: $(MAKE); $(unstage)
d32ab992 20662 @[ -f ./make/Makefile ] || exit 0; \
295f4e42
NN
20663 r=`${PWD_COMMAND}`; export r; \
20664 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20665 $(HOST_EXPORTS) \
d32ab992 20666 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
20667 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20668 done; \
d32ab992 20669 echo "Doing TAGS in make" ; \
215c351a 20670 (cd $(HOST_SUBDIR)/make && \
295f4e42
NN
20671 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20672 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20673 "RANLIB=$${RANLIB}" \
20674 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20675 TAGS) \
295f4e42 20676 || exit 1
4977bab6 20677
d32ab992 20678@endif make
4977bab6 20679
d32ab992
PB
20680.PHONY: maybe-install-info-make install-info-make
20681maybe-install-info-make:
20682@if make
20683maybe-install-info-make: install-info-make
4977bab6 20684
d32ab992
PB
20685install-info-make: \
20686 configure-make \
05750653 20687 info-make
f41d6665 20688 @: $(MAKE); $(unstage)
d32ab992 20689 @[ -f ./make/Makefile ] || exit 0; \
295f4e42
NN
20690 r=`${PWD_COMMAND}`; export r; \
20691 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20692 $(HOST_EXPORTS) \
d32ab992 20693 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
20694 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20695 done; \
d32ab992 20696 echo "Doing install-info in make" ; \
215c351a 20697 (cd $(HOST_SUBDIR)/make && \
295f4e42
NN
20698 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20699 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20700 "RANLIB=$${RANLIB}" \
20701 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20702 install-info) \
295f4e42 20703 || exit 1
4977bab6 20704
d32ab992 20705@endif make
4977bab6 20706
65d6e994
CD
20707.PHONY: maybe-install-html-make install-html-make
20708maybe-install-html-make:
20709@if make
20710maybe-install-html-make: install-html-make
20711
20712install-html-make: \
20713 configure-make \
20714 html-make
20715 @: $(MAKE); $(unstage)
20716 @[ -f ./make/Makefile ] || exit 0; \
20717 r=`${PWD_COMMAND}`; export r; \
20718 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20719 $(HOST_EXPORTS) \
20720 for flag in $(EXTRA_HOST_FLAGS) ; do \
20721 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20722 done; \
20723 echo "Doing install-html in make" ; \
20724 (cd $(HOST_SUBDIR)/make && \
20725 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20726 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20727 "RANLIB=$${RANLIB}" \
20728 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20729 install-html) \
20730 || exit 1
20731
20732@endif make
20733
d32ab992
PB
20734.PHONY: maybe-installcheck-make installcheck-make
20735maybe-installcheck-make:
20736@if make
20737maybe-installcheck-make: installcheck-make
4977bab6 20738
d32ab992 20739installcheck-make: \
05750653 20740 configure-make
f41d6665 20741 @: $(MAKE); $(unstage)
d32ab992 20742 @[ -f ./make/Makefile ] || exit 0; \
8c90b13a
L
20743 r=`${PWD_COMMAND}`; export r; \
20744 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20745 $(HOST_EXPORTS) \
d32ab992 20746 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
20747 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20748 done; \
d32ab992 20749 echo "Doing installcheck in make" ; \
215c351a 20750 (cd $(HOST_SUBDIR)/make && \
295f4e42
NN
20751 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20752 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20753 "RANLIB=$${RANLIB}" \
20754 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20755 installcheck) \
295f4e42
NN
20756 || exit 1
20757
d32ab992 20758@endif make
295f4e42 20759
d32ab992
PB
20760.PHONY: maybe-mostlyclean-make mostlyclean-make
20761maybe-mostlyclean-make:
20762@if make
20763maybe-mostlyclean-make: mostlyclean-make
295f4e42 20764
05750653 20765mostlyclean-make:
f41d6665 20766 @: $(MAKE); $(unstage)
d32ab992 20767 @[ -f ./make/Makefile ] || exit 0; \
295f4e42
NN
20768 r=`${PWD_COMMAND}`; export r; \
20769 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20770 $(HOST_EXPORTS) \
d32ab992 20771 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
20772 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20773 done; \
d32ab992 20774 echo "Doing mostlyclean in make" ; \
215c351a 20775 (cd $(HOST_SUBDIR)/make && \
295f4e42
NN
20776 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20777 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20778 "RANLIB=$${RANLIB}" \
20779 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20780 mostlyclean) \
295f4e42
NN
20781 || exit 1
20782
d32ab992 20783@endif make
295f4e42 20784
d32ab992
PB
20785.PHONY: maybe-clean-make clean-make
20786maybe-clean-make:
20787@if make
20788maybe-clean-make: clean-make
295f4e42 20789
05750653 20790clean-make:
f41d6665 20791 @: $(MAKE); $(unstage)
d32ab992 20792 @[ -f ./make/Makefile ] || exit 0; \
295f4e42
NN
20793 r=`${PWD_COMMAND}`; export r; \
20794 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20795 $(HOST_EXPORTS) \
d32ab992 20796 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
20797 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20798 done; \
d32ab992 20799 echo "Doing clean in make" ; \
215c351a 20800 (cd $(HOST_SUBDIR)/make && \
295f4e42
NN
20801 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20802 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20803 "RANLIB=$${RANLIB}" \
20804 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20805 clean) \
295f4e42
NN
20806 || exit 1
20807
d32ab992 20808@endif make
295f4e42 20809
d32ab992
PB
20810.PHONY: maybe-distclean-make distclean-make
20811maybe-distclean-make:
20812@if make
20813maybe-distclean-make: distclean-make
295f4e42 20814
05750653 20815distclean-make:
f41d6665 20816 @: $(MAKE); $(unstage)
d32ab992 20817 @[ -f ./make/Makefile ] || exit 0; \
295f4e42
NN
20818 r=`${PWD_COMMAND}`; export r; \
20819 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20820 $(HOST_EXPORTS) \
d32ab992 20821 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
20822 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20823 done; \
d32ab992 20824 echo "Doing distclean in make" ; \
215c351a 20825 (cd $(HOST_SUBDIR)/make && \
295f4e42
NN
20826 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20827 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20828 "RANLIB=$${RANLIB}" \
20829 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20830 distclean) \
3aa83176 20831 || exit 1
4977bab6 20832
d32ab992 20833@endif make
295f4e42 20834
d32ab992
PB
20835.PHONY: maybe-maintainer-clean-make maintainer-clean-make
20836maybe-maintainer-clean-make:
20837@if make
20838maybe-maintainer-clean-make: maintainer-clean-make
295f4e42 20839
05750653 20840maintainer-clean-make:
f41d6665 20841 @: $(MAKE); $(unstage)
d32ab992 20842 @[ -f ./make/Makefile ] || exit 0; \
295f4e42 20843 r=`${PWD_COMMAND}`; export r; \
8c90b13a 20844 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20845 $(HOST_EXPORTS) \
d32ab992 20846 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
20847 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20848 done; \
d32ab992 20849 echo "Doing maintainer-clean in make" ; \
215c351a 20850 (cd $(HOST_SUBDIR)/make && \
295f4e42
NN
20851 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20852 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20853 "RANLIB=$${RANLIB}" \
20854 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20855 maintainer-clean) \
295f4e42 20856 || exit 1
4977bab6 20857
d32ab992 20858@endif make
4977bab6 20859
4977bab6 20860
25b42232 20861
d32ab992
PB
20862.PHONY: configure-mmalloc maybe-configure-mmalloc
20863maybe-configure-mmalloc:
3ff3adad
PB
20864@if gcc-bootstrap
20865configure-mmalloc: stage_current
20866@endif gcc-bootstrap
d32ab992
PB
20867@if mmalloc
20868maybe-configure-mmalloc: configure-mmalloc
cc11cc9b 20869configure-mmalloc:
f41d6665 20870 @: $(MAKE); $(unstage)
cc11cc9b 20871 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 20872 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
20873 test ! -f $(HOST_SUBDIR)/mmalloc/Makefile || exit 0; \
20874 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mmalloc ; \
4fc4dd12 20875 $(HOST_EXPORTS) \
25b42232
PB
20876 echo Configuring in $(HOST_SUBDIR)/mmalloc; \
20877 cd "$(HOST_SUBDIR)/mmalloc" || exit 1; \
4977bab6 20878 case $(srcdir) in \
215c351a
PB
20879 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
20880 *) topdir=`echo $(HOST_SUBDIR)/mmalloc/ | \
20881 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 20882 esac; \
215c351a
PB
20883 srcdiroption="--srcdir=$${topdir}/mmalloc"; \
20884 libsrcdir="$$s/mmalloc"; \
4977bab6 20885 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 20886 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 20887 || exit 1
d32ab992 20888@endif mmalloc
4977bab6 20889
25b42232
PB
20890
20891
ce406537
PB
20892
20893
d32ab992
PB
20894.PHONY: all-mmalloc maybe-all-mmalloc
20895maybe-all-mmalloc:
3ff3adad
PB
20896@if gcc-bootstrap
20897all-mmalloc: stage_current
20898@endif gcc-bootstrap
d32ab992 20899@if mmalloc
7e0b5752 20900TARGET-mmalloc=all
d32ab992
PB
20901maybe-all-mmalloc: all-mmalloc
20902all-mmalloc: configure-mmalloc
f41d6665 20903 @: $(MAKE); $(unstage)
8c90b13a
L
20904 @r=`${PWD_COMMAND}`; export r; \
20905 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20906 $(HOST_EXPORTS) \
215c351a
PB
20907 (cd $(HOST_SUBDIR)/mmalloc && \
20908 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-mmalloc))
d32ab992 20909@endif mmalloc
4977bab6 20910
25b42232 20911
ce406537
PB
20912
20913
d32ab992
PB
20914.PHONY: check-mmalloc maybe-check-mmalloc
20915maybe-check-mmalloc:
20916@if mmalloc
20917maybe-check-mmalloc: check-mmalloc
4977bab6 20918
d32ab992 20919check-mmalloc:
4977bab6 20920
d32ab992 20921@endif mmalloc
4977bab6 20922
d32ab992
PB
20923.PHONY: install-mmalloc maybe-install-mmalloc
20924maybe-install-mmalloc:
20925@if mmalloc
20926maybe-install-mmalloc: install-mmalloc
7e2dbcef 20927
d32ab992 20928install-mmalloc: installdirs
f41d6665 20929 @: $(MAKE); $(unstage)
8c90b13a
L
20930 @r=`${PWD_COMMAND}`; export r; \
20931 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20932 $(HOST_EXPORTS) \
215c351a 20933 (cd $(HOST_SUBDIR)/mmalloc && \
ace9ac7b 20934 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 20935
d32ab992 20936@endif mmalloc
295f4e42
NN
20937
20938# Other targets (info, dvi, etc.)
20939
d32ab992
PB
20940.PHONY: maybe-info-mmalloc info-mmalloc
20941maybe-info-mmalloc:
20942@if mmalloc
20943maybe-info-mmalloc: info-mmalloc
295f4e42 20944
d32ab992 20945info-mmalloc: \
05750653 20946 configure-mmalloc
f41d6665 20947 @: $(MAKE); $(unstage)
d32ab992 20948 @[ -f ./mmalloc/Makefile ] || exit 0; \
295f4e42
NN
20949 r=`${PWD_COMMAND}`; export r; \
20950 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20951 $(HOST_EXPORTS) \
d32ab992 20952 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
20953 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20954 done; \
d32ab992 20955 echo "Doing info in mmalloc" ; \
215c351a 20956 (cd $(HOST_SUBDIR)/mmalloc && \
295f4e42
NN
20957 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20958 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20959 "RANLIB=$${RANLIB}" \
20960 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20961 info) \
295f4e42
NN
20962 || exit 1
20963
d32ab992 20964@endif mmalloc
295f4e42 20965
d32ab992
PB
20966.PHONY: maybe-dvi-mmalloc dvi-mmalloc
20967maybe-dvi-mmalloc:
20968@if mmalloc
20969maybe-dvi-mmalloc: dvi-mmalloc
295f4e42 20970
d32ab992 20971dvi-mmalloc: \
05750653 20972 configure-mmalloc
f41d6665 20973 @: $(MAKE); $(unstage)
d32ab992 20974 @[ -f ./mmalloc/Makefile ] || exit 0; \
295f4e42
NN
20975 r=`${PWD_COMMAND}`; export r; \
20976 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20977 $(HOST_EXPORTS) \
d32ab992 20978 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
20979 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20980 done; \
d32ab992 20981 echo "Doing dvi in mmalloc" ; \
215c351a 20982 (cd $(HOST_SUBDIR)/mmalloc && \
295f4e42
NN
20983 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20984 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20985 "RANLIB=$${RANLIB}" \
20986 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20987 dvi) \
295f4e42
NN
20988 || exit 1
20989
d32ab992 20990@endif mmalloc
295f4e42 20991
f87a2b2e
MS
20992.PHONY: maybe-html-mmalloc html-mmalloc
20993maybe-html-mmalloc:
20994@if mmalloc
20995maybe-html-mmalloc: html-mmalloc
20996
20997html-mmalloc: \
05750653 20998 configure-mmalloc
f41d6665 20999 @: $(MAKE); $(unstage)
f87a2b2e
MS
21000 @[ -f ./mmalloc/Makefile ] || exit 0; \
21001 r=`${PWD_COMMAND}`; export r; \
21002 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
21003 $(HOST_EXPORTS) \
21004 for flag in $(EXTRA_HOST_FLAGS) ; do \
21005 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21006 done; \
21007 echo "Doing html in mmalloc" ; \
215c351a 21008 (cd $(HOST_SUBDIR)/mmalloc && \
f87a2b2e
MS
21009 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21010 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21011 "RANLIB=$${RANLIB}" \
21012 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21013 html) \
21014 || exit 1
21015
21016@endif mmalloc
21017
d32ab992
PB
21018.PHONY: maybe-TAGS-mmalloc TAGS-mmalloc
21019maybe-TAGS-mmalloc:
21020@if mmalloc
21021maybe-TAGS-mmalloc: TAGS-mmalloc
295f4e42 21022
d32ab992 21023TAGS-mmalloc: \
05750653 21024 configure-mmalloc
f41d6665 21025 @: $(MAKE); $(unstage)
d32ab992 21026 @[ -f ./mmalloc/Makefile ] || exit 0; \
295f4e42
NN
21027 r=`${PWD_COMMAND}`; export r; \
21028 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21029 $(HOST_EXPORTS) \
d32ab992 21030 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
21031 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21032 done; \
d32ab992 21033 echo "Doing TAGS in mmalloc" ; \
215c351a 21034 (cd $(HOST_SUBDIR)/mmalloc && \
295f4e42
NN
21035 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21036 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21037 "RANLIB=$${RANLIB}" \
21038 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21039 TAGS) \
295f4e42
NN
21040 || exit 1
21041
d32ab992 21042@endif mmalloc
295f4e42 21043
d32ab992
PB
21044.PHONY: maybe-install-info-mmalloc install-info-mmalloc
21045maybe-install-info-mmalloc:
21046@if mmalloc
21047maybe-install-info-mmalloc: install-info-mmalloc
295f4e42 21048
d32ab992
PB
21049install-info-mmalloc: \
21050 configure-mmalloc \
05750653 21051 info-mmalloc
f41d6665 21052 @: $(MAKE); $(unstage)
d32ab992 21053 @[ -f ./mmalloc/Makefile ] || exit 0; \
295f4e42
NN
21054 r=`${PWD_COMMAND}`; export r; \
21055 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21056 $(HOST_EXPORTS) \
d32ab992 21057 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
21058 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21059 done; \
d32ab992 21060 echo "Doing install-info in mmalloc" ; \
215c351a 21061 (cd $(HOST_SUBDIR)/mmalloc && \
295f4e42
NN
21062 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21063 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21064 "RANLIB=$${RANLIB}" \
21065 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21066 install-info) \
295f4e42
NN
21067 || exit 1
21068
d32ab992 21069@endif mmalloc
295f4e42 21070
65d6e994
CD
21071.PHONY: maybe-install-html-mmalloc install-html-mmalloc
21072maybe-install-html-mmalloc:
21073@if mmalloc
21074maybe-install-html-mmalloc: install-html-mmalloc
21075
21076install-html-mmalloc: \
21077 configure-mmalloc \
21078 html-mmalloc
21079 @: $(MAKE); $(unstage)
21080 @[ -f ./mmalloc/Makefile ] || exit 0; \
21081 r=`${PWD_COMMAND}`; export r; \
21082 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21083 $(HOST_EXPORTS) \
21084 for flag in $(EXTRA_HOST_FLAGS) ; do \
21085 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21086 done; \
21087 echo "Doing install-html in mmalloc" ; \
21088 (cd $(HOST_SUBDIR)/mmalloc && \
21089 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21090 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21091 "RANLIB=$${RANLIB}" \
21092 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21093 install-html) \
21094 || exit 1
21095
21096@endif mmalloc
21097
d32ab992
PB
21098.PHONY: maybe-installcheck-mmalloc installcheck-mmalloc
21099maybe-installcheck-mmalloc:
21100@if mmalloc
21101maybe-installcheck-mmalloc: installcheck-mmalloc
295f4e42 21102
d32ab992 21103installcheck-mmalloc: \
05750653 21104 configure-mmalloc
f41d6665 21105 @: $(MAKE); $(unstage)
d32ab992 21106 @[ -f ./mmalloc/Makefile ] || exit 0; \
295f4e42
NN
21107 r=`${PWD_COMMAND}`; export r; \
21108 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21109 $(HOST_EXPORTS) \
d32ab992 21110 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
21111 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21112 done; \
d32ab992 21113 echo "Doing installcheck in mmalloc" ; \
215c351a 21114 (cd $(HOST_SUBDIR)/mmalloc && \
295f4e42
NN
21115 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21116 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21117 "RANLIB=$${RANLIB}" \
21118 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21119 installcheck) \
295f4e42
NN
21120 || exit 1
21121
d32ab992 21122@endif mmalloc
295f4e42 21123
d32ab992
PB
21124.PHONY: maybe-mostlyclean-mmalloc mostlyclean-mmalloc
21125maybe-mostlyclean-mmalloc:
21126@if mmalloc
21127maybe-mostlyclean-mmalloc: mostlyclean-mmalloc
295f4e42 21128
05750653 21129mostlyclean-mmalloc:
f41d6665 21130 @: $(MAKE); $(unstage)
d32ab992 21131 @[ -f ./mmalloc/Makefile ] || exit 0; \
295f4e42
NN
21132 r=`${PWD_COMMAND}`; export r; \
21133 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21134 $(HOST_EXPORTS) \
d32ab992 21135 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
21136 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21137 done; \
d32ab992 21138 echo "Doing mostlyclean in mmalloc" ; \
215c351a 21139 (cd $(HOST_SUBDIR)/mmalloc && \
295f4e42
NN
21140 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21141 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21142 "RANLIB=$${RANLIB}" \
21143 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21144 mostlyclean) \
295f4e42
NN
21145 || exit 1
21146
d32ab992 21147@endif mmalloc
295f4e42 21148
d32ab992
PB
21149.PHONY: maybe-clean-mmalloc clean-mmalloc
21150maybe-clean-mmalloc:
21151@if mmalloc
21152maybe-clean-mmalloc: clean-mmalloc
295f4e42 21153
05750653 21154clean-mmalloc:
f41d6665 21155 @: $(MAKE); $(unstage)
d32ab992 21156 @[ -f ./mmalloc/Makefile ] || exit 0; \
295f4e42
NN
21157 r=`${PWD_COMMAND}`; export r; \
21158 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21159 $(HOST_EXPORTS) \
d32ab992 21160 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
21161 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21162 done; \
d32ab992 21163 echo "Doing clean in mmalloc" ; \
215c351a 21164 (cd $(HOST_SUBDIR)/mmalloc && \
295f4e42
NN
21165 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21166 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21167 "RANLIB=$${RANLIB}" \
21168 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21169 clean) \
295f4e42
NN
21170 || exit 1
21171
d32ab992 21172@endif mmalloc
295f4e42 21173
d32ab992
PB
21174.PHONY: maybe-distclean-mmalloc distclean-mmalloc
21175maybe-distclean-mmalloc:
21176@if mmalloc
21177maybe-distclean-mmalloc: distclean-mmalloc
295f4e42 21178
05750653 21179distclean-mmalloc:
f41d6665 21180 @: $(MAKE); $(unstage)
d32ab992 21181 @[ -f ./mmalloc/Makefile ] || exit 0; \
295f4e42
NN
21182 r=`${PWD_COMMAND}`; export r; \
21183 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21184 $(HOST_EXPORTS) \
d32ab992 21185 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
21186 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21187 done; \
d32ab992 21188 echo "Doing distclean in mmalloc" ; \
215c351a 21189 (cd $(HOST_SUBDIR)/mmalloc && \
295f4e42
NN
21190 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21191 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21192 "RANLIB=$${RANLIB}" \
21193 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21194 distclean) \
295f4e42
NN
21195 || exit 1
21196
d32ab992 21197@endif mmalloc
295f4e42 21198
d32ab992
PB
21199.PHONY: maybe-maintainer-clean-mmalloc maintainer-clean-mmalloc
21200maybe-maintainer-clean-mmalloc:
21201@if mmalloc
21202maybe-maintainer-clean-mmalloc: maintainer-clean-mmalloc
295f4e42 21203
05750653 21204maintainer-clean-mmalloc:
f41d6665 21205 @: $(MAKE); $(unstage)
d32ab992 21206 @[ -f ./mmalloc/Makefile ] || exit 0; \
295f4e42
NN
21207 r=`${PWD_COMMAND}`; export r; \
21208 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21209 $(HOST_EXPORTS) \
d32ab992 21210 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
21211 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21212 done; \
d32ab992 21213 echo "Doing maintainer-clean in mmalloc" ; \
215c351a 21214 (cd $(HOST_SUBDIR)/mmalloc && \
295f4e42
NN
21215 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21216 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21217 "RANLIB=$${RANLIB}" \
21218 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21219 maintainer-clean) \
295f4e42 21220 || exit 1
4977bab6 21221
d32ab992 21222@endif mmalloc
4977bab6 21223
295f4e42 21224
25b42232 21225
d32ab992
PB
21226.PHONY: configure-patch maybe-configure-patch
21227maybe-configure-patch:
3ff3adad
PB
21228@if gcc-bootstrap
21229configure-patch: stage_current
21230@endif gcc-bootstrap
d32ab992
PB
21231@if patch
21232maybe-configure-patch: configure-patch
cc11cc9b 21233configure-patch:
f41d6665 21234 @: $(MAKE); $(unstage)
cc11cc9b 21235 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 21236 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
21237 test ! -f $(HOST_SUBDIR)/patch/Makefile || exit 0; \
21238 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/patch ; \
4fc4dd12 21239 $(HOST_EXPORTS) \
25b42232
PB
21240 echo Configuring in $(HOST_SUBDIR)/patch; \
21241 cd "$(HOST_SUBDIR)/patch" || exit 1; \
4977bab6 21242 case $(srcdir) in \
215c351a
PB
21243 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
21244 *) topdir=`echo $(HOST_SUBDIR)/patch/ | \
21245 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 21246 esac; \
215c351a
PB
21247 srcdiroption="--srcdir=$${topdir}/patch"; \
21248 libsrcdir="$$s/patch"; \
4977bab6 21249 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 21250 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 21251 || exit 1
d32ab992 21252@endif patch
4977bab6 21253
25b42232
PB
21254
21255
ce406537
PB
21256
21257
d32ab992
PB
21258.PHONY: all-patch maybe-all-patch
21259maybe-all-patch:
3ff3adad
PB
21260@if gcc-bootstrap
21261all-patch: stage_current
21262@endif gcc-bootstrap
d32ab992 21263@if patch
7e0b5752 21264TARGET-patch=all
d32ab992
PB
21265maybe-all-patch: all-patch
21266all-patch: configure-patch
f41d6665 21267 @: $(MAKE); $(unstage)
8c90b13a
L
21268 @r=`${PWD_COMMAND}`; export r; \
21269 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21270 $(HOST_EXPORTS) \
215c351a
PB
21271 (cd $(HOST_SUBDIR)/patch && \
21272 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-patch))
d32ab992 21273@endif patch
4977bab6 21274
25b42232 21275
ce406537
PB
21276
21277
d32ab992
PB
21278.PHONY: check-patch maybe-check-patch
21279maybe-check-patch:
21280@if patch
21281maybe-check-patch: check-patch
4977bab6 21282
d32ab992 21283check-patch:
f41d6665 21284 @: $(MAKE); $(unstage)
8c90b13a
L
21285 @r=`${PWD_COMMAND}`; export r; \
21286 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21287 $(HOST_EXPORTS) \
215c351a
PB
21288 (cd $(HOST_SUBDIR)/patch && \
21289 $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6 21290
d32ab992 21291@endif patch
4977bab6 21292
d32ab992
PB
21293.PHONY: install-patch maybe-install-patch
21294maybe-install-patch:
21295@if patch
21296maybe-install-patch: install-patch
295f4e42 21297
d32ab992 21298install-patch: installdirs
f41d6665 21299 @: $(MAKE); $(unstage)
295f4e42
NN
21300 @r=`${PWD_COMMAND}`; export r; \
21301 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21302 $(HOST_EXPORTS) \
215c351a 21303 (cd $(HOST_SUBDIR)/patch && \
ace9ac7b 21304 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 21305
d32ab992 21306@endif patch
295f4e42
NN
21307
21308# Other targets (info, dvi, etc.)
21309
d32ab992
PB
21310.PHONY: maybe-info-patch info-patch
21311maybe-info-patch:
21312@if patch
21313maybe-info-patch: info-patch
295f4e42 21314
d32ab992 21315info-patch: \
05750653 21316 configure-patch
f41d6665 21317 @: $(MAKE); $(unstage)
d32ab992 21318 @[ -f ./patch/Makefile ] || exit 0; \
295f4e42
NN
21319 r=`${PWD_COMMAND}`; export r; \
21320 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21321 $(HOST_EXPORTS) \
d32ab992 21322 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
21323 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21324 done; \
d32ab992 21325 echo "Doing info in patch" ; \
215c351a 21326 (cd $(HOST_SUBDIR)/patch && \
295f4e42
NN
21327 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21328 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21329 "RANLIB=$${RANLIB}" \
21330 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21331 info) \
295f4e42
NN
21332 || exit 1
21333
d32ab992 21334@endif patch
295f4e42 21335
d32ab992
PB
21336.PHONY: maybe-dvi-patch dvi-patch
21337maybe-dvi-patch:
21338@if patch
21339maybe-dvi-patch: dvi-patch
295f4e42 21340
d32ab992 21341dvi-patch: \
05750653 21342 configure-patch
f41d6665 21343 @: $(MAKE); $(unstage)
d32ab992 21344 @[ -f ./patch/Makefile ] || exit 0; \
295f4e42
NN
21345 r=`${PWD_COMMAND}`; export r; \
21346 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21347 $(HOST_EXPORTS) \
d32ab992 21348 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
21349 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21350 done; \
d32ab992 21351 echo "Doing dvi in patch" ; \
215c351a 21352 (cd $(HOST_SUBDIR)/patch && \
295f4e42
NN
21353 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21354 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21355 "RANLIB=$${RANLIB}" \
21356 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21357 dvi) \
295f4e42
NN
21358 || exit 1
21359
d32ab992 21360@endif patch
295f4e42 21361
f87a2b2e
MS
21362.PHONY: maybe-html-patch html-patch
21363maybe-html-patch:
21364@if patch
21365maybe-html-patch: html-patch
21366
21367html-patch: \
05750653 21368 configure-patch
f41d6665 21369 @: $(MAKE); $(unstage)
f87a2b2e
MS
21370 @[ -f ./patch/Makefile ] || exit 0; \
21371 r=`${PWD_COMMAND}`; export r; \
21372 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
21373 $(HOST_EXPORTS) \
21374 for flag in $(EXTRA_HOST_FLAGS) ; do \
21375 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21376 done; \
21377 echo "Doing html in patch" ; \
215c351a 21378 (cd $(HOST_SUBDIR)/patch && \
f87a2b2e
MS
21379 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21380 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21381 "RANLIB=$${RANLIB}" \
21382 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21383 html) \
21384 || exit 1
21385
21386@endif patch
21387
d32ab992
PB
21388.PHONY: maybe-TAGS-patch TAGS-patch
21389maybe-TAGS-patch:
21390@if patch
21391maybe-TAGS-patch: TAGS-patch
295f4e42 21392
d32ab992 21393TAGS-patch: \
05750653 21394 configure-patch
f41d6665 21395 @: $(MAKE); $(unstage)
d32ab992 21396 @[ -f ./patch/Makefile ] || exit 0; \
295f4e42
NN
21397 r=`${PWD_COMMAND}`; export r; \
21398 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21399 $(HOST_EXPORTS) \
d32ab992 21400 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
21401 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21402 done; \
d32ab992 21403 echo "Doing TAGS in patch" ; \
215c351a 21404 (cd $(HOST_SUBDIR)/patch && \
295f4e42
NN
21405 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21406 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21407 "RANLIB=$${RANLIB}" \
21408 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21409 TAGS) \
295f4e42
NN
21410 || exit 1
21411
d32ab992 21412@endif patch
295f4e42 21413
d32ab992
PB
21414.PHONY: maybe-install-info-patch install-info-patch
21415maybe-install-info-patch:
21416@if patch
21417maybe-install-info-patch: install-info-patch
295f4e42 21418
d32ab992
PB
21419install-info-patch: \
21420 configure-patch \
05750653 21421 info-patch
f41d6665 21422 @: $(MAKE); $(unstage)
d32ab992 21423 @[ -f ./patch/Makefile ] || exit 0; \
295f4e42
NN
21424 r=`${PWD_COMMAND}`; export r; \
21425 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21426 $(HOST_EXPORTS) \
d32ab992 21427 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
21428 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21429 done; \
d32ab992 21430 echo "Doing install-info in patch" ; \
215c351a 21431 (cd $(HOST_SUBDIR)/patch && \
295f4e42
NN
21432 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21433 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21434 "RANLIB=$${RANLIB}" \
21435 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21436 install-info) \
295f4e42
NN
21437 || exit 1
21438
d32ab992 21439@endif patch
295f4e42 21440
65d6e994
CD
21441.PHONY: maybe-install-html-patch install-html-patch
21442maybe-install-html-patch:
21443@if patch
21444maybe-install-html-patch: install-html-patch
21445
21446install-html-patch: \
21447 configure-patch \
21448 html-patch
21449 @: $(MAKE); $(unstage)
21450 @[ -f ./patch/Makefile ] || exit 0; \
21451 r=`${PWD_COMMAND}`; export r; \
21452 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21453 $(HOST_EXPORTS) \
21454 for flag in $(EXTRA_HOST_FLAGS) ; do \
21455 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21456 done; \
21457 echo "Doing install-html in patch" ; \
21458 (cd $(HOST_SUBDIR)/patch && \
21459 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21460 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21461 "RANLIB=$${RANLIB}" \
21462 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21463 install-html) \
21464 || exit 1
21465
21466@endif patch
21467
d32ab992
PB
21468.PHONY: maybe-installcheck-patch installcheck-patch
21469maybe-installcheck-patch:
21470@if patch
21471maybe-installcheck-patch: installcheck-patch
295f4e42 21472
d32ab992 21473installcheck-patch: \
05750653 21474 configure-patch
f41d6665 21475 @: $(MAKE); $(unstage)
d32ab992 21476 @[ -f ./patch/Makefile ] || exit 0; \
295f4e42
NN
21477 r=`${PWD_COMMAND}`; export r; \
21478 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21479 $(HOST_EXPORTS) \
d32ab992 21480 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
21481 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21482 done; \
d32ab992 21483 echo "Doing installcheck in patch" ; \
215c351a 21484 (cd $(HOST_SUBDIR)/patch && \
295f4e42
NN
21485 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21486 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21487 "RANLIB=$${RANLIB}" \
21488 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21489 installcheck) \
295f4e42
NN
21490 || exit 1
21491
d32ab992 21492@endif patch
295f4e42 21493
d32ab992
PB
21494.PHONY: maybe-mostlyclean-patch mostlyclean-patch
21495maybe-mostlyclean-patch:
21496@if patch
21497maybe-mostlyclean-patch: mostlyclean-patch
295f4e42 21498
05750653 21499mostlyclean-patch:
f41d6665 21500 @: $(MAKE); $(unstage)
d32ab992 21501 @[ -f ./patch/Makefile ] || exit 0; \
295f4e42
NN
21502 r=`${PWD_COMMAND}`; export r; \
21503 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21504 $(HOST_EXPORTS) \
d32ab992 21505 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
21506 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21507 done; \
d32ab992 21508 echo "Doing mostlyclean in patch" ; \
215c351a 21509 (cd $(HOST_SUBDIR)/patch && \
295f4e42
NN
21510 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21511 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21512 "RANLIB=$${RANLIB}" \
21513 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21514 mostlyclean) \
295f4e42
NN
21515 || exit 1
21516
d32ab992 21517@endif patch
295f4e42 21518
d32ab992
PB
21519.PHONY: maybe-clean-patch clean-patch
21520maybe-clean-patch:
21521@if patch
21522maybe-clean-patch: clean-patch
295f4e42 21523
05750653 21524clean-patch:
f41d6665 21525 @: $(MAKE); $(unstage)
d32ab992 21526 @[ -f ./patch/Makefile ] || exit 0; \
295f4e42
NN
21527 r=`${PWD_COMMAND}`; export r; \
21528 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21529 $(HOST_EXPORTS) \
d32ab992 21530 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
21531 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21532 done; \
d32ab992 21533 echo "Doing clean in patch" ; \
215c351a 21534 (cd $(HOST_SUBDIR)/patch && \
295f4e42
NN
21535 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21536 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21537 "RANLIB=$${RANLIB}" \
21538 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21539 clean) \
295f4e42
NN
21540 || exit 1
21541
d32ab992 21542@endif patch
295f4e42 21543
d32ab992
PB
21544.PHONY: maybe-distclean-patch distclean-patch
21545maybe-distclean-patch:
21546@if patch
21547maybe-distclean-patch: distclean-patch
295f4e42 21548
05750653 21549distclean-patch:
f41d6665 21550 @: $(MAKE); $(unstage)
d32ab992 21551 @[ -f ./patch/Makefile ] || exit 0; \
295f4e42
NN
21552 r=`${PWD_COMMAND}`; export r; \
21553 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21554 $(HOST_EXPORTS) \
d32ab992 21555 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
21556 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21557 done; \
d32ab992 21558 echo "Doing distclean in patch" ; \
215c351a 21559 (cd $(HOST_SUBDIR)/patch && \
295f4e42
NN
21560 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21561 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21562 "RANLIB=$${RANLIB}" \
21563 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21564 distclean) \
295f4e42
NN
21565 || exit 1
21566
d32ab992 21567@endif patch
295f4e42 21568
d32ab992
PB
21569.PHONY: maybe-maintainer-clean-patch maintainer-clean-patch
21570maybe-maintainer-clean-patch:
21571@if patch
21572maybe-maintainer-clean-patch: maintainer-clean-patch
295f4e42 21573
05750653 21574maintainer-clean-patch:
f41d6665 21575 @: $(MAKE); $(unstage)
d32ab992 21576 @[ -f ./patch/Makefile ] || exit 0; \
295f4e42
NN
21577 r=`${PWD_COMMAND}`; export r; \
21578 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21579 $(HOST_EXPORTS) \
d32ab992 21580 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
21581 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21582 done; \
d32ab992 21583 echo "Doing maintainer-clean in patch" ; \
215c351a 21584 (cd $(HOST_SUBDIR)/patch && \
295f4e42
NN
21585 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21586 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21587 "RANLIB=$${RANLIB}" \
21588 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21589 maintainer-clean) \
295f4e42 21590 || exit 1
7e2dbcef 21591
d32ab992 21592@endif patch
4977bab6
ZW
21593
21594
25b42232 21595
d32ab992
PB
21596.PHONY: configure-perl maybe-configure-perl
21597maybe-configure-perl:
3ff3adad
PB
21598@if gcc-bootstrap
21599configure-perl: stage_current
21600@endif gcc-bootstrap
d32ab992
PB
21601@if perl
21602maybe-configure-perl: configure-perl
cc11cc9b 21603configure-perl:
f41d6665 21604 @: $(MAKE); $(unstage)
cc11cc9b 21605 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 21606 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
21607 test ! -f $(HOST_SUBDIR)/perl/Makefile || exit 0; \
21608 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/perl ; \
4fc4dd12 21609 $(HOST_EXPORTS) \
25b42232
PB
21610 echo Configuring in $(HOST_SUBDIR)/perl; \
21611 cd "$(HOST_SUBDIR)/perl" || exit 1; \
4977bab6 21612 case $(srcdir) in \
215c351a
PB
21613 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
21614 *) topdir=`echo $(HOST_SUBDIR)/perl/ | \
21615 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 21616 esac; \
215c351a
PB
21617 srcdiroption="--srcdir=$${topdir}/perl"; \
21618 libsrcdir="$$s/perl"; \
4977bab6 21619 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 21620 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 21621 || exit 1
d32ab992 21622@endif perl
4977bab6 21623
25b42232
PB
21624
21625
ce406537
PB
21626
21627
d32ab992
PB
21628.PHONY: all-perl maybe-all-perl
21629maybe-all-perl:
3ff3adad
PB
21630@if gcc-bootstrap
21631all-perl: stage_current
21632@endif gcc-bootstrap
d32ab992 21633@if perl
7e0b5752 21634TARGET-perl=all
d32ab992
PB
21635maybe-all-perl: all-perl
21636all-perl: configure-perl
f41d6665 21637 @: $(MAKE); $(unstage)
8c90b13a
L
21638 @r=`${PWD_COMMAND}`; export r; \
21639 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21640 $(HOST_EXPORTS) \
215c351a
PB
21641 (cd $(HOST_SUBDIR)/perl && \
21642 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-perl))
d32ab992 21643@endif perl
4977bab6 21644
25b42232 21645
ce406537
PB
21646
21647
d32ab992
PB
21648.PHONY: check-perl maybe-check-perl
21649maybe-check-perl:
21650@if perl
21651maybe-check-perl: check-perl
4977bab6 21652
d32ab992 21653check-perl:
f41d6665 21654 @: $(MAKE); $(unstage)
8c90b13a
L
21655 @r=`${PWD_COMMAND}`; export r; \
21656 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21657 $(HOST_EXPORTS) \
215c351a
PB
21658 (cd $(HOST_SUBDIR)/perl && \
21659 $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6 21660
d32ab992 21661@endif perl
4977bab6 21662
d32ab992
PB
21663.PHONY: install-perl maybe-install-perl
21664maybe-install-perl:
21665@if perl
21666maybe-install-perl: install-perl
7e2dbcef 21667
d32ab992 21668install-perl: installdirs
f41d6665 21669 @: $(MAKE); $(unstage)
8c90b13a
L
21670 @r=`${PWD_COMMAND}`; export r; \
21671 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21672 $(HOST_EXPORTS) \
215c351a 21673 (cd $(HOST_SUBDIR)/perl && \
ace9ac7b 21674 $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6 21675
d32ab992 21676@endif perl
4977bab6 21677
295f4e42
NN
21678# Other targets (info, dvi, etc.)
21679
d32ab992
PB
21680.PHONY: maybe-info-perl info-perl
21681maybe-info-perl:
21682@if perl
21683maybe-info-perl: info-perl
295f4e42 21684
d32ab992 21685info-perl: \
05750653 21686 configure-perl
f41d6665 21687 @: $(MAKE); $(unstage)
d32ab992 21688 @[ -f ./perl/Makefile ] || exit 0; \
295f4e42
NN
21689 r=`${PWD_COMMAND}`; export r; \
21690 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21691 $(HOST_EXPORTS) \
d32ab992 21692 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
21693 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21694 done; \
d32ab992 21695 echo "Doing info in perl" ; \
215c351a 21696 (cd $(HOST_SUBDIR)/perl && \
295f4e42
NN
21697 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21698 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21699 "RANLIB=$${RANLIB}" \
21700 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21701 info) \
295f4e42
NN
21702 || exit 1
21703
d32ab992 21704@endif perl
295f4e42 21705
d32ab992
PB
21706.PHONY: maybe-dvi-perl dvi-perl
21707maybe-dvi-perl:
21708@if perl
21709maybe-dvi-perl: dvi-perl
295f4e42 21710
d32ab992 21711dvi-perl: \
05750653 21712 configure-perl
f41d6665 21713 @: $(MAKE); $(unstage)
d32ab992 21714 @[ -f ./perl/Makefile ] || exit 0; \
295f4e42
NN
21715 r=`${PWD_COMMAND}`; export r; \
21716 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21717 $(HOST_EXPORTS) \
d32ab992 21718 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
21719 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21720 done; \
d32ab992 21721 echo "Doing dvi in perl" ; \
215c351a 21722 (cd $(HOST_SUBDIR)/perl && \
295f4e42
NN
21723 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21724 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21725 "RANLIB=$${RANLIB}" \
21726 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21727 dvi) \
295f4e42
NN
21728 || exit 1
21729
d32ab992 21730@endif perl
295f4e42 21731
f87a2b2e
MS
21732.PHONY: maybe-html-perl html-perl
21733maybe-html-perl:
21734@if perl
21735maybe-html-perl: html-perl
21736
21737html-perl: \
05750653 21738 configure-perl
f41d6665 21739 @: $(MAKE); $(unstage)
f87a2b2e
MS
21740 @[ -f ./perl/Makefile ] || exit 0; \
21741 r=`${PWD_COMMAND}`; export r; \
21742 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
21743 $(HOST_EXPORTS) \
21744 for flag in $(EXTRA_HOST_FLAGS) ; do \
21745 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21746 done; \
21747 echo "Doing html in perl" ; \
215c351a 21748 (cd $(HOST_SUBDIR)/perl && \
f87a2b2e
MS
21749 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21750 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21751 "RANLIB=$${RANLIB}" \
21752 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21753 html) \
21754 || exit 1
21755
21756@endif perl
21757
d32ab992
PB
21758.PHONY: maybe-TAGS-perl TAGS-perl
21759maybe-TAGS-perl:
21760@if perl
21761maybe-TAGS-perl: TAGS-perl
295f4e42 21762
d32ab992 21763TAGS-perl: \
05750653 21764 configure-perl
f41d6665 21765 @: $(MAKE); $(unstage)
d32ab992 21766 @[ -f ./perl/Makefile ] || exit 0; \
295f4e42
NN
21767 r=`${PWD_COMMAND}`; export r; \
21768 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21769 $(HOST_EXPORTS) \
d32ab992 21770 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
21771 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21772 done; \
d32ab992 21773 echo "Doing TAGS in perl" ; \
215c351a 21774 (cd $(HOST_SUBDIR)/perl && \
295f4e42
NN
21775 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21776 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21777 "RANLIB=$${RANLIB}" \
21778 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21779 TAGS) \
295f4e42
NN
21780 || exit 1
21781
d32ab992 21782@endif perl
295f4e42 21783
d32ab992
PB
21784.PHONY: maybe-install-info-perl install-info-perl
21785maybe-install-info-perl:
21786@if perl
21787maybe-install-info-perl: install-info-perl
295f4e42 21788
d32ab992
PB
21789install-info-perl: \
21790 configure-perl \
05750653 21791 info-perl
f41d6665 21792 @: $(MAKE); $(unstage)
d32ab992 21793 @[ -f ./perl/Makefile ] || exit 0; \
295f4e42
NN
21794 r=`${PWD_COMMAND}`; export r; \
21795 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21796 $(HOST_EXPORTS) \
d32ab992 21797 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
21798 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21799 done; \
d32ab992 21800 echo "Doing install-info in perl" ; \
215c351a 21801 (cd $(HOST_SUBDIR)/perl && \
295f4e42
NN
21802 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21803 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21804 "RANLIB=$${RANLIB}" \
21805 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21806 install-info) \
295f4e42
NN
21807 || exit 1
21808
d32ab992 21809@endif perl
295f4e42 21810
65d6e994
CD
21811.PHONY: maybe-install-html-perl install-html-perl
21812maybe-install-html-perl:
21813@if perl
21814maybe-install-html-perl: install-html-perl
21815
21816install-html-perl: \
21817 configure-perl \
21818 html-perl
21819 @: $(MAKE); $(unstage)
21820 @[ -f ./perl/Makefile ] || exit 0; \
21821 r=`${PWD_COMMAND}`; export r; \
21822 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21823 $(HOST_EXPORTS) \
21824 for flag in $(EXTRA_HOST_FLAGS) ; do \
21825 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21826 done; \
21827 echo "Doing install-html in perl" ; \
21828 (cd $(HOST_SUBDIR)/perl && \
21829 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21830 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21831 "RANLIB=$${RANLIB}" \
21832 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21833 install-html) \
21834 || exit 1
21835
21836@endif perl
21837
d32ab992
PB
21838.PHONY: maybe-installcheck-perl installcheck-perl
21839maybe-installcheck-perl:
21840@if perl
21841maybe-installcheck-perl: installcheck-perl
295f4e42 21842
d32ab992 21843installcheck-perl: \
05750653 21844 configure-perl
f41d6665 21845 @: $(MAKE); $(unstage)
d32ab992 21846 @[ -f ./perl/Makefile ] || exit 0; \
295f4e42
NN
21847 r=`${PWD_COMMAND}`; export r; \
21848 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21849 $(HOST_EXPORTS) \
d32ab992 21850 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
21851 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21852 done; \
d32ab992 21853 echo "Doing installcheck in perl" ; \
215c351a 21854 (cd $(HOST_SUBDIR)/perl && \
295f4e42
NN
21855 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21856 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21857 "RANLIB=$${RANLIB}" \
21858 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21859 installcheck) \
295f4e42
NN
21860 || exit 1
21861
d32ab992 21862@endif perl
295f4e42 21863
d32ab992
PB
21864.PHONY: maybe-mostlyclean-perl mostlyclean-perl
21865maybe-mostlyclean-perl:
21866@if perl
21867maybe-mostlyclean-perl: mostlyclean-perl
295f4e42 21868
05750653 21869mostlyclean-perl:
f41d6665 21870 @: $(MAKE); $(unstage)
d32ab992 21871 @[ -f ./perl/Makefile ] || exit 0; \
295f4e42
NN
21872 r=`${PWD_COMMAND}`; export r; \
21873 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21874 $(HOST_EXPORTS) \
d32ab992 21875 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
21876 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21877 done; \
d32ab992 21878 echo "Doing mostlyclean in perl" ; \
215c351a 21879 (cd $(HOST_SUBDIR)/perl && \
295f4e42
NN
21880 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21881 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21882 "RANLIB=$${RANLIB}" \
21883 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21884 mostlyclean) \
295f4e42
NN
21885 || exit 1
21886
d32ab992 21887@endif perl
295f4e42 21888
d32ab992
PB
21889.PHONY: maybe-clean-perl clean-perl
21890maybe-clean-perl:
21891@if perl
21892maybe-clean-perl: clean-perl
295f4e42 21893
05750653 21894clean-perl:
f41d6665 21895 @: $(MAKE); $(unstage)
d32ab992 21896 @[ -f ./perl/Makefile ] || exit 0; \
295f4e42
NN
21897 r=`${PWD_COMMAND}`; export r; \
21898 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21899 $(HOST_EXPORTS) \
d32ab992 21900 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
21901 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21902 done; \
d32ab992 21903 echo "Doing clean in perl" ; \
215c351a 21904 (cd $(HOST_SUBDIR)/perl && \
295f4e42
NN
21905 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21906 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21907 "RANLIB=$${RANLIB}" \
21908 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21909 clean) \
295f4e42
NN
21910 || exit 1
21911
d32ab992 21912@endif perl
295f4e42 21913
d32ab992
PB
21914.PHONY: maybe-distclean-perl distclean-perl
21915maybe-distclean-perl:
21916@if perl
21917maybe-distclean-perl: distclean-perl
295f4e42 21918
05750653 21919distclean-perl:
f41d6665 21920 @: $(MAKE); $(unstage)
d32ab992 21921 @[ -f ./perl/Makefile ] || exit 0; \
295f4e42
NN
21922 r=`${PWD_COMMAND}`; export r; \
21923 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21924 $(HOST_EXPORTS) \
d32ab992 21925 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
21926 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21927 done; \
d32ab992 21928 echo "Doing distclean in perl" ; \
215c351a 21929 (cd $(HOST_SUBDIR)/perl && \
295f4e42
NN
21930 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21931 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21932 "RANLIB=$${RANLIB}" \
21933 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21934 distclean) \
295f4e42
NN
21935 || exit 1
21936
d32ab992 21937@endif perl
295f4e42 21938
d32ab992
PB
21939.PHONY: maybe-maintainer-clean-perl maintainer-clean-perl
21940maybe-maintainer-clean-perl:
21941@if perl
21942maybe-maintainer-clean-perl: maintainer-clean-perl
295f4e42 21943
05750653 21944maintainer-clean-perl:
f41d6665 21945 @: $(MAKE); $(unstage)
d32ab992 21946 @[ -f ./perl/Makefile ] || exit 0; \
295f4e42
NN
21947 r=`${PWD_COMMAND}`; export r; \
21948 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21949 $(HOST_EXPORTS) \
d32ab992 21950 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
21951 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21952 done; \
d32ab992 21953 echo "Doing maintainer-clean in perl" ; \
215c351a 21954 (cd $(HOST_SUBDIR)/perl && \
295f4e42
NN
21955 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21956 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21957 "RANLIB=$${RANLIB}" \
21958 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21959 maintainer-clean) \
295f4e42
NN
21960 || exit 1
21961
d32ab992 21962@endif perl
295f4e42
NN
21963
21964
25b42232 21965
d32ab992
PB
21966.PHONY: configure-prms maybe-configure-prms
21967maybe-configure-prms:
3ff3adad
PB
21968@if gcc-bootstrap
21969configure-prms: stage_current
21970@endif gcc-bootstrap
d32ab992
PB
21971@if prms
21972maybe-configure-prms: configure-prms
cc11cc9b 21973configure-prms:
f41d6665 21974 @: $(MAKE); $(unstage)
cc11cc9b 21975 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 21976 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
21977 test ! -f $(HOST_SUBDIR)/prms/Makefile || exit 0; \
21978 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/prms ; \
4fc4dd12 21979 $(HOST_EXPORTS) \
25b42232
PB
21980 echo Configuring in $(HOST_SUBDIR)/prms; \
21981 cd "$(HOST_SUBDIR)/prms" || exit 1; \
4977bab6 21982 case $(srcdir) in \
215c351a
PB
21983 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
21984 *) topdir=`echo $(HOST_SUBDIR)/prms/ | \
21985 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 21986 esac; \
215c351a
PB
21987 srcdiroption="--srcdir=$${topdir}/prms"; \
21988 libsrcdir="$$s/prms"; \
4977bab6 21989 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 21990 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 21991 || exit 1
d32ab992 21992@endif prms
4977bab6 21993
25b42232
PB
21994
21995
ce406537
PB
21996
21997
d32ab992
PB
21998.PHONY: all-prms maybe-all-prms
21999maybe-all-prms:
3ff3adad
PB
22000@if gcc-bootstrap
22001all-prms: stage_current
22002@endif gcc-bootstrap
d32ab992 22003@if prms
7e0b5752 22004TARGET-prms=all
d32ab992
PB
22005maybe-all-prms: all-prms
22006all-prms: configure-prms
f41d6665 22007 @: $(MAKE); $(unstage)
8c90b13a
L
22008 @r=`${PWD_COMMAND}`; export r; \
22009 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22010 $(HOST_EXPORTS) \
215c351a
PB
22011 (cd $(HOST_SUBDIR)/prms && \
22012 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-prms))
d32ab992 22013@endif prms
4977bab6 22014
25b42232 22015
ce406537
PB
22016
22017
d32ab992
PB
22018.PHONY: check-prms maybe-check-prms
22019maybe-check-prms:
22020@if prms
22021maybe-check-prms: check-prms
4977bab6 22022
d32ab992 22023check-prms:
f41d6665 22024 @: $(MAKE); $(unstage)
8c90b13a
L
22025 @r=`${PWD_COMMAND}`; export r; \
22026 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22027 $(HOST_EXPORTS) \
215c351a
PB
22028 (cd $(HOST_SUBDIR)/prms && \
22029 $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6 22030
d32ab992 22031@endif prms
4977bab6 22032
d32ab992
PB
22033.PHONY: install-prms maybe-install-prms
22034maybe-install-prms:
22035@if prms
22036maybe-install-prms: install-prms
7e2dbcef 22037
d32ab992 22038install-prms: installdirs
f41d6665 22039 @: $(MAKE); $(unstage)
8c90b13a
L
22040 @r=`${PWD_COMMAND}`; export r; \
22041 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22042 $(HOST_EXPORTS) \
215c351a 22043 (cd $(HOST_SUBDIR)/prms && \
ace9ac7b 22044 $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6 22045
d32ab992 22046@endif prms
4977bab6 22047
295f4e42
NN
22048# Other targets (info, dvi, etc.)
22049
d32ab992
PB
22050.PHONY: maybe-info-prms info-prms
22051maybe-info-prms:
22052@if prms
22053maybe-info-prms: info-prms
295f4e42 22054
d32ab992 22055info-prms: \
05750653 22056 configure-prms
f41d6665 22057 @: $(MAKE); $(unstage)
d32ab992 22058 @[ -f ./prms/Makefile ] || exit 0; \
8c90b13a
L
22059 r=`${PWD_COMMAND}`; export r; \
22060 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22061 $(HOST_EXPORTS) \
d32ab992 22062 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22063 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22064 done; \
d32ab992 22065 echo "Doing info in prms" ; \
215c351a 22066 (cd $(HOST_SUBDIR)/prms && \
295f4e42
NN
22067 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22068 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22069 "RANLIB=$${RANLIB}" \
22070 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22071 info) \
4977bab6
ZW
22072 || exit 1
22073
d32ab992 22074@endif prms
295f4e42 22075
d32ab992
PB
22076.PHONY: maybe-dvi-prms dvi-prms
22077maybe-dvi-prms:
22078@if prms
22079maybe-dvi-prms: dvi-prms
295f4e42 22080
d32ab992 22081dvi-prms: \
05750653 22082 configure-prms
f41d6665 22083 @: $(MAKE); $(unstage)
d32ab992 22084 @[ -f ./prms/Makefile ] || exit 0; \
295f4e42 22085 r=`${PWD_COMMAND}`; export r; \
8c90b13a 22086 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22087 $(HOST_EXPORTS) \
d32ab992 22088 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22089 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22090 done; \
d32ab992 22091 echo "Doing dvi in prms" ; \
215c351a 22092 (cd $(HOST_SUBDIR)/prms && \
295f4e42
NN
22093 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22094 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22095 "RANLIB=$${RANLIB}" \
22096 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22097 dvi) \
295f4e42 22098 || exit 1
4977bab6 22099
d32ab992 22100@endif prms
4977bab6 22101
f87a2b2e
MS
22102.PHONY: maybe-html-prms html-prms
22103maybe-html-prms:
22104@if prms
22105maybe-html-prms: html-prms
22106
22107html-prms: \
05750653 22108 configure-prms
f41d6665 22109 @: $(MAKE); $(unstage)
f87a2b2e
MS
22110 @[ -f ./prms/Makefile ] || exit 0; \
22111 r=`${PWD_COMMAND}`; export r; \
22112 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
22113 $(HOST_EXPORTS) \
22114 for flag in $(EXTRA_HOST_FLAGS) ; do \
22115 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22116 done; \
22117 echo "Doing html in prms" ; \
215c351a 22118 (cd $(HOST_SUBDIR)/prms && \
f87a2b2e
MS
22119 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22120 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22121 "RANLIB=$${RANLIB}" \
22122 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22123 html) \
22124 || exit 1
22125
22126@endif prms
22127
d32ab992
PB
22128.PHONY: maybe-TAGS-prms TAGS-prms
22129maybe-TAGS-prms:
22130@if prms
22131maybe-TAGS-prms: TAGS-prms
295f4e42 22132
d32ab992 22133TAGS-prms: \
05750653 22134 configure-prms
f41d6665 22135 @: $(MAKE); $(unstage)
d32ab992 22136 @[ -f ./prms/Makefile ] || exit 0; \
295f4e42 22137 r=`${PWD_COMMAND}`; export r; \
8c90b13a 22138 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22139 $(HOST_EXPORTS) \
d32ab992 22140 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22141 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22142 done; \
d32ab992 22143 echo "Doing TAGS in prms" ; \
215c351a 22144 (cd $(HOST_SUBDIR)/prms && \
295f4e42
NN
22145 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22146 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22147 "RANLIB=$${RANLIB}" \
22148 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22149 TAGS) \
295f4e42 22150 || exit 1
4977bab6 22151
d32ab992 22152@endif prms
4977bab6 22153
d32ab992
PB
22154.PHONY: maybe-install-info-prms install-info-prms
22155maybe-install-info-prms:
22156@if prms
22157maybe-install-info-prms: install-info-prms
7e2dbcef 22158
d32ab992
PB
22159install-info-prms: \
22160 configure-prms \
05750653 22161 info-prms
f41d6665 22162 @: $(MAKE); $(unstage)
d32ab992 22163 @[ -f ./prms/Makefile ] || exit 0; \
295f4e42
NN
22164 r=`${PWD_COMMAND}`; export r; \
22165 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22166 $(HOST_EXPORTS) \
d32ab992 22167 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22168 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22169 done; \
d32ab992 22170 echo "Doing install-info in prms" ; \
215c351a 22171 (cd $(HOST_SUBDIR)/prms && \
295f4e42
NN
22172 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22173 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22174 "RANLIB=$${RANLIB}" \
22175 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22176 install-info) \
295f4e42
NN
22177 || exit 1
22178
d32ab992 22179@endif prms
295f4e42 22180
65d6e994
CD
22181.PHONY: maybe-install-html-prms install-html-prms
22182maybe-install-html-prms:
22183@if prms
22184maybe-install-html-prms: install-html-prms
22185
22186install-html-prms: \
22187 configure-prms \
22188 html-prms
22189 @: $(MAKE); $(unstage)
22190 @[ -f ./prms/Makefile ] || exit 0; \
22191 r=`${PWD_COMMAND}`; export r; \
22192 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22193 $(HOST_EXPORTS) \
22194 for flag in $(EXTRA_HOST_FLAGS) ; do \
22195 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22196 done; \
22197 echo "Doing install-html in prms" ; \
22198 (cd $(HOST_SUBDIR)/prms && \
22199 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22200 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22201 "RANLIB=$${RANLIB}" \
22202 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22203 install-html) \
22204 || exit 1
22205
22206@endif prms
22207
d32ab992
PB
22208.PHONY: maybe-installcheck-prms installcheck-prms
22209maybe-installcheck-prms:
22210@if prms
22211maybe-installcheck-prms: installcheck-prms
295f4e42 22212
d32ab992 22213installcheck-prms: \
05750653 22214 configure-prms
f41d6665 22215 @: $(MAKE); $(unstage)
d32ab992 22216 @[ -f ./prms/Makefile ] || exit 0; \
295f4e42
NN
22217 r=`${PWD_COMMAND}`; export r; \
22218 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22219 $(HOST_EXPORTS) \
d32ab992 22220 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22221 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22222 done; \
d32ab992 22223 echo "Doing installcheck in prms" ; \
215c351a 22224 (cd $(HOST_SUBDIR)/prms && \
295f4e42
NN
22225 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22226 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22227 "RANLIB=$${RANLIB}" \
22228 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22229 installcheck) \
295f4e42
NN
22230 || exit 1
22231
d32ab992 22232@endif prms
295f4e42 22233
d32ab992
PB
22234.PHONY: maybe-mostlyclean-prms mostlyclean-prms
22235maybe-mostlyclean-prms:
22236@if prms
22237maybe-mostlyclean-prms: mostlyclean-prms
295f4e42 22238
05750653 22239mostlyclean-prms:
f41d6665 22240 @: $(MAKE); $(unstage)
d32ab992 22241 @[ -f ./prms/Makefile ] || exit 0; \
295f4e42
NN
22242 r=`${PWD_COMMAND}`; export r; \
22243 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22244 $(HOST_EXPORTS) \
d32ab992 22245 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22246 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22247 done; \
d32ab992 22248 echo "Doing mostlyclean in prms" ; \
215c351a 22249 (cd $(HOST_SUBDIR)/prms && \
295f4e42
NN
22250 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22251 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22252 "RANLIB=$${RANLIB}" \
22253 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22254 mostlyclean) \
295f4e42
NN
22255 || exit 1
22256
d32ab992 22257@endif prms
295f4e42 22258
d32ab992
PB
22259.PHONY: maybe-clean-prms clean-prms
22260maybe-clean-prms:
22261@if prms
22262maybe-clean-prms: clean-prms
295f4e42 22263
05750653 22264clean-prms:
f41d6665 22265 @: $(MAKE); $(unstage)
d32ab992 22266 @[ -f ./prms/Makefile ] || exit 0; \
295f4e42
NN
22267 r=`${PWD_COMMAND}`; export r; \
22268 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22269 $(HOST_EXPORTS) \
d32ab992 22270 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22271 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22272 done; \
d32ab992 22273 echo "Doing clean in prms" ; \
215c351a 22274 (cd $(HOST_SUBDIR)/prms && \
295f4e42
NN
22275 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22276 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22277 "RANLIB=$${RANLIB}" \
22278 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22279 clean) \
295f4e42
NN
22280 || exit 1
22281
d32ab992 22282@endif prms
295f4e42 22283
d32ab992
PB
22284.PHONY: maybe-distclean-prms distclean-prms
22285maybe-distclean-prms:
22286@if prms
22287maybe-distclean-prms: distclean-prms
295f4e42 22288
05750653 22289distclean-prms:
f41d6665 22290 @: $(MAKE); $(unstage)
d32ab992 22291 @[ -f ./prms/Makefile ] || exit 0; \
295f4e42
NN
22292 r=`${PWD_COMMAND}`; export r; \
22293 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22294 $(HOST_EXPORTS) \
d32ab992 22295 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22296 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22297 done; \
d32ab992 22298 echo "Doing distclean in prms" ; \
215c351a 22299 (cd $(HOST_SUBDIR)/prms && \
295f4e42
NN
22300 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22301 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22302 "RANLIB=$${RANLIB}" \
22303 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22304 distclean) \
295f4e42
NN
22305 || exit 1
22306
d32ab992 22307@endif prms
295f4e42 22308
d32ab992
PB
22309.PHONY: maybe-maintainer-clean-prms maintainer-clean-prms
22310maybe-maintainer-clean-prms:
22311@if prms
22312maybe-maintainer-clean-prms: maintainer-clean-prms
295f4e42 22313
05750653 22314maintainer-clean-prms:
f41d6665 22315 @: $(MAKE); $(unstage)
d32ab992 22316 @[ -f ./prms/Makefile ] || exit 0; \
295f4e42 22317 r=`${PWD_COMMAND}`; export r; \
8c90b13a 22318 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22319 $(HOST_EXPORTS) \
d32ab992 22320 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22321 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22322 done; \
d32ab992 22323 echo "Doing maintainer-clean in prms" ; \
215c351a 22324 (cd $(HOST_SUBDIR)/prms && \
295f4e42
NN
22325 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22326 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22327 "RANLIB=$${RANLIB}" \
22328 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22329 maintainer-clean) \
295f4e42 22330 || exit 1
4977bab6 22331
d32ab992 22332@endif prms
4977bab6 22333
295f4e42 22334
25b42232 22335
d32ab992
PB
22336.PHONY: configure-rcs maybe-configure-rcs
22337maybe-configure-rcs:
3ff3adad
PB
22338@if gcc-bootstrap
22339configure-rcs: stage_current
22340@endif gcc-bootstrap
d32ab992
PB
22341@if rcs
22342maybe-configure-rcs: configure-rcs
cc11cc9b 22343configure-rcs:
f41d6665 22344 @: $(MAKE); $(unstage)
cc11cc9b 22345 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 22346 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
22347 test ! -f $(HOST_SUBDIR)/rcs/Makefile || exit 0; \
22348 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/rcs ; \
4fc4dd12 22349 $(HOST_EXPORTS) \
25b42232
PB
22350 echo Configuring in $(HOST_SUBDIR)/rcs; \
22351 cd "$(HOST_SUBDIR)/rcs" || exit 1; \
4977bab6 22352 case $(srcdir) in \
215c351a
PB
22353 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
22354 *) topdir=`echo $(HOST_SUBDIR)/rcs/ | \
22355 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 22356 esac; \
215c351a
PB
22357 srcdiroption="--srcdir=$${topdir}/rcs"; \
22358 libsrcdir="$$s/rcs"; \
4977bab6 22359 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 22360 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 22361 || exit 1
d32ab992 22362@endif rcs
4977bab6 22363
25b42232
PB
22364
22365
ce406537
PB
22366
22367
d32ab992
PB
22368.PHONY: all-rcs maybe-all-rcs
22369maybe-all-rcs:
3ff3adad
PB
22370@if gcc-bootstrap
22371all-rcs: stage_current
22372@endif gcc-bootstrap
d32ab992 22373@if rcs
7e0b5752 22374TARGET-rcs=all
d32ab992
PB
22375maybe-all-rcs: all-rcs
22376all-rcs: configure-rcs
f41d6665 22377 @: $(MAKE); $(unstage)
8c90b13a
L
22378 @r=`${PWD_COMMAND}`; export r; \
22379 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22380 $(HOST_EXPORTS) \
215c351a
PB
22381 (cd $(HOST_SUBDIR)/rcs && \
22382 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-rcs))
d32ab992 22383@endif rcs
4977bab6 22384
25b42232 22385
ce406537
PB
22386
22387
d32ab992
PB
22388.PHONY: check-rcs maybe-check-rcs
22389maybe-check-rcs:
22390@if rcs
22391maybe-check-rcs: check-rcs
4977bab6 22392
d32ab992 22393check-rcs:
f41d6665 22394 @: $(MAKE); $(unstage)
8c90b13a
L
22395 @r=`${PWD_COMMAND}`; export r; \
22396 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22397 $(HOST_EXPORTS) \
215c351a
PB
22398 (cd $(HOST_SUBDIR)/rcs && \
22399 $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6 22400
d32ab992 22401@endif rcs
4977bab6 22402
d32ab992
PB
22403.PHONY: install-rcs maybe-install-rcs
22404maybe-install-rcs:
22405@if rcs
22406maybe-install-rcs: install-rcs
295f4e42 22407
d32ab992 22408install-rcs: installdirs
f41d6665 22409 @: $(MAKE); $(unstage)
295f4e42
NN
22410 @r=`${PWD_COMMAND}`; export r; \
22411 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22412 $(HOST_EXPORTS) \
215c351a 22413 (cd $(HOST_SUBDIR)/rcs && \
ace9ac7b 22414 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 22415
d32ab992 22416@endif rcs
295f4e42
NN
22417
22418# Other targets (info, dvi, etc.)
22419
d32ab992
PB
22420.PHONY: maybe-info-rcs info-rcs
22421maybe-info-rcs:
22422@if rcs
22423maybe-info-rcs: info-rcs
295f4e42 22424
d32ab992 22425info-rcs: \
05750653 22426 configure-rcs
f41d6665 22427 @: $(MAKE); $(unstage)
d32ab992 22428 @[ -f ./rcs/Makefile ] || exit 0; \
295f4e42
NN
22429 r=`${PWD_COMMAND}`; export r; \
22430 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22431 $(HOST_EXPORTS) \
d32ab992 22432 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22433 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22434 done; \
d32ab992 22435 echo "Doing info in rcs" ; \
215c351a 22436 (cd $(HOST_SUBDIR)/rcs && \
295f4e42
NN
22437 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22438 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22439 "RANLIB=$${RANLIB}" \
22440 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22441 info) \
295f4e42
NN
22442 || exit 1
22443
d32ab992 22444@endif rcs
295f4e42 22445
d32ab992
PB
22446.PHONY: maybe-dvi-rcs dvi-rcs
22447maybe-dvi-rcs:
22448@if rcs
22449maybe-dvi-rcs: dvi-rcs
295f4e42 22450
d32ab992 22451dvi-rcs: \
05750653 22452 configure-rcs
f41d6665 22453 @: $(MAKE); $(unstage)
d32ab992 22454 @[ -f ./rcs/Makefile ] || exit 0; \
295f4e42
NN
22455 r=`${PWD_COMMAND}`; export r; \
22456 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22457 $(HOST_EXPORTS) \
d32ab992 22458 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22459 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22460 done; \
d32ab992 22461 echo "Doing dvi in rcs" ; \
215c351a 22462 (cd $(HOST_SUBDIR)/rcs && \
295f4e42
NN
22463 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22464 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22465 "RANLIB=$${RANLIB}" \
22466 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22467 dvi) \
295f4e42
NN
22468 || exit 1
22469
d32ab992 22470@endif rcs
295f4e42 22471
f87a2b2e
MS
22472.PHONY: maybe-html-rcs html-rcs
22473maybe-html-rcs:
22474@if rcs
22475maybe-html-rcs: html-rcs
22476
22477html-rcs: \
05750653 22478 configure-rcs
f41d6665 22479 @: $(MAKE); $(unstage)
f87a2b2e
MS
22480 @[ -f ./rcs/Makefile ] || exit 0; \
22481 r=`${PWD_COMMAND}`; export r; \
22482 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
22483 $(HOST_EXPORTS) \
22484 for flag in $(EXTRA_HOST_FLAGS) ; do \
22485 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22486 done; \
22487 echo "Doing html in rcs" ; \
215c351a 22488 (cd $(HOST_SUBDIR)/rcs && \
f87a2b2e
MS
22489 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22490 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22491 "RANLIB=$${RANLIB}" \
22492 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22493 html) \
22494 || exit 1
22495
22496@endif rcs
22497
d32ab992
PB
22498.PHONY: maybe-TAGS-rcs TAGS-rcs
22499maybe-TAGS-rcs:
22500@if rcs
22501maybe-TAGS-rcs: TAGS-rcs
295f4e42 22502
d32ab992 22503TAGS-rcs: \
05750653 22504 configure-rcs
f41d6665 22505 @: $(MAKE); $(unstage)
d32ab992 22506 @[ -f ./rcs/Makefile ] || exit 0; \
295f4e42
NN
22507 r=`${PWD_COMMAND}`; export r; \
22508 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22509 $(HOST_EXPORTS) \
d32ab992 22510 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22511 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22512 done; \
d32ab992 22513 echo "Doing TAGS in rcs" ; \
215c351a 22514 (cd $(HOST_SUBDIR)/rcs && \
295f4e42
NN
22515 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22516 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22517 "RANLIB=$${RANLIB}" \
22518 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22519 TAGS) \
295f4e42
NN
22520 || exit 1
22521
d32ab992 22522@endif rcs
295f4e42 22523
d32ab992
PB
22524.PHONY: maybe-install-info-rcs install-info-rcs
22525maybe-install-info-rcs:
22526@if rcs
22527maybe-install-info-rcs: install-info-rcs
295f4e42 22528
d32ab992
PB
22529install-info-rcs: \
22530 configure-rcs \
05750653 22531 info-rcs
f41d6665 22532 @: $(MAKE); $(unstage)
d32ab992 22533 @[ -f ./rcs/Makefile ] || exit 0; \
295f4e42
NN
22534 r=`${PWD_COMMAND}`; export r; \
22535 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22536 $(HOST_EXPORTS) \
d32ab992 22537 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22538 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22539 done; \
d32ab992 22540 echo "Doing install-info in rcs" ; \
215c351a 22541 (cd $(HOST_SUBDIR)/rcs && \
295f4e42
NN
22542 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22543 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22544 "RANLIB=$${RANLIB}" \
22545 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22546 install-info) \
295f4e42
NN
22547 || exit 1
22548
d32ab992 22549@endif rcs
295f4e42 22550
65d6e994
CD
22551.PHONY: maybe-install-html-rcs install-html-rcs
22552maybe-install-html-rcs:
22553@if rcs
22554maybe-install-html-rcs: install-html-rcs
22555
22556install-html-rcs: \
22557 configure-rcs \
22558 html-rcs
22559 @: $(MAKE); $(unstage)
22560 @[ -f ./rcs/Makefile ] || exit 0; \
22561 r=`${PWD_COMMAND}`; export r; \
22562 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22563 $(HOST_EXPORTS) \
22564 for flag in $(EXTRA_HOST_FLAGS) ; do \
22565 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22566 done; \
22567 echo "Doing install-html in rcs" ; \
22568 (cd $(HOST_SUBDIR)/rcs && \
22569 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22570 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22571 "RANLIB=$${RANLIB}" \
22572 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22573 install-html) \
22574 || exit 1
22575
22576@endif rcs
22577
d32ab992
PB
22578.PHONY: maybe-installcheck-rcs installcheck-rcs
22579maybe-installcheck-rcs:
22580@if rcs
22581maybe-installcheck-rcs: installcheck-rcs
295f4e42 22582
d32ab992 22583installcheck-rcs: \
05750653 22584 configure-rcs
f41d6665 22585 @: $(MAKE); $(unstage)
d32ab992 22586 @[ -f ./rcs/Makefile ] || exit 0; \
295f4e42
NN
22587 r=`${PWD_COMMAND}`; export r; \
22588 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22589 $(HOST_EXPORTS) \
d32ab992 22590 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22591 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22592 done; \
d32ab992 22593 echo "Doing installcheck in rcs" ; \
215c351a 22594 (cd $(HOST_SUBDIR)/rcs && \
295f4e42
NN
22595 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22596 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22597 "RANLIB=$${RANLIB}" \
22598 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22599 installcheck) \
295f4e42
NN
22600 || exit 1
22601
d32ab992 22602@endif rcs
295f4e42 22603
d32ab992
PB
22604.PHONY: maybe-mostlyclean-rcs mostlyclean-rcs
22605maybe-mostlyclean-rcs:
22606@if rcs
22607maybe-mostlyclean-rcs: mostlyclean-rcs
295f4e42 22608
05750653 22609mostlyclean-rcs:
f41d6665 22610 @: $(MAKE); $(unstage)
d32ab992 22611 @[ -f ./rcs/Makefile ] || exit 0; \
295f4e42
NN
22612 r=`${PWD_COMMAND}`; export r; \
22613 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22614 $(HOST_EXPORTS) \
d32ab992 22615 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22616 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22617 done; \
d32ab992 22618 echo "Doing mostlyclean in rcs" ; \
215c351a 22619 (cd $(HOST_SUBDIR)/rcs && \
295f4e42
NN
22620 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22621 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22622 "RANLIB=$${RANLIB}" \
22623 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22624 mostlyclean) \
295f4e42
NN
22625 || exit 1
22626
d32ab992 22627@endif rcs
295f4e42 22628
d32ab992
PB
22629.PHONY: maybe-clean-rcs clean-rcs
22630maybe-clean-rcs:
22631@if rcs
22632maybe-clean-rcs: clean-rcs
295f4e42 22633
05750653 22634clean-rcs:
f41d6665 22635 @: $(MAKE); $(unstage)
d32ab992 22636 @[ -f ./rcs/Makefile ] || exit 0; \
295f4e42
NN
22637 r=`${PWD_COMMAND}`; export r; \
22638 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22639 $(HOST_EXPORTS) \
d32ab992 22640 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22641 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22642 done; \
d32ab992 22643 echo "Doing clean in rcs" ; \
215c351a 22644 (cd $(HOST_SUBDIR)/rcs && \
295f4e42
NN
22645 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22646 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22647 "RANLIB=$${RANLIB}" \
22648 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22649 clean) \
295f4e42
NN
22650 || exit 1
22651
d32ab992 22652@endif rcs
295f4e42 22653
d32ab992
PB
22654.PHONY: maybe-distclean-rcs distclean-rcs
22655maybe-distclean-rcs:
22656@if rcs
22657maybe-distclean-rcs: distclean-rcs
295f4e42 22658
05750653 22659distclean-rcs:
f41d6665 22660 @: $(MAKE); $(unstage)
d32ab992 22661 @[ -f ./rcs/Makefile ] || exit 0; \
295f4e42
NN
22662 r=`${PWD_COMMAND}`; export r; \
22663 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22664 $(HOST_EXPORTS) \
d32ab992 22665 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22666 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22667 done; \
d32ab992 22668 echo "Doing distclean in rcs" ; \
215c351a 22669 (cd $(HOST_SUBDIR)/rcs && \
295f4e42
NN
22670 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22671 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22672 "RANLIB=$${RANLIB}" \
22673 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22674 distclean) \
295f4e42
NN
22675 || exit 1
22676
d32ab992 22677@endif rcs
295f4e42 22678
d32ab992
PB
22679.PHONY: maybe-maintainer-clean-rcs maintainer-clean-rcs
22680maybe-maintainer-clean-rcs:
22681@if rcs
22682maybe-maintainer-clean-rcs: maintainer-clean-rcs
295f4e42 22683
05750653 22684maintainer-clean-rcs:
f41d6665 22685 @: $(MAKE); $(unstage)
d32ab992 22686 @[ -f ./rcs/Makefile ] || exit 0; \
295f4e42
NN
22687 r=`${PWD_COMMAND}`; export r; \
22688 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22689 $(HOST_EXPORTS) \
d32ab992 22690 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22691 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22692 done; \
d32ab992 22693 echo "Doing maintainer-clean in rcs" ; \
215c351a 22694 (cd $(HOST_SUBDIR)/rcs && \
295f4e42
NN
22695 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22696 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22697 "RANLIB=$${RANLIB}" \
22698 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22699 maintainer-clean) \
295f4e42 22700 || exit 1
7e2dbcef 22701
d32ab992 22702@endif rcs
4977bab6
ZW
22703
22704
25b42232 22705
d32ab992
PB
22706.PHONY: configure-readline maybe-configure-readline
22707maybe-configure-readline:
3ff3adad
PB
22708@if gcc-bootstrap
22709configure-readline: stage_current
22710@endif gcc-bootstrap
d32ab992
PB
22711@if readline
22712maybe-configure-readline: configure-readline
cc11cc9b 22713configure-readline:
f41d6665 22714 @: $(MAKE); $(unstage)
cc11cc9b 22715 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 22716 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
22717 test ! -f $(HOST_SUBDIR)/readline/Makefile || exit 0; \
22718 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/readline ; \
4fc4dd12 22719 $(HOST_EXPORTS) \
25b42232
PB
22720 echo Configuring in $(HOST_SUBDIR)/readline; \
22721 cd "$(HOST_SUBDIR)/readline" || exit 1; \
4977bab6 22722 case $(srcdir) in \
215c351a
PB
22723 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
22724 *) topdir=`echo $(HOST_SUBDIR)/readline/ | \
22725 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 22726 esac; \
215c351a
PB
22727 srcdiroption="--srcdir=$${topdir}/readline"; \
22728 libsrcdir="$$s/readline"; \
4977bab6 22729 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 22730 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 22731 || exit 1
d32ab992 22732@endif readline
4977bab6 22733
25b42232
PB
22734
22735
ce406537
PB
22736
22737
d32ab992
PB
22738.PHONY: all-readline maybe-all-readline
22739maybe-all-readline:
3ff3adad
PB
22740@if gcc-bootstrap
22741all-readline: stage_current
22742@endif gcc-bootstrap
d32ab992 22743@if readline
7e0b5752 22744TARGET-readline=all
d32ab992
PB
22745maybe-all-readline: all-readline
22746all-readline: configure-readline
f41d6665 22747 @: $(MAKE); $(unstage)
8c90b13a
L
22748 @r=`${PWD_COMMAND}`; export r; \
22749 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22750 $(HOST_EXPORTS) \
215c351a
PB
22751 (cd $(HOST_SUBDIR)/readline && \
22752 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-readline))
d32ab992 22753@endif readline
4977bab6 22754
25b42232 22755
ce406537
PB
22756
22757
d32ab992
PB
22758.PHONY: check-readline maybe-check-readline
22759maybe-check-readline:
22760@if readline
22761maybe-check-readline: check-readline
4977bab6 22762
d32ab992 22763check-readline:
f41d6665 22764 @: $(MAKE); $(unstage)
d32ab992
PB
22765 @r=`${PWD_COMMAND}`; export r; \
22766 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d32ab992 22767 $(HOST_EXPORTS) \
215c351a
PB
22768 (cd $(HOST_SUBDIR)/readline && \
22769 $(MAKE) $(FLAGS_TO_PASS) check)
295f4e42 22770
d32ab992 22771@endif readline
295f4e42 22772
d32ab992
PB
22773.PHONY: install-readline maybe-install-readline
22774maybe-install-readline:
22775@if readline
22776maybe-install-readline: install-readline
295f4e42 22777
d32ab992 22778install-readline: installdirs
f41d6665 22779 @: $(MAKE); $(unstage)
d32ab992
PB
22780 @r=`${PWD_COMMAND}`; export r; \
22781 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d32ab992 22782 $(HOST_EXPORTS) \
215c351a 22783 (cd $(HOST_SUBDIR)/readline && \
ace9ac7b 22784 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 22785
d32ab992 22786@endif readline
295f4e42
NN
22787
22788# Other targets (info, dvi, etc.)
22789
d32ab992
PB
22790.PHONY: maybe-info-readline info-readline
22791maybe-info-readline:
22792@if readline
22793maybe-info-readline: info-readline
295f4e42 22794
d32ab992 22795info-readline: \
05750653 22796 configure-readline
f41d6665 22797 @: $(MAKE); $(unstage)
d32ab992 22798 @[ -f ./readline/Makefile ] || exit 0; \
295f4e42 22799 r=`${PWD_COMMAND}`; export r; \
8c90b13a 22800 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22801 $(HOST_EXPORTS) \
d32ab992 22802 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22803 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22804 done; \
d32ab992 22805 echo "Doing info in readline" ; \
215c351a 22806 (cd $(HOST_SUBDIR)/readline && \
295f4e42
NN
22807 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22808 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22809 "RANLIB=$${RANLIB}" \
22810 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22811 info) \
295f4e42 22812 || exit 1
4977bab6 22813
d32ab992 22814@endif readline
4977bab6 22815
d32ab992
PB
22816.PHONY: maybe-dvi-readline dvi-readline
22817maybe-dvi-readline:
22818@if readline
22819maybe-dvi-readline: dvi-readline
7e2dbcef 22820
d32ab992 22821dvi-readline: \
05750653 22822 configure-readline
f41d6665 22823 @: $(MAKE); $(unstage)
d32ab992 22824 @[ -f ./readline/Makefile ] || exit 0; \
295f4e42 22825 r=`${PWD_COMMAND}`; export r; \
8c90b13a 22826 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22827 $(HOST_EXPORTS) \
d32ab992 22828 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22829 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22830 done; \
d32ab992 22831 echo "Doing dvi in readline" ; \
215c351a 22832 (cd $(HOST_SUBDIR)/readline && \
295f4e42
NN
22833 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22834 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22835 "RANLIB=$${RANLIB}" \
22836 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22837 dvi) \
295f4e42 22838 || exit 1
4977bab6 22839
d32ab992 22840@endif readline
4977bab6 22841
f87a2b2e
MS
22842.PHONY: maybe-html-readline html-readline
22843maybe-html-readline:
22844@if readline
22845maybe-html-readline: html-readline
22846
22847html-readline: \
05750653 22848 configure-readline
f41d6665 22849 @: $(MAKE); $(unstage)
f87a2b2e
MS
22850 @[ -f ./readline/Makefile ] || exit 0; \
22851 r=`${PWD_COMMAND}`; export r; \
22852 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
22853 $(HOST_EXPORTS) \
22854 for flag in $(EXTRA_HOST_FLAGS) ; do \
22855 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22856 done; \
22857 echo "Doing html in readline" ; \
215c351a 22858 (cd $(HOST_SUBDIR)/readline && \
f87a2b2e
MS
22859 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22860 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22861 "RANLIB=$${RANLIB}" \
22862 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22863 html) \
22864 || exit 1
22865
22866@endif readline
22867
d32ab992
PB
22868.PHONY: maybe-TAGS-readline TAGS-readline
22869maybe-TAGS-readline:
22870@if readline
22871maybe-TAGS-readline: TAGS-readline
295f4e42 22872
d32ab992 22873TAGS-readline: \
05750653 22874 configure-readline
f41d6665 22875 @: $(MAKE); $(unstage)
d32ab992 22876 @[ -f ./readline/Makefile ] || exit 0; \
295f4e42
NN
22877 r=`${PWD_COMMAND}`; export r; \
22878 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22879 $(HOST_EXPORTS) \
d32ab992 22880 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22881 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22882 done; \
d32ab992 22883 echo "Doing TAGS in readline" ; \
215c351a 22884 (cd $(HOST_SUBDIR)/readline && \
295f4e42
NN
22885 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22886 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22887 "RANLIB=$${RANLIB}" \
22888 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22889 TAGS) \
295f4e42
NN
22890 || exit 1
22891
d32ab992 22892@endif readline
295f4e42 22893
d32ab992
PB
22894.PHONY: maybe-install-info-readline install-info-readline
22895maybe-install-info-readline:
22896@if readline
22897maybe-install-info-readline: install-info-readline
295f4e42 22898
d32ab992
PB
22899install-info-readline: \
22900 configure-readline \
05750653 22901 info-readline
f41d6665 22902 @: $(MAKE); $(unstage)
d32ab992 22903 @[ -f ./readline/Makefile ] || exit 0; \
295f4e42
NN
22904 r=`${PWD_COMMAND}`; export r; \
22905 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22906 $(HOST_EXPORTS) \
d32ab992 22907 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22908 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22909 done; \
d32ab992 22910 echo "Doing install-info in readline" ; \
215c351a 22911 (cd $(HOST_SUBDIR)/readline && \
295f4e42
NN
22912 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22913 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22914 "RANLIB=$${RANLIB}" \
22915 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22916 install-info) \
295f4e42
NN
22917 || exit 1
22918
d32ab992 22919@endif readline
295f4e42 22920
65d6e994
CD
22921.PHONY: maybe-install-html-readline install-html-readline
22922maybe-install-html-readline:
22923@if readline
22924maybe-install-html-readline: install-html-readline
22925
22926install-html-readline: \
22927 configure-readline \
22928 html-readline
22929 @: $(MAKE); $(unstage)
22930 @[ -f ./readline/Makefile ] || exit 0; \
22931 r=`${PWD_COMMAND}`; export r; \
22932 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22933 $(HOST_EXPORTS) \
22934 for flag in $(EXTRA_HOST_FLAGS) ; do \
22935 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22936 done; \
22937 echo "Doing install-html in readline" ; \
22938 (cd $(HOST_SUBDIR)/readline && \
22939 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22940 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22941 "RANLIB=$${RANLIB}" \
22942 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22943 install-html) \
22944 || exit 1
22945
22946@endif readline
22947
d32ab992
PB
22948.PHONY: maybe-installcheck-readline installcheck-readline
22949maybe-installcheck-readline:
22950@if readline
22951maybe-installcheck-readline: installcheck-readline
295f4e42 22952
d32ab992 22953installcheck-readline: \
05750653 22954 configure-readline
f41d6665 22955 @: $(MAKE); $(unstage)
d32ab992 22956 @[ -f ./readline/Makefile ] || exit 0; \
295f4e42
NN
22957 r=`${PWD_COMMAND}`; export r; \
22958 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22959 $(HOST_EXPORTS) \
d32ab992 22960 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22961 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22962 done; \
d32ab992 22963 echo "Doing installcheck in readline" ; \
215c351a 22964 (cd $(HOST_SUBDIR)/readline && \
295f4e42
NN
22965 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22966 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22967 "RANLIB=$${RANLIB}" \
22968 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22969 installcheck) \
295f4e42
NN
22970 || exit 1
22971
d32ab992 22972@endif readline
295f4e42 22973
d32ab992
PB
22974.PHONY: maybe-mostlyclean-readline mostlyclean-readline
22975maybe-mostlyclean-readline:
22976@if readline
22977maybe-mostlyclean-readline: mostlyclean-readline
295f4e42 22978
05750653 22979mostlyclean-readline:
f41d6665 22980 @: $(MAKE); $(unstage)
d32ab992 22981 @[ -f ./readline/Makefile ] || exit 0; \
295f4e42
NN
22982 r=`${PWD_COMMAND}`; export r; \
22983 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22984 $(HOST_EXPORTS) \
d32ab992 22985 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22986 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22987 done; \
d32ab992 22988 echo "Doing mostlyclean in readline" ; \
215c351a 22989 (cd $(HOST_SUBDIR)/readline && \
295f4e42
NN
22990 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22991 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22992 "RANLIB=$${RANLIB}" \
22993 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22994 mostlyclean) \
295f4e42
NN
22995 || exit 1
22996
d32ab992 22997@endif readline
295f4e42 22998
d32ab992
PB
22999.PHONY: maybe-clean-readline clean-readline
23000maybe-clean-readline:
23001@if readline
23002maybe-clean-readline: clean-readline
295f4e42 23003
05750653 23004clean-readline:
f41d6665 23005 @: $(MAKE); $(unstage)
d32ab992 23006 @[ -f ./readline/Makefile ] || exit 0; \
295f4e42
NN
23007 r=`${PWD_COMMAND}`; export r; \
23008 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23009 $(HOST_EXPORTS) \
d32ab992 23010 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23011 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23012 done; \
d32ab992 23013 echo "Doing clean in readline" ; \
215c351a 23014 (cd $(HOST_SUBDIR)/readline && \
295f4e42
NN
23015 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23016 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23017 "RANLIB=$${RANLIB}" \
23018 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 23019 clean) \
295f4e42
NN
23020 || exit 1
23021
d32ab992 23022@endif readline
295f4e42 23023
d32ab992
PB
23024.PHONY: maybe-distclean-readline distclean-readline
23025maybe-distclean-readline:
23026@if readline
23027maybe-distclean-readline: distclean-readline
295f4e42 23028
05750653 23029distclean-readline:
f41d6665 23030 @: $(MAKE); $(unstage)
d32ab992 23031 @[ -f ./readline/Makefile ] || exit 0; \
295f4e42
NN
23032 r=`${PWD_COMMAND}`; export r; \
23033 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23034 $(HOST_EXPORTS) \
d32ab992 23035 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23036 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23037 done; \
d32ab992 23038 echo "Doing distclean in readline" ; \
215c351a 23039 (cd $(HOST_SUBDIR)/readline && \
295f4e42
NN
23040 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23041 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23042 "RANLIB=$${RANLIB}" \
23043 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 23044 distclean) \
295f4e42
NN
23045 || exit 1
23046
d32ab992 23047@endif readline
295f4e42 23048
d32ab992
PB
23049.PHONY: maybe-maintainer-clean-readline maintainer-clean-readline
23050maybe-maintainer-clean-readline:
23051@if readline
23052maybe-maintainer-clean-readline: maintainer-clean-readline
295f4e42 23053
05750653 23054maintainer-clean-readline:
f41d6665 23055 @: $(MAKE); $(unstage)
d32ab992 23056 @[ -f ./readline/Makefile ] || exit 0; \
295f4e42
NN
23057 r=`${PWD_COMMAND}`; export r; \
23058 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23059 $(HOST_EXPORTS) \
d32ab992 23060 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23061 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23062 done; \
d32ab992 23063 echo "Doing maintainer-clean in readline" ; \
215c351a 23064 (cd $(HOST_SUBDIR)/readline && \
295f4e42
NN
23065 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23066 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23067 "RANLIB=$${RANLIB}" \
23068 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 23069 maintainer-clean) \
295f4e42
NN
23070 || exit 1
23071
d32ab992 23072@endif readline
295f4e42
NN
23073
23074
25b42232 23075
d32ab992
PB
23076.PHONY: configure-release maybe-configure-release
23077maybe-configure-release:
3ff3adad
PB
23078@if gcc-bootstrap
23079configure-release: stage_current
23080@endif gcc-bootstrap
d32ab992
PB
23081@if release
23082maybe-configure-release: configure-release
cc11cc9b 23083configure-release:
f41d6665 23084 @: $(MAKE); $(unstage)
cc11cc9b 23085 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 23086 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
23087 test ! -f $(HOST_SUBDIR)/release/Makefile || exit 0; \
23088 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/release ; \
4fc4dd12 23089 $(HOST_EXPORTS) \
25b42232
PB
23090 echo Configuring in $(HOST_SUBDIR)/release; \
23091 cd "$(HOST_SUBDIR)/release" || exit 1; \
4977bab6 23092 case $(srcdir) in \
215c351a
PB
23093 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23094 *) topdir=`echo $(HOST_SUBDIR)/release/ | \
23095 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 23096 esac; \
215c351a
PB
23097 srcdiroption="--srcdir=$${topdir}/release"; \
23098 libsrcdir="$$s/release"; \
4977bab6 23099 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 23100 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 23101 || exit 1
d32ab992 23102@endif release
4977bab6 23103
25b42232
PB
23104
23105
ce406537
PB
23106
23107
d32ab992
PB
23108.PHONY: all-release maybe-all-release
23109maybe-all-release:
3ff3adad
PB
23110@if gcc-bootstrap
23111all-release: stage_current
23112@endif gcc-bootstrap
d32ab992 23113@if release
7e0b5752 23114TARGET-release=all
d32ab992
PB
23115maybe-all-release: all-release
23116all-release: configure-release
f41d6665 23117 @: $(MAKE); $(unstage)
8c90b13a
L
23118 @r=`${PWD_COMMAND}`; export r; \
23119 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23120 $(HOST_EXPORTS) \
215c351a
PB
23121 (cd $(HOST_SUBDIR)/release && \
23122 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-release))
d32ab992 23123@endif release
4977bab6 23124
25b42232 23125
ce406537
PB
23126
23127
d32ab992
PB
23128.PHONY: check-release maybe-check-release
23129maybe-check-release:
23130@if release
23131maybe-check-release: check-release
4977bab6 23132
d32ab992 23133check-release:
4977bab6 23134
d32ab992 23135@endif release
4977bab6 23136
d32ab992
PB
23137.PHONY: install-release maybe-install-release
23138maybe-install-release:
23139@if release
23140maybe-install-release: install-release
7e2dbcef 23141
d32ab992 23142install-release:
4977bab6 23143
d32ab992 23144@endif release
4977bab6 23145
295f4e42
NN
23146# Other targets (info, dvi, etc.)
23147
d32ab992
PB
23148.PHONY: maybe-info-release info-release
23149maybe-info-release:
23150@if release
23151maybe-info-release: info-release
295f4e42 23152
d32ab992 23153info-release: \
05750653 23154 configure-release
f41d6665 23155 @: $(MAKE); $(unstage)
d32ab992 23156 @[ -f ./release/Makefile ] || exit 0; \
8c90b13a
L
23157 r=`${PWD_COMMAND}`; export r; \
23158 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23159 $(HOST_EXPORTS) \
d32ab992 23160 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23161 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23162 done; \
d32ab992 23163 echo "Doing info in release" ; \
215c351a 23164 (cd $(HOST_SUBDIR)/release && \
295f4e42
NN
23165 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23166 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23167 "RANLIB=$${RANLIB}" \
23168 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 23169 info) \
4977bab6
ZW
23170 || exit 1
23171
d32ab992 23172@endif release
295f4e42 23173
d32ab992
PB
23174.PHONY: maybe-dvi-release dvi-release
23175maybe-dvi-release:
23176@if release
23177maybe-dvi-release: dvi-release
295f4e42 23178
d32ab992 23179dvi-release: \
05750653 23180 configure-release
f41d6665 23181 @: $(MAKE); $(unstage)
d32ab992 23182 @[ -f ./release/Makefile ] || exit 0; \
295f4e42 23183 r=`${PWD_COMMAND}`; export r; \
8c90b13a 23184 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23185 $(HOST_EXPORTS) \
d32ab992 23186 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23187 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23188 done; \
d32ab992 23189 echo "Doing dvi in release" ; \
215c351a 23190 (cd $(HOST_SUBDIR)/release && \
295f4e42
NN
23191 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23192 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23193 "RANLIB=$${RANLIB}" \
23194 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 23195 dvi) \
295f4e42 23196 || exit 1
4977bab6 23197
d32ab992 23198@endif release
4977bab6 23199
f87a2b2e
MS
23200.PHONY: maybe-html-release html-release
23201maybe-html-release:
23202@if release
23203maybe-html-release: html-release
23204
23205html-release: \
05750653 23206 configure-release
f41d6665 23207 @: $(MAKE); $(unstage)
f87a2b2e
MS
23208 @[ -f ./release/Makefile ] || exit 0; \
23209 r=`${PWD_COMMAND}`; export r; \
23210 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
23211 $(HOST_EXPORTS) \
23212 for flag in $(EXTRA_HOST_FLAGS) ; do \
23213 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23214 done; \
23215 echo "Doing html in release" ; \
215c351a 23216 (cd $(HOST_SUBDIR)/release && \
f87a2b2e
MS
23217 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23218 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23219 "RANLIB=$${RANLIB}" \
23220 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23221 html) \
23222 || exit 1
23223
23224@endif release
23225
d32ab992
PB
23226.PHONY: maybe-TAGS-release TAGS-release
23227maybe-TAGS-release:
23228@if release
23229maybe-TAGS-release: TAGS-release
295f4e42 23230
d32ab992 23231TAGS-release: \
05750653 23232 configure-release
f41d6665 23233 @: $(MAKE); $(unstage)
d32ab992 23234 @[ -f ./release/Makefile ] || exit 0; \
295f4e42
NN
23235 r=`${PWD_COMMAND}`; export r; \
23236 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23237 $(HOST_EXPORTS) \
d32ab992 23238 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23239 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23240 done; \
d32ab992 23241 echo "Doing TAGS in release" ; \
215c351a 23242 (cd $(HOST_SUBDIR)/release && \
295f4e42
NN
23243 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23244 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23245 "RANLIB=$${RANLIB}" \
23246 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 23247 TAGS) \
295f4e42
NN
23248 || exit 1
23249
d32ab992 23250@endif release
295f4e42 23251
d32ab992
PB
23252.PHONY: maybe-install-info-release install-info-release
23253maybe-install-info-release:
23254@if release
23255maybe-install-info-release: install-info-release
295f4e42 23256
d32ab992
PB
23257install-info-release: \
23258 configure-release \
05750653 23259 info-release
f41d6665 23260 @: $(MAKE); $(unstage)
d32ab992 23261 @[ -f ./release/Makefile ] || exit 0; \
295f4e42
NN
23262 r=`${PWD_COMMAND}`; export r; \
23263 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23264 $(HOST_EXPORTS) \
d32ab992 23265 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23266 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23267 done; \
d32ab992 23268 echo "Doing install-info in release" ; \
215c351a 23269 (cd $(HOST_SUBDIR)/release && \
295f4e42
NN
23270 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23271 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23272 "RANLIB=$${RANLIB}" \
23273 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 23274 install-info) \
295f4e42
NN
23275 || exit 1
23276
d32ab992 23277@endif release
295f4e42 23278
65d6e994
CD
23279.PHONY: maybe-install-html-release install-html-release
23280maybe-install-html-release:
23281@if release
23282maybe-install-html-release: install-html-release
23283
23284install-html-release: \
23285 configure-release \
23286 html-release
23287 @: $(MAKE); $(unstage)
23288 @[ -f ./release/Makefile ] || exit 0; \
23289 r=`${PWD_COMMAND}`; export r; \
23290 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23291 $(HOST_EXPORTS) \
23292 for flag in $(EXTRA_HOST_FLAGS) ; do \
23293 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23294 done; \
23295 echo "Doing install-html in release" ; \
23296 (cd $(HOST_SUBDIR)/release && \
23297 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23298 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23299 "RANLIB=$${RANLIB}" \
23300 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23301 install-html) \
23302 || exit 1
23303
23304@endif release
23305
d32ab992
PB
23306.PHONY: maybe-installcheck-release installcheck-release
23307maybe-installcheck-release:
23308@if release
23309maybe-installcheck-release: installcheck-release
295f4e42 23310
d32ab992 23311installcheck-release: \
05750653 23312 configure-release
f41d6665 23313 @: $(MAKE); $(unstage)
d32ab992 23314 @[ -f ./release/Makefile ] || exit 0; \
295f4e42
NN
23315 r=`${PWD_COMMAND}`; export r; \
23316 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23317 $(HOST_EXPORTS) \
d32ab992 23318 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23319 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23320 done; \
d32ab992 23321 echo "Doing installcheck in release" ; \
215c351a 23322 (cd $(HOST_SUBDIR)/release && \
295f4e42
NN
23323 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23324 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23325 "RANLIB=$${RANLIB}" \
23326 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 23327 installcheck) \
295f4e42
NN
23328 || exit 1
23329
d32ab992 23330@endif release
295f4e42 23331
d32ab992
PB
23332.PHONY: maybe-mostlyclean-release mostlyclean-release
23333maybe-mostlyclean-release:
23334@if release
23335maybe-mostlyclean-release: mostlyclean-release
295f4e42 23336
05750653 23337mostlyclean-release:
f41d6665 23338 @: $(MAKE); $(unstage)
d32ab992 23339 @[ -f ./release/Makefile ] || exit 0; \
295f4e42
NN
23340 r=`${PWD_COMMAND}`; export r; \
23341 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23342 $(HOST_EXPORTS) \
d32ab992 23343 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23344 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23345 done; \
d32ab992 23346 echo "Doing mostlyclean in release" ; \
215c351a 23347 (cd $(HOST_SUBDIR)/release && \
295f4e42
NN
23348 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23349 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23350 "RANLIB=$${RANLIB}" \
23351 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 23352 mostlyclean) \
295f4e42
NN
23353 || exit 1
23354
d32ab992 23355@endif release
295f4e42 23356
d32ab992
PB
23357.PHONY: maybe-clean-release clean-release
23358maybe-clean-release:
23359@if release
23360maybe-clean-release: clean-release
295f4e42 23361
05750653 23362clean-release:
f41d6665 23363 @: $(MAKE); $(unstage)
d32ab992 23364 @[ -f ./release/Makefile ] || exit 0; \
295f4e42
NN
23365 r=`${PWD_COMMAND}`; export r; \
23366 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23367 $(HOST_EXPORTS) \
d32ab992 23368 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23369 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23370 done; \
d32ab992 23371 echo "Doing clean in release" ; \
215c351a 23372 (cd $(HOST_SUBDIR)/release && \
295f4e42
NN
23373 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23374 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23375 "RANLIB=$${RANLIB}" \
23376 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 23377 clean) \
295f4e42
NN
23378 || exit 1
23379
d32ab992 23380@endif release
295f4e42 23381
d32ab992
PB
23382.PHONY: maybe-distclean-release distclean-release
23383maybe-distclean-release:
23384@if release
23385maybe-distclean-release: distclean-release
295f4e42 23386
05750653 23387distclean-release:
f41d6665 23388 @: $(MAKE); $(unstage)
d32ab992 23389 @[ -f ./release/Makefile ] || exit 0; \
295f4e42
NN
23390 r=`${PWD_COMMAND}`; export r; \
23391 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23392 $(HOST_EXPORTS) \
d32ab992 23393 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23394 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23395 done; \
d32ab992 23396 echo "Doing distclean in release" ; \
215c351a 23397 (cd $(HOST_SUBDIR)/release && \
295f4e42
NN
23398 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23399 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23400 "RANLIB=$${RANLIB}" \
23401 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 23402 distclean) \
295f4e42 23403 || exit 1
4977bab6 23404
d32ab992 23405@endif release
4977bab6 23406
d32ab992
PB
23407.PHONY: maybe-maintainer-clean-release maintainer-clean-release
23408maybe-maintainer-clean-release:
23409@if release
23410maybe-maintainer-clean-release: maintainer-clean-release
7e2dbcef 23411
05750653 23412maintainer-clean-release:
f41d6665 23413 @: $(MAKE); $(unstage)
d32ab992 23414 @[ -f ./release/Makefile ] || exit 0; \
295f4e42 23415 r=`${PWD_COMMAND}`; export r; \
8c90b13a 23416 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23417 $(HOST_EXPORTS) \
d32ab992 23418 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23419 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23420 done; \
d32ab992 23421 echo "Doing maintainer-clean in release" ; \
215c351a 23422 (cd $(HOST_SUBDIR)/release && \
295f4e42
NN
23423 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23424 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23425 "RANLIB=$${RANLIB}" \
23426 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 23427 maintainer-clean) \
295f4e42 23428 || exit 1
4977bab6 23429
d32ab992 23430@endif release
4977bab6 23431
295f4e42 23432
25b42232 23433
d32ab992
PB
23434.PHONY: configure-recode maybe-configure-recode
23435maybe-configure-recode:
3ff3adad
PB
23436@if gcc-bootstrap
23437configure-recode: stage_current
23438@endif gcc-bootstrap
d32ab992
PB
23439@if recode
23440maybe-configure-recode: configure-recode
cc11cc9b 23441configure-recode:
f41d6665 23442 @: $(MAKE); $(unstage)
cc11cc9b 23443 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 23444 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
23445 test ! -f $(HOST_SUBDIR)/recode/Makefile || exit 0; \
23446 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/recode ; \
4fc4dd12 23447 $(HOST_EXPORTS) \
25b42232
PB
23448 echo Configuring in $(HOST_SUBDIR)/recode; \
23449 cd "$(HOST_SUBDIR)/recode" || exit 1; \
4977bab6 23450 case $(srcdir) in \
215c351a
PB
23451 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23452 *) topdir=`echo $(HOST_SUBDIR)/recode/ | \
23453 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 23454 esac; \
215c351a
PB
23455 srcdiroption="--srcdir=$${topdir}/recode"; \
23456 libsrcdir="$$s/recode"; \
4977bab6 23457 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 23458 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 23459 || exit 1
d32ab992 23460@endif recode
4977bab6 23461
25b42232
PB
23462
23463
ce406537
PB
23464
23465
d32ab992
PB
23466.PHONY: all-recode maybe-all-recode
23467maybe-all-recode:
3ff3adad
PB
23468@if gcc-bootstrap
23469all-recode: stage_current
23470@endif gcc-bootstrap
d32ab992 23471@if recode
7e0b5752 23472TARGET-recode=all
d32ab992
PB
23473maybe-all-recode: all-recode
23474all-recode: configure-recode
f41d6665 23475 @: $(MAKE); $(unstage)
8c90b13a
L
23476 @r=`${PWD_COMMAND}`; export r; \
23477 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23478 $(HOST_EXPORTS) \
215c351a
PB
23479 (cd $(HOST_SUBDIR)/recode && \
23480 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-recode))
d32ab992 23481@endif recode
4977bab6 23482
25b42232 23483
ce406537
PB
23484
23485
d32ab992
PB
23486.PHONY: check-recode maybe-check-recode
23487maybe-check-recode:
23488@if recode
23489maybe-check-recode: check-recode
4977bab6 23490
d32ab992 23491check-recode:
f41d6665 23492 @: $(MAKE); $(unstage)
8c90b13a
L
23493 @r=`${PWD_COMMAND}`; export r; \
23494 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23495 $(HOST_EXPORTS) \
215c351a
PB
23496 (cd $(HOST_SUBDIR)/recode && \
23497 $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6 23498
d32ab992 23499@endif recode
4977bab6 23500
d32ab992
PB
23501.PHONY: install-recode maybe-install-recode
23502maybe-install-recode:
23503@if recode
23504maybe-install-recode: install-recode
7e2dbcef 23505
d32ab992 23506install-recode: installdirs
f41d6665 23507 @: $(MAKE); $(unstage)
8c90b13a
L
23508 @r=`${PWD_COMMAND}`; export r; \
23509 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23510 $(HOST_EXPORTS) \
215c351a 23511 (cd $(HOST_SUBDIR)/recode && \
ace9ac7b 23512 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 23513
d32ab992 23514@endif recode
295f4e42
NN
23515
23516# Other targets (info, dvi, etc.)
23517
d32ab992
PB
23518.PHONY: maybe-info-recode info-recode
23519maybe-info-recode:
23520@if recode
23521maybe-info-recode: info-recode
295f4e42 23522
d32ab992 23523info-recode: \
05750653 23524 configure-recode
f41d6665 23525 @: $(MAKE); $(unstage)
d32ab992 23526 @[ -f ./recode/Makefile ] || exit 0; \
295f4e42
NN
23527 r=`${PWD_COMMAND}`; export r; \
23528 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23529 $(HOST_EXPORTS) \
d32ab992 23530 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23531 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23532 done; \
d32ab992 23533 echo "Doing info in recode" ; \
215c351a 23534 (cd $(HOST_SUBDIR)/recode && \
295f4e42
NN
23535 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23536 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23537 "RANLIB=$${RANLIB}" \
23538 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 23539 info) \
295f4e42
NN
23540 || exit 1
23541
d32ab992 23542@endif recode
295f4e42 23543
d32ab992
PB
23544.PHONY: maybe-dvi-recode dvi-recode
23545maybe-dvi-recode:
23546@if recode
23547maybe-dvi-recode: dvi-recode
295f4e42 23548
d32ab992 23549dvi-recode: \
05750653 23550 configure-recode
f41d6665 23551 @: $(MAKE); $(unstage)
d32ab992 23552 @[ -f ./recode/Makefile ] || exit 0; \
295f4e42
NN
23553 r=`${PWD_COMMAND}`; export r; \
23554 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23555 $(HOST_EXPORTS) \
d32ab992 23556 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23557 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23558 done; \
d32ab992 23559 echo "Doing dvi in recode" ; \
215c351a 23560 (cd $(HOST_SUBDIR)/recode && \
295f4e42
NN
23561 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23562 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23563 "RANLIB=$${RANLIB}" \
23564 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 23565 dvi) \
295f4e42
NN
23566 || exit 1
23567
d32ab992 23568@endif recode
295f4e42 23569
f87a2b2e
MS
23570.PHONY: maybe-html-recode html-recode
23571maybe-html-recode:
23572@if recode
23573maybe-html-recode: html-recode
23574
23575html-recode: \
05750653 23576 configure-recode
f41d6665 23577 @: $(MAKE); $(unstage)
f87a2b2e
MS
23578 @[ -f ./recode/Makefile ] || exit 0; \
23579 r=`${PWD_COMMAND}`; export r; \
23580 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
23581 $(HOST_EXPORTS) \
23582 for flag in $(EXTRA_HOST_FLAGS) ; do \
23583 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23584 done; \
23585 echo "Doing html in recode" ; \
215c351a 23586 (cd $(HOST_SUBDIR)/recode && \
f87a2b2e
MS
23587 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23588 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23589 "RANLIB=$${RANLIB}" \
23590 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23591 html) \
23592 || exit 1
23593
23594@endif recode
23595
d32ab992
PB
23596.PHONY: maybe-TAGS-recode TAGS-recode
23597maybe-TAGS-recode:
23598@if recode
23599maybe-TAGS-recode: TAGS-recode
295f4e42 23600
d32ab992 23601TAGS-recode: \
05750653 23602 configure-recode
f41d6665 23603 @: $(MAKE); $(unstage)
d32ab992 23604 @[ -f ./recode/Makefile ] || exit 0; \
295f4e42
NN
23605 r=`${PWD_COMMAND}`; export r; \
23606 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23607 $(HOST_EXPORTS) \
d32ab992 23608 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23609 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23610 done; \
d32ab992 23611 echo "Doing TAGS in recode" ; \
215c351a 23612 (cd $(HOST_SUBDIR)/recode && \
295f4e42
NN
23613 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23614 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23615 "RANLIB=$${RANLIB}" \
23616 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 23617 TAGS) \
295f4e42
NN
23618 || exit 1
23619
d32ab992 23620@endif recode
295f4e42 23621
d32ab992
PB
23622.PHONY: maybe-install-info-recode install-info-recode
23623maybe-install-info-recode:
23624@if recode
23625maybe-install-info-recode: install-info-recode
295f4e42 23626
d32ab992
PB
23627install-info-recode: \
23628 configure-recode \
05750653 23629 info-recode
f41d6665 23630 @: $(MAKE); $(unstage)
d32ab992 23631 @[ -f ./recode/Makefile ] || exit 0; \
295f4e42
NN
23632 r=`${PWD_COMMAND}`; export r; \
23633 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23634 $(HOST_EXPORTS) \
d32ab992 23635 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23636 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23637 done; \
d32ab992 23638 echo "Doing install-info in recode" ; \
215c351a 23639 (cd $(HOST_SUBDIR)/recode && \
295f4e42
NN
23640 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23641 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23642 "RANLIB=$${RANLIB}" \
23643 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 23644 install-info) \
295f4e42
NN
23645 || exit 1
23646
d32ab992 23647@endif recode
295f4e42 23648
65d6e994
CD
23649.PHONY: maybe-install-html-recode install-html-recode
23650maybe-install-html-recode:
23651@if recode
23652maybe-install-html-recode: install-html-recode
23653
23654install-html-recode: \
23655 configure-recode \
23656 html-recode
23657 @: $(MAKE); $(unstage)
23658 @[ -f ./recode/Makefile ] || exit 0; \
23659 r=`${PWD_COMMAND}`; export r; \
23660 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23661 $(HOST_EXPORTS) \
23662 for flag in $(EXTRA_HOST_FLAGS) ; do \
23663 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23664 done; \
23665 echo "Doing install-html in recode" ; \
23666 (cd $(HOST_SUBDIR)/recode && \
23667 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23668 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23669 "RANLIB=$${RANLIB}" \
23670 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23671 install-html) \
23672 || exit 1
23673
23674@endif recode
23675
d32ab992
PB
23676.PHONY: maybe-installcheck-recode installcheck-recode
23677maybe-installcheck-recode:
23678@if recode
23679maybe-installcheck-recode: installcheck-recode
295f4e42 23680
d32ab992 23681installcheck-recode: \
05750653 23682 configure-recode
f41d6665 23683 @: $(MAKE); $(unstage)
d32ab992 23684 @[ -f ./recode/Makefile ] || exit 0; \
295f4e42
NN
23685 r=`${PWD_COMMAND}`; export r; \
23686 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23687 $(HOST_EXPORTS) \
d32ab992 23688 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23689 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23690 done; \
d32ab992 23691 echo "Doing installcheck in recode" ; \
215c351a 23692 (cd $(HOST_SUBDIR)/recode && \
295f4e42
NN
23693 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23694 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23695 "RANLIB=$${RANLIB}" \
23696 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 23697 installcheck) \
295f4e42
NN
23698 || exit 1
23699
d32ab992 23700@endif recode
295f4e42 23701
d32ab992
PB
23702.PHONY: maybe-mostlyclean-recode mostlyclean-recode
23703maybe-mostlyclean-recode:
23704@if recode
23705maybe-mostlyclean-recode: mostlyclean-recode
295f4e42 23706
05750653 23707mostlyclean-recode:
f41d6665 23708 @: $(MAKE); $(unstage)
d32ab992 23709 @[ -f ./recode/Makefile ] || exit 0; \
295f4e42
NN
23710 r=`${PWD_COMMAND}`; export r; \
23711 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23712 $(HOST_EXPORTS) \
d32ab992 23713 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23714 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23715 done; \
d32ab992 23716 echo "Doing mostlyclean in recode" ; \
215c351a 23717 (cd $(HOST_SUBDIR)/recode && \
295f4e42
NN
23718 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23719 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23720 "RANLIB=$${RANLIB}" \
23721 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 23722 mostlyclean) \
295f4e42
NN
23723 || exit 1
23724
d32ab992 23725@endif recode
295f4e42 23726
d32ab992
PB
23727.PHONY: maybe-clean-recode clean-recode
23728maybe-clean-recode:
23729@if recode
23730maybe-clean-recode: clean-recode
295f4e42 23731
05750653 23732clean-recode:
f41d6665 23733 @: $(MAKE); $(unstage)
d32ab992 23734 @[ -f ./recode/Makefile ] || exit 0; \
295f4e42
NN
23735 r=`${PWD_COMMAND}`; export r; \
23736 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23737 $(HOST_EXPORTS) \
d32ab992 23738 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23739 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23740 done; \
d32ab992 23741 echo "Doing clean in recode" ; \
215c351a 23742 (cd $(HOST_SUBDIR)/recode && \
295f4e42
NN
23743 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23744 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23745 "RANLIB=$${RANLIB}" \
23746 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 23747 clean) \
295f4e42
NN
23748 || exit 1
23749
d32ab992 23750@endif recode
295f4e42 23751
d32ab992
PB
23752.PHONY: maybe-distclean-recode distclean-recode
23753maybe-distclean-recode:
23754@if recode
23755maybe-distclean-recode: distclean-recode
295f4e42 23756
05750653 23757distclean-recode:
f41d6665 23758 @: $(MAKE); $(unstage)
d32ab992 23759 @[ -f ./recode/Makefile ] || exit 0; \
295f4e42
NN
23760 r=`${PWD_COMMAND}`; export r; \
23761 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23762 $(HOST_EXPORTS) \
d32ab992 23763 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23764 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23765 done; \
d32ab992 23766 echo "Doing distclean in recode" ; \
215c351a 23767 (cd $(HOST_SUBDIR)/recode && \
295f4e42
NN
23768 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23769 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23770 "RANLIB=$${RANLIB}" \
23771 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 23772 distclean) \
295f4e42
NN
23773 || exit 1
23774
d32ab992 23775@endif recode
295f4e42 23776
d32ab992
PB
23777.PHONY: maybe-maintainer-clean-recode maintainer-clean-recode
23778maybe-maintainer-clean-recode:
23779@if recode
23780maybe-maintainer-clean-recode: maintainer-clean-recode
295f4e42 23781
05750653 23782maintainer-clean-recode:
f41d6665 23783 @: $(MAKE); $(unstage)
d32ab992 23784 @[ -f ./recode/Makefile ] || exit 0; \
295f4e42
NN
23785 r=`${PWD_COMMAND}`; export r; \
23786 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23787 $(HOST_EXPORTS) \
d32ab992 23788 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23789 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23790 done; \
d32ab992 23791 echo "Doing maintainer-clean in recode" ; \
215c351a 23792 (cd $(HOST_SUBDIR)/recode && \
295f4e42
NN
23793 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23794 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23795 "RANLIB=$${RANLIB}" \
23796 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 23797 maintainer-clean) \
295f4e42 23798 || exit 1
4977bab6 23799
d32ab992 23800@endif recode
4977bab6 23801
295f4e42 23802
25b42232 23803
d32ab992
PB
23804.PHONY: configure-sed maybe-configure-sed
23805maybe-configure-sed:
3ff3adad
PB
23806@if gcc-bootstrap
23807configure-sed: stage_current
23808@endif gcc-bootstrap
d32ab992
PB
23809@if sed
23810maybe-configure-sed: configure-sed
cc11cc9b 23811configure-sed:
f41d6665 23812 @: $(MAKE); $(unstage)
cc11cc9b 23813 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 23814 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
23815 test ! -f $(HOST_SUBDIR)/sed/Makefile || exit 0; \
23816 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/sed ; \
4fc4dd12 23817 $(HOST_EXPORTS) \
25b42232
PB
23818 echo Configuring in $(HOST_SUBDIR)/sed; \
23819 cd "$(HOST_SUBDIR)/sed" || exit 1; \
4977bab6 23820 case $(srcdir) in \
215c351a
PB
23821 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23822 *) topdir=`echo $(HOST_SUBDIR)/sed/ | \
23823 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 23824 esac; \
215c351a
PB
23825 srcdiroption="--srcdir=$${topdir}/sed"; \
23826 libsrcdir="$$s/sed"; \
4977bab6 23827 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 23828 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 23829 || exit 1
d32ab992 23830@endif sed
4977bab6 23831
25b42232
PB
23832
23833
ce406537
PB
23834
23835
d32ab992
PB
23836.PHONY: all-sed maybe-all-sed
23837maybe-all-sed:
3ff3adad
PB
23838@if gcc-bootstrap
23839all-sed: stage_current
23840@endif gcc-bootstrap
d32ab992 23841@if sed
7e0b5752 23842TARGET-sed=all
d32ab992
PB
23843maybe-all-sed: all-sed
23844all-sed: configure-sed
f41d6665 23845 @: $(MAKE); $(unstage)
8c90b13a
L
23846 @r=`${PWD_COMMAND}`; export r; \
23847 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23848 $(HOST_EXPORTS) \
215c351a
PB
23849 (cd $(HOST_SUBDIR)/sed && \
23850 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-sed))
d32ab992 23851@endif sed
4977bab6 23852
25b42232 23853
ce406537
PB
23854
23855
d32ab992
PB
23856.PHONY: check-sed maybe-check-sed
23857maybe-check-sed:
23858@if sed
23859maybe-check-sed: check-sed
4977bab6 23860
d32ab992 23861check-sed:
f41d6665 23862 @: $(MAKE); $(unstage)
8c90b13a
L
23863 @r=`${PWD_COMMAND}`; export r; \
23864 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23865 $(HOST_EXPORTS) \
215c351a
PB
23866 (cd $(HOST_SUBDIR)/sed && \
23867 $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6 23868
d32ab992 23869@endif sed
4977bab6 23870
d32ab992
PB
23871.PHONY: install-sed maybe-install-sed
23872maybe-install-sed:
23873@if sed
23874maybe-install-sed: install-sed
295f4e42 23875
d32ab992 23876install-sed: installdirs
f41d6665 23877 @: $(MAKE); $(unstage)
295f4e42
NN
23878 @r=`${PWD_COMMAND}`; export r; \
23879 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23880 $(HOST_EXPORTS) \
215c351a 23881 (cd $(HOST_SUBDIR)/sed && \
ace9ac7b 23882 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 23883
d32ab992 23884@endif sed
295f4e42
NN
23885
23886# Other targets (info, dvi, etc.)
23887
d32ab992
PB
23888.PHONY: maybe-info-sed info-sed
23889maybe-info-sed:
23890@if sed
23891maybe-info-sed: info-sed
295f4e42 23892
d32ab992 23893info-sed: \
05750653 23894 configure-sed
f41d6665 23895 @: $(MAKE); $(unstage)
d32ab992 23896 @[ -f ./sed/Makefile ] || exit 0; \
295f4e42
NN
23897 r=`${PWD_COMMAND}`; export r; \
23898 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23899 $(HOST_EXPORTS) \
d32ab992 23900 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23901 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23902 done; \
f87a2b2e 23903 echo "Doing info in sed" ; \
215c351a 23904 (cd $(HOST_SUBDIR)/sed && \
f87a2b2e
MS
23905 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23906 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23907 "RANLIB=$${RANLIB}" \
23908 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23909 info) \
23910 || exit 1
23911
23912@endif sed
23913
23914.PHONY: maybe-dvi-sed dvi-sed
23915maybe-dvi-sed:
23916@if sed
23917maybe-dvi-sed: dvi-sed
23918
23919dvi-sed: \
05750653 23920 configure-sed
f41d6665 23921 @: $(MAKE); $(unstage)
f87a2b2e
MS
23922 @[ -f ./sed/Makefile ] || exit 0; \
23923 r=`${PWD_COMMAND}`; export r; \
23924 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
23925 $(HOST_EXPORTS) \
23926 for flag in $(EXTRA_HOST_FLAGS) ; do \
23927 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23928 done; \
23929 echo "Doing dvi in sed" ; \
215c351a 23930 (cd $(HOST_SUBDIR)/sed && \
295f4e42
NN
23931 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23932 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23933 "RANLIB=$${RANLIB}" \
23934 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
f87a2b2e 23935 dvi) \
295f4e42
NN
23936 || exit 1
23937
d32ab992 23938@endif sed
295f4e42 23939
f87a2b2e
MS
23940.PHONY: maybe-html-sed html-sed
23941maybe-html-sed:
d32ab992 23942@if sed
f87a2b2e 23943maybe-html-sed: html-sed
295f4e42 23944
f87a2b2e 23945html-sed: \
05750653 23946 configure-sed
f41d6665 23947 @: $(MAKE); $(unstage)
d32ab992 23948 @[ -f ./sed/Makefile ] || exit 0; \
295f4e42
NN
23949 r=`${PWD_COMMAND}`; export r; \
23950 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23951 $(HOST_EXPORTS) \
d32ab992 23952 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23953 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23954 done; \
f87a2b2e 23955 echo "Doing html in sed" ; \
215c351a 23956 (cd $(HOST_SUBDIR)/sed && \
295f4e42
NN
23957 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23958 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23959 "RANLIB=$${RANLIB}" \
23960 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
f87a2b2e 23961 html) \
295f4e42
NN
23962 || exit 1
23963
d32ab992 23964@endif sed
295f4e42 23965
d32ab992
PB
23966.PHONY: maybe-TAGS-sed TAGS-sed
23967maybe-TAGS-sed:
23968@if sed
23969maybe-TAGS-sed: TAGS-sed
295f4e42 23970
d32ab992 23971TAGS-sed: \
05750653 23972 configure-sed
f41d6665 23973 @: $(MAKE); $(unstage)
d32ab992 23974 @[ -f ./sed/Makefile ] || exit 0; \
295f4e42
NN
23975 r=`${PWD_COMMAND}`; export r; \
23976 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23977 $(HOST_EXPORTS) \
d32ab992 23978 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23979 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23980 done; \
d32ab992 23981 echo "Doing TAGS in sed" ; \
215c351a 23982 (cd $(HOST_SUBDIR)/sed && \
295f4e42
NN
23983 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23984 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23985 "RANLIB=$${RANLIB}" \
23986 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 23987 TAGS) \
295f4e42
NN
23988 || exit 1
23989
d32ab992 23990@endif sed
295f4e42 23991
d32ab992
PB
23992.PHONY: maybe-install-info-sed install-info-sed
23993maybe-install-info-sed:
23994@if sed
23995maybe-install-info-sed: install-info-sed
295f4e42 23996
d32ab992
PB
23997install-info-sed: \
23998 configure-sed \
05750653 23999 info-sed
f41d6665 24000 @: $(MAKE); $(unstage)
d32ab992 24001 @[ -f ./sed/Makefile ] || exit 0; \
295f4e42
NN
24002 r=`${PWD_COMMAND}`; export r; \
24003 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24004 $(HOST_EXPORTS) \
d32ab992 24005 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24006 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24007 done; \
d32ab992 24008 echo "Doing install-info in sed" ; \
215c351a 24009 (cd $(HOST_SUBDIR)/sed && \
295f4e42
NN
24010 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24011 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24012 "RANLIB=$${RANLIB}" \
24013 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24014 install-info) \
295f4e42
NN
24015 || exit 1
24016
d32ab992 24017@endif sed
295f4e42 24018
65d6e994
CD
24019.PHONY: maybe-install-html-sed install-html-sed
24020maybe-install-html-sed:
24021@if sed
24022maybe-install-html-sed: install-html-sed
24023
24024install-html-sed: \
24025 configure-sed \
24026 html-sed
24027 @: $(MAKE); $(unstage)
24028 @[ -f ./sed/Makefile ] || exit 0; \
24029 r=`${PWD_COMMAND}`; export r; \
24030 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24031 $(HOST_EXPORTS) \
24032 for flag in $(EXTRA_HOST_FLAGS) ; do \
24033 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24034 done; \
24035 echo "Doing install-html in sed" ; \
24036 (cd $(HOST_SUBDIR)/sed && \
24037 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24038 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24039 "RANLIB=$${RANLIB}" \
24040 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
24041 install-html) \
24042 || exit 1
24043
24044@endif sed
24045
d32ab992
PB
24046.PHONY: maybe-installcheck-sed installcheck-sed
24047maybe-installcheck-sed:
24048@if sed
24049maybe-installcheck-sed: installcheck-sed
295f4e42 24050
d32ab992 24051installcheck-sed: \
05750653 24052 configure-sed
f41d6665 24053 @: $(MAKE); $(unstage)
d32ab992 24054 @[ -f ./sed/Makefile ] || exit 0; \
295f4e42
NN
24055 r=`${PWD_COMMAND}`; export r; \
24056 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24057 $(HOST_EXPORTS) \
d32ab992 24058 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24059 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24060 done; \
d32ab992 24061 echo "Doing installcheck in sed" ; \
215c351a 24062 (cd $(HOST_SUBDIR)/sed && \
295f4e42
NN
24063 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24064 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24065 "RANLIB=$${RANLIB}" \
24066 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24067 installcheck) \
295f4e42
NN
24068 || exit 1
24069
d32ab992 24070@endif sed
295f4e42 24071
d32ab992
PB
24072.PHONY: maybe-mostlyclean-sed mostlyclean-sed
24073maybe-mostlyclean-sed:
24074@if sed
24075maybe-mostlyclean-sed: mostlyclean-sed
295f4e42 24076
05750653 24077mostlyclean-sed:
f41d6665 24078 @: $(MAKE); $(unstage)
d32ab992 24079 @[ -f ./sed/Makefile ] || exit 0; \
295f4e42
NN
24080 r=`${PWD_COMMAND}`; export r; \
24081 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24082 $(HOST_EXPORTS) \
d32ab992 24083 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24084 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24085 done; \
d32ab992 24086 echo "Doing mostlyclean in sed" ; \
215c351a 24087 (cd $(HOST_SUBDIR)/sed && \
295f4e42
NN
24088 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24089 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24090 "RANLIB=$${RANLIB}" \
24091 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24092 mostlyclean) \
295f4e42
NN
24093 || exit 1
24094
d32ab992 24095@endif sed
295f4e42 24096
d32ab992
PB
24097.PHONY: maybe-clean-sed clean-sed
24098maybe-clean-sed:
24099@if sed
24100maybe-clean-sed: clean-sed
295f4e42 24101
05750653 24102clean-sed:
f41d6665 24103 @: $(MAKE); $(unstage)
d32ab992 24104 @[ -f ./sed/Makefile ] || exit 0; \
295f4e42
NN
24105 r=`${PWD_COMMAND}`; export r; \
24106 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24107 $(HOST_EXPORTS) \
d32ab992 24108 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24109 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24110 done; \
d32ab992 24111 echo "Doing clean in sed" ; \
215c351a 24112 (cd $(HOST_SUBDIR)/sed && \
295f4e42
NN
24113 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24114 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24115 "RANLIB=$${RANLIB}" \
24116 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24117 clean) \
295f4e42
NN
24118 || exit 1
24119
d32ab992 24120@endif sed
295f4e42 24121
d32ab992
PB
24122.PHONY: maybe-distclean-sed distclean-sed
24123maybe-distclean-sed:
24124@if sed
24125maybe-distclean-sed: distclean-sed
295f4e42 24126
05750653 24127distclean-sed:
f41d6665 24128 @: $(MAKE); $(unstage)
d32ab992 24129 @[ -f ./sed/Makefile ] || exit 0; \
295f4e42
NN
24130 r=`${PWD_COMMAND}`; export r; \
24131 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24132 $(HOST_EXPORTS) \
d32ab992 24133 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24134 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24135 done; \
d32ab992 24136 echo "Doing distclean in sed" ; \
215c351a 24137 (cd $(HOST_SUBDIR)/sed && \
295f4e42
NN
24138 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24139 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24140 "RANLIB=$${RANLIB}" \
24141 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24142 distclean) \
295f4e42
NN
24143 || exit 1
24144
d32ab992 24145@endif sed
295f4e42 24146
d32ab992
PB
24147.PHONY: maybe-maintainer-clean-sed maintainer-clean-sed
24148maybe-maintainer-clean-sed:
24149@if sed
24150maybe-maintainer-clean-sed: maintainer-clean-sed
295f4e42 24151
05750653 24152maintainer-clean-sed:
f41d6665 24153 @: $(MAKE); $(unstage)
d32ab992 24154 @[ -f ./sed/Makefile ] || exit 0; \
295f4e42
NN
24155 r=`${PWD_COMMAND}`; export r; \
24156 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24157 $(HOST_EXPORTS) \
d32ab992 24158 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24159 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24160 done; \
d32ab992 24161 echo "Doing maintainer-clean in sed" ; \
215c351a 24162 (cd $(HOST_SUBDIR)/sed && \
295f4e42
NN
24163 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24164 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24165 "RANLIB=$${RANLIB}" \
24166 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24167 maintainer-clean) \
295f4e42 24168 || exit 1
7e2dbcef 24169
d32ab992 24170@endif sed
4977bab6
ZW
24171
24172
25b42232 24173
d32ab992
PB
24174.PHONY: configure-send-pr maybe-configure-send-pr
24175maybe-configure-send-pr:
3ff3adad
PB
24176@if gcc-bootstrap
24177configure-send-pr: stage_current
24178@endif gcc-bootstrap
d32ab992
PB
24179@if send-pr
24180maybe-configure-send-pr: configure-send-pr
cc11cc9b 24181configure-send-pr:
f41d6665 24182 @: $(MAKE); $(unstage)
cc11cc9b 24183 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 24184 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
24185 test ! -f $(HOST_SUBDIR)/send-pr/Makefile || exit 0; \
24186 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/send-pr ; \
4fc4dd12 24187 $(HOST_EXPORTS) \
25b42232
PB
24188 echo Configuring in $(HOST_SUBDIR)/send-pr; \
24189 cd "$(HOST_SUBDIR)/send-pr" || exit 1; \
4977bab6 24190 case $(srcdir) in \
215c351a
PB
24191 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24192 *) topdir=`echo $(HOST_SUBDIR)/send-pr/ | \
24193 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 24194 esac; \
215c351a
PB
24195 srcdiroption="--srcdir=$${topdir}/send-pr"; \
24196 libsrcdir="$$s/send-pr"; \
4977bab6 24197 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 24198 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 24199 || exit 1
d32ab992 24200@endif send-pr
4977bab6 24201
25b42232
PB
24202
24203
ce406537
PB
24204
24205
d32ab992
PB
24206.PHONY: all-send-pr maybe-all-send-pr
24207maybe-all-send-pr:
3ff3adad
PB
24208@if gcc-bootstrap
24209all-send-pr: stage_current
24210@endif gcc-bootstrap
d32ab992 24211@if send-pr
7e0b5752 24212TARGET-send-pr=all
d32ab992
PB
24213maybe-all-send-pr: all-send-pr
24214all-send-pr: configure-send-pr
f41d6665 24215 @: $(MAKE); $(unstage)
8c90b13a
L
24216 @r=`${PWD_COMMAND}`; export r; \
24217 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24218 $(HOST_EXPORTS) \
215c351a
PB
24219 (cd $(HOST_SUBDIR)/send-pr && \
24220 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-send-pr))
d32ab992 24221@endif send-pr
4977bab6 24222
25b42232 24223
ce406537
PB
24224
24225
d32ab992
PB
24226.PHONY: check-send-pr maybe-check-send-pr
24227maybe-check-send-pr:
24228@if send-pr
24229maybe-check-send-pr: check-send-pr
4977bab6 24230
d32ab992 24231check-send-pr:
f41d6665 24232 @: $(MAKE); $(unstage)
8c90b13a
L
24233 @r=`${PWD_COMMAND}`; export r; \
24234 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24235 $(HOST_EXPORTS) \
215c351a
PB
24236 (cd $(HOST_SUBDIR)/send-pr && \
24237 $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6 24238
d32ab992 24239@endif send-pr
4977bab6 24240
d32ab992
PB
24241.PHONY: install-send-pr maybe-install-send-pr
24242maybe-install-send-pr:
24243@if send-pr
24244maybe-install-send-pr: install-send-pr
7e2dbcef 24245
d32ab992 24246install-send-pr: installdirs
f41d6665 24247 @: $(MAKE); $(unstage)
8c90b13a
L
24248 @r=`${PWD_COMMAND}`; export r; \
24249 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24250 $(HOST_EXPORTS) \
215c351a 24251 (cd $(HOST_SUBDIR)/send-pr && \
ace9ac7b 24252 $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6 24253
d32ab992 24254@endif send-pr
4977bab6 24255
295f4e42
NN
24256# Other targets (info, dvi, etc.)
24257
d32ab992
PB
24258.PHONY: maybe-info-send-pr info-send-pr
24259maybe-info-send-pr:
24260@if send-pr
24261maybe-info-send-pr: info-send-pr
295f4e42 24262
d32ab992 24263info-send-pr: \
05750653 24264 configure-send-pr
f41d6665 24265 @: $(MAKE); $(unstage)
d32ab992 24266 @[ -f ./send-pr/Makefile ] || exit 0; \
295f4e42
NN
24267 r=`${PWD_COMMAND}`; export r; \
24268 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24269 $(HOST_EXPORTS) \
d32ab992 24270 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24271 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24272 done; \
d32ab992 24273 echo "Doing info in send-pr" ; \
215c351a 24274 (cd $(HOST_SUBDIR)/send-pr && \
295f4e42
NN
24275 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24276 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24277 "RANLIB=$${RANLIB}" \
24278 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24279 info) \
295f4e42
NN
24280 || exit 1
24281
d32ab992 24282@endif send-pr
295f4e42 24283
d32ab992
PB
24284.PHONY: maybe-dvi-send-pr dvi-send-pr
24285maybe-dvi-send-pr:
24286@if send-pr
24287maybe-dvi-send-pr: dvi-send-pr
295f4e42 24288
d32ab992 24289dvi-send-pr: \
05750653 24290 configure-send-pr
f41d6665 24291 @: $(MAKE); $(unstage)
d32ab992 24292 @[ -f ./send-pr/Makefile ] || exit 0; \
295f4e42
NN
24293 r=`${PWD_COMMAND}`; export r; \
24294 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24295 $(HOST_EXPORTS) \
d32ab992 24296 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24297 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24298 done; \
d32ab992 24299 echo "Doing dvi in send-pr" ; \
215c351a 24300 (cd $(HOST_SUBDIR)/send-pr && \
295f4e42
NN
24301 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24302 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24303 "RANLIB=$${RANLIB}" \
24304 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24305 dvi) \
295f4e42
NN
24306 || exit 1
24307
d32ab992 24308@endif send-pr
295f4e42 24309
f87a2b2e
MS
24310.PHONY: maybe-html-send-pr html-send-pr
24311maybe-html-send-pr:
24312@if send-pr
24313maybe-html-send-pr: html-send-pr
24314
24315html-send-pr: \
05750653 24316 configure-send-pr
f41d6665 24317 @: $(MAKE); $(unstage)
f87a2b2e
MS
24318 @[ -f ./send-pr/Makefile ] || exit 0; \
24319 r=`${PWD_COMMAND}`; export r; \
24320 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
24321 $(HOST_EXPORTS) \
24322 for flag in $(EXTRA_HOST_FLAGS) ; do \
24323 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24324 done; \
24325 echo "Doing html in send-pr" ; \
215c351a 24326 (cd $(HOST_SUBDIR)/send-pr && \
f87a2b2e
MS
24327 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24328 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24329 "RANLIB=$${RANLIB}" \
24330 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
24331 html) \
24332 || exit 1
24333
24334@endif send-pr
24335
d32ab992
PB
24336.PHONY: maybe-TAGS-send-pr TAGS-send-pr
24337maybe-TAGS-send-pr:
24338@if send-pr
24339maybe-TAGS-send-pr: TAGS-send-pr
295f4e42 24340
d32ab992 24341TAGS-send-pr: \
05750653 24342 configure-send-pr
f41d6665 24343 @: $(MAKE); $(unstage)
d32ab992 24344 @[ -f ./send-pr/Makefile ] || exit 0; \
295f4e42
NN
24345 r=`${PWD_COMMAND}`; export r; \
24346 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24347 $(HOST_EXPORTS) \
d32ab992 24348 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24349 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24350 done; \
d32ab992 24351 echo "Doing TAGS in send-pr" ; \
215c351a 24352 (cd $(HOST_SUBDIR)/send-pr && \
295f4e42
NN
24353 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24354 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24355 "RANLIB=$${RANLIB}" \
24356 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24357 TAGS) \
295f4e42
NN
24358 || exit 1
24359
d32ab992 24360@endif send-pr
295f4e42 24361
d32ab992
PB
24362.PHONY: maybe-install-info-send-pr install-info-send-pr
24363maybe-install-info-send-pr:
24364@if send-pr
24365maybe-install-info-send-pr: install-info-send-pr
295f4e42 24366
d32ab992
PB
24367install-info-send-pr: \
24368 configure-send-pr \
05750653 24369 info-send-pr
f41d6665 24370 @: $(MAKE); $(unstage)
d32ab992 24371 @[ -f ./send-pr/Makefile ] || exit 0; \
295f4e42
NN
24372 r=`${PWD_COMMAND}`; export r; \
24373 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24374 $(HOST_EXPORTS) \
d32ab992 24375 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24376 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24377 done; \
d32ab992 24378 echo "Doing install-info in send-pr" ; \
215c351a 24379 (cd $(HOST_SUBDIR)/send-pr && \
295f4e42
NN
24380 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24381 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24382 "RANLIB=$${RANLIB}" \
24383 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24384 install-info) \
295f4e42
NN
24385 || exit 1
24386
d32ab992 24387@endif send-pr
295f4e42 24388
65d6e994
CD
24389.PHONY: maybe-install-html-send-pr install-html-send-pr
24390maybe-install-html-send-pr:
24391@if send-pr
24392maybe-install-html-send-pr: install-html-send-pr
24393
24394install-html-send-pr: \
24395 configure-send-pr \
24396 html-send-pr
24397 @: $(MAKE); $(unstage)
24398 @[ -f ./send-pr/Makefile ] || exit 0; \
24399 r=`${PWD_COMMAND}`; export r; \
24400 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24401 $(HOST_EXPORTS) \
24402 for flag in $(EXTRA_HOST_FLAGS) ; do \
24403 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24404 done; \
24405 echo "Doing install-html in send-pr" ; \
24406 (cd $(HOST_SUBDIR)/send-pr && \
24407 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24408 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24409 "RANLIB=$${RANLIB}" \
24410 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
24411 install-html) \
24412 || exit 1
24413
24414@endif send-pr
24415
d32ab992
PB
24416.PHONY: maybe-installcheck-send-pr installcheck-send-pr
24417maybe-installcheck-send-pr:
24418@if send-pr
24419maybe-installcheck-send-pr: installcheck-send-pr
295f4e42 24420
d32ab992 24421installcheck-send-pr: \
05750653 24422 configure-send-pr
f41d6665 24423 @: $(MAKE); $(unstage)
d32ab992 24424 @[ -f ./send-pr/Makefile ] || exit 0; \
295f4e42
NN
24425 r=`${PWD_COMMAND}`; export r; \
24426 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24427 $(HOST_EXPORTS) \
d32ab992 24428 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24429 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24430 done; \
d32ab992 24431 echo "Doing installcheck in send-pr" ; \
215c351a 24432 (cd $(HOST_SUBDIR)/send-pr && \
295f4e42
NN
24433 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24434 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24435 "RANLIB=$${RANLIB}" \
24436 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24437 installcheck) \
295f4e42
NN
24438 || exit 1
24439
d32ab992 24440@endif send-pr
295f4e42 24441
d32ab992
PB
24442.PHONY: maybe-mostlyclean-send-pr mostlyclean-send-pr
24443maybe-mostlyclean-send-pr:
24444@if send-pr
24445maybe-mostlyclean-send-pr: mostlyclean-send-pr
295f4e42 24446
05750653 24447mostlyclean-send-pr:
f41d6665 24448 @: $(MAKE); $(unstage)
d32ab992 24449 @[ -f ./send-pr/Makefile ] || exit 0; \
295f4e42
NN
24450 r=`${PWD_COMMAND}`; export r; \
24451 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24452 $(HOST_EXPORTS) \
d32ab992 24453 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24454 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24455 done; \
d32ab992 24456 echo "Doing mostlyclean in send-pr" ; \
215c351a 24457 (cd $(HOST_SUBDIR)/send-pr && \
295f4e42
NN
24458 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24459 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24460 "RANLIB=$${RANLIB}" \
24461 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24462 mostlyclean) \
295f4e42
NN
24463 || exit 1
24464
d32ab992 24465@endif send-pr
295f4e42 24466
d32ab992
PB
24467.PHONY: maybe-clean-send-pr clean-send-pr
24468maybe-clean-send-pr:
24469@if send-pr
24470maybe-clean-send-pr: clean-send-pr
295f4e42 24471
05750653 24472clean-send-pr:
f41d6665 24473 @: $(MAKE); $(unstage)
d32ab992 24474 @[ -f ./send-pr/Makefile ] || exit 0; \
295f4e42
NN
24475 r=`${PWD_COMMAND}`; export r; \
24476 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24477 $(HOST_EXPORTS) \
d32ab992 24478 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24479 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24480 done; \
d32ab992 24481 echo "Doing clean in send-pr" ; \
215c351a 24482 (cd $(HOST_SUBDIR)/send-pr && \
295f4e42
NN
24483 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24484 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24485 "RANLIB=$${RANLIB}" \
24486 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24487 clean) \
295f4e42
NN
24488 || exit 1
24489
d32ab992 24490@endif send-pr
295f4e42 24491
d32ab992
PB
24492.PHONY: maybe-distclean-send-pr distclean-send-pr
24493maybe-distclean-send-pr:
24494@if send-pr
24495maybe-distclean-send-pr: distclean-send-pr
295f4e42 24496
05750653 24497distclean-send-pr:
f41d6665 24498 @: $(MAKE); $(unstage)
d32ab992 24499 @[ -f ./send-pr/Makefile ] || exit 0; \
295f4e42
NN
24500 r=`${PWD_COMMAND}`; export r; \
24501 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24502 $(HOST_EXPORTS) \
d32ab992 24503 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24504 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24505 done; \
d32ab992 24506 echo "Doing distclean in send-pr" ; \
215c351a 24507 (cd $(HOST_SUBDIR)/send-pr && \
295f4e42
NN
24508 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24509 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24510 "RANLIB=$${RANLIB}" \
24511 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24512 distclean) \
295f4e42
NN
24513 || exit 1
24514
d32ab992 24515@endif send-pr
295f4e42 24516
d32ab992
PB
24517.PHONY: maybe-maintainer-clean-send-pr maintainer-clean-send-pr
24518maybe-maintainer-clean-send-pr:
24519@if send-pr
24520maybe-maintainer-clean-send-pr: maintainer-clean-send-pr
295f4e42 24521
05750653 24522maintainer-clean-send-pr:
f41d6665 24523 @: $(MAKE); $(unstage)
d32ab992 24524 @[ -f ./send-pr/Makefile ] || exit 0; \
295f4e42
NN
24525 r=`${PWD_COMMAND}`; export r; \
24526 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24527 $(HOST_EXPORTS) \
d32ab992 24528 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24529 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24530 done; \
d32ab992 24531 echo "Doing maintainer-clean in send-pr" ; \
215c351a 24532 (cd $(HOST_SUBDIR)/send-pr && \
295f4e42
NN
24533 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24534 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24535 "RANLIB=$${RANLIB}" \
24536 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24537 maintainer-clean) \
295f4e42
NN
24538 || exit 1
24539
d32ab992 24540@endif send-pr
295f4e42
NN
24541
24542
25b42232 24543
d32ab992
PB
24544.PHONY: configure-shellutils maybe-configure-shellutils
24545maybe-configure-shellutils:
3ff3adad
PB
24546@if gcc-bootstrap
24547configure-shellutils: stage_current
24548@endif gcc-bootstrap
d32ab992
PB
24549@if shellutils
24550maybe-configure-shellutils: configure-shellutils
cc11cc9b 24551configure-shellutils:
f41d6665 24552 @: $(MAKE); $(unstage)
cc11cc9b 24553 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 24554 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
24555 test ! -f $(HOST_SUBDIR)/shellutils/Makefile || exit 0; \
24556 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/shellutils ; \
4fc4dd12 24557 $(HOST_EXPORTS) \
25b42232
PB
24558 echo Configuring in $(HOST_SUBDIR)/shellutils; \
24559 cd "$(HOST_SUBDIR)/shellutils" || exit 1; \
4977bab6 24560 case $(srcdir) in \
215c351a
PB
24561 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24562 *) topdir=`echo $(HOST_SUBDIR)/shellutils/ | \
24563 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 24564 esac; \
215c351a
PB
24565 srcdiroption="--srcdir=$${topdir}/shellutils"; \
24566 libsrcdir="$$s/shellutils"; \
4977bab6 24567 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 24568 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 24569 || exit 1
d32ab992 24570@endif shellutils
4977bab6 24571
25b42232
PB
24572
24573
ce406537
PB
24574
24575
d32ab992
PB
24576.PHONY: all-shellutils maybe-all-shellutils
24577maybe-all-shellutils:
3ff3adad
PB
24578@if gcc-bootstrap
24579all-shellutils: stage_current
24580@endif gcc-bootstrap
d32ab992 24581@if shellutils
7e0b5752 24582TARGET-shellutils=all
d32ab992
PB
24583maybe-all-shellutils: all-shellutils
24584all-shellutils: configure-shellutils
f41d6665 24585 @: $(MAKE); $(unstage)
8c90b13a
L
24586 @r=`${PWD_COMMAND}`; export r; \
24587 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24588 $(HOST_EXPORTS) \
215c351a
PB
24589 (cd $(HOST_SUBDIR)/shellutils && \
24590 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-shellutils))
d32ab992 24591@endif shellutils
4977bab6 24592
25b42232 24593
ce406537
PB
24594
24595
d32ab992
PB
24596.PHONY: check-shellutils maybe-check-shellutils
24597maybe-check-shellutils:
24598@if shellutils
24599maybe-check-shellutils: check-shellutils
4977bab6 24600
d32ab992 24601check-shellutils:
f41d6665 24602 @: $(MAKE); $(unstage)
295f4e42
NN
24603 @r=`${PWD_COMMAND}`; export r; \
24604 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24605 $(HOST_EXPORTS) \
215c351a
PB
24606 (cd $(HOST_SUBDIR)/shellutils && \
24607 $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6 24608
d32ab992 24609@endif shellutils
4977bab6 24610
d32ab992
PB
24611.PHONY: install-shellutils maybe-install-shellutils
24612maybe-install-shellutils:
24613@if shellutils
24614maybe-install-shellutils: install-shellutils
7e2dbcef 24615
d32ab992 24616install-shellutils: installdirs
f41d6665 24617 @: $(MAKE); $(unstage)
8c90b13a
L
24618 @r=`${PWD_COMMAND}`; export r; \
24619 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24620 $(HOST_EXPORTS) \
215c351a 24621 (cd $(HOST_SUBDIR)/shellutils && \
ace9ac7b 24622 $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6 24623
d32ab992 24624@endif shellutils
4977bab6 24625
295f4e42
NN
24626# Other targets (info, dvi, etc.)
24627
d32ab992
PB
24628.PHONY: maybe-info-shellutils info-shellutils
24629maybe-info-shellutils:
24630@if shellutils
24631maybe-info-shellutils: info-shellutils
295f4e42 24632
d32ab992 24633info-shellutils: \
05750653 24634 configure-shellutils
f41d6665 24635 @: $(MAKE); $(unstage)
d32ab992 24636 @[ -f ./shellutils/Makefile ] || exit 0; \
8c90b13a
L
24637 r=`${PWD_COMMAND}`; export r; \
24638 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24639 $(HOST_EXPORTS) \
d32ab992 24640 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24641 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24642 done; \
d32ab992 24643 echo "Doing info in shellutils" ; \
215c351a 24644 (cd $(HOST_SUBDIR)/shellutils && \
295f4e42
NN
24645 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24646 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24647 "RANLIB=$${RANLIB}" \
24648 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24649 info) \
4977bab6
ZW
24650 || exit 1
24651
d32ab992 24652@endif shellutils
295f4e42 24653
d32ab992
PB
24654.PHONY: maybe-dvi-shellutils dvi-shellutils
24655maybe-dvi-shellutils:
24656@if shellutils
24657maybe-dvi-shellutils: dvi-shellutils
295f4e42 24658
d32ab992 24659dvi-shellutils: \
05750653 24660 configure-shellutils
f41d6665 24661 @: $(MAKE); $(unstage)
d32ab992 24662 @[ -f ./shellutils/Makefile ] || exit 0; \
295f4e42 24663 r=`${PWD_COMMAND}`; export r; \
8c90b13a 24664 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24665 $(HOST_EXPORTS) \
d32ab992 24666 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24667 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24668 done; \
d32ab992 24669 echo "Doing dvi in shellutils" ; \
215c351a 24670 (cd $(HOST_SUBDIR)/shellutils && \
295f4e42
NN
24671 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24672 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24673 "RANLIB=$${RANLIB}" \
24674 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24675 dvi) \
295f4e42 24676 || exit 1
4977bab6 24677
d32ab992 24678@endif shellutils
4977bab6 24679
f87a2b2e
MS
24680.PHONY: maybe-html-shellutils html-shellutils
24681maybe-html-shellutils:
24682@if shellutils
24683maybe-html-shellutils: html-shellutils
24684
24685html-shellutils: \
05750653 24686 configure-shellutils
f41d6665 24687 @: $(MAKE); $(unstage)
f87a2b2e
MS
24688 @[ -f ./shellutils/Makefile ] || exit 0; \
24689 r=`${PWD_COMMAND}`; export r; \
24690 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
24691 $(HOST_EXPORTS) \
24692 for flag in $(EXTRA_HOST_FLAGS) ; do \
24693 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24694 done; \
24695 echo "Doing html in shellutils" ; \
215c351a 24696 (cd $(HOST_SUBDIR)/shellutils && \
f87a2b2e
MS
24697 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24698 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24699 "RANLIB=$${RANLIB}" \
24700 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
24701 html) \
24702 || exit 1
24703
24704@endif shellutils
24705
d32ab992
PB
24706.PHONY: maybe-TAGS-shellutils TAGS-shellutils
24707maybe-TAGS-shellutils:
24708@if shellutils
24709maybe-TAGS-shellutils: TAGS-shellutils
295f4e42 24710
d32ab992 24711TAGS-shellutils: \
05750653 24712 configure-shellutils
f41d6665 24713 @: $(MAKE); $(unstage)
d32ab992 24714 @[ -f ./shellutils/Makefile ] || exit 0; \
295f4e42 24715 r=`${PWD_COMMAND}`; export r; \
8c90b13a 24716 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24717 $(HOST_EXPORTS) \
d32ab992 24718 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24719 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24720 done; \
d32ab992 24721 echo "Doing TAGS in shellutils" ; \
215c351a 24722 (cd $(HOST_SUBDIR)/shellutils && \
295f4e42
NN
24723 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24724 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24725 "RANLIB=$${RANLIB}" \
24726 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24727 TAGS) \
295f4e42 24728 || exit 1
4977bab6 24729
d32ab992 24730@endif shellutils
4977bab6 24731
d32ab992
PB
24732.PHONY: maybe-install-info-shellutils install-info-shellutils
24733maybe-install-info-shellutils:
24734@if shellutils
24735maybe-install-info-shellutils: install-info-shellutils
7e2dbcef 24736
d32ab992
PB
24737install-info-shellutils: \
24738 configure-shellutils \
05750653 24739 info-shellutils
f41d6665 24740 @: $(MAKE); $(unstage)
d32ab992 24741 @[ -f ./shellutils/Makefile ] || exit 0; \
295f4e42
NN
24742 r=`${PWD_COMMAND}`; export r; \
24743 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24744 $(HOST_EXPORTS) \
d32ab992 24745 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24746 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24747 done; \
d32ab992 24748 echo "Doing install-info in shellutils" ; \
215c351a 24749 (cd $(HOST_SUBDIR)/shellutils && \
295f4e42
NN
24750 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24751 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24752 "RANLIB=$${RANLIB}" \
24753 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24754 install-info) \
295f4e42
NN
24755 || exit 1
24756
d32ab992 24757@endif shellutils
295f4e42 24758
65d6e994
CD
24759.PHONY: maybe-install-html-shellutils install-html-shellutils
24760maybe-install-html-shellutils:
24761@if shellutils
24762maybe-install-html-shellutils: install-html-shellutils
24763
24764install-html-shellutils: \
24765 configure-shellutils \
24766 html-shellutils
24767 @: $(MAKE); $(unstage)
24768 @[ -f ./shellutils/Makefile ] || exit 0; \
24769 r=`${PWD_COMMAND}`; export r; \
24770 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24771 $(HOST_EXPORTS) \
24772 for flag in $(EXTRA_HOST_FLAGS) ; do \
24773 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24774 done; \
24775 echo "Doing install-html in shellutils" ; \
24776 (cd $(HOST_SUBDIR)/shellutils && \
24777 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24778 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24779 "RANLIB=$${RANLIB}" \
24780 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
24781 install-html) \
24782 || exit 1
24783
24784@endif shellutils
24785
d32ab992
PB
24786.PHONY: maybe-installcheck-shellutils installcheck-shellutils
24787maybe-installcheck-shellutils:
24788@if shellutils
24789maybe-installcheck-shellutils: installcheck-shellutils
295f4e42 24790
d32ab992 24791installcheck-shellutils: \
05750653 24792 configure-shellutils
f41d6665 24793 @: $(MAKE); $(unstage)
d32ab992 24794 @[ -f ./shellutils/Makefile ] || exit 0; \
295f4e42
NN
24795 r=`${PWD_COMMAND}`; export r; \
24796 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24797 $(HOST_EXPORTS) \
d32ab992 24798 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24799 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24800 done; \
d32ab992 24801 echo "Doing installcheck in shellutils" ; \
215c351a 24802 (cd $(HOST_SUBDIR)/shellutils && \
295f4e42
NN
24803 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24804 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24805 "RANLIB=$${RANLIB}" \
24806 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24807 installcheck) \
295f4e42
NN
24808 || exit 1
24809
d32ab992 24810@endif shellutils
295f4e42 24811
d32ab992
PB
24812.PHONY: maybe-mostlyclean-shellutils mostlyclean-shellutils
24813maybe-mostlyclean-shellutils:
24814@if shellutils
24815maybe-mostlyclean-shellutils: mostlyclean-shellutils
295f4e42 24816
05750653 24817mostlyclean-shellutils:
f41d6665 24818 @: $(MAKE); $(unstage)
d32ab992 24819 @[ -f ./shellutils/Makefile ] || exit 0; \
295f4e42
NN
24820 r=`${PWD_COMMAND}`; export r; \
24821 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24822 $(HOST_EXPORTS) \
d32ab992 24823 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24824 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24825 done; \
d32ab992 24826 echo "Doing mostlyclean in shellutils" ; \
215c351a 24827 (cd $(HOST_SUBDIR)/shellutils && \
295f4e42
NN
24828 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24829 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24830 "RANLIB=$${RANLIB}" \
24831 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24832 mostlyclean) \
295f4e42
NN
24833 || exit 1
24834
d32ab992 24835@endif shellutils
295f4e42 24836
d32ab992
PB
24837.PHONY: maybe-clean-shellutils clean-shellutils
24838maybe-clean-shellutils:
24839@if shellutils
24840maybe-clean-shellutils: clean-shellutils
295f4e42 24841
05750653 24842clean-shellutils:
f41d6665 24843 @: $(MAKE); $(unstage)
d32ab992 24844 @[ -f ./shellutils/Makefile ] || exit 0; \
295f4e42
NN
24845 r=`${PWD_COMMAND}`; export r; \
24846 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24847 $(HOST_EXPORTS) \
d32ab992 24848 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24849 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24850 done; \
d32ab992 24851 echo "Doing clean in shellutils" ; \
215c351a 24852 (cd $(HOST_SUBDIR)/shellutils && \
295f4e42
NN
24853 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24854 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24855 "RANLIB=$${RANLIB}" \
24856 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24857 clean) \
295f4e42
NN
24858 || exit 1
24859
d32ab992 24860@endif shellutils
295f4e42 24861
d32ab992
PB
24862.PHONY: maybe-distclean-shellutils distclean-shellutils
24863maybe-distclean-shellutils:
24864@if shellutils
24865maybe-distclean-shellutils: distclean-shellutils
295f4e42 24866
05750653 24867distclean-shellutils:
f41d6665 24868 @: $(MAKE); $(unstage)
d32ab992 24869 @[ -f ./shellutils/Makefile ] || exit 0; \
295f4e42
NN
24870 r=`${PWD_COMMAND}`; export r; \
24871 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24872 $(HOST_EXPORTS) \
d32ab992 24873 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24874 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24875 done; \
d32ab992 24876 echo "Doing distclean in shellutils" ; \
215c351a 24877 (cd $(HOST_SUBDIR)/shellutils && \
295f4e42
NN
24878 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24879 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24880 "RANLIB=$${RANLIB}" \
24881 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24882 distclean) \
295f4e42
NN
24883 || exit 1
24884
d32ab992 24885@endif shellutils
295f4e42 24886
d32ab992
PB
24887.PHONY: maybe-maintainer-clean-shellutils maintainer-clean-shellutils
24888maybe-maintainer-clean-shellutils:
24889@if shellutils
24890maybe-maintainer-clean-shellutils: maintainer-clean-shellutils
295f4e42 24891
05750653 24892maintainer-clean-shellutils:
f41d6665 24893 @: $(MAKE); $(unstage)
d32ab992 24894 @[ -f ./shellutils/Makefile ] || exit 0; \
295f4e42 24895 r=`${PWD_COMMAND}`; export r; \
8c90b13a 24896 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24897 $(HOST_EXPORTS) \
d32ab992 24898 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24899 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24900 done; \
d32ab992 24901 echo "Doing maintainer-clean in shellutils" ; \
215c351a 24902 (cd $(HOST_SUBDIR)/shellutils && \
295f4e42
NN
24903 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24904 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24905 "RANLIB=$${RANLIB}" \
24906 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24907 maintainer-clean) \
295f4e42 24908 || exit 1
4977bab6 24909
d32ab992 24910@endif shellutils
4977bab6 24911
295f4e42 24912
25b42232 24913
d32ab992
PB
24914.PHONY: configure-sid maybe-configure-sid
24915maybe-configure-sid:
3ff3adad
PB
24916@if gcc-bootstrap
24917configure-sid: stage_current
24918@endif gcc-bootstrap
d32ab992
PB
24919@if sid
24920maybe-configure-sid: configure-sid
cc11cc9b 24921configure-sid:
f41d6665 24922 @: $(MAKE); $(unstage)
cc11cc9b 24923 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 24924 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
24925 test ! -f $(HOST_SUBDIR)/sid/Makefile || exit 0; \
24926 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/sid ; \
4fc4dd12 24927 $(HOST_EXPORTS) \
25b42232
PB
24928 echo Configuring in $(HOST_SUBDIR)/sid; \
24929 cd "$(HOST_SUBDIR)/sid" || exit 1; \
4977bab6 24930 case $(srcdir) in \
215c351a
PB
24931 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24932 *) topdir=`echo $(HOST_SUBDIR)/sid/ | \
24933 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 24934 esac; \
215c351a
PB
24935 srcdiroption="--srcdir=$${topdir}/sid"; \
24936 libsrcdir="$$s/sid"; \
4977bab6 24937 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 24938 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 24939 || exit 1
d32ab992 24940@endif sid
4977bab6 24941
25b42232
PB
24942
24943
ce406537
PB
24944
24945
d32ab992
PB
24946.PHONY: all-sid maybe-all-sid
24947maybe-all-sid:
3ff3adad
PB
24948@if gcc-bootstrap
24949all-sid: stage_current
24950@endif gcc-bootstrap
d32ab992 24951@if sid
7e0b5752 24952TARGET-sid=all
d32ab992
PB
24953maybe-all-sid: all-sid
24954all-sid: configure-sid
f41d6665 24955 @: $(MAKE); $(unstage)
8c90b13a
L
24956 @r=`${PWD_COMMAND}`; export r; \
24957 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24958 $(HOST_EXPORTS) \
215c351a
PB
24959 (cd $(HOST_SUBDIR)/sid && \
24960 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-sid))
d32ab992 24961@endif sid
4977bab6 24962
25b42232 24963
ce406537
PB
24964
24965
d32ab992
PB
24966.PHONY: check-sid maybe-check-sid
24967maybe-check-sid:
24968@if sid
24969maybe-check-sid: check-sid
4977bab6 24970
d32ab992 24971check-sid:
f41d6665 24972 @: $(MAKE); $(unstage)
295f4e42
NN
24973 @r=`${PWD_COMMAND}`; export r; \
24974 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24975 $(HOST_EXPORTS) \
215c351a
PB
24976 (cd $(HOST_SUBDIR)/sid && \
24977 $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6 24978
d32ab992 24979@endif sid
4977bab6 24980
d32ab992
PB
24981.PHONY: install-sid maybe-install-sid
24982maybe-install-sid:
24983@if sid
24984maybe-install-sid: install-sid
7e2dbcef 24985
d32ab992 24986install-sid: installdirs
f41d6665 24987 @: $(MAKE); $(unstage)
8c90b13a
L
24988 @r=`${PWD_COMMAND}`; export r; \
24989 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24990 $(HOST_EXPORTS) \
215c351a 24991 (cd $(HOST_SUBDIR)/sid && \
ace9ac7b 24992 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 24993
d32ab992 24994@endif sid
295f4e42
NN
24995
24996# Other targets (info, dvi, etc.)
24997
d32ab992
PB
24998.PHONY: maybe-info-sid info-sid
24999maybe-info-sid:
25000@if sid
25001maybe-info-sid: info-sid
295f4e42 25002
d32ab992 25003info-sid: \
05750653 25004 configure-sid
f41d6665 25005 @: $(MAKE); $(unstage)
d32ab992 25006 @[ -f ./sid/Makefile ] || exit 0; \
295f4e42
NN
25007 r=`${PWD_COMMAND}`; export r; \
25008 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25009 $(HOST_EXPORTS) \
d32ab992 25010 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25011 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25012 done; \
d32ab992 25013 echo "Doing info in sid" ; \
215c351a 25014 (cd $(HOST_SUBDIR)/sid && \
295f4e42
NN
25015 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25016 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25017 "RANLIB=$${RANLIB}" \
25018 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25019 info) \
295f4e42
NN
25020 || exit 1
25021
d32ab992 25022@endif sid
295f4e42 25023
d32ab992
PB
25024.PHONY: maybe-dvi-sid dvi-sid
25025maybe-dvi-sid:
25026@if sid
25027maybe-dvi-sid: dvi-sid
295f4e42 25028
d32ab992 25029dvi-sid: \
05750653 25030 configure-sid
f41d6665 25031 @: $(MAKE); $(unstage)
d32ab992 25032 @[ -f ./sid/Makefile ] || exit 0; \
295f4e42
NN
25033 r=`${PWD_COMMAND}`; export r; \
25034 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25035 $(HOST_EXPORTS) \
d32ab992 25036 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25037 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25038 done; \
d32ab992 25039 echo "Doing dvi in sid" ; \
215c351a 25040 (cd $(HOST_SUBDIR)/sid && \
295f4e42
NN
25041 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25042 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25043 "RANLIB=$${RANLIB}" \
25044 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25045 dvi) \
295f4e42
NN
25046 || exit 1
25047
d32ab992 25048@endif sid
295f4e42 25049
f87a2b2e
MS
25050.PHONY: maybe-html-sid html-sid
25051maybe-html-sid:
25052@if sid
25053maybe-html-sid: html-sid
25054
25055html-sid: \
05750653 25056 configure-sid
f41d6665 25057 @: $(MAKE); $(unstage)
f87a2b2e
MS
25058 @[ -f ./sid/Makefile ] || exit 0; \
25059 r=`${PWD_COMMAND}`; export r; \
25060 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
25061 $(HOST_EXPORTS) \
25062 for flag in $(EXTRA_HOST_FLAGS) ; do \
25063 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25064 done; \
25065 echo "Doing html in sid" ; \
215c351a 25066 (cd $(HOST_SUBDIR)/sid && \
f87a2b2e
MS
25067 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25068 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25069 "RANLIB=$${RANLIB}" \
25070 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
25071 html) \
25072 || exit 1
25073
25074@endif sid
25075
d32ab992
PB
25076.PHONY: maybe-TAGS-sid TAGS-sid
25077maybe-TAGS-sid:
25078@if sid
25079maybe-TAGS-sid: TAGS-sid
295f4e42 25080
d32ab992 25081TAGS-sid: \
05750653 25082 configure-sid
f41d6665 25083 @: $(MAKE); $(unstage)
d32ab992 25084 @[ -f ./sid/Makefile ] || exit 0; \
295f4e42
NN
25085 r=`${PWD_COMMAND}`; export r; \
25086 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25087 $(HOST_EXPORTS) \
d32ab992 25088 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25089 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25090 done; \
d32ab992 25091 echo "Doing TAGS in sid" ; \
215c351a 25092 (cd $(HOST_SUBDIR)/sid && \
295f4e42
NN
25093 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25094 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25095 "RANLIB=$${RANLIB}" \
25096 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25097 TAGS) \
295f4e42
NN
25098 || exit 1
25099
d32ab992 25100@endif sid
295f4e42 25101
d32ab992
PB
25102.PHONY: maybe-install-info-sid install-info-sid
25103maybe-install-info-sid:
25104@if sid
25105maybe-install-info-sid: install-info-sid
295f4e42 25106
d32ab992
PB
25107install-info-sid: \
25108 configure-sid \
05750653 25109 info-sid
f41d6665 25110 @: $(MAKE); $(unstage)
d32ab992 25111 @[ -f ./sid/Makefile ] || exit 0; \
295f4e42
NN
25112 r=`${PWD_COMMAND}`; export r; \
25113 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25114 $(HOST_EXPORTS) \
d32ab992 25115 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25116 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25117 done; \
d32ab992 25118 echo "Doing install-info in sid" ; \
215c351a 25119 (cd $(HOST_SUBDIR)/sid && \
295f4e42
NN
25120 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25121 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25122 "RANLIB=$${RANLIB}" \
25123 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25124 install-info) \
295f4e42
NN
25125 || exit 1
25126
d32ab992 25127@endif sid
295f4e42 25128
65d6e994
CD
25129.PHONY: maybe-install-html-sid install-html-sid
25130maybe-install-html-sid:
25131@if sid
25132maybe-install-html-sid: install-html-sid
25133
25134install-html-sid: \
25135 configure-sid \
25136 html-sid
25137 @: $(MAKE); $(unstage)
25138 @[ -f ./sid/Makefile ] || exit 0; \
25139 r=`${PWD_COMMAND}`; export r; \
25140 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25141 $(HOST_EXPORTS) \
25142 for flag in $(EXTRA_HOST_FLAGS) ; do \
25143 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25144 done; \
25145 echo "Doing install-html in sid" ; \
25146 (cd $(HOST_SUBDIR)/sid && \
25147 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25148 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25149 "RANLIB=$${RANLIB}" \
25150 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
25151 install-html) \
25152 || exit 1
25153
25154@endif sid
25155
d32ab992
PB
25156.PHONY: maybe-installcheck-sid installcheck-sid
25157maybe-installcheck-sid:
25158@if sid
25159maybe-installcheck-sid: installcheck-sid
295f4e42 25160
d32ab992 25161installcheck-sid: \
05750653 25162 configure-sid
f41d6665 25163 @: $(MAKE); $(unstage)
d32ab992
PB
25164 @[ -f ./sid/Makefile ] || exit 0; \
25165 r=`${PWD_COMMAND}`; export r; \
295f4e42 25166 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25167 $(HOST_EXPORTS) \
d32ab992 25168 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25169 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25170 done; \
d32ab992 25171 echo "Doing installcheck in sid" ; \
215c351a 25172 (cd $(HOST_SUBDIR)/sid && \
295f4e42
NN
25173 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25174 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25175 "RANLIB=$${RANLIB}" \
25176 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25177 installcheck) \
295f4e42
NN
25178 || exit 1
25179
d32ab992 25180@endif sid
295f4e42 25181
d32ab992
PB
25182.PHONY: maybe-mostlyclean-sid mostlyclean-sid
25183maybe-mostlyclean-sid:
25184@if sid
25185maybe-mostlyclean-sid: mostlyclean-sid
295f4e42 25186
05750653 25187mostlyclean-sid:
f41d6665 25188 @: $(MAKE); $(unstage)
d32ab992 25189 @[ -f ./sid/Makefile ] || exit 0; \
295f4e42
NN
25190 r=`${PWD_COMMAND}`; export r; \
25191 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25192 $(HOST_EXPORTS) \
d32ab992 25193 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25194 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25195 done; \
d32ab992 25196 echo "Doing mostlyclean in sid" ; \
215c351a 25197 (cd $(HOST_SUBDIR)/sid && \
295f4e42
NN
25198 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25199 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25200 "RANLIB=$${RANLIB}" \
25201 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25202 mostlyclean) \
295f4e42
NN
25203 || exit 1
25204
d32ab992 25205@endif sid
295f4e42 25206
d32ab992
PB
25207.PHONY: maybe-clean-sid clean-sid
25208maybe-clean-sid:
25209@if sid
25210maybe-clean-sid: clean-sid
295f4e42 25211
05750653 25212clean-sid:
f41d6665 25213 @: $(MAKE); $(unstage)
d32ab992 25214 @[ -f ./sid/Makefile ] || exit 0; \
295f4e42
NN
25215 r=`${PWD_COMMAND}`; export r; \
25216 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25217 $(HOST_EXPORTS) \
d32ab992 25218 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25219 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25220 done; \
d32ab992 25221 echo "Doing clean in sid" ; \
215c351a 25222 (cd $(HOST_SUBDIR)/sid && \
295f4e42
NN
25223 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25224 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25225 "RANLIB=$${RANLIB}" \
25226 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25227 clean) \
295f4e42
NN
25228 || exit 1
25229
d32ab992 25230@endif sid
295f4e42 25231
d32ab992
PB
25232.PHONY: maybe-distclean-sid distclean-sid
25233maybe-distclean-sid:
25234@if sid
25235maybe-distclean-sid: distclean-sid
295f4e42 25236
05750653 25237distclean-sid:
f41d6665 25238 @: $(MAKE); $(unstage)
d32ab992 25239 @[ -f ./sid/Makefile ] || exit 0; \
295f4e42
NN
25240 r=`${PWD_COMMAND}`; export r; \
25241 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25242 $(HOST_EXPORTS) \
d32ab992 25243 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25244 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25245 done; \
d32ab992 25246 echo "Doing distclean in sid" ; \
215c351a 25247 (cd $(HOST_SUBDIR)/sid && \
295f4e42
NN
25248 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25249 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25250 "RANLIB=$${RANLIB}" \
25251 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25252 distclean) \
295f4e42
NN
25253 || exit 1
25254
d32ab992 25255@endif sid
295f4e42 25256
d32ab992
PB
25257.PHONY: maybe-maintainer-clean-sid maintainer-clean-sid
25258maybe-maintainer-clean-sid:
25259@if sid
25260maybe-maintainer-clean-sid: maintainer-clean-sid
295f4e42 25261
05750653 25262maintainer-clean-sid:
f41d6665 25263 @: $(MAKE); $(unstage)
d32ab992 25264 @[ -f ./sid/Makefile ] || exit 0; \
295f4e42
NN
25265 r=`${PWD_COMMAND}`; export r; \
25266 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25267 $(HOST_EXPORTS) \
d32ab992 25268 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25269 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25270 done; \
d32ab992 25271 echo "Doing maintainer-clean in sid" ; \
215c351a 25272 (cd $(HOST_SUBDIR)/sid && \
295f4e42
NN
25273 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25274 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25275 "RANLIB=$${RANLIB}" \
25276 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25277 maintainer-clean) \
295f4e42 25278 || exit 1
4977bab6 25279
d32ab992 25280@endif sid
4977bab6 25281
295f4e42 25282
25b42232 25283
d32ab992
PB
25284.PHONY: configure-sim maybe-configure-sim
25285maybe-configure-sim:
3ff3adad
PB
25286@if gcc-bootstrap
25287configure-sim: stage_current
25288@endif gcc-bootstrap
d32ab992
PB
25289@if sim
25290maybe-configure-sim: configure-sim
cc11cc9b 25291configure-sim:
f41d6665 25292 @: $(MAKE); $(unstage)
cc11cc9b 25293 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 25294 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
25295 test ! -f $(HOST_SUBDIR)/sim/Makefile || exit 0; \
25296 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/sim ; \
4fc4dd12 25297 $(HOST_EXPORTS) \
25b42232
PB
25298 echo Configuring in $(HOST_SUBDIR)/sim; \
25299 cd "$(HOST_SUBDIR)/sim" || exit 1; \
4977bab6 25300 case $(srcdir) in \
215c351a
PB
25301 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
25302 *) topdir=`echo $(HOST_SUBDIR)/sim/ | \
25303 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 25304 esac; \
215c351a
PB
25305 srcdiroption="--srcdir=$${topdir}/sim"; \
25306 libsrcdir="$$s/sim"; \
4977bab6 25307 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 25308 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 25309 || exit 1
d32ab992 25310@endif sim
4977bab6 25311
25b42232
PB
25312
25313
ce406537
PB
25314
25315
d32ab992
PB
25316.PHONY: all-sim maybe-all-sim
25317maybe-all-sim:
3ff3adad
PB
25318@if gcc-bootstrap
25319all-sim: stage_current
25320@endif gcc-bootstrap
d32ab992 25321@if sim
7e0b5752 25322TARGET-sim=all
d32ab992
PB
25323maybe-all-sim: all-sim
25324all-sim: configure-sim
f41d6665 25325 @: $(MAKE); $(unstage)
8c90b13a
L
25326 @r=`${PWD_COMMAND}`; export r; \
25327 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25328 $(HOST_EXPORTS) \
215c351a
PB
25329 (cd $(HOST_SUBDIR)/sim && \
25330 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-sim))
d32ab992 25331@endif sim
4977bab6 25332
25b42232 25333
ce406537
PB
25334
25335
d32ab992
PB
25336.PHONY: check-sim maybe-check-sim
25337maybe-check-sim:
25338@if sim
25339maybe-check-sim: check-sim
4977bab6 25340
d32ab992 25341check-sim:
f41d6665 25342 @: $(MAKE); $(unstage)
8c90b13a
L
25343 @r=`${PWD_COMMAND}`; export r; \
25344 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25345 $(HOST_EXPORTS) \
215c351a
PB
25346 (cd $(HOST_SUBDIR)/sim && \
25347 $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6 25348
d32ab992 25349@endif sim
4977bab6 25350
d32ab992
PB
25351.PHONY: install-sim maybe-install-sim
25352maybe-install-sim:
25353@if sim
25354maybe-install-sim: install-sim
7e2dbcef 25355
d32ab992 25356install-sim: installdirs
f41d6665 25357 @: $(MAKE); $(unstage)
8c90b13a
L
25358 @r=`${PWD_COMMAND}`; export r; \
25359 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25360 $(HOST_EXPORTS) \
215c351a 25361 (cd $(HOST_SUBDIR)/sim && \
ace9ac7b 25362 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 25363
d32ab992 25364@endif sim
295f4e42
NN
25365
25366# Other targets (info, dvi, etc.)
25367
d32ab992
PB
25368.PHONY: maybe-info-sim info-sim
25369maybe-info-sim:
25370@if sim
25371maybe-info-sim: info-sim
295f4e42 25372
d32ab992 25373info-sim: \
05750653 25374 configure-sim
f41d6665 25375 @: $(MAKE); $(unstage)
d32ab992 25376 @[ -f ./sim/Makefile ] || exit 0; \
295f4e42
NN
25377 r=`${PWD_COMMAND}`; export r; \
25378 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25379 $(HOST_EXPORTS) \
d32ab992 25380 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25381 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25382 done; \
d32ab992 25383 echo "Doing info in sim" ; \
215c351a 25384 (cd $(HOST_SUBDIR)/sim && \
295f4e42
NN
25385 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25386 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25387 "RANLIB=$${RANLIB}" \
25388 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25389 info) \
295f4e42
NN
25390 || exit 1
25391
d32ab992 25392@endif sim
295f4e42 25393
d32ab992
PB
25394.PHONY: maybe-dvi-sim dvi-sim
25395maybe-dvi-sim:
25396@if sim
25397maybe-dvi-sim: dvi-sim
295f4e42 25398
d32ab992 25399dvi-sim: \
05750653 25400 configure-sim
f41d6665 25401 @: $(MAKE); $(unstage)
d32ab992 25402 @[ -f ./sim/Makefile ] || exit 0; \
295f4e42
NN
25403 r=`${PWD_COMMAND}`; export r; \
25404 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25405 $(HOST_EXPORTS) \
d32ab992 25406 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25407 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25408 done; \
d32ab992 25409 echo "Doing dvi in sim" ; \
215c351a 25410 (cd $(HOST_SUBDIR)/sim && \
295f4e42
NN
25411 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25412 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25413 "RANLIB=$${RANLIB}" \
25414 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25415 dvi) \
295f4e42
NN
25416 || exit 1
25417
d32ab992 25418@endif sim
295f4e42 25419
f87a2b2e
MS
25420.PHONY: maybe-html-sim html-sim
25421maybe-html-sim:
25422@if sim
25423maybe-html-sim: html-sim
25424
25425html-sim: \
05750653 25426 configure-sim
f41d6665 25427 @: $(MAKE); $(unstage)
f87a2b2e
MS
25428 @[ -f ./sim/Makefile ] || exit 0; \
25429 r=`${PWD_COMMAND}`; export r; \
25430 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
25431 $(HOST_EXPORTS) \
25432 for flag in $(EXTRA_HOST_FLAGS) ; do \
25433 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25434 done; \
25435 echo "Doing html in sim" ; \
215c351a 25436 (cd $(HOST_SUBDIR)/sim && \
f87a2b2e
MS
25437 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25438 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25439 "RANLIB=$${RANLIB}" \
25440 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
25441 html) \
25442 || exit 1
25443
25444@endif sim
25445
d32ab992
PB
25446.PHONY: maybe-TAGS-sim TAGS-sim
25447maybe-TAGS-sim:
25448@if sim
25449maybe-TAGS-sim: TAGS-sim
295f4e42 25450
d32ab992 25451TAGS-sim: \
05750653 25452 configure-sim
f41d6665 25453 @: $(MAKE); $(unstage)
d32ab992 25454 @[ -f ./sim/Makefile ] || exit 0; \
295f4e42
NN
25455 r=`${PWD_COMMAND}`; export r; \
25456 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25457 $(HOST_EXPORTS) \
d32ab992 25458 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25459 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25460 done; \
d32ab992 25461 echo "Doing TAGS in sim" ; \
215c351a 25462 (cd $(HOST_SUBDIR)/sim && \
295f4e42
NN
25463 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25464 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25465 "RANLIB=$${RANLIB}" \
25466 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25467 TAGS) \
295f4e42
NN
25468 || exit 1
25469
d32ab992 25470@endif sim
295f4e42 25471
d32ab992
PB
25472.PHONY: maybe-install-info-sim install-info-sim
25473maybe-install-info-sim:
25474@if sim
25475maybe-install-info-sim: install-info-sim
295f4e42 25476
d32ab992
PB
25477install-info-sim: \
25478 configure-sim \
05750653 25479 info-sim
f41d6665 25480 @: $(MAKE); $(unstage)
d32ab992 25481 @[ -f ./sim/Makefile ] || exit 0; \
295f4e42
NN
25482 r=`${PWD_COMMAND}`; export r; \
25483 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25484 $(HOST_EXPORTS) \
d32ab992 25485 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25486 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25487 done; \
d32ab992 25488 echo "Doing install-info in sim" ; \
215c351a 25489 (cd $(HOST_SUBDIR)/sim && \
295f4e42
NN
25490 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25491 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25492 "RANLIB=$${RANLIB}" \
25493 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25494 install-info) \
295f4e42
NN
25495 || exit 1
25496
d32ab992 25497@endif sim
295f4e42 25498
65d6e994
CD
25499.PHONY: maybe-install-html-sim install-html-sim
25500maybe-install-html-sim:
25501@if sim
25502maybe-install-html-sim: install-html-sim
25503
25504install-html-sim: \
25505 configure-sim \
25506 html-sim
25507 @: $(MAKE); $(unstage)
25508 @[ -f ./sim/Makefile ] || exit 0; \
25509 r=`${PWD_COMMAND}`; export r; \
25510 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25511 $(HOST_EXPORTS) \
25512 for flag in $(EXTRA_HOST_FLAGS) ; do \
25513 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25514 done; \
25515 echo "Doing install-html in sim" ; \
25516 (cd $(HOST_SUBDIR)/sim && \
25517 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25518 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25519 "RANLIB=$${RANLIB}" \
25520 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
25521 install-html) \
25522 || exit 1
25523
25524@endif sim
25525
d32ab992
PB
25526.PHONY: maybe-installcheck-sim installcheck-sim
25527maybe-installcheck-sim:
25528@if sim
25529maybe-installcheck-sim: installcheck-sim
295f4e42 25530
d32ab992 25531installcheck-sim: \
05750653 25532 configure-sim
f41d6665 25533 @: $(MAKE); $(unstage)
d32ab992 25534 @[ -f ./sim/Makefile ] || exit 0; \
295f4e42
NN
25535 r=`${PWD_COMMAND}`; export r; \
25536 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25537 $(HOST_EXPORTS) \
d32ab992 25538 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25539 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25540 done; \
d32ab992 25541 echo "Doing installcheck in sim" ; \
215c351a 25542 (cd $(HOST_SUBDIR)/sim && \
295f4e42
NN
25543 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25544 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25545 "RANLIB=$${RANLIB}" \
25546 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25547 installcheck) \
295f4e42
NN
25548 || exit 1
25549
d32ab992 25550@endif sim
295f4e42 25551
d32ab992
PB
25552.PHONY: maybe-mostlyclean-sim mostlyclean-sim
25553maybe-mostlyclean-sim:
25554@if sim
25555maybe-mostlyclean-sim: mostlyclean-sim
295f4e42 25556
05750653 25557mostlyclean-sim:
f41d6665 25558 @: $(MAKE); $(unstage)
d32ab992 25559 @[ -f ./sim/Makefile ] || exit 0; \
295f4e42
NN
25560 r=`${PWD_COMMAND}`; export r; \
25561 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25562 $(HOST_EXPORTS) \
d32ab992 25563 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25564 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25565 done; \
d32ab992 25566 echo "Doing mostlyclean in sim" ; \
215c351a 25567 (cd $(HOST_SUBDIR)/sim && \
295f4e42
NN
25568 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25569 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25570 "RANLIB=$${RANLIB}" \
25571 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25572 mostlyclean) \
295f4e42
NN
25573 || exit 1
25574
d32ab992 25575@endif sim
295f4e42 25576
d32ab992
PB
25577.PHONY: maybe-clean-sim clean-sim
25578maybe-clean-sim:
25579@if sim
25580maybe-clean-sim: clean-sim
295f4e42 25581
05750653 25582clean-sim:
f41d6665 25583 @: $(MAKE); $(unstage)
d32ab992 25584 @[ -f ./sim/Makefile ] || exit 0; \
295f4e42
NN
25585 r=`${PWD_COMMAND}`; export r; \
25586 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25587 $(HOST_EXPORTS) \
d32ab992 25588 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25589 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25590 done; \
d32ab992 25591 echo "Doing clean in sim" ; \
215c351a 25592 (cd $(HOST_SUBDIR)/sim && \
295f4e42
NN
25593 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25594 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25595 "RANLIB=$${RANLIB}" \
25596 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25597 clean) \
295f4e42
NN
25598 || exit 1
25599
d32ab992 25600@endif sim
295f4e42 25601
d32ab992
PB
25602.PHONY: maybe-distclean-sim distclean-sim
25603maybe-distclean-sim:
25604@if sim
25605maybe-distclean-sim: distclean-sim
295f4e42 25606
05750653 25607distclean-sim:
f41d6665 25608 @: $(MAKE); $(unstage)
d32ab992 25609 @[ -f ./sim/Makefile ] || exit 0; \
295f4e42
NN
25610 r=`${PWD_COMMAND}`; export r; \
25611 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25612 $(HOST_EXPORTS) \
d32ab992 25613 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25614 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25615 done; \
d32ab992 25616 echo "Doing distclean in sim" ; \
215c351a 25617 (cd $(HOST_SUBDIR)/sim && \
295f4e42
NN
25618 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25619 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25620 "RANLIB=$${RANLIB}" \
25621 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25622 distclean) \
295f4e42
NN
25623 || exit 1
25624
d32ab992 25625@endif sim
295f4e42 25626
d32ab992
PB
25627.PHONY: maybe-maintainer-clean-sim maintainer-clean-sim
25628maybe-maintainer-clean-sim:
25629@if sim
25630maybe-maintainer-clean-sim: maintainer-clean-sim
295f4e42 25631
05750653 25632maintainer-clean-sim:
f41d6665 25633 @: $(MAKE); $(unstage)
d32ab992 25634 @[ -f ./sim/Makefile ] || exit 0; \
295f4e42
NN
25635 r=`${PWD_COMMAND}`; export r; \
25636 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25637 $(HOST_EXPORTS) \
d32ab992 25638 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25639 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25640 done; \
d32ab992 25641 echo "Doing maintainer-clean in sim" ; \
215c351a 25642 (cd $(HOST_SUBDIR)/sim && \
295f4e42
NN
25643 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25644 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25645 "RANLIB=$${RANLIB}" \
25646 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25647 maintainer-clean) \
295f4e42
NN
25648 || exit 1
25649
d32ab992 25650@endif sim
4977bab6
ZW
25651
25652
25b42232 25653
d32ab992
PB
25654.PHONY: configure-tar maybe-configure-tar
25655maybe-configure-tar:
3ff3adad
PB
25656@if gcc-bootstrap
25657configure-tar: stage_current
25658@endif gcc-bootstrap
d32ab992
PB
25659@if tar
25660maybe-configure-tar: configure-tar
cc11cc9b 25661configure-tar:
f41d6665 25662 @: $(MAKE); $(unstage)
cc11cc9b 25663 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 25664 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
25665 test ! -f $(HOST_SUBDIR)/tar/Makefile || exit 0; \
25666 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/tar ; \
4fc4dd12 25667 $(HOST_EXPORTS) \
25b42232
PB
25668 echo Configuring in $(HOST_SUBDIR)/tar; \
25669 cd "$(HOST_SUBDIR)/tar" || exit 1; \
4977bab6 25670 case $(srcdir) in \
215c351a
PB
25671 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
25672 *) topdir=`echo $(HOST_SUBDIR)/tar/ | \
25673 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 25674 esac; \
215c351a
PB
25675 srcdiroption="--srcdir=$${topdir}/tar"; \
25676 libsrcdir="$$s/tar"; \
4977bab6 25677 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 25678 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 25679 || exit 1
d32ab992 25680@endif tar
4977bab6 25681
25b42232
PB
25682
25683
ce406537
PB
25684
25685
d32ab992
PB
25686.PHONY: all-tar maybe-all-tar
25687maybe-all-tar:
3ff3adad
PB
25688@if gcc-bootstrap
25689all-tar: stage_current
25690@endif gcc-bootstrap
d32ab992 25691@if tar
7e0b5752 25692TARGET-tar=all
d32ab992
PB
25693maybe-all-tar: all-tar
25694all-tar: configure-tar
f41d6665 25695 @: $(MAKE); $(unstage)
8c90b13a
L
25696 @r=`${PWD_COMMAND}`; export r; \
25697 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25698 $(HOST_EXPORTS) \
215c351a
PB
25699 (cd $(HOST_SUBDIR)/tar && \
25700 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-tar))
d32ab992 25701@endif tar
4977bab6 25702
25b42232 25703
ce406537
PB
25704
25705
d32ab992
PB
25706.PHONY: check-tar maybe-check-tar
25707maybe-check-tar:
25708@if tar
25709maybe-check-tar: check-tar
4977bab6 25710
d32ab992 25711check-tar:
f41d6665 25712 @: $(MAKE); $(unstage)
8c90b13a
L
25713 @r=`${PWD_COMMAND}`; export r; \
25714 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25715 $(HOST_EXPORTS) \
215c351a
PB
25716 (cd $(HOST_SUBDIR)/tar && \
25717 $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6 25718
d32ab992 25719@endif tar
4977bab6 25720
d32ab992
PB
25721.PHONY: install-tar maybe-install-tar
25722maybe-install-tar:
25723@if tar
25724maybe-install-tar: install-tar
7e2dbcef 25725
d32ab992 25726install-tar: installdirs
f41d6665 25727 @: $(MAKE); $(unstage)
d32ab992
PB
25728 @r=`${PWD_COMMAND}`; export r; \
25729 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d32ab992 25730 $(HOST_EXPORTS) \
215c351a 25731 (cd $(HOST_SUBDIR)/tar && \
ace9ac7b 25732 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 25733
d32ab992 25734@endif tar
295f4e42
NN
25735
25736# Other targets (info, dvi, etc.)
25737
d32ab992
PB
25738.PHONY: maybe-info-tar info-tar
25739maybe-info-tar:
25740@if tar
25741maybe-info-tar: info-tar
295f4e42 25742
d32ab992 25743info-tar: \
05750653 25744 configure-tar
f41d6665 25745 @: $(MAKE); $(unstage)
d32ab992 25746 @[ -f ./tar/Makefile ] || exit 0; \
295f4e42 25747 r=`${PWD_COMMAND}`; export r; \
8c90b13a 25748 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25749 $(HOST_EXPORTS) \
d32ab992 25750 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25751 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25752 done; \
d32ab992 25753 echo "Doing info in tar" ; \
215c351a 25754 (cd $(HOST_SUBDIR)/tar && \
295f4e42
NN
25755 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25756 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25757 "RANLIB=$${RANLIB}" \
25758 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25759 info) \
295f4e42 25760 || exit 1
4977bab6 25761
d32ab992 25762@endif tar
4977bab6 25763
d32ab992
PB
25764.PHONY: maybe-dvi-tar dvi-tar
25765maybe-dvi-tar:
25766@if tar
25767maybe-dvi-tar: dvi-tar
295f4e42 25768
d32ab992 25769dvi-tar: \
05750653 25770 configure-tar
f41d6665 25771 @: $(MAKE); $(unstage)
d32ab992 25772 @[ -f ./tar/Makefile ] || exit 0; \
8c90b13a
L
25773 r=`${PWD_COMMAND}`; export r; \
25774 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25775 $(HOST_EXPORTS) \
d32ab992 25776 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25777 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25778 done; \
d32ab992 25779 echo "Doing dvi in tar" ; \
215c351a 25780 (cd $(HOST_SUBDIR)/tar && \
295f4e42
NN
25781 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25782 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25783 "RANLIB=$${RANLIB}" \
25784 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25785 dvi) \
4977bab6
ZW
25786 || exit 1
25787
d32ab992 25788@endif tar
295f4e42 25789
f87a2b2e
MS
25790.PHONY: maybe-html-tar html-tar
25791maybe-html-tar:
25792@if tar
25793maybe-html-tar: html-tar
25794
25795html-tar: \
05750653 25796 configure-tar
f41d6665 25797 @: $(MAKE); $(unstage)
f87a2b2e
MS
25798 @[ -f ./tar/Makefile ] || exit 0; \
25799 r=`${PWD_COMMAND}`; export r; \
25800 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
25801 $(HOST_EXPORTS) \
25802 for flag in $(EXTRA_HOST_FLAGS) ; do \
25803 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25804 done; \
25805 echo "Doing html in tar" ; \
215c351a 25806 (cd $(HOST_SUBDIR)/tar && \
f87a2b2e
MS
25807 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25808 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25809 "RANLIB=$${RANLIB}" \
25810 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
25811 html) \
25812 || exit 1
25813
25814@endif tar
25815
d32ab992
PB
25816.PHONY: maybe-TAGS-tar TAGS-tar
25817maybe-TAGS-tar:
25818@if tar
25819maybe-TAGS-tar: TAGS-tar
295f4e42 25820
d32ab992 25821TAGS-tar: \
05750653 25822 configure-tar
f41d6665 25823 @: $(MAKE); $(unstage)
d32ab992 25824 @[ -f ./tar/Makefile ] || exit 0; \
295f4e42 25825 r=`${PWD_COMMAND}`; export r; \
8c90b13a 25826 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25827 $(HOST_EXPORTS) \
d32ab992 25828 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25829 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25830 done; \
d32ab992 25831 echo "Doing TAGS in tar" ; \
215c351a 25832 (cd $(HOST_SUBDIR)/tar && \
295f4e42
NN
25833 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25834 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25835 "RANLIB=$${RANLIB}" \
25836 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25837 TAGS) \
295f4e42 25838 || exit 1
4977bab6 25839
d32ab992 25840@endif tar
4977bab6 25841
d32ab992
PB
25842.PHONY: maybe-install-info-tar install-info-tar
25843maybe-install-info-tar:
25844@if tar
25845maybe-install-info-tar: install-info-tar
295f4e42 25846
d32ab992
PB
25847install-info-tar: \
25848 configure-tar \
05750653 25849 info-tar
f41d6665 25850 @: $(MAKE); $(unstage)
d32ab992 25851 @[ -f ./tar/Makefile ] || exit 0; \
295f4e42 25852 r=`${PWD_COMMAND}`; export r; \
8c90b13a 25853 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25854 $(HOST_EXPORTS) \
d32ab992 25855 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25856 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25857 done; \
d32ab992 25858 echo "Doing install-info in tar" ; \
215c351a 25859 (cd $(HOST_SUBDIR)/tar && \
d32ab992 25860 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
295f4e42
NN
25861 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25862 "RANLIB=$${RANLIB}" \
25863 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25864 install-info) \
295f4e42 25865 || exit 1
4977bab6 25866
d32ab992 25867@endif tar
4977bab6 25868
65d6e994
CD
25869.PHONY: maybe-install-html-tar install-html-tar
25870maybe-install-html-tar:
25871@if tar
25872maybe-install-html-tar: install-html-tar
25873
25874install-html-tar: \
25875 configure-tar \
25876 html-tar
25877 @: $(MAKE); $(unstage)
25878 @[ -f ./tar/Makefile ] || exit 0; \
25879 r=`${PWD_COMMAND}`; export r; \
25880 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25881 $(HOST_EXPORTS) \
25882 for flag in $(EXTRA_HOST_FLAGS) ; do \
25883 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25884 done; \
25885 echo "Doing install-html in tar" ; \
25886 (cd $(HOST_SUBDIR)/tar && \
25887 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25888 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25889 "RANLIB=$${RANLIB}" \
25890 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
25891 install-html) \
25892 || exit 1
25893
25894@endif tar
25895
d32ab992
PB
25896.PHONY: maybe-installcheck-tar installcheck-tar
25897maybe-installcheck-tar:
25898@if tar
25899maybe-installcheck-tar: installcheck-tar
295f4e42 25900
d32ab992 25901installcheck-tar: \
05750653 25902 configure-tar
f41d6665 25903 @: $(MAKE); $(unstage)
d32ab992 25904 @[ -f ./tar/Makefile ] || exit 0; \
295f4e42
NN
25905 r=`${PWD_COMMAND}`; export r; \
25906 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25907 $(HOST_EXPORTS) \
d32ab992 25908 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25909 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25910 done; \
d32ab992 25911 echo "Doing installcheck in tar" ; \
215c351a 25912 (cd $(HOST_SUBDIR)/tar && \
295f4e42
NN
25913 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25914 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25915 "RANLIB=$${RANLIB}" \
25916 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25917 installcheck) \
295f4e42
NN
25918 || exit 1
25919
d32ab992 25920@endif tar
295f4e42 25921
d32ab992
PB
25922.PHONY: maybe-mostlyclean-tar mostlyclean-tar
25923maybe-mostlyclean-tar:
25924@if tar
25925maybe-mostlyclean-tar: mostlyclean-tar
295f4e42 25926
05750653 25927mostlyclean-tar:
f41d6665 25928 @: $(MAKE); $(unstage)
d32ab992 25929 @[ -f ./tar/Makefile ] || exit 0; \
295f4e42
NN
25930 r=`${PWD_COMMAND}`; export r; \
25931 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25932 $(HOST_EXPORTS) \
d32ab992 25933 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25934 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25935 done; \
d32ab992 25936 echo "Doing mostlyclean in tar" ; \
215c351a 25937 (cd $(HOST_SUBDIR)/tar && \
295f4e42
NN
25938 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25939 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25940 "RANLIB=$${RANLIB}" \
25941 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25942 mostlyclean) \
295f4e42
NN
25943 || exit 1
25944
d32ab992 25945@endif tar
295f4e42 25946
d32ab992
PB
25947.PHONY: maybe-clean-tar clean-tar
25948maybe-clean-tar:
25949@if tar
25950maybe-clean-tar: clean-tar
295f4e42 25951
05750653 25952clean-tar:
f41d6665 25953 @: $(MAKE); $(unstage)
d32ab992 25954 @[ -f ./tar/Makefile ] || exit 0; \
295f4e42
NN
25955 r=`${PWD_COMMAND}`; export r; \
25956 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25957 $(HOST_EXPORTS) \
d32ab992 25958 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25959 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25960 done; \
d32ab992 25961 echo "Doing clean in tar" ; \
215c351a 25962 (cd $(HOST_SUBDIR)/tar && \
295f4e42
NN
25963 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25964 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25965 "RANLIB=$${RANLIB}" \
25966 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25967 clean) \
295f4e42
NN
25968 || exit 1
25969
d32ab992 25970@endif tar
295f4e42 25971
d32ab992
PB
25972.PHONY: maybe-distclean-tar distclean-tar
25973maybe-distclean-tar:
25974@if tar
25975maybe-distclean-tar: distclean-tar
295f4e42 25976
05750653 25977distclean-tar:
f41d6665 25978 @: $(MAKE); $(unstage)
d32ab992 25979 @[ -f ./tar/Makefile ] || exit 0; \
295f4e42
NN
25980 r=`${PWD_COMMAND}`; export r; \
25981 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25982 $(HOST_EXPORTS) \
d32ab992 25983 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25984 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25985 done; \
d32ab992 25986 echo "Doing distclean in tar" ; \
215c351a 25987 (cd $(HOST_SUBDIR)/tar && \
295f4e42
NN
25988 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25989 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25990 "RANLIB=$${RANLIB}" \
25991 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25992 distclean) \
295f4e42
NN
25993 || exit 1
25994
d32ab992 25995@endif tar
295f4e42 25996
d32ab992
PB
25997.PHONY: maybe-maintainer-clean-tar maintainer-clean-tar
25998maybe-maintainer-clean-tar:
25999@if tar
26000maybe-maintainer-clean-tar: maintainer-clean-tar
7e2dbcef 26001
05750653 26002maintainer-clean-tar:
f41d6665 26003 @: $(MAKE); $(unstage)
d32ab992 26004 @[ -f ./tar/Makefile ] || exit 0; \
295f4e42 26005 r=`${PWD_COMMAND}`; export r; \
8c90b13a 26006 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26007 $(HOST_EXPORTS) \
d32ab992 26008 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26009 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26010 done; \
d32ab992 26011 echo "Doing maintainer-clean in tar" ; \
215c351a 26012 (cd $(HOST_SUBDIR)/tar && \
295f4e42
NN
26013 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26014 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26015 "RANLIB=$${RANLIB}" \
26016 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26017 maintainer-clean) \
295f4e42 26018 || exit 1
4977bab6 26019
d32ab992 26020@endif tar
4977bab6 26021
295f4e42 26022
25b42232 26023
d32ab992
PB
26024.PHONY: configure-texinfo maybe-configure-texinfo
26025maybe-configure-texinfo:
3ff3adad
PB
26026@if gcc-bootstrap
26027configure-texinfo: stage_current
26028@endif gcc-bootstrap
d32ab992
PB
26029@if texinfo
26030maybe-configure-texinfo: configure-texinfo
cc11cc9b 26031configure-texinfo:
f41d6665 26032 @: $(MAKE); $(unstage)
cc11cc9b 26033 @r=`${PWD_COMMAND}`; export r; \
4fc4dd12 26034 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
26035 test ! -f $(HOST_SUBDIR)/texinfo/Makefile || exit 0; \
26036 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/texinfo ; \
4fc4dd12 26037 $(HOST_EXPORTS) \
25b42232
PB
26038 echo Configuring in $(HOST_SUBDIR)/texinfo; \
26039 cd "$(HOST_SUBDIR)/texinfo" || exit 1; \
4977bab6 26040 case $(srcdir) in \
215c351a
PB
26041 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
26042 *) topdir=`echo $(HOST_SUBDIR)/texinfo/ | \
26043 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 26044 esac; \
215c351a
PB
26045 srcdiroption="--srcdir=$${topdir}/texinfo"; \
26046 libsrcdir="$$s/texinfo"; \
4977bab6 26047 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 26048 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 26049 || exit 1
d32ab992 26050@endif texinfo
4977bab6 26051
25b42232
PB
26052
26053
ce406537
PB
26054
26055
d32ab992
PB
26056.PHONY: all-texinfo maybe-all-texinfo
26057maybe-all-texinfo:
3ff3adad
PB
26058@if gcc-bootstrap
26059all-texinfo: stage_current
26060@endif gcc-bootstrap
d32ab992 26061@if texinfo
7e0b5752 26062TARGET-texinfo=all
d32ab992
PB
26063maybe-all-texinfo: all-texinfo
26064all-texinfo: configure-texinfo
f41d6665 26065 @: $(MAKE); $(unstage)
8c90b13a
L
26066 @r=`${PWD_COMMAND}`; export r; \
26067 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26068 $(HOST_EXPORTS) \
215c351a
PB
26069 (cd $(HOST_SUBDIR)/texinfo && \
26070 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-texinfo))
d32ab992 26071@endif texinfo
4977bab6 26072
25b42232 26073
ce406537
PB
26074
26075
d32ab992
PB
26076.PHONY: check-texinfo maybe-check-texinfo
26077maybe-check-texinfo:
26078@if texinfo
26079maybe-check-texinfo: check-texinfo
4977bab6 26080
d32ab992 26081check-texinfo:
f41d6665 26082 @: $(MAKE); $(unstage)
295f4e42
NN
26083 @r=`${PWD_COMMAND}`; export r; \
26084 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26085 $(HOST_EXPORTS) \
215c351a
PB
26086 (cd $(HOST_SUBDIR)/texinfo && \
26087 $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6 26088
d32ab992 26089@endif texinfo
4977bab6 26090
d32ab992
PB
26091.PHONY: install-texinfo maybe-install-texinfo
26092maybe-install-texinfo:
26093@if texinfo
26094maybe-install-texinfo: install-texinfo
7e2dbcef 26095
d32ab992 26096install-texinfo:
295f4e42 26097
d32ab992 26098@endif texinfo
295f4e42
NN
26099
26100# Other targets (info, dvi, etc.)
26101
d32ab992
PB
26102.PHONY: maybe-info-texinfo info-texinfo
26103maybe-info-texinfo:
26104@if texinfo
26105maybe-info-texinfo: info-texinfo
295f4e42 26106
d32ab992 26107info-texinfo: \
05750653 26108 configure-texinfo
f41d6665 26109 @: $(MAKE); $(unstage)
d32ab992 26110 @[ -f ./texinfo/Makefile ] || exit 0; \
295f4e42
NN
26111 r=`${PWD_COMMAND}`; export r; \
26112 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26113 $(HOST_EXPORTS) \
d32ab992 26114 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26115 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26116 done; \
d32ab992 26117 echo "Doing info in texinfo" ; \
215c351a 26118 (cd $(HOST_SUBDIR)/texinfo && \
295f4e42
NN
26119 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26120 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26121 "RANLIB=$${RANLIB}" \
26122 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26123 info) \
295f4e42
NN
26124 || exit 1
26125
d32ab992 26126@endif texinfo
295f4e42 26127
d32ab992
PB
26128.PHONY: maybe-dvi-texinfo dvi-texinfo
26129maybe-dvi-texinfo:
26130@if texinfo
26131maybe-dvi-texinfo: dvi-texinfo
295f4e42 26132
d32ab992 26133dvi-texinfo: \
05750653 26134 configure-texinfo
f41d6665 26135 @: $(MAKE); $(unstage)
d32ab992 26136 @[ -f ./texinfo/Makefile ] || exit 0; \
295f4e42
NN
26137 r=`${PWD_COMMAND}`; export r; \
26138 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26139 $(HOST_EXPORTS) \
d32ab992 26140 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26141 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26142 done; \
d32ab992 26143 echo "Doing dvi in texinfo" ; \
215c351a 26144 (cd $(HOST_SUBDIR)/texinfo && \
295f4e42
NN
26145 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26146 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26147 "RANLIB=$${RANLIB}" \
26148 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26149 dvi) \
295f4e42
NN
26150 || exit 1
26151
d32ab992 26152@endif texinfo
295f4e42 26153
f87a2b2e
MS
26154.PHONY: maybe-html-texinfo html-texinfo
26155maybe-html-texinfo:
26156@if texinfo
26157maybe-html-texinfo: html-texinfo
26158
26159html-texinfo: \
05750653 26160 configure-texinfo
f41d6665 26161 @: $(MAKE); $(unstage)
f87a2b2e
MS
26162 @[ -f ./texinfo/Makefile ] || exit 0; \
26163 r=`${PWD_COMMAND}`; export r; \
26164 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
26165 $(HOST_EXPORTS) \
26166 for flag in $(EXTRA_HOST_FLAGS) ; do \
26167 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26168 done; \
26169 echo "Doing html in texinfo" ; \
215c351a 26170 (cd $(HOST_SUBDIR)/texinfo && \
f87a2b2e
MS
26171 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26172 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26173 "RANLIB=$${RANLIB}" \
26174 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
26175 html) \
26176 || exit 1
26177
26178@endif texinfo
26179
d32ab992
PB
26180.PHONY: maybe-TAGS-texinfo TAGS-texinfo
26181maybe-TAGS-texinfo:
26182@if texinfo
26183maybe-TAGS-texinfo: TAGS-texinfo
295f4e42 26184
d32ab992 26185TAGS-texinfo: \
05750653 26186 configure-texinfo
f41d6665 26187 @: $(MAKE); $(unstage)
d32ab992 26188 @[ -f ./texinfo/Makefile ] || exit 0; \
295f4e42
NN
26189 r=`${PWD_COMMAND}`; export r; \
26190 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26191 $(HOST_EXPORTS) \
d32ab992 26192 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26193 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26194 done; \
d32ab992 26195 echo "Doing TAGS in texinfo" ; \
215c351a 26196 (cd $(HOST_SUBDIR)/texinfo && \
295f4e42
NN
26197 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26198 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26199 "RANLIB=$${RANLIB}" \
26200 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26201 TAGS) \
295f4e42
NN
26202 || exit 1
26203
d32ab992 26204@endif texinfo
295f4e42 26205
d32ab992
PB
26206.PHONY: maybe-install-info-texinfo install-info-texinfo
26207maybe-install-info-texinfo:
26208@if texinfo
26209maybe-install-info-texinfo: install-info-texinfo
295f4e42 26210
d32ab992
PB
26211install-info-texinfo: \
26212 configure-texinfo \
05750653 26213 info-texinfo
f41d6665 26214 @: $(MAKE); $(unstage)
d32ab992 26215 @[ -f ./texinfo/Makefile ] || exit 0; \
295f4e42
NN
26216 r=`${PWD_COMMAND}`; export r; \
26217 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26218 $(HOST_EXPORTS) \
d32ab992 26219 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26220 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26221 done; \
d32ab992 26222 echo "Doing install-info in texinfo" ; \
215c351a 26223 (cd $(HOST_SUBDIR)/texinfo && \
295f4e42
NN
26224 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26225 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26226 "RANLIB=$${RANLIB}" \
26227 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26228 install-info) \
295f4e42
NN
26229 || exit 1
26230
d32ab992 26231@endif texinfo
295f4e42 26232
65d6e994
CD
26233.PHONY: maybe-install-html-texinfo install-html-texinfo
26234maybe-install-html-texinfo:
26235@if texinfo
26236maybe-install-html-texinfo: install-html-texinfo
26237
26238install-html-texinfo: \
26239 configure-texinfo \
26240 html-texinfo
26241 @: $(MAKE); $(unstage)
26242 @[ -f ./texinfo/Makefile ] || exit 0; \
26243 r=`${PWD_COMMAND}`; export r; \
26244 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26245 $(HOST_EXPORTS) \
26246 for flag in $(EXTRA_HOST_FLAGS) ; do \
26247 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26248 done; \
26249 echo "Doing install-html in texinfo" ; \
26250 (cd $(HOST_SUBDIR)/texinfo && \
26251 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26252 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26253 "RANLIB=$${RANLIB}" \
26254 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
26255 install-html) \
26256 || exit 1
26257
26258@endif texinfo
26259
d32ab992
PB
26260.PHONY: maybe-installcheck-texinfo installcheck-texinfo
26261maybe-installcheck-texinfo:
26262@if texinfo
26263maybe-installcheck-texinfo: installcheck-texinfo
295f4e42 26264
d32ab992 26265installcheck-texinfo: \
05750653 26266 configure-texinfo
f41d6665 26267 @: $(MAKE); $(unstage)
d32ab992 26268 @[ -f ./texinfo/Makefile ] || exit 0; \
295f4e42
NN
26269 r=`${PWD_COMMAND}`; export r; \
26270 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26271 $(HOST_EXPORTS) \
d32ab992 26272 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26273 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26274 done; \
d32ab992 26275 echo "Doing installcheck in texinfo" ; \
215c351a 26276 (cd $(HOST_SUBDIR)/texinfo && \
295f4e42
NN
26277 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26278 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26279 "RANLIB=$${RANLIB}" \
26280 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26281 installcheck) \
295f4e42
NN
26282 || exit 1
26283
d32ab992 26284@endif texinfo
295f4e42 26285
d32ab992
PB
26286.PHONY: maybe-mostlyclean-texinfo mostlyclean-texinfo
26287maybe-mostlyclean-texinfo:
26288@if texinfo
26289maybe-mostlyclean-texinfo: mostlyclean-texinfo
295f4e42 26290
05750653 26291mostlyclean-texinfo:
f41d6665 26292 @: $(MAKE); $(unstage)
d32ab992 26293 @[ -f ./texinfo/Makefile ] || exit 0; \
295f4e42
NN
26294 r=`${PWD_COMMAND}`; export r; \
26295 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26296 $(HOST_EXPORTS) \
d32ab992 26297 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26298 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26299 done; \
d32ab992 26300 echo "Doing mostlyclean in texinfo" ; \
215c351a 26301 (cd $(HOST_SUBDIR)/texinfo && \
295f4e42
NN
26302 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26303 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26304 "RANLIB=$${RANLIB}" \
26305 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26306 mostlyclean) \
295f4e42
NN
26307 || exit 1
26308
d32ab992 26309@endif texinfo
295f4e42 26310
d32ab992
PB
26311.PHONY: maybe-clean-texinfo clean-texinfo
26312maybe-clean-texinfo:
26313@if texinfo
26314maybe-clean-texinfo: clean-texinfo
295f4e42 26315
05750653 26316clean-texinfo:
f41d6665 26317 @: $(MAKE); $(unstage)
d32ab992 26318 @[ -f ./texinfo/Makefile ] || exit 0; \
295f4e42
NN
26319 r=`${PWD_COMMAND}`; export r; \
26320 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26321 $(HOST_EXPORTS) \
d32ab992 26322 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26323 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26324 done; \
d32ab992 26325 echo "Doing clean in texinfo" ; \
215c351a 26326 (cd $(HOST_SUBDIR)/texinfo && \
295f4e42
NN
26327 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26328 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26329 "RANLIB=$${RANLIB}" \
26330 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26331 clean) \
295f4e42
NN
26332 || exit 1
26333
d32ab992 26334@endif texinfo
295f4e42 26335
d32ab992
PB
26336.PHONY: maybe-distclean-texinfo distclean-texinfo
26337maybe-distclean-texinfo:
26338@if texinfo
26339maybe-distclean-texinfo: distclean-texinfo
295f4e42 26340
05750653 26341distclean-texinfo:
f41d6665 26342 @: $(MAKE); $(unstage)
d32ab992 26343 @[ -f ./texinfo/Makefile ] || exit 0; \
295f4e42
NN
26344 r=`${PWD_COMMAND}`; export r; \
26345 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26346 $(HOST_EXPORTS) \
d32ab992 26347 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26348 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26349 done; \
d32ab992 26350 echo "Doing distclean in texinfo" ; \
215c351a 26351 (cd $(HOST_SUBDIR)/texinfo && \
295f4e42
NN
26352 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26353 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26354 "RANLIB=$${RANLIB}" \
26355 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26356 distclean) \
295f4e42
NN
26357 || exit 1
26358
d32ab992 26359@endif texinfo
295f4e42 26360
d32ab992
PB
26361.PHONY: maybe-maintainer-clean-texinfo maintainer-clean-texinfo
26362maybe-maintainer-clean-texinfo:
26363@if texinfo
26364maybe-maintainer-clean-texinfo: maintainer-clean-texinfo
295f4e42 26365
05750653 26366maintainer-clean-texinfo:
f41d6665 26367 @: $(MAKE); $(unstage)
d32ab992 26368 @[ -f ./texinfo/Makefile ] || exit 0; \
295f4e42
NN
26369 r=`${PWD_COMMAND}`; export r; \
26370 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26371 $(HOST_EXPORTS) \
d32ab992 26372 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26373 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26374 done; \
d32ab992 26375 echo "Doing maintainer-clean in texinfo" ; \
215c351a 26376 (cd $(HOST_SUBDIR)/texinfo && \
295f4e42
NN
26377 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26378 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26379 "RANLIB=$${RANLIB}" \
26380 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26381 maintainer-clean) \
295f4e42 26382 || exit 1
4977bab6 26383
d32ab992 26384@endif texinfo
4977bab6 26385
295f4e42 26386
25b42232 26387
d32ab992
PB
26388.PHONY: configure-textutils maybe-configure-textutils
26389maybe-configure-textutils:
3ff3adad
PB
26390@if gcc-bootstrap
26391configure-textutils: stage_current
26392@endif gcc-bootstrap
d32ab992
PB
26393@if textutils
26394maybe-configure-textutils: configure-textutils
cc11cc9b 26395configure-textutils:
f41d6665 26396 @: $(MAKE); $(unstage)
cc11cc9b 26397 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 26398 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
26399 test ! -f $(HOST_SUBDIR)/textutils/Makefile || exit 0; \
26400 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/textutils ; \
4fc4dd12 26401 $(HOST_EXPORTS) \
25b42232
PB
26402 echo Configuring in $(HOST_SUBDIR)/textutils; \
26403 cd "$(HOST_SUBDIR)/textutils" || exit 1; \
4977bab6 26404 case $(srcdir) in \
215c351a
PB
26405 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
26406 *) topdir=`echo $(HOST_SUBDIR)/textutils/ | \
26407 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 26408 esac; \
215c351a
PB
26409 srcdiroption="--srcdir=$${topdir}/textutils"; \
26410 libsrcdir="$$s/textutils"; \
4977bab6 26411 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 26412 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 26413 || exit 1
d32ab992 26414@endif textutils
4977bab6 26415
25b42232
PB
26416
26417
ce406537
PB
26418
26419
d32ab992
PB
26420.PHONY: all-textutils maybe-all-textutils
26421maybe-all-textutils:
3ff3adad
PB
26422@if gcc-bootstrap
26423all-textutils: stage_current
26424@endif gcc-bootstrap
d32ab992 26425@if textutils
7e0b5752 26426TARGET-textutils=all
d32ab992
PB
26427maybe-all-textutils: all-textutils
26428all-textutils: configure-textutils
f41d6665 26429 @: $(MAKE); $(unstage)
8c90b13a
L
26430 @r=`${PWD_COMMAND}`; export r; \
26431 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26432 $(HOST_EXPORTS) \
215c351a
PB
26433 (cd $(HOST_SUBDIR)/textutils && \
26434 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-textutils))
d32ab992 26435@endif textutils
4977bab6 26436
25b42232 26437
ce406537
PB
26438
26439
d32ab992
PB
26440.PHONY: check-textutils maybe-check-textutils
26441maybe-check-textutils:
26442@if textutils
26443maybe-check-textutils: check-textutils
4977bab6 26444
d32ab992 26445check-textutils:
f41d6665 26446 @: $(MAKE); $(unstage)
8c90b13a
L
26447 @r=`${PWD_COMMAND}`; export r; \
26448 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26449 $(HOST_EXPORTS) \
215c351a
PB
26450 (cd $(HOST_SUBDIR)/textutils && \
26451 $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6 26452
d32ab992 26453@endif textutils
4977bab6 26454
d32ab992
PB
26455.PHONY: install-textutils maybe-install-textutils
26456maybe-install-textutils:
26457@if textutils
26458maybe-install-textutils: install-textutils
295f4e42 26459
d32ab992 26460install-textutils: installdirs
f41d6665 26461 @: $(MAKE); $(unstage)
295f4e42
NN
26462 @r=`${PWD_COMMAND}`; export r; \
26463 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26464 $(HOST_EXPORTS) \
215c351a 26465 (cd $(HOST_SUBDIR)/textutils && \
ace9ac7b 26466 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 26467
d32ab992 26468@endif textutils
295f4e42
NN
26469
26470# Other targets (info, dvi, etc.)
26471
d32ab992
PB
26472.PHONY: maybe-info-textutils info-textutils
26473maybe-info-textutils:
26474@if textutils
26475maybe-info-textutils: info-textutils
295f4e42 26476
d32ab992 26477info-textutils: \
05750653 26478 configure-textutils
f41d6665 26479 @: $(MAKE); $(unstage)
d32ab992 26480 @[ -f ./textutils/Makefile ] || exit 0; \
295f4e42
NN
26481 r=`${PWD_COMMAND}`; export r; \
26482 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26483 $(HOST_EXPORTS) \
d32ab992 26484 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26485 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26486 done; \
d32ab992 26487 echo "Doing info in textutils" ; \
215c351a 26488 (cd $(HOST_SUBDIR)/textutils && \
295f4e42
NN
26489 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26490 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26491 "RANLIB=$${RANLIB}" \
26492 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26493 info) \
295f4e42
NN
26494 || exit 1
26495
d32ab992 26496@endif textutils
295f4e42 26497
d32ab992
PB
26498.PHONY: maybe-dvi-textutils dvi-textutils
26499maybe-dvi-textutils:
26500@if textutils
26501maybe-dvi-textutils: dvi-textutils
295f4e42 26502
d32ab992 26503dvi-textutils: \
05750653 26504 configure-textutils
f41d6665 26505 @: $(MAKE); $(unstage)
d32ab992 26506 @[ -f ./textutils/Makefile ] || exit 0; \
295f4e42
NN
26507 r=`${PWD_COMMAND}`; export r; \
26508 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26509 $(HOST_EXPORTS) \
d32ab992 26510 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26511 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26512 done; \
d32ab992 26513 echo "Doing dvi in textutils" ; \
215c351a 26514 (cd $(HOST_SUBDIR)/textutils && \
295f4e42
NN
26515 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26516 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26517 "RANLIB=$${RANLIB}" \
26518 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26519 dvi) \
295f4e42
NN
26520 || exit 1
26521
d32ab992 26522@endif textutils
295f4e42 26523
f87a2b2e
MS
26524.PHONY: maybe-html-textutils html-textutils
26525maybe-html-textutils:
26526@if textutils
26527maybe-html-textutils: html-textutils
26528
26529html-textutils: \
05750653 26530 configure-textutils
f41d6665 26531 @: $(MAKE); $(unstage)
f87a2b2e
MS
26532 @[ -f ./textutils/Makefile ] || exit 0; \
26533 r=`${PWD_COMMAND}`; export r; \
26534 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
26535 $(HOST_EXPORTS) \
26536 for flag in $(EXTRA_HOST_FLAGS) ; do \
26537 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26538 done; \
26539 echo "Doing html in textutils" ; \
215c351a 26540 (cd $(HOST_SUBDIR)/textutils && \
f87a2b2e
MS
26541 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26542 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26543 "RANLIB=$${RANLIB}" \
26544 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
26545 html) \
26546 || exit 1
26547
26548@endif textutils
26549
d32ab992
PB
26550.PHONY: maybe-TAGS-textutils TAGS-textutils
26551maybe-TAGS-textutils:
26552@if textutils
26553maybe-TAGS-textutils: TAGS-textutils
295f4e42 26554
d32ab992 26555TAGS-textutils: \
05750653 26556 configure-textutils
f41d6665 26557 @: $(MAKE); $(unstage)
d32ab992 26558 @[ -f ./textutils/Makefile ] || exit 0; \
295f4e42
NN
26559 r=`${PWD_COMMAND}`; export r; \
26560 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26561 $(HOST_EXPORTS) \
d32ab992 26562 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26563 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26564 done; \
d32ab992 26565 echo "Doing TAGS in textutils" ; \
215c351a 26566 (cd $(HOST_SUBDIR)/textutils && \
295f4e42
NN
26567 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26568 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26569 "RANLIB=$${RANLIB}" \
26570 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26571 TAGS) \
295f4e42
NN
26572 || exit 1
26573
d32ab992 26574@endif textutils
295f4e42 26575
d32ab992
PB
26576.PHONY: maybe-install-info-textutils install-info-textutils
26577maybe-install-info-textutils:
26578@if textutils
26579maybe-install-info-textutils: install-info-textutils
295f4e42 26580
d32ab992
PB
26581install-info-textutils: \
26582 configure-textutils \
05750653 26583 info-textutils
f41d6665 26584 @: $(MAKE); $(unstage)
d32ab992 26585 @[ -f ./textutils/Makefile ] || exit 0; \
295f4e42
NN
26586 r=`${PWD_COMMAND}`; export r; \
26587 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26588 $(HOST_EXPORTS) \
d32ab992 26589 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26590 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26591 done; \
d32ab992 26592 echo "Doing install-info in textutils" ; \
215c351a 26593 (cd $(HOST_SUBDIR)/textutils && \
295f4e42
NN
26594 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26595 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26596 "RANLIB=$${RANLIB}" \
26597 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26598 install-info) \
295f4e42
NN
26599 || exit 1
26600
d32ab992 26601@endif textutils
295f4e42 26602
65d6e994
CD
26603.PHONY: maybe-install-html-textutils install-html-textutils
26604maybe-install-html-textutils:
26605@if textutils
26606maybe-install-html-textutils: install-html-textutils
26607
26608install-html-textutils: \
26609 configure-textutils \
26610 html-textutils
26611 @: $(MAKE); $(unstage)
26612 @[ -f ./textutils/Makefile ] || exit 0; \
26613 r=`${PWD_COMMAND}`; export r; \
26614 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26615 $(HOST_EXPORTS) \
26616 for flag in $(EXTRA_HOST_FLAGS) ; do \
26617 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26618 done; \
26619 echo "Doing install-html in textutils" ; \
26620 (cd $(HOST_SUBDIR)/textutils && \
26621 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26622 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26623 "RANLIB=$${RANLIB}" \
26624 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
26625 install-html) \
26626 || exit 1
26627
26628@endif textutils
26629
d32ab992
PB
26630.PHONY: maybe-installcheck-textutils installcheck-textutils
26631maybe-installcheck-textutils:
26632@if textutils
26633maybe-installcheck-textutils: installcheck-textutils
295f4e42 26634
d32ab992 26635installcheck-textutils: \
05750653 26636 configure-textutils
f41d6665 26637 @: $(MAKE); $(unstage)
d32ab992 26638 @[ -f ./textutils/Makefile ] || exit 0; \
295f4e42
NN
26639 r=`${PWD_COMMAND}`; export r; \
26640 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26641 $(HOST_EXPORTS) \
d32ab992 26642 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26643 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26644 done; \
d32ab992 26645 echo "Doing installcheck in textutils" ; \
215c351a 26646 (cd $(HOST_SUBDIR)/textutils && \
295f4e42
NN
26647 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26648 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26649 "RANLIB=$${RANLIB}" \
26650 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26651 installcheck) \
295f4e42
NN
26652 || exit 1
26653
d32ab992 26654@endif textutils
295f4e42 26655
d32ab992
PB
26656.PHONY: maybe-mostlyclean-textutils mostlyclean-textutils
26657maybe-mostlyclean-textutils:
26658@if textutils
26659maybe-mostlyclean-textutils: mostlyclean-textutils
295f4e42 26660
05750653 26661mostlyclean-textutils:
f41d6665 26662 @: $(MAKE); $(unstage)
d32ab992 26663 @[ -f ./textutils/Makefile ] || exit 0; \
295f4e42
NN
26664 r=`${PWD_COMMAND}`; export r; \
26665 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26666 $(HOST_EXPORTS) \
d32ab992 26667 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26668 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26669 done; \
d32ab992 26670 echo "Doing mostlyclean in textutils" ; \
215c351a 26671 (cd $(HOST_SUBDIR)/textutils && \
295f4e42
NN
26672 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26673 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26674 "RANLIB=$${RANLIB}" \
26675 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26676 mostlyclean) \
295f4e42
NN
26677 || exit 1
26678
d32ab992 26679@endif textutils
295f4e42 26680
d32ab992
PB
26681.PHONY: maybe-clean-textutils clean-textutils
26682maybe-clean-textutils:
26683@if textutils
26684maybe-clean-textutils: clean-textutils
295f4e42 26685
05750653 26686clean-textutils:
f41d6665 26687 @: $(MAKE); $(unstage)
d32ab992 26688 @[ -f ./textutils/Makefile ] || exit 0; \
295f4e42
NN
26689 r=`${PWD_COMMAND}`; export r; \
26690 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26691 $(HOST_EXPORTS) \
d32ab992 26692 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26693 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26694 done; \
d32ab992 26695 echo "Doing clean in textutils" ; \
215c351a 26696 (cd $(HOST_SUBDIR)/textutils && \
295f4e42
NN
26697 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26698 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26699 "RANLIB=$${RANLIB}" \
26700 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26701 clean) \
295f4e42
NN
26702 || exit 1
26703
d32ab992 26704@endif textutils
295f4e42 26705
d32ab992
PB
26706.PHONY: maybe-distclean-textutils distclean-textutils
26707maybe-distclean-textutils:
26708@if textutils
26709maybe-distclean-textutils: distclean-textutils
295f4e42 26710
05750653 26711distclean-textutils:
f41d6665 26712 @: $(MAKE); $(unstage)
d32ab992 26713 @[ -f ./textutils/Makefile ] || exit 0; \
295f4e42
NN
26714 r=`${PWD_COMMAND}`; export r; \
26715 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26716 $(HOST_EXPORTS) \
d32ab992 26717 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26718 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26719 done; \
d32ab992 26720 echo "Doing distclean in textutils" ; \
215c351a 26721 (cd $(HOST_SUBDIR)/textutils && \
295f4e42
NN
26722 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26723 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26724 "RANLIB=$${RANLIB}" \
26725 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26726 distclean) \
295f4e42
NN
26727 || exit 1
26728
d32ab992 26729@endif textutils
295f4e42 26730
d32ab992
PB
26731.PHONY: maybe-maintainer-clean-textutils maintainer-clean-textutils
26732maybe-maintainer-clean-textutils:
26733@if textutils
26734maybe-maintainer-clean-textutils: maintainer-clean-textutils
295f4e42 26735
05750653 26736maintainer-clean-textutils:
f41d6665 26737 @: $(MAKE); $(unstage)
d32ab992 26738 @[ -f ./textutils/Makefile ] || exit 0; \
295f4e42
NN
26739 r=`${PWD_COMMAND}`; export r; \
26740 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26741 $(HOST_EXPORTS) \
d32ab992 26742 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26743 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26744 done; \
d32ab992 26745 echo "Doing maintainer-clean in textutils" ; \
215c351a 26746 (cd $(HOST_SUBDIR)/textutils && \
295f4e42
NN
26747 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26748 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26749 "RANLIB=$${RANLIB}" \
26750 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26751 maintainer-clean) \
295f4e42 26752 || exit 1
7e2dbcef 26753
d32ab992 26754@endif textutils
4977bab6
ZW
26755
26756
25b42232 26757
d32ab992
PB
26758.PHONY: configure-time maybe-configure-time
26759maybe-configure-time:
3ff3adad
PB
26760@if gcc-bootstrap
26761configure-time: stage_current
26762@endif gcc-bootstrap
d32ab992
PB
26763@if time
26764maybe-configure-time: configure-time
cc11cc9b 26765configure-time:
f41d6665 26766 @: $(MAKE); $(unstage)
cc11cc9b 26767 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 26768 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
26769 test ! -f $(HOST_SUBDIR)/time/Makefile || exit 0; \
26770 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/time ; \
4fc4dd12 26771 $(HOST_EXPORTS) \
25b42232
PB
26772 echo Configuring in $(HOST_SUBDIR)/time; \
26773 cd "$(HOST_SUBDIR)/time" || exit 1; \
4977bab6 26774 case $(srcdir) in \
215c351a
PB
26775 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
26776 *) topdir=`echo $(HOST_SUBDIR)/time/ | \
26777 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 26778 esac; \
215c351a
PB
26779 srcdiroption="--srcdir=$${topdir}/time"; \
26780 libsrcdir="$$s/time"; \
4977bab6 26781 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 26782 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 26783 || exit 1
d32ab992 26784@endif time
4977bab6 26785
25b42232
PB
26786
26787
ce406537
PB
26788
26789
d32ab992
PB
26790.PHONY: all-time maybe-all-time
26791maybe-all-time:
3ff3adad
PB
26792@if gcc-bootstrap
26793all-time: stage_current
26794@endif gcc-bootstrap
d32ab992 26795@if time
7e0b5752 26796TARGET-time=all
d32ab992
PB
26797maybe-all-time: all-time
26798all-time: configure-time
f41d6665 26799 @: $(MAKE); $(unstage)
8c90b13a
L
26800 @r=`${PWD_COMMAND}`; export r; \
26801 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26802 $(HOST_EXPORTS) \
215c351a
PB
26803 (cd $(HOST_SUBDIR)/time && \
26804 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-time))
d32ab992 26805@endif time
4977bab6 26806
25b42232 26807
ce406537
PB
26808
26809
d32ab992
PB
26810.PHONY: check-time maybe-check-time
26811maybe-check-time:
26812@if time
26813maybe-check-time: check-time
4977bab6 26814
d32ab992 26815check-time:
f41d6665 26816 @: $(MAKE); $(unstage)
8c90b13a
L
26817 @r=`${PWD_COMMAND}`; export r; \
26818 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26819 $(HOST_EXPORTS) \
215c351a
PB
26820 (cd $(HOST_SUBDIR)/time && \
26821 $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6 26822
d32ab992 26823@endif time
4977bab6 26824
d32ab992
PB
26825.PHONY: install-time maybe-install-time
26826maybe-install-time:
26827@if time
26828maybe-install-time: install-time
7e2dbcef 26829
d32ab992 26830install-time: installdirs
f41d6665 26831 @: $(MAKE); $(unstage)
8c90b13a
L
26832 @r=`${PWD_COMMAND}`; export r; \
26833 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26834 $(HOST_EXPORTS) \
215c351a 26835 (cd $(HOST_SUBDIR)/time && \
ace9ac7b 26836 $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6 26837
d32ab992 26838@endif time
4977bab6 26839
295f4e42
NN
26840# Other targets (info, dvi, etc.)
26841
d32ab992
PB
26842.PHONY: maybe-info-time info-time
26843maybe-info-time:
26844@if time
26845maybe-info-time: info-time
295f4e42 26846
d32ab992 26847info-time: \
05750653 26848 configure-time
f41d6665 26849 @: $(MAKE); $(unstage)
d32ab992 26850 @[ -f ./time/Makefile ] || exit 0; \
295f4e42
NN
26851 r=`${PWD_COMMAND}`; export r; \
26852 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26853 $(HOST_EXPORTS) \
d32ab992 26854 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26855 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26856 done; \
d32ab992 26857 echo "Doing info in time" ; \
215c351a 26858 (cd $(HOST_SUBDIR)/time && \
295f4e42
NN
26859 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26860 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26861 "RANLIB=$${RANLIB}" \
26862 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26863 info) \
295f4e42
NN
26864 || exit 1
26865
d32ab992 26866@endif time
295f4e42 26867
d32ab992
PB
26868.PHONY: maybe-dvi-time dvi-time
26869maybe-dvi-time:
26870@if time
26871maybe-dvi-time: dvi-time
295f4e42 26872
d32ab992 26873dvi-time: \
05750653 26874 configure-time
f41d6665 26875 @: $(MAKE); $(unstage)
d32ab992 26876 @[ -f ./time/Makefile ] || exit 0; \
295f4e42
NN
26877 r=`${PWD_COMMAND}`; export r; \
26878 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26879 $(HOST_EXPORTS) \
d32ab992 26880 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26881 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26882 done; \
d32ab992 26883 echo "Doing dvi in time" ; \
215c351a 26884 (cd $(HOST_SUBDIR)/time && \
295f4e42
NN
26885 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26886 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26887 "RANLIB=$${RANLIB}" \
26888 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26889 dvi) \
295f4e42
NN
26890 || exit 1
26891
d32ab992 26892@endif time
295f4e42 26893
f87a2b2e
MS
26894.PHONY: maybe-html-time html-time
26895maybe-html-time:
26896@if time
26897maybe-html-time: html-time
26898
26899html-time: \
05750653 26900 configure-time
f41d6665 26901 @: $(MAKE); $(unstage)
f87a2b2e
MS
26902 @[ -f ./time/Makefile ] || exit 0; \
26903 r=`${PWD_COMMAND}`; export r; \
26904 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
26905 $(HOST_EXPORTS) \
26906 for flag in $(EXTRA_HOST_FLAGS) ; do \
26907 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26908 done; \
26909 echo "Doing html in time" ; \
215c351a 26910 (cd $(HOST_SUBDIR)/time && \
f87a2b2e
MS
26911 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26912 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26913 "RANLIB=$${RANLIB}" \
26914 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
26915 html) \
26916 || exit 1
26917
26918@endif time
26919
d32ab992
PB
26920.PHONY: maybe-TAGS-time TAGS-time
26921maybe-TAGS-time:
26922@if time
26923maybe-TAGS-time: TAGS-time
295f4e42 26924
d32ab992 26925TAGS-time: \
05750653 26926 configure-time
f41d6665 26927 @: $(MAKE); $(unstage)
d32ab992 26928 @[ -f ./time/Makefile ] || exit 0; \
295f4e42
NN
26929 r=`${PWD_COMMAND}`; export r; \
26930 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26931 $(HOST_EXPORTS) \
d32ab992 26932 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26933 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26934 done; \
d32ab992 26935 echo "Doing TAGS in time" ; \
215c351a 26936 (cd $(HOST_SUBDIR)/time && \
295f4e42
NN
26937 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26938 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26939 "RANLIB=$${RANLIB}" \
26940 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26941 TAGS) \
295f4e42
NN
26942 || exit 1
26943
d32ab992 26944@endif time
295f4e42 26945
d32ab992
PB
26946.PHONY: maybe-install-info-time install-info-time
26947maybe-install-info-time:
26948@if time
26949maybe-install-info-time: install-info-time
295f4e42 26950
d32ab992
PB
26951install-info-time: \
26952 configure-time \
05750653 26953 info-time
f41d6665 26954 @: $(MAKE); $(unstage)
d32ab992 26955 @[ -f ./time/Makefile ] || exit 0; \
295f4e42
NN
26956 r=`${PWD_COMMAND}`; export r; \
26957 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26958 $(HOST_EXPORTS) \
d32ab992 26959 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26960 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26961 done; \
d32ab992 26962 echo "Doing install-info in time" ; \
215c351a 26963 (cd $(HOST_SUBDIR)/time && \
295f4e42
NN
26964 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26965 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26966 "RANLIB=$${RANLIB}" \
26967 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26968 install-info) \
295f4e42
NN
26969 || exit 1
26970
d32ab992 26971@endif time
295f4e42 26972
65d6e994
CD
26973.PHONY: maybe-install-html-time install-html-time
26974maybe-install-html-time:
26975@if time
26976maybe-install-html-time: install-html-time
26977
26978install-html-time: \
26979 configure-time \
26980 html-time
26981 @: $(MAKE); $(unstage)
26982 @[ -f ./time/Makefile ] || exit 0; \
26983 r=`${PWD_COMMAND}`; export r; \
26984 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26985 $(HOST_EXPORTS) \
26986 for flag in $(EXTRA_HOST_FLAGS) ; do \
26987 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26988 done; \
26989 echo "Doing install-html in time" ; \
26990 (cd $(HOST_SUBDIR)/time && \
26991 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26992 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26993 "RANLIB=$${RANLIB}" \
26994 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
26995 install-html) \
26996 || exit 1
26997
26998@endif time
26999
d32ab992
PB
27000.PHONY: maybe-installcheck-time installcheck-time
27001maybe-installcheck-time:
27002@if time
27003maybe-installcheck-time: installcheck-time
295f4e42 27004
d32ab992 27005installcheck-time: \
05750653 27006 configure-time
f41d6665 27007 @: $(MAKE); $(unstage)
d32ab992 27008 @[ -f ./time/Makefile ] || exit 0; \
295f4e42
NN
27009 r=`${PWD_COMMAND}`; export r; \
27010 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27011 $(HOST_EXPORTS) \
d32ab992 27012 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27013 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27014 done; \
d32ab992 27015 echo "Doing installcheck in time" ; \
215c351a 27016 (cd $(HOST_SUBDIR)/time && \
295f4e42
NN
27017 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27018 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27019 "RANLIB=$${RANLIB}" \
27020 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27021 installcheck) \
295f4e42
NN
27022 || exit 1
27023
d32ab992 27024@endif time
295f4e42 27025
d32ab992
PB
27026.PHONY: maybe-mostlyclean-time mostlyclean-time
27027maybe-mostlyclean-time:
27028@if time
27029maybe-mostlyclean-time: mostlyclean-time
295f4e42 27030
05750653 27031mostlyclean-time:
f41d6665 27032 @: $(MAKE); $(unstage)
d32ab992 27033 @[ -f ./time/Makefile ] || exit 0; \
295f4e42
NN
27034 r=`${PWD_COMMAND}`; export r; \
27035 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27036 $(HOST_EXPORTS) \
d32ab992 27037 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27038 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27039 done; \
d32ab992 27040 echo "Doing mostlyclean in time" ; \
215c351a 27041 (cd $(HOST_SUBDIR)/time && \
295f4e42
NN
27042 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27043 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27044 "RANLIB=$${RANLIB}" \
27045 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27046 mostlyclean) \
295f4e42
NN
27047 || exit 1
27048
d32ab992 27049@endif time
295f4e42 27050
d32ab992
PB
27051.PHONY: maybe-clean-time clean-time
27052maybe-clean-time:
27053@if time
27054maybe-clean-time: clean-time
295f4e42 27055
05750653 27056clean-time:
f41d6665 27057 @: $(MAKE); $(unstage)
d32ab992 27058 @[ -f ./time/Makefile ] || exit 0; \
295f4e42
NN
27059 r=`${PWD_COMMAND}`; export r; \
27060 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27061 $(HOST_EXPORTS) \
d32ab992 27062 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27063 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27064 done; \
d32ab992 27065 echo "Doing clean in time" ; \
215c351a 27066 (cd $(HOST_SUBDIR)/time && \
295f4e42
NN
27067 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27068 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27069 "RANLIB=$${RANLIB}" \
27070 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27071 clean) \
295f4e42
NN
27072 || exit 1
27073
d32ab992 27074@endif time
295f4e42 27075
d32ab992
PB
27076.PHONY: maybe-distclean-time distclean-time
27077maybe-distclean-time:
27078@if time
27079maybe-distclean-time: distclean-time
295f4e42 27080
05750653 27081distclean-time:
f41d6665 27082 @: $(MAKE); $(unstage)
d32ab992 27083 @[ -f ./time/Makefile ] || exit 0; \
295f4e42
NN
27084 r=`${PWD_COMMAND}`; export r; \
27085 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27086 $(HOST_EXPORTS) \
d32ab992 27087 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27088 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27089 done; \
d32ab992 27090 echo "Doing distclean in time" ; \
215c351a 27091 (cd $(HOST_SUBDIR)/time && \
295f4e42
NN
27092 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27093 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27094 "RANLIB=$${RANLIB}" \
27095 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27096 distclean) \
295f4e42
NN
27097 || exit 1
27098
d32ab992 27099@endif time
295f4e42 27100
d32ab992
PB
27101.PHONY: maybe-maintainer-clean-time maintainer-clean-time
27102maybe-maintainer-clean-time:
27103@if time
27104maybe-maintainer-clean-time: maintainer-clean-time
295f4e42 27105
05750653 27106maintainer-clean-time:
f41d6665 27107 @: $(MAKE); $(unstage)
d32ab992 27108 @[ -f ./time/Makefile ] || exit 0; \
295f4e42
NN
27109 r=`${PWD_COMMAND}`; export r; \
27110 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27111 $(HOST_EXPORTS) \
d32ab992 27112 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27113 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27114 done; \
d32ab992 27115 echo "Doing maintainer-clean in time" ; \
215c351a 27116 (cd $(HOST_SUBDIR)/time && \
295f4e42
NN
27117 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27118 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27119 "RANLIB=$${RANLIB}" \
27120 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27121 maintainer-clean) \
295f4e42
NN
27122 || exit 1
27123
d32ab992 27124@endif time
295f4e42
NN
27125
27126
25b42232 27127
d32ab992
PB
27128.PHONY: configure-uudecode maybe-configure-uudecode
27129maybe-configure-uudecode:
3ff3adad
PB
27130@if gcc-bootstrap
27131configure-uudecode: stage_current
27132@endif gcc-bootstrap
d32ab992
PB
27133@if uudecode
27134maybe-configure-uudecode: configure-uudecode
cc11cc9b 27135configure-uudecode:
f41d6665 27136 @: $(MAKE); $(unstage)
cc11cc9b 27137 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 27138 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
27139 test ! -f $(HOST_SUBDIR)/uudecode/Makefile || exit 0; \
27140 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/uudecode ; \
4fc4dd12 27141 $(HOST_EXPORTS) \
25b42232
PB
27142 echo Configuring in $(HOST_SUBDIR)/uudecode; \
27143 cd "$(HOST_SUBDIR)/uudecode" || exit 1; \
4977bab6 27144 case $(srcdir) in \
215c351a
PB
27145 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
27146 *) topdir=`echo $(HOST_SUBDIR)/uudecode/ | \
27147 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 27148 esac; \
215c351a
PB
27149 srcdiroption="--srcdir=$${topdir}/uudecode"; \
27150 libsrcdir="$$s/uudecode"; \
4977bab6 27151 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 27152 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 27153 || exit 1
d32ab992 27154@endif uudecode
4977bab6 27155
25b42232
PB
27156
27157
ce406537
PB
27158
27159
d32ab992
PB
27160.PHONY: all-uudecode maybe-all-uudecode
27161maybe-all-uudecode:
3ff3adad
PB
27162@if gcc-bootstrap
27163all-uudecode: stage_current
27164@endif gcc-bootstrap
d32ab992 27165@if uudecode
7e0b5752 27166TARGET-uudecode=all
d32ab992
PB
27167maybe-all-uudecode: all-uudecode
27168all-uudecode: configure-uudecode
f41d6665 27169 @: $(MAKE); $(unstage)
8c90b13a
L
27170 @r=`${PWD_COMMAND}`; export r; \
27171 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27172 $(HOST_EXPORTS) \
215c351a
PB
27173 (cd $(HOST_SUBDIR)/uudecode && \
27174 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-uudecode))
d32ab992 27175@endif uudecode
4977bab6 27176
25b42232 27177
ce406537
PB
27178
27179
d32ab992
PB
27180.PHONY: check-uudecode maybe-check-uudecode
27181maybe-check-uudecode:
27182@if uudecode
27183maybe-check-uudecode: check-uudecode
4977bab6 27184
d32ab992 27185check-uudecode:
f41d6665 27186 @: $(MAKE); $(unstage)
8c90b13a
L
27187 @r=`${PWD_COMMAND}`; export r; \
27188 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27189 $(HOST_EXPORTS) \
215c351a
PB
27190 (cd $(HOST_SUBDIR)/uudecode && \
27191 $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6 27192
d32ab992 27193@endif uudecode
4977bab6 27194
d32ab992
PB
27195.PHONY: install-uudecode maybe-install-uudecode
27196maybe-install-uudecode:
27197@if uudecode
27198maybe-install-uudecode: install-uudecode
7e2dbcef 27199
d32ab992 27200install-uudecode: installdirs
f41d6665 27201 @: $(MAKE); $(unstage)
8c90b13a
L
27202 @r=`${PWD_COMMAND}`; export r; \
27203 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27204 $(HOST_EXPORTS) \
215c351a 27205 (cd $(HOST_SUBDIR)/uudecode && \
ace9ac7b 27206 $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6 27207
d32ab992 27208@endif uudecode
4977bab6 27209
295f4e42
NN
27210# Other targets (info, dvi, etc.)
27211
d32ab992
PB
27212.PHONY: maybe-info-uudecode info-uudecode
27213maybe-info-uudecode:
27214@if uudecode
27215maybe-info-uudecode: info-uudecode
295f4e42 27216
d32ab992 27217info-uudecode: \
05750653 27218 configure-uudecode
f41d6665 27219 @: $(MAKE); $(unstage)
d32ab992 27220 @[ -f ./uudecode/Makefile ] || exit 0; \
8c90b13a
L
27221 r=`${PWD_COMMAND}`; export r; \
27222 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27223 $(HOST_EXPORTS) \
d32ab992 27224 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27225 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27226 done; \
d32ab992 27227 echo "Doing info in uudecode" ; \
215c351a 27228 (cd $(HOST_SUBDIR)/uudecode && \
295f4e42
NN
27229 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27230 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27231 "RANLIB=$${RANLIB}" \
27232 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27233 info) \
4977bab6
ZW
27234 || exit 1
27235
d32ab992 27236@endif uudecode
295f4e42 27237
d32ab992
PB
27238.PHONY: maybe-dvi-uudecode dvi-uudecode
27239maybe-dvi-uudecode:
27240@if uudecode
27241maybe-dvi-uudecode: dvi-uudecode
295f4e42 27242
d32ab992 27243dvi-uudecode: \
05750653 27244 configure-uudecode
f41d6665 27245 @: $(MAKE); $(unstage)
d32ab992 27246 @[ -f ./uudecode/Makefile ] || exit 0; \
295f4e42 27247 r=`${PWD_COMMAND}`; export r; \
8c90b13a 27248 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27249 $(HOST_EXPORTS) \
d32ab992 27250 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27251 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27252 done; \
d32ab992 27253 echo "Doing dvi in uudecode" ; \
215c351a 27254 (cd $(HOST_SUBDIR)/uudecode && \
295f4e42
NN
27255 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27256 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27257 "RANLIB=$${RANLIB}" \
27258 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27259 dvi) \
295f4e42 27260 || exit 1
4977bab6 27261
d32ab992 27262@endif uudecode
4977bab6 27263
f87a2b2e
MS
27264.PHONY: maybe-html-uudecode html-uudecode
27265maybe-html-uudecode:
27266@if uudecode
27267maybe-html-uudecode: html-uudecode
27268
27269html-uudecode: \
05750653 27270 configure-uudecode
f41d6665 27271 @: $(MAKE); $(unstage)
f87a2b2e
MS
27272 @[ -f ./uudecode/Makefile ] || exit 0; \
27273 r=`${PWD_COMMAND}`; export r; \
27274 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
27275 $(HOST_EXPORTS) \
27276 for flag in $(EXTRA_HOST_FLAGS) ; do \
27277 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27278 done; \
27279 echo "Doing html in uudecode" ; \
215c351a 27280 (cd $(HOST_SUBDIR)/uudecode && \
f87a2b2e
MS
27281 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27282 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27283 "RANLIB=$${RANLIB}" \
27284 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
27285 html) \
27286 || exit 1
27287
27288@endif uudecode
27289
d32ab992
PB
27290.PHONY: maybe-TAGS-uudecode TAGS-uudecode
27291maybe-TAGS-uudecode:
27292@if uudecode
27293maybe-TAGS-uudecode: TAGS-uudecode
295f4e42 27294
d32ab992 27295TAGS-uudecode: \
05750653 27296 configure-uudecode
f41d6665 27297 @: $(MAKE); $(unstage)
d32ab992
PB
27298 @[ -f ./uudecode/Makefile ] || exit 0; \
27299 r=`${PWD_COMMAND}`; export r; \
8c90b13a 27300 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27301 $(HOST_EXPORTS) \
d32ab992 27302 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27303 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27304 done; \
d32ab992 27305 echo "Doing TAGS in uudecode" ; \
215c351a 27306 (cd $(HOST_SUBDIR)/uudecode && \
295f4e42
NN
27307 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27308 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27309 "RANLIB=$${RANLIB}" \
27310 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27311 TAGS) \
295f4e42 27312 || exit 1
4977bab6 27313
d32ab992 27314@endif uudecode
4977bab6 27315
d32ab992
PB
27316.PHONY: maybe-install-info-uudecode install-info-uudecode
27317maybe-install-info-uudecode:
27318@if uudecode
27319maybe-install-info-uudecode: install-info-uudecode
7e2dbcef 27320
d32ab992
PB
27321install-info-uudecode: \
27322 configure-uudecode \
05750653 27323 info-uudecode
f41d6665 27324 @: $(MAKE); $(unstage)
d32ab992 27325 @[ -f ./uudecode/Makefile ] || exit 0; \
295f4e42
NN
27326 r=`${PWD_COMMAND}`; export r; \
27327 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27328 $(HOST_EXPORTS) \
d32ab992 27329 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27330 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27331 done; \
d32ab992 27332 echo "Doing install-info in uudecode" ; \
215c351a 27333 (cd $(HOST_SUBDIR)/uudecode && \
295f4e42
NN
27334 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27335 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27336 "RANLIB=$${RANLIB}" \
27337 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27338 install-info) \
295f4e42
NN
27339 || exit 1
27340
d32ab992 27341@endif uudecode
295f4e42 27342
65d6e994
CD
27343.PHONY: maybe-install-html-uudecode install-html-uudecode
27344maybe-install-html-uudecode:
27345@if uudecode
27346maybe-install-html-uudecode: install-html-uudecode
27347
27348install-html-uudecode: \
27349 configure-uudecode \
27350 html-uudecode
27351 @: $(MAKE); $(unstage)
27352 @[ -f ./uudecode/Makefile ] || exit 0; \
27353 r=`${PWD_COMMAND}`; export r; \
27354 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27355 $(HOST_EXPORTS) \
27356 for flag in $(EXTRA_HOST_FLAGS) ; do \
27357 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27358 done; \
27359 echo "Doing install-html in uudecode" ; \
27360 (cd $(HOST_SUBDIR)/uudecode && \
27361 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27362 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27363 "RANLIB=$${RANLIB}" \
27364 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
27365 install-html) \
27366 || exit 1
27367
27368@endif uudecode
27369
d32ab992
PB
27370.PHONY: maybe-installcheck-uudecode installcheck-uudecode
27371maybe-installcheck-uudecode:
27372@if uudecode
27373maybe-installcheck-uudecode: installcheck-uudecode
295f4e42 27374
d32ab992 27375installcheck-uudecode: \
05750653 27376 configure-uudecode
f41d6665 27377 @: $(MAKE); $(unstage)
d32ab992 27378 @[ -f ./uudecode/Makefile ] || exit 0; \
295f4e42
NN
27379 r=`${PWD_COMMAND}`; export r; \
27380 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27381 $(HOST_EXPORTS) \
d32ab992 27382 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27383 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27384 done; \
d32ab992 27385 echo "Doing installcheck in uudecode" ; \
215c351a 27386 (cd $(HOST_SUBDIR)/uudecode && \
295f4e42
NN
27387 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27388 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27389 "RANLIB=$${RANLIB}" \
27390 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27391 installcheck) \
295f4e42
NN
27392 || exit 1
27393
d32ab992 27394@endif uudecode
295f4e42 27395
d32ab992
PB
27396.PHONY: maybe-mostlyclean-uudecode mostlyclean-uudecode
27397maybe-mostlyclean-uudecode:
27398@if uudecode
27399maybe-mostlyclean-uudecode: mostlyclean-uudecode
295f4e42 27400
05750653 27401mostlyclean-uudecode:
f41d6665 27402 @: $(MAKE); $(unstage)
d32ab992 27403 @[ -f ./uudecode/Makefile ] || exit 0; \
295f4e42
NN
27404 r=`${PWD_COMMAND}`; export r; \
27405 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27406 $(HOST_EXPORTS) \
d32ab992 27407 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27408 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27409 done; \
d32ab992 27410 echo "Doing mostlyclean in uudecode" ; \
215c351a 27411 (cd $(HOST_SUBDIR)/uudecode && \
295f4e42
NN
27412 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27413 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27414 "RANLIB=$${RANLIB}" \
27415 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27416 mostlyclean) \
295f4e42
NN
27417 || exit 1
27418
d32ab992 27419@endif uudecode
295f4e42 27420
d32ab992
PB
27421.PHONY: maybe-clean-uudecode clean-uudecode
27422maybe-clean-uudecode:
27423@if uudecode
27424maybe-clean-uudecode: clean-uudecode
295f4e42 27425
05750653 27426clean-uudecode:
f41d6665 27427 @: $(MAKE); $(unstage)
d32ab992 27428 @[ -f ./uudecode/Makefile ] || exit 0; \
295f4e42
NN
27429 r=`${PWD_COMMAND}`; export r; \
27430 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27431 $(HOST_EXPORTS) \
d32ab992 27432 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27433 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27434 done; \
d32ab992 27435 echo "Doing clean in uudecode" ; \
215c351a 27436 (cd $(HOST_SUBDIR)/uudecode && \
295f4e42
NN
27437 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27438 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27439 "RANLIB=$${RANLIB}" \
27440 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27441 clean) \
295f4e42
NN
27442 || exit 1
27443
d32ab992 27444@endif uudecode
295f4e42 27445
d32ab992
PB
27446.PHONY: maybe-distclean-uudecode distclean-uudecode
27447maybe-distclean-uudecode:
27448@if uudecode
27449maybe-distclean-uudecode: distclean-uudecode
295f4e42 27450
05750653 27451distclean-uudecode:
f41d6665 27452 @: $(MAKE); $(unstage)
d32ab992 27453 @[ -f ./uudecode/Makefile ] || exit 0; \
295f4e42
NN
27454 r=`${PWD_COMMAND}`; export r; \
27455 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27456 $(HOST_EXPORTS) \
d32ab992 27457 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27458 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27459 done; \
d32ab992 27460 echo "Doing distclean in uudecode" ; \
215c351a 27461 (cd $(HOST_SUBDIR)/uudecode && \
295f4e42
NN
27462 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27463 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27464 "RANLIB=$${RANLIB}" \
27465 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27466 distclean) \
295f4e42
NN
27467 || exit 1
27468
d32ab992 27469@endif uudecode
295f4e42 27470
d32ab992
PB
27471.PHONY: maybe-maintainer-clean-uudecode maintainer-clean-uudecode
27472maybe-maintainer-clean-uudecode:
27473@if uudecode
27474maybe-maintainer-clean-uudecode: maintainer-clean-uudecode
295f4e42 27475
05750653 27476maintainer-clean-uudecode:
f41d6665 27477 @: $(MAKE); $(unstage)
d32ab992 27478 @[ -f ./uudecode/Makefile ] || exit 0; \
295f4e42 27479 r=`${PWD_COMMAND}`; export r; \
8c90b13a 27480 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27481 $(HOST_EXPORTS) \
d32ab992 27482 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27483 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27484 done; \
d32ab992 27485 echo "Doing maintainer-clean in uudecode" ; \
215c351a 27486 (cd $(HOST_SUBDIR)/uudecode && \
295f4e42
NN
27487 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27488 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27489 "RANLIB=$${RANLIB}" \
27490 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27491 maintainer-clean) \
295f4e42 27492 || exit 1
4977bab6 27493
d32ab992 27494@endif uudecode
4977bab6 27495
295f4e42 27496
25b42232 27497
d32ab992
PB
27498.PHONY: configure-wdiff maybe-configure-wdiff
27499maybe-configure-wdiff:
3ff3adad
PB
27500@if gcc-bootstrap
27501configure-wdiff: stage_current
27502@endif gcc-bootstrap
d32ab992
PB
27503@if wdiff
27504maybe-configure-wdiff: configure-wdiff
cc11cc9b 27505configure-wdiff:
f41d6665 27506 @: $(MAKE); $(unstage)
cc11cc9b 27507 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 27508 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
27509 test ! -f $(HOST_SUBDIR)/wdiff/Makefile || exit 0; \
27510 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/wdiff ; \
4fc4dd12 27511 $(HOST_EXPORTS) \
25b42232
PB
27512 echo Configuring in $(HOST_SUBDIR)/wdiff; \
27513 cd "$(HOST_SUBDIR)/wdiff" || exit 1; \
4977bab6 27514 case $(srcdir) in \
215c351a
PB
27515 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
27516 *) topdir=`echo $(HOST_SUBDIR)/wdiff/ | \
27517 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 27518 esac; \
215c351a
PB
27519 srcdiroption="--srcdir=$${topdir}/wdiff"; \
27520 libsrcdir="$$s/wdiff"; \
4977bab6 27521 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 27522 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 27523 || exit 1
d32ab992 27524@endif wdiff
4977bab6 27525
25b42232
PB
27526
27527
ce406537
PB
27528
27529
d32ab992
PB
27530.PHONY: all-wdiff maybe-all-wdiff
27531maybe-all-wdiff:
3ff3adad
PB
27532@if gcc-bootstrap
27533all-wdiff: stage_current
27534@endif gcc-bootstrap
d32ab992 27535@if wdiff
7e0b5752 27536TARGET-wdiff=all
d32ab992
PB
27537maybe-all-wdiff: all-wdiff
27538all-wdiff: configure-wdiff
f41d6665 27539 @: $(MAKE); $(unstage)
8c90b13a
L
27540 @r=`${PWD_COMMAND}`; export r; \
27541 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27542 $(HOST_EXPORTS) \
215c351a
PB
27543 (cd $(HOST_SUBDIR)/wdiff && \
27544 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-wdiff))
d32ab992 27545@endif wdiff
4977bab6 27546
25b42232 27547
ce406537
PB
27548
27549
d32ab992
PB
27550.PHONY: check-wdiff maybe-check-wdiff
27551maybe-check-wdiff:
27552@if wdiff
27553maybe-check-wdiff: check-wdiff
4977bab6 27554
d32ab992 27555check-wdiff:
f41d6665 27556 @: $(MAKE); $(unstage)
d32ab992
PB
27557 @r=`${PWD_COMMAND}`; export r; \
27558 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d32ab992 27559 $(HOST_EXPORTS) \
215c351a
PB
27560 (cd $(HOST_SUBDIR)/wdiff && \
27561 $(MAKE) $(FLAGS_TO_PASS) check)
295f4e42 27562
d32ab992 27563@endif wdiff
295f4e42 27564
d32ab992
PB
27565.PHONY: install-wdiff maybe-install-wdiff
27566maybe-install-wdiff:
27567@if wdiff
27568maybe-install-wdiff: install-wdiff
295f4e42 27569
d32ab992 27570install-wdiff: installdirs
f41d6665 27571 @: $(MAKE); $(unstage)
8c90b13a
L
27572 @r=`${PWD_COMMAND}`; export r; \
27573 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27574 $(HOST_EXPORTS) \
215c351a 27575 (cd $(HOST_SUBDIR)/wdiff && \
ace9ac7b 27576 $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6 27577
d32ab992 27578@endif wdiff
4977bab6 27579
295f4e42
NN
27580# Other targets (info, dvi, etc.)
27581
d32ab992
PB
27582.PHONY: maybe-info-wdiff info-wdiff
27583maybe-info-wdiff:
27584@if wdiff
27585maybe-info-wdiff: info-wdiff
295f4e42 27586
d32ab992 27587info-wdiff: \
05750653 27588 configure-wdiff
f41d6665 27589 @: $(MAKE); $(unstage)
d32ab992 27590 @[ -f ./wdiff/Makefile ] || exit 0; \
295f4e42
NN
27591 r=`${PWD_COMMAND}`; export r; \
27592 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27593 $(HOST_EXPORTS) \
d32ab992 27594 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27595 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27596 done; \
d32ab992 27597 echo "Doing info in wdiff" ; \
215c351a 27598 (cd $(HOST_SUBDIR)/wdiff && \
295f4e42
NN
27599 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27600 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27601 "RANLIB=$${RANLIB}" \
27602 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27603 info) \
295f4e42
NN
27604 || exit 1
27605
d32ab992 27606@endif wdiff
295f4e42 27607
d32ab992
PB
27608.PHONY: maybe-dvi-wdiff dvi-wdiff
27609maybe-dvi-wdiff:
27610@if wdiff
27611maybe-dvi-wdiff: dvi-wdiff
295f4e42 27612
d32ab992 27613dvi-wdiff: \
05750653 27614 configure-wdiff
f41d6665 27615 @: $(MAKE); $(unstage)
d32ab992 27616 @[ -f ./wdiff/Makefile ] || exit 0; \
295f4e42
NN
27617 r=`${PWD_COMMAND}`; export r; \
27618 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27619 $(HOST_EXPORTS) \
d32ab992 27620 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27621 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27622 done; \
d32ab992 27623 echo "Doing dvi in wdiff" ; \
215c351a 27624 (cd $(HOST_SUBDIR)/wdiff && \
295f4e42
NN
27625 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27626 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27627 "RANLIB=$${RANLIB}" \
27628 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27629 dvi) \
295f4e42
NN
27630 || exit 1
27631
d32ab992 27632@endif wdiff
295f4e42 27633
f87a2b2e
MS
27634.PHONY: maybe-html-wdiff html-wdiff
27635maybe-html-wdiff:
27636@if wdiff
27637maybe-html-wdiff: html-wdiff
27638
27639html-wdiff: \
05750653 27640 configure-wdiff
f41d6665 27641 @: $(MAKE); $(unstage)
f87a2b2e
MS
27642 @[ -f ./wdiff/Makefile ] || exit 0; \
27643 r=`${PWD_COMMAND}`; export r; \
27644 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
27645 $(HOST_EXPORTS) \
27646 for flag in $(EXTRA_HOST_FLAGS) ; do \
27647 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27648 done; \
27649 echo "Doing html in wdiff" ; \
215c351a 27650 (cd $(HOST_SUBDIR)/wdiff && \
f87a2b2e
MS
27651 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27652 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27653 "RANLIB=$${RANLIB}" \
27654 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
27655 html) \
27656 || exit 1
27657
27658@endif wdiff
27659
d32ab992
PB
27660.PHONY: maybe-TAGS-wdiff TAGS-wdiff
27661maybe-TAGS-wdiff:
27662@if wdiff
27663maybe-TAGS-wdiff: TAGS-wdiff
295f4e42 27664
d32ab992 27665TAGS-wdiff: \
05750653 27666 configure-wdiff
f41d6665 27667 @: $(MAKE); $(unstage)
d32ab992 27668 @[ -f ./wdiff/Makefile ] || exit 0; \
295f4e42
NN
27669 r=`${PWD_COMMAND}`; export r; \
27670 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27671 $(HOST_EXPORTS) \
d32ab992 27672 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27673 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27674 done; \
d32ab992 27675 echo "Doing TAGS in wdiff" ; \
215c351a 27676 (cd $(HOST_SUBDIR)/wdiff && \
295f4e42
NN
27677 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27678 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27679 "RANLIB=$${RANLIB}" \
27680 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27681 TAGS) \
295f4e42
NN
27682 || exit 1
27683
d32ab992 27684@endif wdiff
295f4e42 27685
d32ab992
PB
27686.PHONY: maybe-install-info-wdiff install-info-wdiff
27687maybe-install-info-wdiff:
27688@if wdiff
27689maybe-install-info-wdiff: install-info-wdiff
295f4e42 27690
d32ab992
PB
27691install-info-wdiff: \
27692 configure-wdiff \
05750653 27693 info-wdiff
f41d6665 27694 @: $(MAKE); $(unstage)
d32ab992 27695 @[ -f ./wdiff/Makefile ] || exit 0; \
295f4e42
NN
27696 r=`${PWD_COMMAND}`; export r; \
27697 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27698 $(HOST_EXPORTS) \
d32ab992 27699 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27700 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27701 done; \
d32ab992 27702 echo "Doing install-info in wdiff" ; \
215c351a 27703 (cd $(HOST_SUBDIR)/wdiff && \
295f4e42
NN
27704 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27705 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27706 "RANLIB=$${RANLIB}" \
27707 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27708 install-info) \
295f4e42
NN
27709 || exit 1
27710
d32ab992 27711@endif wdiff
295f4e42 27712
65d6e994
CD
27713.PHONY: maybe-install-html-wdiff install-html-wdiff
27714maybe-install-html-wdiff:
27715@if wdiff
27716maybe-install-html-wdiff: install-html-wdiff
27717
27718install-html-wdiff: \
27719 configure-wdiff \
27720 html-wdiff
27721 @: $(MAKE); $(unstage)
27722 @[ -f ./wdiff/Makefile ] || exit 0; \
27723 r=`${PWD_COMMAND}`; export r; \
27724 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27725 $(HOST_EXPORTS) \
27726 for flag in $(EXTRA_HOST_FLAGS) ; do \
27727 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27728 done; \
27729 echo "Doing install-html in wdiff" ; \
27730 (cd $(HOST_SUBDIR)/wdiff && \
27731 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27732 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27733 "RANLIB=$${RANLIB}" \
27734 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
27735 install-html) \
27736 || exit 1
27737
27738@endif wdiff
27739
d32ab992
PB
27740.PHONY: maybe-installcheck-wdiff installcheck-wdiff
27741maybe-installcheck-wdiff:
27742@if wdiff
27743maybe-installcheck-wdiff: installcheck-wdiff
295f4e42 27744
d32ab992 27745installcheck-wdiff: \
05750653 27746 configure-wdiff
f41d6665 27747 @: $(MAKE); $(unstage)
d32ab992 27748 @[ -f ./wdiff/Makefile ] || exit 0; \
295f4e42
NN
27749 r=`${PWD_COMMAND}`; export r; \
27750 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27751 $(HOST_EXPORTS) \
d32ab992 27752 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27753 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27754 done; \
d32ab992 27755 echo "Doing installcheck in wdiff" ; \
215c351a 27756 (cd $(HOST_SUBDIR)/wdiff && \
295f4e42
NN
27757 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27758 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27759 "RANLIB=$${RANLIB}" \
27760 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27761 installcheck) \
295f4e42
NN
27762 || exit 1
27763
d32ab992 27764@endif wdiff
295f4e42 27765
d32ab992
PB
27766.PHONY: maybe-mostlyclean-wdiff mostlyclean-wdiff
27767maybe-mostlyclean-wdiff:
27768@if wdiff
27769maybe-mostlyclean-wdiff: mostlyclean-wdiff
295f4e42 27770
05750653 27771mostlyclean-wdiff:
f41d6665 27772 @: $(MAKE); $(unstage)
d32ab992 27773 @[ -f ./wdiff/Makefile ] || exit 0; \
295f4e42
NN
27774 r=`${PWD_COMMAND}`; export r; \
27775 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27776 $(HOST_EXPORTS) \
d32ab992 27777 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27778 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27779 done; \
d32ab992 27780 echo "Doing mostlyclean in wdiff" ; \
215c351a 27781 (cd $(HOST_SUBDIR)/wdiff && \
295f4e42
NN
27782 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27783 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27784 "RANLIB=$${RANLIB}" \
27785 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27786 mostlyclean) \
295f4e42
NN
27787 || exit 1
27788
d32ab992 27789@endif wdiff
295f4e42 27790
d32ab992
PB
27791.PHONY: maybe-clean-wdiff clean-wdiff
27792maybe-clean-wdiff:
27793@if wdiff
27794maybe-clean-wdiff: clean-wdiff
295f4e42 27795
05750653 27796clean-wdiff:
f41d6665 27797 @: $(MAKE); $(unstage)
d32ab992 27798 @[ -f ./wdiff/Makefile ] || exit 0; \
295f4e42
NN
27799 r=`${PWD_COMMAND}`; export r; \
27800 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27801 $(HOST_EXPORTS) \
d32ab992 27802 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27803 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27804 done; \
d32ab992 27805 echo "Doing clean in wdiff" ; \
215c351a 27806 (cd $(HOST_SUBDIR)/wdiff && \
295f4e42
NN
27807 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27808 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27809 "RANLIB=$${RANLIB}" \
27810 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27811 clean) \
295f4e42
NN
27812 || exit 1
27813
d32ab992 27814@endif wdiff
295f4e42 27815
d32ab992
PB
27816.PHONY: maybe-distclean-wdiff distclean-wdiff
27817maybe-distclean-wdiff:
27818@if wdiff
27819maybe-distclean-wdiff: distclean-wdiff
295f4e42 27820
05750653 27821distclean-wdiff:
f41d6665 27822 @: $(MAKE); $(unstage)
d32ab992 27823 @[ -f ./wdiff/Makefile ] || exit 0; \
295f4e42
NN
27824 r=`${PWD_COMMAND}`; export r; \
27825 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27826 $(HOST_EXPORTS) \
d32ab992 27827 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27828 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27829 done; \
d32ab992 27830 echo "Doing distclean in wdiff" ; \
215c351a 27831 (cd $(HOST_SUBDIR)/wdiff && \
295f4e42
NN
27832 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27833 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27834 "RANLIB=$${RANLIB}" \
27835 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27836 distclean) \
295f4e42
NN
27837 || exit 1
27838
d32ab992 27839@endif wdiff
295f4e42 27840
d32ab992
PB
27841.PHONY: maybe-maintainer-clean-wdiff maintainer-clean-wdiff
27842maybe-maintainer-clean-wdiff:
27843@if wdiff
27844maybe-maintainer-clean-wdiff: maintainer-clean-wdiff
295f4e42 27845
05750653 27846maintainer-clean-wdiff:
f41d6665 27847 @: $(MAKE); $(unstage)
d32ab992 27848 @[ -f ./wdiff/Makefile ] || exit 0; \
295f4e42
NN
27849 r=`${PWD_COMMAND}`; export r; \
27850 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27851 $(HOST_EXPORTS) \
d32ab992 27852 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27853 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27854 done; \
d32ab992 27855 echo "Doing maintainer-clean in wdiff" ; \
215c351a 27856 (cd $(HOST_SUBDIR)/wdiff && \
295f4e42
NN
27857 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27858 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27859 "RANLIB=$${RANLIB}" \
27860 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27861 maintainer-clean) \
295f4e42 27862 || exit 1
7e2dbcef 27863
d32ab992 27864@endif wdiff
4977bab6
ZW
27865
27866
25b42232 27867
d32ab992
PB
27868.PHONY: configure-zip maybe-configure-zip
27869maybe-configure-zip:
3ff3adad
PB
27870@if gcc-bootstrap
27871configure-zip: stage_current
27872@endif gcc-bootstrap
d32ab992
PB
27873@if zip
27874maybe-configure-zip: configure-zip
cc11cc9b 27875configure-zip:
f41d6665 27876 @: $(MAKE); $(unstage)
cc11cc9b 27877 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 27878 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
27879 test ! -f $(HOST_SUBDIR)/zip/Makefile || exit 0; \
27880 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zip ; \
4fc4dd12 27881 $(HOST_EXPORTS) \
25b42232
PB
27882 echo Configuring in $(HOST_SUBDIR)/zip; \
27883 cd "$(HOST_SUBDIR)/zip" || exit 1; \
4977bab6 27884 case $(srcdir) in \
215c351a
PB
27885 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
27886 *) topdir=`echo $(HOST_SUBDIR)/zip/ | \
27887 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 27888 esac; \
215c351a
PB
27889 srcdiroption="--srcdir=$${topdir}/zip"; \
27890 libsrcdir="$$s/zip"; \
4977bab6 27891 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 27892 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 27893 || exit 1
d32ab992 27894@endif zip
4977bab6 27895
25b42232
PB
27896
27897
ce406537
PB
27898
27899
d32ab992
PB
27900.PHONY: all-zip maybe-all-zip
27901maybe-all-zip:
3ff3adad
PB
27902@if gcc-bootstrap
27903all-zip: stage_current
27904@endif gcc-bootstrap
d32ab992 27905@if zip
7e0b5752 27906TARGET-zip=all
d32ab992
PB
27907maybe-all-zip: all-zip
27908all-zip: configure-zip
f41d6665 27909 @: $(MAKE); $(unstage)
8c90b13a
L
27910 @r=`${PWD_COMMAND}`; export r; \
27911 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27912 $(HOST_EXPORTS) \
215c351a
PB
27913 (cd $(HOST_SUBDIR)/zip && \
27914 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-zip))
d32ab992 27915@endif zip
4977bab6 27916
25b42232 27917
ce406537
PB
27918
27919
d32ab992
PB
27920.PHONY: check-zip maybe-check-zip
27921maybe-check-zip:
27922@if zip
27923maybe-check-zip: check-zip
4977bab6 27924
d32ab992
PB
27925# This module is only tested in a native toolchain.
27926check-zip:
f41d6665 27927 @: $(MAKE); $(unstage)
d32ab992
PB
27928 @if [ '$(host)' = '$(target)' ] ; then \
27929 r=`${PWD_COMMAND}`; export r; \
27930 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d32ab992 27931 $(HOST_EXPORTS) \
215c351a 27932 (cd $(HOST_SUBDIR)/zip && \
ef6e9bc0 27933 $(MAKE) $(FLAGS_TO_PASS) check); \
d32ab992 27934 fi
295f4e42 27935
d32ab992 27936@endif zip
295f4e42 27937
d32ab992
PB
27938.PHONY: install-zip maybe-install-zip
27939maybe-install-zip:
27940@if zip
27941maybe-install-zip: install-zip
295f4e42 27942
d32ab992 27943install-zip: installdirs
f41d6665 27944 @: $(MAKE); $(unstage)
d32ab992
PB
27945 @r=`${PWD_COMMAND}`; export r; \
27946 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d32ab992 27947 $(HOST_EXPORTS) \
215c351a 27948 (cd $(HOST_SUBDIR)/zip && \
ace9ac7b 27949 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 27950
d32ab992 27951@endif zip
295f4e42
NN
27952
27953# Other targets (info, dvi, etc.)
27954
d32ab992
PB
27955.PHONY: maybe-info-zip info-zip
27956maybe-info-zip:
27957@if zip
27958maybe-info-zip: info-zip
295f4e42 27959
d32ab992 27960info-zip: \
05750653 27961 configure-zip
f41d6665 27962 @: $(MAKE); $(unstage)
d32ab992 27963 @[ -f ./zip/Makefile ] || exit 0; \
295f4e42 27964 r=`${PWD_COMMAND}`; export r; \
8c90b13a 27965 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27966 $(HOST_EXPORTS) \
d32ab992 27967 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27968 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27969 done; \
d32ab992 27970 echo "Doing info in zip" ; \
215c351a 27971 (cd $(HOST_SUBDIR)/zip && \
295f4e42
NN
27972 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27973 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27974 "RANLIB=$${RANLIB}" \
27975 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27976 info) \
295f4e42 27977 || exit 1
4977bab6 27978
d32ab992 27979@endif zip
4977bab6 27980
d32ab992
PB
27981.PHONY: maybe-dvi-zip dvi-zip
27982maybe-dvi-zip:
27983@if zip
27984maybe-dvi-zip: dvi-zip
7e2dbcef 27985
d32ab992 27986dvi-zip: \
05750653 27987 configure-zip
f41d6665 27988 @: $(MAKE); $(unstage)
d32ab992 27989 @[ -f ./zip/Makefile ] || exit 0; \
295f4e42 27990 r=`${PWD_COMMAND}`; export r; \
8c90b13a 27991 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27992 $(HOST_EXPORTS) \
d32ab992 27993 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27994 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27995 done; \
d32ab992 27996 echo "Doing dvi in zip" ; \
215c351a 27997 (cd $(HOST_SUBDIR)/zip && \
295f4e42
NN
27998 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27999 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28000 "RANLIB=$${RANLIB}" \
28001 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 28002 dvi) \
295f4e42 28003 || exit 1
4977bab6 28004
d32ab992 28005@endif zip
4977bab6 28006
f87a2b2e
MS
28007.PHONY: maybe-html-zip html-zip
28008maybe-html-zip:
28009@if zip
28010maybe-html-zip: html-zip
28011
28012html-zip: \
05750653 28013 configure-zip
f41d6665 28014 @: $(MAKE); $(unstage)
f87a2b2e
MS
28015 @[ -f ./zip/Makefile ] || exit 0; \
28016 r=`${PWD_COMMAND}`; export r; \
28017 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
28018 $(HOST_EXPORTS) \
28019 for flag in $(EXTRA_HOST_FLAGS) ; do \
28020 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28021 done; \
28022 echo "Doing html in zip" ; \
215c351a 28023 (cd $(HOST_SUBDIR)/zip && \
f87a2b2e
MS
28024 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28025 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28026 "RANLIB=$${RANLIB}" \
28027 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
28028 html) \
28029 || exit 1
28030
28031@endif zip
28032
d32ab992
PB
28033.PHONY: maybe-TAGS-zip TAGS-zip
28034maybe-TAGS-zip:
28035@if zip
28036maybe-TAGS-zip: TAGS-zip
295f4e42 28037
d32ab992 28038TAGS-zip: \
05750653 28039 configure-zip
f41d6665 28040 @: $(MAKE); $(unstage)
d32ab992 28041 @[ -f ./zip/Makefile ] || exit 0; \
295f4e42
NN
28042 r=`${PWD_COMMAND}`; export r; \
28043 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28044 $(HOST_EXPORTS) \
d32ab992 28045 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
28046 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28047 done; \
d32ab992 28048 echo "Doing TAGS in zip" ; \
215c351a 28049 (cd $(HOST_SUBDIR)/zip && \
295f4e42
NN
28050 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28051 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28052 "RANLIB=$${RANLIB}" \
28053 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 28054 TAGS) \
295f4e42
NN
28055 || exit 1
28056
d32ab992 28057@endif zip
295f4e42 28058
d32ab992
PB
28059.PHONY: maybe-install-info-zip install-info-zip
28060maybe-install-info-zip:
28061@if zip
28062maybe-install-info-zip: install-info-zip
295f4e42 28063
d32ab992
PB
28064install-info-zip: \
28065 configure-zip \
05750653 28066 info-zip
f41d6665 28067 @: $(MAKE); $(unstage)
d32ab992 28068 @[ -f ./zip/Makefile ] || exit 0; \
295f4e42
NN
28069 r=`${PWD_COMMAND}`; export r; \
28070 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28071 $(HOST_EXPORTS) \
d32ab992 28072 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
28073 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28074 done; \
d32ab992 28075 echo "Doing install-info in zip" ; \
215c351a 28076 (cd $(HOST_SUBDIR)/zip && \
295f4e42
NN
28077 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28078 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28079 "RANLIB=$${RANLIB}" \
28080 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 28081 install-info) \
295f4e42
NN
28082 || exit 1
28083
d32ab992 28084@endif zip
295f4e42 28085
65d6e994
CD
28086.PHONY: maybe-install-html-zip install-html-zip
28087maybe-install-html-zip:
28088@if zip
28089maybe-install-html-zip: install-html-zip
28090
28091install-html-zip: \
28092 configure-zip \
28093 html-zip
28094 @: $(MAKE); $(unstage)
28095 @[ -f ./zip/Makefile ] || exit 0; \
28096 r=`${PWD_COMMAND}`; export r; \
28097 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28098 $(HOST_EXPORTS) \
28099 for flag in $(EXTRA_HOST_FLAGS) ; do \
28100 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28101 done; \
28102 echo "Doing install-html in zip" ; \
28103 (cd $(HOST_SUBDIR)/zip && \
28104 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28105 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28106 "RANLIB=$${RANLIB}" \
28107 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
28108 install-html) \
28109 || exit 1
28110
28111@endif zip
28112
d32ab992
PB
28113.PHONY: maybe-installcheck-zip installcheck-zip
28114maybe-installcheck-zip:
28115@if zip
28116maybe-installcheck-zip: installcheck-zip
295f4e42 28117
d32ab992 28118installcheck-zip: \
05750653 28119 configure-zip
f41d6665 28120 @: $(MAKE); $(unstage)
d32ab992 28121 @[ -f ./zip/Makefile ] || exit 0; \
295f4e42
NN
28122 r=`${PWD_COMMAND}`; export r; \
28123 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28124 $(HOST_EXPORTS) \
d32ab992 28125 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
28126 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28127 done; \
d32ab992 28128 echo "Doing installcheck in zip" ; \
215c351a 28129 (cd $(HOST_SUBDIR)/zip && \
295f4e42
NN
28130 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28131 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28132 "RANLIB=$${RANLIB}" \
28133 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 28134 installcheck) \
295f4e42
NN
28135 || exit 1
28136
d32ab992 28137@endif zip
295f4e42 28138
d32ab992
PB
28139.PHONY: maybe-mostlyclean-zip mostlyclean-zip
28140maybe-mostlyclean-zip:
28141@if zip
28142maybe-mostlyclean-zip: mostlyclean-zip
295f4e42 28143
05750653 28144mostlyclean-zip:
f41d6665 28145 @: $(MAKE); $(unstage)
d32ab992 28146 @[ -f ./zip/Makefile ] || exit 0; \
295f4e42
NN
28147 r=`${PWD_COMMAND}`; export r; \
28148 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28149 $(HOST_EXPORTS) \
d32ab992 28150 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
28151 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28152 done; \
d32ab992 28153 echo "Doing mostlyclean in zip" ; \
215c351a 28154 (cd $(HOST_SUBDIR)/zip && \
295f4e42
NN
28155 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28156 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28157 "RANLIB=$${RANLIB}" \
28158 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 28159 mostlyclean) \
295f4e42
NN
28160 || exit 1
28161
d32ab992 28162@endif zip
295f4e42 28163
d32ab992
PB
28164.PHONY: maybe-clean-zip clean-zip
28165maybe-clean-zip:
28166@if zip
28167maybe-clean-zip: clean-zip
295f4e42 28168
05750653 28169clean-zip:
f41d6665 28170 @: $(MAKE); $(unstage)
d32ab992 28171 @[ -f ./zip/Makefile ] || exit 0; \
295f4e42
NN
28172 r=`${PWD_COMMAND}`; export r; \
28173 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28174 $(HOST_EXPORTS) \
d32ab992 28175 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
28176 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28177 done; \
d32ab992 28178 echo "Doing clean in zip" ; \
215c351a 28179 (cd $(HOST_SUBDIR)/zip && \
295f4e42
NN
28180 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28181 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28182 "RANLIB=$${RANLIB}" \
28183 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 28184 clean) \
295f4e42
NN
28185 || exit 1
28186
d32ab992 28187@endif zip
295f4e42 28188
d32ab992
PB
28189.PHONY: maybe-distclean-zip distclean-zip
28190maybe-distclean-zip:
28191@if zip
28192maybe-distclean-zip: distclean-zip
295f4e42 28193
05750653 28194distclean-zip:
f41d6665 28195 @: $(MAKE); $(unstage)
d32ab992 28196 @[ -f ./zip/Makefile ] || exit 0; \
295f4e42
NN
28197 r=`${PWD_COMMAND}`; export r; \
28198 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28199 $(HOST_EXPORTS) \
d32ab992 28200 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
28201 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28202 done; \
d32ab992 28203 echo "Doing distclean in zip" ; \
215c351a 28204 (cd $(HOST_SUBDIR)/zip && \
295f4e42
NN
28205 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28206 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28207 "RANLIB=$${RANLIB}" \
28208 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 28209 distclean) \
295f4e42
NN
28210 || exit 1
28211
d32ab992 28212@endif zip
295f4e42 28213
d32ab992
PB
28214.PHONY: maybe-maintainer-clean-zip maintainer-clean-zip
28215maybe-maintainer-clean-zip:
28216@if zip
28217maybe-maintainer-clean-zip: maintainer-clean-zip
295f4e42 28218
05750653 28219maintainer-clean-zip:
f41d6665 28220 @: $(MAKE); $(unstage)
d32ab992 28221 @[ -f ./zip/Makefile ] || exit 0; \
295f4e42
NN
28222 r=`${PWD_COMMAND}`; export r; \
28223 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28224 $(HOST_EXPORTS) \
d32ab992 28225 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
28226 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28227 done; \
d32ab992 28228 echo "Doing maintainer-clean in zip" ; \
215c351a 28229 (cd $(HOST_SUBDIR)/zip && \
295f4e42
NN
28230 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28231 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28232 "RANLIB=$${RANLIB}" \
28233 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 28234 maintainer-clean) \
295f4e42
NN
28235 || exit 1
28236
d32ab992 28237@endif zip
295f4e42
NN
28238
28239
25b42232 28240
d32ab992
PB
28241.PHONY: configure-zlib maybe-configure-zlib
28242maybe-configure-zlib:
3ff3adad
PB
28243@if gcc-bootstrap
28244configure-zlib: stage_current
28245@endif gcc-bootstrap
d32ab992
PB
28246@if zlib
28247maybe-configure-zlib: configure-zlib
cc11cc9b 28248configure-zlib:
cc11cc9b
PB
28249 @r=`${PWD_COMMAND}`; export r; \
28250 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
215c351a
PB
28251 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
28252 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
4fc4dd12 28253 $(HOST_EXPORTS) \
25b42232
PB
28254 echo Configuring in $(HOST_SUBDIR)/zlib; \
28255 cd "$(HOST_SUBDIR)/zlib" || exit 1; \
4977bab6 28256 case $(srcdir) in \
215c351a
PB
28257 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
28258 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
28259 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 28260 esac; \
215c351a
PB
28261 srcdiroption="--srcdir=$${topdir}/zlib"; \
28262 libsrcdir="$$s/zlib"; \
4977bab6 28263 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 28264 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 28265 || exit 1
d32ab992 28266@endif zlib
4977bab6 28267
25b42232
PB
28268
28269
ce406537
PB
28270.PHONY: configure-stage1-zlib maybe-configure-stage1-zlib
28271maybe-configure-stage1-zlib:
28272@if zlib-bootstrap
28273maybe-configure-stage1-zlib: configure-stage1-zlib
f41d6665 28274configure-stage1-zlib:
cc11cc9b 28275 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
f41d6665 28276 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
cc11cc9b
PB
28277 @r=`${PWD_COMMAND}`; export r; \
28278 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 28279 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
ce406537
PB
28280 $(HOST_EXPORTS) \
28281 echo Configuring stage 1 in $(HOST_SUBDIR)/zlib ; \
f41d6665 28282 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
ce406537
PB
28283 cd $(HOST_SUBDIR)/zlib || exit 1; \
28284 case $(srcdir) in \
28285 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
28286 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
28287 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
28288 esac; \
28289 srcdiroption="--srcdir=$${topdir}/zlib"; \
28290 libsrcdir="$$s/zlib"; \
28291 $(SHELL) $${libsrcdir}/configure \
28292 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 28293 \
ce406537
PB
28294 --disable-intermodule --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
28295@endif zlib-bootstrap
28296
28297.PHONY: configure-stage2-zlib maybe-configure-stage2-zlib
28298maybe-configure-stage2-zlib:
28299@if zlib-bootstrap
28300maybe-configure-stage2-zlib: configure-stage2-zlib
f41d6665 28301configure-stage2-zlib:
cc11cc9b 28302 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
f41d6665 28303 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
cc11cc9b
PB
28304 @r=`${PWD_COMMAND}`; export r; \
28305 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 28306 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
ce406537
PB
28307 $(HOST_EXPORTS) \
28308 $(POSTSTAGE1_HOST_EXPORTS) \
28309 echo Configuring stage 2 in $(HOST_SUBDIR)/zlib ; \
f41d6665 28310 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
ce406537
PB
28311 cd $(HOST_SUBDIR)/zlib || exit 1; \
28312 case $(srcdir) in \
28313 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
28314 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
28315 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
28316 esac; \
28317 srcdiroption="--srcdir=$${topdir}/zlib"; \
28318 libsrcdir="$$s/zlib"; \
28319 $(SHELL) $${libsrcdir}/configure \
28320 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 28321 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
28322 @stage2_werror_flag@
28323@endif zlib-bootstrap
28324
28325.PHONY: configure-stage3-zlib maybe-configure-stage3-zlib
28326maybe-configure-stage3-zlib:
28327@if zlib-bootstrap
28328maybe-configure-stage3-zlib: configure-stage3-zlib
f41d6665 28329configure-stage3-zlib:
cc11cc9b 28330 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
f41d6665 28331 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
cc11cc9b
PB
28332 @r=`${PWD_COMMAND}`; export r; \
28333 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 28334 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
ce406537
PB
28335 $(HOST_EXPORTS) \
28336 $(POSTSTAGE1_HOST_EXPORTS) \
28337 echo Configuring stage 3 in $(HOST_SUBDIR)/zlib ; \
f41d6665 28338 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
ce406537
PB
28339 cd $(HOST_SUBDIR)/zlib || exit 1; \
28340 case $(srcdir) in \
28341 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
28342 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
28343 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
28344 esac; \
28345 srcdiroption="--srcdir=$${topdir}/zlib"; \
28346 libsrcdir="$$s/zlib"; \
28347 $(SHELL) $${libsrcdir}/configure \
28348 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 28349 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
28350 @stage2_werror_flag@
28351@endif zlib-bootstrap
28352
28353.PHONY: configure-stage4-zlib maybe-configure-stage4-zlib
28354maybe-configure-stage4-zlib:
28355@if zlib-bootstrap
28356maybe-configure-stage4-zlib: configure-stage4-zlib
f41d6665 28357configure-stage4-zlib:
cc11cc9b 28358 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
f41d6665 28359 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
cc11cc9b
PB
28360 @r=`${PWD_COMMAND}`; export r; \
28361 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 28362 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
ce406537
PB
28363 $(HOST_EXPORTS) \
28364 $(POSTSTAGE1_HOST_EXPORTS) \
28365 echo Configuring stage 4 in $(HOST_SUBDIR)/zlib ; \
f41d6665 28366 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
ce406537
PB
28367 cd $(HOST_SUBDIR)/zlib || exit 1; \
28368 case $(srcdir) in \
28369 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
28370 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
28371 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
28372 esac; \
28373 srcdiroption="--srcdir=$${topdir}/zlib"; \
28374 libsrcdir="$$s/zlib"; \
28375 $(SHELL) $${libsrcdir}/configure \
28376 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 28377 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
28378 @stage2_werror_flag@
28379@endif zlib-bootstrap
28380
28381.PHONY: configure-stageprofile-zlib maybe-configure-stageprofile-zlib
28382maybe-configure-stageprofile-zlib:
28383@if zlib-bootstrap
28384maybe-configure-stageprofile-zlib: configure-stageprofile-zlib
f41d6665 28385configure-stageprofile-zlib:
cc11cc9b 28386 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
f41d6665 28387 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
cc11cc9b
PB
28388 @r=`${PWD_COMMAND}`; export r; \
28389 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 28390 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
ce406537
PB
28391 $(HOST_EXPORTS) \
28392 $(POSTSTAGE1_HOST_EXPORTS) \
28393 echo Configuring stage profile in $(HOST_SUBDIR)/zlib ; \
f41d6665 28394 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
ce406537
PB
28395 cd $(HOST_SUBDIR)/zlib || exit 1; \
28396 case $(srcdir) in \
28397 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
28398 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
28399 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
28400 esac; \
28401 srcdiroption="--srcdir=$${topdir}/zlib"; \
28402 libsrcdir="$$s/zlib"; \
28403 $(SHELL) $${libsrcdir}/configure \
28404 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 28405 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
28406 @stage2_werror_flag@
28407@endif zlib-bootstrap
28408
28409.PHONY: configure-stagefeedback-zlib maybe-configure-stagefeedback-zlib
28410maybe-configure-stagefeedback-zlib:
28411@if zlib-bootstrap
28412maybe-configure-stagefeedback-zlib: configure-stagefeedback-zlib
f41d6665 28413configure-stagefeedback-zlib:
cc11cc9b 28414 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
f41d6665 28415 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
cc11cc9b
PB
28416 @r=`${PWD_COMMAND}`; export r; \
28417 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 28418 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
ce406537
PB
28419 $(HOST_EXPORTS) \
28420 $(POSTSTAGE1_HOST_EXPORTS) \
28421 echo Configuring stage feedback in $(HOST_SUBDIR)/zlib ; \
f41d6665 28422 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
ce406537
PB
28423 cd $(HOST_SUBDIR)/zlib || exit 1; \
28424 case $(srcdir) in \
28425 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
28426 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
28427 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
28428 esac; \
28429 srcdiroption="--srcdir=$${topdir}/zlib"; \
28430 libsrcdir="$$s/zlib"; \
28431 $(SHELL) $${libsrcdir}/configure \
28432 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 28433 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
28434 @stage2_werror_flag@
28435@endif zlib-bootstrap
28436
28437
28438
28439
28440
d32ab992
PB
28441.PHONY: all-zlib maybe-all-zlib
28442maybe-all-zlib:
3ff3adad
PB
28443@if gcc-bootstrap
28444all-zlib: stage_current
28445@endif gcc-bootstrap
d32ab992 28446@if zlib
7e0b5752 28447TARGET-zlib=all
d32ab992
PB
28448maybe-all-zlib: all-zlib
28449all-zlib: configure-zlib
cc11cc9b 28450 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 28451 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28452 $(HOST_EXPORTS) \
215c351a
PB
28453 (cd $(HOST_SUBDIR)/zlib && \
28454 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-zlib))
d32ab992 28455@endif zlib
4977bab6 28456
25b42232 28457
ce406537
PB
28458
28459.PHONY: all-stage1-zlib maybe-all-stage1-zlib
28460.PHONY: clean-stage1-zlib maybe-clean-stage1-zlib
28461maybe-all-stage1-zlib:
28462maybe-clean-stage1-zlib:
28463@if zlib-bootstrap
28464maybe-all-stage1-zlib: all-stage1-zlib
28465all-stage1: all-stage1-zlib
1061f99e 28466TARGET-stage1-zlib = $(TARGET-zlib)
ce406537 28467all-stage1-zlib: configure-stage1-zlib
cc11cc9b 28468 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
ce406537
PB
28469 @r=`${PWD_COMMAND}`; export r; \
28470 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28471 $(HOST_EXPORTS) \
28472 cd $(HOST_SUBDIR)/zlib && \
cc11cc9b 28473 $(MAKE) $(FLAGS_TO_PASS) CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" \
1061f99e 28474 $(TARGET-stage1-zlib)
ce406537
PB
28475
28476maybe-clean-stage1-zlib: clean-stage1-zlib
28477clean-stage1: clean-stage1-zlib
28478clean-stage1-zlib:
28479 @[ -f $(HOST_SUBDIR)/zlib/Makefile ] || [ -f $(HOST_SUBDIR)/stage1-zlib/Makefile ] \
28480 || exit 0 ; \
cc11cc9b 28481 [ $(current_stage) = stage1 ] || $(MAKE) stage1-start; \
ce406537
PB
28482 cd $(HOST_SUBDIR)/zlib && \
28483 $(MAKE) $(FLAGS_TO_PASS) \
cc11cc9b 28484 CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" clean
ce406537
PB
28485@endif zlib-bootstrap
28486
28487
28488.PHONY: all-stage2-zlib maybe-all-stage2-zlib
28489.PHONY: clean-stage2-zlib maybe-clean-stage2-zlib
28490maybe-all-stage2-zlib:
28491maybe-clean-stage2-zlib:
28492@if zlib-bootstrap
28493maybe-all-stage2-zlib: all-stage2-zlib
28494all-stage2: all-stage2-zlib
1061f99e 28495TARGET-stage2-zlib = $(TARGET-zlib)
ce406537 28496all-stage2-zlib: configure-stage2-zlib
cc11cc9b 28497 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
ce406537
PB
28498 @r=`${PWD_COMMAND}`; export r; \
28499 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28500 $(HOST_EXPORTS) \
28501 $(POSTSTAGE1_HOST_EXPORTS) \
28502 cd $(HOST_SUBDIR)/zlib && \
1061f99e
PB
28503 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
28504 $(TARGET-stage2-zlib)
ce406537
PB
28505
28506maybe-clean-stage2-zlib: clean-stage2-zlib
28507clean-stage2: clean-stage2-zlib
28508clean-stage2-zlib:
28509 @[ -f $(HOST_SUBDIR)/zlib/Makefile ] || [ -f $(HOST_SUBDIR)/stage2-zlib/Makefile ] \
28510 || exit 0 ; \
cc11cc9b 28511 [ $(current_stage) = stage2 ] || $(MAKE) stage2-start; \
ce406537
PB
28512 cd $(HOST_SUBDIR)/zlib && \
28513 $(MAKE) $(FLAGS_TO_PASS) \
28514 $(POSTSTAGE1_FLAGS_TO_PASS) \
28515 clean
28516@endif zlib-bootstrap
28517
28518
28519.PHONY: all-stage3-zlib maybe-all-stage3-zlib
28520.PHONY: clean-stage3-zlib maybe-clean-stage3-zlib
28521maybe-all-stage3-zlib:
28522maybe-clean-stage3-zlib:
28523@if zlib-bootstrap
28524maybe-all-stage3-zlib: all-stage3-zlib
28525all-stage3: all-stage3-zlib
1061f99e 28526TARGET-stage3-zlib = $(TARGET-zlib)
ce406537 28527all-stage3-zlib: configure-stage3-zlib
cc11cc9b 28528 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
ce406537
PB
28529 @r=`${PWD_COMMAND}`; export r; \
28530 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28531 $(HOST_EXPORTS) \
28532 $(POSTSTAGE1_HOST_EXPORTS) \
28533 cd $(HOST_SUBDIR)/zlib && \
1061f99e
PB
28534 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
28535 $(TARGET-stage3-zlib)
ce406537
PB
28536
28537maybe-clean-stage3-zlib: clean-stage3-zlib
28538clean-stage3: clean-stage3-zlib
28539clean-stage3-zlib:
28540 @[ -f $(HOST_SUBDIR)/zlib/Makefile ] || [ -f $(HOST_SUBDIR)/stage3-zlib/Makefile ] \
28541 || exit 0 ; \
cc11cc9b 28542 [ $(current_stage) = stage3 ] || $(MAKE) stage3-start; \
ce406537
PB
28543 cd $(HOST_SUBDIR)/zlib && \
28544 $(MAKE) $(FLAGS_TO_PASS) \
28545 $(POSTSTAGE1_FLAGS_TO_PASS) \
28546 clean
28547@endif zlib-bootstrap
28548
28549
28550.PHONY: all-stage4-zlib maybe-all-stage4-zlib
28551.PHONY: clean-stage4-zlib maybe-clean-stage4-zlib
28552maybe-all-stage4-zlib:
28553maybe-clean-stage4-zlib:
28554@if zlib-bootstrap
28555maybe-all-stage4-zlib: all-stage4-zlib
28556all-stage4: all-stage4-zlib
1061f99e 28557TARGET-stage4-zlib = $(TARGET-zlib)
ce406537 28558all-stage4-zlib: configure-stage4-zlib
cc11cc9b 28559 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
ce406537
PB
28560 @r=`${PWD_COMMAND}`; export r; \
28561 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28562 $(HOST_EXPORTS) \
28563 $(POSTSTAGE1_HOST_EXPORTS) \
28564 cd $(HOST_SUBDIR)/zlib && \
1061f99e
PB
28565 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
28566 $(TARGET-stage4-zlib)
ce406537
PB
28567
28568maybe-clean-stage4-zlib: clean-stage4-zlib
28569clean-stage4: clean-stage4-zlib
28570clean-stage4-zlib:
28571 @[ -f $(HOST_SUBDIR)/zlib/Makefile ] || [ -f $(HOST_SUBDIR)/stage4-zlib/Makefile ] \
28572 || exit 0 ; \
cc11cc9b 28573 [ $(current_stage) = stage4 ] || $(MAKE) stage4-start; \
ce406537
PB
28574 cd $(HOST_SUBDIR)/zlib && \
28575 $(MAKE) $(FLAGS_TO_PASS) \
28576 $(POSTSTAGE1_FLAGS_TO_PASS) \
28577 clean
28578@endif zlib-bootstrap
28579
28580
28581.PHONY: all-stageprofile-zlib maybe-all-stageprofile-zlib
28582.PHONY: clean-stageprofile-zlib maybe-clean-stageprofile-zlib
28583maybe-all-stageprofile-zlib:
28584maybe-clean-stageprofile-zlib:
28585@if zlib-bootstrap
28586maybe-all-stageprofile-zlib: all-stageprofile-zlib
28587all-stageprofile: all-stageprofile-zlib
1061f99e 28588TARGET-stageprofile-zlib = $(TARGET-zlib)
ce406537 28589all-stageprofile-zlib: configure-stageprofile-zlib
cc11cc9b 28590 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
ce406537
PB
28591 @r=`${PWD_COMMAND}`; export r; \
28592 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28593 $(HOST_EXPORTS) \
28594 $(POSTSTAGE1_HOST_EXPORTS) \
28595 cd $(HOST_SUBDIR)/zlib && \
1061f99e
PB
28596 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" \
28597 $(TARGET-stageprofile-zlib)
ce406537
PB
28598
28599maybe-clean-stageprofile-zlib: clean-stageprofile-zlib
28600clean-stageprofile: clean-stageprofile-zlib
28601clean-stageprofile-zlib:
28602 @[ -f $(HOST_SUBDIR)/zlib/Makefile ] || [ -f $(HOST_SUBDIR)/stageprofile-zlib/Makefile ] \
28603 || exit 0 ; \
cc11cc9b 28604 [ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start; \
ce406537
PB
28605 cd $(HOST_SUBDIR)/zlib && \
28606 $(MAKE) $(FLAGS_TO_PASS) \
28607 $(POSTSTAGE1_FLAGS_TO_PASS) \
28608 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean
28609@endif zlib-bootstrap
28610
28611
28612.PHONY: all-stagefeedback-zlib maybe-all-stagefeedback-zlib
28613.PHONY: clean-stagefeedback-zlib maybe-clean-stagefeedback-zlib
28614maybe-all-stagefeedback-zlib:
28615maybe-clean-stagefeedback-zlib:
28616@if zlib-bootstrap
28617maybe-all-stagefeedback-zlib: all-stagefeedback-zlib
28618all-stagefeedback: all-stagefeedback-zlib
1061f99e 28619TARGET-stagefeedback-zlib = $(TARGET-zlib)
ce406537 28620all-stagefeedback-zlib: configure-stagefeedback-zlib
cc11cc9b 28621 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
ce406537
PB
28622 @r=`${PWD_COMMAND}`; export r; \
28623 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28624 $(HOST_EXPORTS) \
28625 $(POSTSTAGE1_HOST_EXPORTS) \
28626 cd $(HOST_SUBDIR)/zlib && \
1061f99e
PB
28627 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-use" \
28628 $(TARGET-stagefeedback-zlib)
ce406537
PB
28629
28630maybe-clean-stagefeedback-zlib: clean-stagefeedback-zlib
28631clean-stagefeedback: clean-stagefeedback-zlib
28632clean-stagefeedback-zlib:
28633 @[ -f $(HOST_SUBDIR)/zlib/Makefile ] || [ -f $(HOST_SUBDIR)/stagefeedback-zlib/Makefile ] \
28634 || exit 0 ; \
cc11cc9b 28635 [ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start; \
ce406537
PB
28636 cd $(HOST_SUBDIR)/zlib && \
28637 $(MAKE) $(FLAGS_TO_PASS) \
28638 $(POSTSTAGE1_FLAGS_TO_PASS) \
28639 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean
28640@endif zlib-bootstrap
28641
28642
28643
28644
28645
d32ab992
PB
28646.PHONY: check-zlib maybe-check-zlib
28647maybe-check-zlib:
28648@if zlib
28649maybe-check-zlib: check-zlib
4977bab6 28650
d32ab992 28651check-zlib:
4977bab6 28652
d32ab992 28653@endif zlib
4977bab6 28654
d32ab992
PB
28655.PHONY: install-zlib maybe-install-zlib
28656maybe-install-zlib:
28657@if zlib
28658maybe-install-zlib: install-zlib
7e2dbcef 28659
d32ab992 28660install-zlib:
4977bab6 28661
d32ab992 28662@endif zlib
4977bab6 28663
295f4e42
NN
28664# Other targets (info, dvi, etc.)
28665
d32ab992
PB
28666.PHONY: maybe-info-zlib info-zlib
28667maybe-info-zlib:
28668@if zlib
28669maybe-info-zlib: info-zlib
295f4e42 28670
f87a2b2e 28671info-zlib: \
05750653 28672 configure-zlib
f87a2b2e
MS
28673 @[ -f ./zlib/Makefile ] || exit 0; \
28674 r=`${PWD_COMMAND}`; export r; \
28675 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
28676 $(HOST_EXPORTS) \
28677 for flag in $(EXTRA_HOST_FLAGS) ; do \
28678 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28679 done; \
28680 echo "Doing info in zlib" ; \
215c351a 28681 (cd $(HOST_SUBDIR)/zlib && \
f87a2b2e
MS
28682 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28683 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28684 "RANLIB=$${RANLIB}" \
28685 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
28686 info) \
28687 || exit 1
28688
28689@endif zlib
28690
28691.PHONY: maybe-dvi-zlib dvi-zlib
28692maybe-dvi-zlib:
28693@if zlib
28694maybe-dvi-zlib: dvi-zlib
28695
28696dvi-zlib: \
05750653 28697 configure-zlib
d32ab992 28698 @[ -f ./zlib/Makefile ] || exit 0; \
8c90b13a
L
28699 r=`${PWD_COMMAND}`; export r; \
28700 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28701 $(HOST_EXPORTS) \
d32ab992 28702 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
28703 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28704 done; \
f87a2b2e 28705 echo "Doing dvi in zlib" ; \
215c351a 28706 (cd $(HOST_SUBDIR)/zlib && \
295f4e42
NN
28707 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28708 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28709 "RANLIB=$${RANLIB}" \
28710 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
f87a2b2e 28711 dvi) \
4977bab6
ZW
28712 || exit 1
28713
d32ab992 28714@endif zlib
295f4e42 28715
f87a2b2e
MS
28716.PHONY: maybe-html-zlib html-zlib
28717maybe-html-zlib:
d32ab992 28718@if zlib
f87a2b2e 28719maybe-html-zlib: html-zlib
295f4e42 28720
f87a2b2e 28721html-zlib: \
05750653 28722 configure-zlib
d32ab992 28723 @[ -f ./zlib/Makefile ] || exit 0; \
295f4e42 28724 r=`${PWD_COMMAND}`; export r; \
8c90b13a 28725 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28726 $(HOST_EXPORTS) \
d32ab992 28727 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
28728 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28729 done; \
f87a2b2e 28730 echo "Doing html in zlib" ; \
215c351a 28731 (cd $(HOST_SUBDIR)/zlib && \
295f4e42
NN
28732 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28733 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28734 "RANLIB=$${RANLIB}" \
28735 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
f87a2b2e 28736 html) \
295f4e42 28737 || exit 1
4977bab6 28738
d32ab992 28739@endif zlib
4977bab6 28740
d32ab992
PB
28741.PHONY: maybe-TAGS-zlib TAGS-zlib
28742maybe-TAGS-zlib:
28743@if zlib
28744maybe-TAGS-zlib: TAGS-zlib
295f4e42 28745
d32ab992 28746TAGS-zlib: \
05750653 28747 configure-zlib
d32ab992 28748 @[ -f ./zlib/Makefile ] || exit 0; \
295f4e42 28749 r=`${PWD_COMMAND}`; export r; \
8c90b13a 28750 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28751 $(HOST_EXPORTS) \
d32ab992 28752 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
28753 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28754 done; \
d32ab992 28755 echo "Doing TAGS in zlib" ; \
215c351a 28756 (cd $(HOST_SUBDIR)/zlib && \
295f4e42
NN
28757 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28758 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28759 "RANLIB=$${RANLIB}" \
28760 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 28761 TAGS) \
295f4e42 28762 || exit 1
4977bab6 28763
d32ab992 28764@endif zlib
4977bab6 28765
d32ab992
PB
28766.PHONY: maybe-install-info-zlib install-info-zlib
28767maybe-install-info-zlib:
28768@if zlib
28769maybe-install-info-zlib: install-info-zlib
7e2dbcef 28770
d32ab992
PB
28771install-info-zlib: \
28772 configure-zlib \
05750653 28773 info-zlib
d32ab992 28774 @[ -f ./zlib/Makefile ] || exit 0; \
295f4e42
NN
28775 r=`${PWD_COMMAND}`; export r; \
28776 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28777 $(HOST_EXPORTS) \
d32ab992 28778 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
28779 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28780 done; \
d32ab992 28781 echo "Doing install-info in zlib" ; \
215c351a 28782 (cd $(HOST_SUBDIR)/zlib && \
295f4e42
NN
28783 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28784 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28785 "RANLIB=$${RANLIB}" \
28786 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 28787 install-info) \
295f4e42
NN
28788 || exit 1
28789
d32ab992 28790@endif zlib
295f4e42 28791
65d6e994
CD
28792.PHONY: maybe-install-html-zlib install-html-zlib
28793maybe-install-html-zlib:
28794@if zlib
28795maybe-install-html-zlib: install-html-zlib
28796
28797install-html-zlib: \
28798 configure-zlib \
28799 html-zlib
28800 @[ -f ./zlib/Makefile ] || exit 0; \
28801 r=`${PWD_COMMAND}`; export r; \
28802 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28803 $(HOST_EXPORTS) \
28804 for flag in $(EXTRA_HOST_FLAGS) ; do \
28805 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28806 done; \
28807 echo "Doing install-html in zlib" ; \
28808 (cd $(HOST_SUBDIR)/zlib && \
28809 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28810 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28811 "RANLIB=$${RANLIB}" \
28812 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
28813 install-html) \
28814 || exit 1
28815
28816@endif zlib
28817
d32ab992
PB
28818.PHONY: maybe-installcheck-zlib installcheck-zlib
28819maybe-installcheck-zlib:
28820@if zlib
28821maybe-installcheck-zlib: installcheck-zlib
295f4e42 28822
d32ab992 28823installcheck-zlib: \
05750653 28824 configure-zlib
d32ab992 28825 @[ -f ./zlib/Makefile ] || exit 0; \
295f4e42
NN
28826 r=`${PWD_COMMAND}`; export r; \
28827 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28828 $(HOST_EXPORTS) \
d32ab992 28829 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
28830 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28831 done; \
d32ab992 28832 echo "Doing installcheck in zlib" ; \
215c351a 28833 (cd $(HOST_SUBDIR)/zlib && \
295f4e42
NN
28834 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28835 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28836 "RANLIB=$${RANLIB}" \
28837 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 28838 installcheck) \
295f4e42
NN
28839 || exit 1
28840
d32ab992 28841@endif zlib
295f4e42 28842
d32ab992
PB
28843.PHONY: maybe-mostlyclean-zlib mostlyclean-zlib
28844maybe-mostlyclean-zlib:
28845@if zlib
28846maybe-mostlyclean-zlib: mostlyclean-zlib
295f4e42 28847
05750653 28848mostlyclean-zlib:
d32ab992 28849 @[ -f ./zlib/Makefile ] || exit 0; \
295f4e42
NN
28850 r=`${PWD_COMMAND}`; export r; \
28851 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28852 $(HOST_EXPORTS) \
d32ab992 28853 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
28854 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28855 done; \
d32ab992 28856 echo "Doing mostlyclean in zlib" ; \
215c351a 28857 (cd $(HOST_SUBDIR)/zlib && \
295f4e42
NN
28858 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28859 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28860 "RANLIB=$${RANLIB}" \
28861 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 28862 mostlyclean) \
295f4e42
NN
28863 || exit 1
28864
d32ab992 28865@endif zlib
295f4e42 28866
d32ab992
PB
28867.PHONY: maybe-clean-zlib clean-zlib
28868maybe-clean-zlib:
28869@if zlib
28870maybe-clean-zlib: clean-zlib
295f4e42 28871
05750653 28872clean-zlib:
d32ab992 28873 @[ -f ./zlib/Makefile ] || exit 0; \
295f4e42
NN
28874 r=`${PWD_COMMAND}`; export r; \
28875 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28876 $(HOST_EXPORTS) \
d32ab992 28877 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
28878 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28879 done; \
d32ab992 28880 echo "Doing clean in zlib" ; \
215c351a 28881 (cd $(HOST_SUBDIR)/zlib && \
295f4e42
NN
28882 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28883 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28884 "RANLIB=$${RANLIB}" \
28885 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 28886 clean) \
295f4e42
NN
28887 || exit 1
28888
d32ab992 28889@endif zlib
295f4e42 28890
d32ab992
PB
28891.PHONY: maybe-distclean-zlib distclean-zlib
28892maybe-distclean-zlib:
28893@if zlib
28894maybe-distclean-zlib: distclean-zlib
295f4e42 28895
05750653 28896distclean-zlib:
d32ab992 28897 @[ -f ./zlib/Makefile ] || exit 0; \
295f4e42
NN
28898 r=`${PWD_COMMAND}`; export r; \
28899 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28900 $(HOST_EXPORTS) \
d32ab992 28901 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
28902 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28903 done; \
d32ab992 28904 echo "Doing distclean in zlib" ; \
215c351a 28905 (cd $(HOST_SUBDIR)/zlib && \
295f4e42
NN
28906 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28907 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28908 "RANLIB=$${RANLIB}" \
28909 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 28910 distclean) \
295f4e42
NN
28911 || exit 1
28912
d32ab992 28913@endif zlib
295f4e42 28914
d32ab992
PB
28915.PHONY: maybe-maintainer-clean-zlib maintainer-clean-zlib
28916maybe-maintainer-clean-zlib:
28917@if zlib
28918maybe-maintainer-clean-zlib: maintainer-clean-zlib
295f4e42 28919
05750653 28920maintainer-clean-zlib:
d32ab992 28921 @[ -f ./zlib/Makefile ] || exit 0; \
295f4e42 28922 r=`${PWD_COMMAND}`; export r; \
8c90b13a 28923 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28924 $(HOST_EXPORTS) \
d32ab992 28925 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
28926 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28927 done; \
d32ab992 28928 echo "Doing maintainer-clean in zlib" ; \
215c351a 28929 (cd $(HOST_SUBDIR)/zlib && \
295f4e42
NN
28930 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28931 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28932 "RANLIB=$${RANLIB}" \
28933 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 28934 maintainer-clean) \
295f4e42 28935 || exit 1
4977bab6 28936
d32ab992 28937@endif zlib
4977bab6 28938
295f4e42 28939
25b42232 28940
d32ab992
PB
28941.PHONY: configure-gdb maybe-configure-gdb
28942maybe-configure-gdb:
3ff3adad
PB
28943@if gcc-bootstrap
28944configure-gdb: stage_current
28945@endif gcc-bootstrap
d32ab992
PB
28946@if gdb
28947maybe-configure-gdb: configure-gdb
cc11cc9b 28948configure-gdb:
f41d6665 28949 @: $(MAKE); $(unstage)
cc11cc9b 28950 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 28951 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
28952 test ! -f $(HOST_SUBDIR)/gdb/Makefile || exit 0; \
28953 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gdb ; \
4fc4dd12 28954 $(HOST_EXPORTS) \
25b42232
PB
28955 echo Configuring in $(HOST_SUBDIR)/gdb; \
28956 cd "$(HOST_SUBDIR)/gdb" || exit 1; \
4977bab6 28957 case $(srcdir) in \
215c351a
PB
28958 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
28959 *) topdir=`echo $(HOST_SUBDIR)/gdb/ | \
28960 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 28961 esac; \
215c351a
PB
28962 srcdiroption="--srcdir=$${topdir}/gdb"; \
28963 libsrcdir="$$s/gdb"; \
4977bab6 28964 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 28965 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 28966 || exit 1
d32ab992 28967@endif gdb
4977bab6 28968
25b42232
PB
28969
28970
ce406537
PB
28971
28972
d32ab992
PB
28973.PHONY: all-gdb maybe-all-gdb
28974maybe-all-gdb:
3ff3adad
PB
28975@if gcc-bootstrap
28976all-gdb: stage_current
28977@endif gcc-bootstrap
d32ab992 28978@if gdb
7e0b5752 28979TARGET-gdb=all
d32ab992
PB
28980maybe-all-gdb: all-gdb
28981all-gdb: configure-gdb
f41d6665 28982 @: $(MAKE); $(unstage)
8c90b13a
L
28983 @r=`${PWD_COMMAND}`; export r; \
28984 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28985 $(HOST_EXPORTS) \
215c351a
PB
28986 (cd $(HOST_SUBDIR)/gdb && \
28987 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) $(TARGET-gdb))
d32ab992 28988@endif gdb
4977bab6 28989
25b42232 28990
ce406537
PB
28991
28992
d32ab992
PB
28993.PHONY: check-gdb maybe-check-gdb
28994maybe-check-gdb:
28995@if gdb
28996maybe-check-gdb: check-gdb
4977bab6 28997
d32ab992 28998check-gdb:
f41d6665 28999 @: $(MAKE); $(unstage)
8c90b13a
L
29000 @r=`${PWD_COMMAND}`; export r; \
29001 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29002 $(HOST_EXPORTS) \
215c351a
PB
29003 (cd $(HOST_SUBDIR)/gdb && \
29004 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
4977bab6 29005
d32ab992 29006@endif gdb
4977bab6 29007
d32ab992
PB
29008.PHONY: install-gdb maybe-install-gdb
29009maybe-install-gdb:
29010@if gdb
29011maybe-install-gdb: install-gdb
295f4e42 29012
d32ab992 29013install-gdb: installdirs
f41d6665 29014 @: $(MAKE); $(unstage)
295f4e42
NN
29015 @r=`${PWD_COMMAND}`; export r; \
29016 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29017 $(HOST_EXPORTS) \
215c351a 29018 (cd $(HOST_SUBDIR)/gdb && \
ace9ac7b 29019 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
295f4e42 29020
d32ab992 29021@endif gdb
295f4e42
NN
29022
29023# Other targets (info, dvi, etc.)
29024
d32ab992
PB
29025.PHONY: maybe-info-gdb info-gdb
29026maybe-info-gdb:
29027@if gdb
29028maybe-info-gdb: info-gdb
295f4e42 29029
d32ab992 29030info-gdb: \
05750653 29031 configure-gdb
f41d6665 29032 @: $(MAKE); $(unstage)
d32ab992 29033 @[ -f ./gdb/Makefile ] || exit 0; \
295f4e42
NN
29034 r=`${PWD_COMMAND}`; export r; \
29035 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29036 $(HOST_EXPORTS) \
7c27e184 29037 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
29038 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29039 done; \
d32ab992 29040 echo "Doing info in gdb" ; \
215c351a 29041 (cd $(HOST_SUBDIR)/gdb && \
295f4e42
NN
29042 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29043 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29044 "RANLIB=$${RANLIB}" \
29045 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29046 info) \
295f4e42
NN
29047 || exit 1
29048
d32ab992 29049@endif gdb
295f4e42 29050
d32ab992
PB
29051.PHONY: maybe-dvi-gdb dvi-gdb
29052maybe-dvi-gdb:
29053@if gdb
29054maybe-dvi-gdb: dvi-gdb
295f4e42 29055
d32ab992 29056dvi-gdb: \
05750653 29057 configure-gdb
f41d6665 29058 @: $(MAKE); $(unstage)
d32ab992 29059 @[ -f ./gdb/Makefile ] || exit 0; \
295f4e42
NN
29060 r=`${PWD_COMMAND}`; export r; \
29061 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29062 $(HOST_EXPORTS) \
7c27e184 29063 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
29064 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29065 done; \
d32ab992 29066 echo "Doing dvi in gdb" ; \
215c351a 29067 (cd $(HOST_SUBDIR)/gdb && \
295f4e42
NN
29068 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29069 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29070 "RANLIB=$${RANLIB}" \
29071 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29072 dvi) \
295f4e42
NN
29073 || exit 1
29074
d32ab992 29075@endif gdb
295f4e42 29076
f87a2b2e
MS
29077.PHONY: maybe-html-gdb html-gdb
29078maybe-html-gdb:
29079@if gdb
29080maybe-html-gdb: html-gdb
29081
29082html-gdb: \
05750653 29083 configure-gdb
f41d6665 29084 @: $(MAKE); $(unstage)
f87a2b2e
MS
29085 @[ -f ./gdb/Makefile ] || exit 0; \
29086 r=`${PWD_COMMAND}`; export r; \
29087 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
29088 $(HOST_EXPORTS) \
29089 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
29090 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29091 done; \
29092 echo "Doing html in gdb" ; \
215c351a 29093 (cd $(HOST_SUBDIR)/gdb && \
f87a2b2e
MS
29094 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29095 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29096 "RANLIB=$${RANLIB}" \
29097 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
29098 html) \
29099 || exit 1
29100
29101@endif gdb
29102
d32ab992
PB
29103.PHONY: maybe-TAGS-gdb TAGS-gdb
29104maybe-TAGS-gdb:
29105@if gdb
29106maybe-TAGS-gdb: TAGS-gdb
295f4e42 29107
d32ab992 29108TAGS-gdb: \
05750653 29109 configure-gdb
f41d6665 29110 @: $(MAKE); $(unstage)
d32ab992 29111 @[ -f ./gdb/Makefile ] || exit 0; \
295f4e42
NN
29112 r=`${PWD_COMMAND}`; export r; \
29113 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29114 $(HOST_EXPORTS) \
7c27e184 29115 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
29116 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29117 done; \
d32ab992 29118 echo "Doing TAGS in gdb" ; \
215c351a 29119 (cd $(HOST_SUBDIR)/gdb && \
295f4e42
NN
29120 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29121 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29122 "RANLIB=$${RANLIB}" \
29123 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29124 TAGS) \
295f4e42
NN
29125 || exit 1
29126
d32ab992 29127@endif gdb
295f4e42 29128
d32ab992
PB
29129.PHONY: maybe-install-info-gdb install-info-gdb
29130maybe-install-info-gdb:
29131@if gdb
29132maybe-install-info-gdb: install-info-gdb
295f4e42 29133
d32ab992
PB
29134install-info-gdb: \
29135 configure-gdb \
05750653 29136 info-gdb
f41d6665 29137 @: $(MAKE); $(unstage)
d32ab992 29138 @[ -f ./gdb/Makefile ] || exit 0; \
295f4e42
NN
29139 r=`${PWD_COMMAND}`; export r; \
29140 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29141 $(HOST_EXPORTS) \
7c27e184 29142 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
29143 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29144 done; \
d32ab992 29145 echo "Doing install-info in gdb" ; \
215c351a 29146 (cd $(HOST_SUBDIR)/gdb && \
295f4e42
NN
29147 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29148 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29149 "RANLIB=$${RANLIB}" \
29150 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29151 install-info) \
295f4e42
NN
29152 || exit 1
29153
d32ab992 29154@endif gdb
295f4e42 29155
65d6e994
CD
29156.PHONY: maybe-install-html-gdb install-html-gdb
29157maybe-install-html-gdb:
29158@if gdb
29159maybe-install-html-gdb: install-html-gdb
29160
29161install-html-gdb: \
29162 configure-gdb \
29163 html-gdb
29164 @: $(MAKE); $(unstage)
29165 @[ -f ./gdb/Makefile ] || exit 0; \
29166 r=`${PWD_COMMAND}`; export r; \
29167 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29168 $(HOST_EXPORTS) \
29169 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
29170 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29171 done; \
29172 echo "Doing install-html in gdb" ; \
29173 (cd $(HOST_SUBDIR)/gdb && \
29174 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29175 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29176 "RANLIB=$${RANLIB}" \
29177 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
29178 install-html) \
29179 || exit 1
29180
29181@endif gdb
29182
d32ab992
PB
29183.PHONY: maybe-installcheck-gdb installcheck-gdb
29184maybe-installcheck-gdb:
29185@if gdb
29186maybe-installcheck-gdb: installcheck-gdb
295f4e42 29187
d32ab992 29188installcheck-gdb: \
05750653 29189 configure-gdb
f41d6665 29190 @: $(MAKE); $(unstage)
d32ab992 29191 @[ -f ./gdb/Makefile ] || exit 0; \
295f4e42
NN
29192 r=`${PWD_COMMAND}`; export r; \
29193 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29194 $(HOST_EXPORTS) \
7c27e184 29195 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
29196 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29197 done; \
d32ab992 29198 echo "Doing installcheck in gdb" ; \
215c351a 29199 (cd $(HOST_SUBDIR)/gdb && \
295f4e42
NN
29200 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29201 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29202 "RANLIB=$${RANLIB}" \
29203 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29204 installcheck) \
295f4e42
NN
29205 || exit 1
29206
d32ab992 29207@endif gdb
295f4e42 29208
d32ab992
PB
29209.PHONY: maybe-mostlyclean-gdb mostlyclean-gdb
29210maybe-mostlyclean-gdb:
29211@if gdb
29212maybe-mostlyclean-gdb: mostlyclean-gdb
295f4e42 29213
05750653 29214mostlyclean-gdb:
f41d6665 29215 @: $(MAKE); $(unstage)
d32ab992 29216 @[ -f ./gdb/Makefile ] || exit 0; \
295f4e42
NN
29217 r=`${PWD_COMMAND}`; export r; \
29218 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29219 $(HOST_EXPORTS) \
7c27e184 29220 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
29221 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29222 done; \
d32ab992 29223 echo "Doing mostlyclean in gdb" ; \
215c351a 29224 (cd $(HOST_SUBDIR)/gdb && \
295f4e42
NN
29225 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29226 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29227 "RANLIB=$${RANLIB}" \
29228 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29229 mostlyclean) \
295f4e42
NN
29230 || exit 1
29231
d32ab992 29232@endif gdb
295f4e42 29233
d32ab992
PB
29234.PHONY: maybe-clean-gdb clean-gdb
29235maybe-clean-gdb:
29236@if gdb
29237maybe-clean-gdb: clean-gdb
295f4e42 29238
05750653 29239clean-gdb:
f41d6665 29240 @: $(MAKE); $(unstage)
d32ab992 29241 @[ -f ./gdb/Makefile ] || exit 0; \
295f4e42
NN
29242 r=`${PWD_COMMAND}`; export r; \
29243 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29244 $(HOST_EXPORTS) \
7c27e184 29245 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
29246 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29247 done; \
d32ab992 29248 echo "Doing clean in gdb" ; \
215c351a 29249 (cd $(HOST_SUBDIR)/gdb && \
295f4e42
NN
29250 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29251 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29252 "RANLIB=$${RANLIB}" \
29253 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29254 clean) \
295f4e42
NN
29255 || exit 1
29256
d32ab992 29257@endif gdb
295f4e42 29258
d32ab992
PB
29259.PHONY: maybe-distclean-gdb distclean-gdb
29260maybe-distclean-gdb:
29261@if gdb
29262maybe-distclean-gdb: distclean-gdb
295f4e42 29263
05750653 29264distclean-gdb:
f41d6665 29265 @: $(MAKE); $(unstage)
d32ab992 29266 @[ -f ./gdb/Makefile ] || exit 0; \
295f4e42
NN
29267 r=`${PWD_COMMAND}`; export r; \
29268 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29269 $(HOST_EXPORTS) \
7c27e184 29270 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
29271 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29272 done; \
d32ab992 29273 echo "Doing distclean in gdb" ; \
215c351a 29274 (cd $(HOST_SUBDIR)/gdb && \
295f4e42
NN
29275 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29276 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29277 "RANLIB=$${RANLIB}" \
29278 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29279 distclean) \
295f4e42
NN
29280 || exit 1
29281
d32ab992 29282@endif gdb
295f4e42 29283
d32ab992
PB
29284.PHONY: maybe-maintainer-clean-gdb maintainer-clean-gdb
29285maybe-maintainer-clean-gdb:
29286@if gdb
29287maybe-maintainer-clean-gdb: maintainer-clean-gdb
295f4e42 29288
05750653 29289maintainer-clean-gdb:
f41d6665 29290 @: $(MAKE); $(unstage)
d32ab992 29291 @[ -f ./gdb/Makefile ] || exit 0; \
295f4e42
NN
29292 r=`${PWD_COMMAND}`; export r; \
29293 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29294 $(HOST_EXPORTS) \
7c27e184 29295 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
29296 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29297 done; \
d32ab992 29298 echo "Doing maintainer-clean in gdb" ; \
215c351a 29299 (cd $(HOST_SUBDIR)/gdb && \
295f4e42
NN
29300 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29301 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29302 "RANLIB=$${RANLIB}" \
29303 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29304 maintainer-clean) \
295f4e42 29305 || exit 1
7e2dbcef 29306
d32ab992 29307@endif gdb
4977bab6
ZW
29308
29309
25b42232 29310
d32ab992
PB
29311.PHONY: configure-expect maybe-configure-expect
29312maybe-configure-expect:
3ff3adad
PB
29313@if gcc-bootstrap
29314configure-expect: stage_current
29315@endif gcc-bootstrap
d32ab992
PB
29316@if expect
29317maybe-configure-expect: configure-expect
cc11cc9b 29318configure-expect:
f41d6665 29319 @: $(MAKE); $(unstage)
cc11cc9b 29320 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 29321 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
29322 test ! -f $(HOST_SUBDIR)/expect/Makefile || exit 0; \
29323 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/expect ; \
4fc4dd12 29324 $(HOST_EXPORTS) \
25b42232
PB
29325 echo Configuring in $(HOST_SUBDIR)/expect; \
29326 cd "$(HOST_SUBDIR)/expect" || exit 1; \
4977bab6 29327 case $(srcdir) in \
215c351a
PB
29328 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
29329 *) topdir=`echo $(HOST_SUBDIR)/expect/ | \
29330 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 29331 esac; \
215c351a
PB
29332 srcdiroption="--srcdir=$${topdir}/expect"; \
29333 libsrcdir="$$s/expect"; \
4977bab6 29334 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 29335 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 29336 || exit 1
d32ab992 29337@endif expect
4977bab6 29338
25b42232
PB
29339
29340
ce406537
PB
29341
29342
d32ab992
PB
29343.PHONY: all-expect maybe-all-expect
29344maybe-all-expect:
3ff3adad
PB
29345@if gcc-bootstrap
29346all-expect: stage_current
29347@endif gcc-bootstrap
d32ab992 29348@if expect
7e0b5752 29349TARGET-expect=all
d32ab992
PB
29350maybe-all-expect: all-expect
29351all-expect: configure-expect
f41d6665 29352 @: $(MAKE); $(unstage)
8c90b13a
L
29353 @r=`${PWD_COMMAND}`; export r; \
29354 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29355 $(HOST_EXPORTS) \
215c351a
PB
29356 (cd $(HOST_SUBDIR)/expect && \
29357 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) $(TARGET-expect))
d32ab992 29358@endif expect
4977bab6 29359
25b42232 29360
ce406537
PB
29361
29362
d32ab992
PB
29363.PHONY: check-expect maybe-check-expect
29364maybe-check-expect:
29365@if expect
29366maybe-check-expect: check-expect
4977bab6 29367
d32ab992 29368check-expect:
f41d6665 29369 @: $(MAKE); $(unstage)
8c90b13a
L
29370 @r=`${PWD_COMMAND}`; export r; \
29371 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29372 $(HOST_EXPORTS) \
215c351a
PB
29373 (cd $(HOST_SUBDIR)/expect && \
29374 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
4977bab6 29375
d32ab992 29376@endif expect
4977bab6 29377
d32ab992
PB
29378.PHONY: install-expect maybe-install-expect
29379maybe-install-expect:
29380@if expect
29381maybe-install-expect: install-expect
7e2dbcef 29382
d32ab992 29383install-expect: installdirs
f41d6665 29384 @: $(MAKE); $(unstage)
8c90b13a
L
29385 @r=`${PWD_COMMAND}`; export r; \
29386 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29387 $(HOST_EXPORTS) \
215c351a 29388 (cd $(HOST_SUBDIR)/expect && \
ace9ac7b 29389 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
4977bab6 29390
d32ab992 29391@endif expect
4977bab6 29392
295f4e42
NN
29393# Other targets (info, dvi, etc.)
29394
d32ab992
PB
29395.PHONY: maybe-info-expect info-expect
29396maybe-info-expect:
29397@if expect
29398maybe-info-expect: info-expect
295f4e42 29399
d32ab992 29400info-expect: \
05750653 29401 configure-expect
f41d6665 29402 @: $(MAKE); $(unstage)
d32ab992 29403 @[ -f ./expect/Makefile ] || exit 0; \
295f4e42
NN
29404 r=`${PWD_COMMAND}`; export r; \
29405 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29406 $(HOST_EXPORTS) \
7c27e184 29407 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
29408 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29409 done; \
d32ab992 29410 echo "Doing info in expect" ; \
215c351a 29411 (cd $(HOST_SUBDIR)/expect && \
295f4e42
NN
29412 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29413 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29414 "RANLIB=$${RANLIB}" \
29415 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29416 info) \
295f4e42
NN
29417 || exit 1
29418
d32ab992 29419@endif expect
295f4e42 29420
d32ab992
PB
29421.PHONY: maybe-dvi-expect dvi-expect
29422maybe-dvi-expect:
29423@if expect
29424maybe-dvi-expect: dvi-expect
295f4e42 29425
d32ab992 29426dvi-expect: \
05750653 29427 configure-expect
f41d6665 29428 @: $(MAKE); $(unstage)
d32ab992 29429 @[ -f ./expect/Makefile ] || exit 0; \
295f4e42
NN
29430 r=`${PWD_COMMAND}`; export r; \
29431 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29432 $(HOST_EXPORTS) \
7c27e184 29433 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
29434 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29435 done; \
d32ab992 29436 echo "Doing dvi in expect" ; \
215c351a 29437 (cd $(HOST_SUBDIR)/expect && \
295f4e42
NN
29438 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29439 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29440 "RANLIB=$${RANLIB}" \
29441 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29442 dvi) \
295f4e42
NN
29443 || exit 1
29444
d32ab992 29445@endif expect
295f4e42 29446
f87a2b2e
MS
29447.PHONY: maybe-html-expect html-expect
29448maybe-html-expect:
29449@if expect
29450maybe-html-expect: html-expect
29451
29452html-expect: \
05750653 29453 configure-expect
f41d6665 29454 @: $(MAKE); $(unstage)
f87a2b2e
MS
29455 @[ -f ./expect/Makefile ] || exit 0; \
29456 r=`${PWD_COMMAND}`; export r; \
29457 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
29458 $(HOST_EXPORTS) \
29459 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
29460 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29461 done; \
29462 echo "Doing html in expect" ; \
215c351a 29463 (cd $(HOST_SUBDIR)/expect && \
f87a2b2e
MS
29464 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29465 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29466 "RANLIB=$${RANLIB}" \
29467 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
29468 html) \
29469 || exit 1
29470
29471@endif expect
29472
d32ab992
PB
29473.PHONY: maybe-TAGS-expect TAGS-expect
29474maybe-TAGS-expect:
29475@if expect
29476maybe-TAGS-expect: TAGS-expect
295f4e42 29477
d32ab992 29478TAGS-expect: \
05750653 29479 configure-expect
f41d6665 29480 @: $(MAKE); $(unstage)
d32ab992 29481 @[ -f ./expect/Makefile ] || exit 0; \
295f4e42
NN
29482 r=`${PWD_COMMAND}`; export r; \
29483 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29484 $(HOST_EXPORTS) \
7c27e184 29485 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
29486 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29487 done; \
d32ab992 29488 echo "Doing TAGS in expect" ; \
215c351a 29489 (cd $(HOST_SUBDIR)/expect && \
295f4e42
NN
29490 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29491 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29492 "RANLIB=$${RANLIB}" \
29493 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29494 TAGS) \
295f4e42
NN
29495 || exit 1
29496
d32ab992 29497@endif expect
295f4e42 29498
d32ab992
PB
29499.PHONY: maybe-install-info-expect install-info-expect
29500maybe-install-info-expect:
29501@if expect
29502maybe-install-info-expect: install-info-expect
295f4e42 29503
d32ab992
PB
29504install-info-expect: \
29505 configure-expect \
05750653 29506 info-expect
f41d6665 29507 @: $(MAKE); $(unstage)
d32ab992 29508 @[ -f ./expect/Makefile ] || exit 0; \
295f4e42
NN
29509 r=`${PWD_COMMAND}`; export r; \
29510 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29511 $(HOST_EXPORTS) \
7c27e184 29512 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
29513 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29514 done; \
d32ab992 29515 echo "Doing install-info in expect" ; \
215c351a 29516 (cd $(HOST_SUBDIR)/expect && \
295f4e42
NN
29517 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29518 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29519 "RANLIB=$${RANLIB}" \
29520 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29521 install-info) \
295f4e42
NN
29522 || exit 1
29523
d32ab992 29524@endif expect
295f4e42 29525
65d6e994
CD
29526.PHONY: maybe-install-html-expect install-html-expect
29527maybe-install-html-expect:
29528@if expect
29529maybe-install-html-expect: install-html-expect
29530
29531install-html-expect: \
29532 configure-expect \
29533 html-expect
29534 @: $(MAKE); $(unstage)
29535 @[ -f ./expect/Makefile ] || exit 0; \
29536 r=`${PWD_COMMAND}`; export r; \
29537 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29538 $(HOST_EXPORTS) \
29539 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
29540 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29541 done; \
29542 echo "Doing install-html in expect" ; \
29543 (cd $(HOST_SUBDIR)/expect && \
29544 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29545 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29546 "RANLIB=$${RANLIB}" \
29547 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
29548 install-html) \
29549 || exit 1
29550
29551@endif expect
29552
d32ab992
PB
29553.PHONY: maybe-installcheck-expect installcheck-expect
29554maybe-installcheck-expect:
29555@if expect
29556maybe-installcheck-expect: installcheck-expect
295f4e42 29557
d32ab992 29558installcheck-expect: \
05750653 29559 configure-expect
f41d6665 29560 @: $(MAKE); $(unstage)
d32ab992 29561 @[ -f ./expect/Makefile ] || exit 0; \
295f4e42
NN
29562 r=`${PWD_COMMAND}`; export r; \
29563 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29564 $(HOST_EXPORTS) \
7c27e184 29565 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
29566 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29567 done; \
d32ab992 29568 echo "Doing installcheck in expect" ; \
215c351a 29569 (cd $(HOST_SUBDIR)/expect && \
295f4e42
NN
29570 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29571 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29572 "RANLIB=$${RANLIB}" \
29573 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29574 installcheck) \
295f4e42
NN
29575 || exit 1
29576
d32ab992 29577@endif expect
295f4e42 29578
d32ab992
PB
29579.PHONY: maybe-mostlyclean-expect mostlyclean-expect
29580maybe-mostlyclean-expect:
29581@if expect
29582maybe-mostlyclean-expect: mostlyclean-expect
295f4e42 29583
05750653 29584mostlyclean-expect:
f41d6665 29585 @: $(MAKE); $(unstage)
d32ab992 29586 @[ -f ./expect/Makefile ] || exit 0; \
295f4e42
NN
29587 r=`${PWD_COMMAND}`; export r; \
29588 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29589 $(HOST_EXPORTS) \
7c27e184 29590 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
29591 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29592 done; \
d32ab992 29593 echo "Doing mostlyclean in expect" ; \
215c351a 29594 (cd $(HOST_SUBDIR)/expect && \
295f4e42
NN
29595 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29596 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29597 "RANLIB=$${RANLIB}" \
29598 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29599 mostlyclean) \
295f4e42
NN
29600 || exit 1
29601
d32ab992 29602@endif expect
295f4e42 29603
d32ab992
PB
29604.PHONY: maybe-clean-expect clean-expect
29605maybe-clean-expect:
29606@if expect
29607maybe-clean-expect: clean-expect
295f4e42 29608
05750653 29609clean-expect:
f41d6665 29610 @: $(MAKE); $(unstage)
d32ab992 29611 @[ -f ./expect/Makefile ] || exit 0; \
295f4e42
NN
29612 r=`${PWD_COMMAND}`; export r; \
29613 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29614 $(HOST_EXPORTS) \
7c27e184 29615 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
29616 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29617 done; \
d32ab992 29618 echo "Doing clean in expect" ; \
215c351a 29619 (cd $(HOST_SUBDIR)/expect && \
295f4e42
NN
29620 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29621 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29622 "RANLIB=$${RANLIB}" \
29623 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29624 clean) \
295f4e42
NN
29625 || exit 1
29626
d32ab992 29627@endif expect
295f4e42 29628
d32ab992
PB
29629.PHONY: maybe-distclean-expect distclean-expect
29630maybe-distclean-expect:
29631@if expect
29632maybe-distclean-expect: distclean-expect
295f4e42 29633
05750653 29634distclean-expect:
f41d6665 29635 @: $(MAKE); $(unstage)
d32ab992 29636 @[ -f ./expect/Makefile ] || exit 0; \
295f4e42
NN
29637 r=`${PWD_COMMAND}`; export r; \
29638 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29639 $(HOST_EXPORTS) \
7c27e184 29640 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
29641 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29642 done; \
d32ab992 29643 echo "Doing distclean in expect" ; \
215c351a 29644 (cd $(HOST_SUBDIR)/expect && \
295f4e42
NN
29645 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29646 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29647 "RANLIB=$${RANLIB}" \
29648 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29649 distclean) \
295f4e42
NN
29650 || exit 1
29651
d32ab992 29652@endif expect
295f4e42 29653
d32ab992
PB
29654.PHONY: maybe-maintainer-clean-expect maintainer-clean-expect
29655maybe-maintainer-clean-expect:
29656@if expect
29657maybe-maintainer-clean-expect: maintainer-clean-expect
295f4e42 29658
05750653 29659maintainer-clean-expect:
f41d6665 29660 @: $(MAKE); $(unstage)
d32ab992 29661 @[ -f ./expect/Makefile ] || exit 0; \
295f4e42
NN
29662 r=`${PWD_COMMAND}`; export r; \
29663 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29664 $(HOST_EXPORTS) \
7c27e184 29665 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
29666 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29667 done; \
d32ab992 29668 echo "Doing maintainer-clean in expect" ; \
215c351a 29669 (cd $(HOST_SUBDIR)/expect && \
295f4e42
NN
29670 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29671 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29672 "RANLIB=$${RANLIB}" \
29673 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29674 maintainer-clean) \
295f4e42
NN
29675 || exit 1
29676
d32ab992 29677@endif expect
295f4e42
NN
29678
29679
25b42232 29680
d32ab992
PB
29681.PHONY: configure-guile maybe-configure-guile
29682maybe-configure-guile:
3ff3adad
PB
29683@if gcc-bootstrap
29684configure-guile: stage_current
29685@endif gcc-bootstrap
d32ab992
PB
29686@if guile
29687maybe-configure-guile: configure-guile
cc11cc9b 29688configure-guile:
f41d6665 29689 @: $(MAKE); $(unstage)
cc11cc9b 29690 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 29691 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
29692 test ! -f $(HOST_SUBDIR)/guile/Makefile || exit 0; \
29693 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/guile ; \
4fc4dd12 29694 $(HOST_EXPORTS) \
25b42232
PB
29695 echo Configuring in $(HOST_SUBDIR)/guile; \
29696 cd "$(HOST_SUBDIR)/guile" || exit 1; \
4977bab6 29697 case $(srcdir) in \
215c351a
PB
29698 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
29699 *) topdir=`echo $(HOST_SUBDIR)/guile/ | \
29700 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 29701 esac; \
215c351a
PB
29702 srcdiroption="--srcdir=$${topdir}/guile"; \
29703 libsrcdir="$$s/guile"; \
4977bab6 29704 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 29705 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 29706 || exit 1
d32ab992 29707@endif guile
4977bab6 29708
25b42232
PB
29709
29710
ce406537
PB
29711
29712
d32ab992
PB
29713.PHONY: all-guile maybe-all-guile
29714maybe-all-guile:
3ff3adad
PB
29715@if gcc-bootstrap
29716all-guile: stage_current
29717@endif gcc-bootstrap
d32ab992 29718@if guile
7e0b5752 29719TARGET-guile=all
d32ab992
PB
29720maybe-all-guile: all-guile
29721all-guile: configure-guile
f41d6665 29722 @: $(MAKE); $(unstage)
8c90b13a
L
29723 @r=`${PWD_COMMAND}`; export r; \
29724 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29725 $(HOST_EXPORTS) \
215c351a
PB
29726 (cd $(HOST_SUBDIR)/guile && \
29727 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) $(TARGET-guile))
d32ab992 29728@endif guile
4977bab6 29729
25b42232 29730
ce406537
PB
29731
29732
d32ab992
PB
29733.PHONY: check-guile maybe-check-guile
29734maybe-check-guile:
29735@if guile
29736maybe-check-guile: check-guile
4977bab6 29737
d32ab992 29738check-guile:
f41d6665 29739 @: $(MAKE); $(unstage)
8c90b13a
L
29740 @r=`${PWD_COMMAND}`; export r; \
29741 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29742 $(HOST_EXPORTS) \
215c351a
PB
29743 (cd $(HOST_SUBDIR)/guile && \
29744 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
4977bab6 29745
d32ab992 29746@endif guile
7e2dbcef 29747
d32ab992
PB
29748.PHONY: install-guile maybe-install-guile
29749maybe-install-guile:
29750@if guile
29751maybe-install-guile: install-guile
29752
29753install-guile: installdirs
f41d6665 29754 @: $(MAKE); $(unstage)
8c90b13a
L
29755 @r=`${PWD_COMMAND}`; export r; \
29756 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29757 $(HOST_EXPORTS) \
215c351a 29758 (cd $(HOST_SUBDIR)/guile && \
ace9ac7b 29759 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
4977bab6 29760
d32ab992 29761@endif guile
4977bab6 29762
295f4e42
NN
29763# Other targets (info, dvi, etc.)
29764
d32ab992
PB
29765.PHONY: maybe-info-guile info-guile
29766maybe-info-guile:
29767@if guile
29768maybe-info-guile: info-guile
295f4e42 29769
d32ab992 29770info-guile: \
05750653 29771 configure-guile
f41d6665 29772 @: $(MAKE); $(unstage)
d32ab992 29773 @[ -f ./guile/Makefile ] || exit 0; \
8c90b13a
L
29774 r=`${PWD_COMMAND}`; export r; \
29775 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29776 $(HOST_EXPORTS) \
7c27e184 29777 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
29778 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29779 done; \
d32ab992 29780 echo "Doing info in guile" ; \
215c351a 29781 (cd $(HOST_SUBDIR)/guile && \
295f4e42
NN
29782 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29783 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29784 "RANLIB=$${RANLIB}" \
29785 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29786 info) \
4977bab6
ZW
29787 || exit 1
29788
d32ab992 29789@endif guile
295f4e42 29790
d32ab992
PB
29791.PHONY: maybe-dvi-guile dvi-guile
29792maybe-dvi-guile:
29793@if guile
29794maybe-dvi-guile: dvi-guile
295f4e42 29795
d32ab992 29796dvi-guile: \
05750653 29797 configure-guile
f41d6665 29798 @: $(MAKE); $(unstage)
d32ab992 29799 @[ -f ./guile/Makefile ] || exit 0; \
295f4e42 29800 r=`${PWD_COMMAND}`; export r; \
8c90b13a 29801 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29802 $(HOST_EXPORTS) \
7c27e184 29803 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
29804 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29805 done; \
d32ab992 29806 echo "Doing dvi in guile" ; \
215c351a 29807 (cd $(HOST_SUBDIR)/guile && \
295f4e42
NN
29808 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29809 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29810 "RANLIB=$${RANLIB}" \
29811 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29812 dvi) \
295f4e42 29813 || exit 1
4977bab6 29814
d32ab992 29815@endif guile
4977bab6 29816
f87a2b2e
MS
29817.PHONY: maybe-html-guile html-guile
29818maybe-html-guile:
29819@if guile
29820maybe-html-guile: html-guile
29821
29822html-guile: \
05750653 29823 configure-guile
f41d6665 29824 @: $(MAKE); $(unstage)
f87a2b2e
MS
29825 @[ -f ./guile/Makefile ] || exit 0; \
29826 r=`${PWD_COMMAND}`; export r; \
29827 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
29828 $(HOST_EXPORTS) \
29829 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
29830 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29831 done; \
29832 echo "Doing html in guile" ; \
215c351a 29833 (cd $(HOST_SUBDIR)/guile && \
f87a2b2e
MS
29834 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29835 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29836 "RANLIB=$${RANLIB}" \
29837 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
29838 html) \
29839 || exit 1
29840
29841@endif guile
29842
d32ab992
PB
29843.PHONY: maybe-TAGS-guile TAGS-guile
29844maybe-TAGS-guile:
29845@if guile
29846maybe-TAGS-guile: TAGS-guile
295f4e42 29847
d32ab992 29848TAGS-guile: \
05750653 29849 configure-guile
f41d6665 29850 @: $(MAKE); $(unstage)
d32ab992 29851 @[ -f ./guile/Makefile ] || exit 0; \
295f4e42 29852 r=`${PWD_COMMAND}`; export r; \
8c90b13a 29853 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29854 $(HOST_EXPORTS) \
7c27e184 29855 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
29856 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29857 done; \
d32ab992 29858 echo "Doing TAGS in guile" ; \
215c351a 29859 (cd $(HOST_SUBDIR)/guile && \
295f4e42
NN
29860 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29861 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29862 "RANLIB=$${RANLIB}" \
29863 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29864 TAGS) \
295f4e42 29865 || exit 1
4977bab6 29866
d32ab992 29867@endif guile
4977bab6 29868
d32ab992
PB
29869.PHONY: maybe-install-info-guile install-info-guile
29870maybe-install-info-guile:
29871@if guile
29872maybe-install-info-guile: install-info-guile
7e2dbcef 29873
d32ab992
PB
29874install-info-guile: \
29875 configure-guile \
05750653 29876 info-guile
f41d6665 29877 @: $(MAKE); $(unstage)
d32ab992 29878 @[ -f ./guile/Makefile ] || exit 0; \
295f4e42
NN
29879 r=`${PWD_COMMAND}`; export r; \
29880 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29881 $(HOST_EXPORTS) \
7c27e184 29882 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
29883 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29884 done; \
d32ab992 29885 echo "Doing install-info in guile" ; \
215c351a 29886 (cd $(HOST_SUBDIR)/guile && \
295f4e42
NN
29887 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29888 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29889 "RANLIB=$${RANLIB}" \
29890 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29891 install-info) \
295f4e42
NN
29892 || exit 1
29893
d32ab992 29894@endif guile
295f4e42 29895
65d6e994
CD
29896.PHONY: maybe-install-html-guile install-html-guile
29897maybe-install-html-guile:
29898@if guile
29899maybe-install-html-guile: install-html-guile
29900
29901install-html-guile: \
29902 configure-guile \
29903 html-guile
29904 @: $(MAKE); $(unstage)
29905 @[ -f ./guile/Makefile ] || exit 0; \
29906 r=`${PWD_COMMAND}`; export r; \
29907 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29908 $(HOST_EXPORTS) \
29909 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
29910 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29911 done; \
29912 echo "Doing install-html in guile" ; \
29913 (cd $(HOST_SUBDIR)/guile && \
29914 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29915 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29916 "RANLIB=$${RANLIB}" \
29917 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
29918 install-html) \
29919 || exit 1
29920
29921@endif guile
29922
d32ab992
PB
29923.PHONY: maybe-installcheck-guile installcheck-guile
29924maybe-installcheck-guile:
29925@if guile
29926maybe-installcheck-guile: installcheck-guile
295f4e42 29927
d32ab992 29928installcheck-guile: \
05750653 29929 configure-guile
f41d6665 29930 @: $(MAKE); $(unstage)
d32ab992 29931 @[ -f ./guile/Makefile ] || exit 0; \
295f4e42
NN
29932 r=`${PWD_COMMAND}`; export r; \
29933 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29934 $(HOST_EXPORTS) \
7c27e184 29935 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
29936 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29937 done; \
d32ab992 29938 echo "Doing installcheck in guile" ; \
215c351a 29939 (cd $(HOST_SUBDIR)/guile && \
295f4e42
NN
29940 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29941 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29942 "RANLIB=$${RANLIB}" \
29943 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29944 installcheck) \
295f4e42
NN
29945 || exit 1
29946
d32ab992 29947@endif guile
295f4e42 29948
d32ab992
PB
29949.PHONY: maybe-mostlyclean-guile mostlyclean-guile
29950maybe-mostlyclean-guile:
29951@if guile
29952maybe-mostlyclean-guile: mostlyclean-guile
295f4e42 29953
05750653 29954mostlyclean-guile:
f41d6665 29955 @: $(MAKE); $(unstage)
d32ab992 29956 @[ -f ./guile/Makefile ] || exit 0; \
295f4e42
NN
29957 r=`${PWD_COMMAND}`; export r; \
29958 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29959 $(HOST_EXPORTS) \
7c27e184 29960 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
29961 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29962 done; \
d32ab992 29963 echo "Doing mostlyclean in guile" ; \
215c351a 29964 (cd $(HOST_SUBDIR)/guile && \
295f4e42
NN
29965 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29966 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29967 "RANLIB=$${RANLIB}" \
29968 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29969 mostlyclean) \
295f4e42
NN
29970 || exit 1
29971
d32ab992 29972@endif guile
295f4e42 29973
d32ab992
PB
29974.PHONY: maybe-clean-guile clean-guile
29975maybe-clean-guile:
29976@if guile
29977maybe-clean-guile: clean-guile
295f4e42 29978
05750653 29979clean-guile:
f41d6665 29980 @: $(MAKE); $(unstage)
d32ab992 29981 @[ -f ./guile/Makefile ] || exit 0; \
295f4e42
NN
29982 r=`${PWD_COMMAND}`; export r; \
29983 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29984 $(HOST_EXPORTS) \
7c27e184 29985 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
29986 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29987 done; \
d32ab992 29988 echo "Doing clean in guile" ; \
215c351a 29989 (cd $(HOST_SUBDIR)/guile && \
295f4e42
NN
29990 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29991 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29992 "RANLIB=$${RANLIB}" \
29993 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29994 clean) \
295f4e42
NN
29995 || exit 1
29996
d32ab992 29997@endif guile
295f4e42 29998
d32ab992
PB
29999.PHONY: maybe-distclean-guile distclean-guile
30000maybe-distclean-guile:
30001@if guile
30002maybe-distclean-guile: distclean-guile
295f4e42 30003
05750653 30004distclean-guile:
f41d6665 30005 @: $(MAKE); $(unstage)
d32ab992 30006 @[ -f ./guile/Makefile ] || exit 0; \
295f4e42
NN
30007 r=`${PWD_COMMAND}`; export r; \
30008 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30009 $(HOST_EXPORTS) \
7c27e184 30010 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
30011 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30012 done; \
d32ab992 30013 echo "Doing distclean in guile" ; \
215c351a 30014 (cd $(HOST_SUBDIR)/guile && \
295f4e42
NN
30015 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30016 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30017 "RANLIB=$${RANLIB}" \
30018 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 30019 distclean) \
295f4e42
NN
30020 || exit 1
30021
d32ab992 30022@endif guile
295f4e42 30023
d32ab992
PB
30024.PHONY: maybe-maintainer-clean-guile maintainer-clean-guile
30025maybe-maintainer-clean-guile:
30026@if guile
30027maybe-maintainer-clean-guile: maintainer-clean-guile
295f4e42 30028
05750653 30029maintainer-clean-guile:
f41d6665 30030 @: $(MAKE); $(unstage)
d32ab992 30031 @[ -f ./guile/Makefile ] || exit 0; \
295f4e42 30032 r=`${PWD_COMMAND}`; export r; \
8c90b13a 30033 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30034 $(HOST_EXPORTS) \
7c27e184 30035 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
30036 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30037 done; \
d32ab992 30038 echo "Doing maintainer-clean in guile" ; \
215c351a 30039 (cd $(HOST_SUBDIR)/guile && \
295f4e42
NN
30040 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30041 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30042 "RANLIB=$${RANLIB}" \
30043 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 30044 maintainer-clean) \
295f4e42 30045 || exit 1
4977bab6 30046
d32ab992 30047@endif guile
4977bab6 30048
295f4e42 30049
25b42232 30050
d32ab992
PB
30051.PHONY: configure-tk maybe-configure-tk
30052maybe-configure-tk:
3ff3adad
PB
30053@if gcc-bootstrap
30054configure-tk: stage_current
30055@endif gcc-bootstrap
d32ab992
PB
30056@if tk
30057maybe-configure-tk: configure-tk
cc11cc9b 30058configure-tk:
f41d6665 30059 @: $(MAKE); $(unstage)
cc11cc9b 30060 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 30061 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
30062 test ! -f $(HOST_SUBDIR)/tk/Makefile || exit 0; \
30063 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/tk ; \
4fc4dd12 30064 $(HOST_EXPORTS) \
25b42232
PB
30065 echo Configuring in $(HOST_SUBDIR)/tk; \
30066 cd "$(HOST_SUBDIR)/tk" || exit 1; \
4977bab6 30067 case $(srcdir) in \
215c351a
PB
30068 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
30069 *) topdir=`echo $(HOST_SUBDIR)/tk/ | \
30070 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 30071 esac; \
215c351a
PB
30072 srcdiroption="--srcdir=$${topdir}/tk"; \
30073 libsrcdir="$$s/tk"; \
4977bab6 30074 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 30075 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 30076 || exit 1
d32ab992 30077@endif tk
4977bab6 30078
25b42232
PB
30079
30080
ce406537
PB
30081
30082
d32ab992
PB
30083.PHONY: all-tk maybe-all-tk
30084maybe-all-tk:
3ff3adad
PB
30085@if gcc-bootstrap
30086all-tk: stage_current
30087@endif gcc-bootstrap
d32ab992 30088@if tk
7e0b5752 30089TARGET-tk=all
d32ab992
PB
30090maybe-all-tk: all-tk
30091all-tk: configure-tk
f41d6665 30092 @: $(MAKE); $(unstage)
8c90b13a
L
30093 @r=`${PWD_COMMAND}`; export r; \
30094 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30095 $(HOST_EXPORTS) \
215c351a
PB
30096 (cd $(HOST_SUBDIR)/tk && \
30097 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) $(TARGET-tk))
d32ab992 30098@endif tk
4977bab6 30099
25b42232 30100
ce406537
PB
30101
30102
d32ab992
PB
30103.PHONY: check-tk maybe-check-tk
30104maybe-check-tk:
30105@if tk
30106maybe-check-tk: check-tk
4977bab6 30107
d32ab992 30108check-tk:
f41d6665 30109 @: $(MAKE); $(unstage)
8c90b13a
L
30110 @r=`${PWD_COMMAND}`; export r; \
30111 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30112 $(HOST_EXPORTS) \
215c351a
PB
30113 (cd $(HOST_SUBDIR)/tk && \
30114 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
4977bab6 30115
d32ab992 30116@endif tk
4977bab6 30117
d32ab992
PB
30118.PHONY: install-tk maybe-install-tk
30119maybe-install-tk:
30120@if tk
30121maybe-install-tk: install-tk
7e2dbcef 30122
d32ab992 30123install-tk: installdirs
f41d6665 30124 @: $(MAKE); $(unstage)
8c90b13a
L
30125 @r=`${PWD_COMMAND}`; export r; \
30126 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30127 $(HOST_EXPORTS) \
215c351a 30128 (cd $(HOST_SUBDIR)/tk && \
ace9ac7b 30129 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
295f4e42 30130
d32ab992 30131@endif tk
295f4e42
NN
30132
30133# Other targets (info, dvi, etc.)
30134
d32ab992
PB
30135.PHONY: maybe-info-tk info-tk
30136maybe-info-tk:
30137@if tk
30138maybe-info-tk: info-tk
295f4e42 30139
d32ab992 30140info-tk: \
05750653 30141 configure-tk
f41d6665 30142 @: $(MAKE); $(unstage)
d32ab992 30143 @[ -f ./tk/Makefile ] || exit 0; \
295f4e42
NN
30144 r=`${PWD_COMMAND}`; export r; \
30145 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30146 $(HOST_EXPORTS) \
7c27e184 30147 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
30148 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30149 done; \
d32ab992 30150 echo "Doing info in tk" ; \
215c351a 30151 (cd $(HOST_SUBDIR)/tk && \
295f4e42
NN
30152 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30153 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30154 "RANLIB=$${RANLIB}" \
30155 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 30156 info) \
295f4e42
NN
30157 || exit 1
30158
d32ab992 30159@endif tk
295f4e42 30160
d32ab992
PB
30161.PHONY: maybe-dvi-tk dvi-tk
30162maybe-dvi-tk:
30163@if tk
30164maybe-dvi-tk: dvi-tk
295f4e42 30165
d32ab992 30166dvi-tk: \
05750653 30167 configure-tk
f41d6665 30168 @: $(MAKE); $(unstage)
d32ab992 30169 @[ -f ./tk/Makefile ] || exit 0; \
295f4e42
NN
30170 r=`${PWD_COMMAND}`; export r; \
30171 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30172 $(HOST_EXPORTS) \
7c27e184 30173 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
30174 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30175 done; \
d32ab992 30176 echo "Doing dvi in tk" ; \
215c351a 30177 (cd $(HOST_SUBDIR)/tk && \
295f4e42
NN
30178 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30179 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30180 "RANLIB=$${RANLIB}" \
30181 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 30182 dvi) \
295f4e42
NN
30183 || exit 1
30184
d32ab992 30185@endif tk
295f4e42 30186
f87a2b2e
MS
30187.PHONY: maybe-html-tk html-tk
30188maybe-html-tk:
30189@if tk
30190maybe-html-tk: html-tk
30191
30192html-tk: \
05750653 30193 configure-tk
f41d6665 30194 @: $(MAKE); $(unstage)
f87a2b2e
MS
30195 @[ -f ./tk/Makefile ] || exit 0; \
30196 r=`${PWD_COMMAND}`; export r; \
30197 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
30198 $(HOST_EXPORTS) \
30199 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
30200 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30201 done; \
30202 echo "Doing html in tk" ; \
215c351a 30203 (cd $(HOST_SUBDIR)/tk && \
f87a2b2e
MS
30204 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30205 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30206 "RANLIB=$${RANLIB}" \
30207 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
30208 html) \
30209 || exit 1
30210
30211@endif tk
30212
d32ab992
PB
30213.PHONY: maybe-TAGS-tk TAGS-tk
30214maybe-TAGS-tk:
30215@if tk
30216maybe-TAGS-tk: TAGS-tk
295f4e42 30217
d32ab992 30218TAGS-tk: \
05750653 30219 configure-tk
f41d6665 30220 @: $(MAKE); $(unstage)
d32ab992 30221 @[ -f ./tk/Makefile ] || exit 0; \
295f4e42
NN
30222 r=`${PWD_COMMAND}`; export r; \
30223 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30224 $(HOST_EXPORTS) \
7c27e184 30225 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
30226 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30227 done; \
d32ab992 30228 echo "Doing TAGS in tk" ; \
215c351a 30229 (cd $(HOST_SUBDIR)/tk && \
295f4e42
NN
30230 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30231 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30232 "RANLIB=$${RANLIB}" \
30233 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 30234 TAGS) \
295f4e42
NN
30235 || exit 1
30236
d32ab992 30237@endif tk
295f4e42 30238
d32ab992
PB
30239.PHONY: maybe-install-info-tk install-info-tk
30240maybe-install-info-tk:
30241@if tk
30242maybe-install-info-tk: install-info-tk
295f4e42 30243
d32ab992
PB
30244install-info-tk: \
30245 configure-tk \
05750653 30246 info-tk
f41d6665 30247 @: $(MAKE); $(unstage)
d32ab992 30248 @[ -f ./tk/Makefile ] || exit 0; \
295f4e42
NN
30249 r=`${PWD_COMMAND}`; export r; \
30250 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30251 $(HOST_EXPORTS) \
7c27e184 30252 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
30253 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30254 done; \
d32ab992 30255 echo "Doing install-info in tk" ; \
215c351a 30256 (cd $(HOST_SUBDIR)/tk && \
295f4e42
NN
30257 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30258 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30259 "RANLIB=$${RANLIB}" \
30260 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 30261 install-info) \
295f4e42
NN
30262 || exit 1
30263
d32ab992 30264@endif tk
295f4e42 30265
65d6e994
CD
30266.PHONY: maybe-install-html-tk install-html-tk
30267maybe-install-html-tk:
30268@if tk
30269maybe-install-html-tk: install-html-tk
30270
30271install-html-tk: \
30272 configure-tk \
30273 html-tk
30274 @: $(MAKE); $(unstage)
30275 @[ -f ./tk/Makefile ] || exit 0; \
30276 r=`${PWD_COMMAND}`; export r; \
30277 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30278 $(HOST_EXPORTS) \
30279 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
30280 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30281 done; \
30282 echo "Doing install-html in tk" ; \
30283 (cd $(HOST_SUBDIR)/tk && \
30284 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30285 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30286 "RANLIB=$${RANLIB}" \
30287 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
30288 install-html) \
30289 || exit 1
30290
30291@endif tk
30292
d32ab992
PB
30293.PHONY: maybe-installcheck-tk installcheck-tk
30294maybe-installcheck-tk:
30295@if tk
30296maybe-installcheck-tk: installcheck-tk
295f4e42 30297
d32ab992 30298installcheck-tk: \
05750653 30299 configure-tk
f41d6665 30300 @: $(MAKE); $(unstage)
d32ab992 30301 @[ -f ./tk/Makefile ] || exit 0; \
295f4e42
NN
30302 r=`${PWD_COMMAND}`; export r; \
30303 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30304 $(HOST_EXPORTS) \
7c27e184 30305 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
30306 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30307 done; \
d32ab992 30308 echo "Doing installcheck in tk" ; \
215c351a 30309 (cd $(HOST_SUBDIR)/tk && \
295f4e42
NN
30310 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30311 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30312 "RANLIB=$${RANLIB}" \
30313 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 30314 installcheck) \
295f4e42
NN
30315 || exit 1
30316
d32ab992 30317@endif tk
295f4e42 30318
d32ab992
PB
30319.PHONY: maybe-mostlyclean-tk mostlyclean-tk
30320maybe-mostlyclean-tk:
30321@if tk
30322maybe-mostlyclean-tk: mostlyclean-tk
295f4e42 30323
05750653 30324mostlyclean-tk:
f41d6665 30325 @: $(MAKE); $(unstage)
d32ab992 30326 @[ -f ./tk/Makefile ] || exit 0; \
295f4e42
NN
30327 r=`${PWD_COMMAND}`; export r; \
30328 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30329 $(HOST_EXPORTS) \
7c27e184 30330 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
30331 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30332 done; \
d32ab992 30333 echo "Doing mostlyclean in tk" ; \
215c351a 30334 (cd $(HOST_SUBDIR)/tk && \
295f4e42
NN
30335 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30336 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30337 "RANLIB=$${RANLIB}" \
30338 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 30339 mostlyclean) \
295f4e42
NN
30340 || exit 1
30341
d32ab992 30342@endif tk
295f4e42 30343
d32ab992
PB
30344.PHONY: maybe-clean-tk clean-tk
30345maybe-clean-tk:
30346@if tk
30347maybe-clean-tk: clean-tk
295f4e42 30348
05750653 30349clean-tk:
f41d6665 30350 @: $(MAKE); $(unstage)
d32ab992 30351 @[ -f ./tk/Makefile ] || exit 0; \
295f4e42
NN
30352 r=`${PWD_COMMAND}`; export r; \
30353 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30354 $(HOST_EXPORTS) \
7c27e184 30355 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
30356 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30357 done; \
d32ab992 30358 echo "Doing clean in tk" ; \
215c351a 30359 (cd $(HOST_SUBDIR)/tk && \
295f4e42
NN
30360 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30361 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30362 "RANLIB=$${RANLIB}" \
30363 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 30364 clean) \
295f4e42
NN
30365 || exit 1
30366
d32ab992 30367@endif tk
295f4e42 30368
d32ab992
PB
30369.PHONY: maybe-distclean-tk distclean-tk
30370maybe-distclean-tk:
30371@if tk
30372maybe-distclean-tk: distclean-tk
295f4e42 30373
05750653 30374distclean-tk:
f41d6665 30375 @: $(MAKE); $(unstage)
d32ab992 30376 @[ -f ./tk/Makefile ] || exit 0; \
295f4e42
NN
30377 r=`${PWD_COMMAND}`; export r; \
30378 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30379 $(HOST_EXPORTS) \
7c27e184 30380 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
30381 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30382 done; \
d32ab992 30383 echo "Doing distclean in tk" ; \
215c351a 30384 (cd $(HOST_SUBDIR)/tk && \
295f4e42
NN
30385 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30386 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30387 "RANLIB=$${RANLIB}" \
30388 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 30389 distclean) \
295f4e42
NN
30390 || exit 1
30391
d32ab992 30392@endif tk
295f4e42 30393
d32ab992
PB
30394.PHONY: maybe-maintainer-clean-tk maintainer-clean-tk
30395maybe-maintainer-clean-tk:
30396@if tk
30397maybe-maintainer-clean-tk: maintainer-clean-tk
295f4e42 30398
05750653 30399maintainer-clean-tk:
f41d6665 30400 @: $(MAKE); $(unstage)
d32ab992 30401 @[ -f ./tk/Makefile ] || exit 0; \
295f4e42
NN
30402 r=`${PWD_COMMAND}`; export r; \
30403 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30404 $(HOST_EXPORTS) \
7c27e184 30405 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
30406 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30407 done; \
d32ab992 30408 echo "Doing maintainer-clean in tk" ; \
215c351a 30409 (cd $(HOST_SUBDIR)/tk && \
295f4e42
NN
30410 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30411 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30412 "RANLIB=$${RANLIB}" \
30413 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 30414 maintainer-clean) \
295f4e42
NN
30415 || exit 1
30416
d32ab992 30417@endif tk
4977bab6
ZW
30418
30419
25b42232 30420
d32ab992
PB
30421.PHONY: configure-libtermcap maybe-configure-libtermcap
30422maybe-configure-libtermcap:
3ff3adad
PB
30423@if gcc-bootstrap
30424configure-libtermcap: stage_current
30425@endif gcc-bootstrap
d32ab992
PB
30426@if libtermcap
30427maybe-configure-libtermcap: configure-libtermcap
cc11cc9b 30428configure-libtermcap:
f41d6665 30429 @: $(MAKE); $(unstage)
cc11cc9b 30430 @r=`${PWD_COMMAND}`; export r; \
d32ab992 30431 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
30432 test ! -f $(HOST_SUBDIR)/libtermcap/Makefile || exit 0; \
30433 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libtermcap ; \
d32ab992 30434 $(HOST_EXPORTS) \
25b42232
PB
30435 echo Configuring in $(HOST_SUBDIR)/libtermcap; \
30436 cd "$(HOST_SUBDIR)/libtermcap" || exit 1; \
d32ab992 30437 case $(srcdir) in \
215c351a
PB
30438 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
30439 *) topdir=`echo $(HOST_SUBDIR)/libtermcap/ | \
30440 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
d32ab992 30441 esac; \
215c351a
PB
30442 srcdiroption="--srcdir=$${topdir}/libtermcap"; \
30443 libsrcdir="$$s/libtermcap"; \
d32ab992
PB
30444 $(SHELL) $${libsrcdir}/configure \
30445 $(HOST_CONFIGARGS) $${srcdiroption} \
30446 || exit 1
30447@endif libtermcap
30448
25b42232
PB
30449
30450
ce406537
PB
30451
30452
d32ab992
PB
30453.PHONY: all-libtermcap maybe-all-libtermcap
30454maybe-all-libtermcap:
3ff3adad
PB
30455@if gcc-bootstrap
30456all-libtermcap: stage_current
30457@endif gcc-bootstrap
d32ab992 30458@if libtermcap
7e0b5752 30459TARGET-libtermcap=all
d32ab992
PB
30460maybe-all-libtermcap: all-libtermcap
30461all-libtermcap: configure-libtermcap
f41d6665 30462 @: $(MAKE); $(unstage)
d32ab992
PB
30463 @r=`${PWD_COMMAND}`; export r; \
30464 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d32ab992 30465 $(HOST_EXPORTS) \
215c351a
PB
30466 (cd $(HOST_SUBDIR)/libtermcap && \
30467 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-libtermcap))
d32ab992
PB
30468@endif libtermcap
30469
25b42232 30470
ce406537
PB
30471
30472
d32ab992
PB
30473.PHONY: check-libtermcap maybe-check-libtermcap
30474maybe-check-libtermcap:
30475@if libtermcap
30476maybe-check-libtermcap: check-libtermcap
30477
30478check-libtermcap:
4977bab6 30479
60975492 30480@endif libtermcap
4977bab6 30481
295f4e42
NN
30482.PHONY: install-libtermcap maybe-install-libtermcap
30483maybe-install-libtermcap:
60975492
PB
30484@if libtermcap
30485maybe-install-libtermcap: install-libtermcap
7e2dbcef 30486
295f4e42 30487install-libtermcap: installdirs
f41d6665 30488 @: $(MAKE); $(unstage)
8c90b13a
L
30489 @r=`${PWD_COMMAND}`; export r; \
30490 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30491 $(HOST_EXPORTS) \
215c351a 30492 (cd $(HOST_SUBDIR)/libtermcap && \
ace9ac7b 30493 $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6 30494
60975492 30495@endif libtermcap
4977bab6 30496
295f4e42
NN
30497# Other targets (info, dvi, etc.)
30498
30499.PHONY: maybe-info-libtermcap info-libtermcap
30500maybe-info-libtermcap:
60975492
PB
30501@if libtermcap
30502maybe-info-libtermcap: info-libtermcap
295f4e42
NN
30503
30504info-libtermcap: \
05750653 30505 configure-libtermcap
f41d6665 30506 @: $(MAKE); $(unstage)
295f4e42 30507 @[ -f ./libtermcap/Makefile ] || exit 0; \
8c90b13a
L
30508 r=`${PWD_COMMAND}`; export r; \
30509 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30510 $(HOST_EXPORTS) \
d32ab992 30511 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
30512 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30513 done; \
30514 echo "Doing info in libtermcap" ; \
215c351a 30515 (cd $(HOST_SUBDIR)/libtermcap && \
295f4e42
NN
30516 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30517 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30518 "RANLIB=$${RANLIB}" \
30519 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 30520 info) \
4977bab6
ZW
30521 || exit 1
30522
60975492 30523@endif libtermcap
4977bab6 30524
295f4e42
NN
30525.PHONY: maybe-dvi-libtermcap dvi-libtermcap
30526maybe-dvi-libtermcap:
60975492
PB
30527@if libtermcap
30528maybe-dvi-libtermcap: dvi-libtermcap
4977bab6 30529
295f4e42 30530dvi-libtermcap: \
05750653 30531 configure-libtermcap
f41d6665 30532 @: $(MAKE); $(unstage)
295f4e42
NN
30533 @[ -f ./libtermcap/Makefile ] || exit 0; \
30534 r=`${PWD_COMMAND}`; export r; \
8c90b13a 30535 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30536 $(HOST_EXPORTS) \
d32ab992 30537 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
30538 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30539 done; \
30540 echo "Doing dvi in libtermcap" ; \
215c351a 30541 (cd $(HOST_SUBDIR)/libtermcap && \
295f4e42
NN
30542 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30543 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30544 "RANLIB=$${RANLIB}" \
30545 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 30546 dvi) \
295f4e42 30547 || exit 1
4977bab6 30548
60975492 30549@endif libtermcap
4977bab6 30550
f87a2b2e
MS
30551.PHONY: maybe-html-libtermcap html-libtermcap
30552maybe-html-libtermcap:
30553@if libtermcap
30554maybe-html-libtermcap: html-libtermcap
30555
30556html-libtermcap: \
05750653 30557 configure-libtermcap
f41d6665 30558 @: $(MAKE); $(unstage)
f87a2b2e
MS
30559 @[ -f ./libtermcap/Makefile ] || exit 0; \
30560 r=`${PWD_COMMAND}`; export r; \
30561 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
30562 $(HOST_EXPORTS) \
30563 for flag in $(EXTRA_HOST_FLAGS) ; do \
30564 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30565 done; \
30566 echo "Doing html in libtermcap" ; \
215c351a 30567 (cd $(HOST_SUBDIR)/libtermcap && \
f87a2b2e
MS
30568 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30569 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30570 "RANLIB=$${RANLIB}" \
30571 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
30572 html) \
30573 || exit 1
30574
30575@endif libtermcap
30576
295f4e42
NN
30577.PHONY: maybe-TAGS-libtermcap TAGS-libtermcap
30578maybe-TAGS-libtermcap:
60975492
PB
30579@if libtermcap
30580maybe-TAGS-libtermcap: TAGS-libtermcap
7e2dbcef 30581
295f4e42 30582TAGS-libtermcap: \
05750653 30583 configure-libtermcap
f41d6665 30584 @: $(MAKE); $(unstage)
295f4e42
NN
30585 @[ -f ./libtermcap/Makefile ] || exit 0; \
30586 r=`${PWD_COMMAND}`; export r; \
8c90b13a 30587 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30588 $(HOST_EXPORTS) \
d32ab992 30589 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
30590 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30591 done; \
30592 echo "Doing TAGS in libtermcap" ; \
215c351a 30593 (cd $(HOST_SUBDIR)/libtermcap && \
295f4e42
NN
30594 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30595 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30596 "RANLIB=$${RANLIB}" \
30597 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 30598 TAGS) \
295f4e42 30599 || exit 1
4977bab6 30600
60975492 30601@endif libtermcap
4977bab6 30602
295f4e42
NN
30603.PHONY: maybe-install-info-libtermcap install-info-libtermcap
30604maybe-install-info-libtermcap:
60975492
PB
30605@if libtermcap
30606maybe-install-info-libtermcap: install-info-libtermcap
295f4e42
NN
30607
30608install-info-libtermcap: \
30609 configure-libtermcap \
05750653 30610 info-libtermcap
f41d6665 30611 @: $(MAKE); $(unstage)
295f4e42 30612 @[ -f ./libtermcap/Makefile ] || exit 0; \
8c90b13a
L
30613 r=`${PWD_COMMAND}`; export r; \
30614 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30615 $(HOST_EXPORTS) \
d32ab992 30616 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
30617 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30618 done; \
30619 echo "Doing install-info in libtermcap" ; \
215c351a 30620 (cd $(HOST_SUBDIR)/libtermcap && \
295f4e42
NN
30621 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30622 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30623 "RANLIB=$${RANLIB}" \
30624 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 30625 install-info) \
4977bab6
ZW
30626 || exit 1
30627
60975492 30628@endif libtermcap
4977bab6 30629
65d6e994
CD
30630.PHONY: maybe-install-html-libtermcap install-html-libtermcap
30631maybe-install-html-libtermcap:
30632@if libtermcap
30633maybe-install-html-libtermcap: install-html-libtermcap
30634
30635install-html-libtermcap: \
30636 configure-libtermcap \
30637 html-libtermcap
30638 @: $(MAKE); $(unstage)
30639 @[ -f ./libtermcap/Makefile ] || exit 0; \
30640 r=`${PWD_COMMAND}`; export r; \
30641 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30642 $(HOST_EXPORTS) \
30643 for flag in $(EXTRA_HOST_FLAGS) ; do \
30644 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30645 done; \
30646 echo "Doing install-html in libtermcap" ; \
30647 (cd $(HOST_SUBDIR)/libtermcap && \
30648 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30649 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30650 "RANLIB=$${RANLIB}" \
30651 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
30652 install-html) \
30653 || exit 1
30654
30655@endif libtermcap
30656
295f4e42
NN
30657.PHONY: maybe-installcheck-libtermcap installcheck-libtermcap
30658maybe-installcheck-libtermcap:
60975492
PB
30659@if libtermcap
30660maybe-installcheck-libtermcap: installcheck-libtermcap
4977bab6 30661
295f4e42 30662installcheck-libtermcap: \
05750653 30663 configure-libtermcap
f41d6665 30664 @: $(MAKE); $(unstage)
295f4e42
NN
30665 @[ -f ./libtermcap/Makefile ] || exit 0; \
30666 r=`${PWD_COMMAND}`; export r; \
8c90b13a 30667 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30668 $(HOST_EXPORTS) \
d32ab992 30669 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
30670 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30671 done; \
30672 echo "Doing installcheck in libtermcap" ; \
215c351a 30673 (cd $(HOST_SUBDIR)/libtermcap && \
295f4e42
NN
30674 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30675 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30676 "RANLIB=$${RANLIB}" \
30677 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 30678 installcheck) \
295f4e42
NN
30679 || exit 1
30680
60975492 30681@endif libtermcap
295f4e42
NN
30682
30683.PHONY: maybe-mostlyclean-libtermcap mostlyclean-libtermcap
30684maybe-mostlyclean-libtermcap:
60975492
PB
30685@if libtermcap
30686maybe-mostlyclean-libtermcap: mostlyclean-libtermcap
295f4e42
NN
30687
30688# libtermcap doesn't support mostlyclean.
30689mostlyclean-libtermcap:
30690
60975492 30691@endif libtermcap
295f4e42
NN
30692
30693.PHONY: maybe-clean-libtermcap clean-libtermcap
30694maybe-clean-libtermcap:
60975492
PB
30695@if libtermcap
30696maybe-clean-libtermcap: clean-libtermcap
295f4e42
NN
30697
30698# libtermcap doesn't support clean.
30699clean-libtermcap:
30700
60975492 30701@endif libtermcap
295f4e42
NN
30702
30703.PHONY: maybe-distclean-libtermcap distclean-libtermcap
30704maybe-distclean-libtermcap:
60975492
PB
30705@if libtermcap
30706maybe-distclean-libtermcap: distclean-libtermcap
295f4e42
NN
30707
30708# libtermcap doesn't support distclean.
30709distclean-libtermcap:
30710
60975492 30711@endif libtermcap
4977bab6 30712
295f4e42
NN
30713.PHONY: maybe-maintainer-clean-libtermcap maintainer-clean-libtermcap
30714maybe-maintainer-clean-libtermcap:
60975492
PB
30715@if libtermcap
30716maybe-maintainer-clean-libtermcap: maintainer-clean-libtermcap
4977bab6 30717
295f4e42
NN
30718# libtermcap doesn't support maintainer-clean.
30719maintainer-clean-libtermcap:
7e2dbcef 30720
60975492 30721@endif libtermcap
4977bab6
ZW
30722
30723
25b42232 30724
295f4e42
NN
30725.PHONY: configure-utils maybe-configure-utils
30726maybe-configure-utils:
3ff3adad
PB
30727@if gcc-bootstrap
30728configure-utils: stage_current
30729@endif gcc-bootstrap
60975492
PB
30730@if utils
30731maybe-configure-utils: configure-utils
cc11cc9b 30732configure-utils:
f41d6665 30733 @: $(MAKE); $(unstage)
cc11cc9b 30734 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 30735 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
30736 test ! -f $(HOST_SUBDIR)/utils/Makefile || exit 0; \
30737 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/utils ; \
4fc4dd12 30738 $(HOST_EXPORTS) \
25b42232
PB
30739 echo Configuring in $(HOST_SUBDIR)/utils; \
30740 cd "$(HOST_SUBDIR)/utils" || exit 1; \
4977bab6 30741 case $(srcdir) in \
215c351a
PB
30742 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
30743 *) topdir=`echo $(HOST_SUBDIR)/utils/ | \
30744 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 30745 esac; \
215c351a
PB
30746 srcdiroption="--srcdir=$${topdir}/utils"; \
30747 libsrcdir="$$s/utils"; \
4977bab6 30748 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 30749 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 30750 || exit 1
60975492 30751@endif utils
4977bab6 30752
25b42232
PB
30753
30754
ce406537
PB
30755
30756
295f4e42
NN
30757.PHONY: all-utils maybe-all-utils
30758maybe-all-utils:
3ff3adad
PB
30759@if gcc-bootstrap
30760all-utils: stage_current
30761@endif gcc-bootstrap
60975492 30762@if utils
7e0b5752 30763TARGET-utils=all
60975492 30764maybe-all-utils: all-utils
295f4e42 30765all-utils: configure-utils
f41d6665 30766 @: $(MAKE); $(unstage)
8c90b13a
L
30767 @r=`${PWD_COMMAND}`; export r; \
30768 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30769 $(HOST_EXPORTS) \
215c351a
PB
30770 (cd $(HOST_SUBDIR)/utils && \
30771 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-utils))
60975492 30772@endif utils
4977bab6 30773
25b42232 30774
ce406537
PB
30775
30776
295f4e42
NN
30777.PHONY: check-utils maybe-check-utils
30778maybe-check-utils:
60975492
PB
30779@if utils
30780maybe-check-utils: check-utils
4977bab6 30781
295f4e42
NN
30782check-utils:
30783
60975492 30784@endif utils
295f4e42
NN
30785
30786.PHONY: install-utils maybe-install-utils
30787maybe-install-utils:
60975492
PB
30788@if utils
30789maybe-install-utils: install-utils
295f4e42
NN
30790
30791install-utils: installdirs
f41d6665 30792 @: $(MAKE); $(unstage)
8c90b13a
L
30793 @r=`${PWD_COMMAND}`; export r; \
30794 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30795 $(HOST_EXPORTS) \
215c351a 30796 (cd $(HOST_SUBDIR)/utils && \
ace9ac7b 30797 $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6 30798
60975492 30799@endif utils
4977bab6 30800
295f4e42 30801# Other targets (info, dvi, etc.)
7e2dbcef 30802
295f4e42
NN
30803.PHONY: maybe-info-utils info-utils
30804maybe-info-utils:
60975492
PB
30805@if utils
30806maybe-info-utils: info-utils
295f4e42
NN
30807
30808info-utils: \
05750653 30809 configure-utils
f41d6665 30810 @: $(MAKE); $(unstage)
295f4e42
NN
30811 @[ -f ./utils/Makefile ] || exit 0; \
30812 r=`${PWD_COMMAND}`; export r; \
8c90b13a 30813 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30814 $(HOST_EXPORTS) \
d32ab992 30815 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
30816 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30817 done; \
30818 echo "Doing info in utils" ; \
215c351a 30819 (cd $(HOST_SUBDIR)/utils && \
295f4e42
NN
30820 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30821 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30822 "RANLIB=$${RANLIB}" \
30823 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 30824 info) \
295f4e42 30825 || exit 1
4977bab6 30826
60975492 30827@endif utils
4977bab6 30828
295f4e42
NN
30829.PHONY: maybe-dvi-utils dvi-utils
30830maybe-dvi-utils:
60975492
PB
30831@if utils
30832maybe-dvi-utils: dvi-utils
295f4e42
NN
30833
30834dvi-utils: \
05750653 30835 configure-utils
f41d6665 30836 @: $(MAKE); $(unstage)
295f4e42 30837 @[ -f ./utils/Makefile ] || exit 0; \
8c90b13a
L
30838 r=`${PWD_COMMAND}`; export r; \
30839 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30840 $(HOST_EXPORTS) \
d32ab992 30841 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
30842 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30843 done; \
30844 echo "Doing dvi in utils" ; \
215c351a 30845 (cd $(HOST_SUBDIR)/utils && \
295f4e42
NN
30846 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30847 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30848 "RANLIB=$${RANLIB}" \
30849 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 30850 dvi) \
4977bab6
ZW
30851 || exit 1
30852
60975492 30853@endif utils
295f4e42 30854
f87a2b2e
MS
30855.PHONY: maybe-html-utils html-utils
30856maybe-html-utils:
30857@if utils
30858maybe-html-utils: html-utils
30859
30860html-utils: \
05750653 30861 configure-utils
f41d6665 30862 @: $(MAKE); $(unstage)
f87a2b2e
MS
30863 @[ -f ./utils/Makefile ] || exit 0; \
30864 r=`${PWD_COMMAND}`; export r; \
30865 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
30866 $(HOST_EXPORTS) \
30867 for flag in $(EXTRA_HOST_FLAGS) ; do \
30868 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30869 done; \
30870 echo "Doing html in utils" ; \
215c351a 30871 (cd $(HOST_SUBDIR)/utils && \
f87a2b2e
MS
30872 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30873 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30874 "RANLIB=$${RANLIB}" \
30875 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
30876 html) \
30877 || exit 1
30878
30879@endif utils
30880
295f4e42
NN
30881.PHONY: maybe-TAGS-utils TAGS-utils
30882maybe-TAGS-utils:
60975492
PB
30883@if utils
30884maybe-TAGS-utils: TAGS-utils
295f4e42
NN
30885
30886TAGS-utils: \
05750653 30887 configure-utils
f41d6665 30888 @: $(MAKE); $(unstage)
295f4e42
NN
30889 @[ -f ./utils/Makefile ] || exit 0; \
30890 r=`${PWD_COMMAND}`; export r; \
8c90b13a 30891 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30892 $(HOST_EXPORTS) \
d32ab992 30893 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
30894 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30895 done; \
30896 echo "Doing TAGS in utils" ; \
215c351a 30897 (cd $(HOST_SUBDIR)/utils && \
295f4e42
NN
30898 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30899 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30900 "RANLIB=$${RANLIB}" \
30901 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 30902 TAGS) \
295f4e42 30903 || exit 1
4977bab6 30904
60975492 30905@endif utils
4977bab6 30906
295f4e42
NN
30907.PHONY: maybe-install-info-utils install-info-utils
30908maybe-install-info-utils:
60975492
PB
30909@if utils
30910maybe-install-info-utils: install-info-utils
295f4e42
NN
30911
30912install-info-utils: \
30913 configure-utils \
05750653 30914 info-utils
f41d6665 30915 @: $(MAKE); $(unstage)
295f4e42
NN
30916 @[ -f ./utils/Makefile ] || exit 0; \
30917 r=`${PWD_COMMAND}`; export r; \
30918 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30919 $(HOST_EXPORTS) \
d32ab992 30920 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
30921 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30922 done; \
30923 echo "Doing install-info in utils" ; \
215c351a 30924 (cd $(HOST_SUBDIR)/utils && \
295f4e42
NN
30925 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30926 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30927 "RANLIB=$${RANLIB}" \
30928 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 30929 install-info) \
295f4e42 30930 || exit 1
4977bab6 30931
60975492 30932@endif utils
4977bab6 30933
65d6e994
CD
30934.PHONY: maybe-install-html-utils install-html-utils
30935maybe-install-html-utils:
30936@if utils
30937maybe-install-html-utils: install-html-utils
30938
30939install-html-utils: \
30940 configure-utils \
30941 html-utils
30942 @: $(MAKE); $(unstage)
30943 @[ -f ./utils/Makefile ] || exit 0; \
30944 r=`${PWD_COMMAND}`; export r; \
30945 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30946 $(HOST_EXPORTS) \
30947 for flag in $(EXTRA_HOST_FLAGS) ; do \
30948 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30949 done; \
30950 echo "Doing install-html in utils" ; \
30951 (cd $(HOST_SUBDIR)/utils && \
30952 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30953 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30954 "RANLIB=$${RANLIB}" \
30955 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
30956 install-html) \
30957 || exit 1
30958
30959@endif utils
30960
295f4e42
NN
30961.PHONY: maybe-installcheck-utils installcheck-utils
30962maybe-installcheck-utils:
60975492
PB
30963@if utils
30964maybe-installcheck-utils: installcheck-utils
7e2dbcef 30965
295f4e42 30966installcheck-utils: \
05750653 30967 configure-utils
f41d6665 30968 @: $(MAKE); $(unstage)
295f4e42
NN
30969 @[ -f ./utils/Makefile ] || exit 0; \
30970 r=`${PWD_COMMAND}`; export r; \
8c90b13a 30971 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30972 $(HOST_EXPORTS) \
d32ab992 30973 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
30974 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30975 done; \
30976 echo "Doing installcheck in utils" ; \
215c351a 30977 (cd $(HOST_SUBDIR)/utils && \
295f4e42
NN
30978 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30979 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30980 "RANLIB=$${RANLIB}" \
30981 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 30982 installcheck) \
295f4e42 30983 || exit 1
4977bab6 30984
60975492 30985@endif utils
4977bab6 30986
295f4e42
NN
30987.PHONY: maybe-mostlyclean-utils mostlyclean-utils
30988maybe-mostlyclean-utils:
60975492
PB
30989@if utils
30990maybe-mostlyclean-utils: mostlyclean-utils
295f4e42 30991
05750653 30992mostlyclean-utils:
f41d6665 30993 @: $(MAKE); $(unstage)
295f4e42 30994 @[ -f ./utils/Makefile ] || exit 0; \
8c90b13a
L
30995 r=`${PWD_COMMAND}`; export r; \
30996 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30997 $(HOST_EXPORTS) \
d32ab992 30998 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
30999 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31000 done; \
31001 echo "Doing mostlyclean in utils" ; \
215c351a 31002 (cd $(HOST_SUBDIR)/utils && \
295f4e42
NN
31003 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31004 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31005 "RANLIB=$${RANLIB}" \
31006 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 31007 mostlyclean) \
4977bab6
ZW
31008 || exit 1
31009
60975492 31010@endif utils
295f4e42
NN
31011
31012.PHONY: maybe-clean-utils clean-utils
31013maybe-clean-utils:
60975492
PB
31014@if utils
31015maybe-clean-utils: clean-utils
295f4e42 31016
05750653 31017clean-utils:
f41d6665 31018 @: $(MAKE); $(unstage)
295f4e42
NN
31019 @[ -f ./utils/Makefile ] || exit 0; \
31020 r=`${PWD_COMMAND}`; export r; \
8c90b13a 31021 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31022 $(HOST_EXPORTS) \
d32ab992 31023 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
31024 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31025 done; \
31026 echo "Doing clean in utils" ; \
215c351a 31027 (cd $(HOST_SUBDIR)/utils && \
295f4e42
NN
31028 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31029 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31030 "RANLIB=$${RANLIB}" \
31031 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 31032 clean) \
295f4e42 31033 || exit 1
4977bab6 31034
60975492 31035@endif utils
4977bab6 31036
295f4e42
NN
31037.PHONY: maybe-distclean-utils distclean-utils
31038maybe-distclean-utils:
60975492
PB
31039@if utils
31040maybe-distclean-utils: distclean-utils
295f4e42 31041
05750653 31042distclean-utils:
f41d6665 31043 @: $(MAKE); $(unstage)
295f4e42
NN
31044 @[ -f ./utils/Makefile ] || exit 0; \
31045 r=`${PWD_COMMAND}`; export r; \
8c90b13a 31046 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31047 $(HOST_EXPORTS) \
d32ab992 31048 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
31049 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31050 done; \
31051 echo "Doing distclean in utils" ; \
215c351a 31052 (cd $(HOST_SUBDIR)/utils && \
295f4e42
NN
31053 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31054 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31055 "RANLIB=$${RANLIB}" \
31056 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 31057 distclean) \
295f4e42 31058 || exit 1
4977bab6 31059
60975492 31060@endif utils
4977bab6 31061
295f4e42
NN
31062.PHONY: maybe-maintainer-clean-utils maintainer-clean-utils
31063maybe-maintainer-clean-utils:
60975492
PB
31064@if utils
31065maybe-maintainer-clean-utils: maintainer-clean-utils
7e2dbcef 31066
05750653 31067maintainer-clean-utils:
f41d6665 31068 @: $(MAKE); $(unstage)
295f4e42
NN
31069 @[ -f ./utils/Makefile ] || exit 0; \
31070 r=`${PWD_COMMAND}`; export r; \
8c90b13a 31071 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31072 $(HOST_EXPORTS) \
d32ab992 31073 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
31074 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31075 done; \
31076 echo "Doing maintainer-clean in utils" ; \
215c351a 31077 (cd $(HOST_SUBDIR)/utils && \
295f4e42
NN
31078 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31079 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31080 "RANLIB=$${RANLIB}" \
31081 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 31082 maintainer-clean) \
295f4e42 31083 || exit 1
4977bab6 31084
60975492 31085@endif utils
4977bab6 31086
295f4e42 31087
25b42232 31088
5395b47b
NN
31089.PHONY: configure-gnattools maybe-configure-gnattools
31090maybe-configure-gnattools:
3ff3adad
PB
31091@if gcc-bootstrap
31092configure-gnattools: stage_current
31093@endif gcc-bootstrap
5395b47b
NN
31094@if gnattools
31095maybe-configure-gnattools: configure-gnattools
cc11cc9b 31096configure-gnattools:
f41d6665 31097 @: $(MAKE); $(unstage)
cc11cc9b 31098 @r=`${PWD_COMMAND}`; export r; \
5395b47b 31099 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
31100 test ! -f $(HOST_SUBDIR)/gnattools/Makefile || exit 0; \
31101 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gnattools ; \
5395b47b 31102 $(HOST_EXPORTS) \
25b42232
PB
31103 echo Configuring in $(HOST_SUBDIR)/gnattools; \
31104 cd "$(HOST_SUBDIR)/gnattools" || exit 1; \
5395b47b 31105 case $(srcdir) in \
c9db9354
PB
31106 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31107 *) topdir=`echo $(HOST_SUBDIR)/gnattools/ | \
31108 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5395b47b 31109 esac; \
c9db9354
PB
31110 srcdiroption="--srcdir=$${topdir}/gnattools"; \
31111 libsrcdir="$$s/gnattools"; \
5395b47b
NN
31112 $(SHELL) $${libsrcdir}/configure \
31113 $(HOST_CONFIGARGS) $${srcdiroption} \
31114 || exit 1
31115@endif gnattools
31116
25b42232
PB
31117
31118
ce406537
PB
31119
31120
5395b47b
NN
31121.PHONY: all-gnattools maybe-all-gnattools
31122maybe-all-gnattools:
3ff3adad
PB
31123@if gcc-bootstrap
31124all-gnattools: stage_current
31125@endif gcc-bootstrap
5395b47b
NN
31126@if gnattools
31127TARGET-gnattools=all
31128maybe-all-gnattools: all-gnattools
31129all-gnattools: configure-gnattools
f41d6665 31130 @: $(MAKE); $(unstage)
5395b47b
NN
31131 @r=`${PWD_COMMAND}`; export r; \
31132 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5395b47b 31133 $(HOST_EXPORTS) \
c9db9354
PB
31134 (cd $(HOST_SUBDIR)/gnattools && \
31135 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-gnattools))
5395b47b
NN
31136@endif gnattools
31137
25b42232 31138
ce406537
PB
31139
31140
5395b47b
NN
31141.PHONY: check-gnattools maybe-check-gnattools
31142maybe-check-gnattools:
31143@if gnattools
31144maybe-check-gnattools: check-gnattools
31145
31146check-gnattools:
f41d6665 31147 @: $(MAKE); $(unstage)
5395b47b
NN
31148 @r=`${PWD_COMMAND}`; export r; \
31149 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5395b47b 31150 $(HOST_EXPORTS) \
c9db9354
PB
31151 (cd $(HOST_SUBDIR)/gnattools && \
31152 $(MAKE) $(FLAGS_TO_PASS) check)
5395b47b
NN
31153
31154@endif gnattools
31155
31156.PHONY: install-gnattools maybe-install-gnattools
31157maybe-install-gnattools:
31158@if gnattools
31159maybe-install-gnattools: install-gnattools
31160
31161install-gnattools: installdirs
f41d6665 31162 @: $(MAKE); $(unstage)
5395b47b
NN
31163 @r=`${PWD_COMMAND}`; export r; \
31164 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5395b47b 31165 $(HOST_EXPORTS) \
c9db9354 31166 (cd $(HOST_SUBDIR)/gnattools && \
ace9ac7b 31167 $(MAKE) $(FLAGS_TO_PASS) install)
5395b47b
NN
31168
31169@endif gnattools
31170
31171# Other targets (info, dvi, etc.)
31172
31173.PHONY: maybe-info-gnattools info-gnattools
31174maybe-info-gnattools:
31175@if gnattools
31176maybe-info-gnattools: info-gnattools
31177
31178info-gnattools: \
31179 configure-gnattools
f41d6665 31180 @: $(MAKE); $(unstage)
5395b47b
NN
31181 @[ -f ./gnattools/Makefile ] || exit 0; \
31182 r=`${PWD_COMMAND}`; export r; \
31183 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5395b47b
NN
31184 $(HOST_EXPORTS) \
31185 for flag in $(EXTRA_HOST_FLAGS) ; do \
31186 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31187 done; \
31188 echo "Doing info in gnattools" ; \
c9db9354 31189 (cd $(HOST_SUBDIR)/gnattools && \
5395b47b
NN
31190 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31191 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31192 "RANLIB=$${RANLIB}" \
31193 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
31194 info) \
31195 || exit 1
31196
31197@endif gnattools
31198
31199.PHONY: maybe-dvi-gnattools dvi-gnattools
31200maybe-dvi-gnattools:
31201@if gnattools
31202maybe-dvi-gnattools: dvi-gnattools
31203
31204dvi-gnattools: \
31205 configure-gnattools
f41d6665 31206 @: $(MAKE); $(unstage)
5395b47b
NN
31207 @[ -f ./gnattools/Makefile ] || exit 0; \
31208 r=`${PWD_COMMAND}`; export r; \
31209 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5395b47b
NN
31210 $(HOST_EXPORTS) \
31211 for flag in $(EXTRA_HOST_FLAGS) ; do \
31212 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31213 done; \
31214 echo "Doing dvi in gnattools" ; \
c9db9354 31215 (cd $(HOST_SUBDIR)/gnattools && \
5395b47b
NN
31216 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31217 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31218 "RANLIB=$${RANLIB}" \
31219 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
31220 dvi) \
31221 || exit 1
31222
31223@endif gnattools
31224
31225.PHONY: maybe-html-gnattools html-gnattools
31226maybe-html-gnattools:
31227@if gnattools
31228maybe-html-gnattools: html-gnattools
31229
31230html-gnattools: \
31231 configure-gnattools
f41d6665 31232 @: $(MAKE); $(unstage)
5395b47b
NN
31233 @[ -f ./gnattools/Makefile ] || exit 0; \
31234 r=`${PWD_COMMAND}`; export r; \
31235 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5395b47b
NN
31236 $(HOST_EXPORTS) \
31237 for flag in $(EXTRA_HOST_FLAGS) ; do \
31238 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31239 done; \
31240 echo "Doing html in gnattools" ; \
c9db9354 31241 (cd $(HOST_SUBDIR)/gnattools && \
5395b47b
NN
31242 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31243 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31244 "RANLIB=$${RANLIB}" \
31245 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
31246 html) \
31247 || exit 1
31248
31249@endif gnattools
31250
31251.PHONY: maybe-TAGS-gnattools TAGS-gnattools
31252maybe-TAGS-gnattools:
31253@if gnattools
31254maybe-TAGS-gnattools: TAGS-gnattools
31255
31256TAGS-gnattools: \
31257 configure-gnattools
f41d6665 31258 @: $(MAKE); $(unstage)
5395b47b
NN
31259 @[ -f ./gnattools/Makefile ] || exit 0; \
31260 r=`${PWD_COMMAND}`; export r; \
31261 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5395b47b
NN
31262 $(HOST_EXPORTS) \
31263 for flag in $(EXTRA_HOST_FLAGS) ; do \
31264 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31265 done; \
31266 echo "Doing TAGS in gnattools" ; \
c9db9354 31267 (cd $(HOST_SUBDIR)/gnattools && \
5395b47b
NN
31268 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31269 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31270 "RANLIB=$${RANLIB}" \
31271 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
31272 TAGS) \
31273 || exit 1
31274
31275@endif gnattools
31276
31277.PHONY: maybe-install-info-gnattools install-info-gnattools
31278maybe-install-info-gnattools:
31279@if gnattools
31280maybe-install-info-gnattools: install-info-gnattools
31281
31282install-info-gnattools: \
31283 configure-gnattools \
31284 info-gnattools
f41d6665 31285 @: $(MAKE); $(unstage)
5395b47b
NN
31286 @[ -f ./gnattools/Makefile ] || exit 0; \
31287 r=`${PWD_COMMAND}`; export r; \
31288 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5395b47b
NN
31289 $(HOST_EXPORTS) \
31290 for flag in $(EXTRA_HOST_FLAGS) ; do \
31291 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31292 done; \
31293 echo "Doing install-info in gnattools" ; \
c9db9354 31294 (cd $(HOST_SUBDIR)/gnattools && \
5395b47b
NN
31295 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31296 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31297 "RANLIB=$${RANLIB}" \
31298 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
31299 install-info) \
31300 || exit 1
31301
31302@endif gnattools
31303
65d6e994
CD
31304.PHONY: maybe-install-html-gnattools install-html-gnattools
31305maybe-install-html-gnattools:
31306@if gnattools
31307maybe-install-html-gnattools: install-html-gnattools
31308
31309install-html-gnattools: \
31310 configure-gnattools \
31311 html-gnattools
31312 @: $(MAKE); $(unstage)
31313 @[ -f ./gnattools/Makefile ] || exit 0; \
31314 r=`${PWD_COMMAND}`; export r; \
31315 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31316 $(HOST_EXPORTS) \
31317 for flag in $(EXTRA_HOST_FLAGS) ; do \
31318 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31319 done; \
31320 echo "Doing install-html in gnattools" ; \
31321 (cd $(HOST_SUBDIR)/gnattools && \
31322 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31323 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31324 "RANLIB=$${RANLIB}" \
31325 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
31326 install-html) \
31327 || exit 1
31328
31329@endif gnattools
31330
5395b47b
NN
31331.PHONY: maybe-installcheck-gnattools installcheck-gnattools
31332maybe-installcheck-gnattools:
31333@if gnattools
31334maybe-installcheck-gnattools: installcheck-gnattools
31335
31336installcheck-gnattools: \
31337 configure-gnattools
f41d6665 31338 @: $(MAKE); $(unstage)
5395b47b
NN
31339 @[ -f ./gnattools/Makefile ] || exit 0; \
31340 r=`${PWD_COMMAND}`; export r; \
31341 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5395b47b
NN
31342 $(HOST_EXPORTS) \
31343 for flag in $(EXTRA_HOST_FLAGS) ; do \
31344 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31345 done; \
31346 echo "Doing installcheck in gnattools" ; \
c9db9354 31347 (cd $(HOST_SUBDIR)/gnattools && \
5395b47b
NN
31348 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31349 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31350 "RANLIB=$${RANLIB}" \
31351 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
31352 installcheck) \
31353 || exit 1
31354
31355@endif gnattools
31356
31357.PHONY: maybe-mostlyclean-gnattools mostlyclean-gnattools
31358maybe-mostlyclean-gnattools:
31359@if gnattools
31360maybe-mostlyclean-gnattools: mostlyclean-gnattools
31361
31362mostlyclean-gnattools:
f41d6665 31363 @: $(MAKE); $(unstage)
5395b47b
NN
31364 @[ -f ./gnattools/Makefile ] || exit 0; \
31365 r=`${PWD_COMMAND}`; export r; \
31366 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5395b47b
NN
31367 $(HOST_EXPORTS) \
31368 for flag in $(EXTRA_HOST_FLAGS) ; do \
31369 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31370 done; \
31371 echo "Doing mostlyclean in gnattools" ; \
c9db9354 31372 (cd $(HOST_SUBDIR)/gnattools && \
5395b47b
NN
31373 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31374 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31375 "RANLIB=$${RANLIB}" \
31376 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
31377 mostlyclean) \
31378 || exit 1
31379
31380@endif gnattools
31381
31382.PHONY: maybe-clean-gnattools clean-gnattools
31383maybe-clean-gnattools:
31384@if gnattools
31385maybe-clean-gnattools: clean-gnattools
31386
31387clean-gnattools:
f41d6665 31388 @: $(MAKE); $(unstage)
5395b47b
NN
31389 @[ -f ./gnattools/Makefile ] || exit 0; \
31390 r=`${PWD_COMMAND}`; export r; \
31391 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5395b47b
NN
31392 $(HOST_EXPORTS) \
31393 for flag in $(EXTRA_HOST_FLAGS) ; do \
31394 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31395 done; \
31396 echo "Doing clean in gnattools" ; \
c9db9354 31397 (cd $(HOST_SUBDIR)/gnattools && \
5395b47b
NN
31398 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31399 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31400 "RANLIB=$${RANLIB}" \
31401 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
31402 clean) \
31403 || exit 1
31404
31405@endif gnattools
31406
31407.PHONY: maybe-distclean-gnattools distclean-gnattools
31408maybe-distclean-gnattools:
31409@if gnattools
31410maybe-distclean-gnattools: distclean-gnattools
31411
31412distclean-gnattools:
f41d6665 31413 @: $(MAKE); $(unstage)
5395b47b
NN
31414 @[ -f ./gnattools/Makefile ] || exit 0; \
31415 r=`${PWD_COMMAND}`; export r; \
31416 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5395b47b
NN
31417 $(HOST_EXPORTS) \
31418 for flag in $(EXTRA_HOST_FLAGS) ; do \
31419 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31420 done; \
31421 echo "Doing distclean in gnattools" ; \
c9db9354 31422 (cd $(HOST_SUBDIR)/gnattools && \
5395b47b
NN
31423 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31424 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31425 "RANLIB=$${RANLIB}" \
31426 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
31427 distclean) \
31428 || exit 1
31429
31430@endif gnattools
31431
31432.PHONY: maybe-maintainer-clean-gnattools maintainer-clean-gnattools
31433maybe-maintainer-clean-gnattools:
31434@if gnattools
31435maybe-maintainer-clean-gnattools: maintainer-clean-gnattools
31436
31437maintainer-clean-gnattools:
f41d6665 31438 @: $(MAKE); $(unstage)
5395b47b
NN
31439 @[ -f ./gnattools/Makefile ] || exit 0; \
31440 r=`${PWD_COMMAND}`; export r; \
31441 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5395b47b
NN
31442 $(HOST_EXPORTS) \
31443 for flag in $(EXTRA_HOST_FLAGS) ; do \
31444 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31445 done; \
31446 echo "Doing maintainer-clean in gnattools" ; \
c9db9354 31447 (cd $(HOST_SUBDIR)/gnattools && \
5395b47b
NN
31448 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31449 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31450 "RANLIB=$${RANLIB}" \
31451 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
31452 maintainer-clean) \
31453 || exit 1
31454
31455@endif gnattools
31456
31457
295f4e42
NN
31458
31459# ---------------------------------------
31460# Modules which run on the target machine
31461# ---------------------------------------
31462
295f4e42 31463
25b42232
PB
31464
31465
31466.PHONY: configure-target-libstdc++-v3 maybe-configure-target-libstdc++-v3
31467maybe-configure-target-libstdc++-v3:
3ff3adad
PB
31468@if gcc-bootstrap
31469configure-target-libstdc++-v3: stage_current
31470@endif gcc-bootstrap
25b42232
PB
31471@if target-libstdc++-v3
31472maybe-configure-target-libstdc++-v3: configure-target-libstdc++-v3
cc11cc9b 31473configure-target-libstdc++-v3:
f41d6665
DJ
31474 @: $(MAKE); $(unstage)
31475 @r=`${PWD_COMMAND}`; export r; \
31476 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31477 echo "Checking multilib configuration for libstdc++-v3..."; \
31478 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
31479 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null ; \
31480 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
31481 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
31482 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
31483 else \
31484 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
31485 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
31486 fi; \
31487 else \
31488 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
cc11cc9b
PB
31489 fi; \
31490 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
295f4e42 31491 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
4fc4dd12 31492 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
31493 echo Configuring in $(TARGET_SUBDIR)/libstdc++-v3; \
31494 cd "$(TARGET_SUBDIR)/libstdc++-v3" || exit 1; \
4977bab6 31495 case $(srcdir) in \
215c351a
PB
31496 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31497 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
31498 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 31499 esac; \
215c351a
PB
31500 srcdiroption="--srcdir=$${topdir}/libstdc++-v3"; \
31501 libsrcdir="$$s/libstdc++-v3"; \
295f4e42
NN
31502 rm -f no-such-file || : ; \
31503 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 31504 $(TARGET_CONFIGARGS) $${srcdiroption} \
4977bab6 31505 || exit 1
60975492 31506@endif target-libstdc++-v3
4977bab6 31507
25b42232
PB
31508
31509
ce406537
PB
31510
31511
295f4e42
NN
31512.PHONY: all-target-libstdc++-v3 maybe-all-target-libstdc++-v3
31513maybe-all-target-libstdc++-v3:
3ff3adad
PB
31514@if gcc-bootstrap
31515all-target-libstdc++-v3: stage_current
31516@endif gcc-bootstrap
60975492 31517@if target-libstdc++-v3
7c27e184 31518TARGET-target-libstdc++-v3=all
60975492 31519maybe-all-target-libstdc++-v3: all-target-libstdc++-v3
295f4e42 31520all-target-libstdc++-v3: configure-target-libstdc++-v3
f41d6665 31521 @: $(MAKE); $(unstage)
8c90b13a
L
31522 @r=`${PWD_COMMAND}`; export r; \
31523 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31524 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42 31525 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
25b42232 31526 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' $(TARGET-target-libstdc++-v3))
60975492 31527@endif target-libstdc++-v3
4977bab6 31528
25b42232
PB
31529
31530
ce406537
PB
31531
31532
295f4e42
NN
31533.PHONY: check-target-libstdc++-v3 maybe-check-target-libstdc++-v3
31534maybe-check-target-libstdc++-v3:
60975492
PB
31535@if target-libstdc++-v3
31536maybe-check-target-libstdc++-v3: check-target-libstdc++-v3
4977bab6 31537
295f4e42 31538check-target-libstdc++-v3:
f41d6665 31539 @: $(MAKE); $(unstage)
8c90b13a
L
31540 @r=`${PWD_COMMAND}`; export r; \
31541 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31542 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42 31543 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
a52a0a7f 31544 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
4977bab6 31545
60975492 31546@endif target-libstdc++-v3
4977bab6 31547
295f4e42
NN
31548.PHONY: install-target-libstdc++-v3 maybe-install-target-libstdc++-v3
31549maybe-install-target-libstdc++-v3:
60975492
PB
31550@if target-libstdc++-v3
31551maybe-install-target-libstdc++-v3: install-target-libstdc++-v3
7e2dbcef 31552
295f4e42 31553install-target-libstdc++-v3: installdirs
f41d6665 31554 @: $(MAKE); $(unstage)
8c90b13a
L
31555 @r=`${PWD_COMMAND}`; export r; \
31556 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31557 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42 31558 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
a52a0a7f 31559 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4977bab6 31560
60975492 31561@endif target-libstdc++-v3
4977bab6 31562
295f4e42
NN
31563# Other targets (info, dvi, etc.)
31564
31565.PHONY: maybe-info-target-libstdc++-v3 info-target-libstdc++-v3
31566maybe-info-target-libstdc++-v3:
60975492
PB
31567@if target-libstdc++-v3
31568maybe-info-target-libstdc++-v3: info-target-libstdc++-v3
295f4e42
NN
31569
31570info-target-libstdc++-v3: \
05750653 31571 configure-target-libstdc++-v3
f41d6665 31572 @: $(MAKE); $(unstage)
295f4e42 31573 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
8c90b13a
L
31574 r=`${PWD_COMMAND}`; export r; \
31575 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31576 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
31577 echo "Doing info in $(TARGET_SUBDIR)/libstdc++-v3" ; \
31578 for flag in $(EXTRA_TARGET_FLAGS); do \
31579 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31580 done; \
31581 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
31582 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31583 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31584 "RANLIB=$${RANLIB}" \
31585 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 31586 info) \
4977bab6
ZW
31587 || exit 1
31588
60975492 31589@endif target-libstdc++-v3
295f4e42
NN
31590
31591.PHONY: maybe-dvi-target-libstdc++-v3 dvi-target-libstdc++-v3
31592maybe-dvi-target-libstdc++-v3:
60975492
PB
31593@if target-libstdc++-v3
31594maybe-dvi-target-libstdc++-v3: dvi-target-libstdc++-v3
295f4e42
NN
31595
31596dvi-target-libstdc++-v3: \
05750653 31597 configure-target-libstdc++-v3
f41d6665 31598 @: $(MAKE); $(unstage)
295f4e42
NN
31599 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
31600 r=`${PWD_COMMAND}`; export r; \
8c90b13a 31601 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31602 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
31603 echo "Doing dvi in $(TARGET_SUBDIR)/libstdc++-v3" ; \
31604 for flag in $(EXTRA_TARGET_FLAGS); do \
31605 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31606 done; \
31607 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
31608 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31609 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31610 "RANLIB=$${RANLIB}" \
31611 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 31612 dvi) \
295f4e42 31613 || exit 1
4977bab6 31614
60975492 31615@endif target-libstdc++-v3
4977bab6 31616
f87a2b2e
MS
31617.PHONY: maybe-html-target-libstdc++-v3 html-target-libstdc++-v3
31618maybe-html-target-libstdc++-v3:
31619@if target-libstdc++-v3
31620maybe-html-target-libstdc++-v3: html-target-libstdc++-v3
31621
31622html-target-libstdc++-v3: \
05750653 31623 configure-target-libstdc++-v3
f41d6665 31624 @: $(MAKE); $(unstage)
f87a2b2e
MS
31625 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
31626 r=`${PWD_COMMAND}`; export r; \
31627 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
31628 $(RAW_CXX_TARGET_EXPORTS) \
31629 echo "Doing html in $(TARGET_SUBDIR)/libstdc++-v3" ; \
31630 for flag in $(EXTRA_TARGET_FLAGS); do \
31631 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31632 done; \
31633 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
31634 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31635 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31636 "RANLIB=$${RANLIB}" \
31637 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
31638 html) \
31639 || exit 1
31640
31641@endif target-libstdc++-v3
31642
295f4e42
NN
31643.PHONY: maybe-TAGS-target-libstdc++-v3 TAGS-target-libstdc++-v3
31644maybe-TAGS-target-libstdc++-v3:
60975492
PB
31645@if target-libstdc++-v3
31646maybe-TAGS-target-libstdc++-v3: TAGS-target-libstdc++-v3
295f4e42
NN
31647
31648TAGS-target-libstdc++-v3: \
05750653 31649 configure-target-libstdc++-v3
f41d6665 31650 @: $(MAKE); $(unstage)
295f4e42
NN
31651 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
31652 r=`${PWD_COMMAND}`; export r; \
8c90b13a 31653 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31654 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
31655 echo "Doing TAGS in $(TARGET_SUBDIR)/libstdc++-v3" ; \
31656 for flag in $(EXTRA_TARGET_FLAGS); do \
31657 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31658 done; \
31659 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
31660 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31661 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31662 "RANLIB=$${RANLIB}" \
31663 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 31664 TAGS) \
295f4e42 31665 || exit 1
4977bab6 31666
60975492 31667@endif target-libstdc++-v3
4977bab6 31668
295f4e42
NN
31669.PHONY: maybe-install-info-target-libstdc++-v3 install-info-target-libstdc++-v3
31670maybe-install-info-target-libstdc++-v3:
60975492
PB
31671@if target-libstdc++-v3
31672maybe-install-info-target-libstdc++-v3: install-info-target-libstdc++-v3
7e2dbcef 31673
295f4e42
NN
31674install-info-target-libstdc++-v3: \
31675 configure-target-libstdc++-v3 \
05750653 31676 info-target-libstdc++-v3
f41d6665 31677 @: $(MAKE); $(unstage)
295f4e42
NN
31678 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
31679 r=`${PWD_COMMAND}`; export r; \
8c90b13a 31680 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31681 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
31682 echo "Doing install-info in $(TARGET_SUBDIR)/libstdc++-v3" ; \
31683 for flag in $(EXTRA_TARGET_FLAGS); do \
31684 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31685 done; \
31686 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
31687 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31688 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31689 "RANLIB=$${RANLIB}" \
31690 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 31691 install-info) \
295f4e42 31692 || exit 1
4977bab6 31693
60975492 31694@endif target-libstdc++-v3
4977bab6 31695
65d6e994
CD
31696.PHONY: maybe-install-html-target-libstdc++-v3 install-html-target-libstdc++-v3
31697maybe-install-html-target-libstdc++-v3:
31698@if target-libstdc++-v3
31699maybe-install-html-target-libstdc++-v3: install-html-target-libstdc++-v3
31700
31701install-html-target-libstdc++-v3: \
31702 configure-target-libstdc++-v3 \
31703 html-target-libstdc++-v3
31704 @: $(MAKE); $(unstage)
31705 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
31706 r=`${PWD_COMMAND}`; export r; \
31707 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31708 $(RAW_CXX_TARGET_EXPORTS) \
31709 echo "Doing install-html in $(TARGET_SUBDIR)/libstdc++-v3" ; \
31710 for flag in $(EXTRA_TARGET_FLAGS); do \
31711 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31712 done; \
31713 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
31714 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31715 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31716 "RANLIB=$${RANLIB}" \
31717 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
31718 install-html) \
31719 || exit 1
31720
31721@endif target-libstdc++-v3
31722
295f4e42
NN
31723.PHONY: maybe-installcheck-target-libstdc++-v3 installcheck-target-libstdc++-v3
31724maybe-installcheck-target-libstdc++-v3:
60975492
PB
31725@if target-libstdc++-v3
31726maybe-installcheck-target-libstdc++-v3: installcheck-target-libstdc++-v3
295f4e42
NN
31727
31728installcheck-target-libstdc++-v3: \
05750653 31729 configure-target-libstdc++-v3
f41d6665 31730 @: $(MAKE); $(unstage)
295f4e42 31731 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
8c90b13a
L
31732 r=`${PWD_COMMAND}`; export r; \
31733 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31734 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
31735 echo "Doing installcheck in $(TARGET_SUBDIR)/libstdc++-v3" ; \
31736 for flag in $(EXTRA_TARGET_FLAGS); do \
31737 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31738 done; \
31739 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
31740 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31741 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31742 "RANLIB=$${RANLIB}" \
31743 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 31744 installcheck) \
4977bab6
ZW
31745 || exit 1
31746
60975492 31747@endif target-libstdc++-v3
4977bab6 31748
295f4e42
NN
31749.PHONY: maybe-mostlyclean-target-libstdc++-v3 mostlyclean-target-libstdc++-v3
31750maybe-mostlyclean-target-libstdc++-v3:
60975492
PB
31751@if target-libstdc++-v3
31752maybe-mostlyclean-target-libstdc++-v3: mostlyclean-target-libstdc++-v3
4977bab6 31753
05750653 31754mostlyclean-target-libstdc++-v3:
f41d6665 31755 @: $(MAKE); $(unstage)
295f4e42
NN
31756 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
31757 r=`${PWD_COMMAND}`; export r; \
8c90b13a 31758 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31759 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
31760 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libstdc++-v3" ; \
31761 for flag in $(EXTRA_TARGET_FLAGS); do \
31762 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31763 done; \
31764 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
31765 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31766 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31767 "RANLIB=$${RANLIB}" \
31768 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 31769 mostlyclean) \
295f4e42 31770 || exit 1
4977bab6 31771
60975492 31772@endif target-libstdc++-v3
4977bab6 31773
295f4e42
NN
31774.PHONY: maybe-clean-target-libstdc++-v3 clean-target-libstdc++-v3
31775maybe-clean-target-libstdc++-v3:
60975492
PB
31776@if target-libstdc++-v3
31777maybe-clean-target-libstdc++-v3: clean-target-libstdc++-v3
7e2dbcef 31778
05750653 31779clean-target-libstdc++-v3:
f41d6665 31780 @: $(MAKE); $(unstage)
295f4e42
NN
31781 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
31782 r=`${PWD_COMMAND}`; export r; \
8c90b13a 31783 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31784 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
31785 echo "Doing clean in $(TARGET_SUBDIR)/libstdc++-v3" ; \
31786 for flag in $(EXTRA_TARGET_FLAGS); do \
31787 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31788 done; \
31789 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
31790 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31791 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31792 "RANLIB=$${RANLIB}" \
31793 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 31794 clean) \
295f4e42 31795 || exit 1
4977bab6 31796
60975492 31797@endif target-libstdc++-v3
4977bab6 31798
295f4e42
NN
31799.PHONY: maybe-distclean-target-libstdc++-v3 distclean-target-libstdc++-v3
31800maybe-distclean-target-libstdc++-v3:
60975492
PB
31801@if target-libstdc++-v3
31802maybe-distclean-target-libstdc++-v3: distclean-target-libstdc++-v3
295f4e42 31803
05750653 31804distclean-target-libstdc++-v3:
f41d6665 31805 @: $(MAKE); $(unstage)
295f4e42 31806 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
8c90b13a
L
31807 r=`${PWD_COMMAND}`; export r; \
31808 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31809 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
31810 echo "Doing distclean in $(TARGET_SUBDIR)/libstdc++-v3" ; \
31811 for flag in $(EXTRA_TARGET_FLAGS); do \
31812 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31813 done; \
31814 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
31815 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31816 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31817 "RANLIB=$${RANLIB}" \
31818 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 31819 distclean) \
4977bab6
ZW
31820 || exit 1
31821
60975492 31822@endif target-libstdc++-v3
4977bab6 31823
295f4e42
NN
31824.PHONY: maybe-maintainer-clean-target-libstdc++-v3 maintainer-clean-target-libstdc++-v3
31825maybe-maintainer-clean-target-libstdc++-v3:
60975492
PB
31826@if target-libstdc++-v3
31827maybe-maintainer-clean-target-libstdc++-v3: maintainer-clean-target-libstdc++-v3
4977bab6 31828
05750653 31829maintainer-clean-target-libstdc++-v3:
f41d6665 31830 @: $(MAKE); $(unstage)
295f4e42
NN
31831 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
31832 r=`${PWD_COMMAND}`; export r; \
8c90b13a 31833 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31834 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
31835 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libstdc++-v3" ; \
31836 for flag in $(EXTRA_TARGET_FLAGS); do \
31837 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31838 done; \
31839 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
31840 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31841 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31842 "RANLIB=$${RANLIB}" \
31843 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 31844 maintainer-clean) \
295f4e42 31845 || exit 1
4977bab6 31846
60975492 31847@endif target-libstdc++-v3
4977bab6 31848
7e2dbcef 31849
4977bab6 31850
25b42232
PB
31851
31852
31853.PHONY: configure-target-libmudflap maybe-configure-target-libmudflap
31854maybe-configure-target-libmudflap:
3ff3adad
PB
31855@if gcc-bootstrap
31856configure-target-libmudflap: stage_current
31857@endif gcc-bootstrap
25b42232
PB
31858@if target-libmudflap
31859maybe-configure-target-libmudflap: configure-target-libmudflap
cc11cc9b 31860configure-target-libmudflap:
f41d6665
DJ
31861 @: $(MAKE); $(unstage)
31862 @r=`${PWD_COMMAND}`; export r; \
31863 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31864 echo "Checking multilib configuration for libmudflap..."; \
31865 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmudflap ; \
31866 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmudflap/multilib.tmp 2> /dev/null ; \
31867 if test -r $(TARGET_SUBDIR)/libmudflap/multilib.out; then \
31868 if cmp -s $(TARGET_SUBDIR)/libmudflap/multilib.tmp $(TARGET_SUBDIR)/libmudflap/multilib.out; then \
31869 rm -f $(TARGET_SUBDIR)/libmudflap/multilib.tmp; \
31870 else \
31871 rm -f $(TARGET_SUBDIR)/libmudflap/Makefile; \
31872 mv $(TARGET_SUBDIR)/libmudflap/multilib.tmp $(TARGET_SUBDIR)/libmudflap/multilib.out; \
31873 fi; \
31874 else \
31875 mv $(TARGET_SUBDIR)/libmudflap/multilib.tmp $(TARGET_SUBDIR)/libmudflap/multilib.out; \
cc11cc9b
PB
31876 fi; \
31877 test ! -f $(TARGET_SUBDIR)/libmudflap/Makefile || exit 0; \
6de9cd9a 31878 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmudflap ; \
4fc4dd12 31879 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
31880 echo Configuring in $(TARGET_SUBDIR)/libmudflap; \
31881 cd "$(TARGET_SUBDIR)/libmudflap" || exit 1; \
4977bab6 31882 case $(srcdir) in \
215c351a
PB
31883 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31884 *) topdir=`echo $(TARGET_SUBDIR)/libmudflap/ | \
31885 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 31886 esac; \
215c351a
PB
31887 srcdiroption="--srcdir=$${topdir}/libmudflap"; \
31888 libsrcdir="$$s/libmudflap"; \
295f4e42
NN
31889 rm -f no-such-file || : ; \
31890 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 31891 $(TARGET_CONFIGARGS) $${srcdiroption} \
4977bab6 31892 || exit 1
60975492 31893@endif target-libmudflap
4977bab6 31894
25b42232
PB
31895
31896
ce406537
PB
31897
31898
6de9cd9a
DN
31899.PHONY: all-target-libmudflap maybe-all-target-libmudflap
31900maybe-all-target-libmudflap:
3ff3adad
PB
31901@if gcc-bootstrap
31902all-target-libmudflap: stage_current
31903@endif gcc-bootstrap
60975492 31904@if target-libmudflap
7c27e184 31905TARGET-target-libmudflap=all
60975492 31906maybe-all-target-libmudflap: all-target-libmudflap
6de9cd9a 31907all-target-libmudflap: configure-target-libmudflap
f41d6665 31908 @: $(MAKE); $(unstage)
8c90b13a
L
31909 @r=`${PWD_COMMAND}`; export r; \
31910 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31911 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a 31912 (cd $(TARGET_SUBDIR)/libmudflap && \
25b42232 31913 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libmudflap))
60975492 31914@endif target-libmudflap
4977bab6 31915
25b42232
PB
31916
31917
ce406537
PB
31918
31919
6de9cd9a
DN
31920.PHONY: check-target-libmudflap maybe-check-target-libmudflap
31921maybe-check-target-libmudflap:
60975492
PB
31922@if target-libmudflap
31923maybe-check-target-libmudflap: check-target-libmudflap
4977bab6 31924
6de9cd9a 31925check-target-libmudflap:
f41d6665 31926 @: $(MAKE); $(unstage)
6de9cd9a
DN
31927 @r=`${PWD_COMMAND}`; export r; \
31928 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31929 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a 31930 (cd $(TARGET_SUBDIR)/libmudflap && \
a52a0a7f 31931 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
6de9cd9a 31932
60975492 31933@endif target-libmudflap
6de9cd9a
DN
31934
31935.PHONY: install-target-libmudflap maybe-install-target-libmudflap
31936maybe-install-target-libmudflap:
60975492
PB
31937@if target-libmudflap
31938maybe-install-target-libmudflap: install-target-libmudflap
6de9cd9a
DN
31939
31940install-target-libmudflap: installdirs
f41d6665 31941 @: $(MAKE); $(unstage)
6de9cd9a
DN
31942 @r=`${PWD_COMMAND}`; export r; \
31943 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31944 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a 31945 (cd $(TARGET_SUBDIR)/libmudflap && \
a52a0a7f 31946 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6de9cd9a 31947
60975492 31948@endif target-libmudflap
6de9cd9a
DN
31949
31950# Other targets (info, dvi, etc.)
31951
31952.PHONY: maybe-info-target-libmudflap info-target-libmudflap
31953maybe-info-target-libmudflap:
60975492
PB
31954@if target-libmudflap
31955maybe-info-target-libmudflap: info-target-libmudflap
6de9cd9a
DN
31956
31957info-target-libmudflap: \
05750653 31958 configure-target-libmudflap
f41d6665 31959 @: $(MAKE); $(unstage)
6de9cd9a
DN
31960 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
31961 r=`${PWD_COMMAND}`; export r; \
31962 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31963 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
31964 echo "Doing info in $(TARGET_SUBDIR)/libmudflap" ; \
31965 for flag in $(EXTRA_TARGET_FLAGS); do \
31966 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31967 done; \
31968 (cd $(TARGET_SUBDIR)/libmudflap && \
31969 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31970 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31971 "RANLIB=$${RANLIB}" \
31972 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 31973 info) \
6de9cd9a
DN
31974 || exit 1
31975
60975492 31976@endif target-libmudflap
6de9cd9a
DN
31977
31978.PHONY: maybe-dvi-target-libmudflap dvi-target-libmudflap
31979maybe-dvi-target-libmudflap:
60975492
PB
31980@if target-libmudflap
31981maybe-dvi-target-libmudflap: dvi-target-libmudflap
6de9cd9a
DN
31982
31983dvi-target-libmudflap: \
05750653 31984 configure-target-libmudflap
f41d6665 31985 @: $(MAKE); $(unstage)
6de9cd9a
DN
31986 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
31987 r=`${PWD_COMMAND}`; export r; \
31988 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31989 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
31990 echo "Doing dvi in $(TARGET_SUBDIR)/libmudflap" ; \
31991 for flag in $(EXTRA_TARGET_FLAGS); do \
31992 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31993 done; \
31994 (cd $(TARGET_SUBDIR)/libmudflap && \
31995 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31996 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31997 "RANLIB=$${RANLIB}" \
31998 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 31999 dvi) \
6de9cd9a
DN
32000 || exit 1
32001
60975492 32002@endif target-libmudflap
6de9cd9a 32003
f87a2b2e
MS
32004.PHONY: maybe-html-target-libmudflap html-target-libmudflap
32005maybe-html-target-libmudflap:
32006@if target-libmudflap
32007maybe-html-target-libmudflap: html-target-libmudflap
32008
32009html-target-libmudflap: \
05750653 32010 configure-target-libmudflap
f41d6665 32011 @: $(MAKE); $(unstage)
f87a2b2e
MS
32012 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
32013 r=`${PWD_COMMAND}`; export r; \
32014 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
32015 $(NORMAL_TARGET_EXPORTS) \
32016 echo "Doing html in $(TARGET_SUBDIR)/libmudflap" ; \
32017 for flag in $(EXTRA_TARGET_FLAGS); do \
32018 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32019 done; \
32020 (cd $(TARGET_SUBDIR)/libmudflap && \
32021 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32022 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32023 "RANLIB=$${RANLIB}" \
32024 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
32025 html) \
32026 || exit 1
32027
32028@endif target-libmudflap
32029
6de9cd9a
DN
32030.PHONY: maybe-TAGS-target-libmudflap TAGS-target-libmudflap
32031maybe-TAGS-target-libmudflap:
60975492
PB
32032@if target-libmudflap
32033maybe-TAGS-target-libmudflap: TAGS-target-libmudflap
6de9cd9a
DN
32034
32035TAGS-target-libmudflap: \
05750653 32036 configure-target-libmudflap
f41d6665 32037 @: $(MAKE); $(unstage)
6de9cd9a
DN
32038 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
32039 r=`${PWD_COMMAND}`; export r; \
32040 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 32041 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
32042 echo "Doing TAGS in $(TARGET_SUBDIR)/libmudflap" ; \
32043 for flag in $(EXTRA_TARGET_FLAGS); do \
32044 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32045 done; \
32046 (cd $(TARGET_SUBDIR)/libmudflap && \
32047 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32048 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32049 "RANLIB=$${RANLIB}" \
32050 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 32051 TAGS) \
6de9cd9a
DN
32052 || exit 1
32053
60975492 32054@endif target-libmudflap
6de9cd9a
DN
32055
32056.PHONY: maybe-install-info-target-libmudflap install-info-target-libmudflap
32057maybe-install-info-target-libmudflap:
60975492
PB
32058@if target-libmudflap
32059maybe-install-info-target-libmudflap: install-info-target-libmudflap
6de9cd9a
DN
32060
32061install-info-target-libmudflap: \
32062 configure-target-libmudflap \
05750653 32063 info-target-libmudflap
f41d6665 32064 @: $(MAKE); $(unstage)
6de9cd9a
DN
32065 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
32066 r=`${PWD_COMMAND}`; export r; \
32067 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 32068 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
32069 echo "Doing install-info in $(TARGET_SUBDIR)/libmudflap" ; \
32070 for flag in $(EXTRA_TARGET_FLAGS); do \
32071 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32072 done; \
32073 (cd $(TARGET_SUBDIR)/libmudflap && \
32074 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32075 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32076 "RANLIB=$${RANLIB}" \
32077 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 32078 install-info) \
6de9cd9a
DN
32079 || exit 1
32080
60975492 32081@endif target-libmudflap
6de9cd9a 32082
65d6e994
CD
32083.PHONY: maybe-install-html-target-libmudflap install-html-target-libmudflap
32084maybe-install-html-target-libmudflap:
32085@if target-libmudflap
32086maybe-install-html-target-libmudflap: install-html-target-libmudflap
32087
32088install-html-target-libmudflap: \
32089 configure-target-libmudflap \
32090 html-target-libmudflap
32091 @: $(MAKE); $(unstage)
32092 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
32093 r=`${PWD_COMMAND}`; export r; \
32094 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32095 $(NORMAL_TARGET_EXPORTS) \
32096 echo "Doing install-html in $(TARGET_SUBDIR)/libmudflap" ; \
32097 for flag in $(EXTRA_TARGET_FLAGS); do \
32098 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32099 done; \
32100 (cd $(TARGET_SUBDIR)/libmudflap && \
32101 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32102 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32103 "RANLIB=$${RANLIB}" \
32104 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
32105 install-html) \
32106 || exit 1
32107
32108@endif target-libmudflap
32109
6de9cd9a
DN
32110.PHONY: maybe-installcheck-target-libmudflap installcheck-target-libmudflap
32111maybe-installcheck-target-libmudflap:
60975492
PB
32112@if target-libmudflap
32113maybe-installcheck-target-libmudflap: installcheck-target-libmudflap
6de9cd9a
DN
32114
32115installcheck-target-libmudflap: \
05750653 32116 configure-target-libmudflap
f41d6665 32117 @: $(MAKE); $(unstage)
6de9cd9a
DN
32118 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
32119 r=`${PWD_COMMAND}`; export r; \
32120 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 32121 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
32122 echo "Doing installcheck in $(TARGET_SUBDIR)/libmudflap" ; \
32123 for flag in $(EXTRA_TARGET_FLAGS); do \
32124 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32125 done; \
32126 (cd $(TARGET_SUBDIR)/libmudflap && \
32127 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32128 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32129 "RANLIB=$${RANLIB}" \
32130 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 32131 installcheck) \
6de9cd9a
DN
32132 || exit 1
32133
60975492 32134@endif target-libmudflap
6de9cd9a
DN
32135
32136.PHONY: maybe-mostlyclean-target-libmudflap mostlyclean-target-libmudflap
32137maybe-mostlyclean-target-libmudflap:
60975492
PB
32138@if target-libmudflap
32139maybe-mostlyclean-target-libmudflap: mostlyclean-target-libmudflap
6de9cd9a 32140
05750653 32141mostlyclean-target-libmudflap:
f41d6665 32142 @: $(MAKE); $(unstage)
6de9cd9a
DN
32143 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
32144 r=`${PWD_COMMAND}`; export r; \
32145 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 32146 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
32147 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libmudflap" ; \
32148 for flag in $(EXTRA_TARGET_FLAGS); do \
32149 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32150 done; \
32151 (cd $(TARGET_SUBDIR)/libmudflap && \
32152 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32153 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32154 "RANLIB=$${RANLIB}" \
32155 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 32156 mostlyclean) \
6de9cd9a
DN
32157 || exit 1
32158
60975492 32159@endif target-libmudflap
6de9cd9a
DN
32160
32161.PHONY: maybe-clean-target-libmudflap clean-target-libmudflap
32162maybe-clean-target-libmudflap:
60975492
PB
32163@if target-libmudflap
32164maybe-clean-target-libmudflap: clean-target-libmudflap
6de9cd9a 32165
05750653 32166clean-target-libmudflap:
f41d6665 32167 @: $(MAKE); $(unstage)
6de9cd9a
DN
32168 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
32169 r=`${PWD_COMMAND}`; export r; \
32170 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 32171 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
32172 echo "Doing clean in $(TARGET_SUBDIR)/libmudflap" ; \
32173 for flag in $(EXTRA_TARGET_FLAGS); do \
32174 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32175 done; \
32176 (cd $(TARGET_SUBDIR)/libmudflap && \
32177 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32178 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32179 "RANLIB=$${RANLIB}" \
32180 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 32181 clean) \
6de9cd9a
DN
32182 || exit 1
32183
60975492 32184@endif target-libmudflap
6de9cd9a
DN
32185
32186.PHONY: maybe-distclean-target-libmudflap distclean-target-libmudflap
32187maybe-distclean-target-libmudflap:
60975492
PB
32188@if target-libmudflap
32189maybe-distclean-target-libmudflap: distclean-target-libmudflap
6de9cd9a 32190
05750653 32191distclean-target-libmudflap:
f41d6665 32192 @: $(MAKE); $(unstage)
6de9cd9a
DN
32193 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
32194 r=`${PWD_COMMAND}`; export r; \
32195 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 32196 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
32197 echo "Doing distclean in $(TARGET_SUBDIR)/libmudflap" ; \
32198 for flag in $(EXTRA_TARGET_FLAGS); do \
32199 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32200 done; \
32201 (cd $(TARGET_SUBDIR)/libmudflap && \
32202 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32203 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32204 "RANLIB=$${RANLIB}" \
32205 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 32206 distclean) \
6de9cd9a
DN
32207 || exit 1
32208
60975492 32209@endif target-libmudflap
6de9cd9a
DN
32210
32211.PHONY: maybe-maintainer-clean-target-libmudflap maintainer-clean-target-libmudflap
32212maybe-maintainer-clean-target-libmudflap:
60975492
PB
32213@if target-libmudflap
32214maybe-maintainer-clean-target-libmudflap: maintainer-clean-target-libmudflap
6de9cd9a 32215
05750653 32216maintainer-clean-target-libmudflap:
f41d6665 32217 @: $(MAKE); $(unstage)
6de9cd9a
DN
32218 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
32219 r=`${PWD_COMMAND}`; export r; \
32220 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 32221 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
32222 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libmudflap" ; \
32223 for flag in $(EXTRA_TARGET_FLAGS); do \
32224 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32225 done; \
32226 (cd $(TARGET_SUBDIR)/libmudflap && \
32227 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32228 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32229 "RANLIB=$${RANLIB}" \
32230 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 32231 maintainer-clean) \
6de9cd9a
DN
32232 || exit 1
32233
60975492 32234@endif target-libmudflap
6de9cd9a
DN
32235
32236
6de9cd9a 32237
77008252
JJ
32238
32239
32240.PHONY: configure-target-libssp maybe-configure-target-libssp
32241maybe-configure-target-libssp:
3ff3adad
PB
32242@if gcc-bootstrap
32243configure-target-libssp: stage_current
32244@endif gcc-bootstrap
77008252
JJ
32245@if target-libssp
32246maybe-configure-target-libssp: configure-target-libssp
cc11cc9b 32247configure-target-libssp:
f41d6665
DJ
32248 @: $(MAKE); $(unstage)
32249 @r=`${PWD_COMMAND}`; export r; \
32250 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32251 echo "Checking multilib configuration for libssp..."; \
32252 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libssp ; \
32253 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libssp/multilib.tmp 2> /dev/null ; \
32254 if test -r $(TARGET_SUBDIR)/libssp/multilib.out; then \
32255 if cmp -s $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; then \
32256 rm -f $(TARGET_SUBDIR)/libssp/multilib.tmp; \
32257 else \
32258 rm -f $(TARGET_SUBDIR)/libssp/Makefile; \
32259 mv $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; \
32260 fi; \
32261 else \
32262 mv $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; \
cc11cc9b
PB
32263 fi; \
32264 test ! -f $(TARGET_SUBDIR)/libssp/Makefile || exit 0; \
77008252 32265 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libssp ; \
77008252
JJ
32266 $(NORMAL_TARGET_EXPORTS) \
32267 echo Configuring in $(TARGET_SUBDIR)/libssp; \
32268 cd "$(TARGET_SUBDIR)/libssp" || exit 1; \
32269 case $(srcdir) in \
32270 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32271 *) topdir=`echo $(TARGET_SUBDIR)/libssp/ | \
32272 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
32273 esac; \
32274 srcdiroption="--srcdir=$${topdir}/libssp"; \
32275 libsrcdir="$$s/libssp"; \
32276 rm -f no-such-file || : ; \
32277 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
32278 $(TARGET_CONFIGARGS) $${srcdiroption} \
32279 || exit 1
32280@endif target-libssp
32281
32282
32283
32284
32285
32286.PHONY: all-target-libssp maybe-all-target-libssp
32287maybe-all-target-libssp:
3ff3adad
PB
32288@if gcc-bootstrap
32289all-target-libssp: stage_current
32290@endif gcc-bootstrap
77008252
JJ
32291@if target-libssp
32292TARGET-target-libssp=all
32293maybe-all-target-libssp: all-target-libssp
32294all-target-libssp: configure-target-libssp
f41d6665 32295 @: $(MAKE); $(unstage)
77008252
JJ
32296 @r=`${PWD_COMMAND}`; export r; \
32297 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32298 $(NORMAL_TARGET_EXPORTS) \
32299 (cd $(TARGET_SUBDIR)/libssp && \
32300 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libssp))
32301@endif target-libssp
32302
32303
32304
32305
32306
32307.PHONY: check-target-libssp maybe-check-target-libssp
32308maybe-check-target-libssp:
32309@if target-libssp
32310maybe-check-target-libssp: check-target-libssp
32311
32312check-target-libssp:
f41d6665 32313 @: $(MAKE); $(unstage)
77008252
JJ
32314 @r=`${PWD_COMMAND}`; export r; \
32315 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32316 $(NORMAL_TARGET_EXPORTS) \
32317 (cd $(TARGET_SUBDIR)/libssp && \
32318 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
32319
32320@endif target-libssp
32321
32322.PHONY: install-target-libssp maybe-install-target-libssp
32323maybe-install-target-libssp:
32324@if target-libssp
32325maybe-install-target-libssp: install-target-libssp
32326
32327install-target-libssp: installdirs
f41d6665 32328 @: $(MAKE); $(unstage)
77008252
JJ
32329 @r=`${PWD_COMMAND}`; export r; \
32330 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32331 $(NORMAL_TARGET_EXPORTS) \
32332 (cd $(TARGET_SUBDIR)/libssp && \
32333 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
32334
32335@endif target-libssp
32336
32337# Other targets (info, dvi, etc.)
32338
32339.PHONY: maybe-info-target-libssp info-target-libssp
32340maybe-info-target-libssp:
32341@if target-libssp
32342maybe-info-target-libssp: info-target-libssp
32343
32344info-target-libssp: \
32345 configure-target-libssp
f41d6665 32346 @: $(MAKE); $(unstage)
77008252
JJ
32347 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
32348 r=`${PWD_COMMAND}`; export r; \
32349 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32350 $(NORMAL_TARGET_EXPORTS) \
32351 echo "Doing info in $(TARGET_SUBDIR)/libssp" ; \
32352 for flag in $(EXTRA_TARGET_FLAGS); do \
32353 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32354 done; \
32355 (cd $(TARGET_SUBDIR)/libssp && \
32356 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32357 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32358 "RANLIB=$${RANLIB}" \
32359 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
32360 info) \
32361 || exit 1
32362
32363@endif target-libssp
32364
32365.PHONY: maybe-dvi-target-libssp dvi-target-libssp
32366maybe-dvi-target-libssp:
32367@if target-libssp
32368maybe-dvi-target-libssp: dvi-target-libssp
32369
32370dvi-target-libssp: \
32371 configure-target-libssp
f41d6665 32372 @: $(MAKE); $(unstage)
77008252
JJ
32373 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
32374 r=`${PWD_COMMAND}`; export r; \
32375 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32376 $(NORMAL_TARGET_EXPORTS) \
32377 echo "Doing dvi in $(TARGET_SUBDIR)/libssp" ; \
32378 for flag in $(EXTRA_TARGET_FLAGS); do \
32379 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32380 done; \
32381 (cd $(TARGET_SUBDIR)/libssp && \
32382 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32383 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32384 "RANLIB=$${RANLIB}" \
32385 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
32386 dvi) \
32387 || exit 1
32388
32389@endif target-libssp
32390
32391.PHONY: maybe-html-target-libssp html-target-libssp
32392maybe-html-target-libssp:
32393@if target-libssp
32394maybe-html-target-libssp: html-target-libssp
32395
32396html-target-libssp: \
32397 configure-target-libssp
f41d6665 32398 @: $(MAKE); $(unstage)
77008252
JJ
32399 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
32400 r=`${PWD_COMMAND}`; export r; \
32401 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32402 $(NORMAL_TARGET_EXPORTS) \
32403 echo "Doing html in $(TARGET_SUBDIR)/libssp" ; \
32404 for flag in $(EXTRA_TARGET_FLAGS); do \
32405 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32406 done; \
32407 (cd $(TARGET_SUBDIR)/libssp && \
32408 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32409 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32410 "RANLIB=$${RANLIB}" \
32411 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
32412 html) \
32413 || exit 1
32414
32415@endif target-libssp
32416
32417.PHONY: maybe-TAGS-target-libssp TAGS-target-libssp
32418maybe-TAGS-target-libssp:
32419@if target-libssp
32420maybe-TAGS-target-libssp: TAGS-target-libssp
32421
32422TAGS-target-libssp: \
32423 configure-target-libssp
f41d6665 32424 @: $(MAKE); $(unstage)
77008252
JJ
32425 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
32426 r=`${PWD_COMMAND}`; export r; \
32427 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32428 $(NORMAL_TARGET_EXPORTS) \
32429 echo "Doing TAGS in $(TARGET_SUBDIR)/libssp" ; \
32430 for flag in $(EXTRA_TARGET_FLAGS); do \
32431 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32432 done; \
32433 (cd $(TARGET_SUBDIR)/libssp && \
32434 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32435 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32436 "RANLIB=$${RANLIB}" \
32437 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
32438 TAGS) \
32439 || exit 1
32440
32441@endif target-libssp
32442
32443.PHONY: maybe-install-info-target-libssp install-info-target-libssp
32444maybe-install-info-target-libssp:
32445@if target-libssp
32446maybe-install-info-target-libssp: install-info-target-libssp
32447
32448install-info-target-libssp: \
32449 configure-target-libssp \
32450 info-target-libssp
f41d6665 32451 @: $(MAKE); $(unstage)
77008252
JJ
32452 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
32453 r=`${PWD_COMMAND}`; export r; \
32454 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32455 $(NORMAL_TARGET_EXPORTS) \
32456 echo "Doing install-info in $(TARGET_SUBDIR)/libssp" ; \
32457 for flag in $(EXTRA_TARGET_FLAGS); do \
32458 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32459 done; \
32460 (cd $(TARGET_SUBDIR)/libssp && \
32461 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32462 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32463 "RANLIB=$${RANLIB}" \
32464 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
32465 install-info) \
32466 || exit 1
32467
32468@endif target-libssp
32469
65d6e994
CD
32470.PHONY: maybe-install-html-target-libssp install-html-target-libssp
32471maybe-install-html-target-libssp:
32472@if target-libssp
32473maybe-install-html-target-libssp: install-html-target-libssp
32474
32475install-html-target-libssp: \
32476 configure-target-libssp \
32477 html-target-libssp
32478 @: $(MAKE); $(unstage)
32479 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
32480 r=`${PWD_COMMAND}`; export r; \
32481 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32482 $(NORMAL_TARGET_EXPORTS) \
32483 echo "Doing install-html in $(TARGET_SUBDIR)/libssp" ; \
32484 for flag in $(EXTRA_TARGET_FLAGS); do \
32485 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32486 done; \
32487 (cd $(TARGET_SUBDIR)/libssp && \
32488 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32489 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32490 "RANLIB=$${RANLIB}" \
32491 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
32492 install-html) \
32493 || exit 1
32494
32495@endif target-libssp
32496
77008252
JJ
32497.PHONY: maybe-installcheck-target-libssp installcheck-target-libssp
32498maybe-installcheck-target-libssp:
32499@if target-libssp
32500maybe-installcheck-target-libssp: installcheck-target-libssp
32501
32502installcheck-target-libssp: \
32503 configure-target-libssp
f41d6665 32504 @: $(MAKE); $(unstage)
77008252
JJ
32505 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
32506 r=`${PWD_COMMAND}`; export r; \
32507 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32508 $(NORMAL_TARGET_EXPORTS) \
32509 echo "Doing installcheck in $(TARGET_SUBDIR)/libssp" ; \
32510 for flag in $(EXTRA_TARGET_FLAGS); do \
32511 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32512 done; \
32513 (cd $(TARGET_SUBDIR)/libssp && \
32514 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32515 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32516 "RANLIB=$${RANLIB}" \
32517 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
32518 installcheck) \
32519 || exit 1
32520
32521@endif target-libssp
32522
32523.PHONY: maybe-mostlyclean-target-libssp mostlyclean-target-libssp
32524maybe-mostlyclean-target-libssp:
32525@if target-libssp
32526maybe-mostlyclean-target-libssp: mostlyclean-target-libssp
32527
32528mostlyclean-target-libssp:
f41d6665 32529 @: $(MAKE); $(unstage)
77008252
JJ
32530 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
32531 r=`${PWD_COMMAND}`; export r; \
32532 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32533 $(NORMAL_TARGET_EXPORTS) \
32534 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libssp" ; \
32535 for flag in $(EXTRA_TARGET_FLAGS); do \
32536 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32537 done; \
32538 (cd $(TARGET_SUBDIR)/libssp && \
32539 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32540 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32541 "RANLIB=$${RANLIB}" \
32542 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
32543 mostlyclean) \
32544 || exit 1
32545
32546@endif target-libssp
32547
32548.PHONY: maybe-clean-target-libssp clean-target-libssp
32549maybe-clean-target-libssp:
32550@if target-libssp
32551maybe-clean-target-libssp: clean-target-libssp
32552
32553clean-target-libssp:
f41d6665 32554 @: $(MAKE); $(unstage)
77008252
JJ
32555 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
32556 r=`${PWD_COMMAND}`; export r; \
32557 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32558 $(NORMAL_TARGET_EXPORTS) \
32559 echo "Doing clean in $(TARGET_SUBDIR)/libssp" ; \
32560 for flag in $(EXTRA_TARGET_FLAGS); do \
32561 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32562 done; \
32563 (cd $(TARGET_SUBDIR)/libssp && \
32564 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32565 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32566 "RANLIB=$${RANLIB}" \
32567 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
32568 clean) \
32569 || exit 1
32570
32571@endif target-libssp
32572
32573.PHONY: maybe-distclean-target-libssp distclean-target-libssp
32574maybe-distclean-target-libssp:
32575@if target-libssp
32576maybe-distclean-target-libssp: distclean-target-libssp
32577
32578distclean-target-libssp:
f41d6665 32579 @: $(MAKE); $(unstage)
77008252
JJ
32580 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
32581 r=`${PWD_COMMAND}`; export r; \
32582 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32583 $(NORMAL_TARGET_EXPORTS) \
32584 echo "Doing distclean in $(TARGET_SUBDIR)/libssp" ; \
32585 for flag in $(EXTRA_TARGET_FLAGS); do \
32586 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32587 done; \
32588 (cd $(TARGET_SUBDIR)/libssp && \
32589 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32590 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32591 "RANLIB=$${RANLIB}" \
32592 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
32593 distclean) \
32594 || exit 1
32595
32596@endif target-libssp
32597
32598.PHONY: maybe-maintainer-clean-target-libssp maintainer-clean-target-libssp
32599maybe-maintainer-clean-target-libssp:
32600@if target-libssp
32601maybe-maintainer-clean-target-libssp: maintainer-clean-target-libssp
32602
32603maintainer-clean-target-libssp:
f41d6665 32604 @: $(MAKE); $(unstage)
77008252
JJ
32605 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
32606 r=`${PWD_COMMAND}`; export r; \
32607 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32608 $(NORMAL_TARGET_EXPORTS) \
32609 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libssp" ; \
32610 for flag in $(EXTRA_TARGET_FLAGS); do \
32611 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32612 done; \
32613 (cd $(TARGET_SUBDIR)/libssp && \
32614 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32615 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32616 "RANLIB=$${RANLIB}" \
32617 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
32618 maintainer-clean) \
32619 || exit 1
32620
32621@endif target-libssp
32622
32623
32624
25b42232 32625
6de9cd9a 32626
25b42232
PB
32627.PHONY: configure-target-newlib maybe-configure-target-newlib
32628maybe-configure-target-newlib:
3ff3adad
PB
32629@if gcc-bootstrap
32630configure-target-newlib: stage_current
32631@endif gcc-bootstrap
25b42232
PB
32632@if target-newlib
32633maybe-configure-target-newlib: configure-target-newlib
cc11cc9b 32634configure-target-newlib:
f41d6665
DJ
32635 @: $(MAKE); $(unstage)
32636 @r=`${PWD_COMMAND}`; export r; \
32637 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32638 echo "Checking multilib configuration for newlib..."; \
32639 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/newlib ; \
32640 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/newlib/multilib.tmp 2> /dev/null ; \
32641 if test -r $(TARGET_SUBDIR)/newlib/multilib.out; then \
32642 if cmp -s $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; then \
32643 rm -f $(TARGET_SUBDIR)/newlib/multilib.tmp; \
32644 else \
32645 rm -f $(TARGET_SUBDIR)/newlib/Makefile; \
32646 mv $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; \
32647 fi; \
32648 else \
32649 mv $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; \
cc11cc9b
PB
32650 fi; \
32651 test ! -f $(TARGET_SUBDIR)/newlib/Makefile || exit 0; \
6de9cd9a 32652 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/newlib ; \
4fc4dd12 32653 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
32654 echo Configuring in $(TARGET_SUBDIR)/newlib; \
32655 cd "$(TARGET_SUBDIR)/newlib" || exit 1; \
32656 case $(srcdir) in \
215c351a
PB
32657 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32658 *) topdir=`echo $(TARGET_SUBDIR)/newlib/ | \
32659 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6de9cd9a 32660 esac; \
215c351a
PB
32661 srcdiroption="--srcdir=$${topdir}/newlib"; \
32662 libsrcdir="$$s/newlib"; \
6de9cd9a
DN
32663 rm -f no-such-file || : ; \
32664 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 32665 $(TARGET_CONFIGARGS) $${srcdiroption} \
6de9cd9a 32666 || exit 1
60975492 32667@endif target-newlib
6de9cd9a 32668
25b42232
PB
32669
32670
ce406537
PB
32671
32672
6de9cd9a
DN
32673.PHONY: all-target-newlib maybe-all-target-newlib
32674maybe-all-target-newlib:
3ff3adad
PB
32675@if gcc-bootstrap
32676all-target-newlib: stage_current
32677@endif gcc-bootstrap
60975492 32678@if target-newlib
7c27e184 32679TARGET-target-newlib=all
60975492 32680maybe-all-target-newlib: all-target-newlib
6de9cd9a 32681all-target-newlib: configure-target-newlib
f41d6665 32682 @: $(MAKE); $(unstage)
6de9cd9a
DN
32683 @r=`${PWD_COMMAND}`; export r; \
32684 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 32685 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a 32686 (cd $(TARGET_SUBDIR)/newlib && \
25b42232 32687 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-newlib))
60975492 32688@endif target-newlib
6de9cd9a 32689
25b42232
PB
32690
32691
ce406537
PB
32692
32693
6de9cd9a
DN
32694.PHONY: check-target-newlib maybe-check-target-newlib
32695maybe-check-target-newlib:
60975492
PB
32696@if target-newlib
32697maybe-check-target-newlib: check-target-newlib
6de9cd9a
DN
32698
32699check-target-newlib:
f41d6665 32700 @: $(MAKE); $(unstage)
295f4e42
NN
32701 @r=`${PWD_COMMAND}`; export r; \
32702 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 32703 $(NORMAL_TARGET_EXPORTS) \
295f4e42 32704 (cd $(TARGET_SUBDIR)/newlib && \
a52a0a7f 32705 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4977bab6 32706
60975492 32707@endif target-newlib
4977bab6 32708
295f4e42
NN
32709.PHONY: install-target-newlib maybe-install-target-newlib
32710maybe-install-target-newlib:
60975492
PB
32711@if target-newlib
32712maybe-install-target-newlib: install-target-newlib
7e2dbcef 32713
295f4e42 32714install-target-newlib: installdirs
f41d6665 32715 @: $(MAKE); $(unstage)
295f4e42
NN
32716 @r=`${PWD_COMMAND}`; export r; \
32717 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 32718 $(NORMAL_TARGET_EXPORTS) \
295f4e42 32719 (cd $(TARGET_SUBDIR)/newlib && \
a52a0a7f 32720 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4977bab6 32721
60975492 32722@endif target-newlib
4977bab6 32723
295f4e42
NN
32724# Other targets (info, dvi, etc.)
32725
32726.PHONY: maybe-info-target-newlib info-target-newlib
32727maybe-info-target-newlib:
60975492
PB
32728@if target-newlib
32729maybe-info-target-newlib: info-target-newlib
295f4e42
NN
32730
32731info-target-newlib: \
05750653 32732 configure-target-newlib
f41d6665 32733 @: $(MAKE); $(unstage)
295f4e42 32734 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
8c90b13a
L
32735 r=`${PWD_COMMAND}`; export r; \
32736 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 32737 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
32738 echo "Doing info in $(TARGET_SUBDIR)/newlib" ; \
32739 for flag in $(EXTRA_TARGET_FLAGS); do \
32740 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32741 done; \
32742 (cd $(TARGET_SUBDIR)/newlib && \
32743 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32744 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32745 "RANLIB=$${RANLIB}" \
32746 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 32747 info) \
4977bab6
ZW
32748 || exit 1
32749
60975492 32750@endif target-newlib
4977bab6 32751
295f4e42
NN
32752.PHONY: maybe-dvi-target-newlib dvi-target-newlib
32753maybe-dvi-target-newlib:
60975492
PB
32754@if target-newlib
32755maybe-dvi-target-newlib: dvi-target-newlib
4977bab6 32756
295f4e42 32757dvi-target-newlib: \
05750653 32758 configure-target-newlib
f41d6665 32759 @: $(MAKE); $(unstage)
295f4e42
NN
32760 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
32761 r=`${PWD_COMMAND}`; export r; \
8c90b13a 32762 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 32763 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
32764 echo "Doing dvi in $(TARGET_SUBDIR)/newlib" ; \
32765 for flag in $(EXTRA_TARGET_FLAGS); do \
32766 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32767 done; \
32768 (cd $(TARGET_SUBDIR)/newlib && \
32769 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32770 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32771 "RANLIB=$${RANLIB}" \
32772 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 32773 dvi) \
295f4e42 32774 || exit 1
4977bab6 32775
60975492 32776@endif target-newlib
4977bab6 32777
f87a2b2e
MS
32778.PHONY: maybe-html-target-newlib html-target-newlib
32779maybe-html-target-newlib:
32780@if target-newlib
32781maybe-html-target-newlib: html-target-newlib
32782
32783html-target-newlib: \
05750653 32784 configure-target-newlib
f41d6665 32785 @: $(MAKE); $(unstage)
f87a2b2e
MS
32786 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
32787 r=`${PWD_COMMAND}`; export r; \
32788 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
32789 $(NORMAL_TARGET_EXPORTS) \
32790 echo "Doing html in $(TARGET_SUBDIR)/newlib" ; \
32791 for flag in $(EXTRA_TARGET_FLAGS); do \
32792 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32793 done; \
32794 (cd $(TARGET_SUBDIR)/newlib && \
32795 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32796 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32797 "RANLIB=$${RANLIB}" \
32798 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
32799 html) \
32800 || exit 1
32801
32802@endif target-newlib
32803
295f4e42
NN
32804.PHONY: maybe-TAGS-target-newlib TAGS-target-newlib
32805maybe-TAGS-target-newlib:
60975492
PB
32806@if target-newlib
32807maybe-TAGS-target-newlib: TAGS-target-newlib
7e2dbcef 32808
295f4e42 32809TAGS-target-newlib: \
05750653 32810 configure-target-newlib
f41d6665 32811 @: $(MAKE); $(unstage)
295f4e42
NN
32812 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
32813 r=`${PWD_COMMAND}`; export r; \
8c90b13a 32814 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 32815 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
32816 echo "Doing TAGS in $(TARGET_SUBDIR)/newlib" ; \
32817 for flag in $(EXTRA_TARGET_FLAGS); do \
32818 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32819 done; \
32820 (cd $(TARGET_SUBDIR)/newlib && \
32821 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32822 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32823 "RANLIB=$${RANLIB}" \
32824 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 32825 TAGS) \
295f4e42 32826 || exit 1
4977bab6 32827
60975492 32828@endif target-newlib
4977bab6 32829
295f4e42
NN
32830.PHONY: maybe-install-info-target-newlib install-info-target-newlib
32831maybe-install-info-target-newlib:
60975492
PB
32832@if target-newlib
32833maybe-install-info-target-newlib: install-info-target-newlib
295f4e42
NN
32834
32835install-info-target-newlib: \
32836 configure-target-newlib \
05750653 32837 info-target-newlib
f41d6665 32838 @: $(MAKE); $(unstage)
295f4e42 32839 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
8c90b13a
L
32840 r=`${PWD_COMMAND}`; export r; \
32841 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 32842 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
32843 echo "Doing install-info in $(TARGET_SUBDIR)/newlib" ; \
32844 for flag in $(EXTRA_TARGET_FLAGS); do \
32845 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32846 done; \
32847 (cd $(TARGET_SUBDIR)/newlib && \
32848 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32849 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32850 "RANLIB=$${RANLIB}" \
32851 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 32852 install-info) \
4977bab6
ZW
32853 || exit 1
32854
60975492 32855@endif target-newlib
295f4e42 32856
65d6e994
CD
32857.PHONY: maybe-install-html-target-newlib install-html-target-newlib
32858maybe-install-html-target-newlib:
32859@if target-newlib
32860maybe-install-html-target-newlib: install-html-target-newlib
32861
32862install-html-target-newlib: \
32863 configure-target-newlib \
32864 html-target-newlib
32865 @: $(MAKE); $(unstage)
32866 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
32867 r=`${PWD_COMMAND}`; export r; \
32868 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32869 $(NORMAL_TARGET_EXPORTS) \
32870 echo "Doing install-html in $(TARGET_SUBDIR)/newlib" ; \
32871 for flag in $(EXTRA_TARGET_FLAGS); do \
32872 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32873 done; \
32874 (cd $(TARGET_SUBDIR)/newlib && \
32875 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32876 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32877 "RANLIB=$${RANLIB}" \
32878 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
32879 install-html) \
32880 || exit 1
32881
32882@endif target-newlib
32883
295f4e42
NN
32884.PHONY: maybe-installcheck-target-newlib installcheck-target-newlib
32885maybe-installcheck-target-newlib:
60975492
PB
32886@if target-newlib
32887maybe-installcheck-target-newlib: installcheck-target-newlib
295f4e42
NN
32888
32889installcheck-target-newlib: \
05750653 32890 configure-target-newlib
f41d6665 32891 @: $(MAKE); $(unstage)
295f4e42
NN
32892 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
32893 r=`${PWD_COMMAND}`; export r; \
8c90b13a 32894 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 32895 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
32896 echo "Doing installcheck in $(TARGET_SUBDIR)/newlib" ; \
32897 for flag in $(EXTRA_TARGET_FLAGS); do \
32898 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32899 done; \
32900 (cd $(TARGET_SUBDIR)/newlib && \
32901 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32902 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32903 "RANLIB=$${RANLIB}" \
32904 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 32905 installcheck) \
295f4e42 32906 || exit 1
4977bab6 32907
60975492 32908@endif target-newlib
4977bab6 32909
295f4e42
NN
32910.PHONY: maybe-mostlyclean-target-newlib mostlyclean-target-newlib
32911maybe-mostlyclean-target-newlib:
60975492
PB
32912@if target-newlib
32913maybe-mostlyclean-target-newlib: mostlyclean-target-newlib
295f4e42 32914
05750653 32915mostlyclean-target-newlib:
f41d6665 32916 @: $(MAKE); $(unstage)
295f4e42
NN
32917 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
32918 r=`${PWD_COMMAND}`; export r; \
8c90b13a 32919 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 32920 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
32921 echo "Doing mostlyclean in $(TARGET_SUBDIR)/newlib" ; \
32922 for flag in $(EXTRA_TARGET_FLAGS); do \
32923 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32924 done; \
32925 (cd $(TARGET_SUBDIR)/newlib && \
32926 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32927 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32928 "RANLIB=$${RANLIB}" \
32929 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 32930 mostlyclean) \
295f4e42 32931 || exit 1
4977bab6 32932
60975492 32933@endif target-newlib
4977bab6 32934
295f4e42
NN
32935.PHONY: maybe-clean-target-newlib clean-target-newlib
32936maybe-clean-target-newlib:
60975492
PB
32937@if target-newlib
32938maybe-clean-target-newlib: clean-target-newlib
7e2dbcef 32939
05750653 32940clean-target-newlib:
f41d6665 32941 @: $(MAKE); $(unstage)
295f4e42
NN
32942 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
32943 r=`${PWD_COMMAND}`; export r; \
8c90b13a 32944 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 32945 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
32946 echo "Doing clean in $(TARGET_SUBDIR)/newlib" ; \
32947 for flag in $(EXTRA_TARGET_FLAGS); do \
32948 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32949 done; \
32950 (cd $(TARGET_SUBDIR)/newlib && \
32951 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32952 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32953 "RANLIB=$${RANLIB}" \
32954 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 32955 clean) \
295f4e42 32956 || exit 1
4977bab6 32957
60975492 32958@endif target-newlib
4977bab6 32959
295f4e42
NN
32960.PHONY: maybe-distclean-target-newlib distclean-target-newlib
32961maybe-distclean-target-newlib:
60975492
PB
32962@if target-newlib
32963maybe-distclean-target-newlib: distclean-target-newlib
295f4e42 32964
05750653 32965distclean-target-newlib:
f41d6665 32966 @: $(MAKE); $(unstage)
295f4e42 32967 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
8c90b13a
L
32968 r=`${PWD_COMMAND}`; export r; \
32969 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 32970 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
32971 echo "Doing distclean in $(TARGET_SUBDIR)/newlib" ; \
32972 for flag in $(EXTRA_TARGET_FLAGS); do \
32973 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32974 done; \
32975 (cd $(TARGET_SUBDIR)/newlib && \
32976 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32977 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32978 "RANLIB=$${RANLIB}" \
32979 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 32980 distclean) \
4977bab6
ZW
32981 || exit 1
32982
60975492 32983@endif target-newlib
4977bab6 32984
295f4e42
NN
32985.PHONY: maybe-maintainer-clean-target-newlib maintainer-clean-target-newlib
32986maybe-maintainer-clean-target-newlib:
60975492
PB
32987@if target-newlib
32988maybe-maintainer-clean-target-newlib: maintainer-clean-target-newlib
4977bab6 32989
05750653 32990maintainer-clean-target-newlib:
f41d6665 32991 @: $(MAKE); $(unstage)
295f4e42
NN
32992 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
32993 r=`${PWD_COMMAND}`; export r; \
8c90b13a 32994 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 32995 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
32996 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/newlib" ; \
32997 for flag in $(EXTRA_TARGET_FLAGS); do \
32998 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32999 done; \
33000 (cd $(TARGET_SUBDIR)/newlib && \
33001 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33002 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33003 "RANLIB=$${RANLIB}" \
33004 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 33005 maintainer-clean) \
295f4e42 33006 || exit 1
4977bab6 33007
60975492 33008@endif target-newlib
4977bab6 33009
7e2dbcef 33010
6de9cd9a 33011
25b42232 33012
6de9cd9a 33013
25b42232
PB
33014.PHONY: configure-target-libgfortran maybe-configure-target-libgfortran
33015maybe-configure-target-libgfortran:
3ff3adad
PB
33016@if gcc-bootstrap
33017configure-target-libgfortran: stage_current
33018@endif gcc-bootstrap
25b42232
PB
33019@if target-libgfortran
33020maybe-configure-target-libgfortran: configure-target-libgfortran
cc11cc9b 33021configure-target-libgfortran:
f41d6665
DJ
33022 @: $(MAKE); $(unstage)
33023 @r=`${PWD_COMMAND}`; export r; \
33024 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33025 echo "Checking multilib configuration for libgfortran..."; \
33026 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgfortran ; \
33027 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgfortran/multilib.tmp 2> /dev/null ; \
33028 if test -r $(TARGET_SUBDIR)/libgfortran/multilib.out; then \
33029 if cmp -s $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; then \
33030 rm -f $(TARGET_SUBDIR)/libgfortran/multilib.tmp; \
33031 else \
33032 rm -f $(TARGET_SUBDIR)/libgfortran/Makefile; \
33033 mv $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; \
33034 fi; \
33035 else \
33036 mv $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; \
cc11cc9b
PB
33037 fi; \
33038 test ! -f $(TARGET_SUBDIR)/libgfortran/Makefile || exit 0; \
6de9cd9a 33039 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgfortran ; \
4fc4dd12 33040 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
33041 echo Configuring in $(TARGET_SUBDIR)/libgfortran; \
33042 cd "$(TARGET_SUBDIR)/libgfortran" || exit 1; \
33043 case $(srcdir) in \
215c351a
PB
33044 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33045 *) topdir=`echo $(TARGET_SUBDIR)/libgfortran/ | \
33046 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6de9cd9a 33047 esac; \
215c351a
PB
33048 srcdiroption="--srcdir=$${topdir}/libgfortran"; \
33049 libsrcdir="$$s/libgfortran"; \
6de9cd9a
DN
33050 rm -f no-such-file || : ; \
33051 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 33052 $(TARGET_CONFIGARGS) $${srcdiroption} \
6de9cd9a 33053 || exit 1
60975492 33054@endif target-libgfortran
6de9cd9a 33055
25b42232
PB
33056
33057
ce406537
PB
33058
33059
6de9cd9a
DN
33060.PHONY: all-target-libgfortran maybe-all-target-libgfortran
33061maybe-all-target-libgfortran:
3ff3adad
PB
33062@if gcc-bootstrap
33063all-target-libgfortran: stage_current
33064@endif gcc-bootstrap
60975492 33065@if target-libgfortran
7c27e184 33066TARGET-target-libgfortran=all
60975492 33067maybe-all-target-libgfortran: all-target-libgfortran
6de9cd9a 33068all-target-libgfortran: configure-target-libgfortran
f41d6665 33069 @: $(MAKE); $(unstage)
6de9cd9a
DN
33070 @r=`${PWD_COMMAND}`; export r; \
33071 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33072 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a 33073 (cd $(TARGET_SUBDIR)/libgfortran && \
25b42232 33074 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libgfortran))
60975492 33075@endif target-libgfortran
6de9cd9a 33076
25b42232
PB
33077
33078
ce406537
PB
33079
33080
6de9cd9a
DN
33081.PHONY: check-target-libgfortran maybe-check-target-libgfortran
33082maybe-check-target-libgfortran:
60975492
PB
33083@if target-libgfortran
33084maybe-check-target-libgfortran: check-target-libgfortran
6de9cd9a
DN
33085
33086check-target-libgfortran:
f41d6665 33087 @: $(MAKE); $(unstage)
6de9cd9a
DN
33088 @r=`${PWD_COMMAND}`; export r; \
33089 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33090 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a 33091 (cd $(TARGET_SUBDIR)/libgfortran && \
a52a0a7f 33092 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
6de9cd9a 33093
60975492 33094@endif target-libgfortran
6de9cd9a
DN
33095
33096.PHONY: install-target-libgfortran maybe-install-target-libgfortran
33097maybe-install-target-libgfortran:
60975492
PB
33098@if target-libgfortran
33099maybe-install-target-libgfortran: install-target-libgfortran
6de9cd9a
DN
33100
33101install-target-libgfortran: installdirs
f41d6665 33102 @: $(MAKE); $(unstage)
6de9cd9a
DN
33103 @r=`${PWD_COMMAND}`; export r; \
33104 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33105 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a 33106 (cd $(TARGET_SUBDIR)/libgfortran && \
a52a0a7f 33107 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6de9cd9a 33108
60975492 33109@endif target-libgfortran
6de9cd9a
DN
33110
33111# Other targets (info, dvi, etc.)
33112
33113.PHONY: maybe-info-target-libgfortran info-target-libgfortran
33114maybe-info-target-libgfortran:
60975492
PB
33115@if target-libgfortran
33116maybe-info-target-libgfortran: info-target-libgfortran
6de9cd9a
DN
33117
33118info-target-libgfortran: \
05750653 33119 configure-target-libgfortran
f41d6665 33120 @: $(MAKE); $(unstage)
6de9cd9a
DN
33121 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
33122 r=`${PWD_COMMAND}`; export r; \
33123 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33124 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
33125 echo "Doing info in $(TARGET_SUBDIR)/libgfortran" ; \
33126 for flag in $(EXTRA_TARGET_FLAGS); do \
33127 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33128 done; \
33129 (cd $(TARGET_SUBDIR)/libgfortran && \
33130 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33131 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33132 "RANLIB=$${RANLIB}" \
33133 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 33134 info) \
6de9cd9a
DN
33135 || exit 1
33136
60975492 33137@endif target-libgfortran
6de9cd9a
DN
33138
33139.PHONY: maybe-dvi-target-libgfortran dvi-target-libgfortran
33140maybe-dvi-target-libgfortran:
60975492
PB
33141@if target-libgfortran
33142maybe-dvi-target-libgfortran: dvi-target-libgfortran
6de9cd9a
DN
33143
33144dvi-target-libgfortran: \
05750653 33145 configure-target-libgfortran
f41d6665 33146 @: $(MAKE); $(unstage)
6de9cd9a
DN
33147 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
33148 r=`${PWD_COMMAND}`; export r; \
33149 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33150 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
33151 echo "Doing dvi in $(TARGET_SUBDIR)/libgfortran" ; \
33152 for flag in $(EXTRA_TARGET_FLAGS); do \
33153 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33154 done; \
33155 (cd $(TARGET_SUBDIR)/libgfortran && \
33156 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33157 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33158 "RANLIB=$${RANLIB}" \
33159 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 33160 dvi) \
6de9cd9a
DN
33161 || exit 1
33162
60975492 33163@endif target-libgfortran
6de9cd9a 33164
f87a2b2e
MS
33165.PHONY: maybe-html-target-libgfortran html-target-libgfortran
33166maybe-html-target-libgfortran:
33167@if target-libgfortran
33168maybe-html-target-libgfortran: html-target-libgfortran
33169
33170html-target-libgfortran: \
05750653 33171 configure-target-libgfortran
f41d6665 33172 @: $(MAKE); $(unstage)
f87a2b2e
MS
33173 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
33174 r=`${PWD_COMMAND}`; export r; \
33175 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
33176 $(NORMAL_TARGET_EXPORTS) \
33177 echo "Doing html in $(TARGET_SUBDIR)/libgfortran" ; \
33178 for flag in $(EXTRA_TARGET_FLAGS); do \
33179 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33180 done; \
33181 (cd $(TARGET_SUBDIR)/libgfortran && \
33182 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33183 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33184 "RANLIB=$${RANLIB}" \
33185 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
33186 html) \
33187 || exit 1
33188
33189@endif target-libgfortran
33190
6de9cd9a
DN
33191.PHONY: maybe-TAGS-target-libgfortran TAGS-target-libgfortran
33192maybe-TAGS-target-libgfortran:
60975492
PB
33193@if target-libgfortran
33194maybe-TAGS-target-libgfortran: TAGS-target-libgfortran
6de9cd9a
DN
33195
33196TAGS-target-libgfortran: \
05750653 33197 configure-target-libgfortran
f41d6665 33198 @: $(MAKE); $(unstage)
6de9cd9a
DN
33199 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
33200 r=`${PWD_COMMAND}`; export r; \
33201 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33202 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
33203 echo "Doing TAGS in $(TARGET_SUBDIR)/libgfortran" ; \
33204 for flag in $(EXTRA_TARGET_FLAGS); do \
33205 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33206 done; \
33207 (cd $(TARGET_SUBDIR)/libgfortran && \
33208 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33209 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33210 "RANLIB=$${RANLIB}" \
33211 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 33212 TAGS) \
6de9cd9a
DN
33213 || exit 1
33214
60975492 33215@endif target-libgfortran
6de9cd9a
DN
33216
33217.PHONY: maybe-install-info-target-libgfortran install-info-target-libgfortran
33218maybe-install-info-target-libgfortran:
60975492
PB
33219@if target-libgfortran
33220maybe-install-info-target-libgfortran: install-info-target-libgfortran
6de9cd9a
DN
33221
33222install-info-target-libgfortran: \
33223 configure-target-libgfortran \
05750653 33224 info-target-libgfortran
f41d6665 33225 @: $(MAKE); $(unstage)
6de9cd9a
DN
33226 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
33227 r=`${PWD_COMMAND}`; export r; \
33228 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33229 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
33230 echo "Doing install-info in $(TARGET_SUBDIR)/libgfortran" ; \
33231 for flag in $(EXTRA_TARGET_FLAGS); do \
33232 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33233 done; \
33234 (cd $(TARGET_SUBDIR)/libgfortran && \
33235 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33236 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33237 "RANLIB=$${RANLIB}" \
33238 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 33239 install-info) \
6de9cd9a
DN
33240 || exit 1
33241
60975492 33242@endif target-libgfortran
6de9cd9a 33243
65d6e994
CD
33244.PHONY: maybe-install-html-target-libgfortran install-html-target-libgfortran
33245maybe-install-html-target-libgfortran:
33246@if target-libgfortran
33247maybe-install-html-target-libgfortran: install-html-target-libgfortran
33248
33249install-html-target-libgfortran: \
33250 configure-target-libgfortran \
33251 html-target-libgfortran
33252 @: $(MAKE); $(unstage)
33253 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
33254 r=`${PWD_COMMAND}`; export r; \
33255 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33256 $(NORMAL_TARGET_EXPORTS) \
33257 echo "Doing install-html in $(TARGET_SUBDIR)/libgfortran" ; \
33258 for flag in $(EXTRA_TARGET_FLAGS); do \
33259 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33260 done; \
33261 (cd $(TARGET_SUBDIR)/libgfortran && \
33262 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33263 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33264 "RANLIB=$${RANLIB}" \
33265 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
33266 install-html) \
33267 || exit 1
33268
33269@endif target-libgfortran
33270
6de9cd9a
DN
33271.PHONY: maybe-installcheck-target-libgfortran installcheck-target-libgfortran
33272maybe-installcheck-target-libgfortran:
60975492
PB
33273@if target-libgfortran
33274maybe-installcheck-target-libgfortran: installcheck-target-libgfortran
6de9cd9a
DN
33275
33276installcheck-target-libgfortran: \
05750653 33277 configure-target-libgfortran
f41d6665 33278 @: $(MAKE); $(unstage)
6de9cd9a
DN
33279 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
33280 r=`${PWD_COMMAND}`; export r; \
33281 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33282 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
33283 echo "Doing installcheck in $(TARGET_SUBDIR)/libgfortran" ; \
33284 for flag in $(EXTRA_TARGET_FLAGS); do \
33285 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33286 done; \
33287 (cd $(TARGET_SUBDIR)/libgfortran && \
33288 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33289 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33290 "RANLIB=$${RANLIB}" \
33291 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 33292 installcheck) \
6de9cd9a
DN
33293 || exit 1
33294
60975492 33295@endif target-libgfortran
6de9cd9a
DN
33296
33297.PHONY: maybe-mostlyclean-target-libgfortran mostlyclean-target-libgfortran
33298maybe-mostlyclean-target-libgfortran:
60975492
PB
33299@if target-libgfortran
33300maybe-mostlyclean-target-libgfortran: mostlyclean-target-libgfortran
6de9cd9a 33301
05750653 33302mostlyclean-target-libgfortran:
f41d6665 33303 @: $(MAKE); $(unstage)
6de9cd9a
DN
33304 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
33305 r=`${PWD_COMMAND}`; export r; \
33306 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33307 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
33308 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgfortran" ; \
33309 for flag in $(EXTRA_TARGET_FLAGS); do \
33310 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33311 done; \
33312 (cd $(TARGET_SUBDIR)/libgfortran && \
33313 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33314 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33315 "RANLIB=$${RANLIB}" \
33316 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 33317 mostlyclean) \
6de9cd9a
DN
33318 || exit 1
33319
60975492 33320@endif target-libgfortran
6de9cd9a
DN
33321
33322.PHONY: maybe-clean-target-libgfortran clean-target-libgfortran
33323maybe-clean-target-libgfortran:
60975492
PB
33324@if target-libgfortran
33325maybe-clean-target-libgfortran: clean-target-libgfortran
6de9cd9a 33326
05750653 33327clean-target-libgfortran:
f41d6665 33328 @: $(MAKE); $(unstage)
6de9cd9a
DN
33329 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
33330 r=`${PWD_COMMAND}`; export r; \
33331 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33332 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
33333 echo "Doing clean in $(TARGET_SUBDIR)/libgfortran" ; \
33334 for flag in $(EXTRA_TARGET_FLAGS); do \
33335 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33336 done; \
33337 (cd $(TARGET_SUBDIR)/libgfortran && \
33338 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33339 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33340 "RANLIB=$${RANLIB}" \
33341 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 33342 clean) \
6de9cd9a
DN
33343 || exit 1
33344
60975492 33345@endif target-libgfortran
6de9cd9a
DN
33346
33347.PHONY: maybe-distclean-target-libgfortran distclean-target-libgfortran
33348maybe-distclean-target-libgfortran:
60975492
PB
33349@if target-libgfortran
33350maybe-distclean-target-libgfortran: distclean-target-libgfortran
6de9cd9a 33351
05750653 33352distclean-target-libgfortran:
f41d6665 33353 @: $(MAKE); $(unstage)
6de9cd9a
DN
33354 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
33355 r=`${PWD_COMMAND}`; export r; \
33356 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33357 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
33358 echo "Doing distclean in $(TARGET_SUBDIR)/libgfortran" ; \
33359 for flag in $(EXTRA_TARGET_FLAGS); do \
33360 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33361 done; \
33362 (cd $(TARGET_SUBDIR)/libgfortran && \
33363 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33364 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33365 "RANLIB=$${RANLIB}" \
33366 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 33367 distclean) \
6de9cd9a
DN
33368 || exit 1
33369
60975492 33370@endif target-libgfortran
6de9cd9a
DN
33371
33372.PHONY: maybe-maintainer-clean-target-libgfortran maintainer-clean-target-libgfortran
33373maybe-maintainer-clean-target-libgfortran:
60975492
PB
33374@if target-libgfortran
33375maybe-maintainer-clean-target-libgfortran: maintainer-clean-target-libgfortran
6de9cd9a 33376
05750653 33377maintainer-clean-target-libgfortran:
f41d6665 33378 @: $(MAKE); $(unstage)
6de9cd9a
DN
33379 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
33380 r=`${PWD_COMMAND}`; export r; \
33381 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33382 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
33383 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgfortran" ; \
33384 for flag in $(EXTRA_TARGET_FLAGS); do \
33385 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33386 done; \
33387 (cd $(TARGET_SUBDIR)/libgfortran && \
33388 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33389 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33390 "RANLIB=$${RANLIB}" \
33391 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 33392 maintainer-clean) \
6de9cd9a
DN
33393 || exit 1
33394
60975492 33395@endif target-libgfortran
6de9cd9a
DN
33396
33397
4977bab6 33398
25b42232 33399
4977bab6 33400
25b42232
PB
33401.PHONY: configure-target-libobjc maybe-configure-target-libobjc
33402maybe-configure-target-libobjc:
3ff3adad
PB
33403@if gcc-bootstrap
33404configure-target-libobjc: stage_current
33405@endif gcc-bootstrap
25b42232
PB
33406@if target-libobjc
33407maybe-configure-target-libobjc: configure-target-libobjc
cc11cc9b 33408configure-target-libobjc:
f41d6665
DJ
33409 @: $(MAKE); $(unstage)
33410 @r=`${PWD_COMMAND}`; export r; \
33411 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33412 echo "Checking multilib configuration for libobjc..."; \
33413 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libobjc ; \
33414 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libobjc/multilib.tmp 2> /dev/null ; \
33415 if test -r $(TARGET_SUBDIR)/libobjc/multilib.out; then \
33416 if cmp -s $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; then \
33417 rm -f $(TARGET_SUBDIR)/libobjc/multilib.tmp; \
33418 else \
33419 rm -f $(TARGET_SUBDIR)/libobjc/Makefile; \
33420 mv $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; \
33421 fi; \
33422 else \
33423 mv $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; \
cc11cc9b
PB
33424 fi; \
33425 test ! -f $(TARGET_SUBDIR)/libobjc/Makefile || exit 0; \
295f4e42 33426 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libobjc ; \
4fc4dd12 33427 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
33428 echo Configuring in $(TARGET_SUBDIR)/libobjc; \
33429 cd "$(TARGET_SUBDIR)/libobjc" || exit 1; \
4977bab6 33430 case $(srcdir) in \
215c351a
PB
33431 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33432 *) topdir=`echo $(TARGET_SUBDIR)/libobjc/ | \
33433 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 33434 esac; \
215c351a
PB
33435 srcdiroption="--srcdir=$${topdir}/libobjc"; \
33436 libsrcdir="$$s/libobjc"; \
295f4e42
NN
33437 rm -f no-such-file || : ; \
33438 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 33439 $(TARGET_CONFIGARGS) $${srcdiroption} \
4977bab6 33440 || exit 1
60975492 33441@endif target-libobjc
4977bab6 33442
25b42232
PB
33443
33444
ce406537
PB
33445
33446
295f4e42
NN
33447.PHONY: all-target-libobjc maybe-all-target-libobjc
33448maybe-all-target-libobjc:
3ff3adad
PB
33449@if gcc-bootstrap
33450all-target-libobjc: stage_current
33451@endif gcc-bootstrap
60975492 33452@if target-libobjc
7c27e184 33453TARGET-target-libobjc=all
60975492 33454maybe-all-target-libobjc: all-target-libobjc
295f4e42 33455all-target-libobjc: configure-target-libobjc
f41d6665 33456 @: $(MAKE); $(unstage)
8c90b13a
L
33457 @r=`${PWD_COMMAND}`; export r; \
33458 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33459 $(NORMAL_TARGET_EXPORTS) \
295f4e42 33460 (cd $(TARGET_SUBDIR)/libobjc && \
25b42232 33461 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libobjc))
60975492 33462@endif target-libobjc
4977bab6 33463
25b42232
PB
33464
33465
ce406537
PB
33466
33467
295f4e42
NN
33468.PHONY: check-target-libobjc maybe-check-target-libobjc
33469maybe-check-target-libobjc:
60975492
PB
33470@if target-libobjc
33471maybe-check-target-libobjc: check-target-libobjc
4977bab6 33472
295f4e42 33473check-target-libobjc:
f41d6665 33474 @: $(MAKE); $(unstage)
8c90b13a
L
33475 @r=`${PWD_COMMAND}`; export r; \
33476 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33477 $(NORMAL_TARGET_EXPORTS) \
295f4e42 33478 (cd $(TARGET_SUBDIR)/libobjc && \
a52a0a7f 33479 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4977bab6 33480
60975492 33481@endif target-libobjc
4977bab6 33482
295f4e42
NN
33483.PHONY: install-target-libobjc maybe-install-target-libobjc
33484maybe-install-target-libobjc:
60975492
PB
33485@if target-libobjc
33486maybe-install-target-libobjc: install-target-libobjc
4977bab6 33487
295f4e42 33488install-target-libobjc: installdirs
f41d6665 33489 @: $(MAKE); $(unstage)
8c90b13a
L
33490 @r=`${PWD_COMMAND}`; export r; \
33491 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33492 $(NORMAL_TARGET_EXPORTS) \
295f4e42 33493 (cd $(TARGET_SUBDIR)/libobjc && \
a52a0a7f 33494 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4977bab6 33495
60975492 33496@endif target-libobjc
4977bab6 33497
295f4e42
NN
33498# Other targets (info, dvi, etc.)
33499
33500.PHONY: maybe-info-target-libobjc info-target-libobjc
33501maybe-info-target-libobjc:
60975492
PB
33502@if target-libobjc
33503maybe-info-target-libobjc: info-target-libobjc
295f4e42
NN
33504
33505info-target-libobjc: \
05750653 33506 configure-target-libobjc
f41d6665 33507 @: $(MAKE); $(unstage)
295f4e42
NN
33508 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
33509 r=`${PWD_COMMAND}`; export r; \
8c90b13a 33510 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33511 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
33512 echo "Doing info in $(TARGET_SUBDIR)/libobjc" ; \
33513 for flag in $(EXTRA_TARGET_FLAGS); do \
33514 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33515 done; \
33516 (cd $(TARGET_SUBDIR)/libobjc && \
33517 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33518 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33519 "RANLIB=$${RANLIB}" \
33520 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 33521 info) \
295f4e42 33522 || exit 1
4977bab6 33523
60975492 33524@endif target-libobjc
4977bab6 33525
295f4e42
NN
33526.PHONY: maybe-dvi-target-libobjc dvi-target-libobjc
33527maybe-dvi-target-libobjc:
60975492
PB
33528@if target-libobjc
33529maybe-dvi-target-libobjc: dvi-target-libobjc
7e2dbcef 33530
295f4e42 33531dvi-target-libobjc: \
05750653 33532 configure-target-libobjc
f41d6665 33533 @: $(MAKE); $(unstage)
295f4e42
NN
33534 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
33535 r=`${PWD_COMMAND}`; export r; \
8c90b13a 33536 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33537 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
33538 echo "Doing dvi in $(TARGET_SUBDIR)/libobjc" ; \
33539 for flag in $(EXTRA_TARGET_FLAGS); do \
33540 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33541 done; \
33542 (cd $(TARGET_SUBDIR)/libobjc && \
33543 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33544 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33545 "RANLIB=$${RANLIB}" \
33546 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 33547 dvi) \
295f4e42 33548 || exit 1
4977bab6 33549
60975492 33550@endif target-libobjc
4977bab6 33551
f87a2b2e
MS
33552.PHONY: maybe-html-target-libobjc html-target-libobjc
33553maybe-html-target-libobjc:
33554@if target-libobjc
33555maybe-html-target-libobjc: html-target-libobjc
33556
33557html-target-libobjc: \
05750653 33558 configure-target-libobjc
f41d6665 33559 @: $(MAKE); $(unstage)
f87a2b2e
MS
33560 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
33561 r=`${PWD_COMMAND}`; export r; \
33562 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
33563 $(NORMAL_TARGET_EXPORTS) \
33564 echo "Doing html in $(TARGET_SUBDIR)/libobjc" ; \
33565 for flag in $(EXTRA_TARGET_FLAGS); do \
33566 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33567 done; \
33568 (cd $(TARGET_SUBDIR)/libobjc && \
33569 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33570 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33571 "RANLIB=$${RANLIB}" \
33572 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
33573 html) \
33574 || exit 1
33575
33576@endif target-libobjc
33577
295f4e42
NN
33578.PHONY: maybe-TAGS-target-libobjc TAGS-target-libobjc
33579maybe-TAGS-target-libobjc:
60975492
PB
33580@if target-libobjc
33581maybe-TAGS-target-libobjc: TAGS-target-libobjc
295f4e42
NN
33582
33583TAGS-target-libobjc: \
05750653 33584 configure-target-libobjc
f41d6665 33585 @: $(MAKE); $(unstage)
295f4e42 33586 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
8c90b13a
L
33587 r=`${PWD_COMMAND}`; export r; \
33588 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33589 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
33590 echo "Doing TAGS in $(TARGET_SUBDIR)/libobjc" ; \
33591 for flag in $(EXTRA_TARGET_FLAGS); do \
33592 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33593 done; \
33594 (cd $(TARGET_SUBDIR)/libobjc && \
33595 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33596 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33597 "RANLIB=$${RANLIB}" \
33598 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 33599 TAGS) \
4977bab6
ZW
33600 || exit 1
33601
60975492 33602@endif target-libobjc
295f4e42
NN
33603
33604.PHONY: maybe-install-info-target-libobjc install-info-target-libobjc
33605maybe-install-info-target-libobjc:
60975492
PB
33606@if target-libobjc
33607maybe-install-info-target-libobjc: install-info-target-libobjc
295f4e42
NN
33608
33609install-info-target-libobjc: \
33610 configure-target-libobjc \
05750653 33611 info-target-libobjc
f41d6665 33612 @: $(MAKE); $(unstage)
295f4e42
NN
33613 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
33614 r=`${PWD_COMMAND}`; export r; \
8c90b13a 33615 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33616 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
33617 echo "Doing install-info in $(TARGET_SUBDIR)/libobjc" ; \
33618 for flag in $(EXTRA_TARGET_FLAGS); do \
33619 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33620 done; \
33621 (cd $(TARGET_SUBDIR)/libobjc && \
33622 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33623 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33624 "RANLIB=$${RANLIB}" \
33625 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 33626 install-info) \
295f4e42 33627 || exit 1
4977bab6 33628
60975492 33629@endif target-libobjc
4977bab6 33630
65d6e994
CD
33631.PHONY: maybe-install-html-target-libobjc install-html-target-libobjc
33632maybe-install-html-target-libobjc:
33633@if target-libobjc
33634maybe-install-html-target-libobjc: install-html-target-libobjc
33635
33636install-html-target-libobjc: \
33637 configure-target-libobjc \
33638 html-target-libobjc
33639 @: $(MAKE); $(unstage)
33640 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
33641 r=`${PWD_COMMAND}`; export r; \
33642 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33643 $(NORMAL_TARGET_EXPORTS) \
33644 echo "Doing install-html in $(TARGET_SUBDIR)/libobjc" ; \
33645 for flag in $(EXTRA_TARGET_FLAGS); do \
33646 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33647 done; \
33648 (cd $(TARGET_SUBDIR)/libobjc && \
33649 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33650 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33651 "RANLIB=$${RANLIB}" \
33652 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
33653 install-html) \
33654 || exit 1
33655
33656@endif target-libobjc
33657
295f4e42
NN
33658.PHONY: maybe-installcheck-target-libobjc installcheck-target-libobjc
33659maybe-installcheck-target-libobjc:
60975492
PB
33660@if target-libobjc
33661maybe-installcheck-target-libobjc: installcheck-target-libobjc
295f4e42
NN
33662
33663installcheck-target-libobjc: \
05750653 33664 configure-target-libobjc
f41d6665 33665 @: $(MAKE); $(unstage)
295f4e42
NN
33666 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
33667 r=`${PWD_COMMAND}`; export r; \
8c90b13a 33668 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33669 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
33670 echo "Doing installcheck in $(TARGET_SUBDIR)/libobjc" ; \
33671 for flag in $(EXTRA_TARGET_FLAGS); do \
33672 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33673 done; \
33674 (cd $(TARGET_SUBDIR)/libobjc && \
33675 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33676 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33677 "RANLIB=$${RANLIB}" \
33678 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 33679 installcheck) \
295f4e42 33680 || exit 1
4977bab6 33681
60975492 33682@endif target-libobjc
4977bab6 33683
295f4e42
NN
33684.PHONY: maybe-mostlyclean-target-libobjc mostlyclean-target-libobjc
33685maybe-mostlyclean-target-libobjc:
60975492
PB
33686@if target-libobjc
33687maybe-mostlyclean-target-libobjc: mostlyclean-target-libobjc
7e2dbcef 33688
05750653 33689mostlyclean-target-libobjc:
f41d6665 33690 @: $(MAKE); $(unstage)
295f4e42
NN
33691 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
33692 r=`${PWD_COMMAND}`; export r; \
8c90b13a 33693 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33694 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
33695 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libobjc" ; \
33696 for flag in $(EXTRA_TARGET_FLAGS); do \
33697 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33698 done; \
33699 (cd $(TARGET_SUBDIR)/libobjc && \
33700 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33701 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33702 "RANLIB=$${RANLIB}" \
33703 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 33704 mostlyclean) \
295f4e42 33705 || exit 1
4977bab6 33706
60975492 33707@endif target-libobjc
4977bab6 33708
295f4e42
NN
33709.PHONY: maybe-clean-target-libobjc clean-target-libobjc
33710maybe-clean-target-libobjc:
60975492
PB
33711@if target-libobjc
33712maybe-clean-target-libobjc: clean-target-libobjc
295f4e42 33713
05750653 33714clean-target-libobjc:
f41d6665 33715 @: $(MAKE); $(unstage)
295f4e42 33716 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
8c90b13a
L
33717 r=`${PWD_COMMAND}`; export r; \
33718 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33719 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
33720 echo "Doing clean in $(TARGET_SUBDIR)/libobjc" ; \
33721 for flag in $(EXTRA_TARGET_FLAGS); do \
33722 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33723 done; \
33724 (cd $(TARGET_SUBDIR)/libobjc && \
33725 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33726 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33727 "RANLIB=$${RANLIB}" \
33728 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 33729 clean) \
4977bab6
ZW
33730 || exit 1
33731
60975492 33732@endif target-libobjc
4977bab6 33733
295f4e42
NN
33734.PHONY: maybe-distclean-target-libobjc distclean-target-libobjc
33735maybe-distclean-target-libobjc:
60975492
PB
33736@if target-libobjc
33737maybe-distclean-target-libobjc: distclean-target-libobjc
4977bab6 33738
05750653 33739distclean-target-libobjc:
f41d6665 33740 @: $(MAKE); $(unstage)
295f4e42
NN
33741 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
33742 r=`${PWD_COMMAND}`; export r; \
8c90b13a 33743 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33744 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
33745 echo "Doing distclean in $(TARGET_SUBDIR)/libobjc" ; \
33746 for flag in $(EXTRA_TARGET_FLAGS); do \
33747 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33748 done; \
33749 (cd $(TARGET_SUBDIR)/libobjc && \
33750 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33751 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33752 "RANLIB=$${RANLIB}" \
33753 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 33754 distclean) \
295f4e42 33755 || exit 1
4977bab6 33756
60975492 33757@endif target-libobjc
4977bab6 33758
295f4e42
NN
33759.PHONY: maybe-maintainer-clean-target-libobjc maintainer-clean-target-libobjc
33760maybe-maintainer-clean-target-libobjc:
60975492
PB
33761@if target-libobjc
33762maybe-maintainer-clean-target-libobjc: maintainer-clean-target-libobjc
7e2dbcef 33763
05750653 33764maintainer-clean-target-libobjc:
f41d6665 33765 @: $(MAKE); $(unstage)
295f4e42
NN
33766 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
33767 r=`${PWD_COMMAND}`; export r; \
8c90b13a 33768 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33769 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
33770 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libobjc" ; \
33771 for flag in $(EXTRA_TARGET_FLAGS); do \
33772 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33773 done; \
33774 (cd $(TARGET_SUBDIR)/libobjc && \
33775 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33776 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33777 "RANLIB=$${RANLIB}" \
33778 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 33779 maintainer-clean) \
295f4e42 33780 || exit 1
4977bab6 33781
60975492 33782@endif target-libobjc
4977bab6 33783
295f4e42 33784
295f4e42 33785
25b42232 33786
295f4e42 33787
25b42232
PB
33788.PHONY: configure-target-libtermcap maybe-configure-target-libtermcap
33789maybe-configure-target-libtermcap:
3ff3adad
PB
33790@if gcc-bootstrap
33791configure-target-libtermcap: stage_current
33792@endif gcc-bootstrap
25b42232
PB
33793@if target-libtermcap
33794maybe-configure-target-libtermcap: configure-target-libtermcap
cc11cc9b 33795configure-target-libtermcap:
f41d6665
DJ
33796 @: $(MAKE); $(unstage)
33797 @r=`${PWD_COMMAND}`; export r; \
33798 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33799 echo "Checking multilib configuration for libtermcap..."; \
33800 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libtermcap ; \
33801 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libtermcap/multilib.tmp 2> /dev/null ; \
33802 if test -r $(TARGET_SUBDIR)/libtermcap/multilib.out; then \
33803 if cmp -s $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; then \
33804 rm -f $(TARGET_SUBDIR)/libtermcap/multilib.tmp; \
33805 else \
33806 rm -f $(TARGET_SUBDIR)/libtermcap/Makefile; \
33807 mv $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; \
33808 fi; \
33809 else \
33810 mv $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; \
cc11cc9b
PB
33811 fi; \
33812 test ! -f $(TARGET_SUBDIR)/libtermcap/Makefile || exit 0; \
295f4e42 33813 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libtermcap ; \
4fc4dd12 33814 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
33815 echo Configuring in $(TARGET_SUBDIR)/libtermcap; \
33816 cd "$(TARGET_SUBDIR)/libtermcap" || exit 1; \
4977bab6 33817 case $(srcdir) in \
215c351a
PB
33818 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33819 *) topdir=`echo $(TARGET_SUBDIR)/libtermcap/ | \
33820 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 33821 esac; \
215c351a
PB
33822 srcdiroption="--srcdir=$${topdir}/libtermcap"; \
33823 libsrcdir="$$s/libtermcap"; \
295f4e42
NN
33824 rm -f no-such-file || : ; \
33825 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 33826 $(TARGET_CONFIGARGS) $${srcdiroption} \
4977bab6 33827 || exit 1
60975492 33828@endif target-libtermcap
4977bab6 33829
25b42232
PB
33830
33831
ce406537
PB
33832
33833
295f4e42
NN
33834.PHONY: all-target-libtermcap maybe-all-target-libtermcap
33835maybe-all-target-libtermcap:
3ff3adad
PB
33836@if gcc-bootstrap
33837all-target-libtermcap: stage_current
33838@endif gcc-bootstrap
60975492 33839@if target-libtermcap
7c27e184 33840TARGET-target-libtermcap=all
60975492 33841maybe-all-target-libtermcap: all-target-libtermcap
295f4e42 33842all-target-libtermcap: configure-target-libtermcap
f41d6665 33843 @: $(MAKE); $(unstage)
8c90b13a
L
33844 @r=`${PWD_COMMAND}`; export r; \
33845 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33846 $(NORMAL_TARGET_EXPORTS) \
295f4e42 33847 (cd $(TARGET_SUBDIR)/libtermcap && \
25b42232 33848 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libtermcap))
60975492 33849@endif target-libtermcap
4977bab6 33850
25b42232
PB
33851
33852
ce406537
PB
33853
33854
295f4e42
NN
33855.PHONY: check-target-libtermcap maybe-check-target-libtermcap
33856maybe-check-target-libtermcap:
60975492
PB
33857@if target-libtermcap
33858maybe-check-target-libtermcap: check-target-libtermcap
4977bab6 33859
295f4e42
NN
33860# Dummy target for uncheckable module.
33861check-target-libtermcap:
33862
60975492 33863@endif target-libtermcap
295f4e42
NN
33864
33865.PHONY: install-target-libtermcap maybe-install-target-libtermcap
33866maybe-install-target-libtermcap:
60975492
PB
33867@if target-libtermcap
33868maybe-install-target-libtermcap: install-target-libtermcap
295f4e42
NN
33869
33870install-target-libtermcap: installdirs
f41d6665 33871 @: $(MAKE); $(unstage)
8c90b13a
L
33872 @r=`${PWD_COMMAND}`; export r; \
33873 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33874 $(NORMAL_TARGET_EXPORTS) \
295f4e42 33875 (cd $(TARGET_SUBDIR)/libtermcap && \
a52a0a7f 33876 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4977bab6 33877
60975492 33878@endif target-libtermcap
4977bab6 33879
295f4e42 33880# Other targets (info, dvi, etc.)
7e2dbcef 33881
295f4e42
NN
33882.PHONY: maybe-info-target-libtermcap info-target-libtermcap
33883maybe-info-target-libtermcap:
60975492 33884@if target-libtermcap
f87a2b2e
MS
33885maybe-info-target-libtermcap: info-target-libtermcap
33886
33887info-target-libtermcap: \
05750653 33888 configure-target-libtermcap
f41d6665 33889 @: $(MAKE); $(unstage)
f87a2b2e
MS
33890 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
33891 r=`${PWD_COMMAND}`; export r; \
33892 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
33893 $(NORMAL_TARGET_EXPORTS) \
33894 echo "Doing info in $(TARGET_SUBDIR)/libtermcap" ; \
33895 for flag in $(EXTRA_TARGET_FLAGS); do \
33896 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33897 done; \
33898 (cd $(TARGET_SUBDIR)/libtermcap && \
33899 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33900 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33901 "RANLIB=$${RANLIB}" \
33902 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
33903 info) \
33904 || exit 1
33905
33906@endif target-libtermcap
33907
33908.PHONY: maybe-dvi-target-libtermcap dvi-target-libtermcap
33909maybe-dvi-target-libtermcap:
33910@if target-libtermcap
33911maybe-dvi-target-libtermcap: dvi-target-libtermcap
295f4e42 33912
f87a2b2e 33913dvi-target-libtermcap: \
05750653 33914 configure-target-libtermcap
f41d6665 33915 @: $(MAKE); $(unstage)
295f4e42
NN
33916 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
33917 r=`${PWD_COMMAND}`; export r; \
8c90b13a 33918 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33919 $(NORMAL_TARGET_EXPORTS) \
f87a2b2e 33920 echo "Doing dvi in $(TARGET_SUBDIR)/libtermcap" ; \
295f4e42
NN
33921 for flag in $(EXTRA_TARGET_FLAGS); do \
33922 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33923 done; \
33924 (cd $(TARGET_SUBDIR)/libtermcap && \
33925 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33926 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33927 "RANLIB=$${RANLIB}" \
33928 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
f87a2b2e 33929 dvi) \
295f4e42 33930 || exit 1
4977bab6 33931
60975492 33932@endif target-libtermcap
4977bab6 33933
f87a2b2e
MS
33934.PHONY: maybe-html-target-libtermcap html-target-libtermcap
33935maybe-html-target-libtermcap:
60975492 33936@if target-libtermcap
f87a2b2e 33937maybe-html-target-libtermcap: html-target-libtermcap
295f4e42 33938
f87a2b2e 33939html-target-libtermcap: \
05750653 33940 configure-target-libtermcap
f41d6665 33941 @: $(MAKE); $(unstage)
295f4e42 33942 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
8c90b13a
L
33943 r=`${PWD_COMMAND}`; export r; \
33944 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33945 $(NORMAL_TARGET_EXPORTS) \
f87a2b2e 33946 echo "Doing html in $(TARGET_SUBDIR)/libtermcap" ; \
295f4e42
NN
33947 for flag in $(EXTRA_TARGET_FLAGS); do \
33948 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33949 done; \
33950 (cd $(TARGET_SUBDIR)/libtermcap && \
33951 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33952 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33953 "RANLIB=$${RANLIB}" \
33954 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
f87a2b2e 33955 html) \
4977bab6
ZW
33956 || exit 1
33957
60975492 33958@endif target-libtermcap
295f4e42
NN
33959
33960.PHONY: maybe-TAGS-target-libtermcap TAGS-target-libtermcap
33961maybe-TAGS-target-libtermcap:
60975492
PB
33962@if target-libtermcap
33963maybe-TAGS-target-libtermcap: TAGS-target-libtermcap
295f4e42
NN
33964
33965TAGS-target-libtermcap: \
05750653 33966 configure-target-libtermcap
f41d6665 33967 @: $(MAKE); $(unstage)
295f4e42
NN
33968 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
33969 r=`${PWD_COMMAND}`; export r; \
8c90b13a 33970 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33971 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
33972 echo "Doing TAGS in $(TARGET_SUBDIR)/libtermcap" ; \
33973 for flag in $(EXTRA_TARGET_FLAGS); do \
33974 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33975 done; \
33976 (cd $(TARGET_SUBDIR)/libtermcap && \
33977 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33978 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33979 "RANLIB=$${RANLIB}" \
33980 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 33981 TAGS) \
295f4e42 33982 || exit 1
4977bab6 33983
60975492 33984@endif target-libtermcap
4977bab6 33985
295f4e42
NN
33986.PHONY: maybe-install-info-target-libtermcap install-info-target-libtermcap
33987maybe-install-info-target-libtermcap:
60975492
PB
33988@if target-libtermcap
33989maybe-install-info-target-libtermcap: install-info-target-libtermcap
4977bab6 33990
295f4e42
NN
33991install-info-target-libtermcap: \
33992 configure-target-libtermcap \
05750653 33993 info-target-libtermcap
f41d6665 33994 @: $(MAKE); $(unstage)
295f4e42
NN
33995 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
33996 r=`${PWD_COMMAND}`; export r; \
33997 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33998 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
33999 echo "Doing install-info in $(TARGET_SUBDIR)/libtermcap" ; \
34000 for flag in $(EXTRA_TARGET_FLAGS); do \
34001 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34002 done; \
34003 (cd $(TARGET_SUBDIR)/libtermcap && \
34004 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34005 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34006 "RANLIB=$${RANLIB}" \
34007 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 34008 install-info) \
295f4e42 34009 || exit 1
4977bab6 34010
60975492 34011@endif target-libtermcap
7e2dbcef 34012
65d6e994
CD
34013.PHONY: maybe-install-html-target-libtermcap install-html-target-libtermcap
34014maybe-install-html-target-libtermcap:
34015@if target-libtermcap
34016maybe-install-html-target-libtermcap: install-html-target-libtermcap
34017
34018install-html-target-libtermcap: \
34019 configure-target-libtermcap \
34020 html-target-libtermcap
34021 @: $(MAKE); $(unstage)
34022 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
34023 r=`${PWD_COMMAND}`; export r; \
34024 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34025 $(NORMAL_TARGET_EXPORTS) \
34026 echo "Doing install-html in $(TARGET_SUBDIR)/libtermcap" ; \
34027 for flag in $(EXTRA_TARGET_FLAGS); do \
34028 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34029 done; \
34030 (cd $(TARGET_SUBDIR)/libtermcap && \
34031 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34032 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34033 "RANLIB=$${RANLIB}" \
34034 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
34035 install-html) \
34036 || exit 1
34037
34038@endif target-libtermcap
34039
295f4e42
NN
34040.PHONY: maybe-installcheck-target-libtermcap installcheck-target-libtermcap
34041maybe-installcheck-target-libtermcap:
60975492
PB
34042@if target-libtermcap
34043maybe-installcheck-target-libtermcap: installcheck-target-libtermcap
295f4e42
NN
34044
34045installcheck-target-libtermcap: \
05750653 34046 configure-target-libtermcap
f41d6665 34047 @: $(MAKE); $(unstage)
295f4e42
NN
34048 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
34049 r=`${PWD_COMMAND}`; export r; \
8c90b13a 34050 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34051 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
34052 echo "Doing installcheck in $(TARGET_SUBDIR)/libtermcap" ; \
34053 for flag in $(EXTRA_TARGET_FLAGS); do \
34054 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34055 done; \
34056 (cd $(TARGET_SUBDIR)/libtermcap && \
34057 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34058 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34059 "RANLIB=$${RANLIB}" \
34060 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 34061 installcheck) \
295f4e42 34062 || exit 1
4977bab6 34063
60975492 34064@endif target-libtermcap
4977bab6 34065
295f4e42
NN
34066.PHONY: maybe-mostlyclean-target-libtermcap mostlyclean-target-libtermcap
34067maybe-mostlyclean-target-libtermcap:
60975492
PB
34068@if target-libtermcap
34069maybe-mostlyclean-target-libtermcap: mostlyclean-target-libtermcap
295f4e42
NN
34070
34071# libtermcap doesn't support mostlyclean.
34072mostlyclean-target-libtermcap:
34073
60975492 34074@endif target-libtermcap
295f4e42
NN
34075
34076.PHONY: maybe-clean-target-libtermcap clean-target-libtermcap
34077maybe-clean-target-libtermcap:
60975492
PB
34078@if target-libtermcap
34079maybe-clean-target-libtermcap: clean-target-libtermcap
295f4e42
NN
34080
34081# libtermcap doesn't support clean.
34082clean-target-libtermcap:
34083
60975492 34084@endif target-libtermcap
295f4e42
NN
34085
34086.PHONY: maybe-distclean-target-libtermcap distclean-target-libtermcap
34087maybe-distclean-target-libtermcap:
60975492
PB
34088@if target-libtermcap
34089maybe-distclean-target-libtermcap: distclean-target-libtermcap
295f4e42
NN
34090
34091# libtermcap doesn't support distclean.
34092distclean-target-libtermcap:
34093
60975492 34094@endif target-libtermcap
295f4e42
NN
34095
34096.PHONY: maybe-maintainer-clean-target-libtermcap maintainer-clean-target-libtermcap
34097maybe-maintainer-clean-target-libtermcap:
60975492
PB
34098@if target-libtermcap
34099maybe-maintainer-clean-target-libtermcap: maintainer-clean-target-libtermcap
295f4e42
NN
34100
34101# libtermcap doesn't support maintainer-clean.
34102maintainer-clean-target-libtermcap:
34103
60975492 34104@endif target-libtermcap
295f4e42
NN
34105
34106
295f4e42 34107
295f4e42 34108
25b42232
PB
34109
34110.PHONY: configure-target-winsup maybe-configure-target-winsup
34111maybe-configure-target-winsup:
3ff3adad
PB
34112@if gcc-bootstrap
34113configure-target-winsup: stage_current
34114@endif gcc-bootstrap
25b42232
PB
34115@if target-winsup
34116maybe-configure-target-winsup: configure-target-winsup
cc11cc9b 34117configure-target-winsup:
f41d6665
DJ
34118 @: $(MAKE); $(unstage)
34119 @r=`${PWD_COMMAND}`; export r; \
34120 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34121 echo "Checking multilib configuration for winsup..."; \
34122 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/winsup ; \
34123 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/winsup/multilib.tmp 2> /dev/null ; \
34124 if test -r $(TARGET_SUBDIR)/winsup/multilib.out; then \
34125 if cmp -s $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; then \
34126 rm -f $(TARGET_SUBDIR)/winsup/multilib.tmp; \
34127 else \
34128 rm -f $(TARGET_SUBDIR)/winsup/Makefile; \
34129 mv $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; \
34130 fi; \
34131 else \
34132 mv $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; \
cc11cc9b
PB
34133 fi; \
34134 test ! -f $(TARGET_SUBDIR)/winsup/Makefile || exit 0; \
295f4e42 34135 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/winsup ; \
4fc4dd12 34136 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
34137 echo Configuring in $(TARGET_SUBDIR)/winsup; \
34138 cd "$(TARGET_SUBDIR)/winsup" || exit 1; \
4977bab6 34139 case $(srcdir) in \
215c351a
PB
34140 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34141 *) topdir=`echo $(TARGET_SUBDIR)/winsup/ | \
34142 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 34143 esac; \
215c351a
PB
34144 srcdiroption="--srcdir=$${topdir}/winsup"; \
34145 libsrcdir="$$s/winsup"; \
295f4e42
NN
34146 rm -f no-such-file || : ; \
34147 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 34148 $(TARGET_CONFIGARGS) $${srcdiroption} \
4977bab6 34149 || exit 1
60975492 34150@endif target-winsup
4977bab6 34151
25b42232
PB
34152
34153
ce406537
PB
34154
34155
295f4e42
NN
34156.PHONY: all-target-winsup maybe-all-target-winsup
34157maybe-all-target-winsup:
3ff3adad
PB
34158@if gcc-bootstrap
34159all-target-winsup: stage_current
34160@endif gcc-bootstrap
60975492 34161@if target-winsup
7c27e184 34162TARGET-target-winsup=all
60975492 34163maybe-all-target-winsup: all-target-winsup
295f4e42 34164all-target-winsup: configure-target-winsup
f41d6665 34165 @: $(MAKE); $(unstage)
8c90b13a
L
34166 @r=`${PWD_COMMAND}`; export r; \
34167 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34168 $(NORMAL_TARGET_EXPORTS) \
295f4e42 34169 (cd $(TARGET_SUBDIR)/winsup && \
25b42232 34170 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-winsup))
60975492 34171@endif target-winsup
4977bab6 34172
25b42232
PB
34173
34174
ce406537
PB
34175
34176
295f4e42
NN
34177.PHONY: check-target-winsup maybe-check-target-winsup
34178maybe-check-target-winsup:
60975492
PB
34179@if target-winsup
34180maybe-check-target-winsup: check-target-winsup
4977bab6 34181
295f4e42 34182check-target-winsup:
f41d6665 34183 @: $(MAKE); $(unstage)
295f4e42
NN
34184 @r=`${PWD_COMMAND}`; export r; \
34185 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34186 $(NORMAL_TARGET_EXPORTS) \
295f4e42 34187 (cd $(TARGET_SUBDIR)/winsup && \
a52a0a7f 34188 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4977bab6 34189
60975492 34190@endif target-winsup
4977bab6 34191
295f4e42
NN
34192.PHONY: install-target-winsup maybe-install-target-winsup
34193maybe-install-target-winsup:
60975492
PB
34194@if target-winsup
34195maybe-install-target-winsup: install-target-winsup
7e2dbcef 34196
295f4e42 34197install-target-winsup: installdirs
f41d6665 34198 @: $(MAKE); $(unstage)
295f4e42
NN
34199 @r=`${PWD_COMMAND}`; export r; \
34200 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34201 $(NORMAL_TARGET_EXPORTS) \
295f4e42 34202 (cd $(TARGET_SUBDIR)/winsup && \
a52a0a7f 34203 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4977bab6 34204
60975492 34205@endif target-winsup
4977bab6 34206
295f4e42
NN
34207# Other targets (info, dvi, etc.)
34208
34209.PHONY: maybe-info-target-winsup info-target-winsup
34210maybe-info-target-winsup:
60975492
PB
34211@if target-winsup
34212maybe-info-target-winsup: info-target-winsup
295f4e42
NN
34213
34214info-target-winsup: \
05750653 34215 configure-target-winsup
f41d6665 34216 @: $(MAKE); $(unstage)
295f4e42 34217 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
8c90b13a
L
34218 r=`${PWD_COMMAND}`; export r; \
34219 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34220 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
34221 echo "Doing info in $(TARGET_SUBDIR)/winsup" ; \
34222 for flag in $(EXTRA_TARGET_FLAGS); do \
34223 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34224 done; \
34225 (cd $(TARGET_SUBDIR)/winsup && \
34226 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34227 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34228 "RANLIB=$${RANLIB}" \
34229 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 34230 info) \
4977bab6
ZW
34231 || exit 1
34232
60975492 34233@endif target-winsup
4977bab6 34234
295f4e42
NN
34235.PHONY: maybe-dvi-target-winsup dvi-target-winsup
34236maybe-dvi-target-winsup:
60975492
PB
34237@if target-winsup
34238maybe-dvi-target-winsup: dvi-target-winsup
4977bab6 34239
295f4e42 34240dvi-target-winsup: \
05750653 34241 configure-target-winsup
f41d6665 34242 @: $(MAKE); $(unstage)
295f4e42
NN
34243 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
34244 r=`${PWD_COMMAND}`; export r; \
8c90b13a 34245 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34246 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
34247 echo "Doing dvi in $(TARGET_SUBDIR)/winsup" ; \
34248 for flag in $(EXTRA_TARGET_FLAGS); do \
34249 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34250 done; \
34251 (cd $(TARGET_SUBDIR)/winsup && \
34252 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34253 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34254 "RANLIB=$${RANLIB}" \
34255 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 34256 dvi) \
295f4e42 34257 || exit 1
4977bab6 34258
60975492 34259@endif target-winsup
4977bab6 34260
f87a2b2e
MS
34261.PHONY: maybe-html-target-winsup html-target-winsup
34262maybe-html-target-winsup:
34263@if target-winsup
34264maybe-html-target-winsup: html-target-winsup
34265
34266html-target-winsup: \
05750653 34267 configure-target-winsup
f41d6665 34268 @: $(MAKE); $(unstage)
f87a2b2e
MS
34269 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
34270 r=`${PWD_COMMAND}`; export r; \
34271 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
34272 $(NORMAL_TARGET_EXPORTS) \
34273 echo "Doing html in $(TARGET_SUBDIR)/winsup" ; \
34274 for flag in $(EXTRA_TARGET_FLAGS); do \
34275 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34276 done; \
34277 (cd $(TARGET_SUBDIR)/winsup && \
34278 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34279 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34280 "RANLIB=$${RANLIB}" \
34281 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
34282 html) \
34283 || exit 1
34284
34285@endif target-winsup
34286
295f4e42
NN
34287.PHONY: maybe-TAGS-target-winsup TAGS-target-winsup
34288maybe-TAGS-target-winsup:
60975492
PB
34289@if target-winsup
34290maybe-TAGS-target-winsup: TAGS-target-winsup
7e2dbcef 34291
295f4e42 34292TAGS-target-winsup: \
05750653 34293 configure-target-winsup
f41d6665 34294 @: $(MAKE); $(unstage)
295f4e42
NN
34295 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
34296 r=`${PWD_COMMAND}`; export r; \
8c90b13a 34297 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34298 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
34299 echo "Doing TAGS in $(TARGET_SUBDIR)/winsup" ; \
34300 for flag in $(EXTRA_TARGET_FLAGS); do \
34301 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34302 done; \
34303 (cd $(TARGET_SUBDIR)/winsup && \
34304 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34305 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34306 "RANLIB=$${RANLIB}" \
34307 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 34308 TAGS) \
295f4e42 34309 || exit 1
4977bab6 34310
60975492 34311@endif target-winsup
4977bab6 34312
295f4e42
NN
34313.PHONY: maybe-install-info-target-winsup install-info-target-winsup
34314maybe-install-info-target-winsup:
60975492
PB
34315@if target-winsup
34316maybe-install-info-target-winsup: install-info-target-winsup
295f4e42
NN
34317
34318install-info-target-winsup: \
34319 configure-target-winsup \
05750653 34320 info-target-winsup
f41d6665 34321 @: $(MAKE); $(unstage)
295f4e42 34322 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
8c90b13a
L
34323 r=`${PWD_COMMAND}`; export r; \
34324 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34325 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
34326 echo "Doing install-info in $(TARGET_SUBDIR)/winsup" ; \
34327 for flag in $(EXTRA_TARGET_FLAGS); do \
34328 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34329 done; \
34330 (cd $(TARGET_SUBDIR)/winsup && \
34331 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34332 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34333 "RANLIB=$${RANLIB}" \
34334 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 34335 install-info) \
4977bab6
ZW
34336 || exit 1
34337
60975492 34338@endif target-winsup
295f4e42 34339
65d6e994
CD
34340.PHONY: maybe-install-html-target-winsup install-html-target-winsup
34341maybe-install-html-target-winsup:
34342@if target-winsup
34343maybe-install-html-target-winsup: install-html-target-winsup
34344
34345install-html-target-winsup: \
34346 configure-target-winsup \
34347 html-target-winsup
34348 @: $(MAKE); $(unstage)
34349 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
34350 r=`${PWD_COMMAND}`; export r; \
34351 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34352 $(NORMAL_TARGET_EXPORTS) \
34353 echo "Doing install-html in $(TARGET_SUBDIR)/winsup" ; \
34354 for flag in $(EXTRA_TARGET_FLAGS); do \
34355 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34356 done; \
34357 (cd $(TARGET_SUBDIR)/winsup && \
34358 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34359 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34360 "RANLIB=$${RANLIB}" \
34361 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
34362 install-html) \
34363 || exit 1
34364
34365@endif target-winsup
34366
295f4e42
NN
34367.PHONY: maybe-installcheck-target-winsup installcheck-target-winsup
34368maybe-installcheck-target-winsup:
60975492
PB
34369@if target-winsup
34370maybe-installcheck-target-winsup: installcheck-target-winsup
295f4e42
NN
34371
34372installcheck-target-winsup: \
05750653 34373 configure-target-winsup
f41d6665 34374 @: $(MAKE); $(unstage)
295f4e42
NN
34375 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
34376 r=`${PWD_COMMAND}`; export r; \
8c90b13a 34377 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34378 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
34379 echo "Doing installcheck in $(TARGET_SUBDIR)/winsup" ; \
34380 for flag in $(EXTRA_TARGET_FLAGS); do \
34381 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34382 done; \
34383 (cd $(TARGET_SUBDIR)/winsup && \
34384 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34385 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34386 "RANLIB=$${RANLIB}" \
34387 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 34388 installcheck) \
295f4e42 34389 || exit 1
4977bab6 34390
60975492 34391@endif target-winsup
4977bab6 34392
295f4e42
NN
34393.PHONY: maybe-mostlyclean-target-winsup mostlyclean-target-winsup
34394maybe-mostlyclean-target-winsup:
60975492
PB
34395@if target-winsup
34396maybe-mostlyclean-target-winsup: mostlyclean-target-winsup
295f4e42 34397
05750653 34398mostlyclean-target-winsup:
f41d6665 34399 @: $(MAKE); $(unstage)
295f4e42
NN
34400 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
34401 r=`${PWD_COMMAND}`; export r; \
8c90b13a 34402 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34403 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
34404 echo "Doing mostlyclean in $(TARGET_SUBDIR)/winsup" ; \
34405 for flag in $(EXTRA_TARGET_FLAGS); do \
34406 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34407 done; \
34408 (cd $(TARGET_SUBDIR)/winsup && \
34409 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34410 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34411 "RANLIB=$${RANLIB}" \
34412 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 34413 mostlyclean) \
295f4e42 34414 || exit 1
4977bab6 34415
60975492 34416@endif target-winsup
4977bab6 34417
295f4e42
NN
34418.PHONY: maybe-clean-target-winsup clean-target-winsup
34419maybe-clean-target-winsup:
60975492
PB
34420@if target-winsup
34421maybe-clean-target-winsup: clean-target-winsup
7e2dbcef 34422
05750653 34423clean-target-winsup:
f41d6665 34424 @: $(MAKE); $(unstage)
295f4e42
NN
34425 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
34426 r=`${PWD_COMMAND}`; export r; \
8c90b13a 34427 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34428 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
34429 echo "Doing clean in $(TARGET_SUBDIR)/winsup" ; \
34430 for flag in $(EXTRA_TARGET_FLAGS); do \
34431 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34432 done; \
34433 (cd $(TARGET_SUBDIR)/winsup && \
34434 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34435 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34436 "RANLIB=$${RANLIB}" \
34437 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 34438 clean) \
295f4e42 34439 || exit 1
4977bab6 34440
60975492 34441@endif target-winsup
4977bab6 34442
295f4e42
NN
34443.PHONY: maybe-distclean-target-winsup distclean-target-winsup
34444maybe-distclean-target-winsup:
60975492
PB
34445@if target-winsup
34446maybe-distclean-target-winsup: distclean-target-winsup
295f4e42 34447
05750653 34448distclean-target-winsup:
f41d6665 34449 @: $(MAKE); $(unstage)
295f4e42 34450 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
8c90b13a
L
34451 r=`${PWD_COMMAND}`; export r; \
34452 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34453 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
34454 echo "Doing distclean in $(TARGET_SUBDIR)/winsup" ; \
34455 for flag in $(EXTRA_TARGET_FLAGS); do \
34456 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34457 done; \
34458 (cd $(TARGET_SUBDIR)/winsup && \
34459 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34460 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34461 "RANLIB=$${RANLIB}" \
34462 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 34463 distclean) \
4977bab6
ZW
34464 || exit 1
34465
60975492 34466@endif target-winsup
4977bab6 34467
295f4e42
NN
34468.PHONY: maybe-maintainer-clean-target-winsup maintainer-clean-target-winsup
34469maybe-maintainer-clean-target-winsup:
60975492
PB
34470@if target-winsup
34471maybe-maintainer-clean-target-winsup: maintainer-clean-target-winsup
4977bab6 34472
05750653 34473maintainer-clean-target-winsup:
f41d6665 34474 @: $(MAKE); $(unstage)
295f4e42
NN
34475 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
34476 r=`${PWD_COMMAND}`; export r; \
8c90b13a 34477 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34478 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
34479 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/winsup" ; \
34480 for flag in $(EXTRA_TARGET_FLAGS); do \
34481 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34482 done; \
34483 (cd $(TARGET_SUBDIR)/winsup && \
34484 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34485 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34486 "RANLIB=$${RANLIB}" \
34487 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 34488 maintainer-clean) \
295f4e42 34489 || exit 1
4977bab6 34490
60975492 34491@endif target-winsup
4977bab6 34492
7e2dbcef 34493
4977bab6
ZW
34494
34495
25b42232
PB
34496
34497.PHONY: configure-target-libgloss maybe-configure-target-libgloss
34498maybe-configure-target-libgloss:
3ff3adad
PB
34499@if gcc-bootstrap
34500configure-target-libgloss: stage_current
34501@endif gcc-bootstrap
25b42232
PB
34502@if target-libgloss
34503maybe-configure-target-libgloss: configure-target-libgloss
cc11cc9b 34504configure-target-libgloss:
f41d6665
DJ
34505 @: $(MAKE); $(unstage)
34506 @r=`${PWD_COMMAND}`; export r; \
34507 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34508 echo "Checking multilib configuration for libgloss..."; \
34509 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgloss ; \
34510 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgloss/multilib.tmp 2> /dev/null ; \
34511 if test -r $(TARGET_SUBDIR)/libgloss/multilib.out; then \
34512 if cmp -s $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; then \
34513 rm -f $(TARGET_SUBDIR)/libgloss/multilib.tmp; \
34514 else \
34515 rm -f $(TARGET_SUBDIR)/libgloss/Makefile; \
34516 mv $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; \
34517 fi; \
34518 else \
34519 mv $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; \
cc11cc9b
PB
34520 fi; \
34521 test ! -f $(TARGET_SUBDIR)/libgloss/Makefile || exit 0; \
295f4e42 34522 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgloss ; \
4fc4dd12 34523 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
34524 echo Configuring in $(TARGET_SUBDIR)/libgloss; \
34525 cd "$(TARGET_SUBDIR)/libgloss" || exit 1; \
4977bab6 34526 case $(srcdir) in \
215c351a
PB
34527 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34528 *) topdir=`echo $(TARGET_SUBDIR)/libgloss/ | \
34529 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 34530 esac; \
215c351a
PB
34531 srcdiroption="--srcdir=$${topdir}/libgloss"; \
34532 libsrcdir="$$s/libgloss"; \
295f4e42
NN
34533 rm -f no-such-file || : ; \
34534 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 34535 $(TARGET_CONFIGARGS) $${srcdiroption} \
4977bab6 34536 || exit 1
60975492 34537@endif target-libgloss
4977bab6 34538
25b42232
PB
34539
34540
ce406537
PB
34541
34542
295f4e42
NN
34543.PHONY: all-target-libgloss maybe-all-target-libgloss
34544maybe-all-target-libgloss:
3ff3adad
PB
34545@if gcc-bootstrap
34546all-target-libgloss: stage_current
34547@endif gcc-bootstrap
60975492 34548@if target-libgloss
7c27e184 34549TARGET-target-libgloss=all
60975492 34550maybe-all-target-libgloss: all-target-libgloss
295f4e42 34551all-target-libgloss: configure-target-libgloss
f41d6665 34552 @: $(MAKE); $(unstage)
8c90b13a
L
34553 @r=`${PWD_COMMAND}`; export r; \
34554 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34555 $(NORMAL_TARGET_EXPORTS) \
295f4e42 34556 (cd $(TARGET_SUBDIR)/libgloss && \
25b42232 34557 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libgloss))
60975492 34558@endif target-libgloss
4977bab6 34559
25b42232
PB
34560
34561
ce406537
PB
34562
34563
295f4e42
NN
34564.PHONY: check-target-libgloss maybe-check-target-libgloss
34565maybe-check-target-libgloss:
60975492
PB
34566@if target-libgloss
34567maybe-check-target-libgloss: check-target-libgloss
4977bab6 34568
295f4e42
NN
34569# Dummy target for uncheckable module.
34570check-target-libgloss:
4977bab6 34571
60975492 34572@endif target-libgloss
4977bab6 34573
295f4e42
NN
34574.PHONY: install-target-libgloss maybe-install-target-libgloss
34575maybe-install-target-libgloss:
60975492
PB
34576@if target-libgloss
34577maybe-install-target-libgloss: install-target-libgloss
7e2dbcef 34578
295f4e42 34579install-target-libgloss: installdirs
f41d6665 34580 @: $(MAKE); $(unstage)
8c90b13a
L
34581 @r=`${PWD_COMMAND}`; export r; \
34582 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34583 $(NORMAL_TARGET_EXPORTS) \
295f4e42 34584 (cd $(TARGET_SUBDIR)/libgloss && \
a52a0a7f 34585 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4977bab6 34586
60975492 34587@endif target-libgloss
4977bab6 34588
295f4e42
NN
34589# Other targets (info, dvi, etc.)
34590
34591.PHONY: maybe-info-target-libgloss info-target-libgloss
34592maybe-info-target-libgloss:
60975492
PB
34593@if target-libgloss
34594maybe-info-target-libgloss: info-target-libgloss
295f4e42
NN
34595
34596info-target-libgloss: \
05750653 34597 configure-target-libgloss
f41d6665 34598 @: $(MAKE); $(unstage)
295f4e42 34599 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
8c90b13a
L
34600 r=`${PWD_COMMAND}`; export r; \
34601 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34602 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
34603 echo "Doing info in $(TARGET_SUBDIR)/libgloss" ; \
34604 for flag in $(EXTRA_TARGET_FLAGS); do \
34605 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34606 done; \
34607 (cd $(TARGET_SUBDIR)/libgloss && \
34608 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34609 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34610 "RANLIB=$${RANLIB}" \
34611 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 34612 info) \
82c34dcb
MC
34613 || exit 1
34614
60975492 34615@endif target-libgloss
82c34dcb 34616
295f4e42
NN
34617.PHONY: maybe-dvi-target-libgloss dvi-target-libgloss
34618maybe-dvi-target-libgloss:
60975492
PB
34619@if target-libgloss
34620maybe-dvi-target-libgloss: dvi-target-libgloss
82c34dcb 34621
295f4e42 34622dvi-target-libgloss: \
05750653 34623 configure-target-libgloss
f41d6665 34624 @: $(MAKE); $(unstage)
295f4e42
NN
34625 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
34626 r=`${PWD_COMMAND}`; export r; \
8c90b13a 34627 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34628 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
34629 echo "Doing dvi in $(TARGET_SUBDIR)/libgloss" ; \
34630 for flag in $(EXTRA_TARGET_FLAGS); do \
34631 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34632 done; \
34633 (cd $(TARGET_SUBDIR)/libgloss && \
34634 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34635 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34636 "RANLIB=$${RANLIB}" \
34637 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 34638 dvi) \
295f4e42 34639 || exit 1
82c34dcb 34640
60975492 34641@endif target-libgloss
82c34dcb 34642
f87a2b2e
MS
34643.PHONY: maybe-html-target-libgloss html-target-libgloss
34644maybe-html-target-libgloss:
34645@if target-libgloss
34646maybe-html-target-libgloss: html-target-libgloss
34647
34648html-target-libgloss: \
05750653 34649 configure-target-libgloss
f41d6665 34650 @: $(MAKE); $(unstage)
f87a2b2e
MS
34651 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
34652 r=`${PWD_COMMAND}`; export r; \
34653 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
34654 $(NORMAL_TARGET_EXPORTS) \
34655 echo "Doing html in $(TARGET_SUBDIR)/libgloss" ; \
34656 for flag in $(EXTRA_TARGET_FLAGS); do \
34657 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34658 done; \
34659 (cd $(TARGET_SUBDIR)/libgloss && \
34660 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34661 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34662 "RANLIB=$${RANLIB}" \
34663 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
34664 html) \
34665 || exit 1
34666
34667@endif target-libgloss
34668
295f4e42
NN
34669.PHONY: maybe-TAGS-target-libgloss TAGS-target-libgloss
34670maybe-TAGS-target-libgloss:
60975492
PB
34671@if target-libgloss
34672maybe-TAGS-target-libgloss: TAGS-target-libgloss
7e2dbcef 34673
295f4e42 34674TAGS-target-libgloss: \
05750653 34675 configure-target-libgloss
f41d6665 34676 @: $(MAKE); $(unstage)
295f4e42
NN
34677 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
34678 r=`${PWD_COMMAND}`; export r; \
8c90b13a 34679 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34680 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
34681 echo "Doing TAGS in $(TARGET_SUBDIR)/libgloss" ; \
34682 for flag in $(EXTRA_TARGET_FLAGS); do \
34683 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34684 done; \
34685 (cd $(TARGET_SUBDIR)/libgloss && \
34686 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34687 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34688 "RANLIB=$${RANLIB}" \
34689 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 34690 TAGS) \
295f4e42 34691 || exit 1
82c34dcb 34692
60975492 34693@endif target-libgloss
82c34dcb 34694
295f4e42
NN
34695.PHONY: maybe-install-info-target-libgloss install-info-target-libgloss
34696maybe-install-info-target-libgloss:
60975492
PB
34697@if target-libgloss
34698maybe-install-info-target-libgloss: install-info-target-libgloss
295f4e42
NN
34699
34700install-info-target-libgloss: \
34701 configure-target-libgloss \
05750653 34702 info-target-libgloss
f41d6665 34703 @: $(MAKE); $(unstage)
295f4e42 34704 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
8c90b13a
L
34705 r=`${PWD_COMMAND}`; export r; \
34706 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34707 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
34708 echo "Doing install-info in $(TARGET_SUBDIR)/libgloss" ; \
34709 for flag in $(EXTRA_TARGET_FLAGS); do \
34710 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34711 done; \
34712 (cd $(TARGET_SUBDIR)/libgloss && \
34713 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34714 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34715 "RANLIB=$${RANLIB}" \
34716 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 34717 install-info) \
4977bab6
ZW
34718 || exit 1
34719
60975492 34720@endif target-libgloss
4977bab6 34721
65d6e994
CD
34722.PHONY: maybe-install-html-target-libgloss install-html-target-libgloss
34723maybe-install-html-target-libgloss:
34724@if target-libgloss
34725maybe-install-html-target-libgloss: install-html-target-libgloss
34726
34727install-html-target-libgloss: \
34728 configure-target-libgloss \
34729 html-target-libgloss
34730 @: $(MAKE); $(unstage)
34731 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
34732 r=`${PWD_COMMAND}`; export r; \
34733 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34734 $(NORMAL_TARGET_EXPORTS) \
34735 echo "Doing install-html in $(TARGET_SUBDIR)/libgloss" ; \
34736 for flag in $(EXTRA_TARGET_FLAGS); do \
34737 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34738 done; \
34739 (cd $(TARGET_SUBDIR)/libgloss && \
34740 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34741 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34742 "RANLIB=$${RANLIB}" \
34743 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
34744 install-html) \
34745 || exit 1
34746
34747@endif target-libgloss
34748
295f4e42
NN
34749.PHONY: maybe-installcheck-target-libgloss installcheck-target-libgloss
34750maybe-installcheck-target-libgloss:
60975492
PB
34751@if target-libgloss
34752maybe-installcheck-target-libgloss: installcheck-target-libgloss
4977bab6 34753
295f4e42 34754installcheck-target-libgloss: \
05750653 34755 configure-target-libgloss
f41d6665 34756 @: $(MAKE); $(unstage)
295f4e42
NN
34757 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
34758 r=`${PWD_COMMAND}`; export r; \
34759 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34760 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
34761 echo "Doing installcheck in $(TARGET_SUBDIR)/libgloss" ; \
34762 for flag in $(EXTRA_TARGET_FLAGS); do \
34763 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34764 done; \
34765 (cd $(TARGET_SUBDIR)/libgloss && \
34766 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34767 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34768 "RANLIB=$${RANLIB}" \
34769 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 34770 installcheck) \
295f4e42 34771 || exit 1
4977bab6 34772
60975492 34773@endif target-libgloss
4977bab6 34774
295f4e42
NN
34775.PHONY: maybe-mostlyclean-target-libgloss mostlyclean-target-libgloss
34776maybe-mostlyclean-target-libgloss:
60975492
PB
34777@if target-libgloss
34778maybe-mostlyclean-target-libgloss: mostlyclean-target-libgloss
7e2dbcef 34779
05750653 34780mostlyclean-target-libgloss:
f41d6665 34781 @: $(MAKE); $(unstage)
295f4e42
NN
34782 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
34783 r=`${PWD_COMMAND}`; export r; \
8c90b13a 34784 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34785 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
34786 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgloss" ; \
34787 for flag in $(EXTRA_TARGET_FLAGS); do \
34788 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34789 done; \
34790 (cd $(TARGET_SUBDIR)/libgloss && \
34791 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34792 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34793 "RANLIB=$${RANLIB}" \
34794 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 34795 mostlyclean) \
295f4e42 34796 || exit 1
4977bab6 34797
60975492 34798@endif target-libgloss
4977bab6 34799
295f4e42
NN
34800.PHONY: maybe-clean-target-libgloss clean-target-libgloss
34801maybe-clean-target-libgloss:
60975492
PB
34802@if target-libgloss
34803maybe-clean-target-libgloss: clean-target-libgloss
295f4e42 34804
05750653 34805clean-target-libgloss:
f41d6665 34806 @: $(MAKE); $(unstage)
295f4e42 34807 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
8c90b13a
L
34808 r=`${PWD_COMMAND}`; export r; \
34809 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34810 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
34811 echo "Doing clean in $(TARGET_SUBDIR)/libgloss" ; \
34812 for flag in $(EXTRA_TARGET_FLAGS); do \
34813 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34814 done; \
34815 (cd $(TARGET_SUBDIR)/libgloss && \
34816 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34817 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34818 "RANLIB=$${RANLIB}" \
34819 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 34820 clean) \
4977bab6
ZW
34821 || exit 1
34822
60975492 34823@endif target-libgloss
4977bab6 34824
295f4e42
NN
34825.PHONY: maybe-distclean-target-libgloss distclean-target-libgloss
34826maybe-distclean-target-libgloss:
60975492
PB
34827@if target-libgloss
34828maybe-distclean-target-libgloss: distclean-target-libgloss
4977bab6 34829
05750653 34830distclean-target-libgloss:
f41d6665 34831 @: $(MAKE); $(unstage)
295f4e42
NN
34832 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
34833 r=`${PWD_COMMAND}`; export r; \
34834 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34835 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
34836 echo "Doing distclean in $(TARGET_SUBDIR)/libgloss" ; \
34837 for flag in $(EXTRA_TARGET_FLAGS); do \
34838 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34839 done; \
34840 (cd $(TARGET_SUBDIR)/libgloss && \
34841 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34842 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34843 "RANLIB=$${RANLIB}" \
34844 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 34845 distclean) \
295f4e42 34846 || exit 1
4977bab6 34847
60975492 34848@endif target-libgloss
4977bab6 34849
295f4e42
NN
34850.PHONY: maybe-maintainer-clean-target-libgloss maintainer-clean-target-libgloss
34851maybe-maintainer-clean-target-libgloss:
60975492
PB
34852@if target-libgloss
34853maybe-maintainer-clean-target-libgloss: maintainer-clean-target-libgloss
7e2dbcef 34854
05750653 34855maintainer-clean-target-libgloss:
f41d6665 34856 @: $(MAKE); $(unstage)
295f4e42
NN
34857 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
34858 r=`${PWD_COMMAND}`; export r; \
8c90b13a 34859 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34860 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
34861 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgloss" ; \
34862 for flag in $(EXTRA_TARGET_FLAGS); do \
34863 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34864 done; \
34865 (cd $(TARGET_SUBDIR)/libgloss && \
34866 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34867 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34868 "RANLIB=$${RANLIB}" \
34869 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 34870 maintainer-clean) \
295f4e42 34871 || exit 1
4977bab6 34872
60975492 34873@endif target-libgloss
4977bab6 34874
4977bab6 34875
4977bab6 34876
4977bab6 34877
25b42232
PB
34878
34879.PHONY: configure-target-libiberty maybe-configure-target-libiberty
34880maybe-configure-target-libiberty:
3ff3adad
PB
34881@if gcc-bootstrap
34882configure-target-libiberty: stage_current
34883@endif gcc-bootstrap
25b42232
PB
34884@if target-libiberty
34885maybe-configure-target-libiberty: configure-target-libiberty
cc11cc9b 34886configure-target-libiberty:
f41d6665
DJ
34887 @: $(MAKE); $(unstage)
34888 @r=`${PWD_COMMAND}`; export r; \
34889 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34890 echo "Checking multilib configuration for libiberty..."; \
34891 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libiberty ; \
34892 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libiberty/multilib.tmp 2> /dev/null ; \
34893 if test -r $(TARGET_SUBDIR)/libiberty/multilib.out; then \
34894 if cmp -s $(TARGET_SUBDIR)/libiberty/multilib.tmp $(TARGET_SUBDIR)/libiberty/multilib.out; then \
34895 rm -f $(TARGET_SUBDIR)/libiberty/multilib.tmp; \
34896 else \
34897 rm -f $(TARGET_SUBDIR)/libiberty/Makefile; \
34898 mv $(TARGET_SUBDIR)/libiberty/multilib.tmp $(TARGET_SUBDIR)/libiberty/multilib.out; \
34899 fi; \
34900 else \
34901 mv $(TARGET_SUBDIR)/libiberty/multilib.tmp $(TARGET_SUBDIR)/libiberty/multilib.out; \
cc11cc9b
PB
34902 fi; \
34903 test ! -f $(TARGET_SUBDIR)/libiberty/Makefile || exit 0; \
295f4e42 34904 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libiberty ; \
4fc4dd12 34905 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
34906 echo Configuring in $(TARGET_SUBDIR)/libiberty; \
34907 cd "$(TARGET_SUBDIR)/libiberty" || exit 1; \
3aa83176 34908 case $(srcdir) in \
215c351a
PB
34909 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34910 *) topdir=`echo $(TARGET_SUBDIR)/libiberty/ | \
34911 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3aa83176 34912 esac; \
215c351a
PB
34913 srcdiroption="--srcdir=$${topdir}/libiberty"; \
34914 libsrcdir="$$s/libiberty"; \
3aa83176
NN
34915 rm -f no-such-file || : ; \
34916 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 34917 $(TARGET_CONFIGARGS) $${srcdiroption} \
3aa83176 34918 || exit 1
60975492 34919@endif target-libiberty
4977bab6 34920
25b42232
PB
34921
34922
ce406537
PB
34923
34924
295f4e42
NN
34925.PHONY: all-target-libiberty maybe-all-target-libiberty
34926maybe-all-target-libiberty:
3ff3adad
PB
34927@if gcc-bootstrap
34928all-target-libiberty: stage_current
34929@endif gcc-bootstrap
60975492 34930@if target-libiberty
7c27e184 34931TARGET-target-libiberty=all
60975492 34932maybe-all-target-libiberty: all-target-libiberty
295f4e42 34933all-target-libiberty: configure-target-libiberty
f41d6665 34934 @: $(MAKE); $(unstage)
8c90b13a
L
34935 @r=`${PWD_COMMAND}`; export r; \
34936 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34937 $(NORMAL_TARGET_EXPORTS) \
295f4e42 34938 (cd $(TARGET_SUBDIR)/libiberty && \
25b42232 34939 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libiberty))
60975492 34940@endif target-libiberty
4977bab6 34941
25b42232
PB
34942
34943
ce406537
PB
34944
34945
295f4e42
NN
34946.PHONY: check-target-libiberty maybe-check-target-libiberty
34947maybe-check-target-libiberty:
60975492
PB
34948@if target-libiberty
34949maybe-check-target-libiberty: check-target-libiberty
7e2dbcef 34950
295f4e42 34951check-target-libiberty:
f41d6665 34952 @: $(MAKE); $(unstage)
8c90b13a
L
34953 @r=`${PWD_COMMAND}`; export r; \
34954 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34955 $(NORMAL_TARGET_EXPORTS) \
295f4e42 34956 (cd $(TARGET_SUBDIR)/libiberty && \
a52a0a7f 34957 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4977bab6 34958
60975492 34959@endif target-libiberty
4977bab6 34960
295f4e42
NN
34961.PHONY: install-target-libiberty maybe-install-target-libiberty
34962maybe-install-target-libiberty:
60975492
PB
34963@if target-libiberty
34964maybe-install-target-libiberty: install-target-libiberty
295f4e42
NN
34965
34966install-target-libiberty: installdirs
f41d6665 34967 @: $(MAKE); $(unstage)
295f4e42
NN
34968 @r=`${PWD_COMMAND}`; export r; \
34969 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34970 $(NORMAL_TARGET_EXPORTS) \
295f4e42 34971 (cd $(TARGET_SUBDIR)/libiberty && \
a52a0a7f 34972 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
295f4e42 34973
60975492 34974@endif target-libiberty
295f4e42
NN
34975
34976# Other targets (info, dvi, etc.)
34977
34978.PHONY: maybe-info-target-libiberty info-target-libiberty
34979maybe-info-target-libiberty:
60975492
PB
34980@if target-libiberty
34981maybe-info-target-libiberty: info-target-libiberty
295f4e42
NN
34982
34983info-target-libiberty: \
05750653 34984 configure-target-libiberty
f41d6665 34985 @: $(MAKE); $(unstage)
295f4e42
NN
34986 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
34987 r=`${PWD_COMMAND}`; export r; \
34988 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34989 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
34990 echo "Doing info in $(TARGET_SUBDIR)/libiberty" ; \
34991 for flag in $(EXTRA_TARGET_FLAGS); do \
34992 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34993 done; \
34994 (cd $(TARGET_SUBDIR)/libiberty && \
34995 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34996 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34997 "RANLIB=$${RANLIB}" \
34998 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 34999 info) \
295f4e42
NN
35000 || exit 1
35001
60975492 35002@endif target-libiberty
295f4e42
NN
35003
35004.PHONY: maybe-dvi-target-libiberty dvi-target-libiberty
35005maybe-dvi-target-libiberty:
60975492
PB
35006@if target-libiberty
35007maybe-dvi-target-libiberty: dvi-target-libiberty
295f4e42
NN
35008
35009dvi-target-libiberty: \
05750653 35010 configure-target-libiberty
f41d6665 35011 @: $(MAKE); $(unstage)
295f4e42
NN
35012 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
35013 r=`${PWD_COMMAND}`; export r; \
35014 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35015 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35016 echo "Doing dvi in $(TARGET_SUBDIR)/libiberty" ; \
35017 for flag in $(EXTRA_TARGET_FLAGS); do \
35018 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35019 done; \
35020 (cd $(TARGET_SUBDIR)/libiberty && \
35021 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35022 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35023 "RANLIB=$${RANLIB}" \
35024 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35025 dvi) \
295f4e42
NN
35026 || exit 1
35027
60975492 35028@endif target-libiberty
295f4e42 35029
f87a2b2e
MS
35030.PHONY: maybe-html-target-libiberty html-target-libiberty
35031maybe-html-target-libiberty:
35032@if target-libiberty
35033maybe-html-target-libiberty: html-target-libiberty
35034
35035html-target-libiberty: \
05750653 35036 configure-target-libiberty
f41d6665 35037 @: $(MAKE); $(unstage)
f87a2b2e
MS
35038 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
35039 r=`${PWD_COMMAND}`; export r; \
35040 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
35041 $(NORMAL_TARGET_EXPORTS) \
35042 echo "Doing html in $(TARGET_SUBDIR)/libiberty" ; \
35043 for flag in $(EXTRA_TARGET_FLAGS); do \
35044 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35045 done; \
35046 (cd $(TARGET_SUBDIR)/libiberty && \
35047 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35048 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35049 "RANLIB=$${RANLIB}" \
35050 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
35051 html) \
35052 || exit 1
35053
35054@endif target-libiberty
35055
295f4e42
NN
35056.PHONY: maybe-TAGS-target-libiberty TAGS-target-libiberty
35057maybe-TAGS-target-libiberty:
60975492
PB
35058@if target-libiberty
35059maybe-TAGS-target-libiberty: TAGS-target-libiberty
295f4e42
NN
35060
35061TAGS-target-libiberty: \
05750653 35062 configure-target-libiberty
f41d6665 35063 @: $(MAKE); $(unstage)
295f4e42
NN
35064 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
35065 r=`${PWD_COMMAND}`; export r; \
35066 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35067 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35068 echo "Doing TAGS in $(TARGET_SUBDIR)/libiberty" ; \
35069 for flag in $(EXTRA_TARGET_FLAGS); do \
35070 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35071 done; \
35072 (cd $(TARGET_SUBDIR)/libiberty && \
35073 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35074 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35075 "RANLIB=$${RANLIB}" \
35076 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35077 TAGS) \
295f4e42
NN
35078 || exit 1
35079
60975492 35080@endif target-libiberty
295f4e42
NN
35081
35082.PHONY: maybe-install-info-target-libiberty install-info-target-libiberty
35083maybe-install-info-target-libiberty:
60975492
PB
35084@if target-libiberty
35085maybe-install-info-target-libiberty: install-info-target-libiberty
295f4e42
NN
35086
35087install-info-target-libiberty: \
35088 configure-target-libiberty \
05750653 35089 info-target-libiberty
f41d6665 35090 @: $(MAKE); $(unstage)
295f4e42
NN
35091 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
35092 r=`${PWD_COMMAND}`; export r; \
35093 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35094 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35095 echo "Doing install-info in $(TARGET_SUBDIR)/libiberty" ; \
35096 for flag in $(EXTRA_TARGET_FLAGS); do \
35097 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35098 done; \
35099 (cd $(TARGET_SUBDIR)/libiberty && \
35100 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35101 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35102 "RANLIB=$${RANLIB}" \
35103 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35104 install-info) \
295f4e42
NN
35105 || exit 1
35106
60975492 35107@endif target-libiberty
295f4e42 35108
65d6e994
CD
35109.PHONY: maybe-install-html-target-libiberty install-html-target-libiberty
35110maybe-install-html-target-libiberty:
35111@if target-libiberty
35112maybe-install-html-target-libiberty: install-html-target-libiberty
35113
35114install-html-target-libiberty: \
35115 configure-target-libiberty \
35116 html-target-libiberty
35117 @: $(MAKE); $(unstage)
35118 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
35119 r=`${PWD_COMMAND}`; export r; \
35120 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35121 $(NORMAL_TARGET_EXPORTS) \
35122 echo "Doing install-html in $(TARGET_SUBDIR)/libiberty" ; \
35123 for flag in $(EXTRA_TARGET_FLAGS); do \
35124 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35125 done; \
35126 (cd $(TARGET_SUBDIR)/libiberty && \
35127 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35128 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35129 "RANLIB=$${RANLIB}" \
35130 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
35131 install-html) \
35132 || exit 1
35133
35134@endif target-libiberty
35135
295f4e42
NN
35136.PHONY: maybe-installcheck-target-libiberty installcheck-target-libiberty
35137maybe-installcheck-target-libiberty:
60975492
PB
35138@if target-libiberty
35139maybe-installcheck-target-libiberty: installcheck-target-libiberty
295f4e42
NN
35140
35141installcheck-target-libiberty: \
05750653 35142 configure-target-libiberty
f41d6665 35143 @: $(MAKE); $(unstage)
295f4e42
NN
35144 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
35145 r=`${PWD_COMMAND}`; export r; \
35146 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35147 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35148 echo "Doing installcheck in $(TARGET_SUBDIR)/libiberty" ; \
35149 for flag in $(EXTRA_TARGET_FLAGS); do \
35150 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35151 done; \
35152 (cd $(TARGET_SUBDIR)/libiberty && \
35153 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35154 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35155 "RANLIB=$${RANLIB}" \
35156 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35157 installcheck) \
295f4e42
NN
35158 || exit 1
35159
60975492 35160@endif target-libiberty
295f4e42
NN
35161
35162.PHONY: maybe-mostlyclean-target-libiberty mostlyclean-target-libiberty
35163maybe-mostlyclean-target-libiberty:
60975492
PB
35164@if target-libiberty
35165maybe-mostlyclean-target-libiberty: mostlyclean-target-libiberty
295f4e42 35166
05750653 35167mostlyclean-target-libiberty:
f41d6665 35168 @: $(MAKE); $(unstage)
295f4e42
NN
35169 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
35170 r=`${PWD_COMMAND}`; export r; \
35171 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35172 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35173 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libiberty" ; \
35174 for flag in $(EXTRA_TARGET_FLAGS); do \
35175 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35176 done; \
35177 (cd $(TARGET_SUBDIR)/libiberty && \
35178 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35179 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35180 "RANLIB=$${RANLIB}" \
35181 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35182 mostlyclean) \
295f4e42
NN
35183 || exit 1
35184
60975492 35185@endif target-libiberty
295f4e42
NN
35186
35187.PHONY: maybe-clean-target-libiberty clean-target-libiberty
35188maybe-clean-target-libiberty:
60975492
PB
35189@if target-libiberty
35190maybe-clean-target-libiberty: clean-target-libiberty
295f4e42 35191
05750653 35192clean-target-libiberty:
f41d6665 35193 @: $(MAKE); $(unstage)
295f4e42
NN
35194 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
35195 r=`${PWD_COMMAND}`; export r; \
35196 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35197 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35198 echo "Doing clean in $(TARGET_SUBDIR)/libiberty" ; \
35199 for flag in $(EXTRA_TARGET_FLAGS); do \
35200 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35201 done; \
35202 (cd $(TARGET_SUBDIR)/libiberty && \
35203 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35204 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35205 "RANLIB=$${RANLIB}" \
35206 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35207 clean) \
295f4e42
NN
35208 || exit 1
35209
60975492 35210@endif target-libiberty
295f4e42
NN
35211
35212.PHONY: maybe-distclean-target-libiberty distclean-target-libiberty
35213maybe-distclean-target-libiberty:
60975492
PB
35214@if target-libiberty
35215maybe-distclean-target-libiberty: distclean-target-libiberty
295f4e42 35216
05750653 35217distclean-target-libiberty:
f41d6665 35218 @: $(MAKE); $(unstage)
295f4e42
NN
35219 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
35220 r=`${PWD_COMMAND}`; export r; \
35221 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35222 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35223 echo "Doing distclean in $(TARGET_SUBDIR)/libiberty" ; \
35224 for flag in $(EXTRA_TARGET_FLAGS); do \
35225 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35226 done; \
35227 (cd $(TARGET_SUBDIR)/libiberty && \
35228 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35229 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35230 "RANLIB=$${RANLIB}" \
35231 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35232 distclean) \
295f4e42
NN
35233 || exit 1
35234
60975492 35235@endif target-libiberty
295f4e42
NN
35236
35237.PHONY: maybe-maintainer-clean-target-libiberty maintainer-clean-target-libiberty
35238maybe-maintainer-clean-target-libiberty:
60975492
PB
35239@if target-libiberty
35240maybe-maintainer-clean-target-libiberty: maintainer-clean-target-libiberty
295f4e42 35241
05750653 35242maintainer-clean-target-libiberty:
f41d6665 35243 @: $(MAKE); $(unstage)
295f4e42
NN
35244 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
35245 r=`${PWD_COMMAND}`; export r; \
35246 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35247 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35248 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libiberty" ; \
35249 for flag in $(EXTRA_TARGET_FLAGS); do \
35250 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35251 done; \
35252 (cd $(TARGET_SUBDIR)/libiberty && \
35253 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35254 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35255 "RANLIB=$${RANLIB}" \
35256 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35257 maintainer-clean) \
295f4e42 35258 || exit 1
7e2dbcef 35259
60975492 35260@endif target-libiberty
4977bab6
ZW
35261
35262
4977bab6 35263
4977bab6 35264
25b42232
PB
35265
35266.PHONY: configure-target-gperf maybe-configure-target-gperf
35267maybe-configure-target-gperf:
3ff3adad
PB
35268@if gcc-bootstrap
35269configure-target-gperf: stage_current
35270@endif gcc-bootstrap
25b42232
PB
35271@if target-gperf
35272maybe-configure-target-gperf: configure-target-gperf
cc11cc9b 35273configure-target-gperf:
f41d6665
DJ
35274 @: $(MAKE); $(unstage)
35275 @r=`${PWD_COMMAND}`; export r; \
35276 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35277 echo "Checking multilib configuration for gperf..."; \
35278 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/gperf ; \
35279 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/gperf/multilib.tmp 2> /dev/null ; \
35280 if test -r $(TARGET_SUBDIR)/gperf/multilib.out; then \
35281 if cmp -s $(TARGET_SUBDIR)/gperf/multilib.tmp $(TARGET_SUBDIR)/gperf/multilib.out; then \
35282 rm -f $(TARGET_SUBDIR)/gperf/multilib.tmp; \
35283 else \
35284 rm -f $(TARGET_SUBDIR)/gperf/Makefile; \
35285 mv $(TARGET_SUBDIR)/gperf/multilib.tmp $(TARGET_SUBDIR)/gperf/multilib.out; \
35286 fi; \
35287 else \
35288 mv $(TARGET_SUBDIR)/gperf/multilib.tmp $(TARGET_SUBDIR)/gperf/multilib.out; \
cc11cc9b
PB
35289 fi; \
35290 test ! -f $(TARGET_SUBDIR)/gperf/Makefile || exit 0; \
295f4e42 35291 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/gperf ; \
4fc4dd12 35292 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35293 echo Configuring in $(TARGET_SUBDIR)/gperf; \
35294 cd "$(TARGET_SUBDIR)/gperf" || exit 1; \
3aa83176 35295 case $(srcdir) in \
215c351a
PB
35296 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35297 *) topdir=`echo $(TARGET_SUBDIR)/gperf/ | \
35298 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3aa83176 35299 esac; \
215c351a
PB
35300 srcdiroption="--srcdir=$${topdir}/gperf"; \
35301 libsrcdir="$$s/gperf"; \
3aa83176
NN
35302 rm -f no-such-file || : ; \
35303 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 35304 $(TARGET_CONFIGARGS) $${srcdiroption} \
3aa83176 35305 || exit 1
60975492 35306@endif target-gperf
4977bab6 35307
25b42232
PB
35308
35309
ce406537
PB
35310
35311
295f4e42
NN
35312.PHONY: all-target-gperf maybe-all-target-gperf
35313maybe-all-target-gperf:
3ff3adad
PB
35314@if gcc-bootstrap
35315all-target-gperf: stage_current
35316@endif gcc-bootstrap
60975492 35317@if target-gperf
7c27e184 35318TARGET-target-gperf=all
60975492 35319maybe-all-target-gperf: all-target-gperf
295f4e42 35320all-target-gperf: configure-target-gperf
f41d6665 35321 @: $(MAKE); $(unstage)
8c90b13a
L
35322 @r=`${PWD_COMMAND}`; export r; \
35323 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35324 $(NORMAL_TARGET_EXPORTS) \
295f4e42 35325 (cd $(TARGET_SUBDIR)/gperf && \
25b42232 35326 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-gperf))
60975492 35327@endif target-gperf
4977bab6 35328
25b42232
PB
35329
35330
ce406537
PB
35331
35332
295f4e42
NN
35333.PHONY: check-target-gperf maybe-check-target-gperf
35334maybe-check-target-gperf:
60975492
PB
35335@if target-gperf
35336maybe-check-target-gperf: check-target-gperf
7e2dbcef 35337
295f4e42 35338check-target-gperf:
f41d6665 35339 @: $(MAKE); $(unstage)
8c90b13a
L
35340 @r=`${PWD_COMMAND}`; export r; \
35341 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35342 $(NORMAL_TARGET_EXPORTS) \
295f4e42 35343 (cd $(TARGET_SUBDIR)/gperf && \
a52a0a7f 35344 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4977bab6 35345
60975492 35346@endif target-gperf
4977bab6 35347
295f4e42
NN
35348.PHONY: install-target-gperf maybe-install-target-gperf
35349maybe-install-target-gperf:
60975492
PB
35350@if target-gperf
35351maybe-install-target-gperf: install-target-gperf
295f4e42
NN
35352
35353install-target-gperf: installdirs
f41d6665 35354 @: $(MAKE); $(unstage)
295f4e42
NN
35355 @r=`${PWD_COMMAND}`; export r; \
35356 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35357 $(NORMAL_TARGET_EXPORTS) \
295f4e42 35358 (cd $(TARGET_SUBDIR)/gperf && \
a52a0a7f 35359 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
295f4e42 35360
60975492 35361@endif target-gperf
295f4e42
NN
35362
35363# Other targets (info, dvi, etc.)
35364
35365.PHONY: maybe-info-target-gperf info-target-gperf
35366maybe-info-target-gperf:
60975492
PB
35367@if target-gperf
35368maybe-info-target-gperf: info-target-gperf
295f4e42
NN
35369
35370info-target-gperf: \
05750653 35371 configure-target-gperf
f41d6665 35372 @: $(MAKE); $(unstage)
295f4e42
NN
35373 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
35374 r=`${PWD_COMMAND}`; export r; \
35375 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35376 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35377 echo "Doing info in $(TARGET_SUBDIR)/gperf" ; \
35378 for flag in $(EXTRA_TARGET_FLAGS); do \
35379 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35380 done; \
35381 (cd $(TARGET_SUBDIR)/gperf && \
35382 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35383 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35384 "RANLIB=$${RANLIB}" \
35385 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35386 info) \
295f4e42
NN
35387 || exit 1
35388
60975492 35389@endif target-gperf
295f4e42
NN
35390
35391.PHONY: maybe-dvi-target-gperf dvi-target-gperf
35392maybe-dvi-target-gperf:
60975492
PB
35393@if target-gperf
35394maybe-dvi-target-gperf: dvi-target-gperf
295f4e42
NN
35395
35396dvi-target-gperf: \
05750653 35397 configure-target-gperf
f41d6665 35398 @: $(MAKE); $(unstage)
295f4e42
NN
35399 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
35400 r=`${PWD_COMMAND}`; export r; \
35401 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35402 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35403 echo "Doing dvi in $(TARGET_SUBDIR)/gperf" ; \
35404 for flag in $(EXTRA_TARGET_FLAGS); do \
35405 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35406 done; \
35407 (cd $(TARGET_SUBDIR)/gperf && \
35408 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35409 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35410 "RANLIB=$${RANLIB}" \
35411 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35412 dvi) \
295f4e42
NN
35413 || exit 1
35414
60975492 35415@endif target-gperf
295f4e42 35416
f87a2b2e
MS
35417.PHONY: maybe-html-target-gperf html-target-gperf
35418maybe-html-target-gperf:
35419@if target-gperf
35420maybe-html-target-gperf: html-target-gperf
35421
35422html-target-gperf: \
05750653 35423 configure-target-gperf
f41d6665 35424 @: $(MAKE); $(unstage)
f87a2b2e
MS
35425 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
35426 r=`${PWD_COMMAND}`; export r; \
35427 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
35428 $(NORMAL_TARGET_EXPORTS) \
35429 echo "Doing html in $(TARGET_SUBDIR)/gperf" ; \
35430 for flag in $(EXTRA_TARGET_FLAGS); do \
35431 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35432 done; \
35433 (cd $(TARGET_SUBDIR)/gperf && \
35434 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35435 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35436 "RANLIB=$${RANLIB}" \
35437 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
35438 html) \
35439 || exit 1
35440
35441@endif target-gperf
35442
295f4e42
NN
35443.PHONY: maybe-TAGS-target-gperf TAGS-target-gperf
35444maybe-TAGS-target-gperf:
60975492
PB
35445@if target-gperf
35446maybe-TAGS-target-gperf: TAGS-target-gperf
295f4e42
NN
35447
35448TAGS-target-gperf: \
05750653 35449 configure-target-gperf
f41d6665 35450 @: $(MAKE); $(unstage)
295f4e42
NN
35451 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
35452 r=`${PWD_COMMAND}`; export r; \
35453 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35454 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35455 echo "Doing TAGS in $(TARGET_SUBDIR)/gperf" ; \
35456 for flag in $(EXTRA_TARGET_FLAGS); do \
35457 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35458 done; \
35459 (cd $(TARGET_SUBDIR)/gperf && \
35460 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35461 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35462 "RANLIB=$${RANLIB}" \
35463 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35464 TAGS) \
295f4e42
NN
35465 || exit 1
35466
60975492 35467@endif target-gperf
295f4e42
NN
35468
35469.PHONY: maybe-install-info-target-gperf install-info-target-gperf
35470maybe-install-info-target-gperf:
60975492
PB
35471@if target-gperf
35472maybe-install-info-target-gperf: install-info-target-gperf
295f4e42
NN
35473
35474install-info-target-gperf: \
35475 configure-target-gperf \
05750653 35476 info-target-gperf
f41d6665 35477 @: $(MAKE); $(unstage)
295f4e42
NN
35478 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
35479 r=`${PWD_COMMAND}`; export r; \
35480 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35481 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35482 echo "Doing install-info in $(TARGET_SUBDIR)/gperf" ; \
35483 for flag in $(EXTRA_TARGET_FLAGS); do \
35484 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35485 done; \
35486 (cd $(TARGET_SUBDIR)/gperf && \
35487 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35488 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35489 "RANLIB=$${RANLIB}" \
35490 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35491 install-info) \
295f4e42
NN
35492 || exit 1
35493
60975492 35494@endif target-gperf
295f4e42 35495
65d6e994
CD
35496.PHONY: maybe-install-html-target-gperf install-html-target-gperf
35497maybe-install-html-target-gperf:
35498@if target-gperf
35499maybe-install-html-target-gperf: install-html-target-gperf
35500
35501install-html-target-gperf: \
35502 configure-target-gperf \
35503 html-target-gperf
35504 @: $(MAKE); $(unstage)
35505 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
35506 r=`${PWD_COMMAND}`; export r; \
35507 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35508 $(NORMAL_TARGET_EXPORTS) \
35509 echo "Doing install-html in $(TARGET_SUBDIR)/gperf" ; \
35510 for flag in $(EXTRA_TARGET_FLAGS); do \
35511 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35512 done; \
35513 (cd $(TARGET_SUBDIR)/gperf && \
35514 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35515 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35516 "RANLIB=$${RANLIB}" \
35517 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
35518 install-html) \
35519 || exit 1
35520
35521@endif target-gperf
35522
295f4e42
NN
35523.PHONY: maybe-installcheck-target-gperf installcheck-target-gperf
35524maybe-installcheck-target-gperf:
60975492
PB
35525@if target-gperf
35526maybe-installcheck-target-gperf: installcheck-target-gperf
295f4e42
NN
35527
35528installcheck-target-gperf: \
05750653 35529 configure-target-gperf
f41d6665 35530 @: $(MAKE); $(unstage)
295f4e42
NN
35531 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
35532 r=`${PWD_COMMAND}`; export r; \
35533 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35534 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35535 echo "Doing installcheck in $(TARGET_SUBDIR)/gperf" ; \
35536 for flag in $(EXTRA_TARGET_FLAGS); do \
35537 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35538 done; \
35539 (cd $(TARGET_SUBDIR)/gperf && \
35540 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35541 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35542 "RANLIB=$${RANLIB}" \
35543 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35544 installcheck) \
295f4e42
NN
35545 || exit 1
35546
60975492 35547@endif target-gperf
295f4e42
NN
35548
35549.PHONY: maybe-mostlyclean-target-gperf mostlyclean-target-gperf
35550maybe-mostlyclean-target-gperf:
60975492
PB
35551@if target-gperf
35552maybe-mostlyclean-target-gperf: mostlyclean-target-gperf
295f4e42 35553
05750653 35554mostlyclean-target-gperf:
f41d6665 35555 @: $(MAKE); $(unstage)
295f4e42
NN
35556 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
35557 r=`${PWD_COMMAND}`; export r; \
35558 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35559 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35560 echo "Doing mostlyclean in $(TARGET_SUBDIR)/gperf" ; \
35561 for flag in $(EXTRA_TARGET_FLAGS); do \
35562 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35563 done; \
35564 (cd $(TARGET_SUBDIR)/gperf && \
35565 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35566 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35567 "RANLIB=$${RANLIB}" \
35568 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35569 mostlyclean) \
295f4e42
NN
35570 || exit 1
35571
60975492 35572@endif target-gperf
295f4e42
NN
35573
35574.PHONY: maybe-clean-target-gperf clean-target-gperf
35575maybe-clean-target-gperf:
60975492
PB
35576@if target-gperf
35577maybe-clean-target-gperf: clean-target-gperf
295f4e42 35578
05750653 35579clean-target-gperf:
f41d6665 35580 @: $(MAKE); $(unstage)
295f4e42
NN
35581 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
35582 r=`${PWD_COMMAND}`; export r; \
35583 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35584 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35585 echo "Doing clean in $(TARGET_SUBDIR)/gperf" ; \
35586 for flag in $(EXTRA_TARGET_FLAGS); do \
35587 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35588 done; \
35589 (cd $(TARGET_SUBDIR)/gperf && \
35590 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35591 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35592 "RANLIB=$${RANLIB}" \
35593 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35594 clean) \
295f4e42
NN
35595 || exit 1
35596
60975492 35597@endif target-gperf
295f4e42
NN
35598
35599.PHONY: maybe-distclean-target-gperf distclean-target-gperf
35600maybe-distclean-target-gperf:
60975492
PB
35601@if target-gperf
35602maybe-distclean-target-gperf: distclean-target-gperf
295f4e42 35603
05750653 35604distclean-target-gperf:
f41d6665 35605 @: $(MAKE); $(unstage)
295f4e42
NN
35606 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
35607 r=`${PWD_COMMAND}`; export r; \
35608 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35609 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35610 echo "Doing distclean in $(TARGET_SUBDIR)/gperf" ; \
35611 for flag in $(EXTRA_TARGET_FLAGS); do \
35612 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35613 done; \
35614 (cd $(TARGET_SUBDIR)/gperf && \
35615 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35616 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35617 "RANLIB=$${RANLIB}" \
35618 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35619 distclean) \
295f4e42
NN
35620 || exit 1
35621
60975492 35622@endif target-gperf
295f4e42
NN
35623
35624.PHONY: maybe-maintainer-clean-target-gperf maintainer-clean-target-gperf
35625maybe-maintainer-clean-target-gperf:
60975492
PB
35626@if target-gperf
35627maybe-maintainer-clean-target-gperf: maintainer-clean-target-gperf
295f4e42 35628
05750653 35629maintainer-clean-target-gperf:
f41d6665 35630 @: $(MAKE); $(unstage)
295f4e42
NN
35631 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
35632 r=`${PWD_COMMAND}`; export r; \
35633 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35634 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35635 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/gperf" ; \
35636 for flag in $(EXTRA_TARGET_FLAGS); do \
35637 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35638 done; \
35639 (cd $(TARGET_SUBDIR)/gperf && \
35640 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35641 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35642 "RANLIB=$${RANLIB}" \
35643 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35644 maintainer-clean) \
295f4e42 35645 || exit 1
7e2dbcef 35646
60975492 35647@endif target-gperf
4977bab6
ZW
35648
35649
4977bab6 35650
25b42232
PB
35651
35652
35653.PHONY: configure-target-examples maybe-configure-target-examples
35654maybe-configure-target-examples:
3ff3adad
PB
35655@if gcc-bootstrap
35656configure-target-examples: stage_current
35657@endif gcc-bootstrap
25b42232
PB
35658@if target-examples
35659maybe-configure-target-examples: configure-target-examples
cc11cc9b 35660configure-target-examples:
f41d6665
DJ
35661 @: $(MAKE); $(unstage)
35662 @r=`${PWD_COMMAND}`; export r; \
35663 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35664 echo "Checking multilib configuration for examples..."; \
35665 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/examples ; \
35666 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/examples/multilib.tmp 2> /dev/null ; \
35667 if test -r $(TARGET_SUBDIR)/examples/multilib.out; then \
35668 if cmp -s $(TARGET_SUBDIR)/examples/multilib.tmp $(TARGET_SUBDIR)/examples/multilib.out; then \
35669 rm -f $(TARGET_SUBDIR)/examples/multilib.tmp; \
35670 else \
35671 rm -f $(TARGET_SUBDIR)/examples/Makefile; \
35672 mv $(TARGET_SUBDIR)/examples/multilib.tmp $(TARGET_SUBDIR)/examples/multilib.out; \
35673 fi; \
35674 else \
35675 mv $(TARGET_SUBDIR)/examples/multilib.tmp $(TARGET_SUBDIR)/examples/multilib.out; \
cc11cc9b
PB
35676 fi; \
35677 test ! -f $(TARGET_SUBDIR)/examples/Makefile || exit 0; \
295f4e42 35678 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/examples ; \
4fc4dd12 35679 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35680 echo Configuring in $(TARGET_SUBDIR)/examples; \
35681 cd "$(TARGET_SUBDIR)/examples" || exit 1; \
3aa83176 35682 case $(srcdir) in \
215c351a
PB
35683 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35684 *) topdir=`echo $(TARGET_SUBDIR)/examples/ | \
35685 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3aa83176 35686 esac; \
215c351a
PB
35687 srcdiroption="--srcdir=$${topdir}/examples"; \
35688 libsrcdir="$$s/examples"; \
3aa83176
NN
35689 rm -f no-such-file || : ; \
35690 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 35691 $(TARGET_CONFIGARGS) $${srcdiroption} \
3aa83176 35692 || exit 1
60975492 35693@endif target-examples
4977bab6 35694
25b42232
PB
35695
35696
ce406537
PB
35697
35698
295f4e42
NN
35699.PHONY: all-target-examples maybe-all-target-examples
35700maybe-all-target-examples:
3ff3adad
PB
35701@if gcc-bootstrap
35702all-target-examples: stage_current
35703@endif gcc-bootstrap
60975492 35704@if target-examples
7c27e184 35705TARGET-target-examples=all
60975492 35706maybe-all-target-examples: all-target-examples
295f4e42 35707all-target-examples: configure-target-examples
f41d6665 35708 @: $(MAKE); $(unstage)
8c90b13a
L
35709 @r=`${PWD_COMMAND}`; export r; \
35710 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35711 $(NORMAL_TARGET_EXPORTS) \
295f4e42 35712 (cd $(TARGET_SUBDIR)/examples && \
25b42232 35713 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-examples))
60975492 35714@endif target-examples
4977bab6 35715
25b42232
PB
35716
35717
ce406537
PB
35718
35719
295f4e42
NN
35720.PHONY: check-target-examples maybe-check-target-examples
35721maybe-check-target-examples:
60975492
PB
35722@if target-examples
35723maybe-check-target-examples: check-target-examples
7e2dbcef 35724
295f4e42
NN
35725# Dummy target for uncheckable module.
35726check-target-examples:
35727
60975492 35728@endif target-examples
295f4e42
NN
35729
35730.PHONY: install-target-examples maybe-install-target-examples
35731maybe-install-target-examples:
60975492
PB
35732@if target-examples
35733maybe-install-target-examples: install-target-examples
295f4e42
NN
35734
35735# Dummy target for uninstallable.
35736install-target-examples:
35737
60975492 35738@endif target-examples
295f4e42
NN
35739
35740# Other targets (info, dvi, etc.)
35741
35742.PHONY: maybe-info-target-examples info-target-examples
35743maybe-info-target-examples:
60975492
PB
35744@if target-examples
35745maybe-info-target-examples: info-target-examples
295f4e42
NN
35746
35747info-target-examples: \
05750653 35748 configure-target-examples
f41d6665 35749 @: $(MAKE); $(unstage)
295f4e42
NN
35750 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
35751 r=`${PWD_COMMAND}`; export r; \
8c90b13a 35752 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35753 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35754 echo "Doing info in $(TARGET_SUBDIR)/examples" ; \
35755 for flag in $(EXTRA_TARGET_FLAGS); do \
35756 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35757 done; \
35758 (cd $(TARGET_SUBDIR)/examples && \
35759 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35760 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35761 "RANLIB=$${RANLIB}" \
35762 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35763 info) \
295f4e42 35764 || exit 1
4977bab6 35765
60975492 35766@endif target-examples
4977bab6 35767
295f4e42
NN
35768.PHONY: maybe-dvi-target-examples dvi-target-examples
35769maybe-dvi-target-examples:
60975492
PB
35770@if target-examples
35771maybe-dvi-target-examples: dvi-target-examples
7e2dbcef 35772
295f4e42 35773dvi-target-examples: \
05750653 35774 configure-target-examples
f41d6665 35775 @: $(MAKE); $(unstage)
295f4e42
NN
35776 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
35777 r=`${PWD_COMMAND}`; export r; \
8c90b13a 35778 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35779 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35780 echo "Doing dvi in $(TARGET_SUBDIR)/examples" ; \
35781 for flag in $(EXTRA_TARGET_FLAGS); do \
35782 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35783 done; \
35784 (cd $(TARGET_SUBDIR)/examples && \
35785 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35786 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35787 "RANLIB=$${RANLIB}" \
35788 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35789 dvi) \
295f4e42
NN
35790 || exit 1
35791
60975492 35792@endif target-examples
295f4e42 35793
f87a2b2e
MS
35794.PHONY: maybe-html-target-examples html-target-examples
35795maybe-html-target-examples:
35796@if target-examples
35797maybe-html-target-examples: html-target-examples
35798
35799html-target-examples: \
05750653 35800 configure-target-examples
f41d6665 35801 @: $(MAKE); $(unstage)
f87a2b2e
MS
35802 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
35803 r=`${PWD_COMMAND}`; export r; \
35804 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
35805 $(NORMAL_TARGET_EXPORTS) \
35806 echo "Doing html in $(TARGET_SUBDIR)/examples" ; \
35807 for flag in $(EXTRA_TARGET_FLAGS); do \
35808 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35809 done; \
35810 (cd $(TARGET_SUBDIR)/examples && \
35811 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35812 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35813 "RANLIB=$${RANLIB}" \
35814 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
35815 html) \
35816 || exit 1
35817
35818@endif target-examples
35819
295f4e42
NN
35820.PHONY: maybe-TAGS-target-examples TAGS-target-examples
35821maybe-TAGS-target-examples:
60975492
PB
35822@if target-examples
35823maybe-TAGS-target-examples: TAGS-target-examples
295f4e42
NN
35824
35825TAGS-target-examples: \
05750653 35826 configure-target-examples
f41d6665 35827 @: $(MAKE); $(unstage)
295f4e42
NN
35828 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
35829 r=`${PWD_COMMAND}`; export r; \
35830 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35831 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35832 echo "Doing TAGS in $(TARGET_SUBDIR)/examples" ; \
35833 for flag in $(EXTRA_TARGET_FLAGS); do \
35834 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35835 done; \
35836 (cd $(TARGET_SUBDIR)/examples && \
35837 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35838 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35839 "RANLIB=$${RANLIB}" \
35840 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35841 TAGS) \
295f4e42
NN
35842 || exit 1
35843
60975492 35844@endif target-examples
295f4e42
NN
35845
35846.PHONY: maybe-install-info-target-examples install-info-target-examples
35847maybe-install-info-target-examples:
60975492
PB
35848@if target-examples
35849maybe-install-info-target-examples: install-info-target-examples
295f4e42
NN
35850
35851install-info-target-examples: \
35852 configure-target-examples \
05750653 35853 info-target-examples
f41d6665 35854 @: $(MAKE); $(unstage)
295f4e42
NN
35855 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
35856 r=`${PWD_COMMAND}`; export r; \
35857 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35858 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35859 echo "Doing install-info in $(TARGET_SUBDIR)/examples" ; \
35860 for flag in $(EXTRA_TARGET_FLAGS); do \
35861 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35862 done; \
35863 (cd $(TARGET_SUBDIR)/examples && \
35864 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35865 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35866 "RANLIB=$${RANLIB}" \
35867 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35868 install-info) \
295f4e42
NN
35869 || exit 1
35870
60975492 35871@endif target-examples
295f4e42 35872
65d6e994
CD
35873.PHONY: maybe-install-html-target-examples install-html-target-examples
35874maybe-install-html-target-examples:
35875@if target-examples
35876maybe-install-html-target-examples: install-html-target-examples
35877
35878install-html-target-examples: \
35879 configure-target-examples \
35880 html-target-examples
35881 @: $(MAKE); $(unstage)
35882 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
35883 r=`${PWD_COMMAND}`; export r; \
35884 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35885 $(NORMAL_TARGET_EXPORTS) \
35886 echo "Doing install-html in $(TARGET_SUBDIR)/examples" ; \
35887 for flag in $(EXTRA_TARGET_FLAGS); do \
35888 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35889 done; \
35890 (cd $(TARGET_SUBDIR)/examples && \
35891 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35892 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35893 "RANLIB=$${RANLIB}" \
35894 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
35895 install-html) \
35896 || exit 1
35897
35898@endif target-examples
35899
295f4e42
NN
35900.PHONY: maybe-installcheck-target-examples installcheck-target-examples
35901maybe-installcheck-target-examples:
60975492
PB
35902@if target-examples
35903maybe-installcheck-target-examples: installcheck-target-examples
295f4e42
NN
35904
35905installcheck-target-examples: \
05750653 35906 configure-target-examples
f41d6665 35907 @: $(MAKE); $(unstage)
295f4e42
NN
35908 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
35909 r=`${PWD_COMMAND}`; export r; \
35910 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35911 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35912 echo "Doing installcheck in $(TARGET_SUBDIR)/examples" ; \
35913 for flag in $(EXTRA_TARGET_FLAGS); do \
35914 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35915 done; \
35916 (cd $(TARGET_SUBDIR)/examples && \
35917 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35918 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35919 "RANLIB=$${RANLIB}" \
35920 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35921 installcheck) \
295f4e42
NN
35922 || exit 1
35923
60975492 35924@endif target-examples
295f4e42
NN
35925
35926.PHONY: maybe-mostlyclean-target-examples mostlyclean-target-examples
35927maybe-mostlyclean-target-examples:
60975492
PB
35928@if target-examples
35929maybe-mostlyclean-target-examples: mostlyclean-target-examples
295f4e42 35930
05750653 35931mostlyclean-target-examples:
f41d6665 35932 @: $(MAKE); $(unstage)
295f4e42
NN
35933 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
35934 r=`${PWD_COMMAND}`; export r; \
35935 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35936 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35937 echo "Doing mostlyclean in $(TARGET_SUBDIR)/examples" ; \
35938 for flag in $(EXTRA_TARGET_FLAGS); do \
35939 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35940 done; \
35941 (cd $(TARGET_SUBDIR)/examples && \
35942 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35943 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35944 "RANLIB=$${RANLIB}" \
35945 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35946 mostlyclean) \
295f4e42
NN
35947 || exit 1
35948
60975492 35949@endif target-examples
295f4e42
NN
35950
35951.PHONY: maybe-clean-target-examples clean-target-examples
35952maybe-clean-target-examples:
60975492
PB
35953@if target-examples
35954maybe-clean-target-examples: clean-target-examples
295f4e42 35955
05750653 35956clean-target-examples:
f41d6665 35957 @: $(MAKE); $(unstage)
295f4e42
NN
35958 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
35959 r=`${PWD_COMMAND}`; export r; \
35960 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35961 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35962 echo "Doing clean in $(TARGET_SUBDIR)/examples" ; \
35963 for flag in $(EXTRA_TARGET_FLAGS); do \
35964 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35965 done; \
35966 (cd $(TARGET_SUBDIR)/examples && \
35967 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35968 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35969 "RANLIB=$${RANLIB}" \
35970 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35971 clean) \
295f4e42
NN
35972 || exit 1
35973
60975492 35974@endif target-examples
295f4e42
NN
35975
35976.PHONY: maybe-distclean-target-examples distclean-target-examples
35977maybe-distclean-target-examples:
60975492
PB
35978@if target-examples
35979maybe-distclean-target-examples: distclean-target-examples
295f4e42 35980
05750653 35981distclean-target-examples:
f41d6665 35982 @: $(MAKE); $(unstage)
295f4e42
NN
35983 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
35984 r=`${PWD_COMMAND}`; export r; \
35985 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35986 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35987 echo "Doing distclean in $(TARGET_SUBDIR)/examples" ; \
35988 for flag in $(EXTRA_TARGET_FLAGS); do \
35989 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35990 done; \
35991 (cd $(TARGET_SUBDIR)/examples && \
35992 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35993 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35994 "RANLIB=$${RANLIB}" \
35995 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35996 distclean) \
295f4e42
NN
35997 || exit 1
35998
60975492 35999@endif target-examples
295f4e42
NN
36000
36001.PHONY: maybe-maintainer-clean-target-examples maintainer-clean-target-examples
36002maybe-maintainer-clean-target-examples:
60975492
PB
36003@if target-examples
36004maybe-maintainer-clean-target-examples: maintainer-clean-target-examples
295f4e42 36005
05750653 36006maintainer-clean-target-examples:
f41d6665 36007 @: $(MAKE); $(unstage)
295f4e42
NN
36008 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
36009 r=`${PWD_COMMAND}`; export r; \
36010 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36011 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
36012 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/examples" ; \
36013 for flag in $(EXTRA_TARGET_FLAGS); do \
36014 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36015 done; \
36016 (cd $(TARGET_SUBDIR)/examples && \
36017 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36018 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36019 "RANLIB=$${RANLIB}" \
36020 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 36021 maintainer-clean) \
295f4e42 36022 || exit 1
4977bab6 36023
60975492 36024@endif target-examples
4977bab6 36025
295f4e42 36026
4977bab6 36027
25b42232 36028
4977bab6 36029
25b42232
PB
36030.PHONY: configure-target-libffi maybe-configure-target-libffi
36031maybe-configure-target-libffi:
3ff3adad
PB
36032@if gcc-bootstrap
36033configure-target-libffi: stage_current
36034@endif gcc-bootstrap
25b42232
PB
36035@if target-libffi
36036maybe-configure-target-libffi: configure-target-libffi
cc11cc9b 36037configure-target-libffi:
f41d6665
DJ
36038 @: $(MAKE); $(unstage)
36039 @r=`${PWD_COMMAND}`; export r; \
36040 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36041 echo "Checking multilib configuration for libffi..."; \
36042 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libffi ; \
36043 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libffi/multilib.tmp 2> /dev/null ; \
36044 if test -r $(TARGET_SUBDIR)/libffi/multilib.out; then \
36045 if cmp -s $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; then \
36046 rm -f $(TARGET_SUBDIR)/libffi/multilib.tmp; \
36047 else \
36048 rm -f $(TARGET_SUBDIR)/libffi/Makefile; \
36049 mv $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; \
36050 fi; \
36051 else \
36052 mv $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; \
cc11cc9b
PB
36053 fi; \
36054 test ! -f $(TARGET_SUBDIR)/libffi/Makefile || exit 0; \
295f4e42 36055 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libffi ; \
4fc4dd12 36056 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
36057 echo Configuring in $(TARGET_SUBDIR)/libffi; \
36058 cd "$(TARGET_SUBDIR)/libffi" || exit 1; \
3aa83176 36059 case $(srcdir) in \
215c351a
PB
36060 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
36061 *) topdir=`echo $(TARGET_SUBDIR)/libffi/ | \
36062 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3aa83176 36063 esac; \
215c351a
PB
36064 srcdiroption="--srcdir=$${topdir}/libffi"; \
36065 libsrcdir="$$s/libffi"; \
3aa83176
NN
36066 rm -f no-such-file || : ; \
36067 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 36068 $(TARGET_CONFIGARGS) $${srcdiroption} \
3aa83176 36069 || exit 1
60975492 36070@endif target-libffi
4977bab6 36071
25b42232
PB
36072
36073
ce406537
PB
36074
36075
295f4e42
NN
36076.PHONY: all-target-libffi maybe-all-target-libffi
36077maybe-all-target-libffi:
3ff3adad
PB
36078@if gcc-bootstrap
36079all-target-libffi: stage_current
36080@endif gcc-bootstrap
60975492 36081@if target-libffi
7c27e184 36082TARGET-target-libffi=all
60975492 36083maybe-all-target-libffi: all-target-libffi
295f4e42 36084all-target-libffi: configure-target-libffi
f41d6665 36085 @: $(MAKE); $(unstage)
8c90b13a
L
36086 @r=`${PWD_COMMAND}`; export r; \
36087 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36088 $(NORMAL_TARGET_EXPORTS) \
295f4e42 36089 (cd $(TARGET_SUBDIR)/libffi && \
25b42232 36090 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libffi))
60975492 36091@endif target-libffi
4977bab6 36092
25b42232
PB
36093
36094
ce406537
PB
36095
36096
295f4e42
NN
36097.PHONY: check-target-libffi maybe-check-target-libffi
36098maybe-check-target-libffi:
60975492
PB
36099@if target-libffi
36100maybe-check-target-libffi: check-target-libffi
7e2dbcef 36101
295f4e42 36102check-target-libffi:
f41d6665 36103 @: $(MAKE); $(unstage)
8c90b13a
L
36104 @r=`${PWD_COMMAND}`; export r; \
36105 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36106 $(NORMAL_TARGET_EXPORTS) \
295f4e42 36107 (cd $(TARGET_SUBDIR)/libffi && \
a52a0a7f 36108 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4977bab6 36109
60975492 36110@endif target-libffi
4977bab6 36111
295f4e42
NN
36112.PHONY: install-target-libffi maybe-install-target-libffi
36113maybe-install-target-libffi:
60975492
PB
36114@if target-libffi
36115maybe-install-target-libffi: install-target-libffi
7e2dbcef 36116
295f4e42 36117install-target-libffi: installdirs
f41d6665 36118 @: $(MAKE); $(unstage)
8c90b13a
L
36119 @r=`${PWD_COMMAND}`; export r; \
36120 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36121 $(NORMAL_TARGET_EXPORTS) \
295f4e42 36122 (cd $(TARGET_SUBDIR)/libffi && \
a52a0a7f 36123 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4977bab6 36124
60975492 36125@endif target-libffi
4977bab6 36126
295f4e42
NN
36127# Other targets (info, dvi, etc.)
36128
36129.PHONY: maybe-info-target-libffi info-target-libffi
36130maybe-info-target-libffi:
60975492
PB
36131@if target-libffi
36132maybe-info-target-libffi: info-target-libffi
295f4e42
NN
36133
36134info-target-libffi: \
05750653 36135 configure-target-libffi
f41d6665 36136 @: $(MAKE); $(unstage)
295f4e42
NN
36137 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
36138 r=`${PWD_COMMAND}`; export r; \
36139 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36140 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
36141 echo "Doing info in $(TARGET_SUBDIR)/libffi" ; \
36142 for flag in $(EXTRA_TARGET_FLAGS); do \
36143 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36144 done; \
36145 (cd $(TARGET_SUBDIR)/libffi && \
36146 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36147 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36148 "RANLIB=$${RANLIB}" \
36149 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 36150 info) \
295f4e42
NN
36151 || exit 1
36152
60975492 36153@endif target-libffi
295f4e42
NN
36154
36155.PHONY: maybe-dvi-target-libffi dvi-target-libffi
36156maybe-dvi-target-libffi:
60975492
PB
36157@if target-libffi
36158maybe-dvi-target-libffi: dvi-target-libffi
295f4e42
NN
36159
36160dvi-target-libffi: \
05750653 36161 configure-target-libffi
f41d6665 36162 @: $(MAKE); $(unstage)
295f4e42
NN
36163 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
36164 r=`${PWD_COMMAND}`; export r; \
36165 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36166 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
36167 echo "Doing dvi in $(TARGET_SUBDIR)/libffi" ; \
36168 for flag in $(EXTRA_TARGET_FLAGS); do \
36169 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36170 done; \
36171 (cd $(TARGET_SUBDIR)/libffi && \
36172 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36173 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36174 "RANLIB=$${RANLIB}" \
36175 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 36176 dvi) \
295f4e42
NN
36177 || exit 1
36178
60975492 36179@endif target-libffi
295f4e42 36180
f87a2b2e
MS
36181.PHONY: maybe-html-target-libffi html-target-libffi
36182maybe-html-target-libffi:
36183@if target-libffi
36184maybe-html-target-libffi: html-target-libffi
36185
36186html-target-libffi: \
05750653 36187 configure-target-libffi
f41d6665 36188 @: $(MAKE); $(unstage)
f87a2b2e
MS
36189 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
36190 r=`${PWD_COMMAND}`; export r; \
36191 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
36192 $(NORMAL_TARGET_EXPORTS) \
36193 echo "Doing html in $(TARGET_SUBDIR)/libffi" ; \
36194 for flag in $(EXTRA_TARGET_FLAGS); do \
36195 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36196 done; \
36197 (cd $(TARGET_SUBDIR)/libffi && \
36198 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36199 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36200 "RANLIB=$${RANLIB}" \
36201 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
36202 html) \
36203 || exit 1
36204
36205@endif target-libffi
36206
295f4e42
NN
36207.PHONY: maybe-TAGS-target-libffi TAGS-target-libffi
36208maybe-TAGS-target-libffi:
60975492
PB
36209@if target-libffi
36210maybe-TAGS-target-libffi: TAGS-target-libffi
295f4e42
NN
36211
36212TAGS-target-libffi: \
05750653 36213 configure-target-libffi
f41d6665 36214 @: $(MAKE); $(unstage)
295f4e42
NN
36215 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
36216 r=`${PWD_COMMAND}`; export r; \
36217 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36218 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
36219 echo "Doing TAGS in $(TARGET_SUBDIR)/libffi" ; \
36220 for flag in $(EXTRA_TARGET_FLAGS); do \
36221 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36222 done; \
36223 (cd $(TARGET_SUBDIR)/libffi && \
36224 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36225 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36226 "RANLIB=$${RANLIB}" \
36227 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 36228 TAGS) \
295f4e42
NN
36229 || exit 1
36230
60975492 36231@endif target-libffi
295f4e42
NN
36232
36233.PHONY: maybe-install-info-target-libffi install-info-target-libffi
36234maybe-install-info-target-libffi:
60975492
PB
36235@if target-libffi
36236maybe-install-info-target-libffi: install-info-target-libffi
295f4e42
NN
36237
36238install-info-target-libffi: \
36239 configure-target-libffi \
05750653 36240 info-target-libffi
f41d6665 36241 @: $(MAKE); $(unstage)
295f4e42
NN
36242 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
36243 r=`${PWD_COMMAND}`; export r; \
36244 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36245 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
36246 echo "Doing install-info in $(TARGET_SUBDIR)/libffi" ; \
36247 for flag in $(EXTRA_TARGET_FLAGS); do \
36248 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36249 done; \
36250 (cd $(TARGET_SUBDIR)/libffi && \
36251 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36252 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36253 "RANLIB=$${RANLIB}" \
36254 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 36255 install-info) \
295f4e42
NN
36256 || exit 1
36257
60975492 36258@endif target-libffi
295f4e42 36259
65d6e994
CD
36260.PHONY: maybe-install-html-target-libffi install-html-target-libffi
36261maybe-install-html-target-libffi:
36262@if target-libffi
36263maybe-install-html-target-libffi: install-html-target-libffi
36264
36265install-html-target-libffi: \
36266 configure-target-libffi \
36267 html-target-libffi
36268 @: $(MAKE); $(unstage)
36269 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
36270 r=`${PWD_COMMAND}`; export r; \
36271 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36272 $(NORMAL_TARGET_EXPORTS) \
36273 echo "Doing install-html in $(TARGET_SUBDIR)/libffi" ; \
36274 for flag in $(EXTRA_TARGET_FLAGS); do \
36275 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36276 done; \
36277 (cd $(TARGET_SUBDIR)/libffi && \
36278 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36279 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36280 "RANLIB=$${RANLIB}" \
36281 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
36282 install-html) \
36283 || exit 1
36284
36285@endif target-libffi
36286
295f4e42
NN
36287.PHONY: maybe-installcheck-target-libffi installcheck-target-libffi
36288maybe-installcheck-target-libffi:
60975492
PB
36289@if target-libffi
36290maybe-installcheck-target-libffi: installcheck-target-libffi
295f4e42
NN
36291
36292installcheck-target-libffi: \
05750653 36293 configure-target-libffi
f41d6665 36294 @: $(MAKE); $(unstage)
295f4e42
NN
36295 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
36296 r=`${PWD_COMMAND}`; export r; \
36297 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36298 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
36299 echo "Doing installcheck in $(TARGET_SUBDIR)/libffi" ; \
36300 for flag in $(EXTRA_TARGET_FLAGS); do \
36301 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36302 done; \
36303 (cd $(TARGET_SUBDIR)/libffi && \
36304 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36305 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36306 "RANLIB=$${RANLIB}" \
36307 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 36308 installcheck) \
295f4e42
NN
36309 || exit 1
36310
60975492 36311@endif target-libffi
295f4e42
NN
36312
36313.PHONY: maybe-mostlyclean-target-libffi mostlyclean-target-libffi
36314maybe-mostlyclean-target-libffi:
60975492
PB
36315@if target-libffi
36316maybe-mostlyclean-target-libffi: mostlyclean-target-libffi
295f4e42 36317
05750653 36318mostlyclean-target-libffi:
f41d6665 36319 @: $(MAKE); $(unstage)
295f4e42
NN
36320 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
36321 r=`${PWD_COMMAND}`; export r; \
36322 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36323 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
36324 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libffi" ; \
36325 for flag in $(EXTRA_TARGET_FLAGS); do \
36326 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36327 done; \
36328 (cd $(TARGET_SUBDIR)/libffi && \
36329 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36330 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36331 "RANLIB=$${RANLIB}" \
36332 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 36333 mostlyclean) \
295f4e42
NN
36334 || exit 1
36335
60975492 36336@endif target-libffi
295f4e42
NN
36337
36338.PHONY: maybe-clean-target-libffi clean-target-libffi
36339maybe-clean-target-libffi:
60975492
PB
36340@if target-libffi
36341maybe-clean-target-libffi: clean-target-libffi
295f4e42 36342
05750653 36343clean-target-libffi:
f41d6665 36344 @: $(MAKE); $(unstage)
295f4e42
NN
36345 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
36346 r=`${PWD_COMMAND}`; export r; \
36347 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36348 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
36349 echo "Doing clean in $(TARGET_SUBDIR)/libffi" ; \
36350 for flag in $(EXTRA_TARGET_FLAGS); do \
36351 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36352 done; \
36353 (cd $(TARGET_SUBDIR)/libffi && \
36354 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36355 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36356 "RANLIB=$${RANLIB}" \
36357 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 36358 clean) \
295f4e42
NN
36359 || exit 1
36360
60975492 36361@endif target-libffi
295f4e42
NN
36362
36363.PHONY: maybe-distclean-target-libffi distclean-target-libffi
36364maybe-distclean-target-libffi:
60975492
PB
36365@if target-libffi
36366maybe-distclean-target-libffi: distclean-target-libffi
295f4e42 36367
05750653 36368distclean-target-libffi:
f41d6665 36369 @: $(MAKE); $(unstage)
295f4e42
NN
36370 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
36371 r=`${PWD_COMMAND}`; export r; \
36372 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36373 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
36374 echo "Doing distclean in $(TARGET_SUBDIR)/libffi" ; \
36375 for flag in $(EXTRA_TARGET_FLAGS); do \
36376 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36377 done; \
36378 (cd $(TARGET_SUBDIR)/libffi && \
36379 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36380 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36381 "RANLIB=$${RANLIB}" \
36382 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 36383 distclean) \
295f4e42
NN
36384 || exit 1
36385
60975492 36386@endif target-libffi
295f4e42
NN
36387
36388.PHONY: maybe-maintainer-clean-target-libffi maintainer-clean-target-libffi
36389maybe-maintainer-clean-target-libffi:
60975492
PB
36390@if target-libffi
36391maybe-maintainer-clean-target-libffi: maintainer-clean-target-libffi
295f4e42 36392
05750653 36393maintainer-clean-target-libffi:
f41d6665 36394 @: $(MAKE); $(unstage)
295f4e42
NN
36395 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
36396 r=`${PWD_COMMAND}`; export r; \
36397 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36398 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
36399 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libffi" ; \
36400 for flag in $(EXTRA_TARGET_FLAGS); do \
36401 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36402 done; \
36403 (cd $(TARGET_SUBDIR)/libffi && \
36404 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36405 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36406 "RANLIB=$${RANLIB}" \
36407 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 36408 maintainer-clean) \
295f4e42
NN
36409 || exit 1
36410
60975492 36411@endif target-libffi
295f4e42
NN
36412
36413
4977bab6 36414
25b42232 36415
4977bab6 36416
25b42232
PB
36417.PHONY: configure-target-libjava maybe-configure-target-libjava
36418maybe-configure-target-libjava:
3ff3adad
PB
36419@if gcc-bootstrap
36420configure-target-libjava: stage_current
36421@endif gcc-bootstrap
25b42232
PB
36422@if target-libjava
36423maybe-configure-target-libjava: configure-target-libjava
cc11cc9b 36424configure-target-libjava:
f41d6665
DJ
36425 @: $(MAKE); $(unstage)
36426 @r=`${PWD_COMMAND}`; export r; \
36427 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36428 echo "Checking multilib configuration for libjava..."; \
36429 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libjava ; \
36430 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libjava/multilib.tmp 2> /dev/null ; \
36431 if test -r $(TARGET_SUBDIR)/libjava/multilib.out; then \
36432 if cmp -s $(TARGET_SUBDIR)/libjava/multilib.tmp $(TARGET_SUBDIR)/libjava/multilib.out; then \
36433 rm -f $(TARGET_SUBDIR)/libjava/multilib.tmp; \
36434 else \
36435 rm -f $(TARGET_SUBDIR)/libjava/Makefile; \
36436 mv $(TARGET_SUBDIR)/libjava/multilib.tmp $(TARGET_SUBDIR)/libjava/multilib.out; \
36437 fi; \
36438 else \
36439 mv $(TARGET_SUBDIR)/libjava/multilib.tmp $(TARGET_SUBDIR)/libjava/multilib.out; \
cc11cc9b
PB
36440 fi; \
36441 test ! -f $(TARGET_SUBDIR)/libjava/Makefile || exit 0; \
295f4e42 36442 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libjava ; \
4fc4dd12 36443 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
36444 echo Configuring in $(TARGET_SUBDIR)/libjava; \
36445 cd "$(TARGET_SUBDIR)/libjava" || exit 1; \
3aa83176 36446 case $(srcdir) in \
215c351a
PB
36447 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
36448 *) topdir=`echo $(TARGET_SUBDIR)/libjava/ | \
36449 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3aa83176 36450 esac; \
215c351a
PB
36451 srcdiroption="--srcdir=$${topdir}/libjava"; \
36452 libsrcdir="$$s/libjava"; \
3aa83176
NN
36453 rm -f no-such-file || : ; \
36454 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 36455 $(TARGET_CONFIGARGS) $${srcdiroption} \
3aa83176 36456 || exit 1
60975492 36457@endif target-libjava
4977bab6 36458
25b42232
PB
36459
36460
ce406537
PB
36461
36462
295f4e42
NN
36463.PHONY: all-target-libjava maybe-all-target-libjava
36464maybe-all-target-libjava:
3ff3adad
PB
36465@if gcc-bootstrap
36466all-target-libjava: stage_current
36467@endif gcc-bootstrap
60975492 36468@if target-libjava
7c27e184 36469TARGET-target-libjava=all
60975492 36470maybe-all-target-libjava: all-target-libjava
295f4e42 36471all-target-libjava: configure-target-libjava
f41d6665 36472 @: $(MAKE); $(unstage)
8c90b13a
L
36473 @r=`${PWD_COMMAND}`; export r; \
36474 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36475 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42 36476 (cd $(TARGET_SUBDIR)/libjava && \
25b42232 36477 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' $(TARGET-target-libjava))
60975492 36478@endif target-libjava
4977bab6 36479
25b42232
PB
36480
36481
ce406537
PB
36482
36483
295f4e42
NN
36484.PHONY: check-target-libjava maybe-check-target-libjava
36485maybe-check-target-libjava:
60975492
PB
36486@if target-libjava
36487maybe-check-target-libjava: check-target-libjava
7e2dbcef 36488
295f4e42 36489check-target-libjava:
f41d6665 36490 @: $(MAKE); $(unstage)
295f4e42
NN
36491 @r=`${PWD_COMMAND}`; export r; \
36492 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36493 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42 36494 (cd $(TARGET_SUBDIR)/libjava && \
a52a0a7f 36495 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
4977bab6 36496
60975492 36497@endif target-libjava
4977bab6 36498
295f4e42
NN
36499.PHONY: install-target-libjava maybe-install-target-libjava
36500maybe-install-target-libjava:
60975492
PB
36501@if target-libjava
36502maybe-install-target-libjava: install-target-libjava
7e2dbcef 36503
295f4e42 36504install-target-libjava: installdirs
f41d6665 36505 @: $(MAKE); $(unstage)
8c90b13a
L
36506 @r=`${PWD_COMMAND}`; export r; \
36507 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36508 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42 36509 (cd $(TARGET_SUBDIR)/libjava && \
a52a0a7f 36510 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4977bab6 36511
60975492 36512@endif target-libjava
4977bab6 36513
295f4e42 36514# Other targets (info, dvi, etc.)
4977bab6 36515
295f4e42
NN
36516.PHONY: maybe-info-target-libjava info-target-libjava
36517maybe-info-target-libjava:
60975492
PB
36518@if target-libjava
36519maybe-info-target-libjava: info-target-libjava
4977bab6 36520
295f4e42 36521info-target-libjava: \
05750653 36522 configure-target-libjava
f41d6665 36523 @: $(MAKE); $(unstage)
295f4e42 36524 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
8c90b13a
L
36525 r=`${PWD_COMMAND}`; export r; \
36526 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36527 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
36528 echo "Doing info in $(TARGET_SUBDIR)/libjava" ; \
36529 for flag in $(EXTRA_TARGET_FLAGS); do \
36530 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36531 done; \
36532 (cd $(TARGET_SUBDIR)/libjava && \
36533 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36534 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36535 "RANLIB=$${RANLIB}" \
36536 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 36537 info) \
3aa83176 36538 || exit 1
4977bab6 36539
60975492 36540@endif target-libjava
295f4e42
NN
36541
36542.PHONY: maybe-dvi-target-libjava dvi-target-libjava
36543maybe-dvi-target-libjava:
60975492
PB
36544@if target-libjava
36545maybe-dvi-target-libjava: dvi-target-libjava
295f4e42
NN
36546
36547dvi-target-libjava: \
05750653 36548 configure-target-libjava
f41d6665 36549 @: $(MAKE); $(unstage)
295f4e42
NN
36550 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
36551 r=`${PWD_COMMAND}`; export r; \
8c90b13a 36552 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36553 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
36554 echo "Doing dvi in $(TARGET_SUBDIR)/libjava" ; \
36555 for flag in $(EXTRA_TARGET_FLAGS); do \
36556 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36557 done; \
36558 (cd $(TARGET_SUBDIR)/libjava && \
36559 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36560 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36561 "RANLIB=$${RANLIB}" \
36562 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 36563 dvi) \
295f4e42 36564 || exit 1
4977bab6 36565
60975492 36566@endif target-libjava
7e2dbcef 36567
f87a2b2e
MS
36568.PHONY: maybe-html-target-libjava html-target-libjava
36569maybe-html-target-libjava:
36570@if target-libjava
36571maybe-html-target-libjava: html-target-libjava
36572
36573html-target-libjava: \
05750653 36574 configure-target-libjava
f41d6665 36575 @: $(MAKE); $(unstage)
f87a2b2e
MS
36576 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
36577 r=`${PWD_COMMAND}`; export r; \
36578 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
36579 $(RAW_CXX_TARGET_EXPORTS) \
36580 echo "Doing html in $(TARGET_SUBDIR)/libjava" ; \
36581 for flag in $(EXTRA_TARGET_FLAGS); do \
36582 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36583 done; \
36584 (cd $(TARGET_SUBDIR)/libjava && \
36585 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36586 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36587 "RANLIB=$${RANLIB}" \
36588 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
36589 html) \
36590 || exit 1
36591
36592@endif target-libjava
36593
295f4e42
NN
36594.PHONY: maybe-TAGS-target-libjava TAGS-target-libjava
36595maybe-TAGS-target-libjava:
60975492
PB
36596@if target-libjava
36597maybe-TAGS-target-libjava: TAGS-target-libjava
295f4e42
NN
36598
36599TAGS-target-libjava: \
05750653 36600 configure-target-libjava
f41d6665 36601 @: $(MAKE); $(unstage)
295f4e42
NN
36602 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
36603 r=`${PWD_COMMAND}`; export r; \
8c90b13a 36604 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36605 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
36606 echo "Doing TAGS in $(TARGET_SUBDIR)/libjava" ; \
36607 for flag in $(EXTRA_TARGET_FLAGS); do \
36608 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36609 done; \
36610 (cd $(TARGET_SUBDIR)/libjava && \
36611 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36612 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36613 "RANLIB=$${RANLIB}" \
36614 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 36615 TAGS) \
295f4e42 36616 || exit 1
4977bab6 36617
60975492 36618@endif target-libjava
4977bab6 36619
295f4e42
NN
36620.PHONY: maybe-install-info-target-libjava install-info-target-libjava
36621maybe-install-info-target-libjava:
60975492
PB
36622@if target-libjava
36623maybe-install-info-target-libjava: install-info-target-libjava
7e2dbcef 36624
295f4e42
NN
36625install-info-target-libjava: \
36626 configure-target-libjava \
05750653 36627 info-target-libjava
f41d6665 36628 @: $(MAKE); $(unstage)
295f4e42
NN
36629 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
36630 r=`${PWD_COMMAND}`; export r; \
8c90b13a 36631 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36632 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
36633 echo "Doing install-info in $(TARGET_SUBDIR)/libjava" ; \
36634 for flag in $(EXTRA_TARGET_FLAGS); do \
36635 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36636 done; \
36637 (cd $(TARGET_SUBDIR)/libjava && \
36638 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36639 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36640 "RANLIB=$${RANLIB}" \
36641 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 36642 install-info) \
295f4e42 36643 || exit 1
4977bab6 36644
60975492 36645@endif target-libjava
4977bab6 36646
65d6e994
CD
36647.PHONY: maybe-install-html-target-libjava install-html-target-libjava
36648maybe-install-html-target-libjava:
36649@if target-libjava
36650maybe-install-html-target-libjava: install-html-target-libjava
36651
36652install-html-target-libjava: \
36653 configure-target-libjava \
36654 html-target-libjava
36655 @: $(MAKE); $(unstage)
36656 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
36657 r=`${PWD_COMMAND}`; export r; \
36658 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36659 $(RAW_CXX_TARGET_EXPORTS) \
36660 echo "Doing install-html in $(TARGET_SUBDIR)/libjava" ; \
36661 for flag in $(EXTRA_TARGET_FLAGS); do \
36662 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36663 done; \
36664 (cd $(TARGET_SUBDIR)/libjava && \
36665 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36666 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36667 "RANLIB=$${RANLIB}" \
36668 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
36669 install-html) \
36670 || exit 1
36671
36672@endif target-libjava
36673
295f4e42
NN
36674.PHONY: maybe-installcheck-target-libjava installcheck-target-libjava
36675maybe-installcheck-target-libjava:
60975492
PB
36676@if target-libjava
36677maybe-installcheck-target-libjava: installcheck-target-libjava
4977bab6 36678
295f4e42 36679installcheck-target-libjava: \
05750653 36680 configure-target-libjava
f41d6665 36681 @: $(MAKE); $(unstage)
295f4e42
NN
36682 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
36683 r=`${PWD_COMMAND}`; export r; \
36684 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36685 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
36686 echo "Doing installcheck in $(TARGET_SUBDIR)/libjava" ; \
36687 for flag in $(EXTRA_TARGET_FLAGS); do \
36688 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36689 done; \
36690 (cd $(TARGET_SUBDIR)/libjava && \
36691 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36692 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36693 "RANLIB=$${RANLIB}" \
36694 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 36695 installcheck) \
295f4e42 36696 || exit 1
4977bab6 36697
60975492 36698@endif target-libjava
295f4e42
NN
36699
36700.PHONY: maybe-mostlyclean-target-libjava mostlyclean-target-libjava
36701maybe-mostlyclean-target-libjava:
60975492
PB
36702@if target-libjava
36703maybe-mostlyclean-target-libjava: mostlyclean-target-libjava
295f4e42 36704
05750653 36705mostlyclean-target-libjava:
f41d6665 36706 @: $(MAKE); $(unstage)
295f4e42
NN
36707 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
36708 r=`${PWD_COMMAND}`; export r; \
36709 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36710 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
36711 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libjava" ; \
36712 for flag in $(EXTRA_TARGET_FLAGS); do \
36713 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36714 done; \
36715 (cd $(TARGET_SUBDIR)/libjava && \
36716 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36717 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36718 "RANLIB=$${RANLIB}" \
36719 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 36720 mostlyclean) \
295f4e42
NN
36721 || exit 1
36722
60975492 36723@endif target-libjava
295f4e42
NN
36724
36725.PHONY: maybe-clean-target-libjava clean-target-libjava
36726maybe-clean-target-libjava:
60975492
PB
36727@if target-libjava
36728maybe-clean-target-libjava: clean-target-libjava
295f4e42 36729
05750653 36730clean-target-libjava:
f41d6665 36731 @: $(MAKE); $(unstage)
295f4e42 36732 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
8c90b13a
L
36733 r=`${PWD_COMMAND}`; export r; \
36734 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36735 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
36736 echo "Doing clean in $(TARGET_SUBDIR)/libjava" ; \
36737 for flag in $(EXTRA_TARGET_FLAGS); do \
36738 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36739 done; \
36740 (cd $(TARGET_SUBDIR)/libjava && \
36741 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36742 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36743 "RANLIB=$${RANLIB}" \
36744 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 36745 clean) \
3aa83176 36746 || exit 1
4977bab6 36747
60975492 36748@endif target-libjava
4977bab6 36749
295f4e42
NN
36750.PHONY: maybe-distclean-target-libjava distclean-target-libjava
36751maybe-distclean-target-libjava:
60975492
PB
36752@if target-libjava
36753maybe-distclean-target-libjava: distclean-target-libjava
7e2dbcef 36754
05750653 36755distclean-target-libjava:
f41d6665 36756 @: $(MAKE); $(unstage)
295f4e42
NN
36757 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
36758 r=`${PWD_COMMAND}`; export r; \
36759 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36760 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
36761 echo "Doing distclean in $(TARGET_SUBDIR)/libjava" ; \
36762 for flag in $(EXTRA_TARGET_FLAGS); do \
36763 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36764 done; \
36765 (cd $(TARGET_SUBDIR)/libjava && \
36766 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36767 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36768 "RANLIB=$${RANLIB}" \
36769 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 36770 distclean) \
295f4e42 36771 || exit 1
4977bab6 36772
60975492 36773@endif target-libjava
4977bab6 36774
295f4e42
NN
36775.PHONY: maybe-maintainer-clean-target-libjava maintainer-clean-target-libjava
36776maybe-maintainer-clean-target-libjava:
60975492
PB
36777@if target-libjava
36778maybe-maintainer-clean-target-libjava: maintainer-clean-target-libjava
7e2dbcef 36779
05750653 36780maintainer-clean-target-libjava:
f41d6665 36781 @: $(MAKE); $(unstage)
295f4e42
NN
36782 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
36783 r=`${PWD_COMMAND}`; export r; \
8c90b13a 36784 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36785 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
36786 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libjava" ; \
36787 for flag in $(EXTRA_TARGET_FLAGS); do \
36788 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36789 done; \
36790 (cd $(TARGET_SUBDIR)/libjava && \
36791 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36792 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36793 "RANLIB=$${RANLIB}" \
36794 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 36795 maintainer-clean) \
295f4e42 36796 || exit 1
4977bab6 36797
60975492 36798@endif target-libjava
4977bab6 36799
295f4e42 36800
4977bab6 36801
25b42232 36802
4977bab6 36803
25b42232
PB
36804.PHONY: configure-target-zlib maybe-configure-target-zlib
36805maybe-configure-target-zlib:
3ff3adad
PB
36806@if gcc-bootstrap
36807configure-target-zlib: stage_current
36808@endif gcc-bootstrap
25b42232
PB
36809@if target-zlib
36810maybe-configure-target-zlib: configure-target-zlib
cc11cc9b 36811configure-target-zlib:
f41d6665
DJ
36812 @: $(MAKE); $(unstage)
36813 @r=`${PWD_COMMAND}`; export r; \
36814 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36815 echo "Checking multilib configuration for zlib..."; \
36816 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/zlib ; \
36817 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/zlib/multilib.tmp 2> /dev/null ; \
36818 if test -r $(TARGET_SUBDIR)/zlib/multilib.out; then \
36819 if cmp -s $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; then \
36820 rm -f $(TARGET_SUBDIR)/zlib/multilib.tmp; \
36821 else \
36822 rm -f $(TARGET_SUBDIR)/zlib/Makefile; \
36823 mv $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; \
36824 fi; \
36825 else \
36826 mv $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; \
cc11cc9b
PB
36827 fi; \
36828 test ! -f $(TARGET_SUBDIR)/zlib/Makefile || exit 0; \
295f4e42 36829 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/zlib ; \
4fc4dd12 36830 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
36831 echo Configuring in $(TARGET_SUBDIR)/zlib; \
36832 cd "$(TARGET_SUBDIR)/zlib" || exit 1; \
3aa83176 36833 case $(srcdir) in \
215c351a
PB
36834 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
36835 *) topdir=`echo $(TARGET_SUBDIR)/zlib/ | \
36836 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3aa83176 36837 esac; \
215c351a
PB
36838 srcdiroption="--srcdir=$${topdir}/zlib"; \
36839 libsrcdir="$$s/zlib"; \
3aa83176
NN
36840 rm -f no-such-file || : ; \
36841 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 36842 $(TARGET_CONFIGARGS) $${srcdiroption} \
3aa83176 36843 || exit 1
60975492 36844@endif target-zlib
4977bab6 36845
25b42232
PB
36846
36847
ce406537
PB
36848
36849
295f4e42
NN
36850.PHONY: all-target-zlib maybe-all-target-zlib
36851maybe-all-target-zlib:
3ff3adad
PB
36852@if gcc-bootstrap
36853all-target-zlib: stage_current
36854@endif gcc-bootstrap
60975492 36855@if target-zlib
7c27e184 36856TARGET-target-zlib=all
60975492 36857maybe-all-target-zlib: all-target-zlib
295f4e42 36858all-target-zlib: configure-target-zlib
f41d6665 36859 @: $(MAKE); $(unstage)
8c90b13a
L
36860 @r=`${PWD_COMMAND}`; export r; \
36861 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36862 $(NORMAL_TARGET_EXPORTS) \
295f4e42 36863 (cd $(TARGET_SUBDIR)/zlib && \
25b42232 36864 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-zlib))
60975492 36865@endif target-zlib
4977bab6 36866
25b42232
PB
36867
36868
ce406537
PB
36869
36870
295f4e42
NN
36871.PHONY: check-target-zlib maybe-check-target-zlib
36872maybe-check-target-zlib:
60975492
PB
36873@if target-zlib
36874maybe-check-target-zlib: check-target-zlib
7e2dbcef 36875
295f4e42 36876check-target-zlib:
f41d6665 36877 @: $(MAKE); $(unstage)
8c90b13a
L
36878 @r=`${PWD_COMMAND}`; export r; \
36879 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36880 $(NORMAL_TARGET_EXPORTS) \
295f4e42 36881 (cd $(TARGET_SUBDIR)/zlib && \
a52a0a7f 36882 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4977bab6 36883
60975492 36884@endif target-zlib
4977bab6 36885
295f4e42
NN
36886.PHONY: install-target-zlib maybe-install-target-zlib
36887maybe-install-target-zlib:
60975492
PB
36888@if target-zlib
36889maybe-install-target-zlib: install-target-zlib
7e2dbcef 36890
295f4e42 36891install-target-zlib: installdirs
f41d6665 36892 @: $(MAKE); $(unstage)
8c90b13a
L
36893 @r=`${PWD_COMMAND}`; export r; \
36894 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36895 $(NORMAL_TARGET_EXPORTS) \
295f4e42 36896 (cd $(TARGET_SUBDIR)/zlib && \
a52a0a7f 36897 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4977bab6 36898
60975492 36899@endif target-zlib
4977bab6 36900
295f4e42 36901# Other targets (info, dvi, etc.)
4977bab6 36902
295f4e42
NN
36903.PHONY: maybe-info-target-zlib info-target-zlib
36904maybe-info-target-zlib:
60975492
PB
36905@if target-zlib
36906maybe-info-target-zlib: info-target-zlib
4977bab6 36907
295f4e42 36908info-target-zlib: \
05750653 36909 configure-target-zlib
f41d6665 36910 @: $(MAKE); $(unstage)
295f4e42 36911 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
8c90b13a
L
36912 r=`${PWD_COMMAND}`; export r; \
36913 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36914 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
36915 echo "Doing info in $(TARGET_SUBDIR)/zlib" ; \
36916 for flag in $(EXTRA_TARGET_FLAGS); do \
36917 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36918 done; \
36919 (cd $(TARGET_SUBDIR)/zlib && \
36920 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36921 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36922 "RANLIB=$${RANLIB}" \
36923 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 36924 info) \
3aa83176 36925 || exit 1
4977bab6 36926
60975492 36927@endif target-zlib
4977bab6 36928
295f4e42
NN
36929.PHONY: maybe-dvi-target-zlib dvi-target-zlib
36930maybe-dvi-target-zlib:
60975492
PB
36931@if target-zlib
36932maybe-dvi-target-zlib: dvi-target-zlib
7e2dbcef 36933
295f4e42 36934dvi-target-zlib: \
05750653 36935 configure-target-zlib
f41d6665 36936 @: $(MAKE); $(unstage)
295f4e42
NN
36937 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
36938 r=`${PWD_COMMAND}`; export r; \
8c90b13a 36939 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36940 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
36941 echo "Doing dvi in $(TARGET_SUBDIR)/zlib" ; \
36942 for flag in $(EXTRA_TARGET_FLAGS); do \
36943 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36944 done; \
36945 (cd $(TARGET_SUBDIR)/zlib && \
36946 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36947 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36948 "RANLIB=$${RANLIB}" \
36949 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 36950 dvi) \
295f4e42 36951 || exit 1
4977bab6 36952
60975492 36953@endif target-zlib
4977bab6 36954
f87a2b2e
MS
36955.PHONY: maybe-html-target-zlib html-target-zlib
36956maybe-html-target-zlib:
36957@if target-zlib
36958maybe-html-target-zlib: html-target-zlib
36959
36960html-target-zlib: \
05750653 36961 configure-target-zlib
f41d6665 36962 @: $(MAKE); $(unstage)
f87a2b2e
MS
36963 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
36964 r=`${PWD_COMMAND}`; export r; \
36965 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
36966 $(NORMAL_TARGET_EXPORTS) \
36967 echo "Doing html in $(TARGET_SUBDIR)/zlib" ; \
36968 for flag in $(EXTRA_TARGET_FLAGS); do \
36969 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36970 done; \
36971 (cd $(TARGET_SUBDIR)/zlib && \
36972 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36973 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36974 "RANLIB=$${RANLIB}" \
36975 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
36976 html) \
36977 || exit 1
36978
36979@endif target-zlib
36980
295f4e42
NN
36981.PHONY: maybe-TAGS-target-zlib TAGS-target-zlib
36982maybe-TAGS-target-zlib:
60975492
PB
36983@if target-zlib
36984maybe-TAGS-target-zlib: TAGS-target-zlib
7e2dbcef 36985
295f4e42 36986TAGS-target-zlib: \
05750653 36987 configure-target-zlib
f41d6665 36988 @: $(MAKE); $(unstage)
295f4e42
NN
36989 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
36990 r=`${PWD_COMMAND}`; export r; \
8c90b13a 36991 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36992 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
36993 echo "Doing TAGS in $(TARGET_SUBDIR)/zlib" ; \
36994 for flag in $(EXTRA_TARGET_FLAGS); do \
36995 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36996 done; \
36997 (cd $(TARGET_SUBDIR)/zlib && \
36998 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36999 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37000 "RANLIB=$${RANLIB}" \
37001 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37002 TAGS) \
295f4e42 37003 || exit 1
4977bab6 37004
60975492 37005@endif target-zlib
4977bab6 37006
295f4e42
NN
37007.PHONY: maybe-install-info-target-zlib install-info-target-zlib
37008maybe-install-info-target-zlib:
60975492
PB
37009@if target-zlib
37010maybe-install-info-target-zlib: install-info-target-zlib
4977bab6 37011
295f4e42
NN
37012install-info-target-zlib: \
37013 configure-target-zlib \
05750653 37014 info-target-zlib
f41d6665 37015 @: $(MAKE); $(unstage)
295f4e42 37016 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
8c90b13a
L
37017 r=`${PWD_COMMAND}`; export r; \
37018 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37019 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37020 echo "Doing install-info in $(TARGET_SUBDIR)/zlib" ; \
37021 for flag in $(EXTRA_TARGET_FLAGS); do \
37022 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37023 done; \
37024 (cd $(TARGET_SUBDIR)/zlib && \
37025 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37026 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37027 "RANLIB=$${RANLIB}" \
37028 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37029 install-info) \
3aa83176 37030 || exit 1
4977bab6 37031
60975492 37032@endif target-zlib
7e2dbcef 37033
65d6e994
CD
37034.PHONY: maybe-install-html-target-zlib install-html-target-zlib
37035maybe-install-html-target-zlib:
37036@if target-zlib
37037maybe-install-html-target-zlib: install-html-target-zlib
37038
37039install-html-target-zlib: \
37040 configure-target-zlib \
37041 html-target-zlib
37042 @: $(MAKE); $(unstage)
37043 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
37044 r=`${PWD_COMMAND}`; export r; \
37045 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37046 $(NORMAL_TARGET_EXPORTS) \
37047 echo "Doing install-html in $(TARGET_SUBDIR)/zlib" ; \
37048 for flag in $(EXTRA_TARGET_FLAGS); do \
37049 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37050 done; \
37051 (cd $(TARGET_SUBDIR)/zlib && \
37052 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37053 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37054 "RANLIB=$${RANLIB}" \
37055 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
37056 install-html) \
37057 || exit 1
37058
37059@endif target-zlib
37060
295f4e42
NN
37061.PHONY: maybe-installcheck-target-zlib installcheck-target-zlib
37062maybe-installcheck-target-zlib:
60975492
PB
37063@if target-zlib
37064maybe-installcheck-target-zlib: installcheck-target-zlib
4977bab6 37065
295f4e42 37066installcheck-target-zlib: \
05750653 37067 configure-target-zlib
f41d6665 37068 @: $(MAKE); $(unstage)
295f4e42
NN
37069 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
37070 r=`${PWD_COMMAND}`; export r; \
37071 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37072 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37073 echo "Doing installcheck in $(TARGET_SUBDIR)/zlib" ; \
37074 for flag in $(EXTRA_TARGET_FLAGS); do \
37075 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37076 done; \
37077 (cd $(TARGET_SUBDIR)/zlib && \
37078 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37079 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37080 "RANLIB=$${RANLIB}" \
37081 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37082 installcheck) \
295f4e42 37083 || exit 1
4977bab6 37084
60975492 37085@endif target-zlib
7e2dbcef 37086
295f4e42
NN
37087.PHONY: maybe-mostlyclean-target-zlib mostlyclean-target-zlib
37088maybe-mostlyclean-target-zlib:
60975492
PB
37089@if target-zlib
37090maybe-mostlyclean-target-zlib: mostlyclean-target-zlib
4977bab6 37091
05750653 37092mostlyclean-target-zlib:
f41d6665 37093 @: $(MAKE); $(unstage)
295f4e42
NN
37094 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
37095 r=`${PWD_COMMAND}`; export r; \
37096 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37097 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37098 echo "Doing mostlyclean in $(TARGET_SUBDIR)/zlib" ; \
37099 for flag in $(EXTRA_TARGET_FLAGS); do \
37100 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37101 done; \
37102 (cd $(TARGET_SUBDIR)/zlib && \
37103 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37104 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37105 "RANLIB=$${RANLIB}" \
37106 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37107 mostlyclean) \
295f4e42 37108 || exit 1
4977bab6 37109
60975492 37110@endif target-zlib
4977bab6 37111
295f4e42
NN
37112.PHONY: maybe-clean-target-zlib clean-target-zlib
37113maybe-clean-target-zlib:
60975492
PB
37114@if target-zlib
37115maybe-clean-target-zlib: clean-target-zlib
4977bab6 37116
05750653 37117clean-target-zlib:
f41d6665 37118 @: $(MAKE); $(unstage)
295f4e42 37119 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
8c90b13a
L
37120 r=`${PWD_COMMAND}`; export r; \
37121 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37122 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37123 echo "Doing clean in $(TARGET_SUBDIR)/zlib" ; \
37124 for flag in $(EXTRA_TARGET_FLAGS); do \
37125 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37126 done; \
37127 (cd $(TARGET_SUBDIR)/zlib && \
37128 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37129 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37130 "RANLIB=$${RANLIB}" \
37131 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37132 clean) \
3aa83176 37133 || exit 1
4977bab6 37134
60975492 37135@endif target-zlib
4977bab6 37136
295f4e42
NN
37137.PHONY: maybe-distclean-target-zlib distclean-target-zlib
37138maybe-distclean-target-zlib:
60975492
PB
37139@if target-zlib
37140maybe-distclean-target-zlib: distclean-target-zlib
7e2dbcef 37141
05750653 37142distclean-target-zlib:
f41d6665 37143 @: $(MAKE); $(unstage)
295f4e42
NN
37144 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
37145 r=`${PWD_COMMAND}`; export r; \
8c90b13a 37146 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37147 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37148 echo "Doing distclean in $(TARGET_SUBDIR)/zlib" ; \
37149 for flag in $(EXTRA_TARGET_FLAGS); do \
37150 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37151 done; \
37152 (cd $(TARGET_SUBDIR)/zlib && \
37153 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37154 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37155 "RANLIB=$${RANLIB}" \
37156 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37157 distclean) \
295f4e42 37158 || exit 1
4977bab6 37159
60975492 37160@endif target-zlib
4977bab6 37161
295f4e42
NN
37162.PHONY: maybe-maintainer-clean-target-zlib maintainer-clean-target-zlib
37163maybe-maintainer-clean-target-zlib:
60975492
PB
37164@if target-zlib
37165maybe-maintainer-clean-target-zlib: maintainer-clean-target-zlib
7e2dbcef 37166
05750653 37167maintainer-clean-target-zlib:
f41d6665 37168 @: $(MAKE); $(unstage)
295f4e42
NN
37169 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
37170 r=`${PWD_COMMAND}`; export r; \
8c90b13a 37171 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37172 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37173 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/zlib" ; \
37174 for flag in $(EXTRA_TARGET_FLAGS); do \
37175 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37176 done; \
37177 (cd $(TARGET_SUBDIR)/zlib && \
37178 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37179 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37180 "RANLIB=$${RANLIB}" \
37181 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37182 maintainer-clean) \
295f4e42 37183 || exit 1
4977bab6 37184
60975492 37185@endif target-zlib
4977bab6 37186
4977bab6 37187
295f4e42 37188
25b42232 37189
4977bab6 37190
25b42232
PB
37191.PHONY: configure-target-boehm-gc maybe-configure-target-boehm-gc
37192maybe-configure-target-boehm-gc:
3ff3adad
PB
37193@if gcc-bootstrap
37194configure-target-boehm-gc: stage_current
37195@endif gcc-bootstrap
25b42232
PB
37196@if target-boehm-gc
37197maybe-configure-target-boehm-gc: configure-target-boehm-gc
cc11cc9b 37198configure-target-boehm-gc:
f41d6665
DJ
37199 @: $(MAKE); $(unstage)
37200 @r=`${PWD_COMMAND}`; export r; \
37201 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37202 echo "Checking multilib configuration for boehm-gc..."; \
37203 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/boehm-gc ; \
37204 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/boehm-gc/multilib.tmp 2> /dev/null ; \
37205 if test -r $(TARGET_SUBDIR)/boehm-gc/multilib.out; then \
37206 if cmp -s $(TARGET_SUBDIR)/boehm-gc/multilib.tmp $(TARGET_SUBDIR)/boehm-gc/multilib.out; then \
37207 rm -f $(TARGET_SUBDIR)/boehm-gc/multilib.tmp; \
37208 else \
37209 rm -f $(TARGET_SUBDIR)/boehm-gc/Makefile; \
37210 mv $(TARGET_SUBDIR)/boehm-gc/multilib.tmp $(TARGET_SUBDIR)/boehm-gc/multilib.out; \
37211 fi; \
37212 else \
37213 mv $(TARGET_SUBDIR)/boehm-gc/multilib.tmp $(TARGET_SUBDIR)/boehm-gc/multilib.out; \
cc11cc9b
PB
37214 fi; \
37215 test ! -f $(TARGET_SUBDIR)/boehm-gc/Makefile || exit 0; \
295f4e42 37216 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/boehm-gc ; \
4fc4dd12 37217 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37218 echo Configuring in $(TARGET_SUBDIR)/boehm-gc; \
37219 cd "$(TARGET_SUBDIR)/boehm-gc" || exit 1; \
3aa83176 37220 case $(srcdir) in \
215c351a
PB
37221 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
37222 *) topdir=`echo $(TARGET_SUBDIR)/boehm-gc/ | \
37223 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3aa83176 37224 esac; \
215c351a
PB
37225 srcdiroption="--srcdir=$${topdir}/boehm-gc"; \
37226 libsrcdir="$$s/boehm-gc"; \
3aa83176
NN
37227 rm -f no-such-file || : ; \
37228 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 37229 $(TARGET_CONFIGARGS) $${srcdiroption} \
3aa83176 37230 || exit 1
60975492 37231@endif target-boehm-gc
4977bab6 37232
25b42232
PB
37233
37234
ce406537
PB
37235
37236
295f4e42
NN
37237.PHONY: all-target-boehm-gc maybe-all-target-boehm-gc
37238maybe-all-target-boehm-gc:
3ff3adad
PB
37239@if gcc-bootstrap
37240all-target-boehm-gc: stage_current
37241@endif gcc-bootstrap
60975492 37242@if target-boehm-gc
7c27e184 37243TARGET-target-boehm-gc=all
60975492 37244maybe-all-target-boehm-gc: all-target-boehm-gc
295f4e42 37245all-target-boehm-gc: configure-target-boehm-gc
f41d6665 37246 @: $(MAKE); $(unstage)
8c90b13a
L
37247 @r=`${PWD_COMMAND}`; export r; \
37248 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37249 $(NORMAL_TARGET_EXPORTS) \
295f4e42 37250 (cd $(TARGET_SUBDIR)/boehm-gc && \
25b42232 37251 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-boehm-gc))
60975492 37252@endif target-boehm-gc
4977bab6 37253
25b42232
PB
37254
37255
ce406537
PB
37256
37257
295f4e42
NN
37258.PHONY: check-target-boehm-gc maybe-check-target-boehm-gc
37259maybe-check-target-boehm-gc:
60975492
PB
37260@if target-boehm-gc
37261maybe-check-target-boehm-gc: check-target-boehm-gc
7e2dbcef 37262
295f4e42 37263check-target-boehm-gc:
f41d6665 37264 @: $(MAKE); $(unstage)
8c90b13a
L
37265 @r=`${PWD_COMMAND}`; export r; \
37266 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37267 $(NORMAL_TARGET_EXPORTS) \
295f4e42 37268 (cd $(TARGET_SUBDIR)/boehm-gc && \
a52a0a7f 37269 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4977bab6 37270
60975492 37271@endif target-boehm-gc
4977bab6 37272
295f4e42
NN
37273.PHONY: install-target-boehm-gc maybe-install-target-boehm-gc
37274maybe-install-target-boehm-gc:
60975492
PB
37275@if target-boehm-gc
37276maybe-install-target-boehm-gc: install-target-boehm-gc
7e2dbcef 37277
295f4e42 37278install-target-boehm-gc: installdirs
f41d6665 37279 @: $(MAKE); $(unstage)
8c90b13a
L
37280 @r=`${PWD_COMMAND}`; export r; \
37281 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37282 $(NORMAL_TARGET_EXPORTS) \
295f4e42 37283 (cd $(TARGET_SUBDIR)/boehm-gc && \
a52a0a7f 37284 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4977bab6 37285
60975492 37286@endif target-boehm-gc
4977bab6 37287
295f4e42
NN
37288# Other targets (info, dvi, etc.)
37289
37290.PHONY: maybe-info-target-boehm-gc info-target-boehm-gc
37291maybe-info-target-boehm-gc:
60975492
PB
37292@if target-boehm-gc
37293maybe-info-target-boehm-gc: info-target-boehm-gc
295f4e42
NN
37294
37295info-target-boehm-gc: \
05750653 37296 configure-target-boehm-gc
f41d6665 37297 @: $(MAKE); $(unstage)
295f4e42
NN
37298 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
37299 r=`${PWD_COMMAND}`; export r; \
37300 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37301 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37302 echo "Doing info in $(TARGET_SUBDIR)/boehm-gc" ; \
37303 for flag in $(EXTRA_TARGET_FLAGS); do \
37304 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37305 done; \
37306 (cd $(TARGET_SUBDIR)/boehm-gc && \
37307 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37308 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37309 "RANLIB=$${RANLIB}" \
37310 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37311 info) \
295f4e42
NN
37312 || exit 1
37313
60975492 37314@endif target-boehm-gc
295f4e42
NN
37315
37316.PHONY: maybe-dvi-target-boehm-gc dvi-target-boehm-gc
37317maybe-dvi-target-boehm-gc:
60975492
PB
37318@if target-boehm-gc
37319maybe-dvi-target-boehm-gc: dvi-target-boehm-gc
295f4e42
NN
37320
37321dvi-target-boehm-gc: \
05750653 37322 configure-target-boehm-gc
f41d6665 37323 @: $(MAKE); $(unstage)
295f4e42
NN
37324 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
37325 r=`${PWD_COMMAND}`; export r; \
37326 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37327 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37328 echo "Doing dvi in $(TARGET_SUBDIR)/boehm-gc" ; \
37329 for flag in $(EXTRA_TARGET_FLAGS); do \
37330 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37331 done; \
37332 (cd $(TARGET_SUBDIR)/boehm-gc && \
37333 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37334 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37335 "RANLIB=$${RANLIB}" \
37336 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37337 dvi) \
295f4e42
NN
37338 || exit 1
37339
60975492 37340@endif target-boehm-gc
295f4e42 37341
f87a2b2e
MS
37342.PHONY: maybe-html-target-boehm-gc html-target-boehm-gc
37343maybe-html-target-boehm-gc:
37344@if target-boehm-gc
37345maybe-html-target-boehm-gc: html-target-boehm-gc
37346
37347html-target-boehm-gc: \
05750653 37348 configure-target-boehm-gc
f41d6665 37349 @: $(MAKE); $(unstage)
f87a2b2e
MS
37350 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
37351 r=`${PWD_COMMAND}`; export r; \
37352 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
37353 $(NORMAL_TARGET_EXPORTS) \
37354 echo "Doing html in $(TARGET_SUBDIR)/boehm-gc" ; \
37355 for flag in $(EXTRA_TARGET_FLAGS); do \
37356 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37357 done; \
37358 (cd $(TARGET_SUBDIR)/boehm-gc && \
37359 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37360 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37361 "RANLIB=$${RANLIB}" \
37362 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
37363 html) \
37364 || exit 1
37365
37366@endif target-boehm-gc
37367
295f4e42
NN
37368.PHONY: maybe-TAGS-target-boehm-gc TAGS-target-boehm-gc
37369maybe-TAGS-target-boehm-gc:
60975492
PB
37370@if target-boehm-gc
37371maybe-TAGS-target-boehm-gc: TAGS-target-boehm-gc
295f4e42
NN
37372
37373TAGS-target-boehm-gc: \
05750653 37374 configure-target-boehm-gc
f41d6665 37375 @: $(MAKE); $(unstage)
295f4e42
NN
37376 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
37377 r=`${PWD_COMMAND}`; export r; \
37378 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37379 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37380 echo "Doing TAGS in $(TARGET_SUBDIR)/boehm-gc" ; \
37381 for flag in $(EXTRA_TARGET_FLAGS); do \
37382 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37383 done; \
37384 (cd $(TARGET_SUBDIR)/boehm-gc && \
37385 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37386 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37387 "RANLIB=$${RANLIB}" \
37388 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37389 TAGS) \
295f4e42
NN
37390 || exit 1
37391
60975492 37392@endif target-boehm-gc
295f4e42
NN
37393
37394.PHONY: maybe-install-info-target-boehm-gc install-info-target-boehm-gc
37395maybe-install-info-target-boehm-gc:
60975492
PB
37396@if target-boehm-gc
37397maybe-install-info-target-boehm-gc: install-info-target-boehm-gc
295f4e42
NN
37398
37399install-info-target-boehm-gc: \
37400 configure-target-boehm-gc \
05750653 37401 info-target-boehm-gc
f41d6665 37402 @: $(MAKE); $(unstage)
295f4e42
NN
37403 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
37404 r=`${PWD_COMMAND}`; export r; \
37405 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37406 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37407 echo "Doing install-info in $(TARGET_SUBDIR)/boehm-gc" ; \
37408 for flag in $(EXTRA_TARGET_FLAGS); do \
37409 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37410 done; \
37411 (cd $(TARGET_SUBDIR)/boehm-gc && \
37412 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37413 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37414 "RANLIB=$${RANLIB}" \
37415 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37416 install-info) \
295f4e42
NN
37417 || exit 1
37418
60975492 37419@endif target-boehm-gc
295f4e42 37420
65d6e994
CD
37421.PHONY: maybe-install-html-target-boehm-gc install-html-target-boehm-gc
37422maybe-install-html-target-boehm-gc:
37423@if target-boehm-gc
37424maybe-install-html-target-boehm-gc: install-html-target-boehm-gc
37425
37426install-html-target-boehm-gc: \
37427 configure-target-boehm-gc \
37428 html-target-boehm-gc
37429 @: $(MAKE); $(unstage)
37430 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
37431 r=`${PWD_COMMAND}`; export r; \
37432 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37433 $(NORMAL_TARGET_EXPORTS) \
37434 echo "Doing install-html in $(TARGET_SUBDIR)/boehm-gc" ; \
37435 for flag in $(EXTRA_TARGET_FLAGS); do \
37436 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37437 done; \
37438 (cd $(TARGET_SUBDIR)/boehm-gc && \
37439 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37440 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37441 "RANLIB=$${RANLIB}" \
37442 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
37443 install-html) \
37444 || exit 1
37445
37446@endif target-boehm-gc
37447
295f4e42
NN
37448.PHONY: maybe-installcheck-target-boehm-gc installcheck-target-boehm-gc
37449maybe-installcheck-target-boehm-gc:
60975492
PB
37450@if target-boehm-gc
37451maybe-installcheck-target-boehm-gc: installcheck-target-boehm-gc
295f4e42
NN
37452
37453installcheck-target-boehm-gc: \
05750653 37454 configure-target-boehm-gc
f41d6665 37455 @: $(MAKE); $(unstage)
295f4e42
NN
37456 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
37457 r=`${PWD_COMMAND}`; export r; \
37458 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37459 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37460 echo "Doing installcheck in $(TARGET_SUBDIR)/boehm-gc" ; \
37461 for flag in $(EXTRA_TARGET_FLAGS); do \
37462 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37463 done; \
37464 (cd $(TARGET_SUBDIR)/boehm-gc && \
37465 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37466 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37467 "RANLIB=$${RANLIB}" \
37468 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37469 installcheck) \
295f4e42
NN
37470 || exit 1
37471
60975492 37472@endif target-boehm-gc
295f4e42
NN
37473
37474.PHONY: maybe-mostlyclean-target-boehm-gc mostlyclean-target-boehm-gc
37475maybe-mostlyclean-target-boehm-gc:
60975492
PB
37476@if target-boehm-gc
37477maybe-mostlyclean-target-boehm-gc: mostlyclean-target-boehm-gc
295f4e42 37478
05750653 37479mostlyclean-target-boehm-gc:
f41d6665 37480 @: $(MAKE); $(unstage)
295f4e42
NN
37481 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
37482 r=`${PWD_COMMAND}`; export r; \
37483 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37484 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37485 echo "Doing mostlyclean in $(TARGET_SUBDIR)/boehm-gc" ; \
37486 for flag in $(EXTRA_TARGET_FLAGS); do \
37487 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37488 done; \
37489 (cd $(TARGET_SUBDIR)/boehm-gc && \
37490 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37491 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37492 "RANLIB=$${RANLIB}" \
37493 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37494 mostlyclean) \
295f4e42
NN
37495 || exit 1
37496
60975492 37497@endif target-boehm-gc
295f4e42
NN
37498
37499.PHONY: maybe-clean-target-boehm-gc clean-target-boehm-gc
37500maybe-clean-target-boehm-gc:
60975492
PB
37501@if target-boehm-gc
37502maybe-clean-target-boehm-gc: clean-target-boehm-gc
295f4e42 37503
05750653 37504clean-target-boehm-gc:
f41d6665 37505 @: $(MAKE); $(unstage)
295f4e42
NN
37506 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
37507 r=`${PWD_COMMAND}`; export r; \
37508 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37509 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37510 echo "Doing clean in $(TARGET_SUBDIR)/boehm-gc" ; \
37511 for flag in $(EXTRA_TARGET_FLAGS); do \
37512 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37513 done; \
37514 (cd $(TARGET_SUBDIR)/boehm-gc && \
37515 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37516 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37517 "RANLIB=$${RANLIB}" \
37518 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37519 clean) \
295f4e42
NN
37520 || exit 1
37521
60975492 37522@endif target-boehm-gc
295f4e42
NN
37523
37524.PHONY: maybe-distclean-target-boehm-gc distclean-target-boehm-gc
37525maybe-distclean-target-boehm-gc:
60975492
PB
37526@if target-boehm-gc
37527maybe-distclean-target-boehm-gc: distclean-target-boehm-gc
295f4e42 37528
05750653 37529distclean-target-boehm-gc:
f41d6665 37530 @: $(MAKE); $(unstage)
295f4e42
NN
37531 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
37532 r=`${PWD_COMMAND}`; export r; \
37533 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37534 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37535 echo "Doing distclean in $(TARGET_SUBDIR)/boehm-gc" ; \
37536 for flag in $(EXTRA_TARGET_FLAGS); do \
37537 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37538 done; \
37539 (cd $(TARGET_SUBDIR)/boehm-gc && \
37540 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37541 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37542 "RANLIB=$${RANLIB}" \
37543 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37544 distclean) \
295f4e42
NN
37545 || exit 1
37546
60975492 37547@endif target-boehm-gc
295f4e42
NN
37548
37549.PHONY: maybe-maintainer-clean-target-boehm-gc maintainer-clean-target-boehm-gc
37550maybe-maintainer-clean-target-boehm-gc:
60975492
PB
37551@if target-boehm-gc
37552maybe-maintainer-clean-target-boehm-gc: maintainer-clean-target-boehm-gc
295f4e42 37553
05750653 37554maintainer-clean-target-boehm-gc:
f41d6665 37555 @: $(MAKE); $(unstage)
295f4e42
NN
37556 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
37557 r=`${PWD_COMMAND}`; export r; \
37558 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37559 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37560 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/boehm-gc" ; \
37561 for flag in $(EXTRA_TARGET_FLAGS); do \
37562 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37563 done; \
37564 (cd $(TARGET_SUBDIR)/boehm-gc && \
37565 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37566 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37567 "RANLIB=$${RANLIB}" \
37568 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37569 maintainer-clean) \
295f4e42
NN
37570 || exit 1
37571
60975492 37572@endif target-boehm-gc
295f4e42
NN
37573
37574
4977bab6 37575
4977bab6 37576
25b42232
PB
37577
37578.PHONY: configure-target-qthreads maybe-configure-target-qthreads
37579maybe-configure-target-qthreads:
3ff3adad
PB
37580@if gcc-bootstrap
37581configure-target-qthreads: stage_current
37582@endif gcc-bootstrap
25b42232
PB
37583@if target-qthreads
37584maybe-configure-target-qthreads: configure-target-qthreads
cc11cc9b 37585configure-target-qthreads:
f41d6665
DJ
37586 @: $(MAKE); $(unstage)
37587 @r=`${PWD_COMMAND}`; export r; \
37588 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37589 echo "Checking multilib configuration for qthreads..."; \
37590 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/qthreads ; \
37591 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/qthreads/multilib.tmp 2> /dev/null ; \
37592 if test -r $(TARGET_SUBDIR)/qthreads/multilib.out; then \
37593 if cmp -s $(TARGET_SUBDIR)/qthreads/multilib.tmp $(TARGET_SUBDIR)/qthreads/multilib.out; then \
37594 rm -f $(TARGET_SUBDIR)/qthreads/multilib.tmp; \
37595 else \
37596 rm -f $(TARGET_SUBDIR)/qthreads/Makefile; \
37597 mv $(TARGET_SUBDIR)/qthreads/multilib.tmp $(TARGET_SUBDIR)/qthreads/multilib.out; \
37598 fi; \
37599 else \
37600 mv $(TARGET_SUBDIR)/qthreads/multilib.tmp $(TARGET_SUBDIR)/qthreads/multilib.out; \
cc11cc9b
PB
37601 fi; \
37602 test ! -f $(TARGET_SUBDIR)/qthreads/Makefile || exit 0; \
295f4e42 37603 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/qthreads ; \
4fc4dd12 37604 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37605 echo Configuring in $(TARGET_SUBDIR)/qthreads; \
37606 cd "$(TARGET_SUBDIR)/qthreads" || exit 1; \
3aa83176 37607 case $(srcdir) in \
215c351a
PB
37608 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
37609 *) topdir=`echo $(TARGET_SUBDIR)/qthreads/ | \
37610 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3aa83176 37611 esac; \
215c351a
PB
37612 srcdiroption="--srcdir=$${topdir}/qthreads"; \
37613 libsrcdir="$$s/qthreads"; \
3aa83176
NN
37614 rm -f no-such-file || : ; \
37615 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 37616 $(TARGET_CONFIGARGS) $${srcdiroption} \
3aa83176 37617 || exit 1
60975492 37618@endif target-qthreads
4977bab6 37619
25b42232
PB
37620
37621
ce406537
PB
37622
37623
295f4e42
NN
37624.PHONY: all-target-qthreads maybe-all-target-qthreads
37625maybe-all-target-qthreads:
3ff3adad
PB
37626@if gcc-bootstrap
37627all-target-qthreads: stage_current
37628@endif gcc-bootstrap
60975492 37629@if target-qthreads
7c27e184 37630TARGET-target-qthreads=all
60975492 37631maybe-all-target-qthreads: all-target-qthreads
295f4e42 37632all-target-qthreads: configure-target-qthreads
f41d6665 37633 @: $(MAKE); $(unstage)
8c90b13a
L
37634 @r=`${PWD_COMMAND}`; export r; \
37635 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37636 $(NORMAL_TARGET_EXPORTS) \
295f4e42 37637 (cd $(TARGET_SUBDIR)/qthreads && \
25b42232 37638 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-qthreads))
60975492 37639@endif target-qthreads
4977bab6 37640
25b42232
PB
37641
37642
ce406537
PB
37643
37644
295f4e42
NN
37645.PHONY: check-target-qthreads maybe-check-target-qthreads
37646maybe-check-target-qthreads:
60975492
PB
37647@if target-qthreads
37648maybe-check-target-qthreads: check-target-qthreads
7e2dbcef 37649
295f4e42 37650check-target-qthreads:
f41d6665 37651 @: $(MAKE); $(unstage)
8c90b13a
L
37652 @r=`${PWD_COMMAND}`; export r; \
37653 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37654 $(NORMAL_TARGET_EXPORTS) \
295f4e42 37655 (cd $(TARGET_SUBDIR)/qthreads && \
a52a0a7f 37656 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4977bab6 37657
60975492 37658@endif target-qthreads
4977bab6 37659
295f4e42
NN
37660.PHONY: install-target-qthreads maybe-install-target-qthreads
37661maybe-install-target-qthreads:
60975492
PB
37662@if target-qthreads
37663maybe-install-target-qthreads: install-target-qthreads
295f4e42
NN
37664
37665install-target-qthreads: installdirs
f41d6665 37666 @: $(MAKE); $(unstage)
295f4e42
NN
37667 @r=`${PWD_COMMAND}`; export r; \
37668 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37669 $(NORMAL_TARGET_EXPORTS) \
295f4e42 37670 (cd $(TARGET_SUBDIR)/qthreads && \
a52a0a7f 37671 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
295f4e42 37672
60975492 37673@endif target-qthreads
295f4e42
NN
37674
37675# Other targets (info, dvi, etc.)
37676
37677.PHONY: maybe-info-target-qthreads info-target-qthreads
37678maybe-info-target-qthreads:
60975492
PB
37679@if target-qthreads
37680maybe-info-target-qthreads: info-target-qthreads
295f4e42
NN
37681
37682info-target-qthreads: \
05750653 37683 configure-target-qthreads
f41d6665 37684 @: $(MAKE); $(unstage)
295f4e42
NN
37685 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
37686 r=`${PWD_COMMAND}`; export r; \
37687 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37688 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37689 echo "Doing info in $(TARGET_SUBDIR)/qthreads" ; \
37690 for flag in $(EXTRA_TARGET_FLAGS); do \
37691 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37692 done; \
37693 (cd $(TARGET_SUBDIR)/qthreads && \
37694 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37695 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37696 "RANLIB=$${RANLIB}" \
37697 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37698 info) \
295f4e42
NN
37699 || exit 1
37700
60975492 37701@endif target-qthreads
295f4e42
NN
37702
37703.PHONY: maybe-dvi-target-qthreads dvi-target-qthreads
37704maybe-dvi-target-qthreads:
60975492
PB
37705@if target-qthreads
37706maybe-dvi-target-qthreads: dvi-target-qthreads
295f4e42
NN
37707
37708dvi-target-qthreads: \
05750653 37709 configure-target-qthreads
f41d6665 37710 @: $(MAKE); $(unstage)
295f4e42
NN
37711 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
37712 r=`${PWD_COMMAND}`; export r; \
37713 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37714 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37715 echo "Doing dvi in $(TARGET_SUBDIR)/qthreads" ; \
37716 for flag in $(EXTRA_TARGET_FLAGS); do \
37717 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37718 done; \
37719 (cd $(TARGET_SUBDIR)/qthreads && \
37720 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37721 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37722 "RANLIB=$${RANLIB}" \
37723 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37724 dvi) \
295f4e42
NN
37725 || exit 1
37726
60975492 37727@endif target-qthreads
295f4e42 37728
f87a2b2e
MS
37729.PHONY: maybe-html-target-qthreads html-target-qthreads
37730maybe-html-target-qthreads:
37731@if target-qthreads
37732maybe-html-target-qthreads: html-target-qthreads
37733
37734html-target-qthreads: \
05750653 37735 configure-target-qthreads
f41d6665 37736 @: $(MAKE); $(unstage)
f87a2b2e
MS
37737 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
37738 r=`${PWD_COMMAND}`; export r; \
37739 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
37740 $(NORMAL_TARGET_EXPORTS) \
37741 echo "Doing html in $(TARGET_SUBDIR)/qthreads" ; \
37742 for flag in $(EXTRA_TARGET_FLAGS); do \
37743 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37744 done; \
37745 (cd $(TARGET_SUBDIR)/qthreads && \
37746 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37747 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37748 "RANLIB=$${RANLIB}" \
37749 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
37750 html) \
37751 || exit 1
37752
37753@endif target-qthreads
37754
295f4e42
NN
37755.PHONY: maybe-TAGS-target-qthreads TAGS-target-qthreads
37756maybe-TAGS-target-qthreads:
60975492
PB
37757@if target-qthreads
37758maybe-TAGS-target-qthreads: TAGS-target-qthreads
295f4e42
NN
37759
37760TAGS-target-qthreads: \
05750653 37761 configure-target-qthreads
f41d6665 37762 @: $(MAKE); $(unstage)
295f4e42
NN
37763 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
37764 r=`${PWD_COMMAND}`; export r; \
37765 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37766 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37767 echo "Doing TAGS in $(TARGET_SUBDIR)/qthreads" ; \
37768 for flag in $(EXTRA_TARGET_FLAGS); do \
37769 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37770 done; \
37771 (cd $(TARGET_SUBDIR)/qthreads && \
37772 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37773 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37774 "RANLIB=$${RANLIB}" \
37775 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37776 TAGS) \
295f4e42
NN
37777 || exit 1
37778
60975492 37779@endif target-qthreads
295f4e42
NN
37780
37781.PHONY: maybe-install-info-target-qthreads install-info-target-qthreads
37782maybe-install-info-target-qthreads:
60975492
PB
37783@if target-qthreads
37784maybe-install-info-target-qthreads: install-info-target-qthreads
295f4e42
NN
37785
37786install-info-target-qthreads: \
37787 configure-target-qthreads \
05750653 37788 info-target-qthreads
f41d6665 37789 @: $(MAKE); $(unstage)
295f4e42
NN
37790 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
37791 r=`${PWD_COMMAND}`; export r; \
37792 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37793 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37794 echo "Doing install-info in $(TARGET_SUBDIR)/qthreads" ; \
37795 for flag in $(EXTRA_TARGET_FLAGS); do \
37796 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37797 done; \
37798 (cd $(TARGET_SUBDIR)/qthreads && \
37799 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37800 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37801 "RANLIB=$${RANLIB}" \
37802 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37803 install-info) \
295f4e42
NN
37804 || exit 1
37805
60975492 37806@endif target-qthreads
295f4e42 37807
65d6e994
CD
37808.PHONY: maybe-install-html-target-qthreads install-html-target-qthreads
37809maybe-install-html-target-qthreads:
37810@if target-qthreads
37811maybe-install-html-target-qthreads: install-html-target-qthreads
37812
37813install-html-target-qthreads: \
37814 configure-target-qthreads \
37815 html-target-qthreads
37816 @: $(MAKE); $(unstage)
37817 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
37818 r=`${PWD_COMMAND}`; export r; \
37819 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37820 $(NORMAL_TARGET_EXPORTS) \
37821 echo "Doing install-html in $(TARGET_SUBDIR)/qthreads" ; \
37822 for flag in $(EXTRA_TARGET_FLAGS); do \
37823 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37824 done; \
37825 (cd $(TARGET_SUBDIR)/qthreads && \
37826 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37827 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37828 "RANLIB=$${RANLIB}" \
37829 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
37830 install-html) \
37831 || exit 1
37832
37833@endif target-qthreads
37834
295f4e42
NN
37835.PHONY: maybe-installcheck-target-qthreads installcheck-target-qthreads
37836maybe-installcheck-target-qthreads:
60975492
PB
37837@if target-qthreads
37838maybe-installcheck-target-qthreads: installcheck-target-qthreads
295f4e42
NN
37839
37840installcheck-target-qthreads: \
05750653 37841 configure-target-qthreads
f41d6665 37842 @: $(MAKE); $(unstage)
295f4e42
NN
37843 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
37844 r=`${PWD_COMMAND}`; export r; \
37845 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37846 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37847 echo "Doing installcheck in $(TARGET_SUBDIR)/qthreads" ; \
37848 for flag in $(EXTRA_TARGET_FLAGS); do \
37849 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37850 done; \
37851 (cd $(TARGET_SUBDIR)/qthreads && \
37852 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37853 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37854 "RANLIB=$${RANLIB}" \
37855 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37856 installcheck) \
295f4e42
NN
37857 || exit 1
37858
60975492 37859@endif target-qthreads
295f4e42
NN
37860
37861.PHONY: maybe-mostlyclean-target-qthreads mostlyclean-target-qthreads
37862maybe-mostlyclean-target-qthreads:
60975492
PB
37863@if target-qthreads
37864maybe-mostlyclean-target-qthreads: mostlyclean-target-qthreads
295f4e42 37865
05750653 37866mostlyclean-target-qthreads:
f41d6665 37867 @: $(MAKE); $(unstage)
295f4e42
NN
37868 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
37869 r=`${PWD_COMMAND}`; export r; \
37870 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37871 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37872 echo "Doing mostlyclean in $(TARGET_SUBDIR)/qthreads" ; \
37873 for flag in $(EXTRA_TARGET_FLAGS); do \
37874 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37875 done; \
37876 (cd $(TARGET_SUBDIR)/qthreads && \
37877 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37878 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37879 "RANLIB=$${RANLIB}" \
37880 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37881 mostlyclean) \
295f4e42
NN
37882 || exit 1
37883
60975492 37884@endif target-qthreads
295f4e42
NN
37885
37886.PHONY: maybe-clean-target-qthreads clean-target-qthreads
37887maybe-clean-target-qthreads:
60975492
PB
37888@if target-qthreads
37889maybe-clean-target-qthreads: clean-target-qthreads
295f4e42 37890
05750653 37891clean-target-qthreads:
f41d6665 37892 @: $(MAKE); $(unstage)
295f4e42
NN
37893 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
37894 r=`${PWD_COMMAND}`; export r; \
37895 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37896 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37897 echo "Doing clean in $(TARGET_SUBDIR)/qthreads" ; \
37898 for flag in $(EXTRA_TARGET_FLAGS); do \
37899 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37900 done; \
37901 (cd $(TARGET_SUBDIR)/qthreads && \
37902 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37903 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37904 "RANLIB=$${RANLIB}" \
37905 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37906 clean) \
295f4e42
NN
37907 || exit 1
37908
60975492 37909@endif target-qthreads
295f4e42
NN
37910
37911.PHONY: maybe-distclean-target-qthreads distclean-target-qthreads
37912maybe-distclean-target-qthreads:
60975492
PB
37913@if target-qthreads
37914maybe-distclean-target-qthreads: distclean-target-qthreads
295f4e42 37915
05750653 37916distclean-target-qthreads:
f41d6665 37917 @: $(MAKE); $(unstage)
295f4e42
NN
37918 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
37919 r=`${PWD_COMMAND}`; export r; \
37920 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37921 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37922 echo "Doing distclean in $(TARGET_SUBDIR)/qthreads" ; \
37923 for flag in $(EXTRA_TARGET_FLAGS); do \
37924 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37925 done; \
37926 (cd $(TARGET_SUBDIR)/qthreads && \
37927 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37928 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37929 "RANLIB=$${RANLIB}" \
37930 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37931 distclean) \
295f4e42
NN
37932 || exit 1
37933
60975492 37934@endif target-qthreads
295f4e42
NN
37935
37936.PHONY: maybe-maintainer-clean-target-qthreads maintainer-clean-target-qthreads
37937maybe-maintainer-clean-target-qthreads:
60975492
PB
37938@if target-qthreads
37939maybe-maintainer-clean-target-qthreads: maintainer-clean-target-qthreads
295f4e42 37940
05750653 37941maintainer-clean-target-qthreads:
f41d6665 37942 @: $(MAKE); $(unstage)
295f4e42
NN
37943 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
37944 r=`${PWD_COMMAND}`; export r; \
37945 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37946 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37947 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/qthreads" ; \
37948 for flag in $(EXTRA_TARGET_FLAGS); do \
37949 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37950 done; \
37951 (cd $(TARGET_SUBDIR)/qthreads && \
37952 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37953 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37954 "RANLIB=$${RANLIB}" \
37955 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37956 maintainer-clean) \
295f4e42 37957 || exit 1
7e2dbcef 37958
60975492 37959@endif target-qthreads
4977bab6
ZW
37960
37961
4977bab6 37962
4977bab6 37963
25b42232
PB
37964
37965.PHONY: configure-target-rda maybe-configure-target-rda
37966maybe-configure-target-rda:
3ff3adad
PB
37967@if gcc-bootstrap
37968configure-target-rda: stage_current
37969@endif gcc-bootstrap
25b42232
PB
37970@if target-rda
37971maybe-configure-target-rda: configure-target-rda
cc11cc9b 37972configure-target-rda:
f41d6665
DJ
37973 @: $(MAKE); $(unstage)
37974 @r=`${PWD_COMMAND}`; export r; \
37975 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37976 echo "Checking multilib configuration for rda..."; \
37977 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/rda ; \
37978 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/rda/multilib.tmp 2> /dev/null ; \
37979 if test -r $(TARGET_SUBDIR)/rda/multilib.out; then \
37980 if cmp -s $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; then \
37981 rm -f $(TARGET_SUBDIR)/rda/multilib.tmp; \
37982 else \
37983 rm -f $(TARGET_SUBDIR)/rda/Makefile; \
37984 mv $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; \
37985 fi; \
37986 else \
37987 mv $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; \
cc11cc9b
PB
37988 fi; \
37989 test ! -f $(TARGET_SUBDIR)/rda/Makefile || exit 0; \
295f4e42 37990 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/rda ; \
4fc4dd12 37991 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37992 echo Configuring in $(TARGET_SUBDIR)/rda; \
37993 cd "$(TARGET_SUBDIR)/rda" || exit 1; \
3aa83176 37994 case $(srcdir) in \
215c351a
PB
37995 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
37996 *) topdir=`echo $(TARGET_SUBDIR)/rda/ | \
37997 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3aa83176 37998 esac; \
215c351a
PB
37999 srcdiroption="--srcdir=$${topdir}/rda"; \
38000 libsrcdir="$$s/rda"; \
3aa83176
NN
38001 rm -f no-such-file || : ; \
38002 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 38003 $(TARGET_CONFIGARGS) $${srcdiroption} \
3aa83176 38004 || exit 1
60975492 38005@endif target-rda
4977bab6 38006
25b42232
PB
38007
38008
ce406537
PB
38009
38010
295f4e42
NN
38011.PHONY: all-target-rda maybe-all-target-rda
38012maybe-all-target-rda:
3ff3adad
PB
38013@if gcc-bootstrap
38014all-target-rda: stage_current
38015@endif gcc-bootstrap
60975492 38016@if target-rda
7c27e184 38017TARGET-target-rda=all
60975492 38018maybe-all-target-rda: all-target-rda
295f4e42 38019all-target-rda: configure-target-rda
f41d6665 38020 @: $(MAKE); $(unstage)
8c90b13a
L
38021 @r=`${PWD_COMMAND}`; export r; \
38022 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38023 $(NORMAL_TARGET_EXPORTS) \
295f4e42 38024 (cd $(TARGET_SUBDIR)/rda && \
25b42232 38025 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-rda))
60975492 38026@endif target-rda
4977bab6 38027
25b42232
PB
38028
38029
ce406537
PB
38030
38031
295f4e42
NN
38032.PHONY: check-target-rda maybe-check-target-rda
38033maybe-check-target-rda:
60975492
PB
38034@if target-rda
38035maybe-check-target-rda: check-target-rda
7e2dbcef 38036
295f4e42 38037check-target-rda:
f41d6665 38038 @: $(MAKE); $(unstage)
8c90b13a
L
38039 @r=`${PWD_COMMAND}`; export r; \
38040 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38041 $(NORMAL_TARGET_EXPORTS) \
295f4e42 38042 (cd $(TARGET_SUBDIR)/rda && \
a52a0a7f 38043 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
6599da04 38044
60975492 38045@endif target-rda
4977bab6 38046
295f4e42
NN
38047.PHONY: install-target-rda maybe-install-target-rda
38048maybe-install-target-rda:
60975492
PB
38049@if target-rda
38050maybe-install-target-rda: install-target-rda
7e2dbcef 38051
295f4e42 38052install-target-rda: installdirs
f41d6665 38053 @: $(MAKE); $(unstage)
8c90b13a
L
38054 @r=`${PWD_COMMAND}`; export r; \
38055 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38056 $(NORMAL_TARGET_EXPORTS) \
295f4e42 38057 (cd $(TARGET_SUBDIR)/rda && \
a52a0a7f 38058 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e490616e 38059
60975492 38060@endif target-rda
4977bab6 38061
295f4e42
NN
38062# Other targets (info, dvi, etc.)
38063
38064.PHONY: maybe-info-target-rda info-target-rda
38065maybe-info-target-rda:
60975492
PB
38066@if target-rda
38067maybe-info-target-rda: info-target-rda
295f4e42
NN
38068
38069info-target-rda: \
05750653 38070 configure-target-rda
f41d6665 38071 @: $(MAKE); $(unstage)
295f4e42
NN
38072 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
38073 r=`${PWD_COMMAND}`; export r; \
38074 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38075 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38076 echo "Doing info in $(TARGET_SUBDIR)/rda" ; \
38077 for flag in $(EXTRA_TARGET_FLAGS); do \
38078 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38079 done; \
38080 (cd $(TARGET_SUBDIR)/rda && \
38081 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38082 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38083 "RANLIB=$${RANLIB}" \
38084 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 38085 info) \
295f4e42
NN
38086 || exit 1
38087
60975492 38088@endif target-rda
295f4e42
NN
38089
38090.PHONY: maybe-dvi-target-rda dvi-target-rda
38091maybe-dvi-target-rda:
60975492
PB
38092@if target-rda
38093maybe-dvi-target-rda: dvi-target-rda
295f4e42
NN
38094
38095dvi-target-rda: \
05750653 38096 configure-target-rda
f41d6665 38097 @: $(MAKE); $(unstage)
295f4e42
NN
38098 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
38099 r=`${PWD_COMMAND}`; export r; \
38100 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38101 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38102 echo "Doing dvi in $(TARGET_SUBDIR)/rda" ; \
38103 for flag in $(EXTRA_TARGET_FLAGS); do \
38104 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38105 done; \
38106 (cd $(TARGET_SUBDIR)/rda && \
38107 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38108 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38109 "RANLIB=$${RANLIB}" \
38110 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 38111 dvi) \
295f4e42
NN
38112 || exit 1
38113
60975492 38114@endif target-rda
295f4e42 38115
f87a2b2e
MS
38116.PHONY: maybe-html-target-rda html-target-rda
38117maybe-html-target-rda:
38118@if target-rda
38119maybe-html-target-rda: html-target-rda
38120
38121html-target-rda: \
05750653 38122 configure-target-rda
f41d6665 38123 @: $(MAKE); $(unstage)
f87a2b2e
MS
38124 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
38125 r=`${PWD_COMMAND}`; export r; \
38126 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
38127 $(NORMAL_TARGET_EXPORTS) \
38128 echo "Doing html in $(TARGET_SUBDIR)/rda" ; \
38129 for flag in $(EXTRA_TARGET_FLAGS); do \
38130 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38131 done; \
38132 (cd $(TARGET_SUBDIR)/rda && \
38133 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38134 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38135 "RANLIB=$${RANLIB}" \
38136 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
38137 html) \
38138 || exit 1
38139
38140@endif target-rda
38141
295f4e42
NN
38142.PHONY: maybe-TAGS-target-rda TAGS-target-rda
38143maybe-TAGS-target-rda:
60975492
PB
38144@if target-rda
38145maybe-TAGS-target-rda: TAGS-target-rda
295f4e42
NN
38146
38147TAGS-target-rda: \
05750653 38148 configure-target-rda
f41d6665 38149 @: $(MAKE); $(unstage)
295f4e42
NN
38150 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
38151 r=`${PWD_COMMAND}`; export r; \
38152 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38153 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38154 echo "Doing TAGS in $(TARGET_SUBDIR)/rda" ; \
38155 for flag in $(EXTRA_TARGET_FLAGS); do \
38156 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38157 done; \
38158 (cd $(TARGET_SUBDIR)/rda && \
38159 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38160 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38161 "RANLIB=$${RANLIB}" \
38162 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 38163 TAGS) \
295f4e42
NN
38164 || exit 1
38165
60975492 38166@endif target-rda
295f4e42
NN
38167
38168.PHONY: maybe-install-info-target-rda install-info-target-rda
38169maybe-install-info-target-rda:
60975492
PB
38170@if target-rda
38171maybe-install-info-target-rda: install-info-target-rda
295f4e42
NN
38172
38173install-info-target-rda: \
38174 configure-target-rda \
05750653 38175 info-target-rda
f41d6665 38176 @: $(MAKE); $(unstage)
295f4e42
NN
38177 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
38178 r=`${PWD_COMMAND}`; export r; \
38179 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38180 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38181 echo "Doing install-info in $(TARGET_SUBDIR)/rda" ; \
38182 for flag in $(EXTRA_TARGET_FLAGS); do \
38183 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38184 done; \
38185 (cd $(TARGET_SUBDIR)/rda && \
38186 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38187 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38188 "RANLIB=$${RANLIB}" \
38189 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 38190 install-info) \
295f4e42
NN
38191 || exit 1
38192
60975492 38193@endif target-rda
295f4e42 38194
65d6e994
CD
38195.PHONY: maybe-install-html-target-rda install-html-target-rda
38196maybe-install-html-target-rda:
38197@if target-rda
38198maybe-install-html-target-rda: install-html-target-rda
38199
38200install-html-target-rda: \
38201 configure-target-rda \
38202 html-target-rda
38203 @: $(MAKE); $(unstage)
38204 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
38205 r=`${PWD_COMMAND}`; export r; \
38206 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38207 $(NORMAL_TARGET_EXPORTS) \
38208 echo "Doing install-html in $(TARGET_SUBDIR)/rda" ; \
38209 for flag in $(EXTRA_TARGET_FLAGS); do \
38210 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38211 done; \
38212 (cd $(TARGET_SUBDIR)/rda && \
38213 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38214 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38215 "RANLIB=$${RANLIB}" \
38216 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
38217 install-html) \
38218 || exit 1
38219
38220@endif target-rda
38221
295f4e42
NN
38222.PHONY: maybe-installcheck-target-rda installcheck-target-rda
38223maybe-installcheck-target-rda:
60975492
PB
38224@if target-rda
38225maybe-installcheck-target-rda: installcheck-target-rda
295f4e42
NN
38226
38227installcheck-target-rda: \
05750653 38228 configure-target-rda
f41d6665 38229 @: $(MAKE); $(unstage)
295f4e42
NN
38230 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
38231 r=`${PWD_COMMAND}`; export r; \
38232 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38233 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38234 echo "Doing installcheck in $(TARGET_SUBDIR)/rda" ; \
38235 for flag in $(EXTRA_TARGET_FLAGS); do \
38236 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38237 done; \
38238 (cd $(TARGET_SUBDIR)/rda && \
38239 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38240 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38241 "RANLIB=$${RANLIB}" \
38242 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 38243 installcheck) \
295f4e42
NN
38244 || exit 1
38245
60975492 38246@endif target-rda
295f4e42
NN
38247
38248.PHONY: maybe-mostlyclean-target-rda mostlyclean-target-rda
38249maybe-mostlyclean-target-rda:
60975492
PB
38250@if target-rda
38251maybe-mostlyclean-target-rda: mostlyclean-target-rda
295f4e42 38252
05750653 38253mostlyclean-target-rda:
f41d6665 38254 @: $(MAKE); $(unstage)
295f4e42
NN
38255 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
38256 r=`${PWD_COMMAND}`; export r; \
38257 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38258 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38259 echo "Doing mostlyclean in $(TARGET_SUBDIR)/rda" ; \
38260 for flag in $(EXTRA_TARGET_FLAGS); do \
38261 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38262 done; \
38263 (cd $(TARGET_SUBDIR)/rda && \
38264 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38265 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38266 "RANLIB=$${RANLIB}" \
38267 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 38268 mostlyclean) \
295f4e42
NN
38269 || exit 1
38270
60975492 38271@endif target-rda
295f4e42
NN
38272
38273.PHONY: maybe-clean-target-rda clean-target-rda
38274maybe-clean-target-rda:
60975492
PB
38275@if target-rda
38276maybe-clean-target-rda: clean-target-rda
295f4e42 38277
05750653 38278clean-target-rda:
f41d6665 38279 @: $(MAKE); $(unstage)
295f4e42
NN
38280 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
38281 r=`${PWD_COMMAND}`; export r; \
38282 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38283 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38284 echo "Doing clean in $(TARGET_SUBDIR)/rda" ; \
38285 for flag in $(EXTRA_TARGET_FLAGS); do \
38286 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38287 done; \
38288 (cd $(TARGET_SUBDIR)/rda && \
38289 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38290 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38291 "RANLIB=$${RANLIB}" \
38292 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 38293 clean) \
295f4e42
NN
38294 || exit 1
38295
60975492 38296@endif target-rda
295f4e42
NN
38297
38298.PHONY: maybe-distclean-target-rda distclean-target-rda
38299maybe-distclean-target-rda:
60975492
PB
38300@if target-rda
38301maybe-distclean-target-rda: distclean-target-rda
295f4e42 38302
05750653 38303distclean-target-rda:
f41d6665 38304 @: $(MAKE); $(unstage)
295f4e42
NN
38305 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
38306 r=`${PWD_COMMAND}`; export r; \
38307 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38308 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38309 echo "Doing distclean in $(TARGET_SUBDIR)/rda" ; \
38310 for flag in $(EXTRA_TARGET_FLAGS); do \
38311 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38312 done; \
38313 (cd $(TARGET_SUBDIR)/rda && \
38314 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38315 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38316 "RANLIB=$${RANLIB}" \
38317 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 38318 distclean) \
295f4e42
NN
38319 || exit 1
38320
60975492 38321@endif target-rda
295f4e42
NN
38322
38323.PHONY: maybe-maintainer-clean-target-rda maintainer-clean-target-rda
38324maybe-maintainer-clean-target-rda:
60975492
PB
38325@if target-rda
38326maybe-maintainer-clean-target-rda: maintainer-clean-target-rda
295f4e42 38327
05750653 38328maintainer-clean-target-rda:
f41d6665 38329 @: $(MAKE); $(unstage)
295f4e42
NN
38330 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
38331 r=`${PWD_COMMAND}`; export r; \
38332 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38333 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38334 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/rda" ; \
38335 for flag in $(EXTRA_TARGET_FLAGS); do \
38336 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38337 done; \
38338 (cd $(TARGET_SUBDIR)/rda && \
38339 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38340 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38341 "RANLIB=$${RANLIB}" \
38342 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 38343 maintainer-clean) \
295f4e42
NN
38344 || exit 1
38345
60975492 38346@endif target-rda
295f4e42
NN
38347
38348
4977bab6 38349
25b42232
PB
38350
38351
38352.PHONY: configure-target-libada maybe-configure-target-libada
38353maybe-configure-target-libada:
3ff3adad
PB
38354@if gcc-bootstrap
38355configure-target-libada: stage_current
38356@endif gcc-bootstrap
25b42232
PB
38357@if target-libada
38358maybe-configure-target-libada: configure-target-libada
cc11cc9b 38359configure-target-libada:
f41d6665
DJ
38360 @: $(MAKE); $(unstage)
38361 @r=`${PWD_COMMAND}`; export r; \
38362 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38363 echo "Checking multilib configuration for libada..."; \
38364 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libada ; \
38365 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libada/multilib.tmp 2> /dev/null ; \
38366 if test -r $(TARGET_SUBDIR)/libada/multilib.out; then \
38367 if cmp -s $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; then \
38368 rm -f $(TARGET_SUBDIR)/libada/multilib.tmp; \
38369 else \
38370 rm -f $(TARGET_SUBDIR)/libada/Makefile; \
38371 mv $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; \
38372 fi; \
38373 else \
38374 mv $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; \
cc11cc9b
PB
38375 fi; \
38376 test ! -f $(TARGET_SUBDIR)/libada/Makefile || exit 0; \
295f4e42 38377 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libada ; \
4fc4dd12 38378 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38379 echo Configuring in $(TARGET_SUBDIR)/libada; \
38380 cd "$(TARGET_SUBDIR)/libada" || exit 1; \
3aa83176 38381 case $(srcdir) in \
215c351a
PB
38382 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38383 *) topdir=`echo $(TARGET_SUBDIR)/libada/ | \
38384 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3aa83176 38385 esac; \
215c351a
PB
38386 srcdiroption="--srcdir=$${topdir}/libada"; \
38387 libsrcdir="$$s/libada"; \
3aa83176
NN
38388 rm -f no-such-file || : ; \
38389 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 38390 $(TARGET_CONFIGARGS) $${srcdiroption} \
3aa83176 38391 || exit 1
60975492 38392@endif target-libada
4977bab6 38393
25b42232
PB
38394
38395
ce406537
PB
38396
38397
295f4e42
NN
38398.PHONY: all-target-libada maybe-all-target-libada
38399maybe-all-target-libada:
3ff3adad
PB
38400@if gcc-bootstrap
38401all-target-libada: stage_current
38402@endif gcc-bootstrap
60975492 38403@if target-libada
7c27e184 38404TARGET-target-libada=all
60975492 38405maybe-all-target-libada: all-target-libada
295f4e42 38406all-target-libada: configure-target-libada
f41d6665 38407 @: $(MAKE); $(unstage)
8c90b13a
L
38408 @r=`${PWD_COMMAND}`; export r; \
38409 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38410 $(NORMAL_TARGET_EXPORTS) \
295f4e42 38411 (cd $(TARGET_SUBDIR)/libada && \
25b42232 38412 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libada))
60975492 38413@endif target-libada
6599da04 38414
25b42232
PB
38415
38416
ce406537
PB
38417
38418
295f4e42
NN
38419.PHONY: check-target-libada maybe-check-target-libada
38420maybe-check-target-libada:
60975492
PB
38421@if target-libada
38422maybe-check-target-libada: check-target-libada
7e2dbcef 38423
295f4e42 38424check-target-libada:
f41d6665 38425 @: $(MAKE); $(unstage)
8c90b13a
L
38426 @r=`${PWD_COMMAND}`; export r; \
38427 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38428 $(NORMAL_TARGET_EXPORTS) \
295f4e42 38429 (cd $(TARGET_SUBDIR)/libada && \
a52a0a7f 38430 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
6599da04 38431
60975492 38432@endif target-libada
4977bab6 38433
295f4e42
NN
38434.PHONY: install-target-libada maybe-install-target-libada
38435maybe-install-target-libada:
60975492
PB
38436@if target-libada
38437maybe-install-target-libada: install-target-libada
7e2dbcef 38438
295f4e42 38439install-target-libada: installdirs
f41d6665 38440 @: $(MAKE); $(unstage)
8c90b13a
L
38441 @r=`${PWD_COMMAND}`; export r; \
38442 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38443 $(NORMAL_TARGET_EXPORTS) \
295f4e42 38444 (cd $(TARGET_SUBDIR)/libada && \
a52a0a7f 38445 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6599da04 38446
60975492 38447@endif target-libada
4977bab6 38448
295f4e42 38449# Other targets (info, dvi, etc.)
4977bab6 38450
295f4e42
NN
38451.PHONY: maybe-info-target-libada info-target-libada
38452maybe-info-target-libada:
60975492
PB
38453@if target-libada
38454maybe-info-target-libada: info-target-libada
4977bab6 38455
295f4e42 38456info-target-libada: \
05750653 38457 configure-target-libada
f41d6665 38458 @: $(MAKE); $(unstage)
295f4e42 38459 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
8c90b13a
L
38460 r=`${PWD_COMMAND}`; export r; \
38461 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38462 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38463 echo "Doing info in $(TARGET_SUBDIR)/libada" ; \
38464 for flag in $(EXTRA_TARGET_FLAGS); do \
38465 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38466 done; \
38467 (cd $(TARGET_SUBDIR)/libada && \
38468 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38469 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38470 "RANLIB=$${RANLIB}" \
38471 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 38472 info) \
3aa83176 38473 || exit 1
4977bab6 38474
60975492 38475@endif target-libada
295f4e42
NN
38476
38477.PHONY: maybe-dvi-target-libada dvi-target-libada
38478maybe-dvi-target-libada:
60975492
PB
38479@if target-libada
38480maybe-dvi-target-libada: dvi-target-libada
295f4e42
NN
38481
38482dvi-target-libada: \
05750653 38483 configure-target-libada
f41d6665 38484 @: $(MAKE); $(unstage)
295f4e42
NN
38485 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
38486 r=`${PWD_COMMAND}`; export r; \
8c90b13a 38487 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38488 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38489 echo "Doing dvi in $(TARGET_SUBDIR)/libada" ; \
38490 for flag in $(EXTRA_TARGET_FLAGS); do \
38491 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38492 done; \
38493 (cd $(TARGET_SUBDIR)/libada && \
38494 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38495 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38496 "RANLIB=$${RANLIB}" \
38497 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 38498 dvi) \
295f4e42 38499 || exit 1
6599da04 38500
60975492 38501@endif target-libada
7e2dbcef 38502
f87a2b2e
MS
38503.PHONY: maybe-html-target-libada html-target-libada
38504maybe-html-target-libada:
38505@if target-libada
38506maybe-html-target-libada: html-target-libada
38507
38508html-target-libada: \
05750653 38509 configure-target-libada
f41d6665 38510 @: $(MAKE); $(unstage)
f87a2b2e
MS
38511 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
38512 r=`${PWD_COMMAND}`; export r; \
38513 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
38514 $(NORMAL_TARGET_EXPORTS) \
38515 echo "Doing html in $(TARGET_SUBDIR)/libada" ; \
38516 for flag in $(EXTRA_TARGET_FLAGS); do \
38517 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38518 done; \
38519 (cd $(TARGET_SUBDIR)/libada && \
38520 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38521 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38522 "RANLIB=$${RANLIB}" \
38523 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
38524 html) \
38525 || exit 1
38526
38527@endif target-libada
38528
295f4e42
NN
38529.PHONY: maybe-TAGS-target-libada TAGS-target-libada
38530maybe-TAGS-target-libada:
60975492
PB
38531@if target-libada
38532maybe-TAGS-target-libada: TAGS-target-libada
295f4e42
NN
38533
38534TAGS-target-libada: \
05750653 38535 configure-target-libada
f41d6665 38536 @: $(MAKE); $(unstage)
295f4e42
NN
38537 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
38538 r=`${PWD_COMMAND}`; export r; \
8c90b13a 38539 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38540 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38541 echo "Doing TAGS in $(TARGET_SUBDIR)/libada" ; \
38542 for flag in $(EXTRA_TARGET_FLAGS); do \
38543 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38544 done; \
38545 (cd $(TARGET_SUBDIR)/libada && \
38546 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38547 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38548 "RANLIB=$${RANLIB}" \
38549 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 38550 TAGS) \
295f4e42 38551 || exit 1
6599da04 38552
60975492 38553@endif target-libada
6599da04 38554
295f4e42
NN
38555.PHONY: maybe-install-info-target-libada install-info-target-libada
38556maybe-install-info-target-libada:
60975492
PB
38557@if target-libada
38558maybe-install-info-target-libada: install-info-target-libada
7e2dbcef 38559
295f4e42
NN
38560install-info-target-libada: \
38561 configure-target-libada \
05750653 38562 info-target-libada
f41d6665 38563 @: $(MAKE); $(unstage)
295f4e42
NN
38564 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
38565 r=`${PWD_COMMAND}`; export r; \
8c90b13a 38566 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38567 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38568 echo "Doing install-info in $(TARGET_SUBDIR)/libada" ; \
38569 for flag in $(EXTRA_TARGET_FLAGS); do \
38570 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38571 done; \
38572 (cd $(TARGET_SUBDIR)/libada && \
38573 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38574 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38575 "RANLIB=$${RANLIB}" \
38576 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 38577 install-info) \
295f4e42 38578 || exit 1
6599da04 38579
60975492 38580@endif target-libada
6599da04 38581
65d6e994
CD
38582.PHONY: maybe-install-html-target-libada install-html-target-libada
38583maybe-install-html-target-libada:
38584@if target-libada
38585maybe-install-html-target-libada: install-html-target-libada
38586
38587install-html-target-libada: \
38588 configure-target-libada \
38589 html-target-libada
38590 @: $(MAKE); $(unstage)
38591 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
38592 r=`${PWD_COMMAND}`; export r; \
38593 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38594 $(NORMAL_TARGET_EXPORTS) \
38595 echo "Doing install-html in $(TARGET_SUBDIR)/libada" ; \
38596 for flag in $(EXTRA_TARGET_FLAGS); do \
38597 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38598 done; \
38599 (cd $(TARGET_SUBDIR)/libada && \
38600 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38601 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38602 "RANLIB=$${RANLIB}" \
38603 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
38604 install-html) \
38605 || exit 1
38606
38607@endif target-libada
38608
295f4e42
NN
38609.PHONY: maybe-installcheck-target-libada installcheck-target-libada
38610maybe-installcheck-target-libada:
60975492
PB
38611@if target-libada
38612maybe-installcheck-target-libada: installcheck-target-libada
d9cdb878 38613
295f4e42 38614installcheck-target-libada: \
05750653 38615 configure-target-libada
f41d6665 38616 @: $(MAKE); $(unstage)
295f4e42
NN
38617 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
38618 r=`${PWD_COMMAND}`; export r; \
38619 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38620 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38621 echo "Doing installcheck in $(TARGET_SUBDIR)/libada" ; \
38622 for flag in $(EXTRA_TARGET_FLAGS); do \
38623 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38624 done; \
38625 (cd $(TARGET_SUBDIR)/libada && \
38626 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38627 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38628 "RANLIB=$${RANLIB}" \
38629 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 38630 installcheck) \
295f4e42 38631 || exit 1
d9cdb878 38632
60975492 38633@endif target-libada
295f4e42
NN
38634
38635.PHONY: maybe-mostlyclean-target-libada mostlyclean-target-libada
38636maybe-mostlyclean-target-libada:
60975492
PB
38637@if target-libada
38638maybe-mostlyclean-target-libada: mostlyclean-target-libada
295f4e42 38639
05750653 38640mostlyclean-target-libada:
f41d6665 38641 @: $(MAKE); $(unstage)
295f4e42 38642 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
d9cdb878
AC
38643 r=`${PWD_COMMAND}`; export r; \
38644 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38645 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38646 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libada" ; \
38647 for flag in $(EXTRA_TARGET_FLAGS); do \
38648 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38649 done; \
38650 (cd $(TARGET_SUBDIR)/libada && \
38651 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38652 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38653 "RANLIB=$${RANLIB}" \
38654 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 38655 mostlyclean) \
d9cdb878
AC
38656 || exit 1
38657
60975492 38658@endif target-libada
295f4e42
NN
38659
38660.PHONY: maybe-clean-target-libada clean-target-libada
38661maybe-clean-target-libada:
60975492
PB
38662@if target-libada
38663maybe-clean-target-libada: clean-target-libada
295f4e42 38664
05750653 38665clean-target-libada:
f41d6665 38666 @: $(MAKE); $(unstage)
295f4e42
NN
38667 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
38668 r=`${PWD_COMMAND}`; export r; \
d9cdb878 38669 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38670 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38671 echo "Doing clean in $(TARGET_SUBDIR)/libada" ; \
38672 for flag in $(EXTRA_TARGET_FLAGS); do \
38673 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38674 done; \
d9cdb878 38675 (cd $(TARGET_SUBDIR)/libada && \
295f4e42
NN
38676 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38677 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38678 "RANLIB=$${RANLIB}" \
38679 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 38680 clean) \
295f4e42 38681 || exit 1
d9cdb878 38682
60975492 38683@endif target-libada
d9cdb878 38684
295f4e42
NN
38685.PHONY: maybe-distclean-target-libada distclean-target-libada
38686maybe-distclean-target-libada:
60975492
PB
38687@if target-libada
38688maybe-distclean-target-libada: distclean-target-libada
295f4e42 38689
05750653 38690distclean-target-libada:
f41d6665 38691 @: $(MAKE); $(unstage)
295f4e42
NN
38692 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
38693 r=`${PWD_COMMAND}`; export r; \
d9cdb878 38694 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38695 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38696 echo "Doing distclean in $(TARGET_SUBDIR)/libada" ; \
38697 for flag in $(EXTRA_TARGET_FLAGS); do \
38698 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38699 done; \
d9cdb878 38700 (cd $(TARGET_SUBDIR)/libada && \
295f4e42
NN
38701 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38702 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38703 "RANLIB=$${RANLIB}" \
38704 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 38705 distclean) \
295f4e42 38706 || exit 1
d9cdb878 38707
60975492 38708@endif target-libada
d9cdb878 38709
295f4e42
NN
38710.PHONY: maybe-maintainer-clean-target-libada maintainer-clean-target-libada
38711maybe-maintainer-clean-target-libada:
60975492
PB
38712@if target-libada
38713maybe-maintainer-clean-target-libada: maintainer-clean-target-libada
d9cdb878 38714
05750653 38715maintainer-clean-target-libada:
f41d6665 38716 @: $(MAKE); $(unstage)
295f4e42
NN
38717 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
38718 r=`${PWD_COMMAND}`; export r; \
d9cdb878 38719 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38720 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38721 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libada" ; \
38722 for flag in $(EXTRA_TARGET_FLAGS); do \
38723 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38724 done; \
d9cdb878 38725 (cd $(TARGET_SUBDIR)/libada && \
295f4e42
NN
38726 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38727 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38728 "RANLIB=$${RANLIB}" \
38729 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 38730 maintainer-clean) \
295f4e42
NN
38731 || exit 1
38732
60975492 38733@endif target-libada
d9cdb878
AC
38734
38735
4977bab6 38736
953ff289
DN
38737
38738
38739.PHONY: configure-target-libgomp maybe-configure-target-libgomp
38740maybe-configure-target-libgomp:
3ff3adad
PB
38741@if gcc-bootstrap
38742configure-target-libgomp: stage_current
38743@endif gcc-bootstrap
953ff289
DN
38744@if target-libgomp
38745maybe-configure-target-libgomp: configure-target-libgomp
cc11cc9b 38746configure-target-libgomp:
953ff289
DN
38747 @: $(MAKE); $(unstage)
38748 @r=`${PWD_COMMAND}`; export r; \
38749 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38750 echo "Checking multilib configuration for libgomp..."; \
38751 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp ; \
38752 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null ; \
38753 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
38754 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
38755 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
38756 else \
38757 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
38758 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
38759 fi; \
38760 else \
38761 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
cc11cc9b
PB
38762 fi; \
38763 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
953ff289 38764 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp ; \
953ff289
DN
38765 $(NORMAL_TARGET_EXPORTS) \
38766 echo Configuring in $(TARGET_SUBDIR)/libgomp; \
38767 cd "$(TARGET_SUBDIR)/libgomp" || exit 1; \
38768 case $(srcdir) in \
38769 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38770 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
38771 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
38772 esac; \
38773 srcdiroption="--srcdir=$${topdir}/libgomp"; \
38774 libsrcdir="$$s/libgomp"; \
38775 rm -f no-such-file || : ; \
38776 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
38777 $(TARGET_CONFIGARGS) $${srcdiroption} \
38778 || exit 1
38779@endif target-libgomp
38780
38781
38782
38783
38784
38785.PHONY: all-target-libgomp maybe-all-target-libgomp
38786maybe-all-target-libgomp:
3ff3adad
PB
38787@if gcc-bootstrap
38788all-target-libgomp: stage_current
38789@endif gcc-bootstrap
953ff289
DN
38790@if target-libgomp
38791TARGET-target-libgomp=all
38792maybe-all-target-libgomp: all-target-libgomp
38793all-target-libgomp: configure-target-libgomp
38794 @: $(MAKE); $(unstage)
38795 @r=`${PWD_COMMAND}`; export r; \
38796 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38797 $(NORMAL_TARGET_EXPORTS) \
38798 (cd $(TARGET_SUBDIR)/libgomp && \
38799 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libgomp))
38800@endif target-libgomp
38801
38802
38803
38804
38805
38806.PHONY: check-target-libgomp maybe-check-target-libgomp
38807maybe-check-target-libgomp:
38808@if target-libgomp
38809maybe-check-target-libgomp: check-target-libgomp
38810
38811check-target-libgomp:
38812 @: $(MAKE); $(unstage)
38813 @r=`${PWD_COMMAND}`; export r; \
38814 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38815 $(NORMAL_TARGET_EXPORTS) \
38816 (cd $(TARGET_SUBDIR)/libgomp && \
38817 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
38818
38819@endif target-libgomp
38820
38821.PHONY: install-target-libgomp maybe-install-target-libgomp
38822maybe-install-target-libgomp:
38823@if target-libgomp
38824maybe-install-target-libgomp: install-target-libgomp
38825
38826install-target-libgomp: installdirs
38827 @: $(MAKE); $(unstage)
38828 @r=`${PWD_COMMAND}`; export r; \
38829 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38830 $(NORMAL_TARGET_EXPORTS) \
38831 (cd $(TARGET_SUBDIR)/libgomp && \
38832 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
38833
38834@endif target-libgomp
38835
38836# Other targets (info, dvi, etc.)
38837
38838.PHONY: maybe-info-target-libgomp info-target-libgomp
38839maybe-info-target-libgomp:
38840@if target-libgomp
38841maybe-info-target-libgomp: info-target-libgomp
38842
38843info-target-libgomp: \
38844 configure-target-libgomp
38845 @: $(MAKE); $(unstage)
38846 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
38847 r=`${PWD_COMMAND}`; export r; \
38848 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38849 $(NORMAL_TARGET_EXPORTS) \
38850 echo "Doing info in $(TARGET_SUBDIR)/libgomp" ; \
38851 for flag in $(EXTRA_TARGET_FLAGS); do \
38852 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38853 done; \
38854 (cd $(TARGET_SUBDIR)/libgomp && \
38855 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38856 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38857 "RANLIB=$${RANLIB}" \
38858 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
38859 info) \
38860 || exit 1
38861
38862@endif target-libgomp
38863
38864.PHONY: maybe-dvi-target-libgomp dvi-target-libgomp
38865maybe-dvi-target-libgomp:
38866@if target-libgomp
38867maybe-dvi-target-libgomp: dvi-target-libgomp
38868
38869dvi-target-libgomp: \
38870 configure-target-libgomp
38871 @: $(MAKE); $(unstage)
38872 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
38873 r=`${PWD_COMMAND}`; export r; \
38874 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38875 $(NORMAL_TARGET_EXPORTS) \
38876 echo "Doing dvi in $(TARGET_SUBDIR)/libgomp" ; \
38877 for flag in $(EXTRA_TARGET_FLAGS); do \
38878 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38879 done; \
38880 (cd $(TARGET_SUBDIR)/libgomp && \
38881 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38882 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38883 "RANLIB=$${RANLIB}" \
38884 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
38885 dvi) \
38886 || exit 1
38887
38888@endif target-libgomp
38889
38890.PHONY: maybe-html-target-libgomp html-target-libgomp
38891maybe-html-target-libgomp:
38892@if target-libgomp
38893maybe-html-target-libgomp: html-target-libgomp
38894
38895html-target-libgomp: \
38896 configure-target-libgomp
38897 @: $(MAKE); $(unstage)
38898 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
38899 r=`${PWD_COMMAND}`; export r; \
38900 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38901 $(NORMAL_TARGET_EXPORTS) \
38902 echo "Doing html in $(TARGET_SUBDIR)/libgomp" ; \
38903 for flag in $(EXTRA_TARGET_FLAGS); do \
38904 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38905 done; \
38906 (cd $(TARGET_SUBDIR)/libgomp && \
38907 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38908 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38909 "RANLIB=$${RANLIB}" \
38910 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
38911 html) \
38912 || exit 1
38913
38914@endif target-libgomp
38915
38916.PHONY: maybe-TAGS-target-libgomp TAGS-target-libgomp
38917maybe-TAGS-target-libgomp:
38918@if target-libgomp
38919maybe-TAGS-target-libgomp: TAGS-target-libgomp
38920
38921TAGS-target-libgomp: \
38922 configure-target-libgomp
38923 @: $(MAKE); $(unstage)
38924 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
38925 r=`${PWD_COMMAND}`; export r; \
38926 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38927 $(NORMAL_TARGET_EXPORTS) \
38928 echo "Doing TAGS in $(TARGET_SUBDIR)/libgomp" ; \
38929 for flag in $(EXTRA_TARGET_FLAGS); do \
38930 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38931 done; \
38932 (cd $(TARGET_SUBDIR)/libgomp && \
38933 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38934 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38935 "RANLIB=$${RANLIB}" \
38936 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
38937 TAGS) \
38938 || exit 1
38939
38940@endif target-libgomp
38941
38942.PHONY: maybe-install-info-target-libgomp install-info-target-libgomp
38943maybe-install-info-target-libgomp:
38944@if target-libgomp
38945maybe-install-info-target-libgomp: install-info-target-libgomp
38946
38947install-info-target-libgomp: \
38948 configure-target-libgomp \
38949 info-target-libgomp
38950 @: $(MAKE); $(unstage)
38951 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
38952 r=`${PWD_COMMAND}`; export r; \
38953 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38954 $(NORMAL_TARGET_EXPORTS) \
38955 echo "Doing install-info in $(TARGET_SUBDIR)/libgomp" ; \
38956 for flag in $(EXTRA_TARGET_FLAGS); do \
38957 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38958 done; \
38959 (cd $(TARGET_SUBDIR)/libgomp && \
38960 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38961 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38962 "RANLIB=$${RANLIB}" \
38963 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
38964 install-info) \
38965 || exit 1
38966
38967@endif target-libgomp
38968
65d6e994
CD
38969.PHONY: maybe-install-html-target-libgomp install-html-target-libgomp
38970maybe-install-html-target-libgomp:
38971@if target-libgomp
38972maybe-install-html-target-libgomp: install-html-target-libgomp
38973
38974install-html-target-libgomp: \
38975 configure-target-libgomp \
38976 html-target-libgomp
38977 @: $(MAKE); $(unstage)
38978 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
38979 r=`${PWD_COMMAND}`; export r; \
38980 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38981 $(NORMAL_TARGET_EXPORTS) \
38982 echo "Doing install-html in $(TARGET_SUBDIR)/libgomp" ; \
38983 for flag in $(EXTRA_TARGET_FLAGS); do \
38984 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38985 done; \
38986 (cd $(TARGET_SUBDIR)/libgomp && \
38987 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38988 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38989 "RANLIB=$${RANLIB}" \
38990 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
38991 install-html) \
38992 || exit 1
38993
38994@endif target-libgomp
38995
953ff289
DN
38996.PHONY: maybe-installcheck-target-libgomp installcheck-target-libgomp
38997maybe-installcheck-target-libgomp:
38998@if target-libgomp
38999maybe-installcheck-target-libgomp: installcheck-target-libgomp
39000
39001installcheck-target-libgomp: \
39002 configure-target-libgomp
39003 @: $(MAKE); $(unstage)
39004 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
39005 r=`${PWD_COMMAND}`; export r; \
39006 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39007 $(NORMAL_TARGET_EXPORTS) \
39008 echo "Doing installcheck in $(TARGET_SUBDIR)/libgomp" ; \
39009 for flag in $(EXTRA_TARGET_FLAGS); do \
39010 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39011 done; \
39012 (cd $(TARGET_SUBDIR)/libgomp && \
39013 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39014 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39015 "RANLIB=$${RANLIB}" \
39016 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
39017 installcheck) \
39018 || exit 1
39019
39020@endif target-libgomp
39021
39022.PHONY: maybe-mostlyclean-target-libgomp mostlyclean-target-libgomp
39023maybe-mostlyclean-target-libgomp:
39024@if target-libgomp
39025maybe-mostlyclean-target-libgomp: mostlyclean-target-libgomp
39026
39027mostlyclean-target-libgomp:
39028 @: $(MAKE); $(unstage)
39029 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
39030 r=`${PWD_COMMAND}`; export r; \
39031 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39032 $(NORMAL_TARGET_EXPORTS) \
39033 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgomp" ; \
39034 for flag in $(EXTRA_TARGET_FLAGS); do \
39035 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39036 done; \
39037 (cd $(TARGET_SUBDIR)/libgomp && \
39038 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39039 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39040 "RANLIB=$${RANLIB}" \
39041 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
39042 mostlyclean) \
39043 || exit 1
39044
39045@endif target-libgomp
39046
39047.PHONY: maybe-clean-target-libgomp clean-target-libgomp
39048maybe-clean-target-libgomp:
39049@if target-libgomp
39050maybe-clean-target-libgomp: clean-target-libgomp
39051
39052clean-target-libgomp:
39053 @: $(MAKE); $(unstage)
39054 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
39055 r=`${PWD_COMMAND}`; export r; \
39056 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39057 $(NORMAL_TARGET_EXPORTS) \
39058 echo "Doing clean in $(TARGET_SUBDIR)/libgomp" ; \
39059 for flag in $(EXTRA_TARGET_FLAGS); do \
39060 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39061 done; \
39062 (cd $(TARGET_SUBDIR)/libgomp && \
39063 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39064 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39065 "RANLIB=$${RANLIB}" \
39066 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
39067 clean) \
39068 || exit 1
39069
39070@endif target-libgomp
39071
39072.PHONY: maybe-distclean-target-libgomp distclean-target-libgomp
39073maybe-distclean-target-libgomp:
39074@if target-libgomp
39075maybe-distclean-target-libgomp: distclean-target-libgomp
39076
39077distclean-target-libgomp:
39078 @: $(MAKE); $(unstage)
39079 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
39080 r=`${PWD_COMMAND}`; export r; \
39081 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39082 $(NORMAL_TARGET_EXPORTS) \
39083 echo "Doing distclean in $(TARGET_SUBDIR)/libgomp" ; \
39084 for flag in $(EXTRA_TARGET_FLAGS); do \
39085 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39086 done; \
39087 (cd $(TARGET_SUBDIR)/libgomp && \
39088 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39089 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39090 "RANLIB=$${RANLIB}" \
39091 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
39092 distclean) \
39093 || exit 1
39094
39095@endif target-libgomp
39096
39097.PHONY: maybe-maintainer-clean-target-libgomp maintainer-clean-target-libgomp
39098maybe-maintainer-clean-target-libgomp:
39099@if target-libgomp
39100maybe-maintainer-clean-target-libgomp: maintainer-clean-target-libgomp
39101
39102maintainer-clean-target-libgomp:
39103 @: $(MAKE); $(unstage)
39104 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
39105 r=`${PWD_COMMAND}`; export r; \
39106 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39107 $(NORMAL_TARGET_EXPORTS) \
39108 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgomp" ; \
39109 for flag in $(EXTRA_TARGET_FLAGS); do \
39110 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39111 done; \
39112 (cd $(TARGET_SUBDIR)/libgomp && \
39113 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39114 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39115 "RANLIB=$${RANLIB}" \
39116 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
39117 maintainer-clean) \
39118 || exit 1
39119
39120@endif target-libgomp
39121
39122
39123
4977bab6
ZW
39124# ----------
39125# GCC module
39126# ----------
39127
f516a7da 39128@if gcc-no-bootstrap
d32ab992
PB
39129# GCC has some more recursive targets, which trigger the old
39130# (but still current, until the toplevel bootstrap project
39131# is finished) compiler bootstrapping rules.
6599da04 39132
1ca4c6e1
PE
39133GCC_STRAP_TARGETS = bootstrap bootstrap-lean bootstrap2 bootstrap2-lean bootstrap3 bootstrap3-lean bootstrap4 bootstrap4-lean bubblestrap quickstrap cleanstrap restrap
39134.PHONY: $(GCC_STRAP_TARGETS)
3589b69e 39135$(GCC_STRAP_TARGETS): all-prebootstrap configure-gcc
8c90b13a
L
39136 @r=`${PWD_COMMAND}`; export r; \
39137 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a52a0a7f 39138 $(HOST_EXPORTS) \
339c9b00 39139 echo "Bootstrapping the compiler"; \
0bff65e7 39140 $(RPATH_ENVVAR)=`echo "$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,:[ :]*,:,g;s,^[ :]*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \
3a4fee66 39141 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $@
8c90b13a
L
39142 @r=`${PWD_COMMAND}`; export r; \
39143 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc71c0ca 39144 case "$@" in \
f0983958 39145 *bootstrap4-lean ) \
3aa83176
NN
39146 msg="Comparing stage3 and stage4 of the compiler"; \
39147 compare=compare3-lean ;; \
39148 *bootstrap4 ) \
39149 msg="Comparing stage3 and stage4 of the compiler"; \
39150 compare=compare3 ;; \
39151 *-lean ) \
39152 msg="Comparing stage2 and stage3 of the compiler"; \
39153 compare=compare-lean ;; \
39154 * ) \
39155 msg="Comparing stage2 and stage3 of the compiler"; \
39156 compare=compare ;; \
cc71c0ca 39157 esac; \
a52a0a7f 39158 $(HOST_EXPORTS) \
cc71c0ca 39159 echo "$$msg"; \
3a4fee66 39160 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) $$compare
8c90b13a
L
39161 @r=`${PWD_COMMAND}`; export r; \
39162 s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \
f6b58262 39163 echo "Building runtime libraries"; \
ad6717df 39164 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all
b1e3ddfd 39165
3589b69e 39166profiledbootstrap: all-prebootstrap configure-gcc
8c90b13a
L
39167 @r=`${PWD_COMMAND}`; export r; \
39168 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a52a0a7f 39169 $(HOST_EXPORTS) \
0bff65e7 39170 $(RPATH_ENVVAR)=`echo "$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,:[ :]*,:,g;s,^[ :]*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \
3922b216 39171 echo "Bootstrapping training compiler"; \
8f231b5d 39172 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) stageprofile_build
8c90b13a 39173 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 39174 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a52a0a7f 39175 $(HOST_EXPORTS) \
8f231b5d
JH
39176 echo "Building feedback based compiler"; \
39177 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) stagefeedback_build
3922b216
JDA
39178 @r=`${PWD_COMMAND}`; export r; \
39179 s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \
3922b216
JDA
39180 echo "Building runtime libraries"; \
39181 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all
8f231b5d 39182
09f97c1e 39183.PHONY: cross
7c27e184 39184cross: all-build all-gas all-ld
8c90b13a
L
39185 @r=`${PWD_COMMAND}`; export r; \
39186 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a52a0a7f 39187 $(HOST_EXPORTS) \
09f97c1e 39188 echo "Building the C and C++ compiler"; \
3a4fee66 39189 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++"
8c90b13a
L
39190 @r=`${PWD_COMMAND}`; export r; \
39191 s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \
f6b58262 39192 echo "Building runtime libraries"; \
ad6717df 39193 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LANGUAGES="c c++" all
f516a7da 39194@endif gcc-no-bootstrap
09f97c1e 39195
60975492 39196@if gcc
0edcfdcb
JM
39197.PHONY: check-gcc-c++
39198check-gcc-c++:
f04885d3 39199 @if [ -f ./gcc/Makefile ] ; then \
8c90b13a
L
39200 r=`${PWD_COMMAND}`; export r; \
39201 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a52a0a7f 39202 $(HOST_EXPORTS) \
88b5521b 39203 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-c++); \
f04885d3
BK
39204 else \
39205 true; \
0edcfdcb
JM
39206 fi
39207
39208.PHONY: check-c++
333a28b4 39209check-c++: check-target-libstdc++-v3 check-gcc-c++
6599da04 39210
4977bab6
ZW
39211# Install the gcc headers files, but not the fixed include files,
39212# which Cygnus is not allowed to distribute. This rule is very
39213# dependent on the workings of the gcc Makefile.in.
39214.PHONY: gcc-no-fixedincludes
39215gcc-no-fixedincludes:
39216 @if [ -f ./gcc/Makefile ]; then \
39217 rm -rf gcc/tmp-include; \
39218 mv gcc/include gcc/tmp-include 2>/dev/null; \
39219 mkdir gcc/include; \
39220 cp $(srcdir)/gcc/gsyslimits.h gcc/include/syslimits.h; \
39221 touch gcc/stmp-fixinc gcc/include/fixed; \
39222 rm -f gcc/stmp-headers gcc/stmp-int-hdrs; \
8c90b13a
L
39223 r=`${PWD_COMMAND}`; export r; \
39224 s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \
a52a0a7f 39225 $(HOST_EXPORTS) \
88b5521b 39226 (cd ./gcc && \
4977bab6
ZW
39227 $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
39228 rm -rf gcc/include; \
39229 mv gcc/tmp-include gcc/include 2>/dev/null; \
39230 else true; fi
60975492 39231@endif gcc
295f4e42 39232
d32ab992
PB
39233# ---------------------
39234# GCC bootstrap support
39235# ---------------------
295f4e42 39236
d32ab992
PB
39237# We track the current stage (the one in 'gcc') in the stage_current file.
39238# stage_last instead tracks the stage that was built last. These targets
39239# are dummy when toplevel bootstrap is not active.
295f4e42 39240
1061f99e 39241# While making host and target tools, symlinks to the final stage must be
f41d6665
DJ
39242# there, so $(unstage) should be run at various points. To avoid excessive
39243# recursive invocations of make, we "inline" them using a variable. These
39244# must be referenced as ": $(MAKE) ; $(unstage)" rather than "$(unstage)"
39245# to avoid warnings from the GNU Make job server.
1061f99e
PB
39246
39247unstage = :
39248stage = :
cc11cc9b 39249current_stage = ""
1061f99e 39250
d32ab992 39251@if gcc-bootstrap
03e67131 39252unstage = [ -f stage_current ] || $(MAKE) `cat stage_last`-start
d19bca38 39253stage = if [ -f stage_current ]; then $(MAKE) `cat stage_current`-end || exit 1; else :; fi
cc11cc9b 39254current_stage = "`cat stage_current 2> /dev/null`"
d32ab992 39255@endif gcc-bootstrap
295f4e42 39256
1061f99e
PB
39257.PHONY: unstage stage
39258unstage:
f41d6665 39259 @: $(MAKE); $(unstage)
d32ab992 39260stage:
f41d6665 39261 @: $(MAKE); $(stage)
2805b53a 39262
2d309510
PB
39263# Disable commands for lean bootstrap.
39264LEAN = false
39265
148907ea
PB
39266# We name the build directories for the various stages "stage1-gcc",
39267# "stage2-gcc","stage3-gcc", etc.
39268
39269# Since the 'compare' process will fail (on debugging information) if any
39270# directory names are different, we need to link the gcc directory for
f41d6665 39271# the previous stage to a constant name ('prev-gcc'), and to make the name of
148907ea
PB
39272# the build directories constant as well. For the latter, we use naked names
39273# like 'gcc', because the scripts in that directory assume it. We use
39274# mv on platforms where symlinks to directories do not work or are not
39275# reliable.
39276
2805b53a 39277# 'touch' doesn't work right on some platforms.
05750653 39278STAMP = echo timestamp >
2805b53a
NN
39279
39280# Only build the C compiler for stage1, because that is the only one that
39281# we can guarantee will build with the native compiler, and also it is the
39282# only thing useful for building stage2. STAGE1_CFLAGS (via CFLAGS),
39283# MAKEINFO and MAKEINFOFLAGS are explicitly passed here to make them
39284# overrideable (for a bootstrap build stage1 also builds gcc.info).
39285
39286STAGE1_CFLAGS=@stage1_cflags@
39287STAGE1_LANGUAGES=@stage1_languages@
39288
148907ea
PB
39289# We only want to compare .o files, so set this!
39290objext = .o
39291
148907ea 39292# Flags to pass to stage2 and later makes.
148907ea 39293POSTSTAGE1_FLAGS_TO_PASS = \
ad6717df 39294 CC="$${CC}" CC_FOR_BUILD="$${CC_FOR_BUILD}" \
5bea4a03 39295 STAGE_PREFIX=$$r/prev-gcc/ \
148907ea 39296 CFLAGS="$(BOOT_CFLAGS)" \
cc11cc9b 39297 LIBCFLAGS="$(BOOT_CFLAGS)" \
d19bca38 39298 LDFLAGS="$(BOOT_LDFLAGS)" \
e9a54b07 39299 "`echo 'ADAFLAGS=$(BOOT_ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"
148907ea 39300
340de83f 39301# For stage 1:
295f4e42
NN
39302# * We force-disable intermodule optimizations, even if
39303# --enable-intermodule was passed, since the installed compiler probably
39304# can't handle them. Luckily, autoconf always respects
39305# the last argument when conflicting --enable arguments are passed.
39306# * Likewise, we force-disable coverage flags, since the installed compiler
39307# probably has never heard of them.
39308# * We build only C (and possibly Ada).
148907ea
PB
39309
39310
f516a7da 39311.PHONY: stage1-start stage1-end
148907ea 39312
ad6717df 39313stage1-start::
f41d6665 39314 @: $(MAKE); $(stage); \
d32ab992 39315 echo stage1 > stage_current ; \
215c351a 39316 echo stage1 > stage_last; \
f41d6665 39317 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
7c27e184 39318@if bfd
215c351a
PB
39319 @cd $(HOST_SUBDIR); [ -d stage1-bfd ] || \
39320 mkdir stage1-bfd; \
2d309510 39321 mv stage1-bfd bfd
7c27e184
PB
39322@endif bfd
39323@if opcodes
215c351a
PB
39324 @cd $(HOST_SUBDIR); [ -d stage1-opcodes ] || \
39325 mkdir stage1-opcodes; \
2d309510 39326 mv stage1-opcodes opcodes
7c27e184
PB
39327@endif opcodes
39328@if binutils
215c351a
PB
39329 @cd $(HOST_SUBDIR); [ -d stage1-binutils ] || \
39330 mkdir stage1-binutils; \
2d309510 39331 mv stage1-binutils binutils
7c27e184
PB
39332@endif binutils
39333@if gas
215c351a
PB
39334 @cd $(HOST_SUBDIR); [ -d stage1-gas ] || \
39335 mkdir stage1-gas; \
2d309510 39336 mv stage1-gas gas
7c27e184
PB
39337@endif gas
39338@if gcc
215c351a
PB
39339 @cd $(HOST_SUBDIR); [ -d stage1-gcc ] || \
39340 mkdir stage1-gcc; \
2d309510 39341 mv stage1-gcc gcc
7c27e184
PB
39342@endif gcc
39343@if intl
215c351a
PB
39344 @cd $(HOST_SUBDIR); [ -d stage1-intl ] || \
39345 mkdir stage1-intl; \
2d309510 39346 mv stage1-intl intl
7c27e184
PB
39347@endif intl
39348@if ld
215c351a
PB
39349 @cd $(HOST_SUBDIR); [ -d stage1-ld ] || \
39350 mkdir stage1-ld; \
2d309510 39351 mv stage1-ld ld
7c27e184
PB
39352@endif ld
39353@if libcpp
215c351a
PB
39354 @cd $(HOST_SUBDIR); [ -d stage1-libcpp ] || \
39355 mkdir stage1-libcpp; \
2d309510 39356 mv stage1-libcpp libcpp
7c27e184 39357@endif libcpp
a4b6c45a
BE
39358@if libdecnumber
39359 @cd $(HOST_SUBDIR); [ -d stage1-libdecnumber ] || \
39360 mkdir stage1-libdecnumber; \
2d309510 39361 mv stage1-libdecnumber libdecnumber
a4b6c45a 39362@endif libdecnumber
7c27e184 39363@if libiberty
215c351a
PB
39364 @cd $(HOST_SUBDIR); [ -d stage1-libiberty ] || \
39365 mkdir stage1-libiberty; \
2d309510 39366 mv stage1-libiberty libiberty
7c27e184
PB
39367@endif libiberty
39368@if zlib
215c351a
PB
39369 @cd $(HOST_SUBDIR); [ -d stage1-zlib ] || \
39370 mkdir stage1-zlib; \
2d309510 39371 mv stage1-zlib zlib
7c27e184 39372@endif zlib
f41d6665
DJ
39373 @[ -d stage1-$(TARGET_SUBDIR) ] || \
39374 mkdir stage1-$(TARGET_SUBDIR); \
2d309510 39375 mv stage1-$(TARGET_SUBDIR) $(TARGET_SUBDIR)
148907ea 39376
2d309510 39377stage1-end::
7c27e184 39378@if bfd
2d309510
PB
39379 @if test -d $(HOST_SUBDIR)/bfd ; then \
39380 cd $(HOST_SUBDIR); mv bfd stage1-bfd ; \
f41d6665 39381 fi
7c27e184
PB
39382@endif bfd
39383@if opcodes
2d309510
PB
39384 @if test -d $(HOST_SUBDIR)/opcodes ; then \
39385 cd $(HOST_SUBDIR); mv opcodes stage1-opcodes ; \
f41d6665 39386 fi
7c27e184
PB
39387@endif opcodes
39388@if binutils
2d309510
PB
39389 @if test -d $(HOST_SUBDIR)/binutils ; then \
39390 cd $(HOST_SUBDIR); mv binutils stage1-binutils ; \
f41d6665 39391 fi
7c27e184
PB
39392@endif binutils
39393@if gas
2d309510
PB
39394 @if test -d $(HOST_SUBDIR)/gas ; then \
39395 cd $(HOST_SUBDIR); mv gas stage1-gas ; \
f41d6665 39396 fi
7c27e184
PB
39397@endif gas
39398@if gcc
2d309510
PB
39399 @if test -d $(HOST_SUBDIR)/gcc ; then \
39400 cd $(HOST_SUBDIR); mv gcc stage1-gcc ; \
f41d6665 39401 fi
7c27e184
PB
39402@endif gcc
39403@if intl
2d309510
PB
39404 @if test -d $(HOST_SUBDIR)/intl ; then \
39405 cd $(HOST_SUBDIR); mv intl stage1-intl ; \
f41d6665 39406 fi
7c27e184
PB
39407@endif intl
39408@if ld
2d309510
PB
39409 @if test -d $(HOST_SUBDIR)/ld ; then \
39410 cd $(HOST_SUBDIR); mv ld stage1-ld ; \
f41d6665 39411 fi
7c27e184
PB
39412@endif ld
39413@if libcpp
2d309510
PB
39414 @if test -d $(HOST_SUBDIR)/libcpp ; then \
39415 cd $(HOST_SUBDIR); mv libcpp stage1-libcpp ; \
f41d6665 39416 fi
7c27e184 39417@endif libcpp
a4b6c45a 39418@if libdecnumber
2d309510
PB
39419 @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
39420 cd $(HOST_SUBDIR); mv libdecnumber stage1-libdecnumber ; \
f41d6665 39421 fi
a4b6c45a 39422@endif libdecnumber
7c27e184 39423@if libiberty
2d309510
PB
39424 @if test -d $(HOST_SUBDIR)/libiberty ; then \
39425 cd $(HOST_SUBDIR); mv libiberty stage1-libiberty ; \
f41d6665 39426 fi
7c27e184
PB
39427@endif libiberty
39428@if zlib
2d309510
PB
39429 @if test -d $(HOST_SUBDIR)/zlib ; then \
39430 cd $(HOST_SUBDIR); mv zlib stage1-zlib ; \
f41d6665 39431 fi
7c27e184 39432@endif zlib
f41d6665 39433 @if test -d $(TARGET_SUBDIR) ; then \
2d309510 39434 mv $(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR) ; \
f41d6665 39435 fi
2d309510 39436 rm -f stage_current
148907ea 39437
f41d6665
DJ
39438# Bubble a bugfix through all the stages up to stage 1. They are
39439# remade, but not reconfigured. The next stage (if any) will not be
39440# reconfigured as well.
f516a7da 39441.PHONY: stage1-bubble
05750653 39442stage1-bubble::
e7c84bf8
PB
39443 @r=`${PWD_COMMAND}`; export r; \
39444 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39445 if test -f stage1-lean ; then \
ce521a9c
PB
39446 echo Skipping rebuild of stage1 ; \
39447 else \
1061f99e
PB
39448 $(MAKE) stage1-start; \
39449 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage1; \
ce521a9c 39450 fi
7c27e184 39451
45f366ab 39452.PHONY: all-stage1 clean-stage1
45f366ab 39453do-clean: clean-stage1
45f366ab 39454
7c27e184
PB
39455# FIXME: Will not need to be conditional when toplevel bootstrap is the
39456# only possibility, but now it conflicts with no-bootstrap rules
39457@if gcc-bootstrap
39458
39459
39460
39461
45f366ab 39462# Rules to wipe a stage and all the following ones, also used for cleanstrap
7c27e184 39463
45f366ab 39464.PHONY: distclean-stage1
7c27e184 39465distclean-stage1::
f41d6665 39466 @: $(MAKE); $(stage)
05750653 39467 rm -rf stage1-*
7c27e184
PB
39468
39469
39470@endif gcc-bootstrap
39471
39472
39473.PHONY: stage2-start stage2-end
39474
39475stage2-start::
f41d6665 39476 @: $(MAKE); $(stage); \
7c27e184 39477 echo stage2 > stage_current ; \
215c351a 39478 echo stage2 > stage_last; \
f41d6665 39479 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
7c27e184 39480@if bfd
215c351a
PB
39481 @cd $(HOST_SUBDIR); [ -d stage2-bfd ] || \
39482 mkdir stage2-bfd; \
2d309510
PB
39483 mv stage2-bfd bfd ; \
39484 mv stage1-bfd prev-bfd || test -f stage1-lean
7c27e184
PB
39485@endif bfd
39486@if opcodes
215c351a
PB
39487 @cd $(HOST_SUBDIR); [ -d stage2-opcodes ] || \
39488 mkdir stage2-opcodes; \
2d309510
PB
39489 mv stage2-opcodes opcodes ; \
39490 mv stage1-opcodes prev-opcodes || test -f stage1-lean
7c27e184
PB
39491@endif opcodes
39492@if binutils
215c351a
PB
39493 @cd $(HOST_SUBDIR); [ -d stage2-binutils ] || \
39494 mkdir stage2-binutils; \
2d309510
PB
39495 mv stage2-binutils binutils ; \
39496 mv stage1-binutils prev-binutils || test -f stage1-lean
7c27e184
PB
39497@endif binutils
39498@if gas
215c351a
PB
39499 @cd $(HOST_SUBDIR); [ -d stage2-gas ] || \
39500 mkdir stage2-gas; \
2d309510
PB
39501 mv stage2-gas gas ; \
39502 mv stage1-gas prev-gas || test -f stage1-lean
7c27e184
PB
39503@endif gas
39504@if gcc
215c351a
PB
39505 @cd $(HOST_SUBDIR); [ -d stage2-gcc ] || \
39506 mkdir stage2-gcc; \
2d309510
PB
39507 mv stage2-gcc gcc ; \
39508 mv stage1-gcc prev-gcc || test -f stage1-lean
7c27e184
PB
39509@endif gcc
39510@if intl
215c351a
PB
39511 @cd $(HOST_SUBDIR); [ -d stage2-intl ] || \
39512 mkdir stage2-intl; \
2d309510
PB
39513 mv stage2-intl intl ; \
39514 mv stage1-intl prev-intl || test -f stage1-lean
7c27e184
PB
39515@endif intl
39516@if ld
215c351a
PB
39517 @cd $(HOST_SUBDIR); [ -d stage2-ld ] || \
39518 mkdir stage2-ld; \
2d309510
PB
39519 mv stage2-ld ld ; \
39520 mv stage1-ld prev-ld || test -f stage1-lean
7c27e184
PB
39521@endif ld
39522@if libcpp
215c351a
PB
39523 @cd $(HOST_SUBDIR); [ -d stage2-libcpp ] || \
39524 mkdir stage2-libcpp; \
2d309510
PB
39525 mv stage2-libcpp libcpp ; \
39526 mv stage1-libcpp prev-libcpp || test -f stage1-lean
7c27e184 39527@endif libcpp
a4b6c45a
BE
39528@if libdecnumber
39529 @cd $(HOST_SUBDIR); [ -d stage2-libdecnumber ] || \
39530 mkdir stage2-libdecnumber; \
2d309510
PB
39531 mv stage2-libdecnumber libdecnumber ; \
39532 mv stage1-libdecnumber prev-libdecnumber || test -f stage1-lean
a4b6c45a 39533@endif libdecnumber
7c27e184 39534@if libiberty
215c351a
PB
39535 @cd $(HOST_SUBDIR); [ -d stage2-libiberty ] || \
39536 mkdir stage2-libiberty; \
2d309510
PB
39537 mv stage2-libiberty libiberty ; \
39538 mv stage1-libiberty prev-libiberty || test -f stage1-lean
7c27e184
PB
39539@endif libiberty
39540@if zlib
215c351a
PB
39541 @cd $(HOST_SUBDIR); [ -d stage2-zlib ] || \
39542 mkdir stage2-zlib; \
2d309510
PB
39543 mv stage2-zlib zlib ; \
39544 mv stage1-zlib prev-zlib || test -f stage1-lean
7c27e184 39545@endif zlib
f41d6665
DJ
39546 @[ -d stage2-$(TARGET_SUBDIR) ] || \
39547 mkdir stage2-$(TARGET_SUBDIR); \
2d309510
PB
39548 mv stage2-$(TARGET_SUBDIR) $(TARGET_SUBDIR) ; \
39549 mv stage1-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage1-lean
7c27e184 39550
2d309510 39551stage2-end::
7c27e184 39552@if bfd
2d309510
PB
39553 @if test -d $(HOST_SUBDIR)/bfd ; then \
39554 cd $(HOST_SUBDIR); mv bfd stage2-bfd ; \
39555 mv prev-bfd stage1-bfd ; : ; \
f41d6665 39556 fi
7c27e184
PB
39557@endif bfd
39558@if opcodes
2d309510
PB
39559 @if test -d $(HOST_SUBDIR)/opcodes ; then \
39560 cd $(HOST_SUBDIR); mv opcodes stage2-opcodes ; \
39561 mv prev-opcodes stage1-opcodes ; : ; \
f41d6665 39562 fi
7c27e184
PB
39563@endif opcodes
39564@if binutils
2d309510
PB
39565 @if test -d $(HOST_SUBDIR)/binutils ; then \
39566 cd $(HOST_SUBDIR); mv binutils stage2-binutils ; \
39567 mv prev-binutils stage1-binutils ; : ; \
f41d6665 39568 fi
7c27e184
PB
39569@endif binutils
39570@if gas
2d309510
PB
39571 @if test -d $(HOST_SUBDIR)/gas ; then \
39572 cd $(HOST_SUBDIR); mv gas stage2-gas ; \
39573 mv prev-gas stage1-gas ; : ; \
f41d6665 39574 fi
7c27e184
PB
39575@endif gas
39576@if gcc
2d309510
PB
39577 @if test -d $(HOST_SUBDIR)/gcc ; then \
39578 cd $(HOST_SUBDIR); mv gcc stage2-gcc ; \
39579 mv prev-gcc stage1-gcc ; : ; \
f41d6665 39580 fi
7c27e184
PB
39581@endif gcc
39582@if intl
2d309510
PB
39583 @if test -d $(HOST_SUBDIR)/intl ; then \
39584 cd $(HOST_SUBDIR); mv intl stage2-intl ; \
39585 mv prev-intl stage1-intl ; : ; \
f41d6665 39586 fi
7c27e184
PB
39587@endif intl
39588@if ld
2d309510
PB
39589 @if test -d $(HOST_SUBDIR)/ld ; then \
39590 cd $(HOST_SUBDIR); mv ld stage2-ld ; \
39591 mv prev-ld stage1-ld ; : ; \
f41d6665 39592 fi
7c27e184
PB
39593@endif ld
39594@if libcpp
2d309510
PB
39595 @if test -d $(HOST_SUBDIR)/libcpp ; then \
39596 cd $(HOST_SUBDIR); mv libcpp stage2-libcpp ; \
39597 mv prev-libcpp stage1-libcpp ; : ; \
f41d6665 39598 fi
7c27e184 39599@endif libcpp
a4b6c45a 39600@if libdecnumber
2d309510
PB
39601 @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
39602 cd $(HOST_SUBDIR); mv libdecnumber stage2-libdecnumber ; \
39603 mv prev-libdecnumber stage1-libdecnumber ; : ; \
f41d6665 39604 fi
a4b6c45a 39605@endif libdecnumber
7c27e184 39606@if libiberty
2d309510
PB
39607 @if test -d $(HOST_SUBDIR)/libiberty ; then \
39608 cd $(HOST_SUBDIR); mv libiberty stage2-libiberty ; \
39609 mv prev-libiberty stage1-libiberty ; : ; \
f41d6665 39610 fi
7c27e184
PB
39611@endif libiberty
39612@if zlib
2d309510
PB
39613 @if test -d $(HOST_SUBDIR)/zlib ; then \
39614 cd $(HOST_SUBDIR); mv zlib stage2-zlib ; \
39615 mv prev-zlib stage1-zlib ; : ; \
f41d6665 39616 fi
7c27e184 39617@endif zlib
f41d6665 39618 @if test -d $(TARGET_SUBDIR) ; then \
2d309510
PB
39619 mv $(TARGET_SUBDIR) stage2-$(TARGET_SUBDIR) ; \
39620 mv prev-$(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR) ; : ; \
f41d6665 39621 fi
2d309510 39622 rm -f stage_current
7c27e184 39623
f41d6665
DJ
39624# Bubble a bugfix through all the stages up to stage 2. They are
39625# remade, but not reconfigured. The next stage (if any) will not be
39626# reconfigured as well.
7c27e184
PB
39627.PHONY: stage2-bubble
39628stage2-bubble:: stage1-bubble
e7c84bf8
PB
39629 @r=`${PWD_COMMAND}`; export r; \
39630 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39631 if test -f stage2-lean || test -f stage1-lean ; then \
ce521a9c
PB
39632 echo Skipping rebuild of stage2 ; \
39633 else \
1061f99e
PB
39634 $(MAKE) stage2-start; \
39635 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage2; \
ce521a9c 39636 fi
7c27e184 39637
45f366ab 39638.PHONY: all-stage2 clean-stage2
45f366ab 39639do-clean: clean-stage2
45f366ab 39640
7c27e184
PB
39641# FIXME: Will not need to be conditional when toplevel bootstrap is the
39642# only possibility, but now it conflicts with no-bootstrap rules
39643@if gcc-bootstrap
39644
39645
39646
2d309510 39647.PHONY: bootstrap2 bootstrap2-lean
2abefe3d
PB
39648bootstrap2:
39649 echo stage2 > stage_final
39650 @r=`${PWD_COMMAND}`; export r; \
39651 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39652 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage2-bubble
f41d6665 39653 @: $(MAKE); $(unstage)
2abefe3d
PB
39654 @r=`${PWD_COMMAND}`; export r; \
39655 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39656 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
7c27e184 39657
2d309510
PB
39658bootstrap2-lean:
39659 echo stage2 > stage_final
39660 @r=`${PWD_COMMAND}`; export r; \
39661 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39662 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage2-bubble
39663 @: $(MAKE); $(unstage)
39664 @r=`${PWD_COMMAND}`; export r; \
39665 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39666 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
39667
7c27e184 39668
45f366ab 39669# Rules to wipe a stage and all the following ones, also used for cleanstrap
05750653 39670distclean-stage1:: distclean-stage2
45f366ab 39671.PHONY: distclean-stage2
7c27e184 39672distclean-stage2::
f41d6665 39673 @: $(MAKE); $(stage)
05750653 39674 rm -rf stage2-*
7c27e184
PB
39675
39676
39677@endif gcc-bootstrap
39678
39679
39680.PHONY: stage3-start stage3-end
39681
39682stage3-start::
f41d6665 39683 @: $(MAKE); $(stage); \
7c27e184 39684 echo stage3 > stage_current ; \
215c351a 39685 echo stage3 > stage_last; \
f41d6665 39686 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
7c27e184 39687@if bfd
215c351a
PB
39688 @cd $(HOST_SUBDIR); [ -d stage3-bfd ] || \
39689 mkdir stage3-bfd; \
2d309510
PB
39690 mv stage3-bfd bfd ; \
39691 mv stage2-bfd prev-bfd || test -f stage2-lean
7c27e184
PB
39692@endif bfd
39693@if opcodes
215c351a
PB
39694 @cd $(HOST_SUBDIR); [ -d stage3-opcodes ] || \
39695 mkdir stage3-opcodes; \
2d309510
PB
39696 mv stage3-opcodes opcodes ; \
39697 mv stage2-opcodes prev-opcodes || test -f stage2-lean
7c27e184
PB
39698@endif opcodes
39699@if binutils
215c351a
PB
39700 @cd $(HOST_SUBDIR); [ -d stage3-binutils ] || \
39701 mkdir stage3-binutils; \
2d309510
PB
39702 mv stage3-binutils binutils ; \
39703 mv stage2-binutils prev-binutils || test -f stage2-lean
7c27e184
PB
39704@endif binutils
39705@if gas
215c351a
PB
39706 @cd $(HOST_SUBDIR); [ -d stage3-gas ] || \
39707 mkdir stage3-gas; \
2d309510
PB
39708 mv stage3-gas gas ; \
39709 mv stage2-gas prev-gas || test -f stage2-lean
7c27e184
PB
39710@endif gas
39711@if gcc
215c351a
PB
39712 @cd $(HOST_SUBDIR); [ -d stage3-gcc ] || \
39713 mkdir stage3-gcc; \
2d309510
PB
39714 mv stage3-gcc gcc ; \
39715 mv stage2-gcc prev-gcc || test -f stage2-lean
7c27e184
PB
39716@endif gcc
39717@if intl
215c351a
PB
39718 @cd $(HOST_SUBDIR); [ -d stage3-intl ] || \
39719 mkdir stage3-intl; \
2d309510
PB
39720 mv stage3-intl intl ; \
39721 mv stage2-intl prev-intl || test -f stage2-lean
7c27e184
PB
39722@endif intl
39723@if ld
215c351a
PB
39724 @cd $(HOST_SUBDIR); [ -d stage3-ld ] || \
39725 mkdir stage3-ld; \
2d309510
PB
39726 mv stage3-ld ld ; \
39727 mv stage2-ld prev-ld || test -f stage2-lean
7c27e184
PB
39728@endif ld
39729@if libcpp
215c351a
PB
39730 @cd $(HOST_SUBDIR); [ -d stage3-libcpp ] || \
39731 mkdir stage3-libcpp; \
2d309510
PB
39732 mv stage3-libcpp libcpp ; \
39733 mv stage2-libcpp prev-libcpp || test -f stage2-lean
7c27e184 39734@endif libcpp
a4b6c45a
BE
39735@if libdecnumber
39736 @cd $(HOST_SUBDIR); [ -d stage3-libdecnumber ] || \
39737 mkdir stage3-libdecnumber; \
2d309510
PB
39738 mv stage3-libdecnumber libdecnumber ; \
39739 mv stage2-libdecnumber prev-libdecnumber || test -f stage2-lean
a4b6c45a 39740@endif libdecnumber
7c27e184 39741@if libiberty
215c351a
PB
39742 @cd $(HOST_SUBDIR); [ -d stage3-libiberty ] || \
39743 mkdir stage3-libiberty; \
2d309510
PB
39744 mv stage3-libiberty libiberty ; \
39745 mv stage2-libiberty prev-libiberty || test -f stage2-lean
7c27e184
PB
39746@endif libiberty
39747@if zlib
215c351a
PB
39748 @cd $(HOST_SUBDIR); [ -d stage3-zlib ] || \
39749 mkdir stage3-zlib; \
2d309510
PB
39750 mv stage3-zlib zlib ; \
39751 mv stage2-zlib prev-zlib || test -f stage2-lean
7c27e184 39752@endif zlib
f41d6665
DJ
39753 @[ -d stage3-$(TARGET_SUBDIR) ] || \
39754 mkdir stage3-$(TARGET_SUBDIR); \
2d309510
PB
39755 mv stage3-$(TARGET_SUBDIR) $(TARGET_SUBDIR) ; \
39756 mv stage2-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage2-lean
7c27e184 39757
2d309510 39758stage3-end::
7c27e184 39759@if bfd
2d309510
PB
39760 @if test -d $(HOST_SUBDIR)/bfd ; then \
39761 cd $(HOST_SUBDIR); mv bfd stage3-bfd ; \
39762 mv prev-bfd stage2-bfd ; : ; \
f41d6665 39763 fi
7c27e184
PB
39764@endif bfd
39765@if opcodes
2d309510
PB
39766 @if test -d $(HOST_SUBDIR)/opcodes ; then \
39767 cd $(HOST_SUBDIR); mv opcodes stage3-opcodes ; \
39768 mv prev-opcodes stage2-opcodes ; : ; \
f41d6665 39769 fi
7c27e184
PB
39770@endif opcodes
39771@if binutils
2d309510
PB
39772 @if test -d $(HOST_SUBDIR)/binutils ; then \
39773 cd $(HOST_SUBDIR); mv binutils stage3-binutils ; \
39774 mv prev-binutils stage2-binutils ; : ; \
f41d6665 39775 fi
7c27e184
PB
39776@endif binutils
39777@if gas
2d309510
PB
39778 @if test -d $(HOST_SUBDIR)/gas ; then \
39779 cd $(HOST_SUBDIR); mv gas stage3-gas ; \
39780 mv prev-gas stage2-gas ; : ; \
f41d6665 39781 fi
7c27e184
PB
39782@endif gas
39783@if gcc
2d309510
PB
39784 @if test -d $(HOST_SUBDIR)/gcc ; then \
39785 cd $(HOST_SUBDIR); mv gcc stage3-gcc ; \
39786 mv prev-gcc stage2-gcc ; : ; \
f41d6665 39787 fi
7c27e184
PB
39788@endif gcc
39789@if intl
2d309510
PB
39790 @if test -d $(HOST_SUBDIR)/intl ; then \
39791 cd $(HOST_SUBDIR); mv intl stage3-intl ; \
39792 mv prev-intl stage2-intl ; : ; \
f41d6665 39793 fi
7c27e184
PB
39794@endif intl
39795@if ld
2d309510
PB
39796 @if test -d $(HOST_SUBDIR)/ld ; then \
39797 cd $(HOST_SUBDIR); mv ld stage3-ld ; \
39798 mv prev-ld stage2-ld ; : ; \
f41d6665 39799 fi
7c27e184
PB
39800@endif ld
39801@if libcpp
2d309510
PB
39802 @if test -d $(HOST_SUBDIR)/libcpp ; then \
39803 cd $(HOST_SUBDIR); mv libcpp stage3-libcpp ; \
39804 mv prev-libcpp stage2-libcpp ; : ; \
f41d6665 39805 fi
7c27e184 39806@endif libcpp
a4b6c45a 39807@if libdecnumber
2d309510
PB
39808 @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
39809 cd $(HOST_SUBDIR); mv libdecnumber stage3-libdecnumber ; \
39810 mv prev-libdecnumber stage2-libdecnumber ; : ; \
f41d6665 39811 fi
a4b6c45a 39812@endif libdecnumber
7c27e184 39813@if libiberty
2d309510
PB
39814 @if test -d $(HOST_SUBDIR)/libiberty ; then \
39815 cd $(HOST_SUBDIR); mv libiberty stage3-libiberty ; \
39816 mv prev-libiberty stage2-libiberty ; : ; \
f41d6665 39817 fi
7c27e184
PB
39818@endif libiberty
39819@if zlib
2d309510
PB
39820 @if test -d $(HOST_SUBDIR)/zlib ; then \
39821 cd $(HOST_SUBDIR); mv zlib stage3-zlib ; \
39822 mv prev-zlib stage2-zlib ; : ; \
f41d6665 39823 fi
7c27e184 39824@endif zlib
f41d6665 39825 @if test -d $(TARGET_SUBDIR) ; then \
2d309510
PB
39826 mv $(TARGET_SUBDIR) stage3-$(TARGET_SUBDIR) ; \
39827 mv prev-$(TARGET_SUBDIR) stage2-$(TARGET_SUBDIR) ; : ; \
f41d6665 39828 fi
2d309510 39829 rm -f stage_current
7c27e184 39830
f41d6665
DJ
39831# Bubble a bugfix through all the stages up to stage 3. They are
39832# remade, but not reconfigured. The next stage (if any) will not be
39833# reconfigured as well.
7c27e184
PB
39834.PHONY: stage3-bubble
39835stage3-bubble:: stage2-bubble
e7c84bf8
PB
39836 @r=`${PWD_COMMAND}`; export r; \
39837 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39838 if test -f stage3-lean || test -f stage2-lean ; then \
ce521a9c
PB
39839 echo Skipping rebuild of stage3 ; \
39840 else \
1061f99e 39841 $(MAKE) stage3-start; \
2d309510
PB
39842 if $(LEAN); then \
39843 rm -rf stage1-* ; \
39844 $(STAMP) stage1-lean ; \
39845 fi; \
1061f99e 39846 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage3; \
ce521a9c 39847 fi
d19bca38 39848 $(MAKE) $(RECURSE_FLAGS_TO_PASS) compare
7c27e184 39849
45f366ab 39850.PHONY: all-stage3 clean-stage3
45f366ab 39851do-clean: clean-stage3
45f366ab 39852
ce406537
PB
39853# FIXME: Will not need to be conditional when toplevel bootstrap is the
39854# only possibility, but now it conflicts with no-bootstrap rules
39855@if gcc-bootstrap
7c27e184 39856
ce406537 39857compare:
e7c84bf8
PB
39858 @r=`${PWD_COMMAND}`; export r; \
39859 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39860 if test -f stage2-lean; then \
ce406537
PB
39861 echo Cannot compare object files as stage 2 was deleted. ; \
39862 exit 0 ; \
39863 fi; \
f41d6665 39864 : $(MAKE); $(stage); \
ce406537 39865 rm -f .bad_compare ; \
cc11cc9b 39866 echo Comparing stages 2 and 3 ; \
ce406537
PB
39867 cd stage3-gcc; \
39868 files=`find . -name "*$(objext)" -print` ; \
39869 cd .. ; \
39870 for file in $${files} ; do \
39871 f1=$$r/stage2-gcc/$$file; f2=$$r/stage3-gcc/$$file; \
39872 @do_compare@ > /dev/null 2>&1; \
1061f99e
PB
39873 if test $$? -eq 1; then \
39874 case $$file in \
39875 ./cc*-checksum$(objext) | ./libgcc/* ) \
39876 echo warning: $$file differs ;; \
39877 *) \
39878 echo $$file differs >> .bad_compare ;; \
39879 esac ; \
39880 fi ; \
ce406537
PB
39881 done ; \
39882 if [ -f .bad_compare ]; then \
39883 echo "Bootstrap comparison failure!"; \
39884 cat .bad_compare; \
39885 exit 1; \
39886 else \
cc11cc9b 39887 echo Comparison successful.; \
ce406537
PB
39888 fi ; \
39889 $(STAMP) compare
2d309510
PB
39890 if $(LEAN); then \
39891 rm -rf stage2-*; \
39892 $(STAMP) stage2-lean; \
39893 fi
ce521a9c 39894
7c27e184 39895
7c27e184 39896
2d309510 39897.PHONY: bootstrap bootstrap-lean
2abefe3d
PB
39898bootstrap:
39899 echo stage3 > stage_final
39900 @r=`${PWD_COMMAND}`; export r; \
39901 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39902 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage3-bubble
f41d6665 39903 @: $(MAKE); $(unstage)
2abefe3d
PB
39904 @r=`${PWD_COMMAND}`; export r; \
39905 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39906 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
45f366ab 39907
2d309510
PB
39908bootstrap-lean:
39909 echo stage3 > stage_final
39910 @r=`${PWD_COMMAND}`; export r; \
39911 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39912 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage3-bubble
39913 @: $(MAKE); $(unstage)
39914 @r=`${PWD_COMMAND}`; export r; \
39915 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39916 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
39917
7c27e184 39918
ce406537
PB
39919# Rules to wipe a stage and all the following ones, also used for cleanstrap
39920distclean-stage2:: distclean-stage3
39921.PHONY: distclean-stage3
39922distclean-stage3::
f41d6665 39923 @: $(MAKE); $(stage)
ce406537 39924 rm -rf stage3-* compare
45f366ab 39925
ce521a9c 39926
ce406537
PB
39927.PHONY: cleanstrap
39928cleanstrap: distclean bootstrap
7c27e184
PB
39929
39930@endif gcc-bootstrap
39931
39932
39933.PHONY: stage4-start stage4-end
39934
39935stage4-start::
f41d6665 39936 @: $(MAKE); $(stage); \
7c27e184 39937 echo stage4 > stage_current ; \
215c351a 39938 echo stage4 > stage_last; \
f41d6665 39939 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
7c27e184 39940@if bfd
215c351a
PB
39941 @cd $(HOST_SUBDIR); [ -d stage4-bfd ] || \
39942 mkdir stage4-bfd; \
2d309510
PB
39943 mv stage4-bfd bfd ; \
39944 mv stage3-bfd prev-bfd || test -f stage3-lean
7c27e184
PB
39945@endif bfd
39946@if opcodes
215c351a
PB
39947 @cd $(HOST_SUBDIR); [ -d stage4-opcodes ] || \
39948 mkdir stage4-opcodes; \
2d309510
PB
39949 mv stage4-opcodes opcodes ; \
39950 mv stage3-opcodes prev-opcodes || test -f stage3-lean
7c27e184
PB
39951@endif opcodes
39952@if binutils
215c351a
PB
39953 @cd $(HOST_SUBDIR); [ -d stage4-binutils ] || \
39954 mkdir stage4-binutils; \
2d309510
PB
39955 mv stage4-binutils binutils ; \
39956 mv stage3-binutils prev-binutils || test -f stage3-lean
7c27e184
PB
39957@endif binutils
39958@if gas
215c351a
PB
39959 @cd $(HOST_SUBDIR); [ -d stage4-gas ] || \
39960 mkdir stage4-gas; \
2d309510
PB
39961 mv stage4-gas gas ; \
39962 mv stage3-gas prev-gas || test -f stage3-lean
7c27e184
PB
39963@endif gas
39964@if gcc
215c351a
PB
39965 @cd $(HOST_SUBDIR); [ -d stage4-gcc ] || \
39966 mkdir stage4-gcc; \
2d309510
PB
39967 mv stage4-gcc gcc ; \
39968 mv stage3-gcc prev-gcc || test -f stage3-lean
7c27e184
PB
39969@endif gcc
39970@if intl
215c351a
PB
39971 @cd $(HOST_SUBDIR); [ -d stage4-intl ] || \
39972 mkdir stage4-intl; \
2d309510
PB
39973 mv stage4-intl intl ; \
39974 mv stage3-intl prev-intl || test -f stage3-lean
7c27e184
PB
39975@endif intl
39976@if ld
215c351a
PB
39977 @cd $(HOST_SUBDIR); [ -d stage4-ld ] || \
39978 mkdir stage4-ld; \
2d309510
PB
39979 mv stage4-ld ld ; \
39980 mv stage3-ld prev-ld || test -f stage3-lean
7c27e184
PB
39981@endif ld
39982@if libcpp
215c351a
PB
39983 @cd $(HOST_SUBDIR); [ -d stage4-libcpp ] || \
39984 mkdir stage4-libcpp; \
2d309510
PB
39985 mv stage4-libcpp libcpp ; \
39986 mv stage3-libcpp prev-libcpp || test -f stage3-lean
7c27e184 39987@endif libcpp
a4b6c45a
BE
39988@if libdecnumber
39989 @cd $(HOST_SUBDIR); [ -d stage4-libdecnumber ] || \
39990 mkdir stage4-libdecnumber; \
2d309510
PB
39991 mv stage4-libdecnumber libdecnumber ; \
39992 mv stage3-libdecnumber prev-libdecnumber || test -f stage3-lean
a4b6c45a 39993@endif libdecnumber
7c27e184 39994@if libiberty
215c351a
PB
39995 @cd $(HOST_SUBDIR); [ -d stage4-libiberty ] || \
39996 mkdir stage4-libiberty; \
2d309510
PB
39997 mv stage4-libiberty libiberty ; \
39998 mv stage3-libiberty prev-libiberty || test -f stage3-lean
7c27e184
PB
39999@endif libiberty
40000@if zlib
215c351a
PB
40001 @cd $(HOST_SUBDIR); [ -d stage4-zlib ] || \
40002 mkdir stage4-zlib; \
2d309510
PB
40003 mv stage4-zlib zlib ; \
40004 mv stage3-zlib prev-zlib || test -f stage3-lean
7c27e184 40005@endif zlib
f41d6665
DJ
40006 @[ -d stage4-$(TARGET_SUBDIR) ] || \
40007 mkdir stage4-$(TARGET_SUBDIR); \
2d309510
PB
40008 mv stage4-$(TARGET_SUBDIR) $(TARGET_SUBDIR) ; \
40009 mv stage3-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage3-lean
7c27e184 40010
2d309510 40011stage4-end::
7c27e184 40012@if bfd
2d309510
PB
40013 @if test -d $(HOST_SUBDIR)/bfd ; then \
40014 cd $(HOST_SUBDIR); mv bfd stage4-bfd ; \
40015 mv prev-bfd stage3-bfd ; : ; \
f41d6665 40016 fi
7c27e184
PB
40017@endif bfd
40018@if opcodes
2d309510
PB
40019 @if test -d $(HOST_SUBDIR)/opcodes ; then \
40020 cd $(HOST_SUBDIR); mv opcodes stage4-opcodes ; \
40021 mv prev-opcodes stage3-opcodes ; : ; \
f41d6665 40022 fi
7c27e184
PB
40023@endif opcodes
40024@if binutils
2d309510
PB
40025 @if test -d $(HOST_SUBDIR)/binutils ; then \
40026 cd $(HOST_SUBDIR); mv binutils stage4-binutils ; \
40027 mv prev-binutils stage3-binutils ; : ; \
f41d6665 40028 fi
7c27e184
PB
40029@endif binutils
40030@if gas
2d309510
PB
40031 @if test -d $(HOST_SUBDIR)/gas ; then \
40032 cd $(HOST_SUBDIR); mv gas stage4-gas ; \
40033 mv prev-gas stage3-gas ; : ; \
f41d6665 40034 fi
7c27e184
PB
40035@endif gas
40036@if gcc
2d309510
PB
40037 @if test -d $(HOST_SUBDIR)/gcc ; then \
40038 cd $(HOST_SUBDIR); mv gcc stage4-gcc ; \
40039 mv prev-gcc stage3-gcc ; : ; \
f41d6665 40040 fi
7c27e184
PB
40041@endif gcc
40042@if intl
2d309510
PB
40043 @if test -d $(HOST_SUBDIR)/intl ; then \
40044 cd $(HOST_SUBDIR); mv intl stage4-intl ; \
40045 mv prev-intl stage3-intl ; : ; \
f41d6665 40046 fi
7c27e184
PB
40047@endif intl
40048@if ld
2d309510
PB
40049 @if test -d $(HOST_SUBDIR)/ld ; then \
40050 cd $(HOST_SUBDIR); mv ld stage4-ld ; \
40051 mv prev-ld stage3-ld ; : ; \
f41d6665 40052 fi
7c27e184
PB
40053@endif ld
40054@if libcpp
2d309510
PB
40055 @if test -d $(HOST_SUBDIR)/libcpp ; then \
40056 cd $(HOST_SUBDIR); mv libcpp stage4-libcpp ; \
40057 mv prev-libcpp stage3-libcpp ; : ; \
f41d6665 40058 fi
7c27e184 40059@endif libcpp
a4b6c45a 40060@if libdecnumber
2d309510
PB
40061 @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
40062 cd $(HOST_SUBDIR); mv libdecnumber stage4-libdecnumber ; \
40063 mv prev-libdecnumber stage3-libdecnumber ; : ; \
f41d6665 40064 fi
a4b6c45a 40065@endif libdecnumber
7c27e184 40066@if libiberty
2d309510
PB
40067 @if test -d $(HOST_SUBDIR)/libiberty ; then \
40068 cd $(HOST_SUBDIR); mv libiberty stage4-libiberty ; \
40069 mv prev-libiberty stage3-libiberty ; : ; \
f41d6665 40070 fi
7c27e184
PB
40071@endif libiberty
40072@if zlib
2d309510
PB
40073 @if test -d $(HOST_SUBDIR)/zlib ; then \
40074 cd $(HOST_SUBDIR); mv zlib stage4-zlib ; \
40075 mv prev-zlib stage3-zlib ; : ; \
f41d6665 40076 fi
7c27e184 40077@endif zlib
f41d6665 40078 @if test -d $(TARGET_SUBDIR) ; then \
2d309510
PB
40079 mv $(TARGET_SUBDIR) stage4-$(TARGET_SUBDIR) ; \
40080 mv prev-$(TARGET_SUBDIR) stage3-$(TARGET_SUBDIR) ; : ; \
f41d6665 40081 fi
2d309510 40082 rm -f stage_current
7c27e184 40083
f41d6665
DJ
40084# Bubble a bugfix through all the stages up to stage 4. They are
40085# remade, but not reconfigured. The next stage (if any) will not be
40086# reconfigured as well.
7c27e184
PB
40087.PHONY: stage4-bubble
40088stage4-bubble:: stage3-bubble
e7c84bf8
PB
40089 @r=`${PWD_COMMAND}`; export r; \
40090 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40091 if test -f stage4-lean || test -f stage3-lean ; then \
ce521a9c
PB
40092 echo Skipping rebuild of stage4 ; \
40093 else \
1061f99e 40094 $(MAKE) stage4-start; \
2d309510
PB
40095 if $(LEAN); then \
40096 rm -rf stage2-* ; \
40097 $(STAMP) stage2-lean ; \
40098 fi; \
1061f99e 40099 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage4; \
ce521a9c 40100 fi
d19bca38 40101 $(MAKE) $(RECURSE_FLAGS_TO_PASS) compare3
7c27e184 40102
45f366ab 40103.PHONY: all-stage4 clean-stage4
45f366ab 40104do-clean: clean-stage4
45f366ab 40105
ce406537
PB
40106# FIXME: Will not need to be conditional when toplevel bootstrap is the
40107# only possibility, but now it conflicts with no-bootstrap rules
40108@if gcc-bootstrap
7c27e184 40109
ce406537 40110compare3:
e7c84bf8
PB
40111 @r=`${PWD_COMMAND}`; export r; \
40112 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40113 if test -f stage3-lean; then \
ce406537
PB
40114 echo Cannot compare object files as stage 3 was deleted. ; \
40115 exit 0 ; \
40116 fi; \
f41d6665 40117 : $(MAKE); $(stage); \
ce406537 40118 rm -f .bad_compare ; \
cc11cc9b 40119 echo Comparing stages 3 and 4 ; \
ce406537
PB
40120 cd stage4-gcc; \
40121 files=`find . -name "*$(objext)" -print` ; \
40122 cd .. ; \
40123 for file in $${files} ; do \
40124 f1=$$r/stage3-gcc/$$file; f2=$$r/stage4-gcc/$$file; \
40125 @do_compare@ > /dev/null 2>&1; \
1061f99e
PB
40126 if test $$? -eq 1; then \
40127 case $$file in \
40128 ./cc*-checksum$(objext) | ./libgcc/* ) \
40129 echo warning: $$file differs ;; \
40130 *) \
40131 echo $$file differs >> .bad_compare ;; \
40132 esac ; \
40133 fi ; \
ce406537
PB
40134 done ; \
40135 if [ -f .bad_compare ]; then \
40136 echo "Bootstrap comparison failure!"; \
40137 cat .bad_compare; \
40138 exit 1; \
40139 else \
cc11cc9b 40140 echo Comparison successful.; \
ce406537
PB
40141 fi ; \
40142 $(STAMP) compare3
2d309510
PB
40143 if $(LEAN); then \
40144 rm -rf stage3-*; \
40145 $(STAMP) stage3-lean; \
40146 fi
ce521a9c 40147
7c27e184 40148
7c27e184 40149
2d309510 40150.PHONY: bootstrap4 bootstrap4-lean
2abefe3d
PB
40151bootstrap4:
40152 echo stage4 > stage_final
40153 @r=`${PWD_COMMAND}`; export r; \
40154 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40155 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage4-bubble
f41d6665 40156 @: $(MAKE); $(unstage)
2abefe3d
PB
40157 @r=`${PWD_COMMAND}`; export r; \
40158 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40159 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
45f366ab 40160
2d309510
PB
40161bootstrap4-lean:
40162 echo stage4 > stage_final
40163 @r=`${PWD_COMMAND}`; export r; \
40164 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40165 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage4-bubble
40166 @: $(MAKE); $(unstage)
40167 @r=`${PWD_COMMAND}`; export r; \
40168 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40169 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
40170
7c27e184 40171
ce406537
PB
40172# Rules to wipe a stage and all the following ones, also used for cleanstrap
40173distclean-stage3:: distclean-stage4
40174.PHONY: distclean-stage4
40175distclean-stage4::
f41d6665 40176 @: $(MAKE); $(stage)
ce406537 40177 rm -rf stage4-* compare3
45f366ab 40178
ce521a9c 40179
ce406537 40180@endif gcc-bootstrap
7c27e184
PB
40181
40182
40183.PHONY: stageprofile-start stageprofile-end
40184
40185stageprofile-start::
f41d6665 40186 @: $(MAKE); $(stage); \
7c27e184 40187 echo stageprofile > stage_current ; \
215c351a 40188 echo stageprofile > stage_last; \
f41d6665 40189 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
7c27e184 40190@if bfd
215c351a
PB
40191 @cd $(HOST_SUBDIR); [ -d stageprofile-bfd ] || \
40192 mkdir stageprofile-bfd; \
2d309510
PB
40193 mv stageprofile-bfd bfd ; \
40194 mv stage1-bfd prev-bfd || test -f stage1-lean
7c27e184
PB
40195@endif bfd
40196@if opcodes
215c351a
PB
40197 @cd $(HOST_SUBDIR); [ -d stageprofile-opcodes ] || \
40198 mkdir stageprofile-opcodes; \
2d309510
PB
40199 mv stageprofile-opcodes opcodes ; \
40200 mv stage1-opcodes prev-opcodes || test -f stage1-lean
7c27e184
PB
40201@endif opcodes
40202@if binutils
215c351a
PB
40203 @cd $(HOST_SUBDIR); [ -d stageprofile-binutils ] || \
40204 mkdir stageprofile-binutils; \
2d309510
PB
40205 mv stageprofile-binutils binutils ; \
40206 mv stage1-binutils prev-binutils || test -f stage1-lean
7c27e184
PB
40207@endif binutils
40208@if gas
215c351a
PB
40209 @cd $(HOST_SUBDIR); [ -d stageprofile-gas ] || \
40210 mkdir stageprofile-gas; \
2d309510
PB
40211 mv stageprofile-gas gas ; \
40212 mv stage1-gas prev-gas || test -f stage1-lean
7c27e184
PB
40213@endif gas
40214@if gcc
215c351a
PB
40215 @cd $(HOST_SUBDIR); [ -d stageprofile-gcc ] || \
40216 mkdir stageprofile-gcc; \
2d309510
PB
40217 mv stageprofile-gcc gcc ; \
40218 mv stage1-gcc prev-gcc || test -f stage1-lean
7c27e184
PB
40219@endif gcc
40220@if intl
215c351a
PB
40221 @cd $(HOST_SUBDIR); [ -d stageprofile-intl ] || \
40222 mkdir stageprofile-intl; \
2d309510
PB
40223 mv stageprofile-intl intl ; \
40224 mv stage1-intl prev-intl || test -f stage1-lean
7c27e184
PB
40225@endif intl
40226@if ld
215c351a
PB
40227 @cd $(HOST_SUBDIR); [ -d stageprofile-ld ] || \
40228 mkdir stageprofile-ld; \
2d309510
PB
40229 mv stageprofile-ld ld ; \
40230 mv stage1-ld prev-ld || test -f stage1-lean
7c27e184
PB
40231@endif ld
40232@if libcpp
215c351a
PB
40233 @cd $(HOST_SUBDIR); [ -d stageprofile-libcpp ] || \
40234 mkdir stageprofile-libcpp; \
2d309510
PB
40235 mv stageprofile-libcpp libcpp ; \
40236 mv stage1-libcpp prev-libcpp || test -f stage1-lean
7c27e184 40237@endif libcpp
a4b6c45a
BE
40238@if libdecnumber
40239 @cd $(HOST_SUBDIR); [ -d stageprofile-libdecnumber ] || \
40240 mkdir stageprofile-libdecnumber; \
2d309510
PB
40241 mv stageprofile-libdecnumber libdecnumber ; \
40242 mv stage1-libdecnumber prev-libdecnumber || test -f stage1-lean
a4b6c45a 40243@endif libdecnumber
7c27e184 40244@if libiberty
215c351a
PB
40245 @cd $(HOST_SUBDIR); [ -d stageprofile-libiberty ] || \
40246 mkdir stageprofile-libiberty; \
2d309510
PB
40247 mv stageprofile-libiberty libiberty ; \
40248 mv stage1-libiberty prev-libiberty || test -f stage1-lean
7c27e184
PB
40249@endif libiberty
40250@if zlib
ce406537
PB
40251 @cd $(HOST_SUBDIR); [ -d stageprofile-zlib ] || \
40252 mkdir stageprofile-zlib; \
2d309510
PB
40253 mv stageprofile-zlib zlib ; \
40254 mv stage1-zlib prev-zlib || test -f stage1-lean
ce406537 40255@endif zlib
f41d6665
DJ
40256 @[ -d stageprofile-$(TARGET_SUBDIR) ] || \
40257 mkdir stageprofile-$(TARGET_SUBDIR); \
2d309510
PB
40258 mv stageprofile-$(TARGET_SUBDIR) $(TARGET_SUBDIR) ; \
40259 mv stage1-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage1-lean
45f366ab 40260
2d309510 40261stageprofile-end::
ce406537 40262@if bfd
2d309510
PB
40263 @if test -d $(HOST_SUBDIR)/bfd ; then \
40264 cd $(HOST_SUBDIR); mv bfd stageprofile-bfd ; \
40265 mv prev-bfd stage1-bfd ; : ; \
f41d6665 40266 fi
ce406537
PB
40267@endif bfd
40268@if opcodes
2d309510
PB
40269 @if test -d $(HOST_SUBDIR)/opcodes ; then \
40270 cd $(HOST_SUBDIR); mv opcodes stageprofile-opcodes ; \
40271 mv prev-opcodes stage1-opcodes ; : ; \
f41d6665 40272 fi
ce406537
PB
40273@endif opcodes
40274@if binutils
2d309510
PB
40275 @if test -d $(HOST_SUBDIR)/binutils ; then \
40276 cd $(HOST_SUBDIR); mv binutils stageprofile-binutils ; \
40277 mv prev-binutils stage1-binutils ; : ; \
f41d6665 40278 fi
ce406537
PB
40279@endif binutils
40280@if gas
2d309510
PB
40281 @if test -d $(HOST_SUBDIR)/gas ; then \
40282 cd $(HOST_SUBDIR); mv gas stageprofile-gas ; \
40283 mv prev-gas stage1-gas ; : ; \
f41d6665 40284 fi
ce406537
PB
40285@endif gas
40286@if gcc
2d309510
PB
40287 @if test -d $(HOST_SUBDIR)/gcc ; then \
40288 cd $(HOST_SUBDIR); mv gcc stageprofile-gcc ; \
40289 mv prev-gcc stage1-gcc ; : ; \
f41d6665 40290 fi
ce406537
PB
40291@endif gcc
40292@if intl
2d309510
PB
40293 @if test -d $(HOST_SUBDIR)/intl ; then \
40294 cd $(HOST_SUBDIR); mv intl stageprofile-intl ; \
40295 mv prev-intl stage1-intl ; : ; \
f41d6665 40296 fi
ce406537
PB
40297@endif intl
40298@if ld
2d309510
PB
40299 @if test -d $(HOST_SUBDIR)/ld ; then \
40300 cd $(HOST_SUBDIR); mv ld stageprofile-ld ; \
40301 mv prev-ld stage1-ld ; : ; \
f41d6665 40302 fi
ce406537
PB
40303@endif ld
40304@if libcpp
2d309510
PB
40305 @if test -d $(HOST_SUBDIR)/libcpp ; then \
40306 cd $(HOST_SUBDIR); mv libcpp stageprofile-libcpp ; \
40307 mv prev-libcpp stage1-libcpp ; : ; \
f41d6665 40308 fi
ce406537 40309@endif libcpp
a4b6c45a 40310@if libdecnumber
2d309510
PB
40311 @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
40312 cd $(HOST_SUBDIR); mv libdecnumber stageprofile-libdecnumber ; \
40313 mv prev-libdecnumber stage1-libdecnumber ; : ; \
f41d6665 40314 fi
a4b6c45a 40315@endif libdecnumber
ce406537 40316@if libiberty
2d309510
PB
40317 @if test -d $(HOST_SUBDIR)/libiberty ; then \
40318 cd $(HOST_SUBDIR); mv libiberty stageprofile-libiberty ; \
40319 mv prev-libiberty stage1-libiberty ; : ; \
f41d6665 40320 fi
ce406537
PB
40321@endif libiberty
40322@if zlib
2d309510
PB
40323 @if test -d $(HOST_SUBDIR)/zlib ; then \
40324 cd $(HOST_SUBDIR); mv zlib stageprofile-zlib ; \
40325 mv prev-zlib stage1-zlib ; : ; \
f41d6665 40326 fi
ce406537 40327@endif zlib
f41d6665 40328 @if test -d $(TARGET_SUBDIR) ; then \
2d309510
PB
40329 mv $(TARGET_SUBDIR) stageprofile-$(TARGET_SUBDIR) ; \
40330 mv prev-$(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR) ; : ; \
f41d6665 40331 fi
2d309510 40332 rm -f stage_current
7c27e184 40333
f41d6665
DJ
40334# Bubble a bugfix through all the stages up to stage profile. They are
40335# remade, but not reconfigured. The next stage (if any) will not be
40336# reconfigured as well.
ce406537
PB
40337.PHONY: stageprofile-bubble
40338stageprofile-bubble:: stage1-bubble
e7c84bf8
PB
40339 @r=`${PWD_COMMAND}`; export r; \
40340 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40341 if test -f stageprofile-lean || test -f stage1-lean ; then \
ce406537
PB
40342 echo Skipping rebuild of stageprofile ; \
40343 else \
1061f99e
PB
40344 $(MAKE) stageprofile-start; \
40345 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stageprofile; \
ce406537 40346 fi
7c27e184 40347
ce406537
PB
40348.PHONY: all-stageprofile clean-stageprofile
40349do-clean: clean-stageprofile
45f366ab 40350
7c27e184
PB
40351# FIXME: Will not need to be conditional when toplevel bootstrap is the
40352# only possibility, but now it conflicts with no-bootstrap rules
40353@if gcc-bootstrap
40354
40355
40356
40357
45f366ab 40358# Rules to wipe a stage and all the following ones, also used for cleanstrap
05750653 40359distclean-stage1:: distclean-stageprofile
45f366ab 40360.PHONY: distclean-stageprofile
7c27e184 40361distclean-stageprofile::
f41d6665 40362 @: $(MAKE); $(stage)
05750653 40363 rm -rf stageprofile-*
148907ea
PB
40364
40365
7c27e184 40366@endif gcc-bootstrap
148907ea
PB
40367
40368
7c27e184 40369.PHONY: stagefeedback-start stagefeedback-end
148907ea 40370
7c27e184 40371stagefeedback-start::
f41d6665 40372 @: $(MAKE); $(stage); \
7c27e184 40373 echo stagefeedback > stage_current ; \
215c351a 40374 echo stagefeedback > stage_last; \
f41d6665 40375 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
7c27e184 40376@if bfd
215c351a
PB
40377 @cd $(HOST_SUBDIR); [ -d stagefeedback-bfd ] || \
40378 mkdir stagefeedback-bfd; \
2d309510
PB
40379 mv stagefeedback-bfd bfd ; \
40380 mv stageprofile-bfd prev-bfd || test -f stageprofile-lean
7c27e184
PB
40381@endif bfd
40382@if opcodes
215c351a
PB
40383 @cd $(HOST_SUBDIR); [ -d stagefeedback-opcodes ] || \
40384 mkdir stagefeedback-opcodes; \
2d309510
PB
40385 mv stagefeedback-opcodes opcodes ; \
40386 mv stageprofile-opcodes prev-opcodes || test -f stageprofile-lean
7c27e184
PB
40387@endif opcodes
40388@if binutils
215c351a
PB
40389 @cd $(HOST_SUBDIR); [ -d stagefeedback-binutils ] || \
40390 mkdir stagefeedback-binutils; \
2d309510
PB
40391 mv stagefeedback-binutils binutils ; \
40392 mv stageprofile-binutils prev-binutils || test -f stageprofile-lean
7c27e184
PB
40393@endif binutils
40394@if gas
215c351a
PB
40395 @cd $(HOST_SUBDIR); [ -d stagefeedback-gas ] || \
40396 mkdir stagefeedback-gas; \
2d309510
PB
40397 mv stagefeedback-gas gas ; \
40398 mv stageprofile-gas prev-gas || test -f stageprofile-lean
7c27e184
PB
40399@endif gas
40400@if gcc
215c351a
PB
40401 @cd $(HOST_SUBDIR); [ -d stagefeedback-gcc ] || \
40402 mkdir stagefeedback-gcc; \
2d309510
PB
40403 mv stagefeedback-gcc gcc ; \
40404 mv stageprofile-gcc prev-gcc || test -f stageprofile-lean
7c27e184
PB
40405@endif gcc
40406@if intl
215c351a
PB
40407 @cd $(HOST_SUBDIR); [ -d stagefeedback-intl ] || \
40408 mkdir stagefeedback-intl; \
2d309510
PB
40409 mv stagefeedback-intl intl ; \
40410 mv stageprofile-intl prev-intl || test -f stageprofile-lean
7c27e184
PB
40411@endif intl
40412@if ld
215c351a
PB
40413 @cd $(HOST_SUBDIR); [ -d stagefeedback-ld ] || \
40414 mkdir stagefeedback-ld; \
2d309510
PB
40415 mv stagefeedback-ld ld ; \
40416 mv stageprofile-ld prev-ld || test -f stageprofile-lean
7c27e184
PB
40417@endif ld
40418@if libcpp
215c351a
PB
40419 @cd $(HOST_SUBDIR); [ -d stagefeedback-libcpp ] || \
40420 mkdir stagefeedback-libcpp; \
2d309510
PB
40421 mv stagefeedback-libcpp libcpp ; \
40422 mv stageprofile-libcpp prev-libcpp || test -f stageprofile-lean
7c27e184 40423@endif libcpp
a4b6c45a
BE
40424@if libdecnumber
40425 @cd $(HOST_SUBDIR); [ -d stagefeedback-libdecnumber ] || \
40426 mkdir stagefeedback-libdecnumber; \
2d309510
PB
40427 mv stagefeedback-libdecnumber libdecnumber ; \
40428 mv stageprofile-libdecnumber prev-libdecnumber || test -f stageprofile-lean
a4b6c45a 40429@endif libdecnumber
7c27e184 40430@if libiberty
215c351a
PB
40431 @cd $(HOST_SUBDIR); [ -d stagefeedback-libiberty ] || \
40432 mkdir stagefeedback-libiberty; \
2d309510
PB
40433 mv stagefeedback-libiberty libiberty ; \
40434 mv stageprofile-libiberty prev-libiberty || test -f stageprofile-lean
7c27e184
PB
40435@endif libiberty
40436@if zlib
215c351a
PB
40437 @cd $(HOST_SUBDIR); [ -d stagefeedback-zlib ] || \
40438 mkdir stagefeedback-zlib; \
2d309510
PB
40439 mv stagefeedback-zlib zlib ; \
40440 mv stageprofile-zlib prev-zlib || test -f stageprofile-lean
7c27e184 40441@endif zlib
f41d6665
DJ
40442 @[ -d stagefeedback-$(TARGET_SUBDIR) ] || \
40443 mkdir stagefeedback-$(TARGET_SUBDIR); \
2d309510
PB
40444 mv stagefeedback-$(TARGET_SUBDIR) $(TARGET_SUBDIR) ; \
40445 mv stageprofile-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stageprofile-lean
148907ea 40446
2d309510 40447stagefeedback-end::
7c27e184 40448@if bfd
2d309510
PB
40449 @if test -d $(HOST_SUBDIR)/bfd ; then \
40450 cd $(HOST_SUBDIR); mv bfd stagefeedback-bfd ; \
40451 mv prev-bfd stageprofile-bfd ; : ; \
f41d6665 40452 fi
7c27e184
PB
40453@endif bfd
40454@if opcodes
2d309510
PB
40455 @if test -d $(HOST_SUBDIR)/opcodes ; then \
40456 cd $(HOST_SUBDIR); mv opcodes stagefeedback-opcodes ; \
40457 mv prev-opcodes stageprofile-opcodes ; : ; \
f41d6665 40458 fi
7c27e184
PB
40459@endif opcodes
40460@if binutils
2d309510
PB
40461 @if test -d $(HOST_SUBDIR)/binutils ; then \
40462 cd $(HOST_SUBDIR); mv binutils stagefeedback-binutils ; \
40463 mv prev-binutils stageprofile-binutils ; : ; \
f41d6665 40464 fi
7c27e184
PB
40465@endif binutils
40466@if gas
2d309510
PB
40467 @if test -d $(HOST_SUBDIR)/gas ; then \
40468 cd $(HOST_SUBDIR); mv gas stagefeedback-gas ; \
40469 mv prev-gas stageprofile-gas ; : ; \
f41d6665 40470 fi
7c27e184
PB
40471@endif gas
40472@if gcc
2d309510
PB
40473 @if test -d $(HOST_SUBDIR)/gcc ; then \
40474 cd $(HOST_SUBDIR); mv gcc stagefeedback-gcc ; \
40475 mv prev-gcc stageprofile-gcc ; : ; \
f41d6665 40476 fi
7c27e184
PB
40477@endif gcc
40478@if intl
2d309510
PB
40479 @if test -d $(HOST_SUBDIR)/intl ; then \
40480 cd $(HOST_SUBDIR); mv intl stagefeedback-intl ; \
40481 mv prev-intl stageprofile-intl ; : ; \
f41d6665 40482 fi
7c27e184
PB
40483@endif intl
40484@if ld
2d309510
PB
40485 @if test -d $(HOST_SUBDIR)/ld ; then \
40486 cd $(HOST_SUBDIR); mv ld stagefeedback-ld ; \
40487 mv prev-ld stageprofile-ld ; : ; \
f41d6665 40488 fi
7c27e184
PB
40489@endif ld
40490@if libcpp
2d309510
PB
40491 @if test -d $(HOST_SUBDIR)/libcpp ; then \
40492 cd $(HOST_SUBDIR); mv libcpp stagefeedback-libcpp ; \
40493 mv prev-libcpp stageprofile-libcpp ; : ; \
f41d6665 40494 fi
7c27e184 40495@endif libcpp
a4b6c45a 40496@if libdecnumber
2d309510
PB
40497 @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
40498 cd $(HOST_SUBDIR); mv libdecnumber stagefeedback-libdecnumber ; \
40499 mv prev-libdecnumber stageprofile-libdecnumber ; : ; \
f41d6665 40500 fi
a4b6c45a 40501@endif libdecnumber
7c27e184 40502@if libiberty
2d309510
PB
40503 @if test -d $(HOST_SUBDIR)/libiberty ; then \
40504 cd $(HOST_SUBDIR); mv libiberty stagefeedback-libiberty ; \
40505 mv prev-libiberty stageprofile-libiberty ; : ; \
f41d6665 40506 fi
7c27e184
PB
40507@endif libiberty
40508@if zlib
2d309510
PB
40509 @if test -d $(HOST_SUBDIR)/zlib ; then \
40510 cd $(HOST_SUBDIR); mv zlib stagefeedback-zlib ; \
40511 mv prev-zlib stageprofile-zlib ; : ; \
f41d6665 40512 fi
7c27e184 40513@endif zlib
f41d6665 40514 @if test -d $(TARGET_SUBDIR) ; then \
2d309510
PB
40515 mv $(TARGET_SUBDIR) stagefeedback-$(TARGET_SUBDIR) ; \
40516 mv prev-$(TARGET_SUBDIR) stageprofile-$(TARGET_SUBDIR) ; : ; \
f41d6665 40517 fi
2d309510 40518 rm -f stage_current
148907ea 40519
f41d6665
DJ
40520# Bubble a bugfix through all the stages up to stage feedback. They are
40521# remade, but not reconfigured. The next stage (if any) will not be
40522# reconfigured as well.
7c27e184 40523.PHONY: stagefeedback-bubble
c7870f5d 40524stagefeedback-bubble:: stageprofile-bubble
e7c84bf8
PB
40525 @r=`${PWD_COMMAND}`; export r; \
40526 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40527 if test -f stagefeedback-lean || test -f stageprofile-lean ; then \
ce521a9c
PB
40528 echo Skipping rebuild of stagefeedback ; \
40529 else \
1061f99e
PB
40530 $(MAKE) stagefeedback-start; \
40531 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stagefeedback; \
ce521a9c 40532 fi
7c27e184 40533
45f366ab 40534.PHONY: all-stagefeedback clean-stagefeedback
45f366ab 40535do-clean: clean-stagefeedback
45f366ab 40536
7c27e184
PB
40537# FIXME: Will not need to be conditional when toplevel bootstrap is the
40538# only possibility, but now it conflicts with no-bootstrap rules
40539@if gcc-bootstrap
ad6717df
PB
40540
40541
40542
2d309510 40543.PHONY: profiledbootstrap profiledbootstrap-lean
2abefe3d
PB
40544profiledbootstrap:
40545 echo stagefeedback > stage_final
40546 @r=`${PWD_COMMAND}`; export r; \
40547 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40548 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stagefeedback-bubble
f41d6665 40549 @: $(MAKE); $(unstage)
2abefe3d
PB
40550 @r=`${PWD_COMMAND}`; export r; \
40551 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40552 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
c7870f5d 40553
2d309510
PB
40554profiledbootstrap-lean:
40555 echo stagefeedback > stage_final
40556 @r=`${PWD_COMMAND}`; export r; \
40557 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40558 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stagefeedback-bubble
40559 @: $(MAKE); $(unstage)
40560 @r=`${PWD_COMMAND}`; export r; \
40561 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40562 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
40563
ad6717df 40564
45f366ab 40565# Rules to wipe a stage and all the following ones, also used for cleanstrap
c7870f5d 40566distclean-stageprofile:: distclean-stagefeedback
45f366ab 40567.PHONY: distclean-stagefeedback
ad6717df 40568distclean-stagefeedback::
f41d6665 40569 @: $(MAKE); $(stage)
05750653 40570 rm -rf stagefeedback-*
ad6717df
PB
40571
40572
7c27e184 40573@endif gcc-bootstrap
ad6717df
PB
40574
40575
40576
c7870f5d
PB
40577stageprofile-end::
40578 $(MAKE) distclean-stagefeedback
ad6717df 40579
c7870f5d 40580stagefeedback-start::
ad6717df
PB
40581 @r=`${PWD_COMMAND}`; export r; \
40582 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c7870f5d
PB
40583 for i in prev-*; do \
40584 j=`echo $$i | sed s/^prev-//` ; \
40585 cd $$r/$$i && \
40586 { find . -type d | sort | sed 's,.*,$(SHELL) '"$$s"'/mkinstalldirs "../'$$j'/&",' | $(SHELL) ; } && \
40587 { find . -name '*.*da' | sed 's,.*,$(LN) -f "&" "../'$$j'/&",' | $(SHELL) ; } ; \
40588 done
03a91701 40589
45f366ab 40590@if gcc-bootstrap
45f366ab 40591do-distclean: distclean-stage1
cc11cc9b
PB
40592
40593# Provide a GCC build when we're building target libraries. This does
40594# not work as a dependency, just as the minimum necessary to avoid errors.
40595stage_last:
40596 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage1-bubble
45f366ab 40597
3ff3adad
PB
40598# Same as unstage, but not phony and defaulting to stage1-start. We place
40599# it in the dependency so that for example `make -j3 all-gcc' works.
40600stage_current:
40601 @if test -f stage_last; then $(unstage); else $(MAKE) stage1-start; fi
40602
cc11cc9b
PB
40603.PHONY: restrap
40604restrap:
40605 @: $(MAKE); $(stage)
e9a54b07 40606 rm -rf stage1-$(TARGET_SUBDIR) stage2-* stage3-* stage4-* stageprofile-* stagefeedback-*
cc11cc9b 40607 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all
e9a54b07 40608@endif gcc-bootstrap
cc11cc9b 40609
4977bab6
ZW
40610# --------------------------------------
40611# Dependencies between different modules
40612# --------------------------------------
40613
3589b69e 40614# Generic dependencies for target modules on host stuff, especially gcc
cc11cc9b
PB
40615@if gcc-bootstrap
40616configure-target-libstdc++-v3: stage_last
40617configure-target-libmudflap: stage_last
40618configure-target-libssp: stage_last
cc11cc9b
PB
40619configure-target-newlib: stage_last
40620configure-target-libgfortran: stage_last
40621configure-target-libobjc: stage_last
40622configure-target-libtermcap: stage_last
40623configure-target-winsup: stage_last
40624configure-target-libgloss: stage_last
40625configure-target-libiberty: stage_last
40626configure-target-gperf: stage_last
40627configure-target-examples: stage_last
40628configure-target-libffi: stage_last
40629configure-target-libjava: stage_last
40630configure-target-zlib: stage_last
40631configure-target-boehm-gc: stage_last
40632configure-target-qthreads: stage_last
40633configure-target-rda: stage_last
40634configure-target-libada: stage_last
40635configure-target-libgomp: stage_last
40636@endif gcc-bootstrap
3589b69e 40637
cc11cc9b 40638@if gcc-no-bootstrap
3589b69e 40639configure-target-libstdc++-v3: maybe-all-gcc
3589b69e 40640configure-target-libmudflap: maybe-all-gcc
77008252 40641configure-target-libssp: maybe-all-gcc
3589b69e 40642configure-target-newlib: maybe-all-gcc
3589b69e 40643configure-target-libgfortran: maybe-all-gcc
3589b69e 40644configure-target-libobjc: maybe-all-gcc
3589b69e 40645configure-target-libtermcap: maybe-all-gcc
3589b69e 40646configure-target-winsup: maybe-all-gcc
3589b69e 40647configure-target-libgloss: maybe-all-gcc
3589b69e 40648configure-target-libiberty: maybe-all-gcc
3589b69e 40649configure-target-gperf: maybe-all-gcc
3589b69e 40650configure-target-examples: maybe-all-gcc
3589b69e 40651configure-target-libffi: maybe-all-gcc
3589b69e 40652configure-target-libjava: maybe-all-gcc
3589b69e 40653configure-target-zlib: maybe-all-gcc
3589b69e 40654configure-target-boehm-gc: maybe-all-gcc
3589b69e 40655configure-target-qthreads: maybe-all-gcc
3589b69e 40656configure-target-rda: maybe-all-gcc
3589b69e 40657configure-target-libada: maybe-all-gcc
953ff289 40658configure-target-libgomp: maybe-all-gcc
cc11cc9b 40659@endif gcc-no-bootstrap
953ff289 40660
3589b69e
PB
40661
40662
40663configure-target-boehm-gc: maybe-all-target-newlib maybe-all-target-libgloss
40664
40665configure-target-gperf: maybe-all-target-newlib maybe-all-target-libgloss
40666configure-target-gperf: maybe-all-target-libstdc++-v3
40667
40668configure-target-libada: maybe-all-target-newlib maybe-all-target-libgloss
40669
40670configure-target-libgfortran: maybe-all-target-newlib maybe-all-target-libgloss
40671
40672configure-target-libffi: maybe-all-target-newlib maybe-all-target-libgloss
40673
40674configure-target-libjava: maybe-all-target-newlib maybe-all-target-libgloss
40675configure-target-libjava: maybe-all-target-libstdc++-v3
40676
4a9c436f
JW
40677configure-target-libmudflap: maybe-all-target-newlib maybe-all-target-libgloss
40678
3589b69e
PB
40679configure-target-libobjc: maybe-all-target-newlib maybe-all-target-libgloss
40680
b00d752c
RE
40681configure-target-libssp: maybe-all-target-newlib maybe-all-target-libgloss
40682
3589b69e
PB
40683configure-target-libstdc++-v3: maybe-all-target-newlib maybe-all-target-libgloss
40684
40685configure-target-zlib: maybe-all-target-newlib maybe-all-target-libgloss
40686
40687configure-target-examples: maybe-all-target-newlib maybe-all-target-libgloss
40688
40689configure-target-libtermcap: maybe-all-target-newlib maybe-all-target-libgloss
40690
40691configure-target-rda: maybe-all-target-newlib maybe-all-target-libgloss
40692
40693configure-target-winsup: maybe-all-target-newlib maybe-all-target-libgloss
40694
40695configure-target-qthreads: maybe-all-target-newlib maybe-all-target-libgloss
40696
40697
4977bab6
ZW
40698# There are two types of dependencies here: 'hard' dependencies, where one
40699# module simply won't build without the other; and 'soft' dependencies, where
40700# if the depended-on module is missing, the depending module will do without
40701# or find a substitute somewhere (perhaps installed). Soft dependencies
3589b69e 40702# are made here to depend on a 'maybe-' target. If you're not sure,
4977bab6
ZW
40703# it's safer to use a soft dependency.
40704
3589b69e
PB
40705
40706
40707
40708
2dfbef6d 40709
3589b69e
PB
40710# With all the machinery above in place, it is pretty easy to generate
40711# dependencies. Host dependencies are a bit more complex because we have
40712# to check for bootstrap/prebootstrap dependencies. To resolve
40713# prebootstrap dependencies, prebootstrap modules are gathered in
40714# a hash table.
23f6b2f9 40715all-build-bison: maybe-all-build-texinfo
3589b69e 40716all-build-byacc: maybe-all-build-texinfo
23f6b2f9 40717all-build-flex: maybe-all-build-texinfo
3589b69e
PB
40718all-build-flex: maybe-all-build-bison
40719all-build-flex: maybe-all-build-byacc
40720all-build-flex: maybe-all-build-m4
23f6b2f9 40721all-build-libiberty: maybe-all-build-texinfo
3589b69e 40722all-build-m4: maybe-all-build-texinfo
71b5d516 40723all-build-fixincludes: maybe-all-build-libiberty
3589b69e
PB
40724configure-gcc: maybe-configure-intl
40725
40726configure-stage1-gcc: maybe-configure-stage1-intl
40727configure-stage2-gcc: maybe-configure-stage2-intl
40728configure-stage3-gcc: maybe-configure-stage3-intl
40729configure-stage4-gcc: maybe-configure-stage4-intl
40730configure-stageprofile-gcc: maybe-configure-stageprofile-intl
40731configure-stagefeedback-gcc: maybe-configure-stagefeedback-intl
bcb28cf5
PB
40732configure-gcc: maybe-all-binutils
40733
40734configure-stage1-gcc: maybe-all-stage1-binutils
40735configure-stage2-gcc: maybe-all-stage2-binutils
40736configure-stage3-gcc: maybe-all-stage3-binutils
40737configure-stage4-gcc: maybe-all-stage4-binutils
40738configure-stageprofile-gcc: maybe-all-stageprofile-binutils
40739configure-stagefeedback-gcc: maybe-all-stagefeedback-binutils
40740configure-gcc: maybe-all-gas
40741
40742configure-stage1-gcc: maybe-all-stage1-gas
40743configure-stage2-gcc: maybe-all-stage2-gas
40744configure-stage3-gcc: maybe-all-stage3-gas
40745configure-stage4-gcc: maybe-all-stage4-gas
40746configure-stageprofile-gcc: maybe-all-stageprofile-gas
40747configure-stagefeedback-gcc: maybe-all-stagefeedback-gas
40748configure-gcc: maybe-all-ld
40749
40750configure-stage1-gcc: maybe-all-stage1-ld
40751configure-stage2-gcc: maybe-all-stage2-ld
40752configure-stage3-gcc: maybe-all-stage3-ld
40753configure-stage4-gcc: maybe-all-stage4-ld
40754configure-stageprofile-gcc: maybe-all-stageprofile-ld
40755configure-stagefeedback-gcc: maybe-all-stagefeedback-ld
3589b69e
PB
40756all-gcc: all-libiberty
40757
40758all-stage1-gcc: all-stage1-libiberty
40759all-stage2-gcc: all-stage2-libiberty
40760all-stage3-gcc: all-stage3-libiberty
40761all-stage4-gcc: all-stage4-libiberty
40762all-stageprofile-gcc: all-stageprofile-libiberty
40763all-stagefeedback-gcc: all-stagefeedback-libiberty
40764all-gcc: maybe-all-intl
40765
40766all-stage1-gcc: maybe-all-stage1-intl
40767all-stage2-gcc: maybe-all-stage2-intl
40768all-stage3-gcc: maybe-all-stage3-intl
40769all-stage4-gcc: maybe-all-stage4-intl
40770all-stageprofile-gcc: maybe-all-stageprofile-intl
40771all-stagefeedback-gcc: maybe-all-stagefeedback-intl
7c27e184
PB
40772all-gcc: maybe-all-build-texinfo
40773
40774all-stage1-gcc: maybe-all-build-texinfo
40775all-stage2-gcc: maybe-all-build-texinfo
40776all-stage3-gcc: maybe-all-build-texinfo
40777all-stage4-gcc: maybe-all-build-texinfo
40778all-stageprofile-gcc: maybe-all-build-texinfo
40779all-stagefeedback-gcc: maybe-all-build-texinfo
40780all-prebootstrap: maybe-all-build-texinfo
40781all-gcc: maybe-all-build-bison
40782
40783all-stage1-gcc: maybe-all-build-bison
40784all-stage2-gcc: maybe-all-build-bison
40785all-stage3-gcc: maybe-all-build-bison
40786all-stage4-gcc: maybe-all-build-bison
40787all-stageprofile-gcc: maybe-all-build-bison
40788all-stagefeedback-gcc: maybe-all-build-bison
40789all-prebootstrap: maybe-all-build-bison
40790all-gcc: maybe-all-build-byacc
40791
40792all-stage1-gcc: maybe-all-build-byacc
40793all-stage2-gcc: maybe-all-build-byacc
40794all-stage3-gcc: maybe-all-build-byacc
40795all-stage4-gcc: maybe-all-build-byacc
40796all-stageprofile-gcc: maybe-all-build-byacc
40797all-stagefeedback-gcc: maybe-all-build-byacc
40798all-prebootstrap: maybe-all-build-byacc
40799all-gcc: maybe-all-build-flex
40800
40801all-stage1-gcc: maybe-all-build-flex
40802all-stage2-gcc: maybe-all-build-flex
40803all-stage3-gcc: maybe-all-build-flex
40804all-stage4-gcc: maybe-all-build-flex
40805all-stageprofile-gcc: maybe-all-build-flex
40806all-stagefeedback-gcc: maybe-all-build-flex
40807all-prebootstrap: maybe-all-build-flex
71b5d516
PB
40808all-gcc: maybe-all-build-libiberty
40809
40810all-stage1-gcc: maybe-all-build-libiberty
40811all-stage2-gcc: maybe-all-build-libiberty
40812all-stage3-gcc: maybe-all-build-libiberty
40813all-stage4-gcc: maybe-all-build-libiberty
40814all-stageprofile-gcc: maybe-all-build-libiberty
40815all-stagefeedback-gcc: maybe-all-build-libiberty
40816all-prebootstrap: maybe-all-build-libiberty
40817all-gcc: maybe-all-build-fixincludes
40818
40819all-stage1-gcc: maybe-all-build-fixincludes
40820all-stage2-gcc: maybe-all-build-fixincludes
40821all-stage3-gcc: maybe-all-build-fixincludes
40822all-stage4-gcc: maybe-all-build-fixincludes
40823all-stageprofile-gcc: maybe-all-build-fixincludes
40824all-stagefeedback-gcc: maybe-all-build-fixincludes
40825all-prebootstrap: maybe-all-build-fixincludes
3589b69e
PB
40826all-gcc: maybe-all-zlib
40827
40828all-stage1-gcc: maybe-all-stage1-zlib
40829all-stage2-gcc: maybe-all-stage2-zlib
40830all-stage3-gcc: maybe-all-stage3-zlib
40831all-stage4-gcc: maybe-all-stage4-zlib
40832all-stageprofile-gcc: maybe-all-stageprofile-zlib
40833all-stagefeedback-gcc: maybe-all-stagefeedback-zlib
3589b69e
PB
40834all-gcc: all-libcpp
40835
40836all-stage1-gcc: all-stage1-libcpp
40837all-stage2-gcc: all-stage2-libcpp
40838all-stage3-gcc: all-stage3-libcpp
40839all-stage4-gcc: all-stage4-libcpp
40840all-stageprofile-gcc: all-stageprofile-libcpp
40841all-stagefeedback-gcc: all-stagefeedback-libcpp
a4b6c45a
BE
40842all-gcc: all-libdecnumber
40843
40844all-stage1-gcc: all-stage1-libdecnumber
40845all-stage2-gcc: all-stage2-libdecnumber
40846all-stage3-gcc: all-stage3-libdecnumber
40847all-stage4-gcc: all-stage4-libdecnumber
40848all-stageprofile-gcc: all-stageprofile-libdecnumber
40849all-stagefeedback-gcc: all-stagefeedback-libdecnumber
53c7ffe7
GK
40850all-gcc: maybe-all-libiberty
40851
40852all-stage1-gcc: maybe-all-stage1-libiberty
40853all-stage2-gcc: maybe-all-stage2-libiberty
40854all-stage3-gcc: maybe-all-stage3-libiberty
40855all-stage4-gcc: maybe-all-stage4-libiberty
40856all-stageprofile-gcc: maybe-all-stageprofile-libiberty
40857all-stagefeedback-gcc: maybe-all-stagefeedback-libiberty
40858all-gcc: maybe-all-fixincludes
848556c2 40859install-gcc: maybe-install-fixincludes
3589b69e
PB
40860configure-libcpp: configure-libiberty
40861
40862configure-stage1-libcpp: configure-stage1-libiberty
40863configure-stage2-libcpp: configure-stage2-libiberty
40864configure-stage3-libcpp: configure-stage3-libiberty
40865configure-stage4-libcpp: configure-stage4-libiberty
40866configure-stageprofile-libcpp: configure-stageprofile-libiberty
40867configure-stagefeedback-libcpp: configure-stagefeedback-libiberty
40868configure-libcpp: maybe-configure-intl
40869
40870configure-stage1-libcpp: maybe-configure-stage1-intl
40871configure-stage2-libcpp: maybe-configure-stage2-intl
40872configure-stage3-libcpp: maybe-configure-stage3-intl
40873configure-stage4-libcpp: maybe-configure-stage4-intl
40874configure-stageprofile-libcpp: maybe-configure-stageprofile-intl
40875configure-stagefeedback-libcpp: maybe-configure-stagefeedback-intl
40876all-libcpp: all-libiberty
40877
40878all-stage1-libcpp: all-stage1-libiberty
40879all-stage2-libcpp: all-stage2-libiberty
40880all-stage3-libcpp: all-stage3-libiberty
40881all-stage4-libcpp: all-stage4-libiberty
40882all-stageprofile-libcpp: all-stageprofile-libiberty
40883all-stagefeedback-libcpp: all-stagefeedback-libiberty
40884all-libcpp: maybe-all-intl
40885
40886all-stage1-libcpp: maybe-all-stage1-intl
40887all-stage2-libcpp: maybe-all-stage2-intl
40888all-stage3-libcpp: maybe-all-stage3-intl
40889all-stage4-libcpp: maybe-all-stage4-intl
40890all-stageprofile-libcpp: maybe-all-stageprofile-intl
40891all-stagefeedback-libcpp: maybe-all-stagefeedback-intl
53c7ffe7 40892all-fixincludes: maybe-all-libiberty
5395b47b 40893all-gnattools: maybe-all-target-libada
32845532 40894configure-gdb: maybe-configure-intl
3589b69e 40895configure-gdb: maybe-configure-sim
32845532 40896all-gdb: maybe-all-intl
3589b69e
PB
40897all-gdb: maybe-all-libiberty
40898all-gdb: maybe-all-opcodes
40899all-gdb: maybe-all-bfd
3589b69e 40900all-gdb: maybe-all-readline
7c27e184
PB
40901all-gdb: maybe-all-build-bison
40902all-gdb: maybe-all-build-byacc
3589b69e 40903all-gdb: maybe-all-sim
3589b69e
PB
40904configure-libgui: maybe-configure-tcl
40905configure-libgui: maybe-configure-tk
40906all-libgui: maybe-all-tcl
40907all-libgui: maybe-all-tk
40908all-libgui: maybe-all-itcl
4977bab6 40909configure-bfd: configure-libiberty
3589b69e
PB
40910
40911configure-stage1-bfd: configure-stage1-libiberty
40912configure-stage2-bfd: configure-stage2-libiberty
40913configure-stage3-bfd: configure-stage3-libiberty
40914configure-stage4-bfd: configure-stage4-libiberty
40915configure-stageprofile-bfd: configure-stageprofile-libiberty
40916configure-stagefeedback-bfd: configure-stagefeedback-libiberty
32845532
CD
40917configure-bfd: maybe-configure-intl
40918
40919configure-stage1-bfd: maybe-configure-stage1-intl
40920configure-stage2-bfd: maybe-configure-stage2-intl
40921configure-stage3-bfd: maybe-configure-stage3-intl
40922configure-stage4-bfd: maybe-configure-stage4-intl
40923configure-stageprofile-bfd: maybe-configure-stageprofile-intl
40924configure-stagefeedback-bfd: maybe-configure-stagefeedback-intl
3589b69e
PB
40925all-bfd: maybe-all-libiberty
40926
40927all-stage1-bfd: maybe-all-stage1-libiberty
40928all-stage2-bfd: maybe-all-stage2-libiberty
40929all-stage3-bfd: maybe-all-stage3-libiberty
40930all-stage4-bfd: maybe-all-stage4-libiberty
40931all-stageprofile-bfd: maybe-all-stageprofile-libiberty
40932all-stagefeedback-bfd: maybe-all-stagefeedback-libiberty
40933all-bfd: maybe-all-intl
40934
40935all-stage1-bfd: maybe-all-stage1-intl
40936all-stage2-bfd: maybe-all-stage2-intl
40937all-stage3-bfd: maybe-all-stage3-intl
40938all-stage4-bfd: maybe-all-stage4-intl
40939all-stageprofile-bfd: maybe-all-stageprofile-intl
40940all-stagefeedback-bfd: maybe-all-stagefeedback-intl
32845532
CD
40941configure-binutils: maybe-configure-intl
40942
40943configure-stage1-binutils: maybe-configure-stage1-intl
40944configure-stage2-binutils: maybe-configure-stage2-intl
40945configure-stage3-binutils: maybe-configure-stage3-intl
40946configure-stage4-binutils: maybe-configure-stage4-intl
40947configure-stageprofile-binutils: maybe-configure-stageprofile-intl
40948configure-stagefeedback-binutils: maybe-configure-stagefeedback-intl
3589b69e
PB
40949all-binutils: maybe-all-libiberty
40950
40951all-stage1-binutils: maybe-all-stage1-libiberty
40952all-stage2-binutils: maybe-all-stage2-libiberty
40953all-stage3-binutils: maybe-all-stage3-libiberty
40954all-stage4-binutils: maybe-all-stage4-libiberty
40955all-stageprofile-binutils: maybe-all-stageprofile-libiberty
40956all-stagefeedback-binutils: maybe-all-stagefeedback-libiberty
40957all-binutils: maybe-all-opcodes
40958
40959all-stage1-binutils: maybe-all-stage1-opcodes
40960all-stage2-binutils: maybe-all-stage2-opcodes
40961all-stage3-binutils: maybe-all-stage3-opcodes
40962all-stage4-binutils: maybe-all-stage4-opcodes
40963all-stageprofile-binutils: maybe-all-stageprofile-opcodes
40964all-stagefeedback-binutils: maybe-all-stagefeedback-opcodes
40965all-binutils: maybe-all-bfd
40966
40967all-stage1-binutils: maybe-all-stage1-bfd
40968all-stage2-binutils: maybe-all-stage2-bfd
40969all-stage3-binutils: maybe-all-stage3-bfd
40970all-stage4-binutils: maybe-all-stage4-bfd
40971all-stageprofile-binutils: maybe-all-stageprofile-bfd
40972all-stagefeedback-binutils: maybe-all-stagefeedback-bfd
7c27e184
PB
40973all-binutils: maybe-all-build-flex
40974
40975all-stage1-binutils: maybe-all-build-flex
40976all-stage2-binutils: maybe-all-build-flex
40977all-stage3-binutils: maybe-all-build-flex
40978all-stage4-binutils: maybe-all-build-flex
40979all-stageprofile-binutils: maybe-all-build-flex
40980all-stagefeedback-binutils: maybe-all-build-flex
40981all-prebootstrap: maybe-all-build-flex
40982all-binutils: maybe-all-build-bison
40983
40984all-stage1-binutils: maybe-all-build-bison
40985all-stage2-binutils: maybe-all-build-bison
40986all-stage3-binutils: maybe-all-build-bison
40987all-stage4-binutils: maybe-all-build-bison
40988all-stageprofile-binutils: maybe-all-build-bison
40989all-stagefeedback-binutils: maybe-all-build-bison
40990all-prebootstrap: maybe-all-build-bison
40991all-binutils: maybe-all-build-byacc
40992
40993all-stage1-binutils: maybe-all-build-byacc
40994all-stage2-binutils: maybe-all-build-byacc
40995all-stage3-binutils: maybe-all-build-byacc
40996all-stage4-binutils: maybe-all-build-byacc
40997all-stageprofile-binutils: maybe-all-build-byacc
40998all-stagefeedback-binutils: maybe-all-build-byacc
40999all-prebootstrap: maybe-all-build-byacc
3589b69e
PB
41000all-binutils: maybe-all-intl
41001
41002all-stage1-binutils: maybe-all-stage1-intl
41003all-stage2-binutils: maybe-all-stage2-intl
41004all-stage3-binutils: maybe-all-stage3-intl
41005all-stage4-binutils: maybe-all-stage4-intl
41006all-stageprofile-binutils: maybe-all-stageprofile-intl
41007all-stagefeedback-binutils: maybe-all-stagefeedback-intl
4977bab6 41008install-binutils: maybe-install-opcodes
c3969745 41009install-opcodes: maybe-install-bfd
32845532
CD
41010configure-gas: maybe-configure-intl
41011
41012configure-stage1-gas: maybe-configure-stage1-intl
41013configure-stage2-gas: maybe-configure-stage2-intl
41014configure-stage3-gas: maybe-configure-stage3-intl
41015configure-stage4-gas: maybe-configure-stage4-intl
41016configure-stageprofile-gas: maybe-configure-stageprofile-intl
41017configure-stagefeedback-gas: maybe-configure-stagefeedback-intl
3589b69e
PB
41018all-gas: maybe-all-libiberty
41019
41020all-stage1-gas: maybe-all-stage1-libiberty
41021all-stage2-gas: maybe-all-stage2-libiberty
41022all-stage3-gas: maybe-all-stage3-libiberty
41023all-stage4-gas: maybe-all-stage4-libiberty
41024all-stageprofile-gas: maybe-all-stageprofile-libiberty
41025all-stagefeedback-gas: maybe-all-stagefeedback-libiberty
41026all-gas: maybe-all-opcodes
41027
41028all-stage1-gas: maybe-all-stage1-opcodes
41029all-stage2-gas: maybe-all-stage2-opcodes
41030all-stage3-gas: maybe-all-stage3-opcodes
41031all-stage4-gas: maybe-all-stage4-opcodes
41032all-stageprofile-gas: maybe-all-stageprofile-opcodes
41033all-stagefeedback-gas: maybe-all-stagefeedback-opcodes
41034all-gas: maybe-all-bfd
41035
41036all-stage1-gas: maybe-all-stage1-bfd
41037all-stage2-gas: maybe-all-stage2-bfd
41038all-stage3-gas: maybe-all-stage3-bfd
41039all-stage4-gas: maybe-all-stage4-bfd
41040all-stageprofile-gas: maybe-all-stageprofile-bfd
41041all-stagefeedback-gas: maybe-all-stagefeedback-bfd
41042all-gas: maybe-all-intl
41043
41044all-stage1-gas: maybe-all-stage1-intl
41045all-stage2-gas: maybe-all-stage2-intl
41046all-stage3-gas: maybe-all-stage3-intl
41047all-stage4-gas: maybe-all-stage4-intl
41048all-stageprofile-gas: maybe-all-stageprofile-intl
41049all-stagefeedback-gas: maybe-all-stagefeedback-intl
32845532 41050configure-gprof: maybe-configure-intl
3589b69e
PB
41051all-gprof: maybe-all-libiberty
41052all-gprof: maybe-all-bfd
41053all-gprof: maybe-all-opcodes
41054all-gprof: maybe-all-intl
32845532
CD
41055configure-ld: maybe-configure-intl
41056
41057configure-stage1-ld: maybe-configure-stage1-intl
41058configure-stage2-ld: maybe-configure-stage2-intl
41059configure-stage3-ld: maybe-configure-stage3-intl
41060configure-stage4-ld: maybe-configure-stage4-intl
41061configure-stageprofile-ld: maybe-configure-stageprofile-intl
41062configure-stagefeedback-ld: maybe-configure-stagefeedback-intl
3589b69e
PB
41063all-ld: maybe-all-libiberty
41064
41065all-stage1-ld: maybe-all-stage1-libiberty
41066all-stage2-ld: maybe-all-stage2-libiberty
41067all-stage3-ld: maybe-all-stage3-libiberty
41068all-stage4-ld: maybe-all-stage4-libiberty
41069all-stageprofile-ld: maybe-all-stageprofile-libiberty
41070all-stagefeedback-ld: maybe-all-stagefeedback-libiberty
41071all-ld: maybe-all-bfd
41072
41073all-stage1-ld: maybe-all-stage1-bfd
41074all-stage2-ld: maybe-all-stage2-bfd
41075all-stage3-ld: maybe-all-stage3-bfd
41076all-stage4-ld: maybe-all-stage4-bfd
41077all-stageprofile-ld: maybe-all-stageprofile-bfd
41078all-stagefeedback-ld: maybe-all-stagefeedback-bfd
41079all-ld: maybe-all-opcodes
41080
41081all-stage1-ld: maybe-all-stage1-opcodes
41082all-stage2-ld: maybe-all-stage2-opcodes
41083all-stage3-ld: maybe-all-stage3-opcodes
41084all-stage4-ld: maybe-all-stage4-opcodes
41085all-stageprofile-ld: maybe-all-stageprofile-opcodes
41086all-stagefeedback-ld: maybe-all-stagefeedback-opcodes
7c27e184
PB
41087all-ld: maybe-all-build-bison
41088
41089all-stage1-ld: maybe-all-build-bison
41090all-stage2-ld: maybe-all-build-bison
41091all-stage3-ld: maybe-all-build-bison
41092all-stage4-ld: maybe-all-build-bison
41093all-stageprofile-ld: maybe-all-build-bison
41094all-stagefeedback-ld: maybe-all-build-bison
41095all-prebootstrap: maybe-all-build-bison
41096all-ld: maybe-all-build-byacc
41097
41098all-stage1-ld: maybe-all-build-byacc
41099all-stage2-ld: maybe-all-build-byacc
41100all-stage3-ld: maybe-all-build-byacc
41101all-stage4-ld: maybe-all-build-byacc
41102all-stageprofile-ld: maybe-all-build-byacc
41103all-stagefeedback-ld: maybe-all-build-byacc
41104all-prebootstrap: maybe-all-build-byacc
41105all-ld: maybe-all-build-flex
41106
41107all-stage1-ld: maybe-all-build-flex
41108all-stage2-ld: maybe-all-build-flex
41109all-stage3-ld: maybe-all-build-flex
41110all-stage4-ld: maybe-all-build-flex
41111all-stageprofile-ld: maybe-all-build-flex
41112all-stagefeedback-ld: maybe-all-build-flex
41113all-prebootstrap: maybe-all-build-flex
3589b69e
PB
41114all-ld: maybe-all-intl
41115
41116all-stage1-ld: maybe-all-stage1-intl
41117all-stage2-ld: maybe-all-stage2-intl
41118all-stage3-ld: maybe-all-stage3-intl
41119all-stage4-ld: maybe-all-stage4-intl
41120all-stageprofile-ld: maybe-all-stageprofile-intl
41121all-stagefeedback-ld: maybe-all-stagefeedback-intl
9fbe6585
JJ
41122configure-opcodes: maybe-configure-intl
41123
41124configure-stage1-opcodes: maybe-configure-stage1-intl
41125configure-stage2-opcodes: maybe-configure-stage2-intl
41126configure-stage3-opcodes: maybe-configure-stage3-intl
41127configure-stage4-opcodes: maybe-configure-stage4-intl
41128configure-stageprofile-opcodes: maybe-configure-stageprofile-intl
41129configure-stagefeedback-opcodes: maybe-configure-stagefeedback-intl
3589b69e
PB
41130all-opcodes: maybe-all-bfd
41131
41132all-stage1-opcodes: maybe-all-stage1-bfd
41133all-stage2-opcodes: maybe-all-stage2-bfd
41134all-stage3-opcodes: maybe-all-stage3-bfd
41135all-stage4-opcodes: maybe-all-stage4-bfd
41136all-stageprofile-opcodes: maybe-all-stageprofile-bfd
41137all-stagefeedback-opcodes: maybe-all-stagefeedback-bfd
41138all-opcodes: maybe-all-libiberty
41139
41140all-stage1-opcodes: maybe-all-stage1-libiberty
41141all-stage2-opcodes: maybe-all-stage2-libiberty
41142all-stage3-opcodes: maybe-all-stage3-libiberty
41143all-stage4-opcodes: maybe-all-stage4-libiberty
41144all-stageprofile-opcodes: maybe-all-stageprofile-libiberty
41145all-stagefeedback-opcodes: maybe-all-stagefeedback-libiberty
9fbe6585
JJ
41146all-opcodes: maybe-all-intl
41147
41148all-stage1-opcodes: maybe-all-stage1-intl
41149all-stage2-opcodes: maybe-all-stage2-intl
41150all-stage3-opcodes: maybe-all-stage3-intl
41151all-stage4-opcodes: maybe-all-stage4-intl
41152all-stageprofile-opcodes: maybe-all-stageprofile-intl
41153all-stagefeedback-opcodes: maybe-all-stagefeedback-intl
3589b69e
PB
41154all-dejagnu: maybe-all-tcl
41155all-dejagnu: maybe-all-expect
41156all-dejagnu: maybe-all-tk
41157configure-expect: maybe-configure-tcl
41158configure-expect: maybe-configure-tk
41159all-expect: maybe-all-tcl
41160all-expect: maybe-all-tk
41161configure-itcl: maybe-configure-tcl
41162configure-itcl: maybe-configure-tk
41163all-itcl: maybe-all-tcl
41164all-itcl: maybe-all-tk
4977bab6 41165install-itcl: maybe-install-tcl
4977bab6
ZW
41166configure-tk: maybe-configure-tcl
41167all-tk: maybe-all-tcl
3589b69e
PB
41168all-sid: maybe-all-libiberty
41169all-sid: maybe-all-bfd
41170all-sid: maybe-all-opcodes
41171all-sid: maybe-all-tcl
41172all-sid: maybe-all-tk
41173install-sid: maybe-install-tcl
41174install-sid: maybe-install-tk
32845532
CD
41175configure-sim: maybe-configure-intl
41176all-sim: maybe-all-intl
3589b69e
PB
41177all-sim: maybe-all-libiberty
41178all-sim: maybe-all-bfd
41179all-sim: maybe-all-opcodes
41180all-sim: maybe-all-readline
41181all-sim: maybe-configure-gdb
41182all-fastjar: maybe-all-zlib
7c27e184 41183all-fastjar: maybe-all-build-texinfo
3589b69e
PB
41184all-fastjar: maybe-all-libiberty
41185all-autoconf: maybe-all-m4
7c27e184 41186all-autoconf: maybe-all-build-texinfo
3589b69e 41187all-automake: maybe-all-m4
7c27e184 41188all-automake: maybe-all-build-texinfo
3589b69e
PB
41189all-automake: maybe-all-autoconf
41190all-bison: maybe-all-intl
7c27e184 41191all-bison: maybe-all-build-texinfo
3589b69e 41192all-diff: maybe-all-intl
7c27e184 41193all-diff: maybe-all-build-texinfo
3589b69e 41194all-fileutils: maybe-all-intl
7c27e184
PB
41195all-fileutils: maybe-all-build-texinfo
41196all-flex: maybe-all-build-bison
41197all-flex: maybe-all-build-byacc
3589b69e
PB
41198all-flex: maybe-all-intl
41199all-flex: maybe-all-m4
7c27e184 41200all-flex: maybe-all-build-texinfo
3589b69e
PB
41201all-gzip: maybe-all-intl
41202all-gzip: maybe-all-zlib
7c27e184 41203all-gzip: maybe-all-build-texinfo
3589b69e 41204all-hello: maybe-all-intl
7c27e184 41205all-hello: maybe-all-build-texinfo
3589b69e 41206all-m4: maybe-all-intl
7c27e184 41207all-m4: maybe-all-build-texinfo
3589b69e 41208all-make: maybe-all-intl
7c27e184
PB
41209all-make: maybe-all-build-texinfo
41210all-patch: maybe-all-build-texinfo
41211all-make: maybe-all-build-texinfo
4977bab6 41212all-prms: maybe-all-libiberty
7c27e184
PB
41213all-recode: maybe-all-build-texinfo
41214all-sed: maybe-all-build-texinfo
4977bab6 41215all-send-pr: maybe-all-prms
7c27e184
PB
41216all-tar: maybe-all-build-texinfo
41217all-uudecode: maybe-all-build-texinfo
3589b69e 41218configure-target-boehm-gc: maybe-configure-target-qthreads
4977bab6 41219configure-target-fastjar: maybe-configure-target-zlib
3589b69e
PB
41220all-target-fastjar: maybe-all-target-zlib
41221all-target-fastjar: maybe-all-target-libiberty
41222configure-target-libjava: maybe-configure-target-zlib
41223configure-target-libjava: maybe-configure-target-boehm-gc
41224configure-target-libjava: maybe-configure-target-qthreads
41225configure-target-libjava: maybe-configure-target-libffi
41226all-target-libjava: maybe-all-fastjar
41227all-target-libjava: maybe-all-target-zlib
41228all-target-libjava: maybe-all-target-boehm-gc
41229all-target-libjava: maybe-all-target-qthreads
41230all-target-libjava: maybe-all-target-libffi
7cd0cf9c 41231configure-target-libobjc: maybe-configure-target-boehm-gc
4977bab6 41232all-target-libobjc: maybe-all-target-libiberty
7cd0cf9c 41233all-target-libobjc: maybe-all-target-boehm-gc
4977bab6 41234all-target-libstdc++-v3: maybe-all-target-libiberty
4977bab6 41235all-target-libgloss: maybe-configure-target-newlib
3589b69e
PB
41236all-target-winsup: maybe-all-target-libiberty
41237all-target-winsup: maybe-all-target-libtermcap
41238
41239
7c27e184
PB
41240# Non-toplevel bootstrap rules must depend on several packages, to be built
41241# before gcc. Another wart that will go away, hopefully soon.
3589b69e
PB
41242@if gcc-no-bootstrap
41243
41244all-prebootstrap: maybe-all-bfd
41245all-prebootstrap: maybe-all-opcodes
41246all-prebootstrap: maybe-all-binutils
41247all-prebootstrap: maybe-all-gas
41248all-prebootstrap: maybe-all-intl
41249all-prebootstrap: maybe-all-ld
41250all-prebootstrap: maybe-all-libcpp
a4b6c45a 41251all-prebootstrap: maybe-all-libdecnumber
3589b69e
PB
41252all-prebootstrap: maybe-all-libiberty
41253all-prebootstrap: maybe-all-zlib
41254@endif gcc-no-bootstrap
41255
ef9db8d5 41256CONFIGURE_GDB_TK = @CONFIGURE_GDB_TK@
3589b69e 41257GDB_TK = @GDB_TK@
ef9db8d5
DJ
41258INSTALL_GDB_TK = @INSTALL_GDB_TK@
41259configure-gdb: $(CONFIGURE_GDB_TK)
3589b69e 41260all-gdb: $(gdbnlmrequirements) $(GDB_TK)
ef9db8d5 41261install-gdb: $(INSTALL_GDB_TK)
6599da04 41262
4977bab6 41263# Serialization dependencies. Host configures don't work well in parallel to
05750653 41264# each other, due to contention over config.cache. Target configures and
4977bab6
ZW
41265# build configures are similar.
41266@serialization_dependencies@
6599da04 41267
4977bab6
ZW
41268# --------------------------------
41269# Regenerating top level configury
41270# --------------------------------
6599da04 41271
6f950405 41272# Rebuilding Makefile.in, using autogen.
e245b0ea 41273AUTOGEN = autogen
ee03dc5e 41274$(srcdir)/Makefile.in: @MAINT@ $(srcdir)/Makefile.tpl $(srcdir)/Makefile.def
e245b0ea 41275 cd $(srcdir) && $(AUTOGEN) Makefile.def
6f950405 41276
671aa708 41277# Rebuilding Makefile.
e245b0ea
AO
41278Makefile: $(srcdir)/Makefile.in config.status
41279 CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
41280
191dd2c9 41281config.status: configure
e75f9147 41282 CONFIG_SHELL="$(SHELL)" $(SHELL) ./config.status --recheck
6599da04 41283
671aa708 41284# Rebuilding configure.
e245b0ea 41285AUTOCONF = autoconf
ee03dc5e 41286$(srcdir)/configure: @MAINT@ $(srcdir)/configure.in $(srcdir)/config/acx.m4
e245b0ea 41287 cd $(srcdir) && $(AUTOCONF)
6599da04 41288
93c834b7
NN
41289# ------------------------------
41290# Special directives to GNU Make
41291# ------------------------------
41292
93c834b7
NN
41293# Don't pass command-line variables to submakes.
41294.NOEXPORT:
41295MAKEOVERRIDES=
41296
6599da04 41297# end of Makefile.in