]> gcc.gnu.org Git - gcc.git/blame - Makefile.in
configure.in: Reorganize recognition of languages.
[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@
58e24147
AM
73MAINT = @MAINT@
74MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
75MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
6599da04 76
df0f0674
NN
77# -------------------------------------------------
78# Miscellaneous non-standard autoconf-set variables
79# -------------------------------------------------
6599da04 80
df0f0674
NN
81# The gcc driver likes to know the arguments it was configured with.
82TOPLEVEL_CONFIGURE_ARGUMENTS=@TOPLEVEL_CONFIGURE_ARGUMENTS@
6599da04 83
df0f0674
NN
84tooldir = @tooldir@
85build_tooldir = @build_tooldir@
6599da04 86
05750653 87GDB_NLM_DEPS =
6599da04 88
df0f0674
NN
89# This is the name of the environment variable used for the path to
90# the libraries.
91RPATH_ENVVAR = @RPATH_ENVVAR@
6599da04 92
df0f0674
NN
93# Build programs are put under this directory.
94BUILD_SUBDIR = @build_subdir@
95# This is set by the configure script to the arguments to use when configuring
96# directories built for the build system.
25b42232 97BUILD_CONFIGARGS = @build_configargs@ --with-build-subdir="$(BUILD_SUBDIR)"
23f6b2f9
PB
98
99# This is the list of variables to export in the environment when
100# configuring any subdirectory. It must also be exported whenever
101# recursing into a build directory in case that directory's Makefile
102# re-runs configure.
103BASE_EXPORTS = \
104 FLEX="$(FLEX)"; export FLEX; \
105 LEX="$(LEX)"; export LEX; \
106 BISON="$(BISON)"; export BISON; \
107 YACC="$(YACC)"; export YACC; \
108 M4="$(M4)"; export M4; \
109 MAKEINFO="$(MAKEINFO)"; export MAKEINFO;
110
4fc4dd12 111# This is the list of variables to export in the environment when
23f6b2f9 112# configuring subdirectories for the build system.
4fc4dd12 113BUILD_EXPORTS = \
23f6b2f9 114 $(BASE_EXPORTS) \
4fc4dd12
DJ
115 AR="$(AR_FOR_BUILD)"; export AR; \
116 AS="$(AS_FOR_BUILD)"; export AS; \
117 CC="$(CC_FOR_BUILD)"; export CC; \
118 CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \
119 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
120 CXX="$(CXX_FOR_BUILD)"; export CXX; \
121 CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \
122 GCJ="$(GCJ_FOR_BUILD)"; export GCJ; \
123 GFORTRAN="$(GFORTRAN_FOR_BUILD)"; export GFORTRAN; \
124 DLLTOOL="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL; \
125 LD="$(LD_FOR_BUILD)"; export LD; \
126 LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \
127 NM="$(NM_FOR_BUILD)"; export NM; \
128 RANLIB="$(RANLIB_FOR_BUILD)"; export RANLIB; \
129 WINDRES="$(WINDRES_FOR_BUILD)"; export WINDRES;
df0f0674
NN
130
131# This is the list of directories to built for the host system.
132SUBDIRS = @configdirs@
133# This is set by the configure script to the arguments to use when configuring
134# directories built for the host system.
135HOST_CONFIGARGS = @host_configargs@
215c351a
PB
136# Host programs are put under this directory, which is . except if building
137# with srcdir=..
138HOST_SUBDIR = @host_subdir@
4fc4dd12 139# This is the list of variables to export in the environment when
2abefe3d
PB
140# configuring subdirectories for the host system. We need to pass
141# some to the GCC configure because of its hybrid host/target nature.
4fc4dd12 142HOST_EXPORTS = \
23f6b2f9 143 $(BASE_EXPORTS) \
4fc4dd12
DJ
144 CC="$(CC)"; export CC; \
145 CFLAGS="$(CFLAGS)"; export CFLAGS; \
146 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
147 CXX="$(CXX)"; export CXX; \
148 CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
149 AR="$(AR)"; export AR; \
150 AS="$(AS)"; export AS; \
151 CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
152 DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
153 LD="$(LD)"; export LD; \
154 LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
155 NM="$(NM)"; export NM; \
156 RANLIB="$(RANLIB)"; export RANLIB; \
157 WINDRES="$(WINDRES)"; export WINDRES; \
158 OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
1c020272 159 OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
2abefe3d
PB
160 AR_FOR_TARGET="$(AR_FOR_TARGET)"; export AR_FOR_TARGET; \
161 AS_FOR_TARGET="$(AS_FOR_TARGET)"; export AS_FOR_TARGET; \
162 GCC_FOR_TARGET="$(GCC_FOR_TARGET)"; export GCC_FOR_TARGET; \
163 LD_FOR_TARGET="$(LD_FOR_TARGET)"; export LD_FOR_TARGET; \
164 NM_FOR_TARGET="$(NM_FOR_TARGET)"; export NM_FOR_TARGET; \
165 OBJDUMP_FOR_TARGET="$(OBJDUMP_FOR_TARGET)"; export OBJDUMP_FOR_TARGET; \
166 RANLIB_FOR_TARGET="$(RANLIB_FOR_TARGET)"; export RANLIB_FOR_TARGET; \
4fc4dd12
DJ
167 TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
168 GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \
4c4a5bbc 169 GMPINC="$(HOST_GMPINC)"; export GMPINC; \
1061f99e
PB
170@if gcc-bootstrap
171 $(RPATH_ENVVAR)=`echo "$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR); \
172@endif gcc-bootstrap
0bff65e7 173 $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR);
4fc4dd12
DJ
174
175# Similar, for later GCC stages.
ce406537 176POSTSTAGE1_HOST_EXPORTS = \
a52a0a7f 177 $(HOST_EXPORTS) \
215c351a
PB
178 CC="$(STAGE_CC_WRAPPER) $$r/$(HOST_SUBDIR)/prev-gcc/xgcc$(exeext) \
179 -B$$r/$(HOST_SUBDIR)/prev-gcc/ -B$(build_tooldir)/bin/"; export CC; \
180 CC_FOR_BUILD="$(STAGE_CC_WRAPPER) \
181 $$r/$(HOST_SUBDIR)/prev-gcc/xgcc$(exeext) \
182 -B$$r/$(HOST_SUBDIR)/prev-gcc/ \
ec6c7392
PB
183 -B$(build_tooldir)/bin/"; export CC_FOR_BUILD; \
184 CFLAGS="$(BOOT_CFLAGS)"; export CFLAGS; \
185 LDFLAGS="$(BOOT_LDFLAGS)"; export LDFLAGS;
df0f0674 186
df0f0674
NN
187# Target libraries are put under this directory:
188TARGET_SUBDIR = @target_subdir@
189# This is set by the configure script to the arguments to use when configuring
190# directories built for the target.
25b42232 191TARGET_CONFIGARGS = @target_configargs@ --with-target-subdir="$(TARGET_SUBDIR)"
4fc4dd12 192# This is the list of variables to export in the environment when
23f6b2f9 193# configuring subdirectories for the host system.
4fc4dd12 194BASE_TARGET_EXPORTS = \
23f6b2f9 195 $(BASE_EXPORTS) \
4fc4dd12 196 AR="$(AR_FOR_TARGET)"; export AR; \
2abefe3d 197 AS="$(COMPILER_AS_FOR_TARGET)"; export AS; \
4fc4dd12
DJ
198 CC="$(CC_FOR_TARGET)"; export CC; \
199 CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
200 CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
e7daab31 201 CPPFLAGS="$(CPPFLAGS_FOR_TARGET)"; export CPPFLAGS; \
4fc4dd12
DJ
202 CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
203 GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
204 GFORTRAN="$(GFORTRAN_FOR_TARGET)"; export GFORTRAN; \
205 DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
2abefe3d 206 LD="$(COMPILER_LD_FOR_TARGET)"; export LD; \
4fc4dd12 207 LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
040b1c5a 208 LIPO="$(LIPO_FOR_TARGET)"; export LIPO; \
2abefe3d 209 NM="$(COMPILER_NM_FOR_TARGET)"; export NM; \
d739199a 210 OBJDUMP="$(OBJDUMP_FOR_TARGET)"; export OBJDUMP; \
4fc4dd12 211 RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
040b1c5a 212 STRIP="$(STRIP_FOR_TARGET)"; export STRIP; \
4c4a5bbc 213 WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
0bff65e7 214 $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH)$(TARGET_LIB_PATH)$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR);
4fc4dd12
DJ
215
216RAW_CXX_TARGET_EXPORTS = \
217 $(BASE_TARGET_EXPORTS) \
218 CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \
219 CXX="$(RAW_CXX_FOR_TARGET)"; export CXX;
220
221NORMAL_TARGET_EXPORTS = \
222 $(BASE_TARGET_EXPORTS) \
223 CXX="$(CXX_FOR_TARGET)"; export CXX;
df0f0674 224
6de9cd9a
DN
225# Where to find GMP
226HOST_GMPLIBS = @gmplibs@
227HOST_GMPINC = @gmpinc@
228
df0f0674
NN
229# ----------------------------------------------
230# Programs producing files for the BUILD machine
231# ----------------------------------------------
232
233SHELL = @config_shell@
234
235# pwd command to use. Allow user to override default by setting PWDCMD in
236# the environment to account for automounters. The make variable must not
237# be called PWDCMD, otherwise the value set here is passed to make
238# subprocesses and overrides the setting from the user's environment.
8c90b13a
L
239# Don't use PWD since it is a common shell environment variable and we
240# don't want to corrupt it.
241PWD_COMMAND = $${PWDCMD-pwd}
df0f0674
NN
242
243# compilers to use to create programs which must be run in the build
244# environment.
245CC_FOR_BUILD = @CC_FOR_BUILD@
6691a79e 246CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
df0f0674
NN
247
248CXX_FOR_BUILD = $(CXX)
249
250# Special variables passed down in EXTRA_GCC_FLAGS. They are defined
251# here so that they can be overridden by Makefile fragments.
df0f0674
NN
252BUILD_PREFIX = @BUILD_PREFIX@
253BUILD_PREFIX_1 = @BUILD_PREFIX_1@
6599da04 254
45f366ab
PB
255# Flags to pass to stage2 and later makes. They are defined
256# here so that they can be overridden by Makefile fragments.
257BOOT_CFLAGS= -g -O2
d19bca38 258BOOT_LDFLAGS=
45f366ab 259
2abefe3d
PB
260BISON = @BISON@
261YACC = @YACC@
262FLEX = @FLEX@
263LEX = @LEX@
264M4 = @M4@
265MAKEINFO = @MAKEINFO@
266EXPECT = @EXPECT@
267RUNTEST = @RUNTEST@
6599da04
JM
268
269# This just becomes part of the MAKEINFO definition passed down to
270# sub-makes. It lets flags be given on the command line while still
271# using the makeinfo from the object tree.
2f50999f
GP
272# (Default to avoid splitting info files by setting the threshold high.)
273MAKEINFOFLAGS = --split-size=5000000
6599da04 274
df0f0674
NN
275# ---------------------------------------------
276# Programs producing files for the HOST machine
277# ---------------------------------------------
6599da04 278
df0f0674 279AS = @AS@
df0f0674
NN
280AR = @AR@
281AR_FLAGS = rc
df0f0674 282CC = @CC@
df0f0674 283CXX = @CXX@
df0f0674 284DLLTOOL = @DLLTOOL@
df0f0674 285LD = @LD@
2abefe3d
PB
286LIPO = @LIPO@
287NM = @NM@
2d309510 288OBJDUMP = @OBJDUMP@
df0f0674 289RANLIB = @RANLIB@
2abefe3d 290STRIP = @STRIP@
df0f0674 291WINDRES = @WINDRES@
6599da04 292
2abefe3d
PB
293CFLAGS = @CFLAGS@
294LDFLAGS =
295LIBCFLAGS = $(CFLAGS)
296CXXFLAGS = @CXXFLAGS@
297LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
05750653 298PICFLAG =
df0f0674 299
8efea775
PB
300# Only build the C compiler for stage1, because that is the only one that
301# we can guarantee will build with the native compiler, and also it is the
302# only thing useful for building stage2. STAGE1_CFLAGS (via CFLAGS),
303# MAKEINFO and MAKEINFOFLAGS are explicitly passed here to make them
304# overrideable (for a bootstrap build stage1 also builds gcc.info).
305
306STAGE1_CFLAGS=@stage1_cflags@
307STAGE1_CHECKING=@stage1_checking@
308STAGE1_LANGUAGES=@stage1_languages@
309
df0f0674
NN
310# -----------------------------------------------
311# Programs producing files for the TARGET machine
312# -----------------------------------------------
ce8e06b1 313
ec0461f6 314FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@
6599da04 315
df0f0674 316AR_FOR_TARGET=@AR_FOR_TARGET@
4977bab6 317AS_FOR_TARGET=@AS_FOR_TARGET@
4de997d1 318CC_FOR_TARGET=$(STAGE_CC_WRAPPER) @CC_FOR_TARGET@ $(FLAGS_FOR_TARGET)
4de997d1 319
df0f0674
NN
320# If GCC_FOR_TARGET is not overriden on the command line, then this
321# variable is passed down to the gcc Makefile, where it is used to
322# build libgcc2.a. We define it here so that it can itself be
323# overridden on the command line.
2abefe3d 324GCC_FOR_TARGET=$(STAGE_CC_WRAPPER) @GCC_FOR_TARGET@ $(FLAGS_FOR_TARGET)
4de997d1 325CXX_FOR_TARGET=$(STAGE_CC_WRAPPER) @CXX_FOR_TARGET@ $(FLAGS_FOR_TARGET)
4de997d1 326RAW_CXX_FOR_TARGET=$(STAGE_CC_WRAPPER) @RAW_CXX_FOR_TARGET@ $(FLAGS_FOR_TARGET)
4de997d1 327GCJ_FOR_TARGET=$(STAGE_CC_WRAPPER) @GCJ_FOR_TARGET@ $(FLAGS_FOR_TARGET)
4de997d1 328GFORTRAN_FOR_TARGET=$(STAGE_CC_WRAPPER) @GFORTRAN_FOR_TARGET@ $(FLAGS_FOR_TARGET)
4977bab6 329DLLTOOL_FOR_TARGET=@DLLTOOL_FOR_TARGET@
df0f0674 330LD_FOR_TARGET=@LD_FOR_TARGET@
df0f0674 331
040b1c5a 332LIPO_FOR_TARGET=@LIPO_FOR_TARGET@
df0f0674 333NM_FOR_TARGET=@NM_FOR_TARGET@
d739199a 334OBJDUMP_FOR_TARGET=@OBJDUMP_FOR_TARGET@
4977bab6 335RANLIB_FOR_TARGET=@RANLIB_FOR_TARGET@
040b1c5a 336STRIP_FOR_TARGET=@STRIP_FOR_TARGET@
df0f0674 337WINDRES_FOR_TARGET=@WINDRES_FOR_TARGET@
6599da04 338
2abefe3d
PB
339COMPILER_AS_FOR_TARGET=@COMPILER_AS_FOR_TARGET@
340COMPILER_LD_FOR_TARGET=@COMPILER_LD_FOR_TARGET@
341COMPILER_NM_FOR_TARGET=@COMPILER_NM_FOR_TARGET@
342
343# During gcc bootstrap, if we use some random cc for stage1 then
344# CFLAGS will be just -g. We want to ensure that TARGET libraries
345# (which we know are built with gcc) are built with optimizations so
346# prepend -O2 when setting CFLAGS_FOR_TARGET.
347CFLAGS_FOR_TARGET = -O2 $(CFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET)
348SYSROOT_CFLAGS_FOR_TARGET = @SYSROOT_CFLAGS_FOR_TARGET@
349CXXFLAGS_FOR_TARGET = $(CXXFLAGS) $(SYSROOT_CFLAGS_FOR_TARGET)
350LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
351LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
352LDFLAGS_FOR_TARGET =
05750653 353PICFLAG_FOR_TARGET =
df0f0674
NN
354
355# ------------------------------------
356# Miscellaneous targets and flag lists
357# ------------------------------------
358
5d4a5ee6
JL
359# The first rule in the file had better be this one. Don't put any above it.
360# This lives here to allow makefile fragments to contain dependencies.
1061f99e 361all:
5d4a5ee6 362
6599da04 363#### host and target specific makefile fragments come in here.
671aa708
NN
364@target_makefile_frag@
365@alphaieee_frag@
366@ospace_frag@
367@host_makefile_frag@
6599da04
JM
368###
369
0bff65e7
PB
370# This is the list of directories that may be needed in RPATH_ENVVAR
371# so that prorgams built for the target machine work.
c31202cd 372TARGET_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
373
374@if target-libstdc++-v3
375TARGET_LIB_PATH_libstdc++-v3 = $$r/$(TARGET_SUBDIR)/libstdc++-v3/.libs:
376@endif target-libstdc++-v3
377
378@if target-libmudflap
379TARGET_LIB_PATH_libmudflap = $$r/$(TARGET_SUBDIR)/libmudflap/.libs:
380@endif target-libmudflap
381
77008252
JJ
382@if target-libssp
383TARGET_LIB_PATH_libssp = $$r/$(TARGET_SUBDIR)/libssp/.libs:
384@endif target-libssp
385
953ff289
DN
386@if target-libgomp
387TARGET_LIB_PATH_libgomp = $$r/$(TARGET_SUBDIR)/libgomp/.libs:
388@endif target-libgomp
389
0bff65e7
PB
390
391
392# This is the list of directories that may be needed in RPATH_ENVVAR
393# so that programs built for the host machine work.
394HOST_LIB_PATH = $(HOST_LIB_PATH_bfd)$(HOST_LIB_PATH_opcodes)
395
396# Define HOST_LIB_PATH_gcc here, for the sake of TARGET_LIB_PATH, ouch
397@if gcc
398HOST_LIB_PATH_gcc = $$r/$(HOST_SUBDIR)/gcc:$$r/$(HOST_SUBDIR)/prev-gcc:
399@endif gcc
400
401
402@if bfd
403HOST_LIB_PATH_bfd = \
e9a54b07 404 $$r/$(HOST_SUBDIR)/bfd/.libs:$$r/$(HOST_SUBDIR)/prev-bfd/.libs:
0bff65e7
PB
405@endif bfd
406
407@if opcodes
408HOST_LIB_PATH_opcodes = \
e9a54b07 409 $$r/$(HOST_SUBDIR)/opcodes/.libs:$$r/$(HOST_SUBDIR)/prev-opcodes/.libs:
0bff65e7
PB
410@endif opcodes
411
412
6599da04 413# Flags to pass down to all sub-makes.
6599da04 414BASE_FLAGS_TO_PASS = \
3fbe8e4a 415 "DESTDIR=$(DESTDIR)" \
5d4a5ee6 416 "RPATH_ENVVAR=$(RPATH_ENVVAR)" \
81241b5e 417 "TARGET_SUBDIR=$(TARGET_SUBDIR)" \
632933d5
PB
418 "bindir=$(bindir)" \
419 "datadir=$(datadir)" \
420 "exec_prefix=$(exec_prefix)" \
421 "includedir=$(includedir)" \
65d6e994
CD
422 "datarootdir=$(datarootdir)" \
423 "docdir=$(docdir)" \
632933d5 424 "infodir=$(infodir)" \
65d6e994 425 "htmldir=$(htmldir)" \
632933d5
PB
426 "libdir=$(libdir)" \
427 "libexecdir=$(libexecdir)" \
5bea4a03 428 "lispdir=$(lispdir)" \
632933d5
PB
429 "localstatedir=$(localstatedir)" \
430 "mandir=$(mandir)" \
5d4a5ee6 431 "oldincludedir=$(oldincludedir)" \
632933d5
PB
432 "prefix=$(prefix)" \
433 "sbindir=$(sbindir)" \
434 "sharedstatedir=$(sharedstatedir)" \
435 "sysconfdir=$(sysconfdir)" \
d0a8352c 436 "tooldir=$(tooldir)" \
5cb95c7a 437 "build_tooldir=$(build_tooldir)" \
11405c93
NN
438 "target_alias=$(target_alias)" \
439 "BISON=$(BISON)" \
440 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
452190fb 441 "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
11405c93
NN
442 "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
443 "EXPECT=$(EXPECT)" \
23f6b2f9 444 "FLEX=$(FLEX)" \
11405c93
NN
445 "INSTALL=$(INSTALL)" \
446 "INSTALL_DATA=$(INSTALL_DATA)" \
447 "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
448 "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
449 "LEX=$(LEX)" \
450 "M4=$(M4)" \
451 "MAKE=$(MAKE)" \
452 "RUNTEST=$(RUNTEST)" \
453 "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
454 "SHELL=$(SHELL)" \
455 "YACC=$(YACC)" \
cc11cc9b 456 "`echo 'ADAFLAGS=$(ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
11405c93 457 "AR_FLAGS=$(AR_FLAGS)" \
cc11cc9b 458 "`echo 'BOOT_ADAFLAGS=$(BOOT_ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
d19bca38
PB
459 "BOOT_CFLAGS=$(BOOT_CFLAGS)" \
460 "BOOT_LDFLAGS=$(BOOT_LDFLAGS)" \
11405c93
NN
461 "CFLAGS=$(CFLAGS)" \
462 "CXXFLAGS=$(CXXFLAGS)" \
463 "LDFLAGS=$(LDFLAGS)" \
464 "LIBCFLAGS=$(LIBCFLAGS)" \
465 "LIBCXXFLAGS=$(LIBCXXFLAGS)" \
2d309510 466 "STAGE1_CFLAGS=$(STAGE1_CFLAGS)" \
8efea775 467 "STAGE1_CHECKING=$(STAGE1_CHECKING)" \
2d309510 468 "STAGE1_LANGUAGES=$(STAGE1_LANGUAGES)" \
11405c93
NN
469 "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
470 "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
471 "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
472 "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
e7daab31 473 "CPPFLAGS_FOR_TARGET=$(CPPFLAGS_FOR_TARGET)" \
11405c93
NN
474 "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
475 "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
476 "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
477 "GCJ_FOR_TARGET=$(GCJ_FOR_TARGET)" \
6de9cd9a 478 "GFORTRAN_FOR_TARGET=$(GFORTRAN_FOR_TARGET)" \
11405c93 479 "LD_FOR_TARGET=$(LD_FOR_TARGET)" \
040b1c5a 480 "LIPO_FOR_TARGET=$(LIPO_FOR_TARGET)" \
e3791243 481 "LDFLAGS_FOR_TARGET=$(LDFLAGS_FOR_TARGET)" \
11405c93
NN
482 "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
483 "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \
484 "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
d739199a 485 "OBJDUMP_FOR_TARGET=$(OBJDUMP_FOR_TARGET)" \
11405c93 486 "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
040b1c5a 487 "STRIP_FOR_TARGET=$(STRIP_FOR_TARGET)" \
11405c93 488 "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \
cc11cc9b 489 "`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
2d309510 490 "LEAN=$(LEAN)" \
e75f9147 491 "CONFIG_SHELL=$(SHELL)" \
05750653 492 "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)"
6599da04 493
4de997d1
PB
494# We leave this in just in case, but it is not needed anymore.
495RECURSE_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS)
ad6717df 496
6599da04
JM
497# Flags to pass down to most sub-makes, in which we're building with
498# the host environment.
6599da04
JM
499EXTRA_HOST_FLAGS = \
500 'AR=$(AR)' \
501 'AS=$(AS)' \
502 'CC=$(CC)' \
503 'CXX=$(CXX)' \
504 'DLLTOOL=$(DLLTOOL)' \
505 'LD=$(LD)' \
2abefe3d 506 'LIPO=$(LIPO)' \
6599da04 507 'NM=$(NM)' \
2d309510 508 'OBJDUMP=$(OBJDUMP)' \
c858bf1e 509 'RANLIB=$(RANLIB)' \
2abefe3d 510 'STRIP=$(STRIP)' \
6599da04
JM
511 'WINDRES=$(WINDRES)'
512
513FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
514
515# Flags that are concerned with the location of the X11 include files
516# and library files
517#
518# NOTE: until the top-level is getting the values via autoconf, it only
519# causes problems to have this top-level Makefile overriding the autoconf-set
520# values in child directories. Only variables that don't conflict with
521# autoconf'ed ones should be passed by X11_FLAGS_TO_PASS for now.
522#
523X11_FLAGS_TO_PASS = \
524 'X11_EXTRA_CFLAGS=$(X11_EXTRA_CFLAGS)' \
525 'X11_EXTRA_LIBS=$(X11_EXTRA_LIBS)'
526
8efea775
PB
527# Flags to pass to stage2 and later makes.
528
529POSTSTAGE1_FLAGS_TO_PASS = \
530 CC="$${CC}" CC_FOR_BUILD="$${CC_FOR_BUILD}" \
531 STAGE_PREFIX="$$r/$(HOST_SUBDIR)/prev-gcc/" \
532 CFLAGS="$(BOOT_CFLAGS)" \
533 LIBCFLAGS="$(BOOT_CFLAGS)" \
534 LDFLAGS="$(BOOT_LDFLAGS)" \
535 "`echo 'ADAFLAGS=$(BOOT_ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"
536
6599da04 537# Flags to pass down to makes which are built with the target environment.
f41d6665
DJ
538# The double $ decreases the length of the command line; those variables
539# are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them. The
540# COMPILER_ prefixed variables are not passed down so we expand them here.
6599da04
JM
541EXTRA_TARGET_FLAGS = \
542 'AR=$$(AR_FOR_TARGET)' \
f41d6665 543 'AS=$(COMPILER_AS_FOR_TARGET)' \
6599da04
JM
544 'CC=$$(CC_FOR_TARGET)' \
545 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
546 'CXX=$$(CXX_FOR_TARGET)' \
547 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
548 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
f41d6665 549 'LD=$(COMPILER_LD_FOR_TARGET)' \
e3791243 550 'LDFLAGS=$$(LDFLAGS_FOR_TARGET)' \
6599da04
JM
551 'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
552 'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
f41d6665 553 'NM=$(COMPILER_NM_FOR_TARGET)' \
d739199a 554 'OBJDUMP=$$(OBJDUMP_FOR_TARGET)' \
0c055e34 555 'RANLIB=$$(RANLIB_FOR_TARGET)' \
6599da04
JM
556 'WINDRES=$$(WINDRES_FOR_TARGET)'
557
558TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
559
560# Flags to pass down to gcc. gcc builds a library, libgcc.a, so it
561# unfortunately needs the native compiler and the target ar and
562# ranlib.
563# If any variables are added here, they must be added to do-*, below.
1358ccea 564# The BUILD_* variables are a special case, which are used for the gcc
6599da04
JM
565# cross-building scheme.
566EXTRA_GCC_FLAGS = \
6599da04 567 "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
d4cd9d81
NN
568 "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
569 "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
570 "`echo 'LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
571 "`echo 'LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
cc11cc9b 572 "`echo 'LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"
6599da04 573
d29b8ad8 574GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS)
6599da04 575
8b87bb96 576.PHONY: configure-host
d32ab992 577configure-host: \
8b87bb96
NN
578 maybe-configure-ash \
579 maybe-configure-autoconf \
580 maybe-configure-automake \
581 maybe-configure-bash \
582 maybe-configure-bfd \
583 maybe-configure-opcodes \
584 maybe-configure-binutils \
585 maybe-configure-bison \
586 maybe-configure-byacc \
587 maybe-configure-bzip2 \
588 maybe-configure-dejagnu \
589 maybe-configure-diff \
590 maybe-configure-dosutils \
591 maybe-configure-etc \
592 maybe-configure-fastjar \
593 maybe-configure-fileutils \
594 maybe-configure-findutils \
595 maybe-configure-find \
53c7ffe7 596 maybe-configure-fixincludes \
8b87bb96
NN
597 maybe-configure-flex \
598 maybe-configure-gas \
d32ab992 599 maybe-configure-gcc \
8b87bb96
NN
600 maybe-configure-gawk \
601 maybe-configure-gettext \
602 maybe-configure-gnuserv \
603 maybe-configure-gprof \
604 maybe-configure-gzip \
605 maybe-configure-hello \
606 maybe-configure-indent \
607 maybe-configure-intl \
608 maybe-configure-tcl \
609 maybe-configure-itcl \
610 maybe-configure-ld \
4f4e53dd 611 maybe-configure-libcpp \
a4b6c45a 612 maybe-configure-libdecnumber \
8b87bb96
NN
613 maybe-configure-libgui \
614 maybe-configure-libiberty \
615 maybe-configure-libtool \
616 maybe-configure-m4 \
617 maybe-configure-make \
618 maybe-configure-mmalloc \
619 maybe-configure-patch \
620 maybe-configure-perl \
621 maybe-configure-prms \
622 maybe-configure-rcs \
623 maybe-configure-readline \
624 maybe-configure-release \
625 maybe-configure-recode \
626 maybe-configure-sed \
627 maybe-configure-send-pr \
628 maybe-configure-shellutils \
629 maybe-configure-sid \
630 maybe-configure-sim \
631 maybe-configure-tar \
632 maybe-configure-texinfo \
633 maybe-configure-textutils \
634 maybe-configure-time \
635 maybe-configure-uudecode \
636 maybe-configure-wdiff \
637 maybe-configure-zip \
638 maybe-configure-zlib \
639 maybe-configure-gdb \
640 maybe-configure-expect \
641 maybe-configure-guile \
642 maybe-configure-tk \
8b87bb96 643 maybe-configure-libtermcap \
5395b47b
NN
644 maybe-configure-utils \
645 maybe-configure-gnattools
8b87bb96
NN
646.PHONY: configure-target
647configure-target: \
648 maybe-configure-target-libstdc++-v3 \
6de9cd9a 649 maybe-configure-target-libmudflap \
77008252 650 maybe-configure-target-libssp \
8b87bb96 651 maybe-configure-target-newlib \
6de9cd9a 652 maybe-configure-target-libgfortran \
8b87bb96
NN
653 maybe-configure-target-libobjc \
654 maybe-configure-target-libtermcap \
655 maybe-configure-target-winsup \
656 maybe-configure-target-libgloss \
657 maybe-configure-target-libiberty \
658 maybe-configure-target-gperf \
659 maybe-configure-target-examples \
660 maybe-configure-target-libffi \
661 maybe-configure-target-libjava \
662 maybe-configure-target-zlib \
663 maybe-configure-target-boehm-gc \
664 maybe-configure-target-qthreads \
d9cdb878 665 maybe-configure-target-rda \
953ff289
DN
666 maybe-configure-target-libada \
667 maybe-configure-target-libgomp
6599da04 668
f516a7da
PB
669# The target built for a native non-bootstrap build.
670.PHONY: all
1061f99e
PB
671all:
672@if gcc-bootstrap
2abefe3d 673 [ -f stage_final ] || echo stage3 > stage_final
1061f99e
PB
674 @r=`${PWD_COMMAND}`; export r; \
675 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 676 $(MAKE) $(RECURSE_FLAGS_TO_PASS) `cat stage_final`-bubble
1061f99e 677@endif gcc-bootstrap
f41d6665 678 @: $(MAKE); $(unstage)
1061f99e
PB
679 @r=`${PWD_COMMAND}`; export r; \
680 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
681 if [ -f stage_last ]; then \
2abefe3d 682 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target; \
1061f99e 683 else \
2abefe3d 684 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-host all-target; \
1061f99e 685 fi
23f6b2f9
PB
686
687.PHONY: all-build
cc11cc9b
PB
688
689all-build: maybe-all-build-libiberty
690all-build: maybe-all-build-bison
691all-build: maybe-all-build-byacc
692all-build: maybe-all-build-flex
693all-build: maybe-all-build-m4
694all-build: maybe-all-build-texinfo
695all-build: maybe-all-build-fixincludes
696
8b87bb96 697.PHONY: all-host
cc11cc9b
PB
698
699all-host: maybe-all-ash
700all-host: maybe-all-autoconf
701all-host: maybe-all-automake
702all-host: maybe-all-bash
703@if bfd-no-bootstrap
704all-host: maybe-all-bfd
705@endif bfd-no-bootstrap
706@if opcodes-no-bootstrap
707all-host: maybe-all-opcodes
708@endif opcodes-no-bootstrap
709@if binutils-no-bootstrap
710all-host: maybe-all-binutils
711@endif binutils-no-bootstrap
712all-host: maybe-all-bison
713all-host: maybe-all-byacc
714all-host: maybe-all-bzip2
715all-host: maybe-all-dejagnu
716all-host: maybe-all-diff
717all-host: maybe-all-dosutils
718all-host: maybe-all-etc
719all-host: maybe-all-fastjar
720all-host: maybe-all-fileutils
721all-host: maybe-all-findutils
722all-host: maybe-all-find
723all-host: maybe-all-fixincludes
724all-host: maybe-all-flex
725@if gas-no-bootstrap
726all-host: maybe-all-gas
727@endif gas-no-bootstrap
728@if gcc-no-bootstrap
729all-host: maybe-all-gcc
730@endif gcc-no-bootstrap
731all-host: maybe-all-gawk
732all-host: maybe-all-gettext
733all-host: maybe-all-gnuserv
734all-host: maybe-all-gprof
735all-host: maybe-all-gzip
736all-host: maybe-all-hello
737all-host: maybe-all-indent
738@if intl-no-bootstrap
739all-host: maybe-all-intl
740@endif intl-no-bootstrap
741all-host: maybe-all-tcl
742all-host: maybe-all-itcl
743@if ld-no-bootstrap
744all-host: maybe-all-ld
745@endif ld-no-bootstrap
746@if libcpp-no-bootstrap
747all-host: maybe-all-libcpp
748@endif libcpp-no-bootstrap
749@if libdecnumber-no-bootstrap
750all-host: maybe-all-libdecnumber
751@endif libdecnumber-no-bootstrap
752all-host: maybe-all-libgui
753@if libiberty-no-bootstrap
754all-host: maybe-all-libiberty
755@endif libiberty-no-bootstrap
756all-host: maybe-all-libtool
757all-host: maybe-all-m4
758all-host: maybe-all-make
759all-host: maybe-all-mmalloc
760all-host: maybe-all-patch
761all-host: maybe-all-perl
762all-host: maybe-all-prms
763all-host: maybe-all-rcs
764all-host: maybe-all-readline
765all-host: maybe-all-release
766all-host: maybe-all-recode
767all-host: maybe-all-sed
768all-host: maybe-all-send-pr
769all-host: maybe-all-shellutils
770all-host: maybe-all-sid
771all-host: maybe-all-sim
772all-host: maybe-all-tar
773all-host: maybe-all-texinfo
774all-host: maybe-all-textutils
775all-host: maybe-all-time
776all-host: maybe-all-uudecode
777all-host: maybe-all-wdiff
778all-host: maybe-all-zip
779@if zlib-no-bootstrap
780all-host: maybe-all-zlib
781@endif zlib-no-bootstrap
782all-host: maybe-all-gdb
783all-host: maybe-all-expect
784all-host: maybe-all-guile
785all-host: maybe-all-tk
786all-host: maybe-all-libtermcap
787all-host: maybe-all-utils
788all-host: maybe-all-gnattools
789
8b87bb96 790.PHONY: all-target
cc11cc9b
PB
791
792all-target: maybe-all-target-libstdc++-v3
793all-target: maybe-all-target-libmudflap
794all-target: maybe-all-target-libssp
cc11cc9b
PB
795all-target: maybe-all-target-newlib
796all-target: maybe-all-target-libgfortran
797all-target: maybe-all-target-libobjc
798all-target: maybe-all-target-libtermcap
799all-target: maybe-all-target-winsup
800all-target: maybe-all-target-libgloss
801all-target: maybe-all-target-libiberty
802all-target: maybe-all-target-gperf
803all-target: maybe-all-target-examples
804all-target: maybe-all-target-libffi
805all-target: maybe-all-target-libjava
806all-target: maybe-all-target-zlib
807all-target: maybe-all-target-boehm-gc
808all-target: maybe-all-target-qthreads
809all-target: maybe-all-target-rda
810all-target: maybe-all-target-libada
811all-target: maybe-all-target-libgomp
6599da04
JM
812
813# Do a target for all the subdirectories. A ``make do-X'' will do a
814# ``make X'' in all subdirectories (because, in general, there is a
815# dependency (below) of X upon do-X, a ``make X'' will also do this,
816# but it may do additional work as well).
4977bab6 817
1358ccea 818.PHONY: do-info
1061f99e 819do-info:
f41d6665 820 @: $(MAKE); $(unstage)
e7c84bf8
PB
821 @r=`${PWD_COMMAND}`; export r; \
822 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
823 $(MAKE) $(RECURSE_FLAGS_TO_PASS) info-host \
1061f99e 824 info-target
1061f99e 825
6599da04 826
1358ccea 827.PHONY: info-host
cc11cc9b
PB
828
829info-host: maybe-info-ash
830info-host: maybe-info-autoconf
831info-host: maybe-info-automake
832info-host: maybe-info-bash
833info-host: maybe-info-bfd
834info-host: maybe-info-opcodes
835info-host: maybe-info-binutils
836info-host: maybe-info-bison
837info-host: maybe-info-byacc
838info-host: maybe-info-bzip2
839info-host: maybe-info-dejagnu
840info-host: maybe-info-diff
841info-host: maybe-info-dosutils
842info-host: maybe-info-etc
843info-host: maybe-info-fastjar
844info-host: maybe-info-fileutils
845info-host: maybe-info-findutils
846info-host: maybe-info-find
847info-host: maybe-info-fixincludes
848info-host: maybe-info-flex
849info-host: maybe-info-gas
850info-host: maybe-info-gcc
851info-host: maybe-info-gawk
852info-host: maybe-info-gettext
853info-host: maybe-info-gnuserv
854info-host: maybe-info-gprof
855info-host: maybe-info-gzip
856info-host: maybe-info-hello
857info-host: maybe-info-indent
858info-host: maybe-info-intl
859info-host: maybe-info-tcl
860info-host: maybe-info-itcl
861info-host: maybe-info-ld
862info-host: maybe-info-libcpp
863info-host: maybe-info-libdecnumber
864info-host: maybe-info-libgui
865info-host: maybe-info-libiberty
866info-host: maybe-info-libtool
867info-host: maybe-info-m4
868info-host: maybe-info-make
869info-host: maybe-info-mmalloc
870info-host: maybe-info-patch
871info-host: maybe-info-perl
872info-host: maybe-info-prms
873info-host: maybe-info-rcs
874info-host: maybe-info-readline
875info-host: maybe-info-release
876info-host: maybe-info-recode
877info-host: maybe-info-sed
878info-host: maybe-info-send-pr
879info-host: maybe-info-shellutils
880info-host: maybe-info-sid
881info-host: maybe-info-sim
882info-host: maybe-info-tar
883info-host: maybe-info-texinfo
884info-host: maybe-info-textutils
885info-host: maybe-info-time
886info-host: maybe-info-uudecode
887info-host: maybe-info-wdiff
888info-host: maybe-info-zip
889info-host: maybe-info-zlib
890info-host: maybe-info-gdb
891info-host: maybe-info-expect
892info-host: maybe-info-guile
893info-host: maybe-info-tk
894info-host: maybe-info-libtermcap
895info-host: maybe-info-utils
896info-host: maybe-info-gnattools
6599da04 897
1358ccea 898.PHONY: info-target
cc11cc9b
PB
899
900info-target: maybe-info-target-libstdc++-v3
901info-target: maybe-info-target-libmudflap
902info-target: maybe-info-target-libssp
cc11cc9b
PB
903info-target: maybe-info-target-newlib
904info-target: maybe-info-target-libgfortran
905info-target: maybe-info-target-libobjc
906info-target: maybe-info-target-libtermcap
907info-target: maybe-info-target-winsup
908info-target: maybe-info-target-libgloss
909info-target: maybe-info-target-libiberty
910info-target: maybe-info-target-gperf
911info-target: maybe-info-target-examples
912info-target: maybe-info-target-libffi
913info-target: maybe-info-target-libjava
914info-target: maybe-info-target-zlib
915info-target: maybe-info-target-boehm-gc
916info-target: maybe-info-target-qthreads
917info-target: maybe-info-target-rda
918info-target: maybe-info-target-libada
919info-target: maybe-info-target-libgomp
6599da04 920
295f4e42 921.PHONY: do-dvi
1061f99e 922do-dvi:
f41d6665 923 @: $(MAKE); $(unstage)
e7c84bf8
PB
924 @r=`${PWD_COMMAND}`; export r; \
925 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
926 $(MAKE) $(RECURSE_FLAGS_TO_PASS) dvi-host \
1061f99e 927 dvi-target
1061f99e 928
4977bab6 929
295f4e42 930.PHONY: dvi-host
cc11cc9b
PB
931
932dvi-host: maybe-dvi-ash
933dvi-host: maybe-dvi-autoconf
934dvi-host: maybe-dvi-automake
935dvi-host: maybe-dvi-bash
936dvi-host: maybe-dvi-bfd
937dvi-host: maybe-dvi-opcodes
938dvi-host: maybe-dvi-binutils
939dvi-host: maybe-dvi-bison
940dvi-host: maybe-dvi-byacc
941dvi-host: maybe-dvi-bzip2
942dvi-host: maybe-dvi-dejagnu
943dvi-host: maybe-dvi-diff
944dvi-host: maybe-dvi-dosutils
945dvi-host: maybe-dvi-etc
946dvi-host: maybe-dvi-fastjar
947dvi-host: maybe-dvi-fileutils
948dvi-host: maybe-dvi-findutils
949dvi-host: maybe-dvi-find
950dvi-host: maybe-dvi-fixincludes
951dvi-host: maybe-dvi-flex
952dvi-host: maybe-dvi-gas
953dvi-host: maybe-dvi-gcc
954dvi-host: maybe-dvi-gawk
955dvi-host: maybe-dvi-gettext
956dvi-host: maybe-dvi-gnuserv
957dvi-host: maybe-dvi-gprof
958dvi-host: maybe-dvi-gzip
959dvi-host: maybe-dvi-hello
960dvi-host: maybe-dvi-indent
961dvi-host: maybe-dvi-intl
962dvi-host: maybe-dvi-tcl
963dvi-host: maybe-dvi-itcl
964dvi-host: maybe-dvi-ld
965dvi-host: maybe-dvi-libcpp
966dvi-host: maybe-dvi-libdecnumber
967dvi-host: maybe-dvi-libgui
968dvi-host: maybe-dvi-libiberty
969dvi-host: maybe-dvi-libtool
970dvi-host: maybe-dvi-m4
971dvi-host: maybe-dvi-make
972dvi-host: maybe-dvi-mmalloc
973dvi-host: maybe-dvi-patch
974dvi-host: maybe-dvi-perl
975dvi-host: maybe-dvi-prms
976dvi-host: maybe-dvi-rcs
977dvi-host: maybe-dvi-readline
978dvi-host: maybe-dvi-release
979dvi-host: maybe-dvi-recode
980dvi-host: maybe-dvi-sed
981dvi-host: maybe-dvi-send-pr
982dvi-host: maybe-dvi-shellutils
983dvi-host: maybe-dvi-sid
984dvi-host: maybe-dvi-sim
985dvi-host: maybe-dvi-tar
986dvi-host: maybe-dvi-texinfo
987dvi-host: maybe-dvi-textutils
988dvi-host: maybe-dvi-time
989dvi-host: maybe-dvi-uudecode
990dvi-host: maybe-dvi-wdiff
991dvi-host: maybe-dvi-zip
992dvi-host: maybe-dvi-zlib
993dvi-host: maybe-dvi-gdb
994dvi-host: maybe-dvi-expect
995dvi-host: maybe-dvi-guile
996dvi-host: maybe-dvi-tk
997dvi-host: maybe-dvi-libtermcap
998dvi-host: maybe-dvi-utils
999dvi-host: maybe-dvi-gnattools
4977bab6 1000
295f4e42 1001.PHONY: dvi-target
cc11cc9b
PB
1002
1003dvi-target: maybe-dvi-target-libstdc++-v3
1004dvi-target: maybe-dvi-target-libmudflap
1005dvi-target: maybe-dvi-target-libssp
cc11cc9b
PB
1006dvi-target: maybe-dvi-target-newlib
1007dvi-target: maybe-dvi-target-libgfortran
1008dvi-target: maybe-dvi-target-libobjc
1009dvi-target: maybe-dvi-target-libtermcap
1010dvi-target: maybe-dvi-target-winsup
1011dvi-target: maybe-dvi-target-libgloss
1012dvi-target: maybe-dvi-target-libiberty
1013dvi-target: maybe-dvi-target-gperf
1014dvi-target: maybe-dvi-target-examples
1015dvi-target: maybe-dvi-target-libffi
1016dvi-target: maybe-dvi-target-libjava
1017dvi-target: maybe-dvi-target-zlib
1018dvi-target: maybe-dvi-target-boehm-gc
1019dvi-target: maybe-dvi-target-qthreads
1020dvi-target: maybe-dvi-target-rda
1021dvi-target: maybe-dvi-target-libada
1022dvi-target: maybe-dvi-target-libgomp
4977bab6 1023
b5422ad7
BM
1024.PHONY: do-pdf
1025do-pdf:
1026 @: $(MAKE); $(unstage)
1027 @r=`${PWD_COMMAND}`; export r; \
1028 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1029 $(MAKE) $(RECURSE_FLAGS_TO_PASS) pdf-host \
1030 pdf-target
1031
1032
1033.PHONY: pdf-host
1034
1035pdf-host: maybe-pdf-ash
1036pdf-host: maybe-pdf-autoconf
1037pdf-host: maybe-pdf-automake
1038pdf-host: maybe-pdf-bash
1039pdf-host: maybe-pdf-bfd
1040pdf-host: maybe-pdf-opcodes
1041pdf-host: maybe-pdf-binutils
1042pdf-host: maybe-pdf-bison
1043pdf-host: maybe-pdf-byacc
1044pdf-host: maybe-pdf-bzip2
1045pdf-host: maybe-pdf-dejagnu
1046pdf-host: maybe-pdf-diff
1047pdf-host: maybe-pdf-dosutils
1048pdf-host: maybe-pdf-etc
1049pdf-host: maybe-pdf-fastjar
1050pdf-host: maybe-pdf-fileutils
1051pdf-host: maybe-pdf-findutils
1052pdf-host: maybe-pdf-find
1053pdf-host: maybe-pdf-fixincludes
1054pdf-host: maybe-pdf-flex
1055pdf-host: maybe-pdf-gas
1056pdf-host: maybe-pdf-gcc
1057pdf-host: maybe-pdf-gawk
1058pdf-host: maybe-pdf-gettext
1059pdf-host: maybe-pdf-gnuserv
1060pdf-host: maybe-pdf-gprof
1061pdf-host: maybe-pdf-gzip
1062pdf-host: maybe-pdf-hello
1063pdf-host: maybe-pdf-indent
1064pdf-host: maybe-pdf-intl
1065pdf-host: maybe-pdf-tcl
1066pdf-host: maybe-pdf-itcl
1067pdf-host: maybe-pdf-ld
1068pdf-host: maybe-pdf-libcpp
1069pdf-host: maybe-pdf-libdecnumber
1070pdf-host: maybe-pdf-libgui
1071pdf-host: maybe-pdf-libiberty
1072pdf-host: maybe-pdf-libtool
1073pdf-host: maybe-pdf-m4
1074pdf-host: maybe-pdf-make
1075pdf-host: maybe-pdf-mmalloc
1076pdf-host: maybe-pdf-patch
1077pdf-host: maybe-pdf-perl
1078pdf-host: maybe-pdf-prms
1079pdf-host: maybe-pdf-rcs
1080pdf-host: maybe-pdf-readline
1081pdf-host: maybe-pdf-release
1082pdf-host: maybe-pdf-recode
1083pdf-host: maybe-pdf-sed
1084pdf-host: maybe-pdf-send-pr
1085pdf-host: maybe-pdf-shellutils
1086pdf-host: maybe-pdf-sid
1087pdf-host: maybe-pdf-sim
1088pdf-host: maybe-pdf-tar
1089pdf-host: maybe-pdf-texinfo
1090pdf-host: maybe-pdf-textutils
1091pdf-host: maybe-pdf-time
1092pdf-host: maybe-pdf-uudecode
1093pdf-host: maybe-pdf-wdiff
1094pdf-host: maybe-pdf-zip
1095pdf-host: maybe-pdf-zlib
1096pdf-host: maybe-pdf-gdb
1097pdf-host: maybe-pdf-expect
1098pdf-host: maybe-pdf-guile
1099pdf-host: maybe-pdf-tk
1100pdf-host: maybe-pdf-libtermcap
1101pdf-host: maybe-pdf-utils
1102pdf-host: maybe-pdf-gnattools
1103
1104.PHONY: pdf-target
1105
1106pdf-target: maybe-pdf-target-libstdc++-v3
1107pdf-target: maybe-pdf-target-libmudflap
1108pdf-target: maybe-pdf-target-libssp
1109pdf-target: maybe-pdf-target-newlib
1110pdf-target: maybe-pdf-target-libgfortran
1111pdf-target: maybe-pdf-target-libobjc
1112pdf-target: maybe-pdf-target-libtermcap
1113pdf-target: maybe-pdf-target-winsup
1114pdf-target: maybe-pdf-target-libgloss
1115pdf-target: maybe-pdf-target-libiberty
1116pdf-target: maybe-pdf-target-gperf
1117pdf-target: maybe-pdf-target-examples
1118pdf-target: maybe-pdf-target-libffi
1119pdf-target: maybe-pdf-target-libjava
1120pdf-target: maybe-pdf-target-zlib
1121pdf-target: maybe-pdf-target-boehm-gc
1122pdf-target: maybe-pdf-target-qthreads
1123pdf-target: maybe-pdf-target-rda
1124pdf-target: maybe-pdf-target-libada
1125pdf-target: maybe-pdf-target-libgomp
1126
f87a2b2e 1127.PHONY: do-html
1061f99e 1128do-html:
f41d6665 1129 @: $(MAKE); $(unstage)
e7c84bf8
PB
1130 @r=`${PWD_COMMAND}`; export r; \
1131 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1132 $(MAKE) $(RECURSE_FLAGS_TO_PASS) html-host \
1061f99e 1133 html-target
1061f99e 1134
f87a2b2e
MS
1135
1136.PHONY: html-host
cc11cc9b
PB
1137
1138html-host: maybe-html-ash
1139html-host: maybe-html-autoconf
1140html-host: maybe-html-automake
1141html-host: maybe-html-bash
1142html-host: maybe-html-bfd
1143html-host: maybe-html-opcodes
1144html-host: maybe-html-binutils
1145html-host: maybe-html-bison
1146html-host: maybe-html-byacc
1147html-host: maybe-html-bzip2
1148html-host: maybe-html-dejagnu
1149html-host: maybe-html-diff
1150html-host: maybe-html-dosutils
1151html-host: maybe-html-etc
1152html-host: maybe-html-fastjar
1153html-host: maybe-html-fileutils
1154html-host: maybe-html-findutils
1155html-host: maybe-html-find
1156html-host: maybe-html-fixincludes
1157html-host: maybe-html-flex
1158html-host: maybe-html-gas
1159html-host: maybe-html-gcc
1160html-host: maybe-html-gawk
1161html-host: maybe-html-gettext
1162html-host: maybe-html-gnuserv
1163html-host: maybe-html-gprof
1164html-host: maybe-html-gzip
1165html-host: maybe-html-hello
1166html-host: maybe-html-indent
1167html-host: maybe-html-intl
1168html-host: maybe-html-tcl
1169html-host: maybe-html-itcl
1170html-host: maybe-html-ld
1171html-host: maybe-html-libcpp
1172html-host: maybe-html-libdecnumber
1173html-host: maybe-html-libgui
1174html-host: maybe-html-libiberty
1175html-host: maybe-html-libtool
1176html-host: maybe-html-m4
1177html-host: maybe-html-make
1178html-host: maybe-html-mmalloc
1179html-host: maybe-html-patch
1180html-host: maybe-html-perl
1181html-host: maybe-html-prms
1182html-host: maybe-html-rcs
1183html-host: maybe-html-readline
1184html-host: maybe-html-release
1185html-host: maybe-html-recode
1186html-host: maybe-html-sed
1187html-host: maybe-html-send-pr
1188html-host: maybe-html-shellutils
1189html-host: maybe-html-sid
1190html-host: maybe-html-sim
1191html-host: maybe-html-tar
1192html-host: maybe-html-texinfo
1193html-host: maybe-html-textutils
1194html-host: maybe-html-time
1195html-host: maybe-html-uudecode
1196html-host: maybe-html-wdiff
1197html-host: maybe-html-zip
1198html-host: maybe-html-zlib
1199html-host: maybe-html-gdb
1200html-host: maybe-html-expect
1201html-host: maybe-html-guile
1202html-host: maybe-html-tk
1203html-host: maybe-html-libtermcap
1204html-host: maybe-html-utils
1205html-host: maybe-html-gnattools
f87a2b2e
MS
1206
1207.PHONY: html-target
cc11cc9b
PB
1208
1209html-target: maybe-html-target-libstdc++-v3
1210html-target: maybe-html-target-libmudflap
1211html-target: maybe-html-target-libssp
cc11cc9b
PB
1212html-target: maybe-html-target-newlib
1213html-target: maybe-html-target-libgfortran
1214html-target: maybe-html-target-libobjc
1215html-target: maybe-html-target-libtermcap
1216html-target: maybe-html-target-winsup
1217html-target: maybe-html-target-libgloss
1218html-target: maybe-html-target-libiberty
1219html-target: maybe-html-target-gperf
1220html-target: maybe-html-target-examples
1221html-target: maybe-html-target-libffi
1222html-target: maybe-html-target-libjava
1223html-target: maybe-html-target-zlib
1224html-target: maybe-html-target-boehm-gc
1225html-target: maybe-html-target-qthreads
1226html-target: maybe-html-target-rda
1227html-target: maybe-html-target-libada
1228html-target: maybe-html-target-libgomp
f87a2b2e 1229
295f4e42 1230.PHONY: do-TAGS
1061f99e 1231do-TAGS:
f41d6665 1232 @: $(MAKE); $(unstage)
e7c84bf8
PB
1233 @r=`${PWD_COMMAND}`; export r; \
1234 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1235 $(MAKE) $(RECURSE_FLAGS_TO_PASS) TAGS-host \
1061f99e 1236 TAGS-target
1061f99e 1237
4977bab6 1238
295f4e42 1239.PHONY: TAGS-host
cc11cc9b
PB
1240
1241TAGS-host: maybe-TAGS-ash
1242TAGS-host: maybe-TAGS-autoconf
1243TAGS-host: maybe-TAGS-automake
1244TAGS-host: maybe-TAGS-bash
1245TAGS-host: maybe-TAGS-bfd
1246TAGS-host: maybe-TAGS-opcodes
1247TAGS-host: maybe-TAGS-binutils
1248TAGS-host: maybe-TAGS-bison
1249TAGS-host: maybe-TAGS-byacc
1250TAGS-host: maybe-TAGS-bzip2
1251TAGS-host: maybe-TAGS-dejagnu
1252TAGS-host: maybe-TAGS-diff
1253TAGS-host: maybe-TAGS-dosutils
1254TAGS-host: maybe-TAGS-etc
1255TAGS-host: maybe-TAGS-fastjar
1256TAGS-host: maybe-TAGS-fileutils
1257TAGS-host: maybe-TAGS-findutils
1258TAGS-host: maybe-TAGS-find
1259TAGS-host: maybe-TAGS-fixincludes
1260TAGS-host: maybe-TAGS-flex
1261TAGS-host: maybe-TAGS-gas
1262TAGS-host: maybe-TAGS-gcc
1263TAGS-host: maybe-TAGS-gawk
1264TAGS-host: maybe-TAGS-gettext
1265TAGS-host: maybe-TAGS-gnuserv
1266TAGS-host: maybe-TAGS-gprof
1267TAGS-host: maybe-TAGS-gzip
1268TAGS-host: maybe-TAGS-hello
1269TAGS-host: maybe-TAGS-indent
1270TAGS-host: maybe-TAGS-intl
1271TAGS-host: maybe-TAGS-tcl
1272TAGS-host: maybe-TAGS-itcl
1273TAGS-host: maybe-TAGS-ld
1274TAGS-host: maybe-TAGS-libcpp
1275TAGS-host: maybe-TAGS-libdecnumber
1276TAGS-host: maybe-TAGS-libgui
1277TAGS-host: maybe-TAGS-libiberty
1278TAGS-host: maybe-TAGS-libtool
1279TAGS-host: maybe-TAGS-m4
1280TAGS-host: maybe-TAGS-make
1281TAGS-host: maybe-TAGS-mmalloc
1282TAGS-host: maybe-TAGS-patch
1283TAGS-host: maybe-TAGS-perl
1284TAGS-host: maybe-TAGS-prms
1285TAGS-host: maybe-TAGS-rcs
1286TAGS-host: maybe-TAGS-readline
1287TAGS-host: maybe-TAGS-release
1288TAGS-host: maybe-TAGS-recode
1289TAGS-host: maybe-TAGS-sed
1290TAGS-host: maybe-TAGS-send-pr
1291TAGS-host: maybe-TAGS-shellutils
1292TAGS-host: maybe-TAGS-sid
1293TAGS-host: maybe-TAGS-sim
1294TAGS-host: maybe-TAGS-tar
1295TAGS-host: maybe-TAGS-texinfo
1296TAGS-host: maybe-TAGS-textutils
1297TAGS-host: maybe-TAGS-time
1298TAGS-host: maybe-TAGS-uudecode
1299TAGS-host: maybe-TAGS-wdiff
1300TAGS-host: maybe-TAGS-zip
1301TAGS-host: maybe-TAGS-zlib
1302TAGS-host: maybe-TAGS-gdb
1303TAGS-host: maybe-TAGS-expect
1304TAGS-host: maybe-TAGS-guile
1305TAGS-host: maybe-TAGS-tk
1306TAGS-host: maybe-TAGS-libtermcap
1307TAGS-host: maybe-TAGS-utils
1308TAGS-host: maybe-TAGS-gnattools
4977bab6 1309
295f4e42 1310.PHONY: TAGS-target
cc11cc9b
PB
1311
1312TAGS-target: maybe-TAGS-target-libstdc++-v3
1313TAGS-target: maybe-TAGS-target-libmudflap
1314TAGS-target: maybe-TAGS-target-libssp
cc11cc9b
PB
1315TAGS-target: maybe-TAGS-target-newlib
1316TAGS-target: maybe-TAGS-target-libgfortran
1317TAGS-target: maybe-TAGS-target-libobjc
1318TAGS-target: maybe-TAGS-target-libtermcap
1319TAGS-target: maybe-TAGS-target-winsup
1320TAGS-target: maybe-TAGS-target-libgloss
1321TAGS-target: maybe-TAGS-target-libiberty
1322TAGS-target: maybe-TAGS-target-gperf
1323TAGS-target: maybe-TAGS-target-examples
1324TAGS-target: maybe-TAGS-target-libffi
1325TAGS-target: maybe-TAGS-target-libjava
1326TAGS-target: maybe-TAGS-target-zlib
1327TAGS-target: maybe-TAGS-target-boehm-gc
1328TAGS-target: maybe-TAGS-target-qthreads
1329TAGS-target: maybe-TAGS-target-rda
1330TAGS-target: maybe-TAGS-target-libada
1331TAGS-target: maybe-TAGS-target-libgomp
4977bab6 1332
295f4e42 1333.PHONY: do-install-info
1061f99e 1334do-install-info:
f41d6665 1335 @: $(MAKE); $(unstage)
e7c84bf8
PB
1336 @r=`${PWD_COMMAND}`; export r; \
1337 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1338 $(MAKE) $(RECURSE_FLAGS_TO_PASS) install-info-host \
1061f99e 1339 install-info-target
1061f99e 1340
4977bab6 1341
295f4e42 1342.PHONY: install-info-host
cc11cc9b
PB
1343
1344install-info-host: maybe-install-info-ash
1345install-info-host: maybe-install-info-autoconf
1346install-info-host: maybe-install-info-automake
1347install-info-host: maybe-install-info-bash
1348install-info-host: maybe-install-info-bfd
1349install-info-host: maybe-install-info-opcodes
1350install-info-host: maybe-install-info-binutils
1351install-info-host: maybe-install-info-bison
1352install-info-host: maybe-install-info-byacc
1353install-info-host: maybe-install-info-bzip2
1354install-info-host: maybe-install-info-dejagnu
1355install-info-host: maybe-install-info-diff
1356install-info-host: maybe-install-info-dosutils
1357install-info-host: maybe-install-info-etc
1358install-info-host: maybe-install-info-fastjar
1359install-info-host: maybe-install-info-fileutils
1360install-info-host: maybe-install-info-findutils
1361install-info-host: maybe-install-info-find
1362install-info-host: maybe-install-info-fixincludes
1363install-info-host: maybe-install-info-flex
1364install-info-host: maybe-install-info-gas
1365install-info-host: maybe-install-info-gcc
1366install-info-host: maybe-install-info-gawk
1367install-info-host: maybe-install-info-gettext
1368install-info-host: maybe-install-info-gnuserv
1369install-info-host: maybe-install-info-gprof
1370install-info-host: maybe-install-info-gzip
1371install-info-host: maybe-install-info-hello
1372install-info-host: maybe-install-info-indent
1373install-info-host: maybe-install-info-intl
1374install-info-host: maybe-install-info-tcl
1375install-info-host: maybe-install-info-itcl
1376install-info-host: maybe-install-info-ld
1377install-info-host: maybe-install-info-libcpp
1378install-info-host: maybe-install-info-libdecnumber
1379install-info-host: maybe-install-info-libgui
1380install-info-host: maybe-install-info-libiberty
1381install-info-host: maybe-install-info-libtool
1382install-info-host: maybe-install-info-m4
1383install-info-host: maybe-install-info-make
1384install-info-host: maybe-install-info-mmalloc
1385install-info-host: maybe-install-info-patch
1386install-info-host: maybe-install-info-perl
1387install-info-host: maybe-install-info-prms
1388install-info-host: maybe-install-info-rcs
1389install-info-host: maybe-install-info-readline
1390install-info-host: maybe-install-info-release
1391install-info-host: maybe-install-info-recode
1392install-info-host: maybe-install-info-sed
1393install-info-host: maybe-install-info-send-pr
1394install-info-host: maybe-install-info-shellutils
1395install-info-host: maybe-install-info-sid
1396install-info-host: maybe-install-info-sim
1397install-info-host: maybe-install-info-tar
1398install-info-host: maybe-install-info-texinfo
1399install-info-host: maybe-install-info-textutils
1400install-info-host: maybe-install-info-time
1401install-info-host: maybe-install-info-uudecode
1402install-info-host: maybe-install-info-wdiff
1403install-info-host: maybe-install-info-zip
1404install-info-host: maybe-install-info-zlib
1405install-info-host: maybe-install-info-gdb
1406install-info-host: maybe-install-info-expect
1407install-info-host: maybe-install-info-guile
1408install-info-host: maybe-install-info-tk
1409install-info-host: maybe-install-info-libtermcap
1410install-info-host: maybe-install-info-utils
1411install-info-host: maybe-install-info-gnattools
1358ccea 1412
295f4e42 1413.PHONY: install-info-target
cc11cc9b
PB
1414
1415install-info-target: maybe-install-info-target-libstdc++-v3
1416install-info-target: maybe-install-info-target-libmudflap
1417install-info-target: maybe-install-info-target-libssp
cc11cc9b
PB
1418install-info-target: maybe-install-info-target-newlib
1419install-info-target: maybe-install-info-target-libgfortran
1420install-info-target: maybe-install-info-target-libobjc
1421install-info-target: maybe-install-info-target-libtermcap
1422install-info-target: maybe-install-info-target-winsup
1423install-info-target: maybe-install-info-target-libgloss
1424install-info-target: maybe-install-info-target-libiberty
1425install-info-target: maybe-install-info-target-gperf
1426install-info-target: maybe-install-info-target-examples
1427install-info-target: maybe-install-info-target-libffi
1428install-info-target: maybe-install-info-target-libjava
1429install-info-target: maybe-install-info-target-zlib
1430install-info-target: maybe-install-info-target-boehm-gc
1431install-info-target: maybe-install-info-target-qthreads
1432install-info-target: maybe-install-info-target-rda
1433install-info-target: maybe-install-info-target-libada
1434install-info-target: maybe-install-info-target-libgomp
1358ccea 1435
65d6e994
CD
1436.PHONY: do-install-html
1437do-install-html:
1438 @: $(MAKE); $(unstage)
1439 @r=`${PWD_COMMAND}`; export r; \
1440 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1441 $(MAKE) $(RECURSE_FLAGS_TO_PASS) install-html-host \
1442 install-html-target
1443
1444
1445.PHONY: install-html-host
1446
1447install-html-host: maybe-install-html-ash
1448install-html-host: maybe-install-html-autoconf
1449install-html-host: maybe-install-html-automake
1450install-html-host: maybe-install-html-bash
1451install-html-host: maybe-install-html-bfd
1452install-html-host: maybe-install-html-opcodes
1453install-html-host: maybe-install-html-binutils
1454install-html-host: maybe-install-html-bison
1455install-html-host: maybe-install-html-byacc
1456install-html-host: maybe-install-html-bzip2
1457install-html-host: maybe-install-html-dejagnu
1458install-html-host: maybe-install-html-diff
1459install-html-host: maybe-install-html-dosutils
1460install-html-host: maybe-install-html-etc
1461install-html-host: maybe-install-html-fastjar
1462install-html-host: maybe-install-html-fileutils
1463install-html-host: maybe-install-html-findutils
1464install-html-host: maybe-install-html-find
1465install-html-host: maybe-install-html-fixincludes
1466install-html-host: maybe-install-html-flex
1467install-html-host: maybe-install-html-gas
1468install-html-host: maybe-install-html-gcc
1469install-html-host: maybe-install-html-gawk
1470install-html-host: maybe-install-html-gettext
1471install-html-host: maybe-install-html-gnuserv
1472install-html-host: maybe-install-html-gprof
1473install-html-host: maybe-install-html-gzip
1474install-html-host: maybe-install-html-hello
1475install-html-host: maybe-install-html-indent
1476install-html-host: maybe-install-html-intl
1477install-html-host: maybe-install-html-tcl
1478install-html-host: maybe-install-html-itcl
1479install-html-host: maybe-install-html-ld
1480install-html-host: maybe-install-html-libcpp
1481install-html-host: maybe-install-html-libdecnumber
1482install-html-host: maybe-install-html-libgui
1483install-html-host: maybe-install-html-libiberty
1484install-html-host: maybe-install-html-libtool
1485install-html-host: maybe-install-html-m4
1486install-html-host: maybe-install-html-make
1487install-html-host: maybe-install-html-mmalloc
1488install-html-host: maybe-install-html-patch
1489install-html-host: maybe-install-html-perl
1490install-html-host: maybe-install-html-prms
1491install-html-host: maybe-install-html-rcs
1492install-html-host: maybe-install-html-readline
1493install-html-host: maybe-install-html-release
1494install-html-host: maybe-install-html-recode
1495install-html-host: maybe-install-html-sed
1496install-html-host: maybe-install-html-send-pr
1497install-html-host: maybe-install-html-shellutils
1498install-html-host: maybe-install-html-sid
1499install-html-host: maybe-install-html-sim
1500install-html-host: maybe-install-html-tar
1501install-html-host: maybe-install-html-texinfo
1502install-html-host: maybe-install-html-textutils
1503install-html-host: maybe-install-html-time
1504install-html-host: maybe-install-html-uudecode
1505install-html-host: maybe-install-html-wdiff
1506install-html-host: maybe-install-html-zip
1507install-html-host: maybe-install-html-zlib
1508install-html-host: maybe-install-html-gdb
1509install-html-host: maybe-install-html-expect
1510install-html-host: maybe-install-html-guile
1511install-html-host: maybe-install-html-tk
1512install-html-host: maybe-install-html-libtermcap
1513install-html-host: maybe-install-html-utils
1514install-html-host: maybe-install-html-gnattools
1515
1516.PHONY: install-html-target
1517
1518install-html-target: maybe-install-html-target-libstdc++-v3
1519install-html-target: maybe-install-html-target-libmudflap
1520install-html-target: maybe-install-html-target-libssp
65d6e994
CD
1521install-html-target: maybe-install-html-target-newlib
1522install-html-target: maybe-install-html-target-libgfortran
1523install-html-target: maybe-install-html-target-libobjc
1524install-html-target: maybe-install-html-target-libtermcap
1525install-html-target: maybe-install-html-target-winsup
1526install-html-target: maybe-install-html-target-libgloss
1527install-html-target: maybe-install-html-target-libiberty
1528install-html-target: maybe-install-html-target-gperf
1529install-html-target: maybe-install-html-target-examples
1530install-html-target: maybe-install-html-target-libffi
1531install-html-target: maybe-install-html-target-libjava
1532install-html-target: maybe-install-html-target-zlib
1533install-html-target: maybe-install-html-target-boehm-gc
1534install-html-target: maybe-install-html-target-qthreads
1535install-html-target: maybe-install-html-target-rda
1536install-html-target: maybe-install-html-target-libada
1537install-html-target: maybe-install-html-target-libgomp
1538
295f4e42 1539.PHONY: do-installcheck
1061f99e 1540do-installcheck:
f41d6665 1541 @: $(MAKE); $(unstage)
e7c84bf8
PB
1542 @r=`${PWD_COMMAND}`; export r; \
1543 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1544 $(MAKE) $(RECURSE_FLAGS_TO_PASS) installcheck-host \
1061f99e 1545 installcheck-target
1061f99e 1546
1358ccea 1547
295f4e42 1548.PHONY: installcheck-host
cc11cc9b
PB
1549
1550installcheck-host: maybe-installcheck-ash
1551installcheck-host: maybe-installcheck-autoconf
1552installcheck-host: maybe-installcheck-automake
1553installcheck-host: maybe-installcheck-bash
1554installcheck-host: maybe-installcheck-bfd
1555installcheck-host: maybe-installcheck-opcodes
1556installcheck-host: maybe-installcheck-binutils
1557installcheck-host: maybe-installcheck-bison
1558installcheck-host: maybe-installcheck-byacc
1559installcheck-host: maybe-installcheck-bzip2
1560installcheck-host: maybe-installcheck-dejagnu
1561installcheck-host: maybe-installcheck-diff
1562installcheck-host: maybe-installcheck-dosutils
1563installcheck-host: maybe-installcheck-etc
1564installcheck-host: maybe-installcheck-fastjar
1565installcheck-host: maybe-installcheck-fileutils
1566installcheck-host: maybe-installcheck-findutils
1567installcheck-host: maybe-installcheck-find
1568installcheck-host: maybe-installcheck-fixincludes
1569installcheck-host: maybe-installcheck-flex
1570installcheck-host: maybe-installcheck-gas
1571installcheck-host: maybe-installcheck-gcc
1572installcheck-host: maybe-installcheck-gawk
1573installcheck-host: maybe-installcheck-gettext
1574installcheck-host: maybe-installcheck-gnuserv
1575installcheck-host: maybe-installcheck-gprof
1576installcheck-host: maybe-installcheck-gzip
1577installcheck-host: maybe-installcheck-hello
1578installcheck-host: maybe-installcheck-indent
1579installcheck-host: maybe-installcheck-intl
1580installcheck-host: maybe-installcheck-tcl
1581installcheck-host: maybe-installcheck-itcl
1582installcheck-host: maybe-installcheck-ld
1583installcheck-host: maybe-installcheck-libcpp
1584installcheck-host: maybe-installcheck-libdecnumber
1585installcheck-host: maybe-installcheck-libgui
1586installcheck-host: maybe-installcheck-libiberty
1587installcheck-host: maybe-installcheck-libtool
1588installcheck-host: maybe-installcheck-m4
1589installcheck-host: maybe-installcheck-make
1590installcheck-host: maybe-installcheck-mmalloc
1591installcheck-host: maybe-installcheck-patch
1592installcheck-host: maybe-installcheck-perl
1593installcheck-host: maybe-installcheck-prms
1594installcheck-host: maybe-installcheck-rcs
1595installcheck-host: maybe-installcheck-readline
1596installcheck-host: maybe-installcheck-release
1597installcheck-host: maybe-installcheck-recode
1598installcheck-host: maybe-installcheck-sed
1599installcheck-host: maybe-installcheck-send-pr
1600installcheck-host: maybe-installcheck-shellutils
1601installcheck-host: maybe-installcheck-sid
1602installcheck-host: maybe-installcheck-sim
1603installcheck-host: maybe-installcheck-tar
1604installcheck-host: maybe-installcheck-texinfo
1605installcheck-host: maybe-installcheck-textutils
1606installcheck-host: maybe-installcheck-time
1607installcheck-host: maybe-installcheck-uudecode
1608installcheck-host: maybe-installcheck-wdiff
1609installcheck-host: maybe-installcheck-zip
1610installcheck-host: maybe-installcheck-zlib
1611installcheck-host: maybe-installcheck-gdb
1612installcheck-host: maybe-installcheck-expect
1613installcheck-host: maybe-installcheck-guile
1614installcheck-host: maybe-installcheck-tk
1615installcheck-host: maybe-installcheck-libtermcap
1616installcheck-host: maybe-installcheck-utils
1617installcheck-host: maybe-installcheck-gnattools
1358ccea 1618
295f4e42 1619.PHONY: installcheck-target
cc11cc9b
PB
1620
1621installcheck-target: maybe-installcheck-target-libstdc++-v3
1622installcheck-target: maybe-installcheck-target-libmudflap
1623installcheck-target: maybe-installcheck-target-libssp
cc11cc9b
PB
1624installcheck-target: maybe-installcheck-target-newlib
1625installcheck-target: maybe-installcheck-target-libgfortran
1626installcheck-target: maybe-installcheck-target-libobjc
1627installcheck-target: maybe-installcheck-target-libtermcap
1628installcheck-target: maybe-installcheck-target-winsup
1629installcheck-target: maybe-installcheck-target-libgloss
1630installcheck-target: maybe-installcheck-target-libiberty
1631installcheck-target: maybe-installcheck-target-gperf
1632installcheck-target: maybe-installcheck-target-examples
1633installcheck-target: maybe-installcheck-target-libffi
1634installcheck-target: maybe-installcheck-target-libjava
1635installcheck-target: maybe-installcheck-target-zlib
1636installcheck-target: maybe-installcheck-target-boehm-gc
1637installcheck-target: maybe-installcheck-target-qthreads
1638installcheck-target: maybe-installcheck-target-rda
1639installcheck-target: maybe-installcheck-target-libada
1640installcheck-target: maybe-installcheck-target-libgomp
1358ccea 1641
295f4e42 1642.PHONY: do-mostlyclean
1061f99e 1643do-mostlyclean:
f41d6665 1644 @: $(MAKE); $(unstage)
e7c84bf8
PB
1645 @r=`${PWD_COMMAND}`; export r; \
1646 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1647 $(MAKE) $(RECURSE_FLAGS_TO_PASS) mostlyclean-host \
1061f99e 1648 mostlyclean-target
1061f99e 1649
1358ccea 1650
295f4e42 1651.PHONY: mostlyclean-host
cc11cc9b
PB
1652
1653mostlyclean-host: maybe-mostlyclean-ash
1654mostlyclean-host: maybe-mostlyclean-autoconf
1655mostlyclean-host: maybe-mostlyclean-automake
1656mostlyclean-host: maybe-mostlyclean-bash
1657mostlyclean-host: maybe-mostlyclean-bfd
1658mostlyclean-host: maybe-mostlyclean-opcodes
1659mostlyclean-host: maybe-mostlyclean-binutils
1660mostlyclean-host: maybe-mostlyclean-bison
1661mostlyclean-host: maybe-mostlyclean-byacc
1662mostlyclean-host: maybe-mostlyclean-bzip2
1663mostlyclean-host: maybe-mostlyclean-dejagnu
1664mostlyclean-host: maybe-mostlyclean-diff
1665mostlyclean-host: maybe-mostlyclean-dosutils
1666mostlyclean-host: maybe-mostlyclean-etc
1667mostlyclean-host: maybe-mostlyclean-fastjar
1668mostlyclean-host: maybe-mostlyclean-fileutils
1669mostlyclean-host: maybe-mostlyclean-findutils
1670mostlyclean-host: maybe-mostlyclean-find
1671mostlyclean-host: maybe-mostlyclean-fixincludes
1672mostlyclean-host: maybe-mostlyclean-flex
1673mostlyclean-host: maybe-mostlyclean-gas
1674mostlyclean-host: maybe-mostlyclean-gcc
1675mostlyclean-host: maybe-mostlyclean-gawk
1676mostlyclean-host: maybe-mostlyclean-gettext
1677mostlyclean-host: maybe-mostlyclean-gnuserv
1678mostlyclean-host: maybe-mostlyclean-gprof
1679mostlyclean-host: maybe-mostlyclean-gzip
1680mostlyclean-host: maybe-mostlyclean-hello
1681mostlyclean-host: maybe-mostlyclean-indent
1682mostlyclean-host: maybe-mostlyclean-intl
1683mostlyclean-host: maybe-mostlyclean-tcl
1684mostlyclean-host: maybe-mostlyclean-itcl
1685mostlyclean-host: maybe-mostlyclean-ld
1686mostlyclean-host: maybe-mostlyclean-libcpp
1687mostlyclean-host: maybe-mostlyclean-libdecnumber
1688mostlyclean-host: maybe-mostlyclean-libgui
1689mostlyclean-host: maybe-mostlyclean-libiberty
1690mostlyclean-host: maybe-mostlyclean-libtool
1691mostlyclean-host: maybe-mostlyclean-m4
1692mostlyclean-host: maybe-mostlyclean-make
1693mostlyclean-host: maybe-mostlyclean-mmalloc
1694mostlyclean-host: maybe-mostlyclean-patch
1695mostlyclean-host: maybe-mostlyclean-perl
1696mostlyclean-host: maybe-mostlyclean-prms
1697mostlyclean-host: maybe-mostlyclean-rcs
1698mostlyclean-host: maybe-mostlyclean-readline
1699mostlyclean-host: maybe-mostlyclean-release
1700mostlyclean-host: maybe-mostlyclean-recode
1701mostlyclean-host: maybe-mostlyclean-sed
1702mostlyclean-host: maybe-mostlyclean-send-pr
1703mostlyclean-host: maybe-mostlyclean-shellutils
1704mostlyclean-host: maybe-mostlyclean-sid
1705mostlyclean-host: maybe-mostlyclean-sim
1706mostlyclean-host: maybe-mostlyclean-tar
1707mostlyclean-host: maybe-mostlyclean-texinfo
1708mostlyclean-host: maybe-mostlyclean-textutils
1709mostlyclean-host: maybe-mostlyclean-time
1710mostlyclean-host: maybe-mostlyclean-uudecode
1711mostlyclean-host: maybe-mostlyclean-wdiff
1712mostlyclean-host: maybe-mostlyclean-zip
1713mostlyclean-host: maybe-mostlyclean-zlib
1714mostlyclean-host: maybe-mostlyclean-gdb
1715mostlyclean-host: maybe-mostlyclean-expect
1716mostlyclean-host: maybe-mostlyclean-guile
1717mostlyclean-host: maybe-mostlyclean-tk
1718mostlyclean-host: maybe-mostlyclean-libtermcap
1719mostlyclean-host: maybe-mostlyclean-utils
1720mostlyclean-host: maybe-mostlyclean-gnattools
1358ccea 1721
295f4e42 1722.PHONY: mostlyclean-target
cc11cc9b
PB
1723
1724mostlyclean-target: maybe-mostlyclean-target-libstdc++-v3
1725mostlyclean-target: maybe-mostlyclean-target-libmudflap
1726mostlyclean-target: maybe-mostlyclean-target-libssp
cc11cc9b
PB
1727mostlyclean-target: maybe-mostlyclean-target-newlib
1728mostlyclean-target: maybe-mostlyclean-target-libgfortran
1729mostlyclean-target: maybe-mostlyclean-target-libobjc
1730mostlyclean-target: maybe-mostlyclean-target-libtermcap
1731mostlyclean-target: maybe-mostlyclean-target-winsup
1732mostlyclean-target: maybe-mostlyclean-target-libgloss
1733mostlyclean-target: maybe-mostlyclean-target-libiberty
1734mostlyclean-target: maybe-mostlyclean-target-gperf
1735mostlyclean-target: maybe-mostlyclean-target-examples
1736mostlyclean-target: maybe-mostlyclean-target-libffi
1737mostlyclean-target: maybe-mostlyclean-target-libjava
1738mostlyclean-target: maybe-mostlyclean-target-zlib
1739mostlyclean-target: maybe-mostlyclean-target-boehm-gc
1740mostlyclean-target: maybe-mostlyclean-target-qthreads
1741mostlyclean-target: maybe-mostlyclean-target-rda
1742mostlyclean-target: maybe-mostlyclean-target-libada
1743mostlyclean-target: maybe-mostlyclean-target-libgomp
1358ccea 1744
295f4e42 1745.PHONY: do-clean
1061f99e 1746do-clean:
f41d6665 1747 @: $(MAKE); $(unstage)
e7c84bf8
PB
1748 @r=`${PWD_COMMAND}`; export r; \
1749 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1750 $(MAKE) $(RECURSE_FLAGS_TO_PASS) clean-host \
1061f99e 1751 clean-target
1061f99e 1752
1358ccea 1753
295f4e42 1754.PHONY: clean-host
cc11cc9b
PB
1755
1756clean-host: maybe-clean-ash
1757clean-host: maybe-clean-autoconf
1758clean-host: maybe-clean-automake
1759clean-host: maybe-clean-bash
1760clean-host: maybe-clean-bfd
1761clean-host: maybe-clean-opcodes
1762clean-host: maybe-clean-binutils
1763clean-host: maybe-clean-bison
1764clean-host: maybe-clean-byacc
1765clean-host: maybe-clean-bzip2
1766clean-host: maybe-clean-dejagnu
1767clean-host: maybe-clean-diff
1768clean-host: maybe-clean-dosutils
1769clean-host: maybe-clean-etc
1770clean-host: maybe-clean-fastjar
1771clean-host: maybe-clean-fileutils
1772clean-host: maybe-clean-findutils
1773clean-host: maybe-clean-find
1774clean-host: maybe-clean-fixincludes
1775clean-host: maybe-clean-flex
1776clean-host: maybe-clean-gas
1777clean-host: maybe-clean-gcc
1778clean-host: maybe-clean-gawk
1779clean-host: maybe-clean-gettext
1780clean-host: maybe-clean-gnuserv
1781clean-host: maybe-clean-gprof
1782clean-host: maybe-clean-gzip
1783clean-host: maybe-clean-hello
1784clean-host: maybe-clean-indent
1785clean-host: maybe-clean-intl
1786clean-host: maybe-clean-tcl
1787clean-host: maybe-clean-itcl
1788clean-host: maybe-clean-ld
1789clean-host: maybe-clean-libcpp
1790clean-host: maybe-clean-libdecnumber
1791clean-host: maybe-clean-libgui
1792clean-host: maybe-clean-libiberty
1793clean-host: maybe-clean-libtool
1794clean-host: maybe-clean-m4
1795clean-host: maybe-clean-make
1796clean-host: maybe-clean-mmalloc
1797clean-host: maybe-clean-patch
1798clean-host: maybe-clean-perl
1799clean-host: maybe-clean-prms
1800clean-host: maybe-clean-rcs
1801clean-host: maybe-clean-readline
1802clean-host: maybe-clean-release
1803clean-host: maybe-clean-recode
1804clean-host: maybe-clean-sed
1805clean-host: maybe-clean-send-pr
1806clean-host: maybe-clean-shellutils
1807clean-host: maybe-clean-sid
1808clean-host: maybe-clean-sim
1809clean-host: maybe-clean-tar
1810clean-host: maybe-clean-texinfo
1811clean-host: maybe-clean-textutils
1812clean-host: maybe-clean-time
1813clean-host: maybe-clean-uudecode
1814clean-host: maybe-clean-wdiff
1815clean-host: maybe-clean-zip
1816clean-host: maybe-clean-zlib
1817clean-host: maybe-clean-gdb
1818clean-host: maybe-clean-expect
1819clean-host: maybe-clean-guile
1820clean-host: maybe-clean-tk
1821clean-host: maybe-clean-libtermcap
1822clean-host: maybe-clean-utils
1823clean-host: maybe-clean-gnattools
1358ccea 1824
295f4e42 1825.PHONY: clean-target
cc11cc9b
PB
1826
1827clean-target: maybe-clean-target-libstdc++-v3
1828clean-target: maybe-clean-target-libmudflap
1829clean-target: maybe-clean-target-libssp
cc11cc9b
PB
1830clean-target: maybe-clean-target-newlib
1831clean-target: maybe-clean-target-libgfortran
1832clean-target: maybe-clean-target-libobjc
1833clean-target: maybe-clean-target-libtermcap
1834clean-target: maybe-clean-target-winsup
1835clean-target: maybe-clean-target-libgloss
1836clean-target: maybe-clean-target-libiberty
1837clean-target: maybe-clean-target-gperf
1838clean-target: maybe-clean-target-examples
1839clean-target: maybe-clean-target-libffi
1840clean-target: maybe-clean-target-libjava
1841clean-target: maybe-clean-target-zlib
1842clean-target: maybe-clean-target-boehm-gc
1843clean-target: maybe-clean-target-qthreads
1844clean-target: maybe-clean-target-rda
1845clean-target: maybe-clean-target-libada
1846clean-target: maybe-clean-target-libgomp
1358ccea 1847
295f4e42 1848.PHONY: do-distclean
1061f99e 1849do-distclean:
f41d6665 1850 @: $(MAKE); $(unstage)
e7c84bf8
PB
1851 @r=`${PWD_COMMAND}`; export r; \
1852 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1853 $(MAKE) $(RECURSE_FLAGS_TO_PASS) distclean-host \
1061f99e 1854 distclean-target
1061f99e 1855
1358ccea 1856
295f4e42 1857.PHONY: distclean-host
cc11cc9b
PB
1858
1859distclean-host: maybe-distclean-ash
1860distclean-host: maybe-distclean-autoconf
1861distclean-host: maybe-distclean-automake
1862distclean-host: maybe-distclean-bash
1863distclean-host: maybe-distclean-bfd
1864distclean-host: maybe-distclean-opcodes
1865distclean-host: maybe-distclean-binutils
1866distclean-host: maybe-distclean-bison
1867distclean-host: maybe-distclean-byacc
1868distclean-host: maybe-distclean-bzip2
1869distclean-host: maybe-distclean-dejagnu
1870distclean-host: maybe-distclean-diff
1871distclean-host: maybe-distclean-dosutils
1872distclean-host: maybe-distclean-etc
1873distclean-host: maybe-distclean-fastjar
1874distclean-host: maybe-distclean-fileutils
1875distclean-host: maybe-distclean-findutils
1876distclean-host: maybe-distclean-find
1877distclean-host: maybe-distclean-fixincludes
1878distclean-host: maybe-distclean-flex
1879distclean-host: maybe-distclean-gas
1880distclean-host: maybe-distclean-gcc
1881distclean-host: maybe-distclean-gawk
1882distclean-host: maybe-distclean-gettext
1883distclean-host: maybe-distclean-gnuserv
1884distclean-host: maybe-distclean-gprof
1885distclean-host: maybe-distclean-gzip
1886distclean-host: maybe-distclean-hello
1887distclean-host: maybe-distclean-indent
1888distclean-host: maybe-distclean-intl
1889distclean-host: maybe-distclean-tcl
1890distclean-host: maybe-distclean-itcl
1891distclean-host: maybe-distclean-ld
1892distclean-host: maybe-distclean-libcpp
1893distclean-host: maybe-distclean-libdecnumber
1894distclean-host: maybe-distclean-libgui
1895distclean-host: maybe-distclean-libiberty
1896distclean-host: maybe-distclean-libtool
1897distclean-host: maybe-distclean-m4
1898distclean-host: maybe-distclean-make
1899distclean-host: maybe-distclean-mmalloc
1900distclean-host: maybe-distclean-patch
1901distclean-host: maybe-distclean-perl
1902distclean-host: maybe-distclean-prms
1903distclean-host: maybe-distclean-rcs
1904distclean-host: maybe-distclean-readline
1905distclean-host: maybe-distclean-release
1906distclean-host: maybe-distclean-recode
1907distclean-host: maybe-distclean-sed
1908distclean-host: maybe-distclean-send-pr
1909distclean-host: maybe-distclean-shellutils
1910distclean-host: maybe-distclean-sid
1911distclean-host: maybe-distclean-sim
1912distclean-host: maybe-distclean-tar
1913distclean-host: maybe-distclean-texinfo
1914distclean-host: maybe-distclean-textutils
1915distclean-host: maybe-distclean-time
1916distclean-host: maybe-distclean-uudecode
1917distclean-host: maybe-distclean-wdiff
1918distclean-host: maybe-distclean-zip
1919distclean-host: maybe-distclean-zlib
1920distclean-host: maybe-distclean-gdb
1921distclean-host: maybe-distclean-expect
1922distclean-host: maybe-distclean-guile
1923distclean-host: maybe-distclean-tk
1924distclean-host: maybe-distclean-libtermcap
1925distclean-host: maybe-distclean-utils
1926distclean-host: maybe-distclean-gnattools
1358ccea 1927
295f4e42 1928.PHONY: distclean-target
cc11cc9b
PB
1929
1930distclean-target: maybe-distclean-target-libstdc++-v3
1931distclean-target: maybe-distclean-target-libmudflap
1932distclean-target: maybe-distclean-target-libssp
cc11cc9b
PB
1933distclean-target: maybe-distclean-target-newlib
1934distclean-target: maybe-distclean-target-libgfortran
1935distclean-target: maybe-distclean-target-libobjc
1936distclean-target: maybe-distclean-target-libtermcap
1937distclean-target: maybe-distclean-target-winsup
1938distclean-target: maybe-distclean-target-libgloss
1939distclean-target: maybe-distclean-target-libiberty
1940distclean-target: maybe-distclean-target-gperf
1941distclean-target: maybe-distclean-target-examples
1942distclean-target: maybe-distclean-target-libffi
1943distclean-target: maybe-distclean-target-libjava
1944distclean-target: maybe-distclean-target-zlib
1945distclean-target: maybe-distclean-target-boehm-gc
1946distclean-target: maybe-distclean-target-qthreads
1947distclean-target: maybe-distclean-target-rda
1948distclean-target: maybe-distclean-target-libada
1949distclean-target: maybe-distclean-target-libgomp
1358ccea 1950
295f4e42 1951.PHONY: do-maintainer-clean
1061f99e 1952do-maintainer-clean:
f41d6665 1953 @: $(MAKE); $(unstage)
e7c84bf8
PB
1954 @r=`${PWD_COMMAND}`; export r; \
1955 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1956 $(MAKE) $(RECURSE_FLAGS_TO_PASS) maintainer-clean-host \
1061f99e 1957 maintainer-clean-target
1061f99e 1958
1358ccea 1959
295f4e42 1960.PHONY: maintainer-clean-host
cc11cc9b
PB
1961
1962maintainer-clean-host: maybe-maintainer-clean-ash
1963maintainer-clean-host: maybe-maintainer-clean-autoconf
1964maintainer-clean-host: maybe-maintainer-clean-automake
1965maintainer-clean-host: maybe-maintainer-clean-bash
1966maintainer-clean-host: maybe-maintainer-clean-bfd
1967maintainer-clean-host: maybe-maintainer-clean-opcodes
1968maintainer-clean-host: maybe-maintainer-clean-binutils
1969maintainer-clean-host: maybe-maintainer-clean-bison
1970maintainer-clean-host: maybe-maintainer-clean-byacc
1971maintainer-clean-host: maybe-maintainer-clean-bzip2
1972maintainer-clean-host: maybe-maintainer-clean-dejagnu
1973maintainer-clean-host: maybe-maintainer-clean-diff
1974maintainer-clean-host: maybe-maintainer-clean-dosutils
1975maintainer-clean-host: maybe-maintainer-clean-etc
1976maintainer-clean-host: maybe-maintainer-clean-fastjar
1977maintainer-clean-host: maybe-maintainer-clean-fileutils
1978maintainer-clean-host: maybe-maintainer-clean-findutils
1979maintainer-clean-host: maybe-maintainer-clean-find
1980maintainer-clean-host: maybe-maintainer-clean-fixincludes
1981maintainer-clean-host: maybe-maintainer-clean-flex
1982maintainer-clean-host: maybe-maintainer-clean-gas
1983maintainer-clean-host: maybe-maintainer-clean-gcc
1984maintainer-clean-host: maybe-maintainer-clean-gawk
1985maintainer-clean-host: maybe-maintainer-clean-gettext
1986maintainer-clean-host: maybe-maintainer-clean-gnuserv
1987maintainer-clean-host: maybe-maintainer-clean-gprof
1988maintainer-clean-host: maybe-maintainer-clean-gzip
1989maintainer-clean-host: maybe-maintainer-clean-hello
1990maintainer-clean-host: maybe-maintainer-clean-indent
1991maintainer-clean-host: maybe-maintainer-clean-intl
1992maintainer-clean-host: maybe-maintainer-clean-tcl
1993maintainer-clean-host: maybe-maintainer-clean-itcl
1994maintainer-clean-host: maybe-maintainer-clean-ld
1995maintainer-clean-host: maybe-maintainer-clean-libcpp
1996maintainer-clean-host: maybe-maintainer-clean-libdecnumber
1997maintainer-clean-host: maybe-maintainer-clean-libgui
1998maintainer-clean-host: maybe-maintainer-clean-libiberty
1999maintainer-clean-host: maybe-maintainer-clean-libtool
2000maintainer-clean-host: maybe-maintainer-clean-m4
2001maintainer-clean-host: maybe-maintainer-clean-make
2002maintainer-clean-host: maybe-maintainer-clean-mmalloc
2003maintainer-clean-host: maybe-maintainer-clean-patch
2004maintainer-clean-host: maybe-maintainer-clean-perl
2005maintainer-clean-host: maybe-maintainer-clean-prms
2006maintainer-clean-host: maybe-maintainer-clean-rcs
2007maintainer-clean-host: maybe-maintainer-clean-readline
2008maintainer-clean-host: maybe-maintainer-clean-release
2009maintainer-clean-host: maybe-maintainer-clean-recode
2010maintainer-clean-host: maybe-maintainer-clean-sed
2011maintainer-clean-host: maybe-maintainer-clean-send-pr
2012maintainer-clean-host: maybe-maintainer-clean-shellutils
2013maintainer-clean-host: maybe-maintainer-clean-sid
2014maintainer-clean-host: maybe-maintainer-clean-sim
2015maintainer-clean-host: maybe-maintainer-clean-tar
2016maintainer-clean-host: maybe-maintainer-clean-texinfo
2017maintainer-clean-host: maybe-maintainer-clean-textutils
2018maintainer-clean-host: maybe-maintainer-clean-time
2019maintainer-clean-host: maybe-maintainer-clean-uudecode
2020maintainer-clean-host: maybe-maintainer-clean-wdiff
2021maintainer-clean-host: maybe-maintainer-clean-zip
2022maintainer-clean-host: maybe-maintainer-clean-zlib
2023maintainer-clean-host: maybe-maintainer-clean-gdb
2024maintainer-clean-host: maybe-maintainer-clean-expect
2025maintainer-clean-host: maybe-maintainer-clean-guile
2026maintainer-clean-host: maybe-maintainer-clean-tk
2027maintainer-clean-host: maybe-maintainer-clean-libtermcap
2028maintainer-clean-host: maybe-maintainer-clean-utils
2029maintainer-clean-host: maybe-maintainer-clean-gnattools
1358ccea 2030
295f4e42 2031.PHONY: maintainer-clean-target
cc11cc9b
PB
2032
2033maintainer-clean-target: maybe-maintainer-clean-target-libstdc++-v3
2034maintainer-clean-target: maybe-maintainer-clean-target-libmudflap
2035maintainer-clean-target: maybe-maintainer-clean-target-libssp
cc11cc9b
PB
2036maintainer-clean-target: maybe-maintainer-clean-target-newlib
2037maintainer-clean-target: maybe-maintainer-clean-target-libgfortran
2038maintainer-clean-target: maybe-maintainer-clean-target-libobjc
2039maintainer-clean-target: maybe-maintainer-clean-target-libtermcap
2040maintainer-clean-target: maybe-maintainer-clean-target-winsup
2041maintainer-clean-target: maybe-maintainer-clean-target-libgloss
2042maintainer-clean-target: maybe-maintainer-clean-target-libiberty
2043maintainer-clean-target: maybe-maintainer-clean-target-gperf
2044maintainer-clean-target: maybe-maintainer-clean-target-examples
2045maintainer-clean-target: maybe-maintainer-clean-target-libffi
2046maintainer-clean-target: maybe-maintainer-clean-target-libjava
2047maintainer-clean-target: maybe-maintainer-clean-target-zlib
2048maintainer-clean-target: maybe-maintainer-clean-target-boehm-gc
2049maintainer-clean-target: maybe-maintainer-clean-target-qthreads
2050maintainer-clean-target: maybe-maintainer-clean-target-rda
2051maintainer-clean-target: maybe-maintainer-clean-target-libada
2052maintainer-clean-target: maybe-maintainer-clean-target-libgomp
1358ccea 2053
1358ccea 2054
295f4e42 2055# Here are the targets which correspond to the do-X targets.
1358ccea 2056
b5422ad7 2057.PHONY: info installcheck dvi pdf html install-info install-html
295f4e42
NN
2058.PHONY: clean distclean mostlyclean maintainer-clean realclean
2059.PHONY: local-clean local-distclean local-maintainer-clean
2060info: do-info
2061installcheck: do-installcheck
2062dvi: do-dvi
b5422ad7 2063pdf: do-pdf
f87a2b2e 2064html: do-html
1358ccea 2065
295f4e42
NN
2066# Make sure makeinfo is built before we do a `make info', if we're
2067# in fact building texinfo.
2068do-info: maybe-all-texinfo
1358ccea 2069
295f4e42 2070install-info: do-install-info dir.info
8c90b13a 2071 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
295f4e42
NN
2072 if [ -f dir.info ] ; then \
2073 $(INSTALL_DATA) dir.info $(DESTDIR)$(infodir)/dir.info ; \
2074 else true ; fi
1358ccea 2075
65d6e994
CD
2076install-html: do-install-html
2077
295f4e42
NN
2078local-clean:
2079 -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
1358ccea 2080
295f4e42
NN
2081local-distclean:
2082 -rm -f Makefile config.status config.cache mh-frag mt-frag
f41d6665 2083 -rm -f maybedep.tmp serdep.tmp
295f4e42
NN
2084 -if [ "$(TARGET_SUBDIR)" != "." ]; then \
2085 rm -rf $(TARGET_SUBDIR); \
2086 else true; fi
2087 -rm -rf $(BUILD_SUBDIR)
215c351a
PB
2088 -if [ "$(HOST_SUBDIR)" != "." ]; then \
2089 rm -rf $(HOST_SUBDIR); \
2090 else true; fi
295f4e42
NN
2091 -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile
2092 -rm -f texinfo/doc/Makefile texinfo/po/POTFILES
2093 -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
2094 -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
2095 -rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null
1358ccea 2096
295f4e42
NN
2097local-maintainer-clean:
2098 @echo "This command is intended for maintainers to use;"
2099 @echo "it deletes files that may require special tools to rebuild."
1358ccea 2100
295f4e42
NN
2101clean: do-clean local-clean
2102mostlyclean: do-mostlyclean local-clean
2103distclean: do-distclean local-clean local-distclean
05750653 2104maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean
295f4e42
NN
2105maintainer-clean: local-distclean
2106realclean: maintainer-clean
1358ccea 2107
2f3bdde7 2108# Extra dependency for clean-target, owing to the mixed nature of gcc.
295f4e42
NN
2109clean-target: clean-target-libgcc
2110clean-target-libgcc:
9bd6112c 2111 if test -f gcc/Makefile; then cd gcc && $(MAKE) $@; else :; fi
1358ccea 2112
295f4e42 2113# Check target.
1358ccea 2114
295f4e42
NN
2115.PHONY: check do-check
2116check: do-check
1358ccea 2117
295f4e42 2118# Only include modules actually being configured and built.
1061f99e
PB
2119.PHONY: check-host
2120check-host: \
295f4e42
NN
2121 maybe-check-ash \
2122 maybe-check-autoconf \
2123 maybe-check-automake \
2124 maybe-check-bash \
2125 maybe-check-bfd \
2126 maybe-check-opcodes \
2127 maybe-check-binutils \
2128 maybe-check-bison \
2129 maybe-check-byacc \
2130 maybe-check-bzip2 \
2131 maybe-check-dejagnu \
2132 maybe-check-diff \
2133 maybe-check-dosutils \
2134 maybe-check-etc \
2135 maybe-check-fastjar \
2136 maybe-check-fileutils \
2137 maybe-check-findutils \
2138 maybe-check-find \
53c7ffe7 2139 maybe-check-fixincludes \
295f4e42
NN
2140 maybe-check-flex \
2141 maybe-check-gas \
d32ab992 2142 maybe-check-gcc \
295f4e42
NN
2143 maybe-check-gawk \
2144 maybe-check-gettext \
2145 maybe-check-gnuserv \
2146 maybe-check-gprof \
2147 maybe-check-gzip \
2148 maybe-check-hello \
2149 maybe-check-indent \
2150 maybe-check-intl \
2151 maybe-check-tcl \
2152 maybe-check-itcl \
2153 maybe-check-ld \
4f4e53dd 2154 maybe-check-libcpp \
a4b6c45a 2155 maybe-check-libdecnumber \
295f4e42
NN
2156 maybe-check-libgui \
2157 maybe-check-libiberty \
2158 maybe-check-libtool \
2159 maybe-check-m4 \
2160 maybe-check-make \
2161 maybe-check-mmalloc \
2162 maybe-check-patch \
2163 maybe-check-perl \
2164 maybe-check-prms \
2165 maybe-check-rcs \
2166 maybe-check-readline \
2167 maybe-check-release \
2168 maybe-check-recode \
2169 maybe-check-sed \
2170 maybe-check-send-pr \
2171 maybe-check-shellutils \
2172 maybe-check-sid \
2173 maybe-check-sim \
2174 maybe-check-tar \
2175 maybe-check-texinfo \
2176 maybe-check-textutils \
2177 maybe-check-time \
2178 maybe-check-uudecode \
2179 maybe-check-wdiff \
2180 maybe-check-zip \
2181 maybe-check-zlib \
2182 maybe-check-gdb \
2183 maybe-check-expect \
2184 maybe-check-guile \
2185 maybe-check-tk \
295f4e42
NN
2186 maybe-check-libtermcap \
2187 maybe-check-utils \
1061f99e
PB
2188 maybe-check-gnattools
2189
2190.PHONY: check-target
2191check-target: \
295f4e42 2192 maybe-check-target-libstdc++-v3 \
6de9cd9a 2193 maybe-check-target-libmudflap \
77008252 2194 maybe-check-target-libssp \
295f4e42 2195 maybe-check-target-newlib \
6de9cd9a 2196 maybe-check-target-libgfortran \
295f4e42
NN
2197 maybe-check-target-libobjc \
2198 maybe-check-target-libtermcap \
2199 maybe-check-target-winsup \
2200 maybe-check-target-libgloss \
2201 maybe-check-target-libiberty \
2202 maybe-check-target-gperf \
2203 maybe-check-target-examples \
2204 maybe-check-target-libffi \
2205 maybe-check-target-libjava \
2206 maybe-check-target-zlib \
2207 maybe-check-target-boehm-gc \
2208 maybe-check-target-qthreads \
2209 maybe-check-target-rda \
953ff289
DN
2210 maybe-check-target-libada \
2211 maybe-check-target-libgomp
1061f99e
PB
2212
2213do-check:
f41d6665 2214 @: $(MAKE); $(unstage)
e7c84bf8
PB
2215 @r=`${PWD_COMMAND}`; export r; \
2216 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2217 $(MAKE) $(RECURSE_FLAGS_TO_PASS) check-host check-target
1358ccea 2218
295f4e42 2219# Automated reporting of test results.
1358ccea 2220
295f4e42
NN
2221warning.log: build.log
2222 $(srcdir)/contrib/warn_summary build.log > $@
d9cdb878 2223
295f4e42
NN
2224mail-report.log:
2225 if test x'$(BOOT_CFLAGS)' != x''; then \
2226 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
2227 fi; \
2228 $(srcdir)/contrib/test_summary -t >$@
2229 chmod +x $@
2230 echo If you really want to send e-mail, run ./$@ now
d9cdb878 2231
295f4e42
NN
2232mail-report-with-warnings.log: warning.log
2233 if test x'$(BOOT_CFLAGS)' != x''; then \
2234 BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
2235 fi; \
2236 $(srcdir)/contrib/test_summary -t -i warning.log >$@
2237 chmod +x $@
2238 echo If you really want to send e-mail, run ./$@ now
d9cdb878 2239
295f4e42 2240# Installation targets.
1358ccea 2241
295f4e42 2242.PHONY: install uninstall
1061f99e 2243install:
f41d6665 2244 @: $(MAKE); $(unstage)
e7c84bf8
PB
2245 @r=`${PWD_COMMAND}`; export r; \
2246 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2247 $(MAKE) $(RECURSE_FLAGS_TO_PASS) installdirs install-host install-target
1358ccea 2248
295f4e42
NN
2249.PHONY: install-host-nogcc
2250install-host-nogcc: \
2251 maybe-install-ash \
2252 maybe-install-autoconf \
2253 maybe-install-automake \
2254 maybe-install-bash \
2255 maybe-install-bfd \
2256 maybe-install-opcodes \
2257 maybe-install-binutils \
2258 maybe-install-bison \
2259 maybe-install-byacc \
2260 maybe-install-bzip2 \
2261 maybe-install-dejagnu \
2262 maybe-install-diff \
2263 maybe-install-dosutils \
2264 maybe-install-etc \
2265 maybe-install-fastjar \
2266 maybe-install-fileutils \
2267 maybe-install-findutils \
2268 maybe-install-find \
53c7ffe7 2269 maybe-install-fixincludes \
295f4e42
NN
2270 maybe-install-flex \
2271 maybe-install-gas \
2272 maybe-install-gawk \
2273 maybe-install-gettext \
2274 maybe-install-gnuserv \
2275 maybe-install-gprof \
2276 maybe-install-gzip \
2277 maybe-install-hello \
2278 maybe-install-indent \
2279 maybe-install-intl \
2280 maybe-install-tcl \
2281 maybe-install-itcl \
2282 maybe-install-ld \
4f4e53dd 2283 maybe-install-libcpp \
a4b6c45a 2284 maybe-install-libdecnumber \
295f4e42
NN
2285 maybe-install-libgui \
2286 maybe-install-libiberty \
2287 maybe-install-libtool \
2288 maybe-install-m4 \
2289 maybe-install-make \
2290 maybe-install-mmalloc \
2291 maybe-install-patch \
2292 maybe-install-perl \
2293 maybe-install-prms \
2294 maybe-install-rcs \
2295 maybe-install-readline \
2296 maybe-install-release \
2297 maybe-install-recode \
2298 maybe-install-sed \
2299 maybe-install-send-pr \
2300 maybe-install-shellutils \
2301 maybe-install-sid \
2302 maybe-install-sim \
2303 maybe-install-tar \
2304 maybe-install-texinfo \
2305 maybe-install-textutils \
2306 maybe-install-time \
2307 maybe-install-uudecode \
2308 maybe-install-wdiff \
2309 maybe-install-zip \
2310 maybe-install-zlib \
2311 maybe-install-gdb \
2312 maybe-install-expect \
2313 maybe-install-guile \
2314 maybe-install-tk \
295f4e42 2315 maybe-install-libtermcap \
5395b47b
NN
2316 maybe-install-utils \
2317 maybe-install-gnattools
295f4e42
NN
2318
2319.PHONY: install-host
d32ab992 2320install-host: \
295f4e42
NN
2321 maybe-install-ash \
2322 maybe-install-autoconf \
2323 maybe-install-automake \
2324 maybe-install-bash \
2325 maybe-install-bfd \
2326 maybe-install-opcodes \
2327 maybe-install-binutils \
2328 maybe-install-bison \
2329 maybe-install-byacc \
2330 maybe-install-bzip2 \
2331 maybe-install-dejagnu \
2332 maybe-install-diff \
2333 maybe-install-dosutils \
2334 maybe-install-etc \
2335 maybe-install-fastjar \
2336 maybe-install-fileutils \
2337 maybe-install-findutils \
2338 maybe-install-find \
53c7ffe7 2339 maybe-install-fixincludes \
295f4e42
NN
2340 maybe-install-flex \
2341 maybe-install-gas \
d32ab992 2342 maybe-install-gcc \
295f4e42
NN
2343 maybe-install-gawk \
2344 maybe-install-gettext \
2345 maybe-install-gnuserv \
2346 maybe-install-gprof \
2347 maybe-install-gzip \
2348 maybe-install-hello \
2349 maybe-install-indent \
2350 maybe-install-intl \
2351 maybe-install-tcl \
2352 maybe-install-itcl \
2353 maybe-install-ld \
4f4e53dd 2354 maybe-install-libcpp \
a4b6c45a 2355 maybe-install-libdecnumber \
295f4e42
NN
2356 maybe-install-libgui \
2357 maybe-install-libiberty \
2358 maybe-install-libtool \
2359 maybe-install-m4 \
2360 maybe-install-make \
2361 maybe-install-mmalloc \
2362 maybe-install-patch \
2363 maybe-install-perl \
2364 maybe-install-prms \
2365 maybe-install-rcs \
2366 maybe-install-readline \
2367 maybe-install-release \
2368 maybe-install-recode \
2369 maybe-install-sed \
2370 maybe-install-send-pr \
2371 maybe-install-shellutils \
2372 maybe-install-sid \
2373 maybe-install-sim \
2374 maybe-install-tar \
2375 maybe-install-texinfo \
2376 maybe-install-textutils \
2377 maybe-install-time \
2378 maybe-install-uudecode \
2379 maybe-install-wdiff \
2380 maybe-install-zip \
2381 maybe-install-zlib \
2382 maybe-install-gdb \
2383 maybe-install-expect \
2384 maybe-install-guile \
2385 maybe-install-tk \
295f4e42 2386 maybe-install-libtermcap \
5395b47b
NN
2387 maybe-install-utils \
2388 maybe-install-gnattools
295f4e42
NN
2389
2390.PHONY: install-target
2391install-target: \
2392 maybe-install-target-libstdc++-v3 \
6de9cd9a 2393 maybe-install-target-libmudflap \
77008252 2394 maybe-install-target-libssp \
295f4e42 2395 maybe-install-target-newlib \
6de9cd9a 2396 maybe-install-target-libgfortran \
295f4e42
NN
2397 maybe-install-target-libobjc \
2398 maybe-install-target-libtermcap \
2399 maybe-install-target-winsup \
2400 maybe-install-target-libgloss \
2401 maybe-install-target-libiberty \
2402 maybe-install-target-gperf \
2403 maybe-install-target-examples \
2404 maybe-install-target-libffi \
2405 maybe-install-target-libjava \
2406 maybe-install-target-zlib \
2407 maybe-install-target-boehm-gc \
2408 maybe-install-target-qthreads \
2409 maybe-install-target-rda \
953ff289
DN
2410 maybe-install-target-libada \
2411 maybe-install-target-libgomp
1358ccea 2412
295f4e42
NN
2413uninstall:
2414 @echo "the uninstall target is not supported in this tree"
1358ccea 2415
295f4e42
NN
2416.PHONY: install.all
2417install.all: install-no-fixedincludes
2418 @if [ -f ./gcc/Makefile ] ; then \
2419 r=`${PWD_COMMAND}` ; export r ; \
f41d6665 2420 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a52a0a7f 2421 $(HOST_EXPORTS) \
295f4e42
NN
2422 (cd ./gcc && \
2423 $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \
2424 else \
2425 true ; \
2426 fi
1358ccea 2427
295f4e42
NN
2428# install-no-fixedincludes is used because Cygnus can not distribute
2429# the fixed header files.
2430.PHONY: install-no-fixedincludes
2431install-no-fixedincludes: installdirs install-host-nogcc \
2432 install-target gcc-no-fixedincludes
1358ccea 2433
295f4e42 2434### other supporting targets
1358ccea 2435
295f4e42
NN
2436MAKEDIRS= \
2437 $(DESTDIR)$(prefix) \
2438 $(DESTDIR)$(exec_prefix)
2439.PHONY: installdirs
2440installdirs: mkinstalldirs
2441 $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
1358ccea 2442
295f4e42
NN
2443dir.info: do-install-info
2444 if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \
2445 $(srcdir)/texinfo/gen-info-dir $(DESTDIR)$(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \
2446 mv -f dir.info.new dir.info ; \
2447 else true ; \
2448 fi
1358ccea 2449
295f4e42
NN
2450dist:
2451 @echo "Building a full distribution of this tree isn't done"
05750653 2452 @echo "via 'make dist'. Check out the etc/ subdirectory"
1358ccea 2453
295f4e42 2454etags tags: TAGS
1358ccea 2455
295f4e42
NN
2456# Right now this just builds TAGS in each subdirectory. emacs19 has the
2457# ability to use several tags files at once, so there is probably no need
2458# to combine them into one big TAGS file (like CVS 1.3 does). We could
2459# (if we felt like it) have this Makefile write a piece of elisp which
2460# the user could load to tell emacs19 where all the TAGS files we just
2461# built are.
2462TAGS: do-TAGS
1358ccea 2463
25b42232
PB
2464# ------------------------------------
2465# Macros for configure and all targets
2466# ------------------------------------
2467
2468
2469
2470
2471
295f4e42
NN
2472# --------------------------------------
2473# Modules which run on the build machine
2474# --------------------------------------
1358ccea 2475
25b42232 2476
295f4e42
NN
2477.PHONY: configure-build-libiberty maybe-configure-build-libiberty
2478maybe-configure-build-libiberty:
3ff3adad
PB
2479@if gcc-bootstrap
2480configure-build-libiberty: stage_current
2481@endif gcc-bootstrap
60975492
PB
2482@if build-libiberty
2483maybe-configure-build-libiberty: configure-build-libiberty
cc11cc9b 2484configure-build-libiberty:
f41d6665 2485 @: $(MAKE); $(unstage)
cc11cc9b 2486 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 2487 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
2488 test ! -f $(BUILD_SUBDIR)/libiberty/Makefile || exit 0; \
2489 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/libiberty ; \
4fc4dd12 2490 $(BUILD_EXPORTS) \
295f4e42
NN
2491 echo Configuring in $(BUILD_SUBDIR)/libiberty; \
2492 cd "$(BUILD_SUBDIR)/libiberty" || exit 1; \
2493 case $(srcdir) in \
215c351a
PB
2494 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2495 *) topdir=`echo $(BUILD_SUBDIR)/libiberty/ | \
2496 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 2497 esac; \
215c351a
PB
2498 srcdiroption="--srcdir=$${topdir}/libiberty"; \
2499 libsrcdir="$$s/libiberty"; \
295f4e42
NN
2500 rm -f no-such-file || : ; \
2501 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 2502 $(BUILD_CONFIGARGS) $${srcdiroption} \
1358ccea 2503 || exit 1
60975492 2504@endif build-libiberty
1358ccea 2505
25b42232
PB
2506
2507
ce406537
PB
2508
2509
295f4e42
NN
2510.PHONY: all-build-libiberty maybe-all-build-libiberty
2511maybe-all-build-libiberty:
3ff3adad
PB
2512@if gcc-bootstrap
2513all-build-libiberty: stage_current
2514@endif gcc-bootstrap
60975492 2515@if build-libiberty
7c27e184 2516TARGET-build-libiberty=all
60975492 2517maybe-all-build-libiberty: all-build-libiberty
295f4e42 2518all-build-libiberty: configure-build-libiberty
f41d6665 2519 @: $(MAKE); $(unstage)
295f4e42
NN
2520 @r=`${PWD_COMMAND}`; export r; \
2521 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 2522 $(BUILD_EXPORTS) \
7c27e184 2523 (cd $(BUILD_SUBDIR)/libiberty && \
25b42232 2524 $(MAKE) $(TARGET-build-libiberty))
60975492 2525@endif build-libiberty
295f4e42 2526
25b42232
PB
2527
2528
ce406537
PB
2529
2530
23f6b2f9
PB
2531.PHONY: configure-build-bison maybe-configure-build-bison
2532maybe-configure-build-bison:
3ff3adad
PB
2533@if gcc-bootstrap
2534configure-build-bison: stage_current
2535@endif gcc-bootstrap
23f6b2f9
PB
2536@if build-bison
2537maybe-configure-build-bison: configure-build-bison
cc11cc9b 2538configure-build-bison:
f41d6665 2539 @: $(MAKE); $(unstage)
cc11cc9b 2540 @r=`${PWD_COMMAND}`; export r; \
23f6b2f9 2541 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
2542 test ! -f $(BUILD_SUBDIR)/bison/Makefile || exit 0; \
2543 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/bison ; \
23f6b2f9
PB
2544 $(BUILD_EXPORTS) \
2545 echo Configuring in $(BUILD_SUBDIR)/bison; \
2546 cd "$(BUILD_SUBDIR)/bison" || exit 1; \
2547 case $(srcdir) in \
215c351a
PB
2548 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2549 *) topdir=`echo $(BUILD_SUBDIR)/bison/ | \
2550 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23f6b2f9 2551 esac; \
215c351a
PB
2552 srcdiroption="--srcdir=$${topdir}/bison"; \
2553 libsrcdir="$$s/bison"; \
23f6b2f9
PB
2554 rm -f no-such-file || : ; \
2555 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 2556 $(BUILD_CONFIGARGS) $${srcdiroption} \
23f6b2f9
PB
2557 || exit 1
2558@endif build-bison
2559
25b42232
PB
2560
2561
ce406537
PB
2562
2563
23f6b2f9
PB
2564.PHONY: all-build-bison maybe-all-build-bison
2565maybe-all-build-bison:
3ff3adad
PB
2566@if gcc-bootstrap
2567all-build-bison: stage_current
2568@endif gcc-bootstrap
23f6b2f9 2569@if build-bison
7c27e184 2570TARGET-build-bison=all
23f6b2f9
PB
2571maybe-all-build-bison: all-build-bison
2572all-build-bison: configure-build-bison
f41d6665 2573 @: $(MAKE); $(unstage)
23f6b2f9
PB
2574 @r=`${PWD_COMMAND}`; export r; \
2575 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2576 $(BUILD_EXPORTS) \
7c27e184 2577 (cd $(BUILD_SUBDIR)/bison && \
25b42232 2578 $(MAKE) $(TARGET-build-bison))
23f6b2f9
PB
2579@endif build-bison
2580
25b42232
PB
2581
2582
ce406537
PB
2583
2584
23f6b2f9
PB
2585.PHONY: configure-build-byacc maybe-configure-build-byacc
2586maybe-configure-build-byacc:
3ff3adad
PB
2587@if gcc-bootstrap
2588configure-build-byacc: stage_current
2589@endif gcc-bootstrap
23f6b2f9
PB
2590@if build-byacc
2591maybe-configure-build-byacc: configure-build-byacc
cc11cc9b 2592configure-build-byacc:
f41d6665 2593 @: $(MAKE); $(unstage)
cc11cc9b 2594 @r=`${PWD_COMMAND}`; export r; \
23f6b2f9 2595 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
2596 test ! -f $(BUILD_SUBDIR)/byacc/Makefile || exit 0; \
2597 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/byacc ; \
23f6b2f9
PB
2598 $(BUILD_EXPORTS) \
2599 echo Configuring in $(BUILD_SUBDIR)/byacc; \
2600 cd "$(BUILD_SUBDIR)/byacc" || exit 1; \
2601 case $(srcdir) in \
215c351a
PB
2602 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2603 *) topdir=`echo $(BUILD_SUBDIR)/byacc/ | \
2604 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23f6b2f9 2605 esac; \
215c351a
PB
2606 srcdiroption="--srcdir=$${topdir}/byacc"; \
2607 libsrcdir="$$s/byacc"; \
23f6b2f9
PB
2608 rm -f no-such-file || : ; \
2609 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 2610 $(BUILD_CONFIGARGS) $${srcdiroption} \
23f6b2f9
PB
2611 || exit 1
2612@endif build-byacc
2613
25b42232
PB
2614
2615
ce406537
PB
2616
2617
23f6b2f9
PB
2618.PHONY: all-build-byacc maybe-all-build-byacc
2619maybe-all-build-byacc:
3ff3adad
PB
2620@if gcc-bootstrap
2621all-build-byacc: stage_current
2622@endif gcc-bootstrap
23f6b2f9 2623@if build-byacc
7c27e184 2624TARGET-build-byacc=all
23f6b2f9
PB
2625maybe-all-build-byacc: all-build-byacc
2626all-build-byacc: configure-build-byacc
f41d6665 2627 @: $(MAKE); $(unstage)
23f6b2f9
PB
2628 @r=`${PWD_COMMAND}`; export r; \
2629 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2630 $(BUILD_EXPORTS) \
7c27e184 2631 (cd $(BUILD_SUBDIR)/byacc && \
25b42232 2632 $(MAKE) $(TARGET-build-byacc))
23f6b2f9
PB
2633@endif build-byacc
2634
25b42232
PB
2635
2636
ce406537
PB
2637
2638
23f6b2f9
PB
2639.PHONY: configure-build-flex maybe-configure-build-flex
2640maybe-configure-build-flex:
3ff3adad
PB
2641@if gcc-bootstrap
2642configure-build-flex: stage_current
2643@endif gcc-bootstrap
23f6b2f9
PB
2644@if build-flex
2645maybe-configure-build-flex: configure-build-flex
cc11cc9b 2646configure-build-flex:
f41d6665 2647 @: $(MAKE); $(unstage)
cc11cc9b 2648 @r=`${PWD_COMMAND}`; export r; \
23f6b2f9 2649 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
2650 test ! -f $(BUILD_SUBDIR)/flex/Makefile || exit 0; \
2651 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/flex ; \
23f6b2f9
PB
2652 $(BUILD_EXPORTS) \
2653 echo Configuring in $(BUILD_SUBDIR)/flex; \
2654 cd "$(BUILD_SUBDIR)/flex" || exit 1; \
2655 case $(srcdir) in \
215c351a
PB
2656 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2657 *) topdir=`echo $(BUILD_SUBDIR)/flex/ | \
2658 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23f6b2f9 2659 esac; \
215c351a
PB
2660 srcdiroption="--srcdir=$${topdir}/flex"; \
2661 libsrcdir="$$s/flex"; \
23f6b2f9
PB
2662 rm -f no-such-file || : ; \
2663 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 2664 $(BUILD_CONFIGARGS) $${srcdiroption} \
23f6b2f9
PB
2665 || exit 1
2666@endif build-flex
2667
25b42232
PB
2668
2669
ce406537
PB
2670
2671
23f6b2f9
PB
2672.PHONY: all-build-flex maybe-all-build-flex
2673maybe-all-build-flex:
3ff3adad
PB
2674@if gcc-bootstrap
2675all-build-flex: stage_current
2676@endif gcc-bootstrap
23f6b2f9 2677@if build-flex
7c27e184 2678TARGET-build-flex=all
23f6b2f9
PB
2679maybe-all-build-flex: all-build-flex
2680all-build-flex: configure-build-flex
f41d6665 2681 @: $(MAKE); $(unstage)
23f6b2f9
PB
2682 @r=`${PWD_COMMAND}`; export r; \
2683 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2684 $(BUILD_EXPORTS) \
7c27e184 2685 (cd $(BUILD_SUBDIR)/flex && \
25b42232 2686 $(MAKE) $(TARGET-build-flex))
23f6b2f9
PB
2687@endif build-flex
2688
25b42232
PB
2689
2690
ce406537
PB
2691
2692
23f6b2f9
PB
2693.PHONY: configure-build-m4 maybe-configure-build-m4
2694maybe-configure-build-m4:
3ff3adad
PB
2695@if gcc-bootstrap
2696configure-build-m4: stage_current
2697@endif gcc-bootstrap
23f6b2f9
PB
2698@if build-m4
2699maybe-configure-build-m4: configure-build-m4
cc11cc9b 2700configure-build-m4:
f41d6665 2701 @: $(MAKE); $(unstage)
cc11cc9b 2702 @r=`${PWD_COMMAND}`; export r; \
23f6b2f9 2703 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
2704 test ! -f $(BUILD_SUBDIR)/m4/Makefile || exit 0; \
2705 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/m4 ; \
23f6b2f9
PB
2706 $(BUILD_EXPORTS) \
2707 echo Configuring in $(BUILD_SUBDIR)/m4; \
2708 cd "$(BUILD_SUBDIR)/m4" || exit 1; \
2709 case $(srcdir) in \
215c351a
PB
2710 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2711 *) topdir=`echo $(BUILD_SUBDIR)/m4/ | \
2712 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23f6b2f9 2713 esac; \
215c351a
PB
2714 srcdiroption="--srcdir=$${topdir}/m4"; \
2715 libsrcdir="$$s/m4"; \
23f6b2f9
PB
2716 rm -f no-such-file || : ; \
2717 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 2718 $(BUILD_CONFIGARGS) $${srcdiroption} \
23f6b2f9
PB
2719 || exit 1
2720@endif build-m4
2721
25b42232
PB
2722
2723
ce406537
PB
2724
2725
23f6b2f9
PB
2726.PHONY: all-build-m4 maybe-all-build-m4
2727maybe-all-build-m4:
3ff3adad
PB
2728@if gcc-bootstrap
2729all-build-m4: stage_current
2730@endif gcc-bootstrap
23f6b2f9 2731@if build-m4
7c27e184 2732TARGET-build-m4=all
23f6b2f9
PB
2733maybe-all-build-m4: all-build-m4
2734all-build-m4: configure-build-m4
f41d6665 2735 @: $(MAKE); $(unstage)
23f6b2f9
PB
2736 @r=`${PWD_COMMAND}`; export r; \
2737 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2738 $(BUILD_EXPORTS) \
7c27e184 2739 (cd $(BUILD_SUBDIR)/m4 && \
25b42232 2740 $(MAKE) $(TARGET-build-m4))
23f6b2f9
PB
2741@endif build-m4
2742
25b42232
PB
2743
2744
ce406537
PB
2745
2746
23f6b2f9
PB
2747.PHONY: configure-build-texinfo maybe-configure-build-texinfo
2748maybe-configure-build-texinfo:
3ff3adad
PB
2749@if gcc-bootstrap
2750configure-build-texinfo: stage_current
2751@endif gcc-bootstrap
23f6b2f9
PB
2752@if build-texinfo
2753maybe-configure-build-texinfo: configure-build-texinfo
cc11cc9b 2754configure-build-texinfo:
f41d6665 2755 @: $(MAKE); $(unstage)
cc11cc9b 2756 @r=`${PWD_COMMAND}`; export r; \
23f6b2f9 2757 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
2758 test ! -f $(BUILD_SUBDIR)/texinfo/Makefile || exit 0; \
2759 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/texinfo ; \
23f6b2f9
PB
2760 $(BUILD_EXPORTS) \
2761 echo Configuring in $(BUILD_SUBDIR)/texinfo; \
2762 cd "$(BUILD_SUBDIR)/texinfo" || exit 1; \
2763 case $(srcdir) in \
215c351a
PB
2764 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2765 *) topdir=`echo $(BUILD_SUBDIR)/texinfo/ | \
2766 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
23f6b2f9 2767 esac; \
215c351a
PB
2768 srcdiroption="--srcdir=$${topdir}/texinfo"; \
2769 libsrcdir="$$s/texinfo"; \
23f6b2f9
PB
2770 rm -f no-such-file || : ; \
2771 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 2772 $(BUILD_CONFIGARGS) $${srcdiroption} \
23f6b2f9
PB
2773 || exit 1
2774@endif build-texinfo
2775
25b42232
PB
2776
2777
ce406537
PB
2778
2779
23f6b2f9
PB
2780.PHONY: all-build-texinfo maybe-all-build-texinfo
2781maybe-all-build-texinfo:
3ff3adad
PB
2782@if gcc-bootstrap
2783all-build-texinfo: stage_current
2784@endif gcc-bootstrap
23f6b2f9 2785@if build-texinfo
7c27e184 2786TARGET-build-texinfo=all
23f6b2f9
PB
2787maybe-all-build-texinfo: all-build-texinfo
2788all-build-texinfo: configure-build-texinfo
f41d6665 2789 @: $(MAKE); $(unstage)
23f6b2f9
PB
2790 @r=`${PWD_COMMAND}`; export r; \
2791 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2792 $(BUILD_EXPORTS) \
7c27e184 2793 (cd $(BUILD_SUBDIR)/texinfo && \
25b42232 2794 $(MAKE) $(TARGET-build-texinfo))
23f6b2f9
PB
2795@endif build-texinfo
2796
25b42232
PB
2797
2798
ce406537
PB
2799
2800
71b5d516
PB
2801.PHONY: configure-build-fixincludes maybe-configure-build-fixincludes
2802maybe-configure-build-fixincludes:
3ff3adad
PB
2803@if gcc-bootstrap
2804configure-build-fixincludes: stage_current
2805@endif gcc-bootstrap
71b5d516
PB
2806@if build-fixincludes
2807maybe-configure-build-fixincludes: configure-build-fixincludes
cc11cc9b 2808configure-build-fixincludes:
f41d6665 2809 @: $(MAKE); $(unstage)
cc11cc9b 2810 @r=`${PWD_COMMAND}`; export r; \
71b5d516 2811 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
2812 test ! -f $(BUILD_SUBDIR)/fixincludes/Makefile || exit 0; \
2813 $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/fixincludes ; \
71b5d516
PB
2814 $(BUILD_EXPORTS) \
2815 echo Configuring in $(BUILD_SUBDIR)/fixincludes; \
2816 cd "$(BUILD_SUBDIR)/fixincludes" || exit 1; \
2817 case $(srcdir) in \
215c351a
PB
2818 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2819 *) topdir=`echo $(BUILD_SUBDIR)/fixincludes/ | \
2820 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
71b5d516 2821 esac; \
215c351a
PB
2822 srcdiroption="--srcdir=$${topdir}/fixincludes"; \
2823 libsrcdir="$$s/fixincludes"; \
71b5d516
PB
2824 rm -f no-such-file || : ; \
2825 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 2826 $(BUILD_CONFIGARGS) $${srcdiroption} \
71b5d516
PB
2827 || exit 1
2828@endif build-fixincludes
2829
25b42232
PB
2830
2831
ce406537
PB
2832
2833
71b5d516
PB
2834.PHONY: all-build-fixincludes maybe-all-build-fixincludes
2835maybe-all-build-fixincludes:
3ff3adad
PB
2836@if gcc-bootstrap
2837all-build-fixincludes: stage_current
2838@endif gcc-bootstrap
71b5d516
PB
2839@if build-fixincludes
2840TARGET-build-fixincludes=all
2841maybe-all-build-fixincludes: all-build-fixincludes
2842all-build-fixincludes: configure-build-fixincludes
f41d6665 2843 @: $(MAKE); $(unstage)
71b5d516
PB
2844 @r=`${PWD_COMMAND}`; export r; \
2845 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2846 $(BUILD_EXPORTS) \
2847 (cd $(BUILD_SUBDIR)/fixincludes && \
25b42232 2848 $(MAKE) $(TARGET-build-fixincludes))
71b5d516
PB
2849@endif build-fixincludes
2850
1358ccea 2851
25b42232 2852
ce406537
PB
2853
2854
295f4e42
NN
2855# --------------------------------------
2856# Modules which run on the host machine
2857# --------------------------------------
1358ccea 2858
25b42232 2859
295f4e42
NN
2860.PHONY: configure-ash maybe-configure-ash
2861maybe-configure-ash:
3ff3adad
PB
2862@if gcc-bootstrap
2863configure-ash: stage_current
2864@endif gcc-bootstrap
60975492
PB
2865@if ash
2866maybe-configure-ash: configure-ash
cc11cc9b 2867configure-ash:
f41d6665 2868 @: $(MAKE); $(unstage)
cc11cc9b 2869 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 2870 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
2871 test ! -f $(HOST_SUBDIR)/ash/Makefile || exit 0; \
2872 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ash ; \
4fc4dd12 2873 $(HOST_EXPORTS) \
25b42232
PB
2874 echo Configuring in $(HOST_SUBDIR)/ash; \
2875 cd "$(HOST_SUBDIR)/ash" || exit 1; \
295f4e42 2876 case $(srcdir) in \
215c351a
PB
2877 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
2878 *) topdir=`echo $(HOST_SUBDIR)/ash/ | \
2879 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 2880 esac; \
215c351a
PB
2881 srcdiroption="--srcdir=$${topdir}/ash"; \
2882 libsrcdir="$$s/ash"; \
295f4e42 2883 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 2884 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 2885 || exit 1
60975492 2886@endif ash
1358ccea 2887
25b42232
PB
2888
2889
ce406537
PB
2890
2891
295f4e42
NN
2892.PHONY: all-ash maybe-all-ash
2893maybe-all-ash:
3ff3adad
PB
2894@if gcc-bootstrap
2895all-ash: stage_current
2896@endif gcc-bootstrap
60975492 2897@if ash
7e0b5752 2898TARGET-ash=all
60975492 2899maybe-all-ash: all-ash
295f4e42 2900all-ash: configure-ash
f41d6665 2901 @: $(MAKE); $(unstage)
295f4e42
NN
2902 @r=`${PWD_COMMAND}`; export r; \
2903 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 2904 $(HOST_EXPORTS) \
215c351a
PB
2905 (cd $(HOST_SUBDIR)/ash && \
2906 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-ash))
60975492 2907@endif ash
1358ccea 2908
25b42232 2909
ce406537
PB
2910
2911
295f4e42
NN
2912.PHONY: check-ash maybe-check-ash
2913maybe-check-ash:
60975492
PB
2914@if ash
2915maybe-check-ash: check-ash
1358ccea 2916
295f4e42 2917check-ash:
f41d6665 2918 @: $(MAKE); $(unstage)
295f4e42 2919 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 2920 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 2921 $(HOST_EXPORTS) \
215c351a
PB
2922 (cd $(HOST_SUBDIR)/ash && \
2923 $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 2924
60975492 2925@endif ash
1358ccea 2926
295f4e42
NN
2927.PHONY: install-ash maybe-install-ash
2928maybe-install-ash:
60975492
PB
2929@if ash
2930maybe-install-ash: install-ash
1358ccea 2931
295f4e42 2932install-ash: installdirs
f41d6665 2933 @: $(MAKE); $(unstage)
295f4e42 2934 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 2935 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 2936 $(HOST_EXPORTS) \
215c351a 2937 (cd $(HOST_SUBDIR)/ash && \
ace9ac7b 2938 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 2939
60975492 2940@endif ash
1358ccea 2941
b5422ad7 2942# Other targets (info, dvi, pdf, etc.)
1358ccea 2943
295f4e42
NN
2944.PHONY: maybe-info-ash info-ash
2945maybe-info-ash:
60975492
PB
2946@if ash
2947maybe-info-ash: info-ash
295f4e42
NN
2948
2949info-ash: \
05750653 2950 configure-ash
f41d6665 2951 @: $(MAKE); $(unstage)
295f4e42 2952 @[ -f ./ash/Makefile ] || exit 0; \
8c90b13a
L
2953 r=`${PWD_COMMAND}`; export r; \
2954 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 2955 $(HOST_EXPORTS) \
d32ab992 2956 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
2957 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2958 done; \
295f4e42 2959 echo "Doing info in ash" ; \
215c351a 2960 (cd $(HOST_SUBDIR)/ash && \
1358ccea
NN
2961 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2962 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2963 "RANLIB=$${RANLIB}" \
2964 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 2965 info) \
1358ccea
NN
2966 || exit 1
2967
60975492 2968@endif ash
1358ccea 2969
295f4e42
NN
2970.PHONY: maybe-dvi-ash dvi-ash
2971maybe-dvi-ash:
60975492
PB
2972@if ash
2973maybe-dvi-ash: dvi-ash
1358ccea 2974
295f4e42 2975dvi-ash: \
05750653 2976 configure-ash
f41d6665 2977 @: $(MAKE); $(unstage)
295f4e42 2978 @[ -f ./ash/Makefile ] || exit 0; \
8c90b13a
L
2979 r=`${PWD_COMMAND}`; export r; \
2980 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 2981 $(HOST_EXPORTS) \
d32ab992 2982 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
2983 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2984 done; \
295f4e42 2985 echo "Doing dvi in ash" ; \
215c351a 2986 (cd $(HOST_SUBDIR)/ash && \
1358ccea
NN
2987 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2988 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2989 "RANLIB=$${RANLIB}" \
2990 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 2991 dvi) \
1358ccea
NN
2992 || exit 1
2993
60975492 2994@endif ash
1358ccea 2995
b5422ad7
BM
2996.PHONY: maybe-pdf-ash pdf-ash
2997maybe-pdf-ash:
2998@if ash
2999maybe-pdf-ash: pdf-ash
3000
3001pdf-ash: \
3002 configure-ash
3003 @: $(MAKE); $(unstage)
3004 @[ -f ./ash/Makefile ] || exit 0; \
3005 r=`${PWD_COMMAND}`; export r; \
3006 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3007 $(HOST_EXPORTS) \
3008 for flag in $(EXTRA_HOST_FLAGS) ; do \
3009 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3010 done; \
3011 echo "Doing pdf in ash" ; \
3012 (cd $(HOST_SUBDIR)/ash && \
3013 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3014 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3015 "RANLIB=$${RANLIB}" \
3016 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3017 pdf) \
3018 || exit 1
3019
3020@endif ash
3021
f87a2b2e
MS
3022.PHONY: maybe-html-ash html-ash
3023maybe-html-ash:
3024@if ash
3025maybe-html-ash: html-ash
3026
3027html-ash: \
05750653 3028 configure-ash
f41d6665 3029 @: $(MAKE); $(unstage)
f87a2b2e
MS
3030 @[ -f ./ash/Makefile ] || exit 0; \
3031 r=`${PWD_COMMAND}`; export r; \
3032 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
3033 $(HOST_EXPORTS) \
3034 for flag in $(EXTRA_HOST_FLAGS) ; do \
3035 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3036 done; \
3037 echo "Doing html in ash" ; \
215c351a 3038 (cd $(HOST_SUBDIR)/ash && \
f87a2b2e
MS
3039 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3040 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3041 "RANLIB=$${RANLIB}" \
3042 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3043 html) \
3044 || exit 1
3045
3046@endif ash
3047
295f4e42
NN
3048.PHONY: maybe-TAGS-ash TAGS-ash
3049maybe-TAGS-ash:
60975492
PB
3050@if ash
3051maybe-TAGS-ash: TAGS-ash
1358ccea 3052
295f4e42 3053TAGS-ash: \
05750653 3054 configure-ash
f41d6665 3055 @: $(MAKE); $(unstage)
295f4e42 3056 @[ -f ./ash/Makefile ] || exit 0; \
8c90b13a
L
3057 r=`${PWD_COMMAND}`; export r; \
3058 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3059 $(HOST_EXPORTS) \
d32ab992 3060 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3061 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3062 done; \
295f4e42 3063 echo "Doing TAGS in ash" ; \
215c351a 3064 (cd $(HOST_SUBDIR)/ash && \
1358ccea
NN
3065 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3066 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3067 "RANLIB=$${RANLIB}" \
3068 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3069 TAGS) \
1358ccea
NN
3070 || exit 1
3071
60975492 3072@endif ash
1358ccea 3073
295f4e42
NN
3074.PHONY: maybe-install-info-ash install-info-ash
3075maybe-install-info-ash:
60975492
PB
3076@if ash
3077maybe-install-info-ash: install-info-ash
1358ccea 3078
295f4e42
NN
3079install-info-ash: \
3080 configure-ash \
05750653 3081 info-ash
f41d6665 3082 @: $(MAKE); $(unstage)
295f4e42 3083 @[ -f ./ash/Makefile ] || exit 0; \
8c90b13a
L
3084 r=`${PWD_COMMAND}`; export r; \
3085 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3086 $(HOST_EXPORTS) \
d32ab992 3087 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3088 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3089 done; \
295f4e42 3090 echo "Doing install-info in ash" ; \
215c351a 3091 (cd $(HOST_SUBDIR)/ash && \
1358ccea
NN
3092 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3093 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3094 "RANLIB=$${RANLIB}" \
3095 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3096 install-info) \
1358ccea
NN
3097 || exit 1
3098
60975492 3099@endif ash
1358ccea 3100
65d6e994
CD
3101.PHONY: maybe-install-html-ash install-html-ash
3102maybe-install-html-ash:
3103@if ash
3104maybe-install-html-ash: install-html-ash
3105
3106install-html-ash: \
3107 configure-ash \
3108 html-ash
3109 @: $(MAKE); $(unstage)
3110 @[ -f ./ash/Makefile ] || exit 0; \
3111 r=`${PWD_COMMAND}`; export r; \
3112 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3113 $(HOST_EXPORTS) \
3114 for flag in $(EXTRA_HOST_FLAGS) ; do \
3115 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3116 done; \
3117 echo "Doing install-html in ash" ; \
3118 (cd $(HOST_SUBDIR)/ash && \
3119 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3120 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3121 "RANLIB=$${RANLIB}" \
3122 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3123 install-html) \
3124 || exit 1
3125
3126@endif ash
3127
295f4e42
NN
3128.PHONY: maybe-installcheck-ash installcheck-ash
3129maybe-installcheck-ash:
60975492
PB
3130@if ash
3131maybe-installcheck-ash: installcheck-ash
1358ccea 3132
295f4e42 3133installcheck-ash: \
05750653 3134 configure-ash
f41d6665 3135 @: $(MAKE); $(unstage)
295f4e42 3136 @[ -f ./ash/Makefile ] || exit 0; \
8c90b13a
L
3137 r=`${PWD_COMMAND}`; export r; \
3138 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3139 $(HOST_EXPORTS) \
d32ab992 3140 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3141 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3142 done; \
295f4e42 3143 echo "Doing installcheck in ash" ; \
215c351a 3144 (cd $(HOST_SUBDIR)/ash && \
1358ccea
NN
3145 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3146 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3147 "RANLIB=$${RANLIB}" \
3148 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3149 installcheck) \
1358ccea
NN
3150 || exit 1
3151
60975492 3152@endif ash
1358ccea 3153
295f4e42
NN
3154.PHONY: maybe-mostlyclean-ash mostlyclean-ash
3155maybe-mostlyclean-ash:
60975492
PB
3156@if ash
3157maybe-mostlyclean-ash: mostlyclean-ash
1358ccea 3158
05750653 3159mostlyclean-ash:
f41d6665 3160 @: $(MAKE); $(unstage)
295f4e42 3161 @[ -f ./ash/Makefile ] || exit 0; \
8c90b13a
L
3162 r=`${PWD_COMMAND}`; export r; \
3163 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3164 $(HOST_EXPORTS) \
d32ab992 3165 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3166 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3167 done; \
295f4e42 3168 echo "Doing mostlyclean in ash" ; \
215c351a 3169 (cd $(HOST_SUBDIR)/ash && \
1358ccea
NN
3170 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3171 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3172 "RANLIB=$${RANLIB}" \
3173 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3174 mostlyclean) \
1358ccea
NN
3175 || exit 1
3176
60975492 3177@endif ash
1358ccea 3178
295f4e42
NN
3179.PHONY: maybe-clean-ash clean-ash
3180maybe-clean-ash:
60975492
PB
3181@if ash
3182maybe-clean-ash: clean-ash
1358ccea 3183
05750653 3184clean-ash:
f41d6665 3185 @: $(MAKE); $(unstage)
295f4e42 3186 @[ -f ./ash/Makefile ] || exit 0; \
8c90b13a
L
3187 r=`${PWD_COMMAND}`; export r; \
3188 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3189 $(HOST_EXPORTS) \
d32ab992 3190 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3191 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3192 done; \
295f4e42 3193 echo "Doing clean in ash" ; \
215c351a 3194 (cd $(HOST_SUBDIR)/ash && \
1358ccea
NN
3195 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3196 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3197 "RANLIB=$${RANLIB}" \
3198 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3199 clean) \
1358ccea
NN
3200 || exit 1
3201
60975492 3202@endif ash
1358ccea 3203
295f4e42
NN
3204.PHONY: maybe-distclean-ash distclean-ash
3205maybe-distclean-ash:
60975492
PB
3206@if ash
3207maybe-distclean-ash: distclean-ash
1358ccea 3208
05750653 3209distclean-ash:
f41d6665 3210 @: $(MAKE); $(unstage)
295f4e42 3211 @[ -f ./ash/Makefile ] || exit 0; \
8c90b13a
L
3212 r=`${PWD_COMMAND}`; export r; \
3213 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3214 $(HOST_EXPORTS) \
d32ab992 3215 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3216 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3217 done; \
295f4e42 3218 echo "Doing distclean in ash" ; \
215c351a 3219 (cd $(HOST_SUBDIR)/ash && \
1358ccea
NN
3220 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3221 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3222 "RANLIB=$${RANLIB}" \
3223 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3224 distclean) \
1358ccea
NN
3225 || exit 1
3226
60975492 3227@endif ash
1358ccea 3228
295f4e42
NN
3229.PHONY: maybe-maintainer-clean-ash maintainer-clean-ash
3230maybe-maintainer-clean-ash:
60975492
PB
3231@if ash
3232maybe-maintainer-clean-ash: maintainer-clean-ash
1358ccea 3233
05750653 3234maintainer-clean-ash:
f41d6665 3235 @: $(MAKE); $(unstage)
295f4e42 3236 @[ -f ./ash/Makefile ] || exit 0; \
8c90b13a
L
3237 r=`${PWD_COMMAND}`; export r; \
3238 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3239 $(HOST_EXPORTS) \
d32ab992 3240 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3241 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3242 done; \
295f4e42 3243 echo "Doing maintainer-clean in ash" ; \
215c351a 3244 (cd $(HOST_SUBDIR)/ash && \
1358ccea
NN
3245 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3246 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3247 "RANLIB=$${RANLIB}" \
3248 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3249 maintainer-clean) \
1358ccea
NN
3250 || exit 1
3251
60975492 3252@endif ash
1358ccea 3253
1358ccea 3254
25b42232 3255
295f4e42
NN
3256.PHONY: configure-autoconf maybe-configure-autoconf
3257maybe-configure-autoconf:
3ff3adad
PB
3258@if gcc-bootstrap
3259configure-autoconf: stage_current
3260@endif gcc-bootstrap
60975492
PB
3261@if autoconf
3262maybe-configure-autoconf: configure-autoconf
cc11cc9b 3263configure-autoconf:
f41d6665 3264 @: $(MAKE); $(unstage)
cc11cc9b 3265 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 3266 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
3267 test ! -f $(HOST_SUBDIR)/autoconf/Makefile || exit 0; \
3268 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/autoconf ; \
4fc4dd12 3269 $(HOST_EXPORTS) \
25b42232
PB
3270 echo Configuring in $(HOST_SUBDIR)/autoconf; \
3271 cd "$(HOST_SUBDIR)/autoconf" || exit 1; \
295f4e42 3272 case $(srcdir) in \
215c351a
PB
3273 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3274 *) topdir=`echo $(HOST_SUBDIR)/autoconf/ | \
3275 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 3276 esac; \
215c351a
PB
3277 srcdiroption="--srcdir=$${topdir}/autoconf"; \
3278 libsrcdir="$$s/autoconf"; \
295f4e42 3279 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 3280 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 3281 || exit 1
60975492 3282@endif autoconf
1358ccea 3283
25b42232
PB
3284
3285
ce406537
PB
3286
3287
295f4e42
NN
3288.PHONY: all-autoconf maybe-all-autoconf
3289maybe-all-autoconf:
3ff3adad
PB
3290@if gcc-bootstrap
3291all-autoconf: stage_current
3292@endif gcc-bootstrap
60975492 3293@if autoconf
7e0b5752 3294TARGET-autoconf=all
60975492 3295maybe-all-autoconf: all-autoconf
295f4e42 3296all-autoconf: configure-autoconf
f41d6665 3297 @: $(MAKE); $(unstage)
295f4e42
NN
3298 @r=`${PWD_COMMAND}`; export r; \
3299 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3300 $(HOST_EXPORTS) \
215c351a
PB
3301 (cd $(HOST_SUBDIR)/autoconf && \
3302 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-autoconf))
60975492 3303@endif autoconf
1358ccea 3304
25b42232 3305
ce406537
PB
3306
3307
295f4e42
NN
3308.PHONY: check-autoconf maybe-check-autoconf
3309maybe-check-autoconf:
60975492
PB
3310@if autoconf
3311maybe-check-autoconf: check-autoconf
1358ccea 3312
295f4e42 3313check-autoconf:
f41d6665 3314 @: $(MAKE); $(unstage)
295f4e42 3315 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 3316 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3317 $(HOST_EXPORTS) \
215c351a
PB
3318 (cd $(HOST_SUBDIR)/autoconf && \
3319 $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 3320
60975492 3321@endif autoconf
1358ccea 3322
295f4e42
NN
3323.PHONY: install-autoconf maybe-install-autoconf
3324maybe-install-autoconf:
60975492
PB
3325@if autoconf
3326maybe-install-autoconf: install-autoconf
1358ccea 3327
295f4e42 3328install-autoconf: installdirs
f41d6665 3329 @: $(MAKE); $(unstage)
295f4e42 3330 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 3331 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3332 $(HOST_EXPORTS) \
215c351a 3333 (cd $(HOST_SUBDIR)/autoconf && \
ace9ac7b 3334 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 3335
60975492 3336@endif autoconf
1358ccea 3337
b5422ad7 3338# Other targets (info, dvi, pdf, etc.)
1358ccea 3339
295f4e42
NN
3340.PHONY: maybe-info-autoconf info-autoconf
3341maybe-info-autoconf:
60975492
PB
3342@if autoconf
3343maybe-info-autoconf: info-autoconf
295f4e42
NN
3344
3345info-autoconf: \
05750653 3346 configure-autoconf
f41d6665 3347 @: $(MAKE); $(unstage)
295f4e42 3348 @[ -f ./autoconf/Makefile ] || exit 0; \
8c90b13a
L
3349 r=`${PWD_COMMAND}`; export r; \
3350 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3351 $(HOST_EXPORTS) \
d32ab992 3352 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3353 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3354 done; \
295f4e42 3355 echo "Doing info in autoconf" ; \
215c351a 3356 (cd $(HOST_SUBDIR)/autoconf && \
1358ccea
NN
3357 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3358 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3359 "RANLIB=$${RANLIB}" \
3360 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3361 info) \
1358ccea
NN
3362 || exit 1
3363
60975492 3364@endif autoconf
1358ccea 3365
295f4e42
NN
3366.PHONY: maybe-dvi-autoconf dvi-autoconf
3367maybe-dvi-autoconf:
60975492
PB
3368@if autoconf
3369maybe-dvi-autoconf: dvi-autoconf
1358ccea 3370
295f4e42 3371dvi-autoconf: \
05750653 3372 configure-autoconf
f41d6665 3373 @: $(MAKE); $(unstage)
295f4e42 3374 @[ -f ./autoconf/Makefile ] || exit 0; \
8c90b13a
L
3375 r=`${PWD_COMMAND}`; export r; \
3376 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3377 $(HOST_EXPORTS) \
d32ab992 3378 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3379 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3380 done; \
295f4e42 3381 echo "Doing dvi in autoconf" ; \
215c351a 3382 (cd $(HOST_SUBDIR)/autoconf && \
1358ccea
NN
3383 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3384 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3385 "RANLIB=$${RANLIB}" \
3386 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3387 dvi) \
1358ccea
NN
3388 || exit 1
3389
60975492 3390@endif autoconf
1358ccea 3391
b5422ad7
BM
3392.PHONY: maybe-pdf-autoconf pdf-autoconf
3393maybe-pdf-autoconf:
3394@if autoconf
3395maybe-pdf-autoconf: pdf-autoconf
3396
3397pdf-autoconf: \
3398 configure-autoconf
3399 @: $(MAKE); $(unstage)
3400 @[ -f ./autoconf/Makefile ] || exit 0; \
3401 r=`${PWD_COMMAND}`; export r; \
3402 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3403 $(HOST_EXPORTS) \
3404 for flag in $(EXTRA_HOST_FLAGS) ; do \
3405 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3406 done; \
3407 echo "Doing pdf in autoconf" ; \
3408 (cd $(HOST_SUBDIR)/autoconf && \
3409 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3410 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3411 "RANLIB=$${RANLIB}" \
3412 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3413 pdf) \
3414 || exit 1
3415
3416@endif autoconf
3417
f87a2b2e
MS
3418.PHONY: maybe-html-autoconf html-autoconf
3419maybe-html-autoconf:
3420@if autoconf
3421maybe-html-autoconf: html-autoconf
3422
3423html-autoconf: \
05750653 3424 configure-autoconf
f41d6665 3425 @: $(MAKE); $(unstage)
f87a2b2e
MS
3426 @[ -f ./autoconf/Makefile ] || exit 0; \
3427 r=`${PWD_COMMAND}`; export r; \
3428 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
3429 $(HOST_EXPORTS) \
3430 for flag in $(EXTRA_HOST_FLAGS) ; do \
3431 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3432 done; \
3433 echo "Doing html in autoconf" ; \
215c351a 3434 (cd $(HOST_SUBDIR)/autoconf && \
f87a2b2e
MS
3435 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3436 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3437 "RANLIB=$${RANLIB}" \
3438 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3439 html) \
3440 || exit 1
3441
3442@endif autoconf
3443
295f4e42
NN
3444.PHONY: maybe-TAGS-autoconf TAGS-autoconf
3445maybe-TAGS-autoconf:
60975492
PB
3446@if autoconf
3447maybe-TAGS-autoconf: TAGS-autoconf
1358ccea 3448
295f4e42 3449TAGS-autoconf: \
05750653 3450 configure-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 TAGS 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 TAGS) \
1358ccea
NN
3466 || exit 1
3467
60975492 3468@endif autoconf
1358ccea 3469
295f4e42
NN
3470.PHONY: maybe-install-info-autoconf install-info-autoconf
3471maybe-install-info-autoconf:
60975492
PB
3472@if autoconf
3473maybe-install-info-autoconf: install-info-autoconf
1358ccea 3474
295f4e42
NN
3475install-info-autoconf: \
3476 configure-autoconf \
05750653 3477 info-autoconf
f41d6665 3478 @: $(MAKE); $(unstage)
295f4e42 3479 @[ -f ./autoconf/Makefile ] || exit 0; \
8c90b13a
L
3480 r=`${PWD_COMMAND}`; export r; \
3481 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3482 $(HOST_EXPORTS) \
d32ab992 3483 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3484 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3485 done; \
295f4e42 3486 echo "Doing install-info in autoconf" ; \
215c351a 3487 (cd $(HOST_SUBDIR)/autoconf && \
1358ccea
NN
3488 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3489 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3490 "RANLIB=$${RANLIB}" \
3491 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3492 install-info) \
1358ccea
NN
3493 || exit 1
3494
60975492 3495@endif autoconf
1358ccea 3496
65d6e994
CD
3497.PHONY: maybe-install-html-autoconf install-html-autoconf
3498maybe-install-html-autoconf:
3499@if autoconf
3500maybe-install-html-autoconf: install-html-autoconf
3501
3502install-html-autoconf: \
3503 configure-autoconf \
3504 html-autoconf
3505 @: $(MAKE); $(unstage)
3506 @[ -f ./autoconf/Makefile ] || exit 0; \
3507 r=`${PWD_COMMAND}`; export r; \
3508 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3509 $(HOST_EXPORTS) \
3510 for flag in $(EXTRA_HOST_FLAGS) ; do \
3511 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3512 done; \
3513 echo "Doing install-html in autoconf" ; \
3514 (cd $(HOST_SUBDIR)/autoconf && \
3515 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3516 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3517 "RANLIB=$${RANLIB}" \
3518 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3519 install-html) \
3520 || exit 1
3521
3522@endif autoconf
3523
295f4e42
NN
3524.PHONY: maybe-installcheck-autoconf installcheck-autoconf
3525maybe-installcheck-autoconf:
60975492
PB
3526@if autoconf
3527maybe-installcheck-autoconf: installcheck-autoconf
1358ccea 3528
295f4e42 3529installcheck-autoconf: \
05750653 3530 configure-autoconf
f41d6665 3531 @: $(MAKE); $(unstage)
295f4e42 3532 @[ -f ./autoconf/Makefile ] || exit 0; \
8c90b13a
L
3533 r=`${PWD_COMMAND}`; export r; \
3534 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3535 $(HOST_EXPORTS) \
d32ab992 3536 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3537 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3538 done; \
295f4e42 3539 echo "Doing installcheck in autoconf" ; \
215c351a 3540 (cd $(HOST_SUBDIR)/autoconf && \
1358ccea
NN
3541 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3542 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3543 "RANLIB=$${RANLIB}" \
3544 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3545 installcheck) \
1358ccea
NN
3546 || exit 1
3547
60975492 3548@endif autoconf
1358ccea 3549
295f4e42
NN
3550.PHONY: maybe-mostlyclean-autoconf mostlyclean-autoconf
3551maybe-mostlyclean-autoconf:
60975492
PB
3552@if autoconf
3553maybe-mostlyclean-autoconf: mostlyclean-autoconf
1358ccea 3554
05750653 3555mostlyclean-autoconf:
f41d6665 3556 @: $(MAKE); $(unstage)
295f4e42 3557 @[ -f ./autoconf/Makefile ] || exit 0; \
8c90b13a
L
3558 r=`${PWD_COMMAND}`; export r; \
3559 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3560 $(HOST_EXPORTS) \
d32ab992 3561 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3562 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3563 done; \
295f4e42 3564 echo "Doing mostlyclean in autoconf" ; \
215c351a 3565 (cd $(HOST_SUBDIR)/autoconf && \
1358ccea
NN
3566 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3567 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3568 "RANLIB=$${RANLIB}" \
3569 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3570 mostlyclean) \
1358ccea
NN
3571 || exit 1
3572
60975492 3573@endif autoconf
1358ccea 3574
295f4e42
NN
3575.PHONY: maybe-clean-autoconf clean-autoconf
3576maybe-clean-autoconf:
60975492
PB
3577@if autoconf
3578maybe-clean-autoconf: clean-autoconf
1358ccea 3579
05750653 3580clean-autoconf:
f41d6665 3581 @: $(MAKE); $(unstage)
295f4e42 3582 @[ -f ./autoconf/Makefile ] || exit 0; \
8c90b13a
L
3583 r=`${PWD_COMMAND}`; export r; \
3584 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3585 $(HOST_EXPORTS) \
d32ab992 3586 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3587 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3588 done; \
295f4e42 3589 echo "Doing clean in autoconf" ; \
215c351a 3590 (cd $(HOST_SUBDIR)/autoconf && \
1358ccea
NN
3591 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3592 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3593 "RANLIB=$${RANLIB}" \
3594 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3595 clean) \
1358ccea
NN
3596 || exit 1
3597
60975492 3598@endif autoconf
1358ccea 3599
295f4e42
NN
3600.PHONY: maybe-distclean-autoconf distclean-autoconf
3601maybe-distclean-autoconf:
60975492
PB
3602@if autoconf
3603maybe-distclean-autoconf: distclean-autoconf
1358ccea 3604
05750653 3605distclean-autoconf:
f41d6665 3606 @: $(MAKE); $(unstage)
295f4e42 3607 @[ -f ./autoconf/Makefile ] || exit 0; \
8c90b13a
L
3608 r=`${PWD_COMMAND}`; export r; \
3609 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3610 $(HOST_EXPORTS) \
d32ab992 3611 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3612 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3613 done; \
295f4e42 3614 echo "Doing distclean in autoconf" ; \
215c351a 3615 (cd $(HOST_SUBDIR)/autoconf && \
1358ccea
NN
3616 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3617 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3618 "RANLIB=$${RANLIB}" \
3619 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3620 distclean) \
1358ccea
NN
3621 || exit 1
3622
60975492 3623@endif autoconf
1358ccea 3624
295f4e42
NN
3625.PHONY: maybe-maintainer-clean-autoconf maintainer-clean-autoconf
3626maybe-maintainer-clean-autoconf:
60975492
PB
3627@if autoconf
3628maybe-maintainer-clean-autoconf: maintainer-clean-autoconf
1358ccea 3629
05750653 3630maintainer-clean-autoconf:
f41d6665 3631 @: $(MAKE); $(unstage)
295f4e42 3632 @[ -f ./autoconf/Makefile ] || exit 0; \
8c90b13a
L
3633 r=`${PWD_COMMAND}`; export r; \
3634 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3635 $(HOST_EXPORTS) \
d32ab992 3636 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3637 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3638 done; \
295f4e42 3639 echo "Doing maintainer-clean in autoconf" ; \
215c351a 3640 (cd $(HOST_SUBDIR)/autoconf && \
1358ccea
NN
3641 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3642 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3643 "RANLIB=$${RANLIB}" \
3644 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3645 maintainer-clean) \
1358ccea
NN
3646 || exit 1
3647
60975492 3648@endif autoconf
1358ccea 3649
1358ccea 3650
25b42232 3651
295f4e42
NN
3652.PHONY: configure-automake maybe-configure-automake
3653maybe-configure-automake:
3ff3adad
PB
3654@if gcc-bootstrap
3655configure-automake: stage_current
3656@endif gcc-bootstrap
60975492
PB
3657@if automake
3658maybe-configure-automake: configure-automake
cc11cc9b 3659configure-automake:
f41d6665 3660 @: $(MAKE); $(unstage)
cc11cc9b 3661 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 3662 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
3663 test ! -f $(HOST_SUBDIR)/automake/Makefile || exit 0; \
3664 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/automake ; \
4fc4dd12 3665 $(HOST_EXPORTS) \
25b42232
PB
3666 echo Configuring in $(HOST_SUBDIR)/automake; \
3667 cd "$(HOST_SUBDIR)/automake" || exit 1; \
295f4e42 3668 case $(srcdir) in \
215c351a
PB
3669 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
3670 *) topdir=`echo $(HOST_SUBDIR)/automake/ | \
3671 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 3672 esac; \
215c351a
PB
3673 srcdiroption="--srcdir=$${topdir}/automake"; \
3674 libsrcdir="$$s/automake"; \
295f4e42 3675 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 3676 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 3677 || exit 1
60975492 3678@endif automake
1358ccea 3679
25b42232
PB
3680
3681
ce406537
PB
3682
3683
295f4e42
NN
3684.PHONY: all-automake maybe-all-automake
3685maybe-all-automake:
3ff3adad
PB
3686@if gcc-bootstrap
3687all-automake: stage_current
3688@endif gcc-bootstrap
60975492 3689@if automake
7e0b5752 3690TARGET-automake=all
60975492 3691maybe-all-automake: all-automake
295f4e42 3692all-automake: configure-automake
f41d6665 3693 @: $(MAKE); $(unstage)
295f4e42
NN
3694 @r=`${PWD_COMMAND}`; export r; \
3695 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3696 $(HOST_EXPORTS) \
215c351a
PB
3697 (cd $(HOST_SUBDIR)/automake && \
3698 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-automake))
60975492 3699@endif automake
1358ccea 3700
25b42232 3701
ce406537
PB
3702
3703
295f4e42
NN
3704.PHONY: check-automake maybe-check-automake
3705maybe-check-automake:
60975492
PB
3706@if automake
3707maybe-check-automake: check-automake
1358ccea 3708
295f4e42 3709check-automake:
f41d6665 3710 @: $(MAKE); $(unstage)
295f4e42 3711 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 3712 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3713 $(HOST_EXPORTS) \
215c351a
PB
3714 (cd $(HOST_SUBDIR)/automake && \
3715 $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 3716
60975492 3717@endif automake
1358ccea 3718
295f4e42
NN
3719.PHONY: install-automake maybe-install-automake
3720maybe-install-automake:
60975492
PB
3721@if automake
3722maybe-install-automake: install-automake
1358ccea 3723
295f4e42 3724install-automake: installdirs
f41d6665 3725 @: $(MAKE); $(unstage)
295f4e42 3726 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 3727 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3728 $(HOST_EXPORTS) \
215c351a 3729 (cd $(HOST_SUBDIR)/automake && \
ace9ac7b 3730 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 3731
60975492 3732@endif automake
1358ccea 3733
b5422ad7 3734# Other targets (info, dvi, pdf, etc.)
1358ccea 3735
295f4e42
NN
3736.PHONY: maybe-info-automake info-automake
3737maybe-info-automake:
60975492
PB
3738@if automake
3739maybe-info-automake: info-automake
295f4e42
NN
3740
3741info-automake: \
05750653 3742 configure-automake
f41d6665 3743 @: $(MAKE); $(unstage)
295f4e42 3744 @[ -f ./automake/Makefile ] || exit 0; \
8c90b13a
L
3745 r=`${PWD_COMMAND}`; export r; \
3746 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3747 $(HOST_EXPORTS) \
d32ab992 3748 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3749 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3750 done; \
295f4e42 3751 echo "Doing info in automake" ; \
215c351a 3752 (cd $(HOST_SUBDIR)/automake && \
1358ccea
NN
3753 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3754 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3755 "RANLIB=$${RANLIB}" \
3756 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3757 info) \
1358ccea
NN
3758 || exit 1
3759
60975492 3760@endif automake
1358ccea 3761
295f4e42
NN
3762.PHONY: maybe-dvi-automake dvi-automake
3763maybe-dvi-automake:
60975492
PB
3764@if automake
3765maybe-dvi-automake: dvi-automake
1358ccea 3766
295f4e42 3767dvi-automake: \
05750653 3768 configure-automake
f41d6665 3769 @: $(MAKE); $(unstage)
295f4e42 3770 @[ -f ./automake/Makefile ] || exit 0; \
8c90b13a
L
3771 r=`${PWD_COMMAND}`; export r; \
3772 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3773 $(HOST_EXPORTS) \
d32ab992 3774 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3775 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3776 done; \
295f4e42 3777 echo "Doing dvi in automake" ; \
215c351a 3778 (cd $(HOST_SUBDIR)/automake && \
1358ccea
NN
3779 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3780 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3781 "RANLIB=$${RANLIB}" \
3782 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3783 dvi) \
1358ccea
NN
3784 || exit 1
3785
60975492 3786@endif automake
1358ccea 3787
b5422ad7
BM
3788.PHONY: maybe-pdf-automake pdf-automake
3789maybe-pdf-automake:
3790@if automake
3791maybe-pdf-automake: pdf-automake
3792
3793pdf-automake: \
3794 configure-automake
3795 @: $(MAKE); $(unstage)
3796 @[ -f ./automake/Makefile ] || exit 0; \
3797 r=`${PWD_COMMAND}`; export r; \
3798 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3799 $(HOST_EXPORTS) \
3800 for flag in $(EXTRA_HOST_FLAGS) ; do \
3801 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3802 done; \
3803 echo "Doing pdf in automake" ; \
3804 (cd $(HOST_SUBDIR)/automake && \
3805 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3806 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3807 "RANLIB=$${RANLIB}" \
3808 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3809 pdf) \
3810 || exit 1
3811
3812@endif automake
3813
f87a2b2e
MS
3814.PHONY: maybe-html-automake html-automake
3815maybe-html-automake:
3816@if automake
3817maybe-html-automake: html-automake
3818
3819html-automake: \
05750653 3820 configure-automake
f41d6665 3821 @: $(MAKE); $(unstage)
f87a2b2e
MS
3822 @[ -f ./automake/Makefile ] || exit 0; \
3823 r=`${PWD_COMMAND}`; export r; \
3824 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
3825 $(HOST_EXPORTS) \
3826 for flag in $(EXTRA_HOST_FLAGS) ; do \
3827 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3828 done; \
3829 echo "Doing html in automake" ; \
215c351a 3830 (cd $(HOST_SUBDIR)/automake && \
f87a2b2e
MS
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}" \
3835 html) \
3836 || exit 1
3837
3838@endif automake
3839
295f4e42
NN
3840.PHONY: maybe-TAGS-automake TAGS-automake
3841maybe-TAGS-automake:
60975492
PB
3842@if automake
3843maybe-TAGS-automake: TAGS-automake
1358ccea 3844
295f4e42 3845TAGS-automake: \
05750653 3846 configure-automake
f41d6665 3847 @: $(MAKE); $(unstage)
295f4e42 3848 @[ -f ./automake/Makefile ] || exit 0; \
8c90b13a
L
3849 r=`${PWD_COMMAND}`; export r; \
3850 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3851 $(HOST_EXPORTS) \
d32ab992 3852 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3853 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3854 done; \
295f4e42 3855 echo "Doing TAGS in automake" ; \
215c351a 3856 (cd $(HOST_SUBDIR)/automake && \
1358ccea
NN
3857 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3858 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3859 "RANLIB=$${RANLIB}" \
3860 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3861 TAGS) \
1358ccea
NN
3862 || exit 1
3863
60975492 3864@endif automake
1358ccea 3865
295f4e42
NN
3866.PHONY: maybe-install-info-automake install-info-automake
3867maybe-install-info-automake:
60975492
PB
3868@if automake
3869maybe-install-info-automake: install-info-automake
1358ccea 3870
295f4e42
NN
3871install-info-automake: \
3872 configure-automake \
05750653 3873 info-automake
f41d6665 3874 @: $(MAKE); $(unstage)
295f4e42 3875 @[ -f ./automake/Makefile ] || exit 0; \
8c90b13a
L
3876 r=`${PWD_COMMAND}`; export r; \
3877 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3878 $(HOST_EXPORTS) \
d32ab992 3879 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3880 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3881 done; \
295f4e42 3882 echo "Doing install-info in automake" ; \
215c351a 3883 (cd $(HOST_SUBDIR)/automake && \
1358ccea
NN
3884 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3885 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3886 "RANLIB=$${RANLIB}" \
3887 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3888 install-info) \
1358ccea
NN
3889 || exit 1
3890
60975492 3891@endif automake
1358ccea 3892
65d6e994
CD
3893.PHONY: maybe-install-html-automake install-html-automake
3894maybe-install-html-automake:
3895@if automake
3896maybe-install-html-automake: install-html-automake
3897
3898install-html-automake: \
3899 configure-automake \
3900 html-automake
3901 @: $(MAKE); $(unstage)
3902 @[ -f ./automake/Makefile ] || exit 0; \
3903 r=`${PWD_COMMAND}`; export r; \
3904 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3905 $(HOST_EXPORTS) \
3906 for flag in $(EXTRA_HOST_FLAGS) ; do \
3907 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3908 done; \
3909 echo "Doing install-html in automake" ; \
3910 (cd $(HOST_SUBDIR)/automake && \
3911 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3912 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3913 "RANLIB=$${RANLIB}" \
3914 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3915 install-html) \
3916 || exit 1
3917
3918@endif automake
3919
295f4e42
NN
3920.PHONY: maybe-installcheck-automake installcheck-automake
3921maybe-installcheck-automake:
60975492
PB
3922@if automake
3923maybe-installcheck-automake: installcheck-automake
1358ccea 3924
295f4e42 3925installcheck-automake: \
05750653 3926 configure-automake
f41d6665 3927 @: $(MAKE); $(unstage)
295f4e42 3928 @[ -f ./automake/Makefile ] || exit 0; \
8c90b13a
L
3929 r=`${PWD_COMMAND}`; export r; \
3930 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3931 $(HOST_EXPORTS) \
d32ab992 3932 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3933 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3934 done; \
295f4e42 3935 echo "Doing installcheck in automake" ; \
215c351a 3936 (cd $(HOST_SUBDIR)/automake && \
1358ccea
NN
3937 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3938 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3939 "RANLIB=$${RANLIB}" \
3940 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3941 installcheck) \
1358ccea
NN
3942 || exit 1
3943
60975492 3944@endif automake
1358ccea 3945
295f4e42
NN
3946.PHONY: maybe-mostlyclean-automake mostlyclean-automake
3947maybe-mostlyclean-automake:
60975492
PB
3948@if automake
3949maybe-mostlyclean-automake: mostlyclean-automake
1358ccea 3950
05750653 3951mostlyclean-automake:
f41d6665 3952 @: $(MAKE); $(unstage)
295f4e42 3953 @[ -f ./automake/Makefile ] || exit 0; \
8c90b13a
L
3954 r=`${PWD_COMMAND}`; export r; \
3955 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3956 $(HOST_EXPORTS) \
d32ab992 3957 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3958 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3959 done; \
295f4e42 3960 echo "Doing mostlyclean in automake" ; \
215c351a 3961 (cd $(HOST_SUBDIR)/automake && \
1358ccea
NN
3962 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3963 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3964 "RANLIB=$${RANLIB}" \
3965 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3966 mostlyclean) \
1358ccea
NN
3967 || exit 1
3968
60975492 3969@endif automake
1358ccea 3970
295f4e42
NN
3971.PHONY: maybe-clean-automake clean-automake
3972maybe-clean-automake:
60975492
PB
3973@if automake
3974maybe-clean-automake: clean-automake
1358ccea 3975
05750653 3976clean-automake:
f41d6665 3977 @: $(MAKE); $(unstage)
295f4e42 3978 @[ -f ./automake/Makefile ] || exit 0; \
8c90b13a
L
3979 r=`${PWD_COMMAND}`; export r; \
3980 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 3981 $(HOST_EXPORTS) \
d32ab992 3982 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
3983 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3984 done; \
295f4e42 3985 echo "Doing clean in automake" ; \
215c351a 3986 (cd $(HOST_SUBDIR)/automake && \
1358ccea
NN
3987 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3988 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3989 "RANLIB=$${RANLIB}" \
3990 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 3991 clean) \
1358ccea
NN
3992 || exit 1
3993
60975492 3994@endif automake
1358ccea 3995
295f4e42
NN
3996.PHONY: maybe-distclean-automake distclean-automake
3997maybe-distclean-automake:
60975492
PB
3998@if automake
3999maybe-distclean-automake: distclean-automake
1358ccea 4000
05750653 4001distclean-automake:
f41d6665 4002 @: $(MAKE); $(unstage)
295f4e42 4003 @[ -f ./automake/Makefile ] || exit 0; \
8c90b13a
L
4004 r=`${PWD_COMMAND}`; export r; \
4005 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4006 $(HOST_EXPORTS) \
d32ab992 4007 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4008 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4009 done; \
295f4e42 4010 echo "Doing distclean in automake" ; \
215c351a 4011 (cd $(HOST_SUBDIR)/automake && \
1358ccea
NN
4012 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4013 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4014 "RANLIB=$${RANLIB}" \
4015 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4016 distclean) \
1358ccea
NN
4017 || exit 1
4018
60975492 4019@endif automake
1358ccea 4020
295f4e42
NN
4021.PHONY: maybe-maintainer-clean-automake maintainer-clean-automake
4022maybe-maintainer-clean-automake:
60975492
PB
4023@if automake
4024maybe-maintainer-clean-automake: maintainer-clean-automake
1358ccea 4025
05750653 4026maintainer-clean-automake:
f41d6665 4027 @: $(MAKE); $(unstage)
295f4e42 4028 @[ -f ./automake/Makefile ] || exit 0; \
8c90b13a
L
4029 r=`${PWD_COMMAND}`; export r; \
4030 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4031 $(HOST_EXPORTS) \
d32ab992 4032 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4033 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4034 done; \
295f4e42 4035 echo "Doing maintainer-clean in automake" ; \
215c351a 4036 (cd $(HOST_SUBDIR)/automake && \
1358ccea
NN
4037 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4038 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4039 "RANLIB=$${RANLIB}" \
4040 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4041 maintainer-clean) \
1358ccea
NN
4042 || exit 1
4043
60975492 4044@endif automake
1358ccea 4045
1358ccea 4046
25b42232 4047
295f4e42
NN
4048.PHONY: configure-bash maybe-configure-bash
4049maybe-configure-bash:
3ff3adad
PB
4050@if gcc-bootstrap
4051configure-bash: stage_current
4052@endif gcc-bootstrap
60975492
PB
4053@if bash
4054maybe-configure-bash: configure-bash
cc11cc9b 4055configure-bash:
f41d6665 4056 @: $(MAKE); $(unstage)
cc11cc9b 4057 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 4058 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
4059 test ! -f $(HOST_SUBDIR)/bash/Makefile || exit 0; \
4060 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bash ; \
4fc4dd12 4061 $(HOST_EXPORTS) \
25b42232
PB
4062 echo Configuring in $(HOST_SUBDIR)/bash; \
4063 cd "$(HOST_SUBDIR)/bash" || exit 1; \
295f4e42 4064 case $(srcdir) in \
215c351a
PB
4065 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4066 *) topdir=`echo $(HOST_SUBDIR)/bash/ | \
4067 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 4068 esac; \
215c351a
PB
4069 srcdiroption="--srcdir=$${topdir}/bash"; \
4070 libsrcdir="$$s/bash"; \
295f4e42 4071 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 4072 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 4073 || exit 1
60975492 4074@endif bash
1358ccea 4075
25b42232
PB
4076
4077
ce406537
PB
4078
4079
295f4e42
NN
4080.PHONY: all-bash maybe-all-bash
4081maybe-all-bash:
3ff3adad
PB
4082@if gcc-bootstrap
4083all-bash: stage_current
4084@endif gcc-bootstrap
60975492 4085@if bash
7e0b5752 4086TARGET-bash=all
60975492 4087maybe-all-bash: all-bash
295f4e42 4088all-bash: configure-bash
f41d6665 4089 @: $(MAKE); $(unstage)
295f4e42
NN
4090 @r=`${PWD_COMMAND}`; export r; \
4091 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4092 $(HOST_EXPORTS) \
215c351a
PB
4093 (cd $(HOST_SUBDIR)/bash && \
4094 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-bash))
60975492 4095@endif bash
1358ccea 4096
25b42232 4097
ce406537
PB
4098
4099
295f4e42
NN
4100.PHONY: check-bash maybe-check-bash
4101maybe-check-bash:
60975492
PB
4102@if bash
4103maybe-check-bash: check-bash
1358ccea 4104
295f4e42 4105check-bash:
f41d6665 4106 @: $(MAKE); $(unstage)
295f4e42 4107 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 4108 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4109 $(HOST_EXPORTS) \
215c351a
PB
4110 (cd $(HOST_SUBDIR)/bash && \
4111 $(MAKE) $(FLAGS_TO_PASS) check)
295f4e42 4112
60975492 4113@endif bash
1358ccea 4114
295f4e42
NN
4115.PHONY: install-bash maybe-install-bash
4116maybe-install-bash:
60975492
PB
4117@if bash
4118maybe-install-bash: install-bash
1358ccea 4119
295f4e42 4120install-bash: installdirs
f41d6665 4121 @: $(MAKE); $(unstage)
295f4e42
NN
4122 @r=`${PWD_COMMAND}`; export r; \
4123 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4124 $(HOST_EXPORTS) \
215c351a 4125 (cd $(HOST_SUBDIR)/bash && \
ace9ac7b 4126 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 4127
60975492 4128@endif bash
295f4e42 4129
b5422ad7 4130# Other targets (info, dvi, pdf, etc.)
295f4e42
NN
4131
4132.PHONY: maybe-info-bash info-bash
4133maybe-info-bash:
60975492
PB
4134@if bash
4135maybe-info-bash: info-bash
295f4e42
NN
4136
4137info-bash: \
05750653 4138 configure-bash
f41d6665 4139 @: $(MAKE); $(unstage)
295f4e42 4140 @[ -f ./bash/Makefile ] || exit 0; \
8c90b13a
L
4141 r=`${PWD_COMMAND}`; export r; \
4142 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4143 $(HOST_EXPORTS) \
d32ab992 4144 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4145 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4146 done; \
295f4e42 4147 echo "Doing info in bash" ; \
215c351a 4148 (cd $(HOST_SUBDIR)/bash && \
1358ccea
NN
4149 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4150 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4151 "RANLIB=$${RANLIB}" \
4152 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4153 info) \
1358ccea
NN
4154 || exit 1
4155
60975492 4156@endif bash
1358ccea 4157
295f4e42
NN
4158.PHONY: maybe-dvi-bash dvi-bash
4159maybe-dvi-bash:
60975492
PB
4160@if bash
4161maybe-dvi-bash: dvi-bash
1358ccea 4162
295f4e42 4163dvi-bash: \
05750653 4164 configure-bash
f41d6665 4165 @: $(MAKE); $(unstage)
295f4e42 4166 @[ -f ./bash/Makefile ] || exit 0; \
8c90b13a
L
4167 r=`${PWD_COMMAND}`; export r; \
4168 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4169 $(HOST_EXPORTS) \
d32ab992 4170 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4171 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4172 done; \
295f4e42 4173 echo "Doing dvi in bash" ; \
215c351a 4174 (cd $(HOST_SUBDIR)/bash && \
1358ccea
NN
4175 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4176 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4177 "RANLIB=$${RANLIB}" \
4178 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4179 dvi) \
1358ccea
NN
4180 || exit 1
4181
60975492 4182@endif bash
1358ccea 4183
b5422ad7
BM
4184.PHONY: maybe-pdf-bash pdf-bash
4185maybe-pdf-bash:
4186@if bash
4187maybe-pdf-bash: pdf-bash
4188
4189pdf-bash: \
4190 configure-bash
4191 @: $(MAKE); $(unstage)
4192 @[ -f ./bash/Makefile ] || exit 0; \
4193 r=`${PWD_COMMAND}`; export r; \
4194 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4195 $(HOST_EXPORTS) \
4196 for flag in $(EXTRA_HOST_FLAGS) ; do \
4197 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4198 done; \
4199 echo "Doing pdf in bash" ; \
4200 (cd $(HOST_SUBDIR)/bash && \
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}" \
4205 pdf) \
4206 || exit 1
4207
4208@endif bash
4209
f87a2b2e
MS
4210.PHONY: maybe-html-bash html-bash
4211maybe-html-bash:
4212@if bash
4213maybe-html-bash: html-bash
4214
4215html-bash: \
05750653 4216 configure-bash
f41d6665 4217 @: $(MAKE); $(unstage)
f87a2b2e
MS
4218 @[ -f ./bash/Makefile ] || exit 0; \
4219 r=`${PWD_COMMAND}`; export r; \
4220 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
4221 $(HOST_EXPORTS) \
4222 for flag in $(EXTRA_HOST_FLAGS) ; do \
4223 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4224 done; \
4225 echo "Doing html in bash" ; \
215c351a 4226 (cd $(HOST_SUBDIR)/bash && \
f87a2b2e
MS
4227 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4228 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4229 "RANLIB=$${RANLIB}" \
4230 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4231 html) \
4232 || exit 1
4233
4234@endif bash
4235
295f4e42
NN
4236.PHONY: maybe-TAGS-bash TAGS-bash
4237maybe-TAGS-bash:
60975492
PB
4238@if bash
4239maybe-TAGS-bash: TAGS-bash
1358ccea 4240
295f4e42 4241TAGS-bash: \
05750653 4242 configure-bash
f41d6665 4243 @: $(MAKE); $(unstage)
295f4e42 4244 @[ -f ./bash/Makefile ] || exit 0; \
8c90b13a
L
4245 r=`${PWD_COMMAND}`; export r; \
4246 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4247 $(HOST_EXPORTS) \
d32ab992 4248 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4249 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4250 done; \
295f4e42 4251 echo "Doing TAGS in bash" ; \
215c351a 4252 (cd $(HOST_SUBDIR)/bash && \
1358ccea
NN
4253 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4254 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4255 "RANLIB=$${RANLIB}" \
4256 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4257 TAGS) \
1358ccea
NN
4258 || exit 1
4259
60975492 4260@endif bash
1358ccea 4261
295f4e42
NN
4262.PHONY: maybe-install-info-bash install-info-bash
4263maybe-install-info-bash:
60975492
PB
4264@if bash
4265maybe-install-info-bash: install-info-bash
1358ccea 4266
295f4e42
NN
4267install-info-bash: \
4268 configure-bash \
05750653 4269 info-bash
f41d6665 4270 @: $(MAKE); $(unstage)
295f4e42 4271 @[ -f ./bash/Makefile ] || exit 0; \
8c90b13a
L
4272 r=`${PWD_COMMAND}`; export r; \
4273 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4274 $(HOST_EXPORTS) \
d32ab992 4275 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4276 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4277 done; \
295f4e42 4278 echo "Doing install-info in bash" ; \
215c351a 4279 (cd $(HOST_SUBDIR)/bash && \
1358ccea
NN
4280 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4281 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4282 "RANLIB=$${RANLIB}" \
4283 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4284 install-info) \
1358ccea
NN
4285 || exit 1
4286
60975492 4287@endif bash
1358ccea 4288
65d6e994
CD
4289.PHONY: maybe-install-html-bash install-html-bash
4290maybe-install-html-bash:
4291@if bash
4292maybe-install-html-bash: install-html-bash
4293
4294install-html-bash: \
4295 configure-bash \
4296 html-bash
4297 @: $(MAKE); $(unstage)
4298 @[ -f ./bash/Makefile ] || exit 0; \
4299 r=`${PWD_COMMAND}`; export r; \
4300 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4301 $(HOST_EXPORTS) \
4302 for flag in $(EXTRA_HOST_FLAGS) ; do \
4303 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4304 done; \
4305 echo "Doing install-html in bash" ; \
4306 (cd $(HOST_SUBDIR)/bash && \
4307 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4308 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4309 "RANLIB=$${RANLIB}" \
4310 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4311 install-html) \
4312 || exit 1
4313
4314@endif bash
4315
295f4e42
NN
4316.PHONY: maybe-installcheck-bash installcheck-bash
4317maybe-installcheck-bash:
60975492
PB
4318@if bash
4319maybe-installcheck-bash: installcheck-bash
1358ccea 4320
295f4e42 4321installcheck-bash: \
05750653 4322 configure-bash
f41d6665 4323 @: $(MAKE); $(unstage)
295f4e42 4324 @[ -f ./bash/Makefile ] || exit 0; \
8c90b13a
L
4325 r=`${PWD_COMMAND}`; export r; \
4326 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4327 $(HOST_EXPORTS) \
d32ab992 4328 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4329 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4330 done; \
295f4e42 4331 echo "Doing installcheck in bash" ; \
215c351a 4332 (cd $(HOST_SUBDIR)/bash && \
1358ccea
NN
4333 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4334 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4335 "RANLIB=$${RANLIB}" \
4336 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4337 installcheck) \
1358ccea
NN
4338 || exit 1
4339
60975492 4340@endif bash
1358ccea 4341
295f4e42
NN
4342.PHONY: maybe-mostlyclean-bash mostlyclean-bash
4343maybe-mostlyclean-bash:
60975492
PB
4344@if bash
4345maybe-mostlyclean-bash: mostlyclean-bash
1358ccea 4346
05750653 4347mostlyclean-bash:
f41d6665 4348 @: $(MAKE); $(unstage)
295f4e42 4349 @[ -f ./bash/Makefile ] || exit 0; \
8c90b13a
L
4350 r=`${PWD_COMMAND}`; export r; \
4351 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4352 $(HOST_EXPORTS) \
d32ab992 4353 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4354 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4355 done; \
295f4e42 4356 echo "Doing mostlyclean in bash" ; \
215c351a 4357 (cd $(HOST_SUBDIR)/bash && \
1358ccea
NN
4358 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4359 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4360 "RANLIB=$${RANLIB}" \
4361 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4362 mostlyclean) \
1358ccea
NN
4363 || exit 1
4364
60975492 4365@endif bash
1358ccea 4366
295f4e42
NN
4367.PHONY: maybe-clean-bash clean-bash
4368maybe-clean-bash:
60975492
PB
4369@if bash
4370maybe-clean-bash: clean-bash
1358ccea 4371
05750653 4372clean-bash:
f41d6665 4373 @: $(MAKE); $(unstage)
295f4e42 4374 @[ -f ./bash/Makefile ] || exit 0; \
8c90b13a
L
4375 r=`${PWD_COMMAND}`; export r; \
4376 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4377 $(HOST_EXPORTS) \
d32ab992 4378 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4379 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4380 done; \
295f4e42 4381 echo "Doing clean in bash" ; \
215c351a 4382 (cd $(HOST_SUBDIR)/bash && \
1358ccea
NN
4383 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4384 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4385 "RANLIB=$${RANLIB}" \
4386 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4387 clean) \
1358ccea
NN
4388 || exit 1
4389
60975492 4390@endif bash
1358ccea 4391
295f4e42
NN
4392.PHONY: maybe-distclean-bash distclean-bash
4393maybe-distclean-bash:
60975492
PB
4394@if bash
4395maybe-distclean-bash: distclean-bash
1358ccea 4396
05750653 4397distclean-bash:
f41d6665 4398 @: $(MAKE); $(unstage)
295f4e42 4399 @[ -f ./bash/Makefile ] || exit 0; \
8c90b13a
L
4400 r=`${PWD_COMMAND}`; export r; \
4401 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4402 $(HOST_EXPORTS) \
d32ab992 4403 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4404 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4405 done; \
295f4e42 4406 echo "Doing distclean in bash" ; \
215c351a 4407 (cd $(HOST_SUBDIR)/bash && \
1358ccea
NN
4408 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4409 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4410 "RANLIB=$${RANLIB}" \
4411 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4412 distclean) \
1358ccea
NN
4413 || exit 1
4414
60975492 4415@endif bash
1358ccea 4416
295f4e42
NN
4417.PHONY: maybe-maintainer-clean-bash maintainer-clean-bash
4418maybe-maintainer-clean-bash:
60975492
PB
4419@if bash
4420maybe-maintainer-clean-bash: maintainer-clean-bash
1358ccea 4421
05750653 4422maintainer-clean-bash:
f41d6665 4423 @: $(MAKE); $(unstage)
295f4e42 4424 @[ -f ./bash/Makefile ] || exit 0; \
8c90b13a
L
4425 r=`${PWD_COMMAND}`; export r; \
4426 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4427 $(HOST_EXPORTS) \
d32ab992 4428 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4429 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4430 done; \
295f4e42 4431 echo "Doing maintainer-clean in bash" ; \
215c351a 4432 (cd $(HOST_SUBDIR)/bash && \
1358ccea
NN
4433 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4434 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4435 "RANLIB=$${RANLIB}" \
4436 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4437 maintainer-clean) \
1358ccea
NN
4438 || exit 1
4439
60975492 4440@endif bash
1358ccea 4441
1358ccea 4442
25b42232 4443
295f4e42
NN
4444.PHONY: configure-bfd maybe-configure-bfd
4445maybe-configure-bfd:
3ff3adad
PB
4446@if gcc-bootstrap
4447configure-bfd: stage_current
4448@endif gcc-bootstrap
60975492
PB
4449@if bfd
4450maybe-configure-bfd: configure-bfd
cc11cc9b 4451configure-bfd:
cc11cc9b
PB
4452 @r=`${PWD_COMMAND}`; export r; \
4453 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
215c351a
PB
4454 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
4455 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
4fc4dd12 4456 $(HOST_EXPORTS) \
25b42232
PB
4457 echo Configuring in $(HOST_SUBDIR)/bfd; \
4458 cd "$(HOST_SUBDIR)/bfd" || exit 1; \
295f4e42 4459 case $(srcdir) in \
215c351a
PB
4460 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4461 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
4462 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 4463 esac; \
215c351a
PB
4464 srcdiroption="--srcdir=$${topdir}/bfd"; \
4465 libsrcdir="$$s/bfd"; \
295f4e42 4466 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 4467 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 4468 || exit 1
60975492 4469@endif bfd
1358ccea 4470
25b42232
PB
4471
4472
ce406537
PB
4473.PHONY: configure-stage1-bfd maybe-configure-stage1-bfd
4474maybe-configure-stage1-bfd:
4475@if bfd-bootstrap
4476maybe-configure-stage1-bfd: configure-stage1-bfd
f41d6665 4477configure-stage1-bfd:
cc11cc9b 4478 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
f41d6665 4479 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
cc11cc9b
PB
4480 @r=`${PWD_COMMAND}`; export r; \
4481 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 4482 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
ce406537
PB
4483 $(HOST_EXPORTS) \
4484 echo Configuring stage 1 in $(HOST_SUBDIR)/bfd ; \
f41d6665 4485 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
ce406537
PB
4486 cd $(HOST_SUBDIR)/bfd || exit 1; \
4487 case $(srcdir) in \
4488 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4489 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
4490 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4491 esac; \
4492 srcdiroption="--srcdir=$${topdir}/bfd"; \
4493 libsrcdir="$$s/bfd"; \
4494 $(SHELL) $${libsrcdir}/configure \
4495 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 4496 \
8efea775 4497 --disable-intermodule $(STAGE1_CHECKING) --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
ce406537
PB
4498@endif bfd-bootstrap
4499
4500.PHONY: configure-stage2-bfd maybe-configure-stage2-bfd
4501maybe-configure-stage2-bfd:
4502@if bfd-bootstrap
4503maybe-configure-stage2-bfd: configure-stage2-bfd
f41d6665 4504configure-stage2-bfd:
cc11cc9b 4505 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
f41d6665 4506 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
cc11cc9b
PB
4507 @r=`${PWD_COMMAND}`; export r; \
4508 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 4509 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
ce406537
PB
4510 $(HOST_EXPORTS) \
4511 $(POSTSTAGE1_HOST_EXPORTS) \
4512 echo Configuring stage 2 in $(HOST_SUBDIR)/bfd ; \
f41d6665 4513 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
ce406537
PB
4514 cd $(HOST_SUBDIR)/bfd || exit 1; \
4515 case $(srcdir) in \
4516 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4517 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
4518 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4519 esac; \
4520 srcdiroption="--srcdir=$${topdir}/bfd"; \
4521 libsrcdir="$$s/bfd"; \
4522 $(SHELL) $${libsrcdir}/configure \
4523 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 4524 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
4525 @stage2_werror_flag@
4526@endif bfd-bootstrap
4527
4528.PHONY: configure-stage3-bfd maybe-configure-stage3-bfd
4529maybe-configure-stage3-bfd:
4530@if bfd-bootstrap
4531maybe-configure-stage3-bfd: configure-stage3-bfd
f41d6665 4532configure-stage3-bfd:
cc11cc9b 4533 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
f41d6665 4534 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
cc11cc9b
PB
4535 @r=`${PWD_COMMAND}`; export r; \
4536 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 4537 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
ce406537
PB
4538 $(HOST_EXPORTS) \
4539 $(POSTSTAGE1_HOST_EXPORTS) \
4540 echo Configuring stage 3 in $(HOST_SUBDIR)/bfd ; \
f41d6665 4541 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
ce406537
PB
4542 cd $(HOST_SUBDIR)/bfd || exit 1; \
4543 case $(srcdir) in \
4544 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4545 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
4546 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4547 esac; \
4548 srcdiroption="--srcdir=$${topdir}/bfd"; \
4549 libsrcdir="$$s/bfd"; \
4550 $(SHELL) $${libsrcdir}/configure \
4551 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 4552 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
4553 @stage2_werror_flag@
4554@endif bfd-bootstrap
4555
4556.PHONY: configure-stage4-bfd maybe-configure-stage4-bfd
4557maybe-configure-stage4-bfd:
4558@if bfd-bootstrap
4559maybe-configure-stage4-bfd: configure-stage4-bfd
f41d6665 4560configure-stage4-bfd:
cc11cc9b 4561 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
f41d6665 4562 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
cc11cc9b
PB
4563 @r=`${PWD_COMMAND}`; export r; \
4564 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 4565 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
ce406537
PB
4566 $(HOST_EXPORTS) \
4567 $(POSTSTAGE1_HOST_EXPORTS) \
4568 echo Configuring stage 4 in $(HOST_SUBDIR)/bfd ; \
f41d6665 4569 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
ce406537
PB
4570 cd $(HOST_SUBDIR)/bfd || exit 1; \
4571 case $(srcdir) in \
4572 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4573 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
4574 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4575 esac; \
4576 srcdiroption="--srcdir=$${topdir}/bfd"; \
4577 libsrcdir="$$s/bfd"; \
4578 $(SHELL) $${libsrcdir}/configure \
4579 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 4580 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
4581 @stage2_werror_flag@
4582@endif bfd-bootstrap
4583
4584.PHONY: configure-stageprofile-bfd maybe-configure-stageprofile-bfd
4585maybe-configure-stageprofile-bfd:
4586@if bfd-bootstrap
4587maybe-configure-stageprofile-bfd: configure-stageprofile-bfd
f41d6665 4588configure-stageprofile-bfd:
cc11cc9b 4589 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
f41d6665 4590 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
cc11cc9b
PB
4591 @r=`${PWD_COMMAND}`; export r; \
4592 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 4593 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
ce406537
PB
4594 $(HOST_EXPORTS) \
4595 $(POSTSTAGE1_HOST_EXPORTS) \
4596 echo Configuring stage profile in $(HOST_SUBDIR)/bfd ; \
f41d6665 4597 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
ce406537
PB
4598 cd $(HOST_SUBDIR)/bfd || exit 1; \
4599 case $(srcdir) in \
4600 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4601 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
4602 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4603 esac; \
4604 srcdiroption="--srcdir=$${topdir}/bfd"; \
4605 libsrcdir="$$s/bfd"; \
4606 $(SHELL) $${libsrcdir}/configure \
4607 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 4608 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
4609 @stage2_werror_flag@
4610@endif bfd-bootstrap
4611
4612.PHONY: configure-stagefeedback-bfd maybe-configure-stagefeedback-bfd
4613maybe-configure-stagefeedback-bfd:
4614@if bfd-bootstrap
4615maybe-configure-stagefeedback-bfd: configure-stagefeedback-bfd
f41d6665 4616configure-stagefeedback-bfd:
cc11cc9b 4617 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
f41d6665 4618 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd
cc11cc9b
PB
4619 @r=`${PWD_COMMAND}`; export r; \
4620 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 4621 test ! -f $(HOST_SUBDIR)/bfd/Makefile || exit 0; \
ce406537
PB
4622 $(HOST_EXPORTS) \
4623 $(POSTSTAGE1_HOST_EXPORTS) \
4624 echo Configuring stage feedback in $(HOST_SUBDIR)/bfd ; \
f41d6665 4625 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bfd ; \
ce406537
PB
4626 cd $(HOST_SUBDIR)/bfd || exit 1; \
4627 case $(srcdir) in \
4628 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
4629 *) topdir=`echo $(HOST_SUBDIR)/bfd/ | \
4630 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4631 esac; \
4632 srcdiroption="--srcdir=$${topdir}/bfd"; \
4633 libsrcdir="$$s/bfd"; \
4634 $(SHELL) $${libsrcdir}/configure \
4635 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 4636 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
4637 @stage2_werror_flag@
4638@endif bfd-bootstrap
4639
4640
4641
4642
4643
295f4e42
NN
4644.PHONY: all-bfd maybe-all-bfd
4645maybe-all-bfd:
3ff3adad
PB
4646@if gcc-bootstrap
4647all-bfd: stage_current
4648@endif gcc-bootstrap
60975492 4649@if bfd
7e0b5752 4650TARGET-bfd=all
60975492 4651maybe-all-bfd: all-bfd
295f4e42 4652all-bfd: configure-bfd
cc11cc9b 4653 @r=`${PWD_COMMAND}`; export r; \
295f4e42 4654 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4655 $(HOST_EXPORTS) \
215c351a
PB
4656 (cd $(HOST_SUBDIR)/bfd && \
4657 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-bfd))
60975492 4658@endif bfd
1358ccea 4659
25b42232 4660
ce406537
PB
4661
4662.PHONY: all-stage1-bfd maybe-all-stage1-bfd
4663.PHONY: clean-stage1-bfd maybe-clean-stage1-bfd
4664maybe-all-stage1-bfd:
4665maybe-clean-stage1-bfd:
4666@if bfd-bootstrap
4667maybe-all-stage1-bfd: all-stage1-bfd
4668all-stage1: all-stage1-bfd
1061f99e 4669TARGET-stage1-bfd = $(TARGET-bfd)
ce406537 4670all-stage1-bfd: configure-stage1-bfd
cc11cc9b 4671 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
ce406537
PB
4672 @r=`${PWD_COMMAND}`; export r; \
4673 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4674 $(HOST_EXPORTS) \
4675 cd $(HOST_SUBDIR)/bfd && \
cc11cc9b 4676 $(MAKE) $(FLAGS_TO_PASS) CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" \
1061f99e 4677 $(TARGET-stage1-bfd)
ce406537
PB
4678
4679maybe-clean-stage1-bfd: clean-stage1-bfd
4680clean-stage1: clean-stage1-bfd
4681clean-stage1-bfd:
995a5697
PB
4682 @if [ $(current_stage) = stage1 ]; then \
4683 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
4684 else \
4685 [ -f $(HOST_SUBDIR)/stage1-bfd/Makefile ] || exit 0; \
4686 $(MAKE) stage1-start; \
4687 fi; \
ce406537
PB
4688 cd $(HOST_SUBDIR)/bfd && \
4689 $(MAKE) $(FLAGS_TO_PASS) \
cc11cc9b 4690 CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" clean
ce406537
PB
4691@endif bfd-bootstrap
4692
4693
4694.PHONY: all-stage2-bfd maybe-all-stage2-bfd
4695.PHONY: clean-stage2-bfd maybe-clean-stage2-bfd
4696maybe-all-stage2-bfd:
4697maybe-clean-stage2-bfd:
4698@if bfd-bootstrap
4699maybe-all-stage2-bfd: all-stage2-bfd
4700all-stage2: all-stage2-bfd
1061f99e 4701TARGET-stage2-bfd = $(TARGET-bfd)
ce406537 4702all-stage2-bfd: configure-stage2-bfd
cc11cc9b 4703 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
ce406537
PB
4704 @r=`${PWD_COMMAND}`; export r; \
4705 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4706 $(HOST_EXPORTS) \
4707 $(POSTSTAGE1_HOST_EXPORTS) \
4708 cd $(HOST_SUBDIR)/bfd && \
1061f99e
PB
4709 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
4710 $(TARGET-stage2-bfd)
ce406537
PB
4711
4712maybe-clean-stage2-bfd: clean-stage2-bfd
4713clean-stage2: clean-stage2-bfd
4714clean-stage2-bfd:
995a5697
PB
4715 @if [ $(current_stage) = stage2 ]; then \
4716 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
4717 else \
4718 [ -f $(HOST_SUBDIR)/stage2-bfd/Makefile ] || exit 0; \
4719 $(MAKE) stage2-start; \
4720 fi; \
ce406537
PB
4721 cd $(HOST_SUBDIR)/bfd && \
4722 $(MAKE) $(FLAGS_TO_PASS) \
4723 $(POSTSTAGE1_FLAGS_TO_PASS) \
4724 clean
4725@endif bfd-bootstrap
4726
4727
4728.PHONY: all-stage3-bfd maybe-all-stage3-bfd
4729.PHONY: clean-stage3-bfd maybe-clean-stage3-bfd
4730maybe-all-stage3-bfd:
4731maybe-clean-stage3-bfd:
4732@if bfd-bootstrap
4733maybe-all-stage3-bfd: all-stage3-bfd
4734all-stage3: all-stage3-bfd
1061f99e 4735TARGET-stage3-bfd = $(TARGET-bfd)
ce406537 4736all-stage3-bfd: configure-stage3-bfd
cc11cc9b 4737 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
ce406537
PB
4738 @r=`${PWD_COMMAND}`; export r; \
4739 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4740 $(HOST_EXPORTS) \
4741 $(POSTSTAGE1_HOST_EXPORTS) \
4742 cd $(HOST_SUBDIR)/bfd && \
1061f99e
PB
4743 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
4744 $(TARGET-stage3-bfd)
ce406537
PB
4745
4746maybe-clean-stage3-bfd: clean-stage3-bfd
4747clean-stage3: clean-stage3-bfd
4748clean-stage3-bfd:
995a5697
PB
4749 @if [ $(current_stage) = stage3 ]; then \
4750 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
4751 else \
4752 [ -f $(HOST_SUBDIR)/stage3-bfd/Makefile ] || exit 0; \
4753 $(MAKE) stage3-start; \
4754 fi; \
ce406537
PB
4755 cd $(HOST_SUBDIR)/bfd && \
4756 $(MAKE) $(FLAGS_TO_PASS) \
4757 $(POSTSTAGE1_FLAGS_TO_PASS) \
4758 clean
4759@endif bfd-bootstrap
4760
4761
4762.PHONY: all-stage4-bfd maybe-all-stage4-bfd
4763.PHONY: clean-stage4-bfd maybe-clean-stage4-bfd
4764maybe-all-stage4-bfd:
4765maybe-clean-stage4-bfd:
4766@if bfd-bootstrap
4767maybe-all-stage4-bfd: all-stage4-bfd
4768all-stage4: all-stage4-bfd
1061f99e 4769TARGET-stage4-bfd = $(TARGET-bfd)
ce406537 4770all-stage4-bfd: configure-stage4-bfd
cc11cc9b 4771 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
ce406537
PB
4772 @r=`${PWD_COMMAND}`; export r; \
4773 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4774 $(HOST_EXPORTS) \
4775 $(POSTSTAGE1_HOST_EXPORTS) \
4776 cd $(HOST_SUBDIR)/bfd && \
1061f99e
PB
4777 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
4778 $(TARGET-stage4-bfd)
ce406537
PB
4779
4780maybe-clean-stage4-bfd: clean-stage4-bfd
4781clean-stage4: clean-stage4-bfd
4782clean-stage4-bfd:
995a5697
PB
4783 @if [ $(current_stage) = stage4 ]; then \
4784 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
4785 else \
4786 [ -f $(HOST_SUBDIR)/stage4-bfd/Makefile ] || exit 0; \
4787 $(MAKE) stage4-start; \
4788 fi; \
ce406537
PB
4789 cd $(HOST_SUBDIR)/bfd && \
4790 $(MAKE) $(FLAGS_TO_PASS) \
4791 $(POSTSTAGE1_FLAGS_TO_PASS) \
4792 clean
4793@endif bfd-bootstrap
4794
4795
4796.PHONY: all-stageprofile-bfd maybe-all-stageprofile-bfd
4797.PHONY: clean-stageprofile-bfd maybe-clean-stageprofile-bfd
4798maybe-all-stageprofile-bfd:
4799maybe-clean-stageprofile-bfd:
4800@if bfd-bootstrap
4801maybe-all-stageprofile-bfd: all-stageprofile-bfd
4802all-stageprofile: all-stageprofile-bfd
1061f99e 4803TARGET-stageprofile-bfd = $(TARGET-bfd)
ce406537 4804all-stageprofile-bfd: configure-stageprofile-bfd
cc11cc9b 4805 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
ce406537
PB
4806 @r=`${PWD_COMMAND}`; export r; \
4807 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4808 $(HOST_EXPORTS) \
4809 $(POSTSTAGE1_HOST_EXPORTS) \
4810 cd $(HOST_SUBDIR)/bfd && \
1061f99e
PB
4811 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" \
4812 $(TARGET-stageprofile-bfd)
ce406537
PB
4813
4814maybe-clean-stageprofile-bfd: clean-stageprofile-bfd
4815clean-stageprofile: clean-stageprofile-bfd
4816clean-stageprofile-bfd:
995a5697
PB
4817 @if [ $(current_stage) = stageprofile ]; then \
4818 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
4819 else \
4820 [ -f $(HOST_SUBDIR)/stageprofile-bfd/Makefile ] || exit 0; \
4821 $(MAKE) stageprofile-start; \
4822 fi; \
ce406537
PB
4823 cd $(HOST_SUBDIR)/bfd && \
4824 $(MAKE) $(FLAGS_TO_PASS) \
4825 $(POSTSTAGE1_FLAGS_TO_PASS) \
4826 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean
4827@endif bfd-bootstrap
4828
4829
4830.PHONY: all-stagefeedback-bfd maybe-all-stagefeedback-bfd
4831.PHONY: clean-stagefeedback-bfd maybe-clean-stagefeedback-bfd
4832maybe-all-stagefeedback-bfd:
4833maybe-clean-stagefeedback-bfd:
4834@if bfd-bootstrap
4835maybe-all-stagefeedback-bfd: all-stagefeedback-bfd
4836all-stagefeedback: all-stagefeedback-bfd
1061f99e 4837TARGET-stagefeedback-bfd = $(TARGET-bfd)
ce406537 4838all-stagefeedback-bfd: configure-stagefeedback-bfd
cc11cc9b 4839 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
ce406537
PB
4840 @r=`${PWD_COMMAND}`; export r; \
4841 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4842 $(HOST_EXPORTS) \
4843 $(POSTSTAGE1_HOST_EXPORTS) \
4844 cd $(HOST_SUBDIR)/bfd && \
1061f99e
PB
4845 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-use" \
4846 $(TARGET-stagefeedback-bfd)
ce406537
PB
4847
4848maybe-clean-stagefeedback-bfd: clean-stagefeedback-bfd
4849clean-stagefeedback: clean-stagefeedback-bfd
4850clean-stagefeedback-bfd:
995a5697
PB
4851 @if [ $(current_stage) = stagefeedback ]; then \
4852 [ -f $(HOST_SUBDIR)/bfd/Makefile ] || exit 0; \
4853 else \
4854 [ -f $(HOST_SUBDIR)/stagefeedback-bfd/Makefile ] || exit 0; \
4855 $(MAKE) stagefeedback-start; \
4856 fi; \
ce406537
PB
4857 cd $(HOST_SUBDIR)/bfd && \
4858 $(MAKE) $(FLAGS_TO_PASS) \
4859 $(POSTSTAGE1_FLAGS_TO_PASS) \
4860 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean
4861@endif bfd-bootstrap
4862
4863
4864
4865
4866
295f4e42
NN
4867.PHONY: check-bfd maybe-check-bfd
4868maybe-check-bfd:
60975492
PB
4869@if bfd
4870maybe-check-bfd: check-bfd
1358ccea 4871
295f4e42 4872check-bfd:
f41d6665 4873 @: $(MAKE); $(unstage)
295f4e42 4874 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 4875 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4876 $(HOST_EXPORTS) \
215c351a
PB
4877 (cd $(HOST_SUBDIR)/bfd && \
4878 $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 4879
60975492 4880@endif bfd
1358ccea 4881
295f4e42
NN
4882.PHONY: install-bfd maybe-install-bfd
4883maybe-install-bfd:
60975492
PB
4884@if bfd
4885maybe-install-bfd: install-bfd
1358ccea 4886
295f4e42 4887install-bfd: installdirs
f41d6665 4888 @: $(MAKE); $(unstage)
295f4e42 4889 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 4890 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4891 $(HOST_EXPORTS) \
215c351a 4892 (cd $(HOST_SUBDIR)/bfd && \
ace9ac7b 4893 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 4894
60975492 4895@endif bfd
1358ccea 4896
b5422ad7 4897# Other targets (info, dvi, pdf, etc.)
295f4e42
NN
4898
4899.PHONY: maybe-info-bfd info-bfd
4900maybe-info-bfd:
60975492
PB
4901@if bfd
4902maybe-info-bfd: info-bfd
1358ccea 4903
295f4e42 4904info-bfd: \
05750653 4905 configure-bfd
295f4e42 4906 @[ -f ./bfd/Makefile ] || exit 0; \
8c90b13a
L
4907 r=`${PWD_COMMAND}`; export r; \
4908 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4909 $(HOST_EXPORTS) \
d32ab992 4910 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4911 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4912 done; \
295f4e42 4913 echo "Doing info in bfd" ; \
215c351a 4914 (cd $(HOST_SUBDIR)/bfd && \
1358ccea
NN
4915 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4916 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4917 "RANLIB=$${RANLIB}" \
4918 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4919 info) \
1358ccea
NN
4920 || exit 1
4921
60975492 4922@endif bfd
1358ccea 4923
295f4e42
NN
4924.PHONY: maybe-dvi-bfd dvi-bfd
4925maybe-dvi-bfd:
60975492
PB
4926@if bfd
4927maybe-dvi-bfd: dvi-bfd
1358ccea 4928
295f4e42 4929dvi-bfd: \
05750653 4930 configure-bfd
295f4e42 4931 @[ -f ./bfd/Makefile ] || exit 0; \
8c90b13a
L
4932 r=`${PWD_COMMAND}`; export r; \
4933 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 4934 $(HOST_EXPORTS) \
d32ab992 4935 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
4936 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4937 done; \
295f4e42 4938 echo "Doing dvi in bfd" ; \
215c351a 4939 (cd $(HOST_SUBDIR)/bfd && \
1358ccea
NN
4940 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4941 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4942 "RANLIB=$${RANLIB}" \
4943 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 4944 dvi) \
1358ccea
NN
4945 || exit 1
4946
60975492 4947@endif bfd
1358ccea 4948
b5422ad7
BM
4949.PHONY: maybe-pdf-bfd pdf-bfd
4950maybe-pdf-bfd:
4951@if bfd
4952maybe-pdf-bfd: pdf-bfd
4953
4954pdf-bfd: \
4955 configure-bfd
4956 @[ -f ./bfd/Makefile ] || exit 0; \
4957 r=`${PWD_COMMAND}`; export r; \
4958 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4959 $(HOST_EXPORTS) \
4960 for flag in $(EXTRA_HOST_FLAGS) ; do \
4961 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4962 done; \
4963 echo "Doing pdf in bfd" ; \
4964 (cd $(HOST_SUBDIR)/bfd && \
4965 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4966 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4967 "RANLIB=$${RANLIB}" \
4968 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4969 pdf) \
4970 || exit 1
4971
4972@endif bfd
4973
f87a2b2e
MS
4974.PHONY: maybe-html-bfd html-bfd
4975maybe-html-bfd:
4976@if bfd
4977maybe-html-bfd: html-bfd
4978
4979html-bfd: \
05750653 4980 configure-bfd
f87a2b2e
MS
4981 @[ -f ./bfd/Makefile ] || exit 0; \
4982 r=`${PWD_COMMAND}`; export r; \
4983 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
4984 $(HOST_EXPORTS) \
4985 for flag in $(EXTRA_HOST_FLAGS) ; do \
4986 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4987 done; \
4988 echo "Doing html in bfd" ; \
215c351a 4989 (cd $(HOST_SUBDIR)/bfd && \
f87a2b2e
MS
4990 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4991 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4992 "RANLIB=$${RANLIB}" \
4993 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4994 html) \
4995 || exit 1
4996
4997@endif bfd
4998
295f4e42
NN
4999.PHONY: maybe-TAGS-bfd TAGS-bfd
5000maybe-TAGS-bfd:
60975492
PB
5001@if bfd
5002maybe-TAGS-bfd: TAGS-bfd
1358ccea 5003
295f4e42 5004TAGS-bfd: \
05750653 5005 configure-bfd
295f4e42 5006 @[ -f ./bfd/Makefile ] || exit 0; \
8c90b13a
L
5007 r=`${PWD_COMMAND}`; export r; \
5008 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5009 $(HOST_EXPORTS) \
d32ab992 5010 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5011 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5012 done; \
295f4e42 5013 echo "Doing TAGS in bfd" ; \
215c351a 5014 (cd $(HOST_SUBDIR)/bfd && \
1358ccea
NN
5015 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5016 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5017 "RANLIB=$${RANLIB}" \
5018 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 5019 TAGS) \
1358ccea
NN
5020 || exit 1
5021
60975492 5022@endif bfd
1358ccea 5023
295f4e42
NN
5024.PHONY: maybe-install-info-bfd install-info-bfd
5025maybe-install-info-bfd:
60975492
PB
5026@if bfd
5027maybe-install-info-bfd: install-info-bfd
1358ccea 5028
295f4e42
NN
5029install-info-bfd: \
5030 configure-bfd \
05750653 5031 info-bfd
295f4e42 5032 @[ -f ./bfd/Makefile ] || exit 0; \
8c90b13a
L
5033 r=`${PWD_COMMAND}`; export r; \
5034 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5035 $(HOST_EXPORTS) \
d32ab992 5036 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5037 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5038 done; \
295f4e42 5039 echo "Doing install-info in bfd" ; \
215c351a 5040 (cd $(HOST_SUBDIR)/bfd && \
1358ccea
NN
5041 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5042 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5043 "RANLIB=$${RANLIB}" \
5044 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 5045 install-info) \
1358ccea
NN
5046 || exit 1
5047
60975492 5048@endif bfd
1358ccea 5049
65d6e994
CD
5050.PHONY: maybe-install-html-bfd install-html-bfd
5051maybe-install-html-bfd:
5052@if bfd
5053maybe-install-html-bfd: install-html-bfd
5054
5055install-html-bfd: \
5056 configure-bfd \
5057 html-bfd
5058 @[ -f ./bfd/Makefile ] || exit 0; \
5059 r=`${PWD_COMMAND}`; export r; \
5060 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5061 $(HOST_EXPORTS) \
5062 for flag in $(EXTRA_HOST_FLAGS) ; do \
5063 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5064 done; \
5065 echo "Doing install-html in bfd" ; \
5066 (cd $(HOST_SUBDIR)/bfd && \
5067 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5068 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5069 "RANLIB=$${RANLIB}" \
5070 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5071 install-html) \
5072 || exit 1
5073
5074@endif bfd
5075
295f4e42
NN
5076.PHONY: maybe-installcheck-bfd installcheck-bfd
5077maybe-installcheck-bfd:
60975492
PB
5078@if bfd
5079maybe-installcheck-bfd: installcheck-bfd
1358ccea 5080
295f4e42 5081installcheck-bfd: \
05750653 5082 configure-bfd
295f4e42 5083 @[ -f ./bfd/Makefile ] || exit 0; \
8c90b13a
L
5084 r=`${PWD_COMMAND}`; export r; \
5085 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5086 $(HOST_EXPORTS) \
d32ab992 5087 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5088 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5089 done; \
295f4e42 5090 echo "Doing installcheck in bfd" ; \
215c351a 5091 (cd $(HOST_SUBDIR)/bfd && \
1358ccea
NN
5092 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5093 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5094 "RANLIB=$${RANLIB}" \
5095 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 5096 installcheck) \
1358ccea
NN
5097 || exit 1
5098
60975492 5099@endif bfd
1358ccea 5100
295f4e42
NN
5101.PHONY: maybe-mostlyclean-bfd mostlyclean-bfd
5102maybe-mostlyclean-bfd:
60975492
PB
5103@if bfd
5104maybe-mostlyclean-bfd: mostlyclean-bfd
1358ccea 5105
05750653 5106mostlyclean-bfd:
295f4e42 5107 @[ -f ./bfd/Makefile ] || exit 0; \
8c90b13a
L
5108 r=`${PWD_COMMAND}`; export r; \
5109 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5110 $(HOST_EXPORTS) \
d32ab992 5111 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5112 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5113 done; \
295f4e42 5114 echo "Doing mostlyclean in bfd" ; \
215c351a 5115 (cd $(HOST_SUBDIR)/bfd && \
1358ccea
NN
5116 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5117 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5118 "RANLIB=$${RANLIB}" \
5119 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 5120 mostlyclean) \
1358ccea
NN
5121 || exit 1
5122
60975492 5123@endif bfd
1358ccea 5124
295f4e42
NN
5125.PHONY: maybe-clean-bfd clean-bfd
5126maybe-clean-bfd:
60975492
PB
5127@if bfd
5128maybe-clean-bfd: clean-bfd
1358ccea 5129
05750653 5130clean-bfd:
295f4e42 5131 @[ -f ./bfd/Makefile ] || exit 0; \
8c90b13a
L
5132 r=`${PWD_COMMAND}`; export r; \
5133 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5134 $(HOST_EXPORTS) \
d32ab992 5135 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5136 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5137 done; \
295f4e42 5138 echo "Doing clean in bfd" ; \
215c351a 5139 (cd $(HOST_SUBDIR)/bfd && \
1358ccea
NN
5140 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5141 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5142 "RANLIB=$${RANLIB}" \
5143 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 5144 clean) \
1358ccea
NN
5145 || exit 1
5146
60975492 5147@endif bfd
1358ccea 5148
295f4e42
NN
5149.PHONY: maybe-distclean-bfd distclean-bfd
5150maybe-distclean-bfd:
60975492
PB
5151@if bfd
5152maybe-distclean-bfd: distclean-bfd
1358ccea 5153
05750653 5154distclean-bfd:
295f4e42 5155 @[ -f ./bfd/Makefile ] || exit 0; \
8c90b13a
L
5156 r=`${PWD_COMMAND}`; export r; \
5157 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5158 $(HOST_EXPORTS) \
d32ab992 5159 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5160 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5161 done; \
295f4e42 5162 echo "Doing distclean in bfd" ; \
215c351a 5163 (cd $(HOST_SUBDIR)/bfd && \
1358ccea
NN
5164 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5165 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5166 "RANLIB=$${RANLIB}" \
5167 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 5168 distclean) \
1358ccea
NN
5169 || exit 1
5170
60975492 5171@endif bfd
1358ccea 5172
295f4e42
NN
5173.PHONY: maybe-maintainer-clean-bfd maintainer-clean-bfd
5174maybe-maintainer-clean-bfd:
60975492
PB
5175@if bfd
5176maybe-maintainer-clean-bfd: maintainer-clean-bfd
1358ccea 5177
05750653 5178maintainer-clean-bfd:
295f4e42 5179 @[ -f ./bfd/Makefile ] || exit 0; \
8c90b13a
L
5180 r=`${PWD_COMMAND}`; export r; \
5181 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5182 $(HOST_EXPORTS) \
d32ab992 5183 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5184 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5185 done; \
295f4e42 5186 echo "Doing maintainer-clean in bfd" ; \
215c351a 5187 (cd $(HOST_SUBDIR)/bfd && \
1358ccea
NN
5188 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5189 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5190 "RANLIB=$${RANLIB}" \
5191 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 5192 maintainer-clean) \
1358ccea
NN
5193 || exit 1
5194
60975492 5195@endif bfd
1358ccea 5196
1358ccea 5197
25b42232 5198
295f4e42
NN
5199.PHONY: configure-opcodes maybe-configure-opcodes
5200maybe-configure-opcodes:
3ff3adad
PB
5201@if gcc-bootstrap
5202configure-opcodes: stage_current
5203@endif gcc-bootstrap
60975492
PB
5204@if opcodes
5205maybe-configure-opcodes: configure-opcodes
cc11cc9b 5206configure-opcodes:
cc11cc9b
PB
5207 @r=`${PWD_COMMAND}`; export r; \
5208 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
215c351a
PB
5209 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
5210 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
4fc4dd12 5211 $(HOST_EXPORTS) \
25b42232
PB
5212 echo Configuring in $(HOST_SUBDIR)/opcodes; \
5213 cd "$(HOST_SUBDIR)/opcodes" || exit 1; \
295f4e42 5214 case $(srcdir) in \
215c351a
PB
5215 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
5216 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
5217 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 5218 esac; \
215c351a
PB
5219 srcdiroption="--srcdir=$${topdir}/opcodes"; \
5220 libsrcdir="$$s/opcodes"; \
295f4e42 5221 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 5222 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 5223 || exit 1
60975492 5224@endif opcodes
1358ccea 5225
25b42232
PB
5226
5227
ce406537
PB
5228.PHONY: configure-stage1-opcodes maybe-configure-stage1-opcodes
5229maybe-configure-stage1-opcodes:
5230@if opcodes-bootstrap
5231maybe-configure-stage1-opcodes: configure-stage1-opcodes
f41d6665 5232configure-stage1-opcodes:
cc11cc9b 5233 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
f41d6665 5234 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
cc11cc9b
PB
5235 @r=`${PWD_COMMAND}`; export r; \
5236 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 5237 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
ce406537
PB
5238 $(HOST_EXPORTS) \
5239 echo Configuring stage 1 in $(HOST_SUBDIR)/opcodes ; \
f41d6665 5240 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
ce406537
PB
5241 cd $(HOST_SUBDIR)/opcodes || exit 1; \
5242 case $(srcdir) in \
5243 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
5244 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
5245 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5246 esac; \
5247 srcdiroption="--srcdir=$${topdir}/opcodes"; \
5248 libsrcdir="$$s/opcodes"; \
5249 $(SHELL) $${libsrcdir}/configure \
5250 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 5251 \
8efea775 5252 --disable-intermodule $(STAGE1_CHECKING) --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
ce406537
PB
5253@endif opcodes-bootstrap
5254
5255.PHONY: configure-stage2-opcodes maybe-configure-stage2-opcodes
5256maybe-configure-stage2-opcodes:
5257@if opcodes-bootstrap
5258maybe-configure-stage2-opcodes: configure-stage2-opcodes
f41d6665 5259configure-stage2-opcodes:
cc11cc9b 5260 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
f41d6665 5261 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
cc11cc9b
PB
5262 @r=`${PWD_COMMAND}`; export r; \
5263 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 5264 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
ce406537
PB
5265 $(HOST_EXPORTS) \
5266 $(POSTSTAGE1_HOST_EXPORTS) \
5267 echo Configuring stage 2 in $(HOST_SUBDIR)/opcodes ; \
f41d6665 5268 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
ce406537
PB
5269 cd $(HOST_SUBDIR)/opcodes || exit 1; \
5270 case $(srcdir) in \
5271 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
5272 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
5273 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5274 esac; \
5275 srcdiroption="--srcdir=$${topdir}/opcodes"; \
5276 libsrcdir="$$s/opcodes"; \
5277 $(SHELL) $${libsrcdir}/configure \
5278 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 5279 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
5280 @stage2_werror_flag@
5281@endif opcodes-bootstrap
5282
5283.PHONY: configure-stage3-opcodes maybe-configure-stage3-opcodes
5284maybe-configure-stage3-opcodes:
5285@if opcodes-bootstrap
5286maybe-configure-stage3-opcodes: configure-stage3-opcodes
f41d6665 5287configure-stage3-opcodes:
cc11cc9b 5288 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
f41d6665 5289 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
cc11cc9b
PB
5290 @r=`${PWD_COMMAND}`; export r; \
5291 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 5292 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
ce406537
PB
5293 $(HOST_EXPORTS) \
5294 $(POSTSTAGE1_HOST_EXPORTS) \
5295 echo Configuring stage 3 in $(HOST_SUBDIR)/opcodes ; \
f41d6665 5296 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
ce406537
PB
5297 cd $(HOST_SUBDIR)/opcodes || exit 1; \
5298 case $(srcdir) in \
5299 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
5300 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
5301 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5302 esac; \
5303 srcdiroption="--srcdir=$${topdir}/opcodes"; \
5304 libsrcdir="$$s/opcodes"; \
5305 $(SHELL) $${libsrcdir}/configure \
5306 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 5307 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
5308 @stage2_werror_flag@
5309@endif opcodes-bootstrap
5310
5311.PHONY: configure-stage4-opcodes maybe-configure-stage4-opcodes
5312maybe-configure-stage4-opcodes:
5313@if opcodes-bootstrap
5314maybe-configure-stage4-opcodes: configure-stage4-opcodes
f41d6665 5315configure-stage4-opcodes:
cc11cc9b 5316 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
f41d6665 5317 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
cc11cc9b
PB
5318 @r=`${PWD_COMMAND}`; export r; \
5319 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 5320 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
ce406537
PB
5321 $(HOST_EXPORTS) \
5322 $(POSTSTAGE1_HOST_EXPORTS) \
5323 echo Configuring stage 4 in $(HOST_SUBDIR)/opcodes ; \
f41d6665 5324 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
ce406537
PB
5325 cd $(HOST_SUBDIR)/opcodes || exit 1; \
5326 case $(srcdir) in \
5327 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
5328 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
5329 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5330 esac; \
5331 srcdiroption="--srcdir=$${topdir}/opcodes"; \
5332 libsrcdir="$$s/opcodes"; \
5333 $(SHELL) $${libsrcdir}/configure \
5334 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 5335 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
5336 @stage2_werror_flag@
5337@endif opcodes-bootstrap
5338
5339.PHONY: configure-stageprofile-opcodes maybe-configure-stageprofile-opcodes
5340maybe-configure-stageprofile-opcodes:
5341@if opcodes-bootstrap
5342maybe-configure-stageprofile-opcodes: configure-stageprofile-opcodes
f41d6665 5343configure-stageprofile-opcodes:
cc11cc9b 5344 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
f41d6665 5345 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
cc11cc9b
PB
5346 @r=`${PWD_COMMAND}`; export r; \
5347 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 5348 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
ce406537
PB
5349 $(HOST_EXPORTS) \
5350 $(POSTSTAGE1_HOST_EXPORTS) \
5351 echo Configuring stage profile in $(HOST_SUBDIR)/opcodes ; \
f41d6665 5352 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
ce406537
PB
5353 cd $(HOST_SUBDIR)/opcodes || exit 1; \
5354 case $(srcdir) in \
5355 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
5356 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
5357 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5358 esac; \
5359 srcdiroption="--srcdir=$${topdir}/opcodes"; \
5360 libsrcdir="$$s/opcodes"; \
5361 $(SHELL) $${libsrcdir}/configure \
5362 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 5363 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
5364 @stage2_werror_flag@
5365@endif opcodes-bootstrap
5366
5367.PHONY: configure-stagefeedback-opcodes maybe-configure-stagefeedback-opcodes
5368maybe-configure-stagefeedback-opcodes:
5369@if opcodes-bootstrap
5370maybe-configure-stagefeedback-opcodes: configure-stagefeedback-opcodes
f41d6665 5371configure-stagefeedback-opcodes:
cc11cc9b 5372 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
f41d6665 5373 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes
cc11cc9b
PB
5374 @r=`${PWD_COMMAND}`; export r; \
5375 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 5376 test ! -f $(HOST_SUBDIR)/opcodes/Makefile || exit 0; \
ce406537
PB
5377 $(HOST_EXPORTS) \
5378 $(POSTSTAGE1_HOST_EXPORTS) \
5379 echo Configuring stage feedback in $(HOST_SUBDIR)/opcodes ; \
f41d6665 5380 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/opcodes ; \
ce406537
PB
5381 cd $(HOST_SUBDIR)/opcodes || exit 1; \
5382 case $(srcdir) in \
5383 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
5384 *) topdir=`echo $(HOST_SUBDIR)/opcodes/ | \
5385 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5386 esac; \
5387 srcdiroption="--srcdir=$${topdir}/opcodes"; \
5388 libsrcdir="$$s/opcodes"; \
5389 $(SHELL) $${libsrcdir}/configure \
5390 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 5391 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
5392 @stage2_werror_flag@
5393@endif opcodes-bootstrap
5394
5395
5396
5397
5398
295f4e42
NN
5399.PHONY: all-opcodes maybe-all-opcodes
5400maybe-all-opcodes:
3ff3adad
PB
5401@if gcc-bootstrap
5402all-opcodes: stage_current
5403@endif gcc-bootstrap
60975492 5404@if opcodes
7e0b5752 5405TARGET-opcodes=all
60975492 5406maybe-all-opcodes: all-opcodes
295f4e42 5407all-opcodes: configure-opcodes
cc11cc9b 5408 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 5409 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5410 $(HOST_EXPORTS) \
215c351a
PB
5411 (cd $(HOST_SUBDIR)/opcodes && \
5412 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-opcodes))
60975492 5413@endif opcodes
1358ccea 5414
25b42232 5415
ce406537
PB
5416
5417.PHONY: all-stage1-opcodes maybe-all-stage1-opcodes
5418.PHONY: clean-stage1-opcodes maybe-clean-stage1-opcodes
5419maybe-all-stage1-opcodes:
5420maybe-clean-stage1-opcodes:
5421@if opcodes-bootstrap
5422maybe-all-stage1-opcodes: all-stage1-opcodes
5423all-stage1: all-stage1-opcodes
1061f99e 5424TARGET-stage1-opcodes = $(TARGET-opcodes)
ce406537 5425all-stage1-opcodes: configure-stage1-opcodes
cc11cc9b 5426 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
ce406537
PB
5427 @r=`${PWD_COMMAND}`; export r; \
5428 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5429 $(HOST_EXPORTS) \
5430 cd $(HOST_SUBDIR)/opcodes && \
cc11cc9b 5431 $(MAKE) $(FLAGS_TO_PASS) CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" \
1061f99e 5432 $(TARGET-stage1-opcodes)
ce406537
PB
5433
5434maybe-clean-stage1-opcodes: clean-stage1-opcodes
5435clean-stage1: clean-stage1-opcodes
5436clean-stage1-opcodes:
995a5697
PB
5437 @if [ $(current_stage) = stage1 ]; then \
5438 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
5439 else \
5440 [ -f $(HOST_SUBDIR)/stage1-opcodes/Makefile ] || exit 0; \
5441 $(MAKE) stage1-start; \
5442 fi; \
ce406537
PB
5443 cd $(HOST_SUBDIR)/opcodes && \
5444 $(MAKE) $(FLAGS_TO_PASS) \
cc11cc9b 5445 CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" clean
ce406537
PB
5446@endif opcodes-bootstrap
5447
5448
5449.PHONY: all-stage2-opcodes maybe-all-stage2-opcodes
5450.PHONY: clean-stage2-opcodes maybe-clean-stage2-opcodes
5451maybe-all-stage2-opcodes:
5452maybe-clean-stage2-opcodes:
5453@if opcodes-bootstrap
5454maybe-all-stage2-opcodes: all-stage2-opcodes
5455all-stage2: all-stage2-opcodes
1061f99e 5456TARGET-stage2-opcodes = $(TARGET-opcodes)
ce406537 5457all-stage2-opcodes: configure-stage2-opcodes
cc11cc9b 5458 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
ce406537
PB
5459 @r=`${PWD_COMMAND}`; export r; \
5460 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5461 $(HOST_EXPORTS) \
5462 $(POSTSTAGE1_HOST_EXPORTS) \
5463 cd $(HOST_SUBDIR)/opcodes && \
1061f99e
PB
5464 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
5465 $(TARGET-stage2-opcodes)
ce406537
PB
5466
5467maybe-clean-stage2-opcodes: clean-stage2-opcodes
5468clean-stage2: clean-stage2-opcodes
5469clean-stage2-opcodes:
995a5697
PB
5470 @if [ $(current_stage) = stage2 ]; then \
5471 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
5472 else \
5473 [ -f $(HOST_SUBDIR)/stage2-opcodes/Makefile ] || exit 0; \
5474 $(MAKE) stage2-start; \
5475 fi; \
ce406537
PB
5476 cd $(HOST_SUBDIR)/opcodes && \
5477 $(MAKE) $(FLAGS_TO_PASS) \
5478 $(POSTSTAGE1_FLAGS_TO_PASS) \
5479 clean
5480@endif opcodes-bootstrap
5481
5482
5483.PHONY: all-stage3-opcodes maybe-all-stage3-opcodes
5484.PHONY: clean-stage3-opcodes maybe-clean-stage3-opcodes
5485maybe-all-stage3-opcodes:
5486maybe-clean-stage3-opcodes:
5487@if opcodes-bootstrap
5488maybe-all-stage3-opcodes: all-stage3-opcodes
5489all-stage3: all-stage3-opcodes
1061f99e 5490TARGET-stage3-opcodes = $(TARGET-opcodes)
ce406537 5491all-stage3-opcodes: configure-stage3-opcodes
cc11cc9b 5492 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
ce406537
PB
5493 @r=`${PWD_COMMAND}`; export r; \
5494 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5495 $(HOST_EXPORTS) \
5496 $(POSTSTAGE1_HOST_EXPORTS) \
5497 cd $(HOST_SUBDIR)/opcodes && \
1061f99e
PB
5498 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
5499 $(TARGET-stage3-opcodes)
ce406537
PB
5500
5501maybe-clean-stage3-opcodes: clean-stage3-opcodes
5502clean-stage3: clean-stage3-opcodes
5503clean-stage3-opcodes:
995a5697
PB
5504 @if [ $(current_stage) = stage3 ]; then \
5505 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
5506 else \
5507 [ -f $(HOST_SUBDIR)/stage3-opcodes/Makefile ] || exit 0; \
5508 $(MAKE) stage3-start; \
5509 fi; \
ce406537
PB
5510 cd $(HOST_SUBDIR)/opcodes && \
5511 $(MAKE) $(FLAGS_TO_PASS) \
5512 $(POSTSTAGE1_FLAGS_TO_PASS) \
5513 clean
5514@endif opcodes-bootstrap
5515
5516
5517.PHONY: all-stage4-opcodes maybe-all-stage4-opcodes
5518.PHONY: clean-stage4-opcodes maybe-clean-stage4-opcodes
5519maybe-all-stage4-opcodes:
5520maybe-clean-stage4-opcodes:
5521@if opcodes-bootstrap
5522maybe-all-stage4-opcodes: all-stage4-opcodes
5523all-stage4: all-stage4-opcodes
1061f99e 5524TARGET-stage4-opcodes = $(TARGET-opcodes)
ce406537 5525all-stage4-opcodes: configure-stage4-opcodes
cc11cc9b 5526 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
ce406537
PB
5527 @r=`${PWD_COMMAND}`; export r; \
5528 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5529 $(HOST_EXPORTS) \
5530 $(POSTSTAGE1_HOST_EXPORTS) \
5531 cd $(HOST_SUBDIR)/opcodes && \
1061f99e
PB
5532 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
5533 $(TARGET-stage4-opcodes)
ce406537
PB
5534
5535maybe-clean-stage4-opcodes: clean-stage4-opcodes
5536clean-stage4: clean-stage4-opcodes
5537clean-stage4-opcodes:
995a5697
PB
5538 @if [ $(current_stage) = stage4 ]; then \
5539 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
5540 else \
5541 [ -f $(HOST_SUBDIR)/stage4-opcodes/Makefile ] || exit 0; \
5542 $(MAKE) stage4-start; \
5543 fi; \
ce406537
PB
5544 cd $(HOST_SUBDIR)/opcodes && \
5545 $(MAKE) $(FLAGS_TO_PASS) \
5546 $(POSTSTAGE1_FLAGS_TO_PASS) \
5547 clean
5548@endif opcodes-bootstrap
5549
5550
5551.PHONY: all-stageprofile-opcodes maybe-all-stageprofile-opcodes
5552.PHONY: clean-stageprofile-opcodes maybe-clean-stageprofile-opcodes
5553maybe-all-stageprofile-opcodes:
5554maybe-clean-stageprofile-opcodes:
5555@if opcodes-bootstrap
5556maybe-all-stageprofile-opcodes: all-stageprofile-opcodes
5557all-stageprofile: all-stageprofile-opcodes
1061f99e 5558TARGET-stageprofile-opcodes = $(TARGET-opcodes)
ce406537 5559all-stageprofile-opcodes: configure-stageprofile-opcodes
cc11cc9b 5560 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
ce406537
PB
5561 @r=`${PWD_COMMAND}`; export r; \
5562 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5563 $(HOST_EXPORTS) \
5564 $(POSTSTAGE1_HOST_EXPORTS) \
5565 cd $(HOST_SUBDIR)/opcodes && \
1061f99e
PB
5566 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" \
5567 $(TARGET-stageprofile-opcodes)
ce406537
PB
5568
5569maybe-clean-stageprofile-opcodes: clean-stageprofile-opcodes
5570clean-stageprofile: clean-stageprofile-opcodes
5571clean-stageprofile-opcodes:
995a5697
PB
5572 @if [ $(current_stage) = stageprofile ]; then \
5573 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
5574 else \
5575 [ -f $(HOST_SUBDIR)/stageprofile-opcodes/Makefile ] || exit 0; \
5576 $(MAKE) stageprofile-start; \
5577 fi; \
ce406537
PB
5578 cd $(HOST_SUBDIR)/opcodes && \
5579 $(MAKE) $(FLAGS_TO_PASS) \
5580 $(POSTSTAGE1_FLAGS_TO_PASS) \
5581 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean
5582@endif opcodes-bootstrap
5583
5584
5585.PHONY: all-stagefeedback-opcodes maybe-all-stagefeedback-opcodes
5586.PHONY: clean-stagefeedback-opcodes maybe-clean-stagefeedback-opcodes
5587maybe-all-stagefeedback-opcodes:
5588maybe-clean-stagefeedback-opcodes:
5589@if opcodes-bootstrap
5590maybe-all-stagefeedback-opcodes: all-stagefeedback-opcodes
5591all-stagefeedback: all-stagefeedback-opcodes
1061f99e 5592TARGET-stagefeedback-opcodes = $(TARGET-opcodes)
ce406537 5593all-stagefeedback-opcodes: configure-stagefeedback-opcodes
cc11cc9b 5594 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
ce406537
PB
5595 @r=`${PWD_COMMAND}`; export r; \
5596 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5597 $(HOST_EXPORTS) \
5598 $(POSTSTAGE1_HOST_EXPORTS) \
5599 cd $(HOST_SUBDIR)/opcodes && \
1061f99e
PB
5600 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-use" \
5601 $(TARGET-stagefeedback-opcodes)
ce406537
PB
5602
5603maybe-clean-stagefeedback-opcodes: clean-stagefeedback-opcodes
5604clean-stagefeedback: clean-stagefeedback-opcodes
5605clean-stagefeedback-opcodes:
995a5697
PB
5606 @if [ $(current_stage) = stagefeedback ]; then \
5607 [ -f $(HOST_SUBDIR)/opcodes/Makefile ] || exit 0; \
5608 else \
5609 [ -f $(HOST_SUBDIR)/stagefeedback-opcodes/Makefile ] || exit 0; \
5610 $(MAKE) stagefeedback-start; \
5611 fi; \
ce406537
PB
5612 cd $(HOST_SUBDIR)/opcodes && \
5613 $(MAKE) $(FLAGS_TO_PASS) \
5614 $(POSTSTAGE1_FLAGS_TO_PASS) \
5615 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean
5616@endif opcodes-bootstrap
5617
5618
5619
5620
5621
295f4e42
NN
5622.PHONY: check-opcodes maybe-check-opcodes
5623maybe-check-opcodes:
60975492
PB
5624@if opcodes
5625maybe-check-opcodes: check-opcodes
1358ccea 5626
295f4e42 5627check-opcodes:
f41d6665 5628 @: $(MAKE); $(unstage)
295f4e42
NN
5629 @r=`${PWD_COMMAND}`; export r; \
5630 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5631 $(HOST_EXPORTS) \
215c351a
PB
5632 (cd $(HOST_SUBDIR)/opcodes && \
5633 $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 5634
60975492 5635@endif opcodes
1358ccea 5636
295f4e42
NN
5637.PHONY: install-opcodes maybe-install-opcodes
5638maybe-install-opcodes:
60975492
PB
5639@if opcodes
5640maybe-install-opcodes: install-opcodes
1358ccea 5641
295f4e42 5642install-opcodes: installdirs
f41d6665 5643 @: $(MAKE); $(unstage)
295f4e42 5644 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 5645 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5646 $(HOST_EXPORTS) \
215c351a 5647 (cd $(HOST_SUBDIR)/opcodes && \
ace9ac7b 5648 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 5649
60975492 5650@endif opcodes
1358ccea 5651
b5422ad7 5652# Other targets (info, dvi, pdf, etc.)
1358ccea 5653
295f4e42
NN
5654.PHONY: maybe-info-opcodes info-opcodes
5655maybe-info-opcodes:
60975492
PB
5656@if opcodes
5657maybe-info-opcodes: info-opcodes
295f4e42
NN
5658
5659info-opcodes: \
05750653 5660 configure-opcodes
295f4e42 5661 @[ -f ./opcodes/Makefile ] || exit 0; \
8c90b13a
L
5662 r=`${PWD_COMMAND}`; export r; \
5663 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5664 $(HOST_EXPORTS) \
d32ab992 5665 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5666 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5667 done; \
295f4e42 5668 echo "Doing info in opcodes" ; \
215c351a 5669 (cd $(HOST_SUBDIR)/opcodes && \
1358ccea
NN
5670 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5671 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5672 "RANLIB=$${RANLIB}" \
5673 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 5674 info) \
1358ccea
NN
5675 || exit 1
5676
60975492 5677@endif opcodes
1358ccea 5678
295f4e42
NN
5679.PHONY: maybe-dvi-opcodes dvi-opcodes
5680maybe-dvi-opcodes:
60975492
PB
5681@if opcodes
5682maybe-dvi-opcodes: dvi-opcodes
1358ccea 5683
295f4e42 5684dvi-opcodes: \
05750653 5685 configure-opcodes
295f4e42 5686 @[ -f ./opcodes/Makefile ] || exit 0; \
8c90b13a
L
5687 r=`${PWD_COMMAND}`; export r; \
5688 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5689 $(HOST_EXPORTS) \
d32ab992 5690 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5691 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5692 done; \
295f4e42 5693 echo "Doing dvi in opcodes" ; \
215c351a 5694 (cd $(HOST_SUBDIR)/opcodes && \
1358ccea
NN
5695 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5696 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5697 "RANLIB=$${RANLIB}" \
5698 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 5699 dvi) \
1358ccea
NN
5700 || exit 1
5701
60975492 5702@endif opcodes
1358ccea 5703
b5422ad7
BM
5704.PHONY: maybe-pdf-opcodes pdf-opcodes
5705maybe-pdf-opcodes:
5706@if opcodes
5707maybe-pdf-opcodes: pdf-opcodes
5708
5709pdf-opcodes: \
5710 configure-opcodes
5711 @[ -f ./opcodes/Makefile ] || exit 0; \
5712 r=`${PWD_COMMAND}`; export r; \
5713 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5714 $(HOST_EXPORTS) \
5715 for flag in $(EXTRA_HOST_FLAGS) ; do \
5716 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5717 done; \
5718 echo "Doing pdf in opcodes" ; \
5719 (cd $(HOST_SUBDIR)/opcodes && \
5720 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5721 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5722 "RANLIB=$${RANLIB}" \
5723 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5724 pdf) \
5725 || exit 1
5726
5727@endif opcodes
5728
f87a2b2e
MS
5729.PHONY: maybe-html-opcodes html-opcodes
5730maybe-html-opcodes:
5731@if opcodes
5732maybe-html-opcodes: html-opcodes
5733
5734html-opcodes: \
05750653 5735 configure-opcodes
f87a2b2e
MS
5736 @[ -f ./opcodes/Makefile ] || exit 0; \
5737 r=`${PWD_COMMAND}`; export r; \
5738 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
5739 $(HOST_EXPORTS) \
5740 for flag in $(EXTRA_HOST_FLAGS) ; do \
5741 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5742 done; \
5743 echo "Doing html in opcodes" ; \
215c351a 5744 (cd $(HOST_SUBDIR)/opcodes && \
f87a2b2e
MS
5745 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5746 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5747 "RANLIB=$${RANLIB}" \
5748 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5749 html) \
5750 || exit 1
5751
5752@endif opcodes
5753
295f4e42
NN
5754.PHONY: maybe-TAGS-opcodes TAGS-opcodes
5755maybe-TAGS-opcodes:
60975492
PB
5756@if opcodes
5757maybe-TAGS-opcodes: TAGS-opcodes
1358ccea 5758
295f4e42 5759TAGS-opcodes: \
05750653 5760 configure-opcodes
295f4e42 5761 @[ -f ./opcodes/Makefile ] || exit 0; \
8c90b13a
L
5762 r=`${PWD_COMMAND}`; export r; \
5763 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5764 $(HOST_EXPORTS) \
d32ab992 5765 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5766 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5767 done; \
295f4e42 5768 echo "Doing TAGS in opcodes" ; \
215c351a 5769 (cd $(HOST_SUBDIR)/opcodes && \
1358ccea
NN
5770 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5771 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5772 "RANLIB=$${RANLIB}" \
5773 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 5774 TAGS) \
1358ccea
NN
5775 || exit 1
5776
60975492 5777@endif opcodes
1358ccea 5778
295f4e42
NN
5779.PHONY: maybe-install-info-opcodes install-info-opcodes
5780maybe-install-info-opcodes:
60975492
PB
5781@if opcodes
5782maybe-install-info-opcodes: install-info-opcodes
1358ccea 5783
295f4e42
NN
5784install-info-opcodes: \
5785 configure-opcodes \
05750653 5786 info-opcodes
295f4e42 5787 @[ -f ./opcodes/Makefile ] || exit 0; \
8c90b13a
L
5788 r=`${PWD_COMMAND}`; export r; \
5789 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5790 $(HOST_EXPORTS) \
d32ab992 5791 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5792 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5793 done; \
295f4e42 5794 echo "Doing install-info in opcodes" ; \
215c351a 5795 (cd $(HOST_SUBDIR)/opcodes && \
1358ccea
NN
5796 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5797 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5798 "RANLIB=$${RANLIB}" \
5799 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 5800 install-info) \
1358ccea
NN
5801 || exit 1
5802
60975492 5803@endif opcodes
1358ccea 5804
65d6e994
CD
5805.PHONY: maybe-install-html-opcodes install-html-opcodes
5806maybe-install-html-opcodes:
5807@if opcodes
5808maybe-install-html-opcodes: install-html-opcodes
5809
5810install-html-opcodes: \
5811 configure-opcodes \
5812 html-opcodes
5813 @[ -f ./opcodes/Makefile ] || exit 0; \
5814 r=`${PWD_COMMAND}`; export r; \
5815 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5816 $(HOST_EXPORTS) \
5817 for flag in $(EXTRA_HOST_FLAGS) ; do \
5818 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5819 done; \
5820 echo "Doing install-html in opcodes" ; \
5821 (cd $(HOST_SUBDIR)/opcodes && \
5822 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5823 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5824 "RANLIB=$${RANLIB}" \
5825 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
5826 install-html) \
5827 || exit 1
5828
5829@endif opcodes
5830
295f4e42
NN
5831.PHONY: maybe-installcheck-opcodes installcheck-opcodes
5832maybe-installcheck-opcodes:
60975492
PB
5833@if opcodes
5834maybe-installcheck-opcodes: installcheck-opcodes
1358ccea 5835
295f4e42 5836installcheck-opcodes: \
05750653 5837 configure-opcodes
295f4e42 5838 @[ -f ./opcodes/Makefile ] || exit 0; \
8c90b13a
L
5839 r=`${PWD_COMMAND}`; export r; \
5840 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5841 $(HOST_EXPORTS) \
d32ab992 5842 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5843 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5844 done; \
295f4e42 5845 echo "Doing installcheck in opcodes" ; \
215c351a 5846 (cd $(HOST_SUBDIR)/opcodes && \
1358ccea
NN
5847 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5848 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5849 "RANLIB=$${RANLIB}" \
5850 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 5851 installcheck) \
1358ccea
NN
5852 || exit 1
5853
60975492 5854@endif opcodes
1358ccea 5855
295f4e42
NN
5856.PHONY: maybe-mostlyclean-opcodes mostlyclean-opcodes
5857maybe-mostlyclean-opcodes:
60975492
PB
5858@if opcodes
5859maybe-mostlyclean-opcodes: mostlyclean-opcodes
1358ccea 5860
05750653 5861mostlyclean-opcodes:
295f4e42 5862 @[ -f ./opcodes/Makefile ] || exit 0; \
8c90b13a
L
5863 r=`${PWD_COMMAND}`; export r; \
5864 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5865 $(HOST_EXPORTS) \
d32ab992 5866 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5867 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5868 done; \
295f4e42 5869 echo "Doing mostlyclean in opcodes" ; \
215c351a 5870 (cd $(HOST_SUBDIR)/opcodes && \
1358ccea
NN
5871 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5872 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5873 "RANLIB=$${RANLIB}" \
5874 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 5875 mostlyclean) \
1358ccea
NN
5876 || exit 1
5877
60975492 5878@endif opcodes
1358ccea 5879
295f4e42
NN
5880.PHONY: maybe-clean-opcodes clean-opcodes
5881maybe-clean-opcodes:
60975492
PB
5882@if opcodes
5883maybe-clean-opcodes: clean-opcodes
1358ccea 5884
05750653 5885clean-opcodes:
295f4e42 5886 @[ -f ./opcodes/Makefile ] || exit 0; \
8c90b13a
L
5887 r=`${PWD_COMMAND}`; export r; \
5888 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5889 $(HOST_EXPORTS) \
d32ab992 5890 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5891 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5892 done; \
295f4e42 5893 echo "Doing clean in opcodes" ; \
215c351a 5894 (cd $(HOST_SUBDIR)/opcodes && \
1358ccea
NN
5895 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5896 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5897 "RANLIB=$${RANLIB}" \
5898 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 5899 clean) \
1358ccea
NN
5900 || exit 1
5901
60975492 5902@endif opcodes
1358ccea 5903
295f4e42
NN
5904.PHONY: maybe-distclean-opcodes distclean-opcodes
5905maybe-distclean-opcodes:
60975492
PB
5906@if opcodes
5907maybe-distclean-opcodes: distclean-opcodes
1358ccea 5908
05750653 5909distclean-opcodes:
295f4e42 5910 @[ -f ./opcodes/Makefile ] || exit 0; \
8c90b13a
L
5911 r=`${PWD_COMMAND}`; export r; \
5912 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5913 $(HOST_EXPORTS) \
d32ab992 5914 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5915 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5916 done; \
295f4e42 5917 echo "Doing distclean in opcodes" ; \
215c351a 5918 (cd $(HOST_SUBDIR)/opcodes && \
1358ccea
NN
5919 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5920 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5921 "RANLIB=$${RANLIB}" \
5922 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 5923 distclean) \
1358ccea
NN
5924 || exit 1
5925
60975492 5926@endif opcodes
1358ccea 5927
295f4e42
NN
5928.PHONY: maybe-maintainer-clean-opcodes maintainer-clean-opcodes
5929maybe-maintainer-clean-opcodes:
60975492
PB
5930@if opcodes
5931maybe-maintainer-clean-opcodes: maintainer-clean-opcodes
1358ccea 5932
05750653 5933maintainer-clean-opcodes:
295f4e42 5934 @[ -f ./opcodes/Makefile ] || exit 0; \
8c90b13a
L
5935 r=`${PWD_COMMAND}`; export r; \
5936 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 5937 $(HOST_EXPORTS) \
d32ab992 5938 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
5939 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
5940 done; \
295f4e42 5941 echo "Doing maintainer-clean in opcodes" ; \
215c351a 5942 (cd $(HOST_SUBDIR)/opcodes && \
1358ccea
NN
5943 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
5944 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
5945 "RANLIB=$${RANLIB}" \
5946 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 5947 maintainer-clean) \
1358ccea
NN
5948 || exit 1
5949
60975492 5950@endif opcodes
1358ccea 5951
1358ccea 5952
25b42232 5953
295f4e42
NN
5954.PHONY: configure-binutils maybe-configure-binutils
5955maybe-configure-binutils:
3ff3adad
PB
5956@if gcc-bootstrap
5957configure-binutils: stage_current
5958@endif gcc-bootstrap
60975492
PB
5959@if binutils
5960maybe-configure-binutils: configure-binutils
cc11cc9b 5961configure-binutils:
cc11cc9b
PB
5962 @r=`${PWD_COMMAND}`; export r; \
5963 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
215c351a
PB
5964 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
5965 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
4fc4dd12 5966 $(HOST_EXPORTS) \
25b42232
PB
5967 echo Configuring in $(HOST_SUBDIR)/binutils; \
5968 cd "$(HOST_SUBDIR)/binutils" || exit 1; \
295f4e42 5969 case $(srcdir) in \
215c351a
PB
5970 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
5971 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
5972 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 5973 esac; \
215c351a
PB
5974 srcdiroption="--srcdir=$${topdir}/binutils"; \
5975 libsrcdir="$$s/binutils"; \
295f4e42 5976 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 5977 $(HOST_CONFIGARGS) $${srcdiroption} \
295f4e42 5978 || exit 1
60975492 5979@endif binutils
295f4e42 5980
25b42232
PB
5981
5982
ce406537
PB
5983.PHONY: configure-stage1-binutils maybe-configure-stage1-binutils
5984maybe-configure-stage1-binutils:
5985@if binutils-bootstrap
5986maybe-configure-stage1-binutils: configure-stage1-binutils
f41d6665 5987configure-stage1-binutils:
cc11cc9b 5988 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
f41d6665 5989 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
cc11cc9b
PB
5990 @r=`${PWD_COMMAND}`; export r; \
5991 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 5992 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
ce406537
PB
5993 $(HOST_EXPORTS) \
5994 echo Configuring stage 1 in $(HOST_SUBDIR)/binutils ; \
f41d6665 5995 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
ce406537
PB
5996 cd $(HOST_SUBDIR)/binutils || exit 1; \
5997 case $(srcdir) in \
5998 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
5999 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
6000 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6001 esac; \
6002 srcdiroption="--srcdir=$${topdir}/binutils"; \
6003 libsrcdir="$$s/binutils"; \
6004 $(SHELL) $${libsrcdir}/configure \
6005 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 6006 \
8efea775 6007 --disable-intermodule $(STAGE1_CHECKING) --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
ce406537
PB
6008@endif binutils-bootstrap
6009
6010.PHONY: configure-stage2-binutils maybe-configure-stage2-binutils
6011maybe-configure-stage2-binutils:
6012@if binutils-bootstrap
6013maybe-configure-stage2-binutils: configure-stage2-binutils
f41d6665 6014configure-stage2-binutils:
cc11cc9b 6015 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
f41d6665 6016 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
cc11cc9b
PB
6017 @r=`${PWD_COMMAND}`; export r; \
6018 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 6019 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
ce406537
PB
6020 $(HOST_EXPORTS) \
6021 $(POSTSTAGE1_HOST_EXPORTS) \
6022 echo Configuring stage 2 in $(HOST_SUBDIR)/binutils ; \
f41d6665 6023 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
ce406537
PB
6024 cd $(HOST_SUBDIR)/binutils || exit 1; \
6025 case $(srcdir) in \
6026 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
6027 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
6028 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6029 esac; \
6030 srcdiroption="--srcdir=$${topdir}/binutils"; \
6031 libsrcdir="$$s/binutils"; \
6032 $(SHELL) $${libsrcdir}/configure \
6033 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 6034 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
6035 @stage2_werror_flag@
6036@endif binutils-bootstrap
6037
6038.PHONY: configure-stage3-binutils maybe-configure-stage3-binutils
6039maybe-configure-stage3-binutils:
6040@if binutils-bootstrap
6041maybe-configure-stage3-binutils: configure-stage3-binutils
f41d6665 6042configure-stage3-binutils:
cc11cc9b 6043 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
f41d6665 6044 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
cc11cc9b
PB
6045 @r=`${PWD_COMMAND}`; export r; \
6046 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 6047 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
ce406537
PB
6048 $(HOST_EXPORTS) \
6049 $(POSTSTAGE1_HOST_EXPORTS) \
6050 echo Configuring stage 3 in $(HOST_SUBDIR)/binutils ; \
f41d6665 6051 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
ce406537
PB
6052 cd $(HOST_SUBDIR)/binutils || exit 1; \
6053 case $(srcdir) in \
6054 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
6055 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
6056 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6057 esac; \
6058 srcdiroption="--srcdir=$${topdir}/binutils"; \
6059 libsrcdir="$$s/binutils"; \
6060 $(SHELL) $${libsrcdir}/configure \
6061 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 6062 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
6063 @stage2_werror_flag@
6064@endif binutils-bootstrap
6065
6066.PHONY: configure-stage4-binutils maybe-configure-stage4-binutils
6067maybe-configure-stage4-binutils:
6068@if binutils-bootstrap
6069maybe-configure-stage4-binutils: configure-stage4-binutils
f41d6665 6070configure-stage4-binutils:
cc11cc9b 6071 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
f41d6665 6072 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
cc11cc9b
PB
6073 @r=`${PWD_COMMAND}`; export r; \
6074 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 6075 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
ce406537
PB
6076 $(HOST_EXPORTS) \
6077 $(POSTSTAGE1_HOST_EXPORTS) \
6078 echo Configuring stage 4 in $(HOST_SUBDIR)/binutils ; \
f41d6665 6079 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
ce406537
PB
6080 cd $(HOST_SUBDIR)/binutils || exit 1; \
6081 case $(srcdir) in \
6082 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
6083 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
6084 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6085 esac; \
6086 srcdiroption="--srcdir=$${topdir}/binutils"; \
6087 libsrcdir="$$s/binutils"; \
6088 $(SHELL) $${libsrcdir}/configure \
6089 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 6090 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
6091 @stage2_werror_flag@
6092@endif binutils-bootstrap
6093
6094.PHONY: configure-stageprofile-binutils maybe-configure-stageprofile-binutils
6095maybe-configure-stageprofile-binutils:
6096@if binutils-bootstrap
6097maybe-configure-stageprofile-binutils: configure-stageprofile-binutils
f41d6665 6098configure-stageprofile-binutils:
cc11cc9b 6099 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
f41d6665 6100 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
cc11cc9b
PB
6101 @r=`${PWD_COMMAND}`; export r; \
6102 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 6103 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
ce406537
PB
6104 $(HOST_EXPORTS) \
6105 $(POSTSTAGE1_HOST_EXPORTS) \
6106 echo Configuring stage profile in $(HOST_SUBDIR)/binutils ; \
f41d6665 6107 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
ce406537
PB
6108 cd $(HOST_SUBDIR)/binutils || exit 1; \
6109 case $(srcdir) in \
6110 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
6111 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
6112 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6113 esac; \
6114 srcdiroption="--srcdir=$${topdir}/binutils"; \
6115 libsrcdir="$$s/binutils"; \
6116 $(SHELL) $${libsrcdir}/configure \
6117 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 6118 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
6119 @stage2_werror_flag@
6120@endif binutils-bootstrap
6121
6122.PHONY: configure-stagefeedback-binutils maybe-configure-stagefeedback-binutils
6123maybe-configure-stagefeedback-binutils:
6124@if binutils-bootstrap
6125maybe-configure-stagefeedback-binutils: configure-stagefeedback-binutils
f41d6665 6126configure-stagefeedback-binutils:
cc11cc9b 6127 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
f41d6665 6128 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils
cc11cc9b
PB
6129 @r=`${PWD_COMMAND}`; export r; \
6130 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 6131 test ! -f $(HOST_SUBDIR)/binutils/Makefile || exit 0; \
ce406537
PB
6132 $(HOST_EXPORTS) \
6133 $(POSTSTAGE1_HOST_EXPORTS) \
6134 echo Configuring stage feedback in $(HOST_SUBDIR)/binutils ; \
f41d6665 6135 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/binutils ; \
ce406537
PB
6136 cd $(HOST_SUBDIR)/binutils || exit 1; \
6137 case $(srcdir) in \
6138 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
6139 *) topdir=`echo $(HOST_SUBDIR)/binutils/ | \
6140 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6141 esac; \
6142 srcdiroption="--srcdir=$${topdir}/binutils"; \
6143 libsrcdir="$$s/binutils"; \
6144 $(SHELL) $${libsrcdir}/configure \
6145 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 6146 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
6147 @stage2_werror_flag@
6148@endif binutils-bootstrap
6149
6150
6151
6152
6153
295f4e42
NN
6154.PHONY: all-binutils maybe-all-binutils
6155maybe-all-binutils:
3ff3adad
PB
6156@if gcc-bootstrap
6157all-binutils: stage_current
6158@endif gcc-bootstrap
60975492 6159@if binutils
7e0b5752 6160TARGET-binutils=all
60975492 6161maybe-all-binutils: all-binutils
295f4e42 6162all-binutils: configure-binutils
cc11cc9b 6163 @r=`${PWD_COMMAND}`; export r; \
295f4e42 6164 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6165 $(HOST_EXPORTS) \
215c351a
PB
6166 (cd $(HOST_SUBDIR)/binutils && \
6167 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-binutils))
60975492 6168@endif binutils
295f4e42 6169
25b42232 6170
295f4e42 6171
ce406537
PB
6172.PHONY: all-stage1-binutils maybe-all-stage1-binutils
6173.PHONY: clean-stage1-binutils maybe-clean-stage1-binutils
6174maybe-all-stage1-binutils:
6175maybe-clean-stage1-binutils:
6176@if binutils-bootstrap
6177maybe-all-stage1-binutils: all-stage1-binutils
6178all-stage1: all-stage1-binutils
1061f99e 6179TARGET-stage1-binutils = $(TARGET-binutils)
ce406537 6180all-stage1-binutils: configure-stage1-binutils
cc11cc9b 6181 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
295f4e42
NN
6182 @r=`${PWD_COMMAND}`; export r; \
6183 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6184 $(HOST_EXPORTS) \
ce406537 6185 cd $(HOST_SUBDIR)/binutils && \
cc11cc9b 6186 $(MAKE) $(FLAGS_TO_PASS) CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" \
1061f99e 6187 $(TARGET-stage1-binutils)
295f4e42 6188
ce406537
PB
6189maybe-clean-stage1-binutils: clean-stage1-binutils
6190clean-stage1: clean-stage1-binutils
6191clean-stage1-binutils:
995a5697
PB
6192 @if [ $(current_stage) = stage1 ]; then \
6193 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
6194 else \
6195 [ -f $(HOST_SUBDIR)/stage1-binutils/Makefile ] || exit 0; \
6196 $(MAKE) stage1-start; \
6197 fi; \
ce406537
PB
6198 cd $(HOST_SUBDIR)/binutils && \
6199 $(MAKE) $(FLAGS_TO_PASS) \
cc11cc9b 6200 CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" clean
ce406537 6201@endif binutils-bootstrap
295f4e42 6202
295f4e42 6203
ce406537
PB
6204.PHONY: all-stage2-binutils maybe-all-stage2-binutils
6205.PHONY: clean-stage2-binutils maybe-clean-stage2-binutils
6206maybe-all-stage2-binutils:
6207maybe-clean-stage2-binutils:
6208@if binutils-bootstrap
6209maybe-all-stage2-binutils: all-stage2-binutils
6210all-stage2: all-stage2-binutils
1061f99e 6211TARGET-stage2-binutils = $(TARGET-binutils)
ce406537 6212all-stage2-binutils: configure-stage2-binutils
cc11cc9b 6213 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
295f4e42
NN
6214 @r=`${PWD_COMMAND}`; export r; \
6215 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6216 $(HOST_EXPORTS) \
ce406537
PB
6217 $(POSTSTAGE1_HOST_EXPORTS) \
6218 cd $(HOST_SUBDIR)/binutils && \
1061f99e
PB
6219 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
6220 $(TARGET-stage2-binutils)
295f4e42 6221
ce406537
PB
6222maybe-clean-stage2-binutils: clean-stage2-binutils
6223clean-stage2: clean-stage2-binutils
6224clean-stage2-binutils:
995a5697
PB
6225 @if [ $(current_stage) = stage2 ]; then \
6226 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
6227 else \
6228 [ -f $(HOST_SUBDIR)/stage2-binutils/Makefile ] || exit 0; \
6229 $(MAKE) stage2-start; \
6230 fi; \
ce406537
PB
6231 cd $(HOST_SUBDIR)/binutils && \
6232 $(MAKE) $(FLAGS_TO_PASS) \
6233 $(POSTSTAGE1_FLAGS_TO_PASS) \
6234 clean
6235@endif binutils-bootstrap
295f4e42 6236
295f4e42 6237
ce406537
PB
6238.PHONY: all-stage3-binutils maybe-all-stage3-binutils
6239.PHONY: clean-stage3-binutils maybe-clean-stage3-binutils
6240maybe-all-stage3-binutils:
6241maybe-clean-stage3-binutils:
6242@if binutils-bootstrap
6243maybe-all-stage3-binutils: all-stage3-binutils
6244all-stage3: all-stage3-binutils
1061f99e 6245TARGET-stage3-binutils = $(TARGET-binutils)
ce406537 6246all-stage3-binutils: configure-stage3-binutils
cc11cc9b 6247 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
ce406537 6248 @r=`${PWD_COMMAND}`; export r; \
295f4e42 6249 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6250 $(HOST_EXPORTS) \
ce406537
PB
6251 $(POSTSTAGE1_HOST_EXPORTS) \
6252 cd $(HOST_SUBDIR)/binutils && \
1061f99e
PB
6253 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
6254 $(TARGET-stage3-binutils)
1358ccea 6255
ce406537
PB
6256maybe-clean-stage3-binutils: clean-stage3-binutils
6257clean-stage3: clean-stage3-binutils
6258clean-stage3-binutils:
995a5697
PB
6259 @if [ $(current_stage) = stage3 ]; then \
6260 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
6261 else \
6262 [ -f $(HOST_SUBDIR)/stage3-binutils/Makefile ] || exit 0; \
6263 $(MAKE) stage3-start; \
6264 fi; \
ce406537
PB
6265 cd $(HOST_SUBDIR)/binutils && \
6266 $(MAKE) $(FLAGS_TO_PASS) \
6267 $(POSTSTAGE1_FLAGS_TO_PASS) \
6268 clean
6269@endif binutils-bootstrap
1358ccea 6270
1358ccea 6271
ce406537
PB
6272.PHONY: all-stage4-binutils maybe-all-stage4-binutils
6273.PHONY: clean-stage4-binutils maybe-clean-stage4-binutils
6274maybe-all-stage4-binutils:
6275maybe-clean-stage4-binutils:
6276@if binutils-bootstrap
6277maybe-all-stage4-binutils: all-stage4-binutils
6278all-stage4: all-stage4-binutils
1061f99e 6279TARGET-stage4-binutils = $(TARGET-binutils)
ce406537 6280all-stage4-binutils: configure-stage4-binutils
cc11cc9b 6281 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
ce406537 6282 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 6283 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6284 $(HOST_EXPORTS) \
ce406537
PB
6285 $(POSTSTAGE1_HOST_EXPORTS) \
6286 cd $(HOST_SUBDIR)/binutils && \
1061f99e
PB
6287 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
6288 $(TARGET-stage4-binutils)
ce406537
PB
6289
6290maybe-clean-stage4-binutils: clean-stage4-binutils
6291clean-stage4: clean-stage4-binutils
6292clean-stage4-binutils:
995a5697
PB
6293 @if [ $(current_stage) = stage4 ]; then \
6294 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
6295 else \
6296 [ -f $(HOST_SUBDIR)/stage4-binutils/Makefile ] || exit 0; \
6297 $(MAKE) stage4-start; \
6298 fi; \
ce406537
PB
6299 cd $(HOST_SUBDIR)/binutils && \
6300 $(MAKE) $(FLAGS_TO_PASS) \
6301 $(POSTSTAGE1_FLAGS_TO_PASS) \
6302 clean
6303@endif binutils-bootstrap
6304
6305
6306.PHONY: all-stageprofile-binutils maybe-all-stageprofile-binutils
6307.PHONY: clean-stageprofile-binutils maybe-clean-stageprofile-binutils
6308maybe-all-stageprofile-binutils:
6309maybe-clean-stageprofile-binutils:
6310@if binutils-bootstrap
6311maybe-all-stageprofile-binutils: all-stageprofile-binutils
6312all-stageprofile: all-stageprofile-binutils
1061f99e 6313TARGET-stageprofile-binutils = $(TARGET-binutils)
ce406537 6314all-stageprofile-binutils: configure-stageprofile-binutils
cc11cc9b 6315 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
ce406537
PB
6316 @r=`${PWD_COMMAND}`; export r; \
6317 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6318 $(HOST_EXPORTS) \
6319 $(POSTSTAGE1_HOST_EXPORTS) \
6320 cd $(HOST_SUBDIR)/binutils && \
1061f99e
PB
6321 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" \
6322 $(TARGET-stageprofile-binutils)
ce406537
PB
6323
6324maybe-clean-stageprofile-binutils: clean-stageprofile-binutils
6325clean-stageprofile: clean-stageprofile-binutils
6326clean-stageprofile-binutils:
995a5697
PB
6327 @if [ $(current_stage) = stageprofile ]; then \
6328 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
6329 else \
6330 [ -f $(HOST_SUBDIR)/stageprofile-binutils/Makefile ] || exit 0; \
6331 $(MAKE) stageprofile-start; \
6332 fi; \
ce406537
PB
6333 cd $(HOST_SUBDIR)/binutils && \
6334 $(MAKE) $(FLAGS_TO_PASS) \
6335 $(POSTSTAGE1_FLAGS_TO_PASS) \
6336 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean
6337@endif binutils-bootstrap
6338
6339
6340.PHONY: all-stagefeedback-binutils maybe-all-stagefeedback-binutils
6341.PHONY: clean-stagefeedback-binutils maybe-clean-stagefeedback-binutils
6342maybe-all-stagefeedback-binutils:
6343maybe-clean-stagefeedback-binutils:
6344@if binutils-bootstrap
6345maybe-all-stagefeedback-binutils: all-stagefeedback-binutils
6346all-stagefeedback: all-stagefeedback-binutils
1061f99e 6347TARGET-stagefeedback-binutils = $(TARGET-binutils)
ce406537 6348all-stagefeedback-binutils: configure-stagefeedback-binutils
cc11cc9b 6349 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
ce406537
PB
6350 @r=`${PWD_COMMAND}`; export r; \
6351 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6352 $(HOST_EXPORTS) \
6353 $(POSTSTAGE1_HOST_EXPORTS) \
6354 cd $(HOST_SUBDIR)/binutils && \
1061f99e
PB
6355 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-use" \
6356 $(TARGET-stagefeedback-binutils)
ce406537
PB
6357
6358maybe-clean-stagefeedback-binutils: clean-stagefeedback-binutils
6359clean-stagefeedback: clean-stagefeedback-binutils
6360clean-stagefeedback-binutils:
995a5697
PB
6361 @if [ $(current_stage) = stagefeedback ]; then \
6362 [ -f $(HOST_SUBDIR)/binutils/Makefile ] || exit 0; \
6363 else \
6364 [ -f $(HOST_SUBDIR)/stagefeedback-binutils/Makefile ] || exit 0; \
6365 $(MAKE) stagefeedback-start; \
6366 fi; \
ce406537
PB
6367 cd $(HOST_SUBDIR)/binutils && \
6368 $(MAKE) $(FLAGS_TO_PASS) \
6369 $(POSTSTAGE1_FLAGS_TO_PASS) \
6370 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean
6371@endif binutils-bootstrap
6372
6373
6374
6375
6376
6377.PHONY: check-binutils maybe-check-binutils
6378maybe-check-binutils:
6379@if binutils
6380maybe-check-binutils: check-binutils
6381
6382check-binutils:
f41d6665 6383 @: $(MAKE); $(unstage)
ce406537
PB
6384 @r=`${PWD_COMMAND}`; export r; \
6385 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6386 $(HOST_EXPORTS) \
6387 (cd $(HOST_SUBDIR)/binutils && \
6388 $(MAKE) $(FLAGS_TO_PASS) check)
6389
6390@endif binutils
6391
6392.PHONY: install-binutils maybe-install-binutils
6393maybe-install-binutils:
6394@if binutils
6395maybe-install-binutils: install-binutils
6396
6397install-binutils: installdirs
f41d6665 6398 @: $(MAKE); $(unstage)
ce406537
PB
6399 @r=`${PWD_COMMAND}`; export r; \
6400 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6401 $(HOST_EXPORTS) \
6402 (cd $(HOST_SUBDIR)/binutils && \
6403 $(MAKE) $(FLAGS_TO_PASS) install)
6404
6405@endif binutils
6406
b5422ad7 6407# Other targets (info, dvi, pdf, etc.)
ce406537
PB
6408
6409.PHONY: maybe-info-binutils info-binutils
6410maybe-info-binutils:
6411@if binutils
6412maybe-info-binutils: info-binutils
6413
6414info-binutils: \
6415 configure-binutils
6416 @[ -f ./binutils/Makefile ] || exit 0; \
6417 r=`${PWD_COMMAND}`; export r; \
6418 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6419 $(HOST_EXPORTS) \
6420 for flag in $(EXTRA_HOST_FLAGS) ; do \
6421 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6422 done; \
6423 echo "Doing info in binutils" ; \
6424 (cd $(HOST_SUBDIR)/binutils && \
6425 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6426 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6427 "RANLIB=$${RANLIB}" \
6428 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6429 info) \
6430 || exit 1
6431
6432@endif binutils
6433
6434.PHONY: maybe-dvi-binutils dvi-binutils
6435maybe-dvi-binutils:
6436@if binutils
6437maybe-dvi-binutils: dvi-binutils
6438
6439dvi-binutils: \
6440 configure-binutils
6441 @[ -f ./binutils/Makefile ] || exit 0; \
6442 r=`${PWD_COMMAND}`; export r; \
6443 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6444 $(HOST_EXPORTS) \
6445 for flag in $(EXTRA_HOST_FLAGS) ; do \
6446 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6447 done; \
6448 echo "Doing dvi in binutils" ; \
6449 (cd $(HOST_SUBDIR)/binutils && \
1358ccea
NN
6450 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6451 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6452 "RANLIB=$${RANLIB}" \
6453 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6454 dvi) \
1358ccea
NN
6455 || exit 1
6456
60975492 6457@endif binutils
1358ccea 6458
b5422ad7
BM
6459.PHONY: maybe-pdf-binutils pdf-binutils
6460maybe-pdf-binutils:
6461@if binutils
6462maybe-pdf-binutils: pdf-binutils
6463
6464pdf-binutils: \
6465 configure-binutils
6466 @[ -f ./binutils/Makefile ] || exit 0; \
6467 r=`${PWD_COMMAND}`; export r; \
6468 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6469 $(HOST_EXPORTS) \
6470 for flag in $(EXTRA_HOST_FLAGS) ; do \
6471 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6472 done; \
6473 echo "Doing pdf in binutils" ; \
6474 (cd $(HOST_SUBDIR)/binutils && \
6475 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6476 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6477 "RANLIB=$${RANLIB}" \
6478 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6479 pdf) \
6480 || exit 1
6481
6482@endif binutils
6483
f87a2b2e
MS
6484.PHONY: maybe-html-binutils html-binutils
6485maybe-html-binutils:
6486@if binutils
6487maybe-html-binutils: html-binutils
6488
6489html-binutils: \
05750653 6490 configure-binutils
f87a2b2e
MS
6491 @[ -f ./binutils/Makefile ] || exit 0; \
6492 r=`${PWD_COMMAND}`; export r; \
6493 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
6494 $(HOST_EXPORTS) \
6495 for flag in $(EXTRA_HOST_FLAGS) ; do \
6496 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6497 done; \
6498 echo "Doing html in binutils" ; \
215c351a 6499 (cd $(HOST_SUBDIR)/binutils && \
f87a2b2e
MS
6500 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6501 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6502 "RANLIB=$${RANLIB}" \
6503 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6504 html) \
6505 || exit 1
6506
6507@endif binutils
6508
295f4e42
NN
6509.PHONY: maybe-TAGS-binutils TAGS-binutils
6510maybe-TAGS-binutils:
60975492
PB
6511@if binutils
6512maybe-TAGS-binutils: TAGS-binutils
1358ccea 6513
295f4e42 6514TAGS-binutils: \
05750653 6515 configure-binutils
295f4e42 6516 @[ -f ./binutils/Makefile ] || exit 0; \
8c90b13a
L
6517 r=`${PWD_COMMAND}`; export r; \
6518 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6519 $(HOST_EXPORTS) \
d32ab992 6520 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6521 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6522 done; \
295f4e42 6523 echo "Doing TAGS in binutils" ; \
215c351a 6524 (cd $(HOST_SUBDIR)/binutils && \
1358ccea
NN
6525 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6526 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6527 "RANLIB=$${RANLIB}" \
6528 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6529 TAGS) \
1358ccea
NN
6530 || exit 1
6531
60975492 6532@endif binutils
1358ccea 6533
295f4e42
NN
6534.PHONY: maybe-install-info-binutils install-info-binutils
6535maybe-install-info-binutils:
60975492
PB
6536@if binutils
6537maybe-install-info-binutils: install-info-binutils
1358ccea 6538
295f4e42
NN
6539install-info-binutils: \
6540 configure-binutils \
05750653 6541 info-binutils
295f4e42 6542 @[ -f ./binutils/Makefile ] || exit 0; \
8c90b13a
L
6543 r=`${PWD_COMMAND}`; export r; \
6544 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6545 $(HOST_EXPORTS) \
d32ab992 6546 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6547 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6548 done; \
295f4e42 6549 echo "Doing install-info in binutils" ; \
215c351a 6550 (cd $(HOST_SUBDIR)/binutils && \
1358ccea
NN
6551 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6552 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6553 "RANLIB=$${RANLIB}" \
6554 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6555 install-info) \
1358ccea
NN
6556 || exit 1
6557
60975492 6558@endif binutils
1358ccea 6559
65d6e994
CD
6560.PHONY: maybe-install-html-binutils install-html-binutils
6561maybe-install-html-binutils:
6562@if binutils
6563maybe-install-html-binutils: install-html-binutils
6564
6565install-html-binutils: \
6566 configure-binutils \
6567 html-binutils
6568 @[ -f ./binutils/Makefile ] || exit 0; \
6569 r=`${PWD_COMMAND}`; export r; \
6570 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6571 $(HOST_EXPORTS) \
6572 for flag in $(EXTRA_HOST_FLAGS) ; do \
6573 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6574 done; \
6575 echo "Doing install-html in binutils" ; \
6576 (cd $(HOST_SUBDIR)/binutils && \
6577 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6578 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6579 "RANLIB=$${RANLIB}" \
6580 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6581 install-html) \
6582 || exit 1
6583
6584@endif binutils
6585
295f4e42
NN
6586.PHONY: maybe-installcheck-binutils installcheck-binutils
6587maybe-installcheck-binutils:
60975492
PB
6588@if binutils
6589maybe-installcheck-binutils: installcheck-binutils
1358ccea 6590
295f4e42 6591installcheck-binutils: \
05750653 6592 configure-binutils
295f4e42 6593 @[ -f ./binutils/Makefile ] || exit 0; \
8c90b13a
L
6594 r=`${PWD_COMMAND}`; export r; \
6595 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6596 $(HOST_EXPORTS) \
d32ab992 6597 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6598 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6599 done; \
295f4e42 6600 echo "Doing installcheck in binutils" ; \
215c351a 6601 (cd $(HOST_SUBDIR)/binutils && \
1358ccea
NN
6602 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6603 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6604 "RANLIB=$${RANLIB}" \
6605 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6606 installcheck) \
1358ccea
NN
6607 || exit 1
6608
60975492 6609@endif binutils
1358ccea 6610
295f4e42
NN
6611.PHONY: maybe-mostlyclean-binutils mostlyclean-binutils
6612maybe-mostlyclean-binutils:
60975492
PB
6613@if binutils
6614maybe-mostlyclean-binutils: mostlyclean-binutils
1358ccea 6615
05750653 6616mostlyclean-binutils:
295f4e42 6617 @[ -f ./binutils/Makefile ] || exit 0; \
8c90b13a
L
6618 r=`${PWD_COMMAND}`; export r; \
6619 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6620 $(HOST_EXPORTS) \
d32ab992 6621 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6622 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6623 done; \
295f4e42 6624 echo "Doing mostlyclean in binutils" ; \
215c351a 6625 (cd $(HOST_SUBDIR)/binutils && \
1358ccea
NN
6626 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6627 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6628 "RANLIB=$${RANLIB}" \
6629 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6630 mostlyclean) \
1358ccea
NN
6631 || exit 1
6632
60975492 6633@endif binutils
1358ccea 6634
295f4e42
NN
6635.PHONY: maybe-clean-binutils clean-binutils
6636maybe-clean-binutils:
60975492
PB
6637@if binutils
6638maybe-clean-binutils: clean-binutils
d9cdb878 6639
05750653 6640clean-binutils:
295f4e42 6641 @[ -f ./binutils/Makefile ] || exit 0; \
d9cdb878
AC
6642 r=`${PWD_COMMAND}`; export r; \
6643 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6644 $(HOST_EXPORTS) \
d32ab992 6645 for flag in $(EXTRA_HOST_FLAGS) ; do \
d9cdb878
AC
6646 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6647 done; \
295f4e42 6648 echo "Doing clean in binutils" ; \
215c351a 6649 (cd $(HOST_SUBDIR)/binutils && \
d9cdb878
AC
6650 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6651 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6652 "RANLIB=$${RANLIB}" \
6653 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6654 clean) \
d9cdb878
AC
6655 || exit 1
6656
60975492 6657@endif binutils
d9cdb878 6658
295f4e42
NN
6659.PHONY: maybe-distclean-binutils distclean-binutils
6660maybe-distclean-binutils:
60975492
PB
6661@if binutils
6662maybe-distclean-binutils: distclean-binutils
1358ccea 6663
05750653 6664distclean-binutils:
295f4e42 6665 @[ -f ./binutils/Makefile ] || exit 0; \
8c90b13a
L
6666 r=`${PWD_COMMAND}`; export r; \
6667 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6668 $(HOST_EXPORTS) \
d32ab992 6669 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6670 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6671 done; \
295f4e42 6672 echo "Doing distclean in binutils" ; \
215c351a 6673 (cd $(HOST_SUBDIR)/binutils && \
1358ccea
NN
6674 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6675 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6676 "RANLIB=$${RANLIB}" \
6677 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6678 distclean) \
1358ccea
NN
6679 || exit 1
6680
60975492 6681@endif binutils
1358ccea 6682
295f4e42
NN
6683.PHONY: maybe-maintainer-clean-binutils maintainer-clean-binutils
6684maybe-maintainer-clean-binutils:
60975492
PB
6685@if binutils
6686maybe-maintainer-clean-binutils: maintainer-clean-binutils
1358ccea 6687
05750653 6688maintainer-clean-binutils:
295f4e42 6689 @[ -f ./binutils/Makefile ] || exit 0; \
8c90b13a
L
6690 r=`${PWD_COMMAND}`; export r; \
6691 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6692 $(HOST_EXPORTS) \
d32ab992 6693 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6694 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6695 done; \
295f4e42 6696 echo "Doing maintainer-clean in binutils" ; \
215c351a 6697 (cd $(HOST_SUBDIR)/binutils && \
1358ccea
NN
6698 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6699 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6700 "RANLIB=$${RANLIB}" \
6701 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6702 maintainer-clean) \
295f4e42
NN
6703 || exit 1
6704
60975492 6705@endif binutils
295f4e42
NN
6706
6707
25b42232 6708
295f4e42
NN
6709.PHONY: configure-bison maybe-configure-bison
6710maybe-configure-bison:
3ff3adad
PB
6711@if gcc-bootstrap
6712configure-bison: stage_current
6713@endif gcc-bootstrap
60975492
PB
6714@if bison
6715maybe-configure-bison: configure-bison
cc11cc9b 6716configure-bison:
f41d6665 6717 @: $(MAKE); $(unstage)
cc11cc9b 6718 @r=`${PWD_COMMAND}`; export r; \
295f4e42 6719 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
6720 test ! -f $(HOST_SUBDIR)/bison/Makefile || exit 0; \
6721 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bison ; \
4fc4dd12 6722 $(HOST_EXPORTS) \
25b42232
PB
6723 echo Configuring in $(HOST_SUBDIR)/bison; \
6724 cd "$(HOST_SUBDIR)/bison" || exit 1; \
295f4e42 6725 case $(srcdir) in \
215c351a
PB
6726 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
6727 *) topdir=`echo $(HOST_SUBDIR)/bison/ | \
6728 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 6729 esac; \
215c351a
PB
6730 srcdiroption="--srcdir=$${topdir}/bison"; \
6731 libsrcdir="$$s/bison"; \
295f4e42 6732 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 6733 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 6734 || exit 1
60975492 6735@endif bison
1358ccea 6736
25b42232
PB
6737
6738
ce406537
PB
6739
6740
295f4e42
NN
6741.PHONY: all-bison maybe-all-bison
6742maybe-all-bison:
3ff3adad
PB
6743@if gcc-bootstrap
6744all-bison: stage_current
6745@endif gcc-bootstrap
60975492 6746@if bison
7e0b5752 6747TARGET-bison=all
60975492 6748maybe-all-bison: all-bison
295f4e42 6749all-bison: configure-bison
f41d6665 6750 @: $(MAKE); $(unstage)
295f4e42
NN
6751 @r=`${PWD_COMMAND}`; export r; \
6752 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6753 $(HOST_EXPORTS) \
215c351a
PB
6754 (cd $(HOST_SUBDIR)/bison && \
6755 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-bison))
60975492 6756@endif bison
295f4e42 6757
25b42232 6758
ce406537
PB
6759
6760
295f4e42
NN
6761.PHONY: check-bison maybe-check-bison
6762maybe-check-bison:
60975492
PB
6763@if bison
6764maybe-check-bison: check-bison
295f4e42
NN
6765
6766# This module is only tested in a native toolchain.
6767check-bison:
f41d6665 6768 @: $(MAKE); $(unstage)
295f4e42
NN
6769 @if [ '$(host)' = '$(target)' ] ; then \
6770 r=`${PWD_COMMAND}`; export r; \
6771 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6772 $(HOST_EXPORTS) \
215c351a 6773 (cd $(HOST_SUBDIR)/bison && \
ef6e9bc0 6774 $(MAKE) $(FLAGS_TO_PASS) check); \
295f4e42
NN
6775 fi
6776
60975492 6777@endif bison
1358ccea 6778
295f4e42
NN
6779.PHONY: install-bison maybe-install-bison
6780maybe-install-bison:
60975492
PB
6781@if bison
6782maybe-install-bison: install-bison
1358ccea 6783
295f4e42 6784install-bison: installdirs
f41d6665 6785 @: $(MAKE); $(unstage)
295f4e42 6786 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 6787 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6788 $(HOST_EXPORTS) \
215c351a 6789 (cd $(HOST_SUBDIR)/bison && \
ace9ac7b 6790 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 6791
60975492 6792@endif bison
1358ccea 6793
b5422ad7 6794# Other targets (info, dvi, pdf, etc.)
1358ccea 6795
295f4e42
NN
6796.PHONY: maybe-info-bison info-bison
6797maybe-info-bison:
60975492
PB
6798@if bison
6799maybe-info-bison: info-bison
295f4e42
NN
6800
6801info-bison: \
05750653 6802 configure-bison
f41d6665 6803 @: $(MAKE); $(unstage)
295f4e42 6804 @[ -f ./bison/Makefile ] || exit 0; \
8c90b13a
L
6805 r=`${PWD_COMMAND}`; export r; \
6806 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6807 $(HOST_EXPORTS) \
d32ab992 6808 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6809 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6810 done; \
295f4e42 6811 echo "Doing info in bison" ; \
215c351a 6812 (cd $(HOST_SUBDIR)/bison && \
1358ccea
NN
6813 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6814 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6815 "RANLIB=$${RANLIB}" \
6816 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6817 info) \
1358ccea
NN
6818 || exit 1
6819
60975492 6820@endif bison
1358ccea 6821
295f4e42
NN
6822.PHONY: maybe-dvi-bison dvi-bison
6823maybe-dvi-bison:
60975492
PB
6824@if bison
6825maybe-dvi-bison: dvi-bison
1358ccea 6826
295f4e42 6827dvi-bison: \
05750653 6828 configure-bison
f41d6665 6829 @: $(MAKE); $(unstage)
295f4e42 6830 @[ -f ./bison/Makefile ] || exit 0; \
8c90b13a
L
6831 r=`${PWD_COMMAND}`; export r; \
6832 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6833 $(HOST_EXPORTS) \
d32ab992 6834 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6835 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6836 done; \
295f4e42 6837 echo "Doing dvi in bison" ; \
215c351a 6838 (cd $(HOST_SUBDIR)/bison && \
1358ccea
NN
6839 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6840 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6841 "RANLIB=$${RANLIB}" \
6842 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6843 dvi) \
1358ccea
NN
6844 || exit 1
6845
60975492 6846@endif bison
1358ccea 6847
b5422ad7
BM
6848.PHONY: maybe-pdf-bison pdf-bison
6849maybe-pdf-bison:
6850@if bison
6851maybe-pdf-bison: pdf-bison
6852
6853pdf-bison: \
6854 configure-bison
6855 @: $(MAKE); $(unstage)
6856 @[ -f ./bison/Makefile ] || exit 0; \
6857 r=`${PWD_COMMAND}`; export r; \
6858 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6859 $(HOST_EXPORTS) \
6860 for flag in $(EXTRA_HOST_FLAGS) ; do \
6861 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6862 done; \
6863 echo "Doing pdf in bison" ; \
6864 (cd $(HOST_SUBDIR)/bison && \
6865 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6866 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6867 "RANLIB=$${RANLIB}" \
6868 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6869 pdf) \
6870 || exit 1
6871
6872@endif bison
6873
f87a2b2e
MS
6874.PHONY: maybe-html-bison html-bison
6875maybe-html-bison:
6876@if bison
6877maybe-html-bison: html-bison
6878
6879html-bison: \
05750653 6880 configure-bison
f41d6665 6881 @: $(MAKE); $(unstage)
f87a2b2e
MS
6882 @[ -f ./bison/Makefile ] || exit 0; \
6883 r=`${PWD_COMMAND}`; export r; \
6884 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
6885 $(HOST_EXPORTS) \
6886 for flag in $(EXTRA_HOST_FLAGS) ; do \
6887 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6888 done; \
6889 echo "Doing html in bison" ; \
215c351a 6890 (cd $(HOST_SUBDIR)/bison && \
f87a2b2e
MS
6891 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6892 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6893 "RANLIB=$${RANLIB}" \
6894 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6895 html) \
6896 || exit 1
6897
6898@endif bison
6899
295f4e42
NN
6900.PHONY: maybe-TAGS-bison TAGS-bison
6901maybe-TAGS-bison:
60975492
PB
6902@if bison
6903maybe-TAGS-bison: TAGS-bison
1358ccea 6904
295f4e42 6905TAGS-bison: \
05750653 6906 configure-bison
f41d6665 6907 @: $(MAKE); $(unstage)
295f4e42 6908 @[ -f ./bison/Makefile ] || exit 0; \
8c90b13a
L
6909 r=`${PWD_COMMAND}`; export r; \
6910 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6911 $(HOST_EXPORTS) \
d32ab992 6912 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6913 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6914 done; \
295f4e42 6915 echo "Doing TAGS in bison" ; \
215c351a 6916 (cd $(HOST_SUBDIR)/bison && \
1358ccea
NN
6917 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6918 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6919 "RANLIB=$${RANLIB}" \
6920 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6921 TAGS) \
1358ccea
NN
6922 || exit 1
6923
60975492 6924@endif bison
1358ccea 6925
295f4e42
NN
6926.PHONY: maybe-install-info-bison install-info-bison
6927maybe-install-info-bison:
60975492
PB
6928@if bison
6929maybe-install-info-bison: install-info-bison
1358ccea 6930
295f4e42
NN
6931install-info-bison: \
6932 configure-bison \
05750653 6933 info-bison
f41d6665 6934 @: $(MAKE); $(unstage)
295f4e42 6935 @[ -f ./bison/Makefile ] || exit 0; \
8c90b13a
L
6936 r=`${PWD_COMMAND}`; export r; \
6937 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6938 $(HOST_EXPORTS) \
d32ab992 6939 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6940 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6941 done; \
295f4e42 6942 echo "Doing install-info in bison" ; \
215c351a 6943 (cd $(HOST_SUBDIR)/bison && \
1358ccea
NN
6944 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6945 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6946 "RANLIB=$${RANLIB}" \
6947 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 6948 install-info) \
1358ccea
NN
6949 || exit 1
6950
60975492 6951@endif bison
1358ccea 6952
65d6e994
CD
6953.PHONY: maybe-install-html-bison install-html-bison
6954maybe-install-html-bison:
6955@if bison
6956maybe-install-html-bison: install-html-bison
6957
6958install-html-bison: \
6959 configure-bison \
6960 html-bison
6961 @: $(MAKE); $(unstage)
6962 @[ -f ./bison/Makefile ] || exit 0; \
6963 r=`${PWD_COMMAND}`; export r; \
6964 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
6965 $(HOST_EXPORTS) \
6966 for flag in $(EXTRA_HOST_FLAGS) ; do \
6967 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6968 done; \
6969 echo "Doing install-html in bison" ; \
6970 (cd $(HOST_SUBDIR)/bison && \
6971 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6972 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6973 "RANLIB=$${RANLIB}" \
6974 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
6975 install-html) \
6976 || exit 1
6977
6978@endif bison
6979
295f4e42
NN
6980.PHONY: maybe-installcheck-bison installcheck-bison
6981maybe-installcheck-bison:
60975492
PB
6982@if bison
6983maybe-installcheck-bison: installcheck-bison
1358ccea 6984
295f4e42 6985installcheck-bison: \
05750653 6986 configure-bison
f41d6665 6987 @: $(MAKE); $(unstage)
295f4e42 6988 @[ -f ./bison/Makefile ] || exit 0; \
8c90b13a
L
6989 r=`${PWD_COMMAND}`; export r; \
6990 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 6991 $(HOST_EXPORTS) \
d32ab992 6992 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
6993 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
6994 done; \
295f4e42 6995 echo "Doing installcheck in bison" ; \
215c351a 6996 (cd $(HOST_SUBDIR)/bison && \
1358ccea
NN
6997 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
6998 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
6999 "RANLIB=$${RANLIB}" \
7000 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7001 installcheck) \
1358ccea
NN
7002 || exit 1
7003
60975492 7004@endif bison
1358ccea
NN
7005
7006.PHONY: maybe-mostlyclean-bison mostlyclean-bison
7007maybe-mostlyclean-bison:
60975492
PB
7008@if bison
7009maybe-mostlyclean-bison: mostlyclean-bison
1358ccea 7010
05750653 7011mostlyclean-bison:
f41d6665 7012 @: $(MAKE); $(unstage)
1358ccea 7013 @[ -f ./bison/Makefile ] || exit 0; \
8c90b13a
L
7014 r=`${PWD_COMMAND}`; export r; \
7015 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7016 $(HOST_EXPORTS) \
d32ab992 7017 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7018 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7019 done; \
7020 echo "Doing mostlyclean in bison" ; \
215c351a 7021 (cd $(HOST_SUBDIR)/bison && \
1358ccea
NN
7022 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7023 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7024 "RANLIB=$${RANLIB}" \
7025 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7026 mostlyclean) \
1358ccea
NN
7027 || exit 1
7028
60975492 7029@endif bison
1358ccea 7030
295f4e42
NN
7031.PHONY: maybe-clean-bison clean-bison
7032maybe-clean-bison:
60975492
PB
7033@if bison
7034maybe-clean-bison: clean-bison
1358ccea 7035
05750653 7036clean-bison:
f41d6665 7037 @: $(MAKE); $(unstage)
295f4e42 7038 @[ -f ./bison/Makefile ] || exit 0; \
8c90b13a
L
7039 r=`${PWD_COMMAND}`; export r; \
7040 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7041 $(HOST_EXPORTS) \
d32ab992 7042 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7043 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7044 done; \
295f4e42 7045 echo "Doing clean in bison" ; \
215c351a 7046 (cd $(HOST_SUBDIR)/bison && \
1358ccea
NN
7047 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7048 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7049 "RANLIB=$${RANLIB}" \
7050 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7051 clean) \
1358ccea
NN
7052 || exit 1
7053
60975492 7054@endif bison
1358ccea 7055
295f4e42
NN
7056.PHONY: maybe-distclean-bison distclean-bison
7057maybe-distclean-bison:
60975492
PB
7058@if bison
7059maybe-distclean-bison: distclean-bison
1358ccea 7060
05750653 7061distclean-bison:
f41d6665 7062 @: $(MAKE); $(unstage)
295f4e42 7063 @[ -f ./bison/Makefile ] || exit 0; \
8c90b13a
L
7064 r=`${PWD_COMMAND}`; export r; \
7065 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7066 $(HOST_EXPORTS) \
d32ab992 7067 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7068 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7069 done; \
295f4e42 7070 echo "Doing distclean in bison" ; \
215c351a 7071 (cd $(HOST_SUBDIR)/bison && \
1358ccea
NN
7072 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7073 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7074 "RANLIB=$${RANLIB}" \
7075 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7076 distclean) \
1358ccea
NN
7077 || exit 1
7078
60975492 7079@endif bison
1358ccea 7080
295f4e42
NN
7081.PHONY: maybe-maintainer-clean-bison maintainer-clean-bison
7082maybe-maintainer-clean-bison:
60975492
PB
7083@if bison
7084maybe-maintainer-clean-bison: maintainer-clean-bison
1358ccea 7085
05750653 7086maintainer-clean-bison:
f41d6665 7087 @: $(MAKE); $(unstage)
295f4e42 7088 @[ -f ./bison/Makefile ] || exit 0; \
8c90b13a
L
7089 r=`${PWD_COMMAND}`; export r; \
7090 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7091 $(HOST_EXPORTS) \
d32ab992 7092 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7093 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7094 done; \
295f4e42 7095 echo "Doing maintainer-clean in bison" ; \
215c351a 7096 (cd $(HOST_SUBDIR)/bison && \
1358ccea
NN
7097 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7098 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7099 "RANLIB=$${RANLIB}" \
7100 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7101 maintainer-clean) \
1358ccea
NN
7102 || exit 1
7103
60975492 7104@endif bison
1358ccea 7105
1358ccea 7106
25b42232 7107
295f4e42
NN
7108.PHONY: configure-byacc maybe-configure-byacc
7109maybe-configure-byacc:
3ff3adad
PB
7110@if gcc-bootstrap
7111configure-byacc: stage_current
7112@endif gcc-bootstrap
60975492
PB
7113@if byacc
7114maybe-configure-byacc: configure-byacc
cc11cc9b 7115configure-byacc:
f41d6665 7116 @: $(MAKE); $(unstage)
cc11cc9b 7117 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 7118 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
7119 test ! -f $(HOST_SUBDIR)/byacc/Makefile || exit 0; \
7120 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/byacc ; \
4fc4dd12 7121 $(HOST_EXPORTS) \
25b42232
PB
7122 echo Configuring in $(HOST_SUBDIR)/byacc; \
7123 cd "$(HOST_SUBDIR)/byacc" || exit 1; \
295f4e42 7124 case $(srcdir) in \
215c351a
PB
7125 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7126 *) topdir=`echo $(HOST_SUBDIR)/byacc/ | \
7127 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 7128 esac; \
215c351a
PB
7129 srcdiroption="--srcdir=$${topdir}/byacc"; \
7130 libsrcdir="$$s/byacc"; \
295f4e42 7131 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 7132 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 7133 || exit 1
60975492 7134@endif byacc
1358ccea 7135
25b42232
PB
7136
7137
ce406537
PB
7138
7139
295f4e42
NN
7140.PHONY: all-byacc maybe-all-byacc
7141maybe-all-byacc:
3ff3adad
PB
7142@if gcc-bootstrap
7143all-byacc: stage_current
7144@endif gcc-bootstrap
60975492 7145@if byacc
7e0b5752 7146TARGET-byacc=all
60975492 7147maybe-all-byacc: all-byacc
295f4e42 7148all-byacc: configure-byacc
f41d6665 7149 @: $(MAKE); $(unstage)
295f4e42 7150 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 7151 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7152 $(HOST_EXPORTS) \
215c351a
PB
7153 (cd $(HOST_SUBDIR)/byacc && \
7154 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-byacc))
60975492 7155@endif byacc
1358ccea 7156
25b42232 7157
ce406537
PB
7158
7159
295f4e42
NN
7160.PHONY: check-byacc maybe-check-byacc
7161maybe-check-byacc:
60975492
PB
7162@if byacc
7163maybe-check-byacc: check-byacc
1358ccea 7164
295f4e42
NN
7165# This module is only tested in a native toolchain.
7166check-byacc:
f41d6665 7167 @: $(MAKE); $(unstage)
295f4e42
NN
7168 @if [ '$(host)' = '$(target)' ] ; then \
7169 r=`${PWD_COMMAND}`; export r; \
7170 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7171 $(HOST_EXPORTS) \
215c351a 7172 (cd $(HOST_SUBDIR)/byacc && \
ef6e9bc0 7173 $(MAKE) $(FLAGS_TO_PASS) check); \
295f4e42 7174 fi
1358ccea 7175
60975492 7176@endif byacc
295f4e42
NN
7177
7178.PHONY: install-byacc maybe-install-byacc
7179maybe-install-byacc:
60975492
PB
7180@if byacc
7181maybe-install-byacc: install-byacc
295f4e42
NN
7182
7183install-byacc: installdirs
f41d6665 7184 @: $(MAKE); $(unstage)
295f4e42 7185 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 7186 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7187 $(HOST_EXPORTS) \
215c351a 7188 (cd $(HOST_SUBDIR)/byacc && \
ace9ac7b 7189 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 7190
60975492 7191@endif byacc
1358ccea 7192
b5422ad7 7193# Other targets (info, dvi, pdf, etc.)
1358ccea 7194
295f4e42
NN
7195.PHONY: maybe-info-byacc info-byacc
7196maybe-info-byacc:
60975492
PB
7197@if byacc
7198maybe-info-byacc: info-byacc
295f4e42
NN
7199
7200info-byacc: \
05750653 7201 configure-byacc
f41d6665 7202 @: $(MAKE); $(unstage)
295f4e42 7203 @[ -f ./byacc/Makefile ] || exit 0; \
8c90b13a
L
7204 r=`${PWD_COMMAND}`; export r; \
7205 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7206 $(HOST_EXPORTS) \
d32ab992 7207 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7208 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7209 done; \
295f4e42 7210 echo "Doing info in byacc" ; \
215c351a 7211 (cd $(HOST_SUBDIR)/byacc && \
1358ccea
NN
7212 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7213 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7214 "RANLIB=$${RANLIB}" \
7215 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7216 info) \
1358ccea
NN
7217 || exit 1
7218
60975492 7219@endif byacc
1358ccea 7220
295f4e42
NN
7221.PHONY: maybe-dvi-byacc dvi-byacc
7222maybe-dvi-byacc:
60975492
PB
7223@if byacc
7224maybe-dvi-byacc: dvi-byacc
1358ccea 7225
295f4e42 7226dvi-byacc: \
05750653 7227 configure-byacc
f41d6665 7228 @: $(MAKE); $(unstage)
295f4e42 7229 @[ -f ./byacc/Makefile ] || exit 0; \
8c90b13a
L
7230 r=`${PWD_COMMAND}`; export r; \
7231 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7232 $(HOST_EXPORTS) \
d32ab992 7233 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7234 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7235 done; \
295f4e42 7236 echo "Doing dvi in byacc" ; \
215c351a 7237 (cd $(HOST_SUBDIR)/byacc && \
1358ccea
NN
7238 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7239 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7240 "RANLIB=$${RANLIB}" \
7241 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7242 dvi) \
1358ccea
NN
7243 || exit 1
7244
60975492 7245@endif byacc
1358ccea 7246
b5422ad7
BM
7247.PHONY: maybe-pdf-byacc pdf-byacc
7248maybe-pdf-byacc:
7249@if byacc
7250maybe-pdf-byacc: pdf-byacc
7251
7252pdf-byacc: \
7253 configure-byacc
7254 @: $(MAKE); $(unstage)
7255 @[ -f ./byacc/Makefile ] || exit 0; \
7256 r=`${PWD_COMMAND}`; export r; \
7257 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7258 $(HOST_EXPORTS) \
7259 for flag in $(EXTRA_HOST_FLAGS) ; do \
7260 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7261 done; \
7262 echo "Doing pdf in byacc" ; \
7263 (cd $(HOST_SUBDIR)/byacc && \
7264 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7265 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7266 "RANLIB=$${RANLIB}" \
7267 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7268 pdf) \
7269 || exit 1
7270
7271@endif byacc
7272
f87a2b2e
MS
7273.PHONY: maybe-html-byacc html-byacc
7274maybe-html-byacc:
7275@if byacc
7276maybe-html-byacc: html-byacc
7277
7278html-byacc: \
05750653 7279 configure-byacc
f41d6665 7280 @: $(MAKE); $(unstage)
f87a2b2e
MS
7281 @[ -f ./byacc/Makefile ] || exit 0; \
7282 r=`${PWD_COMMAND}`; export r; \
7283 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
7284 $(HOST_EXPORTS) \
7285 for flag in $(EXTRA_HOST_FLAGS) ; do \
7286 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7287 done; \
7288 echo "Doing html in byacc" ; \
215c351a 7289 (cd $(HOST_SUBDIR)/byacc && \
f87a2b2e
MS
7290 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7291 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7292 "RANLIB=$${RANLIB}" \
7293 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7294 html) \
7295 || exit 1
7296
7297@endif byacc
7298
295f4e42
NN
7299.PHONY: maybe-TAGS-byacc TAGS-byacc
7300maybe-TAGS-byacc:
60975492
PB
7301@if byacc
7302maybe-TAGS-byacc: TAGS-byacc
1358ccea 7303
295f4e42 7304TAGS-byacc: \
05750653 7305 configure-byacc
f41d6665 7306 @: $(MAKE); $(unstage)
295f4e42 7307 @[ -f ./byacc/Makefile ] || exit 0; \
8c90b13a
L
7308 r=`${PWD_COMMAND}`; export r; \
7309 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7310 $(HOST_EXPORTS) \
d32ab992 7311 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7312 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7313 done; \
295f4e42 7314 echo "Doing TAGS in byacc" ; \
215c351a 7315 (cd $(HOST_SUBDIR)/byacc && \
1358ccea
NN
7316 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7317 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7318 "RANLIB=$${RANLIB}" \
7319 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7320 TAGS) \
1358ccea
NN
7321 || exit 1
7322
60975492 7323@endif byacc
1358ccea 7324
295f4e42
NN
7325.PHONY: maybe-install-info-byacc install-info-byacc
7326maybe-install-info-byacc:
60975492
PB
7327@if byacc
7328maybe-install-info-byacc: install-info-byacc
1358ccea 7329
295f4e42
NN
7330install-info-byacc: \
7331 configure-byacc \
05750653 7332 info-byacc
f41d6665 7333 @: $(MAKE); $(unstage)
295f4e42 7334 @[ -f ./byacc/Makefile ] || exit 0; \
8c90b13a
L
7335 r=`${PWD_COMMAND}`; export r; \
7336 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7337 $(HOST_EXPORTS) \
d32ab992 7338 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7339 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7340 done; \
295f4e42 7341 echo "Doing install-info in byacc" ; \
215c351a 7342 (cd $(HOST_SUBDIR)/byacc && \
1358ccea
NN
7343 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7344 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7345 "RANLIB=$${RANLIB}" \
7346 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7347 install-info) \
1358ccea
NN
7348 || exit 1
7349
60975492 7350@endif byacc
1358ccea 7351
65d6e994
CD
7352.PHONY: maybe-install-html-byacc install-html-byacc
7353maybe-install-html-byacc:
7354@if byacc
7355maybe-install-html-byacc: install-html-byacc
7356
7357install-html-byacc: \
7358 configure-byacc \
7359 html-byacc
7360 @: $(MAKE); $(unstage)
7361 @[ -f ./byacc/Makefile ] || exit 0; \
7362 r=`${PWD_COMMAND}`; export r; \
7363 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7364 $(HOST_EXPORTS) \
7365 for flag in $(EXTRA_HOST_FLAGS) ; do \
7366 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7367 done; \
7368 echo "Doing install-html in byacc" ; \
7369 (cd $(HOST_SUBDIR)/byacc && \
7370 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7371 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7372 "RANLIB=$${RANLIB}" \
7373 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7374 install-html) \
7375 || exit 1
7376
7377@endif byacc
7378
295f4e42
NN
7379.PHONY: maybe-installcheck-byacc installcheck-byacc
7380maybe-installcheck-byacc:
60975492
PB
7381@if byacc
7382maybe-installcheck-byacc: installcheck-byacc
1358ccea 7383
295f4e42 7384installcheck-byacc: \
05750653 7385 configure-byacc
f41d6665 7386 @: $(MAKE); $(unstage)
295f4e42 7387 @[ -f ./byacc/Makefile ] || exit 0; \
8c90b13a
L
7388 r=`${PWD_COMMAND}`; export r; \
7389 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7390 $(HOST_EXPORTS) \
d32ab992 7391 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7392 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7393 done; \
295f4e42 7394 echo "Doing installcheck in byacc" ; \
215c351a 7395 (cd $(HOST_SUBDIR)/byacc && \
1358ccea
NN
7396 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7397 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7398 "RANLIB=$${RANLIB}" \
7399 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7400 installcheck) \
1358ccea
NN
7401 || exit 1
7402
60975492 7403@endif byacc
1358ccea 7404
295f4e42
NN
7405.PHONY: maybe-mostlyclean-byacc mostlyclean-byacc
7406maybe-mostlyclean-byacc:
60975492
PB
7407@if byacc
7408maybe-mostlyclean-byacc: mostlyclean-byacc
1358ccea 7409
05750653 7410mostlyclean-byacc:
f41d6665 7411 @: $(MAKE); $(unstage)
295f4e42 7412 @[ -f ./byacc/Makefile ] || exit 0; \
8c90b13a
L
7413 r=`${PWD_COMMAND}`; export r; \
7414 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7415 $(HOST_EXPORTS) \
d32ab992 7416 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7417 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7418 done; \
295f4e42 7419 echo "Doing mostlyclean in byacc" ; \
215c351a 7420 (cd $(HOST_SUBDIR)/byacc && \
1358ccea
NN
7421 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7422 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7423 "RANLIB=$${RANLIB}" \
7424 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7425 mostlyclean) \
1358ccea
NN
7426 || exit 1
7427
60975492 7428@endif byacc
1358ccea 7429
295f4e42
NN
7430.PHONY: maybe-clean-byacc clean-byacc
7431maybe-clean-byacc:
60975492
PB
7432@if byacc
7433maybe-clean-byacc: clean-byacc
1358ccea 7434
05750653 7435clean-byacc:
f41d6665 7436 @: $(MAKE); $(unstage)
295f4e42 7437 @[ -f ./byacc/Makefile ] || exit 0; \
8c90b13a
L
7438 r=`${PWD_COMMAND}`; export r; \
7439 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7440 $(HOST_EXPORTS) \
d32ab992 7441 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7442 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7443 done; \
295f4e42 7444 echo "Doing clean in byacc" ; \
215c351a 7445 (cd $(HOST_SUBDIR)/byacc && \
1358ccea
NN
7446 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7447 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7448 "RANLIB=$${RANLIB}" \
7449 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7450 clean) \
1358ccea
NN
7451 || exit 1
7452
60975492 7453@endif byacc
1358ccea 7454
295f4e42
NN
7455.PHONY: maybe-distclean-byacc distclean-byacc
7456maybe-distclean-byacc:
60975492
PB
7457@if byacc
7458maybe-distclean-byacc: distclean-byacc
1358ccea 7459
05750653 7460distclean-byacc:
f41d6665 7461 @: $(MAKE); $(unstage)
295f4e42 7462 @[ -f ./byacc/Makefile ] || exit 0; \
8c90b13a
L
7463 r=`${PWD_COMMAND}`; export r; \
7464 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7465 $(HOST_EXPORTS) \
d32ab992 7466 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7467 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7468 done; \
295f4e42 7469 echo "Doing distclean in byacc" ; \
215c351a 7470 (cd $(HOST_SUBDIR)/byacc && \
1358ccea
NN
7471 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7472 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7473 "RANLIB=$${RANLIB}" \
7474 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7475 distclean) \
1358ccea
NN
7476 || exit 1
7477
60975492 7478@endif byacc
1358ccea 7479
295f4e42
NN
7480.PHONY: maybe-maintainer-clean-byacc maintainer-clean-byacc
7481maybe-maintainer-clean-byacc:
60975492
PB
7482@if byacc
7483maybe-maintainer-clean-byacc: maintainer-clean-byacc
1358ccea 7484
05750653 7485maintainer-clean-byacc:
f41d6665 7486 @: $(MAKE); $(unstage)
295f4e42 7487 @[ -f ./byacc/Makefile ] || exit 0; \
8c90b13a
L
7488 r=`${PWD_COMMAND}`; export r; \
7489 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7490 $(HOST_EXPORTS) \
d32ab992 7491 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7492 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7493 done; \
295f4e42 7494 echo "Doing maintainer-clean in byacc" ; \
215c351a 7495 (cd $(HOST_SUBDIR)/byacc && \
1358ccea
NN
7496 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7497 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7498 "RANLIB=$${RANLIB}" \
7499 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7500 maintainer-clean) \
1358ccea
NN
7501 || exit 1
7502
60975492 7503@endif byacc
1358ccea 7504
1358ccea 7505
25b42232 7506
295f4e42
NN
7507.PHONY: configure-bzip2 maybe-configure-bzip2
7508maybe-configure-bzip2:
3ff3adad
PB
7509@if gcc-bootstrap
7510configure-bzip2: stage_current
7511@endif gcc-bootstrap
60975492
PB
7512@if bzip2
7513maybe-configure-bzip2: configure-bzip2
cc11cc9b 7514configure-bzip2:
f41d6665 7515 @: $(MAKE); $(unstage)
cc11cc9b 7516 @r=`${PWD_COMMAND}`; export r; \
295f4e42 7517 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
7518 test ! -f $(HOST_SUBDIR)/bzip2/Makefile || exit 0; \
7519 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/bzip2 ; \
4fc4dd12 7520 $(HOST_EXPORTS) \
25b42232
PB
7521 echo Configuring in $(HOST_SUBDIR)/bzip2; \
7522 cd "$(HOST_SUBDIR)/bzip2" || exit 1; \
295f4e42 7523 case $(srcdir) in \
215c351a
PB
7524 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7525 *) topdir=`echo $(HOST_SUBDIR)/bzip2/ | \
7526 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 7527 esac; \
215c351a
PB
7528 srcdiroption="--srcdir=$${topdir}/bzip2"; \
7529 libsrcdir="$$s/bzip2"; \
295f4e42 7530 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 7531 $(HOST_CONFIGARGS) $${srcdiroption} \
295f4e42 7532 || exit 1
60975492 7533@endif bzip2
295f4e42 7534
25b42232
PB
7535
7536
ce406537
PB
7537
7538
295f4e42
NN
7539.PHONY: all-bzip2 maybe-all-bzip2
7540maybe-all-bzip2:
3ff3adad
PB
7541@if gcc-bootstrap
7542all-bzip2: stage_current
7543@endif gcc-bootstrap
60975492 7544@if bzip2
7e0b5752 7545TARGET-bzip2=all
60975492 7546maybe-all-bzip2: all-bzip2
295f4e42 7547all-bzip2: configure-bzip2
f41d6665 7548 @: $(MAKE); $(unstage)
295f4e42
NN
7549 @r=`${PWD_COMMAND}`; export r; \
7550 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7551 $(HOST_EXPORTS) \
215c351a
PB
7552 (cd $(HOST_SUBDIR)/bzip2 && \
7553 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-bzip2))
60975492 7554@endif bzip2
295f4e42 7555
25b42232 7556
ce406537
PB
7557
7558
295f4e42
NN
7559.PHONY: check-bzip2 maybe-check-bzip2
7560maybe-check-bzip2:
60975492
PB
7561@if bzip2
7562maybe-check-bzip2: check-bzip2
295f4e42
NN
7563
7564check-bzip2:
f41d6665 7565 @: $(MAKE); $(unstage)
295f4e42
NN
7566 @r=`${PWD_COMMAND}`; export r; \
7567 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7568 $(HOST_EXPORTS) \
215c351a
PB
7569 (cd $(HOST_SUBDIR)/bzip2 && \
7570 $(MAKE) $(FLAGS_TO_PASS) check)
295f4e42 7571
60975492 7572@endif bzip2
295f4e42
NN
7573
7574.PHONY: install-bzip2 maybe-install-bzip2
7575maybe-install-bzip2:
60975492
PB
7576@if bzip2
7577maybe-install-bzip2: install-bzip2
295f4e42
NN
7578
7579install-bzip2: installdirs
f41d6665 7580 @: $(MAKE); $(unstage)
295f4e42
NN
7581 @r=`${PWD_COMMAND}`; export r; \
7582 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7583 $(HOST_EXPORTS) \
215c351a 7584 (cd $(HOST_SUBDIR)/bzip2 && \
ace9ac7b 7585 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 7586
60975492 7587@endif bzip2
295f4e42 7588
b5422ad7 7589# Other targets (info, dvi, pdf, etc.)
295f4e42
NN
7590
7591.PHONY: maybe-info-bzip2 info-bzip2
7592maybe-info-bzip2:
60975492
PB
7593@if bzip2
7594maybe-info-bzip2: info-bzip2
295f4e42
NN
7595
7596info-bzip2: \
05750653 7597 configure-bzip2
f41d6665 7598 @: $(MAKE); $(unstage)
295f4e42 7599 @[ -f ./bzip2/Makefile ] || exit 0; \
8c90b13a
L
7600 r=`${PWD_COMMAND}`; export r; \
7601 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7602 $(HOST_EXPORTS) \
d32ab992 7603 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7604 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7605 done; \
295f4e42 7606 echo "Doing info in bzip2" ; \
215c351a 7607 (cd $(HOST_SUBDIR)/bzip2 && \
1358ccea
NN
7608 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7609 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7610 "RANLIB=$${RANLIB}" \
7611 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7612 info) \
1358ccea
NN
7613 || exit 1
7614
60975492 7615@endif bzip2
1358ccea 7616
295f4e42
NN
7617.PHONY: maybe-dvi-bzip2 dvi-bzip2
7618maybe-dvi-bzip2:
60975492
PB
7619@if bzip2
7620maybe-dvi-bzip2: dvi-bzip2
1358ccea 7621
295f4e42 7622dvi-bzip2: \
05750653 7623 configure-bzip2
f41d6665 7624 @: $(MAKE); $(unstage)
295f4e42 7625 @[ -f ./bzip2/Makefile ] || exit 0; \
8c90b13a
L
7626 r=`${PWD_COMMAND}`; export r; \
7627 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7628 $(HOST_EXPORTS) \
d32ab992 7629 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7630 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7631 done; \
295f4e42 7632 echo "Doing dvi in bzip2" ; \
215c351a 7633 (cd $(HOST_SUBDIR)/bzip2 && \
1358ccea
NN
7634 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7635 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7636 "RANLIB=$${RANLIB}" \
7637 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7638 dvi) \
1358ccea
NN
7639 || exit 1
7640
60975492 7641@endif bzip2
1358ccea 7642
b5422ad7
BM
7643.PHONY: maybe-pdf-bzip2 pdf-bzip2
7644maybe-pdf-bzip2:
7645@if bzip2
7646maybe-pdf-bzip2: pdf-bzip2
7647
7648pdf-bzip2: \
7649 configure-bzip2
7650 @: $(MAKE); $(unstage)
7651 @[ -f ./bzip2/Makefile ] || exit 0; \
7652 r=`${PWD_COMMAND}`; export r; \
7653 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7654 $(HOST_EXPORTS) \
7655 for flag in $(EXTRA_HOST_FLAGS) ; do \
7656 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7657 done; \
7658 echo "Doing pdf in bzip2" ; \
7659 (cd $(HOST_SUBDIR)/bzip2 && \
7660 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7661 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7662 "RANLIB=$${RANLIB}" \
7663 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7664 pdf) \
7665 || exit 1
7666
7667@endif bzip2
7668
f87a2b2e
MS
7669.PHONY: maybe-html-bzip2 html-bzip2
7670maybe-html-bzip2:
7671@if bzip2
7672maybe-html-bzip2: html-bzip2
7673
7674html-bzip2: \
05750653 7675 configure-bzip2
f41d6665 7676 @: $(MAKE); $(unstage)
f87a2b2e
MS
7677 @[ -f ./bzip2/Makefile ] || exit 0; \
7678 r=`${PWD_COMMAND}`; export r; \
7679 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
7680 $(HOST_EXPORTS) \
7681 for flag in $(EXTRA_HOST_FLAGS) ; do \
7682 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7683 done; \
7684 echo "Doing html in bzip2" ; \
215c351a 7685 (cd $(HOST_SUBDIR)/bzip2 && \
f87a2b2e
MS
7686 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7687 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7688 "RANLIB=$${RANLIB}" \
7689 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7690 html) \
7691 || exit 1
7692
7693@endif bzip2
7694
295f4e42
NN
7695.PHONY: maybe-TAGS-bzip2 TAGS-bzip2
7696maybe-TAGS-bzip2:
60975492
PB
7697@if bzip2
7698maybe-TAGS-bzip2: TAGS-bzip2
1358ccea 7699
295f4e42 7700TAGS-bzip2: \
05750653 7701 configure-bzip2
f41d6665 7702 @: $(MAKE); $(unstage)
295f4e42 7703 @[ -f ./bzip2/Makefile ] || exit 0; \
8c90b13a
L
7704 r=`${PWD_COMMAND}`; export r; \
7705 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7706 $(HOST_EXPORTS) \
d32ab992 7707 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7708 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7709 done; \
295f4e42 7710 echo "Doing TAGS in bzip2" ; \
215c351a 7711 (cd $(HOST_SUBDIR)/bzip2 && \
1358ccea
NN
7712 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7713 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7714 "RANLIB=$${RANLIB}" \
7715 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7716 TAGS) \
1358ccea
NN
7717 || exit 1
7718
60975492 7719@endif bzip2
1358ccea 7720
295f4e42
NN
7721.PHONY: maybe-install-info-bzip2 install-info-bzip2
7722maybe-install-info-bzip2:
60975492
PB
7723@if bzip2
7724maybe-install-info-bzip2: install-info-bzip2
1358ccea 7725
295f4e42
NN
7726install-info-bzip2: \
7727 configure-bzip2 \
05750653 7728 info-bzip2
f41d6665 7729 @: $(MAKE); $(unstage)
295f4e42 7730 @[ -f ./bzip2/Makefile ] || exit 0; \
8c90b13a
L
7731 r=`${PWD_COMMAND}`; export r; \
7732 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7733 $(HOST_EXPORTS) \
d32ab992 7734 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7735 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7736 done; \
295f4e42 7737 echo "Doing install-info in bzip2" ; \
215c351a 7738 (cd $(HOST_SUBDIR)/bzip2 && \
1358ccea
NN
7739 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7740 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7741 "RANLIB=$${RANLIB}" \
7742 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7743 install-info) \
1358ccea
NN
7744 || exit 1
7745
60975492 7746@endif bzip2
1358ccea 7747
65d6e994
CD
7748.PHONY: maybe-install-html-bzip2 install-html-bzip2
7749maybe-install-html-bzip2:
7750@if bzip2
7751maybe-install-html-bzip2: install-html-bzip2
7752
7753install-html-bzip2: \
7754 configure-bzip2 \
7755 html-bzip2
7756 @: $(MAKE); $(unstage)
7757 @[ -f ./bzip2/Makefile ] || exit 0; \
7758 r=`${PWD_COMMAND}`; export r; \
7759 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
7760 $(HOST_EXPORTS) \
7761 for flag in $(EXTRA_HOST_FLAGS) ; do \
7762 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7763 done; \
7764 echo "Doing install-html in bzip2" ; \
7765 (cd $(HOST_SUBDIR)/bzip2 && \
7766 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7767 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7768 "RANLIB=$${RANLIB}" \
7769 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
7770 install-html) \
7771 || exit 1
7772
7773@endif bzip2
7774
295f4e42
NN
7775.PHONY: maybe-installcheck-bzip2 installcheck-bzip2
7776maybe-installcheck-bzip2:
60975492
PB
7777@if bzip2
7778maybe-installcheck-bzip2: installcheck-bzip2
295f4e42
NN
7779
7780installcheck-bzip2: \
05750653 7781 configure-bzip2
f41d6665 7782 @: $(MAKE); $(unstage)
295f4e42 7783 @[ -f ./bzip2/Makefile ] || exit 0; \
8c90b13a
L
7784 r=`${PWD_COMMAND}`; export r; \
7785 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7786 $(HOST_EXPORTS) \
d32ab992 7787 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7788 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7789 done; \
295f4e42 7790 echo "Doing installcheck in bzip2" ; \
215c351a 7791 (cd $(HOST_SUBDIR)/bzip2 && \
1358ccea
NN
7792 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7793 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7794 "RANLIB=$${RANLIB}" \
7795 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7796 installcheck) \
1358ccea
NN
7797 || exit 1
7798
60975492 7799@endif bzip2
1358ccea 7800
295f4e42
NN
7801.PHONY: maybe-mostlyclean-bzip2 mostlyclean-bzip2
7802maybe-mostlyclean-bzip2:
60975492
PB
7803@if bzip2
7804maybe-mostlyclean-bzip2: mostlyclean-bzip2
1358ccea 7805
05750653 7806mostlyclean-bzip2:
f41d6665 7807 @: $(MAKE); $(unstage)
295f4e42 7808 @[ -f ./bzip2/Makefile ] || exit 0; \
8c90b13a
L
7809 r=`${PWD_COMMAND}`; export r; \
7810 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7811 $(HOST_EXPORTS) \
d32ab992 7812 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7813 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7814 done; \
295f4e42 7815 echo "Doing mostlyclean in bzip2" ; \
215c351a 7816 (cd $(HOST_SUBDIR)/bzip2 && \
1358ccea
NN
7817 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7818 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7819 "RANLIB=$${RANLIB}" \
7820 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7821 mostlyclean) \
1358ccea
NN
7822 || exit 1
7823
60975492 7824@endif bzip2
1358ccea 7825
295f4e42
NN
7826.PHONY: maybe-clean-bzip2 clean-bzip2
7827maybe-clean-bzip2:
60975492
PB
7828@if bzip2
7829maybe-clean-bzip2: clean-bzip2
1358ccea 7830
05750653 7831clean-bzip2:
f41d6665 7832 @: $(MAKE); $(unstage)
295f4e42 7833 @[ -f ./bzip2/Makefile ] || exit 0; \
8c90b13a
L
7834 r=`${PWD_COMMAND}`; export r; \
7835 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7836 $(HOST_EXPORTS) \
d32ab992 7837 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7838 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7839 done; \
295f4e42 7840 echo "Doing clean in bzip2" ; \
215c351a 7841 (cd $(HOST_SUBDIR)/bzip2 && \
1358ccea
NN
7842 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7843 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7844 "RANLIB=$${RANLIB}" \
7845 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7846 clean) \
1358ccea
NN
7847 || exit 1
7848
60975492 7849@endif bzip2
1358ccea 7850
295f4e42
NN
7851.PHONY: maybe-distclean-bzip2 distclean-bzip2
7852maybe-distclean-bzip2:
60975492
PB
7853@if bzip2
7854maybe-distclean-bzip2: distclean-bzip2
1358ccea 7855
05750653 7856distclean-bzip2:
f41d6665 7857 @: $(MAKE); $(unstage)
295f4e42 7858 @[ -f ./bzip2/Makefile ] || exit 0; \
8c90b13a
L
7859 r=`${PWD_COMMAND}`; export r; \
7860 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7861 $(HOST_EXPORTS) \
d32ab992 7862 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7863 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7864 done; \
295f4e42 7865 echo "Doing distclean in bzip2" ; \
215c351a 7866 (cd $(HOST_SUBDIR)/bzip2 && \
1358ccea
NN
7867 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7868 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7869 "RANLIB=$${RANLIB}" \
7870 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7871 distclean) \
1358ccea
NN
7872 || exit 1
7873
60975492 7874@endif bzip2
1358ccea 7875
295f4e42
NN
7876.PHONY: maybe-maintainer-clean-bzip2 maintainer-clean-bzip2
7877maybe-maintainer-clean-bzip2:
60975492
PB
7878@if bzip2
7879maybe-maintainer-clean-bzip2: maintainer-clean-bzip2
1358ccea 7880
05750653 7881maintainer-clean-bzip2:
f41d6665 7882 @: $(MAKE); $(unstage)
295f4e42 7883 @[ -f ./bzip2/Makefile ] || exit 0; \
8c90b13a
L
7884 r=`${PWD_COMMAND}`; export r; \
7885 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7886 $(HOST_EXPORTS) \
d32ab992 7887 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
7888 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
7889 done; \
295f4e42 7890 echo "Doing maintainer-clean in bzip2" ; \
215c351a 7891 (cd $(HOST_SUBDIR)/bzip2 && \
1358ccea
NN
7892 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
7893 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
7894 "RANLIB=$${RANLIB}" \
7895 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 7896 maintainer-clean) \
1358ccea
NN
7897 || exit 1
7898
60975492 7899@endif bzip2
1358ccea 7900
1358ccea 7901
25b42232 7902
295f4e42
NN
7903.PHONY: configure-dejagnu maybe-configure-dejagnu
7904maybe-configure-dejagnu:
3ff3adad
PB
7905@if gcc-bootstrap
7906configure-dejagnu: stage_current
7907@endif gcc-bootstrap
60975492
PB
7908@if dejagnu
7909maybe-configure-dejagnu: configure-dejagnu
cc11cc9b 7910configure-dejagnu:
f41d6665 7911 @: $(MAKE); $(unstage)
cc11cc9b 7912 @r=`${PWD_COMMAND}`; export r; \
295f4e42 7913 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
7914 test ! -f $(HOST_SUBDIR)/dejagnu/Makefile || exit 0; \
7915 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/dejagnu ; \
4fc4dd12 7916 $(HOST_EXPORTS) \
25b42232
PB
7917 echo Configuring in $(HOST_SUBDIR)/dejagnu; \
7918 cd "$(HOST_SUBDIR)/dejagnu" || exit 1; \
295f4e42 7919 case $(srcdir) in \
215c351a
PB
7920 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
7921 *) topdir=`echo $(HOST_SUBDIR)/dejagnu/ | \
7922 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 7923 esac; \
215c351a
PB
7924 srcdiroption="--srcdir=$${topdir}/dejagnu"; \
7925 libsrcdir="$$s/dejagnu"; \
295f4e42 7926 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 7927 $(HOST_CONFIGARGS) $${srcdiroption} \
295f4e42 7928 || exit 1
60975492 7929@endif dejagnu
295f4e42 7930
25b42232
PB
7931
7932
ce406537
PB
7933
7934
295f4e42
NN
7935.PHONY: all-dejagnu maybe-all-dejagnu
7936maybe-all-dejagnu:
3ff3adad
PB
7937@if gcc-bootstrap
7938all-dejagnu: stage_current
7939@endif gcc-bootstrap
60975492 7940@if dejagnu
7e0b5752 7941TARGET-dejagnu=all
60975492 7942maybe-all-dejagnu: all-dejagnu
295f4e42 7943all-dejagnu: configure-dejagnu
f41d6665 7944 @: $(MAKE); $(unstage)
295f4e42
NN
7945 @r=`${PWD_COMMAND}`; export r; \
7946 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7947 $(HOST_EXPORTS) \
215c351a
PB
7948 (cd $(HOST_SUBDIR)/dejagnu && \
7949 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-dejagnu))
60975492 7950@endif dejagnu
295f4e42 7951
25b42232 7952
ce406537
PB
7953
7954
295f4e42
NN
7955.PHONY: check-dejagnu maybe-check-dejagnu
7956maybe-check-dejagnu:
60975492
PB
7957@if dejagnu
7958maybe-check-dejagnu: check-dejagnu
295f4e42
NN
7959
7960check-dejagnu:
f41d6665 7961 @: $(MAKE); $(unstage)
295f4e42
NN
7962 @r=`${PWD_COMMAND}`; export r; \
7963 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7964 $(HOST_EXPORTS) \
215c351a
PB
7965 (cd $(HOST_SUBDIR)/dejagnu && \
7966 $(MAKE) $(FLAGS_TO_PASS) check)
295f4e42 7967
60975492 7968@endif dejagnu
295f4e42
NN
7969
7970.PHONY: install-dejagnu maybe-install-dejagnu
7971maybe-install-dejagnu:
60975492
PB
7972@if dejagnu
7973maybe-install-dejagnu: install-dejagnu
295f4e42
NN
7974
7975install-dejagnu: installdirs
f41d6665 7976 @: $(MAKE); $(unstage)
295f4e42
NN
7977 @r=`${PWD_COMMAND}`; export r; \
7978 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7979 $(HOST_EXPORTS) \
215c351a 7980 (cd $(HOST_SUBDIR)/dejagnu && \
ace9ac7b 7981 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 7982
60975492 7983@endif dejagnu
295f4e42 7984
b5422ad7 7985# Other targets (info, dvi, pdf, etc.)
295f4e42
NN
7986
7987.PHONY: maybe-info-dejagnu info-dejagnu
7988maybe-info-dejagnu:
60975492
PB
7989@if dejagnu
7990maybe-info-dejagnu: info-dejagnu
295f4e42
NN
7991
7992info-dejagnu: \
05750653 7993 configure-dejagnu
f41d6665 7994 @: $(MAKE); $(unstage)
295f4e42 7995 @[ -f ./dejagnu/Makefile ] || exit 0; \
8c90b13a
L
7996 r=`${PWD_COMMAND}`; export r; \
7997 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 7998 $(HOST_EXPORTS) \
d32ab992 7999 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8000 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8001 done; \
295f4e42 8002 echo "Doing info in dejagnu" ; \
215c351a 8003 (cd $(HOST_SUBDIR)/dejagnu && \
1358ccea
NN
8004 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8005 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8006 "RANLIB=$${RANLIB}" \
8007 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8008 info) \
1358ccea
NN
8009 || exit 1
8010
60975492 8011@endif dejagnu
1358ccea 8012
295f4e42
NN
8013.PHONY: maybe-dvi-dejagnu dvi-dejagnu
8014maybe-dvi-dejagnu:
60975492
PB
8015@if dejagnu
8016maybe-dvi-dejagnu: dvi-dejagnu
1358ccea 8017
295f4e42 8018dvi-dejagnu: \
05750653 8019 configure-dejagnu
f41d6665 8020 @: $(MAKE); $(unstage)
295f4e42 8021 @[ -f ./dejagnu/Makefile ] || exit 0; \
8c90b13a
L
8022 r=`${PWD_COMMAND}`; export r; \
8023 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8024 $(HOST_EXPORTS) \
d32ab992 8025 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8026 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8027 done; \
295f4e42 8028 echo "Doing dvi in dejagnu" ; \
215c351a 8029 (cd $(HOST_SUBDIR)/dejagnu && \
1358ccea
NN
8030 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8031 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8032 "RANLIB=$${RANLIB}" \
8033 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8034 dvi) \
1358ccea
NN
8035 || exit 1
8036
60975492 8037@endif dejagnu
1358ccea 8038
b5422ad7
BM
8039.PHONY: maybe-pdf-dejagnu pdf-dejagnu
8040maybe-pdf-dejagnu:
8041@if dejagnu
8042maybe-pdf-dejagnu: pdf-dejagnu
8043
8044pdf-dejagnu: \
8045 configure-dejagnu
8046 @: $(MAKE); $(unstage)
8047 @[ -f ./dejagnu/Makefile ] || exit 0; \
8048 r=`${PWD_COMMAND}`; export r; \
8049 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8050 $(HOST_EXPORTS) \
8051 for flag in $(EXTRA_HOST_FLAGS) ; do \
8052 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8053 done; \
8054 echo "Doing pdf in dejagnu" ; \
8055 (cd $(HOST_SUBDIR)/dejagnu && \
8056 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8057 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8058 "RANLIB=$${RANLIB}" \
8059 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8060 pdf) \
8061 || exit 1
8062
8063@endif dejagnu
8064
f87a2b2e
MS
8065.PHONY: maybe-html-dejagnu html-dejagnu
8066maybe-html-dejagnu:
8067@if dejagnu
8068maybe-html-dejagnu: html-dejagnu
8069
8070html-dejagnu: \
05750653 8071 configure-dejagnu
f41d6665 8072 @: $(MAKE); $(unstage)
f87a2b2e
MS
8073 @[ -f ./dejagnu/Makefile ] || exit 0; \
8074 r=`${PWD_COMMAND}`; export r; \
8075 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
8076 $(HOST_EXPORTS) \
8077 for flag in $(EXTRA_HOST_FLAGS) ; do \
8078 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8079 done; \
8080 echo "Doing html in dejagnu" ; \
215c351a 8081 (cd $(HOST_SUBDIR)/dejagnu && \
f87a2b2e
MS
8082 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8083 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8084 "RANLIB=$${RANLIB}" \
8085 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8086 html) \
8087 || exit 1
8088
8089@endif dejagnu
8090
295f4e42
NN
8091.PHONY: maybe-TAGS-dejagnu TAGS-dejagnu
8092maybe-TAGS-dejagnu:
60975492
PB
8093@if dejagnu
8094maybe-TAGS-dejagnu: TAGS-dejagnu
1358ccea 8095
295f4e42 8096TAGS-dejagnu: \
05750653 8097 configure-dejagnu
f41d6665 8098 @: $(MAKE); $(unstage)
295f4e42 8099 @[ -f ./dejagnu/Makefile ] || exit 0; \
8c90b13a
L
8100 r=`${PWD_COMMAND}`; export r; \
8101 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8102 $(HOST_EXPORTS) \
d32ab992 8103 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8104 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8105 done; \
295f4e42 8106 echo "Doing TAGS in dejagnu" ; \
215c351a 8107 (cd $(HOST_SUBDIR)/dejagnu && \
1358ccea
NN
8108 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8109 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8110 "RANLIB=$${RANLIB}" \
8111 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8112 TAGS) \
1358ccea
NN
8113 || exit 1
8114
60975492 8115@endif dejagnu
1358ccea 8116
295f4e42
NN
8117.PHONY: maybe-install-info-dejagnu install-info-dejagnu
8118maybe-install-info-dejagnu:
60975492
PB
8119@if dejagnu
8120maybe-install-info-dejagnu: install-info-dejagnu
1358ccea 8121
295f4e42
NN
8122install-info-dejagnu: \
8123 configure-dejagnu \
05750653 8124 info-dejagnu
f41d6665 8125 @: $(MAKE); $(unstage)
295f4e42 8126 @[ -f ./dejagnu/Makefile ] || exit 0; \
8c90b13a
L
8127 r=`${PWD_COMMAND}`; export r; \
8128 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8129 $(HOST_EXPORTS) \
d32ab992 8130 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8131 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8132 done; \
295f4e42 8133 echo "Doing install-info in dejagnu" ; \
215c351a 8134 (cd $(HOST_SUBDIR)/dejagnu && \
1358ccea
NN
8135 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8136 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8137 "RANLIB=$${RANLIB}" \
8138 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8139 install-info) \
1358ccea
NN
8140 || exit 1
8141
60975492 8142@endif dejagnu
1358ccea 8143
65d6e994
CD
8144.PHONY: maybe-install-html-dejagnu install-html-dejagnu
8145maybe-install-html-dejagnu:
8146@if dejagnu
8147maybe-install-html-dejagnu: install-html-dejagnu
8148
8149install-html-dejagnu: \
8150 configure-dejagnu \
8151 html-dejagnu
8152 @: $(MAKE); $(unstage)
8153 @[ -f ./dejagnu/Makefile ] || exit 0; \
8154 r=`${PWD_COMMAND}`; export r; \
8155 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8156 $(HOST_EXPORTS) \
8157 for flag in $(EXTRA_HOST_FLAGS) ; do \
8158 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8159 done; \
8160 echo "Doing install-html in dejagnu" ; \
8161 (cd $(HOST_SUBDIR)/dejagnu && \
8162 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8163 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8164 "RANLIB=$${RANLIB}" \
8165 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8166 install-html) \
8167 || exit 1
8168
8169@endif dejagnu
8170
295f4e42
NN
8171.PHONY: maybe-installcheck-dejagnu installcheck-dejagnu
8172maybe-installcheck-dejagnu:
60975492
PB
8173@if dejagnu
8174maybe-installcheck-dejagnu: installcheck-dejagnu
1358ccea 8175
295f4e42 8176installcheck-dejagnu: \
05750653 8177 configure-dejagnu
f41d6665 8178 @: $(MAKE); $(unstage)
295f4e42 8179 @[ -f ./dejagnu/Makefile ] || exit 0; \
8c90b13a
L
8180 r=`${PWD_COMMAND}`; export r; \
8181 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8182 $(HOST_EXPORTS) \
d32ab992 8183 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8184 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8185 done; \
295f4e42 8186 echo "Doing installcheck in dejagnu" ; \
215c351a 8187 (cd $(HOST_SUBDIR)/dejagnu && \
1358ccea
NN
8188 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8189 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8190 "RANLIB=$${RANLIB}" \
8191 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8192 installcheck) \
1358ccea
NN
8193 || exit 1
8194
60975492 8195@endif dejagnu
1358ccea 8196
295f4e42
NN
8197.PHONY: maybe-mostlyclean-dejagnu mostlyclean-dejagnu
8198maybe-mostlyclean-dejagnu:
60975492
PB
8199@if dejagnu
8200maybe-mostlyclean-dejagnu: mostlyclean-dejagnu
1358ccea 8201
05750653 8202mostlyclean-dejagnu:
f41d6665 8203 @: $(MAKE); $(unstage)
295f4e42 8204 @[ -f ./dejagnu/Makefile ] || exit 0; \
8c90b13a
L
8205 r=`${PWD_COMMAND}`; export r; \
8206 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8207 $(HOST_EXPORTS) \
d32ab992 8208 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8209 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8210 done; \
295f4e42 8211 echo "Doing mostlyclean in dejagnu" ; \
215c351a 8212 (cd $(HOST_SUBDIR)/dejagnu && \
1358ccea
NN
8213 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8214 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8215 "RANLIB=$${RANLIB}" \
8216 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8217 mostlyclean) \
1358ccea
NN
8218 || exit 1
8219
60975492 8220@endif dejagnu
1358ccea 8221
295f4e42
NN
8222.PHONY: maybe-clean-dejagnu clean-dejagnu
8223maybe-clean-dejagnu:
60975492
PB
8224@if dejagnu
8225maybe-clean-dejagnu: clean-dejagnu
1358ccea 8226
05750653 8227clean-dejagnu:
f41d6665 8228 @: $(MAKE); $(unstage)
295f4e42 8229 @[ -f ./dejagnu/Makefile ] || exit 0; \
8c90b13a
L
8230 r=`${PWD_COMMAND}`; export r; \
8231 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8232 $(HOST_EXPORTS) \
d32ab992 8233 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8234 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8235 done; \
295f4e42 8236 echo "Doing clean in dejagnu" ; \
215c351a 8237 (cd $(HOST_SUBDIR)/dejagnu && \
1358ccea
NN
8238 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8239 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8240 "RANLIB=$${RANLIB}" \
8241 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8242 clean) \
1358ccea
NN
8243 || exit 1
8244
60975492 8245@endif dejagnu
1358ccea 8246
295f4e42
NN
8247.PHONY: maybe-distclean-dejagnu distclean-dejagnu
8248maybe-distclean-dejagnu:
60975492
PB
8249@if dejagnu
8250maybe-distclean-dejagnu: distclean-dejagnu
1358ccea 8251
05750653 8252distclean-dejagnu:
f41d6665 8253 @: $(MAKE); $(unstage)
295f4e42 8254 @[ -f ./dejagnu/Makefile ] || exit 0; \
8c90b13a
L
8255 r=`${PWD_COMMAND}`; export r; \
8256 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8257 $(HOST_EXPORTS) \
d32ab992 8258 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8259 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8260 done; \
295f4e42 8261 echo "Doing distclean in dejagnu" ; \
215c351a 8262 (cd $(HOST_SUBDIR)/dejagnu && \
1358ccea
NN
8263 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8264 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8265 "RANLIB=$${RANLIB}" \
8266 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8267 distclean) \
1358ccea
NN
8268 || exit 1
8269
60975492 8270@endif dejagnu
1358ccea 8271
295f4e42
NN
8272.PHONY: maybe-maintainer-clean-dejagnu maintainer-clean-dejagnu
8273maybe-maintainer-clean-dejagnu:
60975492
PB
8274@if dejagnu
8275maybe-maintainer-clean-dejagnu: maintainer-clean-dejagnu
1358ccea 8276
05750653 8277maintainer-clean-dejagnu:
f41d6665 8278 @: $(MAKE); $(unstage)
295f4e42 8279 @[ -f ./dejagnu/Makefile ] || exit 0; \
8c90b13a
L
8280 r=`${PWD_COMMAND}`; export r; \
8281 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8282 $(HOST_EXPORTS) \
d32ab992 8283 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8284 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8285 done; \
295f4e42 8286 echo "Doing maintainer-clean in dejagnu" ; \
215c351a 8287 (cd $(HOST_SUBDIR)/dejagnu && \
1358ccea
NN
8288 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8289 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8290 "RANLIB=$${RANLIB}" \
8291 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8292 maintainer-clean) \
1358ccea
NN
8293 || exit 1
8294
60975492 8295@endif dejagnu
1358ccea 8296
1358ccea 8297
25b42232 8298
295f4e42
NN
8299.PHONY: configure-diff maybe-configure-diff
8300maybe-configure-diff:
3ff3adad
PB
8301@if gcc-bootstrap
8302configure-diff: stage_current
8303@endif gcc-bootstrap
60975492
PB
8304@if diff
8305maybe-configure-diff: configure-diff
cc11cc9b 8306configure-diff:
f41d6665 8307 @: $(MAKE); $(unstage)
cc11cc9b 8308 @r=`${PWD_COMMAND}`; export r; \
295f4e42 8309 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
8310 test ! -f $(HOST_SUBDIR)/diff/Makefile || exit 0; \
8311 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/diff ; \
4fc4dd12 8312 $(HOST_EXPORTS) \
25b42232
PB
8313 echo Configuring in $(HOST_SUBDIR)/diff; \
8314 cd "$(HOST_SUBDIR)/diff" || exit 1; \
295f4e42 8315 case $(srcdir) in \
215c351a
PB
8316 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8317 *) topdir=`echo $(HOST_SUBDIR)/diff/ | \
8318 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 8319 esac; \
215c351a
PB
8320 srcdiroption="--srcdir=$${topdir}/diff"; \
8321 libsrcdir="$$s/diff"; \
295f4e42 8322 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 8323 $(HOST_CONFIGARGS) $${srcdiroption} \
295f4e42 8324 || exit 1
60975492 8325@endif diff
295f4e42 8326
25b42232
PB
8327
8328
ce406537
PB
8329
8330
295f4e42
NN
8331.PHONY: all-diff maybe-all-diff
8332maybe-all-diff:
3ff3adad
PB
8333@if gcc-bootstrap
8334all-diff: stage_current
8335@endif gcc-bootstrap
60975492 8336@if diff
7e0b5752 8337TARGET-diff=all
60975492 8338maybe-all-diff: all-diff
295f4e42 8339all-diff: configure-diff
f41d6665 8340 @: $(MAKE); $(unstage)
295f4e42
NN
8341 @r=`${PWD_COMMAND}`; export r; \
8342 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8343 $(HOST_EXPORTS) \
215c351a
PB
8344 (cd $(HOST_SUBDIR)/diff && \
8345 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-diff))
60975492 8346@endif diff
295f4e42 8347
25b42232 8348
ce406537
PB
8349
8350
295f4e42
NN
8351.PHONY: check-diff maybe-check-diff
8352maybe-check-diff:
60975492
PB
8353@if diff
8354maybe-check-diff: check-diff
295f4e42
NN
8355
8356check-diff:
f41d6665 8357 @: $(MAKE); $(unstage)
295f4e42
NN
8358 @r=`${PWD_COMMAND}`; export r; \
8359 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8360 $(HOST_EXPORTS) \
215c351a
PB
8361 (cd $(HOST_SUBDIR)/diff && \
8362 $(MAKE) $(FLAGS_TO_PASS) check)
295f4e42 8363
60975492 8364@endif diff
295f4e42
NN
8365
8366.PHONY: install-diff maybe-install-diff
8367maybe-install-diff:
60975492
PB
8368@if diff
8369maybe-install-diff: install-diff
295f4e42
NN
8370
8371install-diff: installdirs
f41d6665 8372 @: $(MAKE); $(unstage)
295f4e42
NN
8373 @r=`${PWD_COMMAND}`; export r; \
8374 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8375 $(HOST_EXPORTS) \
215c351a 8376 (cd $(HOST_SUBDIR)/diff && \
ace9ac7b 8377 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 8378
60975492 8379@endif diff
295f4e42 8380
b5422ad7 8381# Other targets (info, dvi, pdf, etc.)
295f4e42
NN
8382
8383.PHONY: maybe-info-diff info-diff
8384maybe-info-diff:
60975492
PB
8385@if diff
8386maybe-info-diff: info-diff
295f4e42
NN
8387
8388info-diff: \
05750653 8389 configure-diff
f41d6665 8390 @: $(MAKE); $(unstage)
295f4e42 8391 @[ -f ./diff/Makefile ] || exit 0; \
8c90b13a
L
8392 r=`${PWD_COMMAND}`; export r; \
8393 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8394 $(HOST_EXPORTS) \
d32ab992 8395 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8396 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8397 done; \
295f4e42 8398 echo "Doing info in diff" ; \
215c351a 8399 (cd $(HOST_SUBDIR)/diff && \
1358ccea
NN
8400 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8401 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8402 "RANLIB=$${RANLIB}" \
8403 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8404 info) \
1358ccea
NN
8405 || exit 1
8406
60975492 8407@endif diff
1358ccea 8408
295f4e42
NN
8409.PHONY: maybe-dvi-diff dvi-diff
8410maybe-dvi-diff:
60975492
PB
8411@if diff
8412maybe-dvi-diff: dvi-diff
1358ccea 8413
295f4e42 8414dvi-diff: \
05750653 8415 configure-diff
f41d6665 8416 @: $(MAKE); $(unstage)
295f4e42 8417 @[ -f ./diff/Makefile ] || exit 0; \
8c90b13a
L
8418 r=`${PWD_COMMAND}`; export r; \
8419 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8420 $(HOST_EXPORTS) \
d32ab992 8421 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8422 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8423 done; \
295f4e42 8424 echo "Doing dvi in diff" ; \
215c351a 8425 (cd $(HOST_SUBDIR)/diff && \
1358ccea
NN
8426 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8427 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8428 "RANLIB=$${RANLIB}" \
8429 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8430 dvi) \
1358ccea
NN
8431 || exit 1
8432
60975492 8433@endif diff
1358ccea 8434
b5422ad7
BM
8435.PHONY: maybe-pdf-diff pdf-diff
8436maybe-pdf-diff:
8437@if diff
8438maybe-pdf-diff: pdf-diff
8439
8440pdf-diff: \
8441 configure-diff
8442 @: $(MAKE); $(unstage)
8443 @[ -f ./diff/Makefile ] || exit 0; \
8444 r=`${PWD_COMMAND}`; export r; \
8445 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8446 $(HOST_EXPORTS) \
8447 for flag in $(EXTRA_HOST_FLAGS) ; do \
8448 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8449 done; \
8450 echo "Doing pdf in diff" ; \
8451 (cd $(HOST_SUBDIR)/diff && \
8452 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8453 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8454 "RANLIB=$${RANLIB}" \
8455 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8456 pdf) \
8457 || exit 1
8458
8459@endif diff
8460
f87a2b2e
MS
8461.PHONY: maybe-html-diff html-diff
8462maybe-html-diff:
8463@if diff
8464maybe-html-diff: html-diff
8465
8466html-diff: \
05750653 8467 configure-diff
f41d6665 8468 @: $(MAKE); $(unstage)
f87a2b2e
MS
8469 @[ -f ./diff/Makefile ] || exit 0; \
8470 r=`${PWD_COMMAND}`; export r; \
8471 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
8472 $(HOST_EXPORTS) \
8473 for flag in $(EXTRA_HOST_FLAGS) ; do \
8474 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8475 done; \
8476 echo "Doing html in diff" ; \
215c351a 8477 (cd $(HOST_SUBDIR)/diff && \
f87a2b2e
MS
8478 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8479 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8480 "RANLIB=$${RANLIB}" \
8481 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8482 html) \
8483 || exit 1
8484
8485@endif diff
8486
295f4e42
NN
8487.PHONY: maybe-TAGS-diff TAGS-diff
8488maybe-TAGS-diff:
60975492
PB
8489@if diff
8490maybe-TAGS-diff: TAGS-diff
1358ccea 8491
295f4e42 8492TAGS-diff: \
05750653 8493 configure-diff
f41d6665 8494 @: $(MAKE); $(unstage)
295f4e42 8495 @[ -f ./diff/Makefile ] || exit 0; \
8c90b13a
L
8496 r=`${PWD_COMMAND}`; export r; \
8497 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8498 $(HOST_EXPORTS) \
d32ab992 8499 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8500 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8501 done; \
295f4e42 8502 echo "Doing TAGS in diff" ; \
215c351a 8503 (cd $(HOST_SUBDIR)/diff && \
1358ccea
NN
8504 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8505 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8506 "RANLIB=$${RANLIB}" \
8507 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8508 TAGS) \
1358ccea
NN
8509 || exit 1
8510
60975492 8511@endif diff
1358ccea 8512
295f4e42
NN
8513.PHONY: maybe-install-info-diff install-info-diff
8514maybe-install-info-diff:
60975492
PB
8515@if diff
8516maybe-install-info-diff: install-info-diff
1358ccea 8517
295f4e42
NN
8518install-info-diff: \
8519 configure-diff \
05750653 8520 info-diff
f41d6665 8521 @: $(MAKE); $(unstage)
295f4e42 8522 @[ -f ./diff/Makefile ] || exit 0; \
8c90b13a
L
8523 r=`${PWD_COMMAND}`; export r; \
8524 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8525 $(HOST_EXPORTS) \
d32ab992 8526 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8527 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8528 done; \
295f4e42 8529 echo "Doing install-info in diff" ; \
215c351a 8530 (cd $(HOST_SUBDIR)/diff && \
1358ccea
NN
8531 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8532 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8533 "RANLIB=$${RANLIB}" \
8534 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8535 install-info) \
1358ccea
NN
8536 || exit 1
8537
60975492 8538@endif diff
1358ccea 8539
65d6e994
CD
8540.PHONY: maybe-install-html-diff install-html-diff
8541maybe-install-html-diff:
8542@if diff
8543maybe-install-html-diff: install-html-diff
8544
8545install-html-diff: \
8546 configure-diff \
8547 html-diff
8548 @: $(MAKE); $(unstage)
8549 @[ -f ./diff/Makefile ] || exit 0; \
8550 r=`${PWD_COMMAND}`; export r; \
8551 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8552 $(HOST_EXPORTS) \
8553 for flag in $(EXTRA_HOST_FLAGS) ; do \
8554 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8555 done; \
8556 echo "Doing install-html in diff" ; \
8557 (cd $(HOST_SUBDIR)/diff && \
8558 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8559 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8560 "RANLIB=$${RANLIB}" \
8561 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8562 install-html) \
8563 || exit 1
8564
8565@endif diff
8566
295f4e42
NN
8567.PHONY: maybe-installcheck-diff installcheck-diff
8568maybe-installcheck-diff:
60975492
PB
8569@if diff
8570maybe-installcheck-diff: installcheck-diff
1358ccea 8571
295f4e42 8572installcheck-diff: \
05750653 8573 configure-diff
f41d6665 8574 @: $(MAKE); $(unstage)
295f4e42 8575 @[ -f ./diff/Makefile ] || exit 0; \
8c90b13a
L
8576 r=`${PWD_COMMAND}`; export r; \
8577 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8578 $(HOST_EXPORTS) \
d32ab992 8579 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8580 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8581 done; \
295f4e42 8582 echo "Doing installcheck in diff" ; \
215c351a 8583 (cd $(HOST_SUBDIR)/diff && \
1358ccea
NN
8584 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8585 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8586 "RANLIB=$${RANLIB}" \
8587 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8588 installcheck) \
1358ccea
NN
8589 || exit 1
8590
60975492 8591@endif diff
1358ccea 8592
295f4e42
NN
8593.PHONY: maybe-mostlyclean-diff mostlyclean-diff
8594maybe-mostlyclean-diff:
60975492
PB
8595@if diff
8596maybe-mostlyclean-diff: mostlyclean-diff
1358ccea 8597
05750653 8598mostlyclean-diff:
f41d6665 8599 @: $(MAKE); $(unstage)
295f4e42 8600 @[ -f ./diff/Makefile ] || exit 0; \
8c90b13a
L
8601 r=`${PWD_COMMAND}`; export r; \
8602 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8603 $(HOST_EXPORTS) \
d32ab992 8604 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8605 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8606 done; \
295f4e42 8607 echo "Doing mostlyclean in diff" ; \
215c351a 8608 (cd $(HOST_SUBDIR)/diff && \
1358ccea
NN
8609 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8610 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8611 "RANLIB=$${RANLIB}" \
8612 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8613 mostlyclean) \
1358ccea
NN
8614 || exit 1
8615
60975492 8616@endif diff
1358ccea 8617
295f4e42
NN
8618.PHONY: maybe-clean-diff clean-diff
8619maybe-clean-diff:
60975492
PB
8620@if diff
8621maybe-clean-diff: clean-diff
1358ccea 8622
05750653 8623clean-diff:
f41d6665 8624 @: $(MAKE); $(unstage)
295f4e42 8625 @[ -f ./diff/Makefile ] || exit 0; \
8c90b13a
L
8626 r=`${PWD_COMMAND}`; export r; \
8627 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8628 $(HOST_EXPORTS) \
d32ab992 8629 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8630 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8631 done; \
295f4e42 8632 echo "Doing clean in diff" ; \
215c351a 8633 (cd $(HOST_SUBDIR)/diff && \
1358ccea
NN
8634 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8635 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8636 "RANLIB=$${RANLIB}" \
8637 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8638 clean) \
1358ccea
NN
8639 || exit 1
8640
60975492 8641@endif diff
1358ccea 8642
295f4e42
NN
8643.PHONY: maybe-distclean-diff distclean-diff
8644maybe-distclean-diff:
60975492
PB
8645@if diff
8646maybe-distclean-diff: distclean-diff
1358ccea 8647
05750653 8648distclean-diff:
f41d6665 8649 @: $(MAKE); $(unstage)
295f4e42 8650 @[ -f ./diff/Makefile ] || exit 0; \
8c90b13a
L
8651 r=`${PWD_COMMAND}`; export r; \
8652 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8653 $(HOST_EXPORTS) \
d32ab992 8654 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8655 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8656 done; \
295f4e42 8657 echo "Doing distclean in diff" ; \
215c351a 8658 (cd $(HOST_SUBDIR)/diff && \
1358ccea
NN
8659 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8660 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8661 "RANLIB=$${RANLIB}" \
8662 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8663 distclean) \
1358ccea
NN
8664 || exit 1
8665
60975492 8666@endif diff
1358ccea 8667
295f4e42
NN
8668.PHONY: maybe-maintainer-clean-diff maintainer-clean-diff
8669maybe-maintainer-clean-diff:
60975492
PB
8670@if diff
8671maybe-maintainer-clean-diff: maintainer-clean-diff
1358ccea 8672
05750653 8673maintainer-clean-diff:
f41d6665 8674 @: $(MAKE); $(unstage)
295f4e42 8675 @[ -f ./diff/Makefile ] || exit 0; \
8c90b13a
L
8676 r=`${PWD_COMMAND}`; export r; \
8677 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8678 $(HOST_EXPORTS) \
d32ab992 8679 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8680 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8681 done; \
295f4e42 8682 echo "Doing maintainer-clean in diff" ; \
215c351a 8683 (cd $(HOST_SUBDIR)/diff && \
1358ccea
NN
8684 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8685 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8686 "RANLIB=$${RANLIB}" \
8687 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8688 maintainer-clean) \
295f4e42
NN
8689 || exit 1
8690
60975492 8691@endif diff
295f4e42
NN
8692
8693
25b42232 8694
295f4e42
NN
8695.PHONY: configure-dosutils maybe-configure-dosutils
8696maybe-configure-dosutils:
3ff3adad
PB
8697@if gcc-bootstrap
8698configure-dosutils: stage_current
8699@endif gcc-bootstrap
60975492
PB
8700@if dosutils
8701maybe-configure-dosutils: configure-dosutils
cc11cc9b 8702configure-dosutils:
f41d6665 8703 @: $(MAKE); $(unstage)
cc11cc9b 8704 @r=`${PWD_COMMAND}`; export r; \
295f4e42 8705 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
8706 test ! -f $(HOST_SUBDIR)/dosutils/Makefile || exit 0; \
8707 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/dosutils ; \
4fc4dd12 8708 $(HOST_EXPORTS) \
25b42232
PB
8709 echo Configuring in $(HOST_SUBDIR)/dosutils; \
8710 cd "$(HOST_SUBDIR)/dosutils" || exit 1; \
295f4e42 8711 case $(srcdir) in \
215c351a
PB
8712 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
8713 *) topdir=`echo $(HOST_SUBDIR)/dosutils/ | \
8714 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 8715 esac; \
215c351a
PB
8716 srcdiroption="--srcdir=$${topdir}/dosutils"; \
8717 libsrcdir="$$s/dosutils"; \
295f4e42 8718 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 8719 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 8720 || exit 1
60975492 8721@endif dosutils
1358ccea 8722
25b42232
PB
8723
8724
ce406537
PB
8725
8726
295f4e42
NN
8727.PHONY: all-dosutils maybe-all-dosutils
8728maybe-all-dosutils:
3ff3adad
PB
8729@if gcc-bootstrap
8730all-dosutils: stage_current
8731@endif gcc-bootstrap
60975492 8732@if dosutils
7e0b5752 8733TARGET-dosutils=all
60975492 8734maybe-all-dosutils: all-dosutils
295f4e42 8735all-dosutils: configure-dosutils
f41d6665 8736 @: $(MAKE); $(unstage)
295f4e42 8737 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 8738 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8739 $(HOST_EXPORTS) \
215c351a
PB
8740 (cd $(HOST_SUBDIR)/dosutils && \
8741 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-dosutils))
60975492 8742@endif dosutils
1358ccea 8743
25b42232 8744
ce406537
PB
8745
8746
295f4e42
NN
8747.PHONY: check-dosutils maybe-check-dosutils
8748maybe-check-dosutils:
60975492
PB
8749@if dosutils
8750maybe-check-dosutils: check-dosutils
1358ccea 8751
295f4e42 8752check-dosutils:
1358ccea 8753
60975492 8754@endif dosutils
1358ccea 8755
295f4e42
NN
8756.PHONY: install-dosutils maybe-install-dosutils
8757maybe-install-dosutils:
60975492
PB
8758@if dosutils
8759maybe-install-dosutils: install-dosutils
1358ccea 8760
295f4e42 8761install-dosutils: installdirs
f41d6665 8762 @: $(MAKE); $(unstage)
295f4e42 8763 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 8764 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8765 $(HOST_EXPORTS) \
215c351a 8766 (cd $(HOST_SUBDIR)/dosutils && \
ace9ac7b 8767 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 8768
60975492 8769@endif dosutils
1358ccea 8770
b5422ad7 8771# Other targets (info, dvi, pdf, etc.)
1358ccea 8772
295f4e42
NN
8773.PHONY: maybe-info-dosutils info-dosutils
8774maybe-info-dosutils:
60975492
PB
8775@if dosutils
8776maybe-info-dosutils: info-dosutils
295f4e42
NN
8777
8778info-dosutils: \
05750653 8779 configure-dosutils
f41d6665 8780 @: $(MAKE); $(unstage)
295f4e42 8781 @[ -f ./dosutils/Makefile ] || exit 0; \
8c90b13a
L
8782 r=`${PWD_COMMAND}`; export r; \
8783 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8784 $(HOST_EXPORTS) \
d32ab992 8785 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8786 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8787 done; \
295f4e42 8788 echo "Doing info in dosutils" ; \
215c351a 8789 (cd $(HOST_SUBDIR)/dosutils && \
1358ccea
NN
8790 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8791 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8792 "RANLIB=$${RANLIB}" \
8793 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8794 info) \
1358ccea
NN
8795 || exit 1
8796
60975492 8797@endif dosutils
1358ccea 8798
295f4e42
NN
8799.PHONY: maybe-dvi-dosutils dvi-dosutils
8800maybe-dvi-dosutils:
60975492
PB
8801@if dosutils
8802maybe-dvi-dosutils: dvi-dosutils
1358ccea 8803
295f4e42 8804dvi-dosutils: \
05750653 8805 configure-dosutils
f41d6665 8806 @: $(MAKE); $(unstage)
295f4e42 8807 @[ -f ./dosutils/Makefile ] || exit 0; \
8c90b13a
L
8808 r=`${PWD_COMMAND}`; export r; \
8809 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8810 $(HOST_EXPORTS) \
d32ab992 8811 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8812 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8813 done; \
295f4e42 8814 echo "Doing dvi in dosutils" ; \
215c351a 8815 (cd $(HOST_SUBDIR)/dosutils && \
1358ccea
NN
8816 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8817 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8818 "RANLIB=$${RANLIB}" \
8819 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8820 dvi) \
1358ccea
NN
8821 || exit 1
8822
60975492 8823@endif dosutils
1358ccea 8824
b5422ad7
BM
8825.PHONY: maybe-pdf-dosutils pdf-dosutils
8826maybe-pdf-dosutils:
8827@if dosutils
8828maybe-pdf-dosutils: pdf-dosutils
8829
8830pdf-dosutils: \
8831 configure-dosutils
8832 @: $(MAKE); $(unstage)
8833 @[ -f ./dosutils/Makefile ] || exit 0; \
8834 r=`${PWD_COMMAND}`; export r; \
8835 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8836 $(HOST_EXPORTS) \
8837 for flag in $(EXTRA_HOST_FLAGS) ; do \
8838 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8839 done; \
8840 echo "Doing pdf in dosutils" ; \
8841 (cd $(HOST_SUBDIR)/dosutils && \
8842 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8843 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8844 "RANLIB=$${RANLIB}" \
8845 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8846 pdf) \
8847 || exit 1
8848
8849@endif dosutils
8850
f87a2b2e
MS
8851.PHONY: maybe-html-dosutils html-dosutils
8852maybe-html-dosutils:
60975492 8853@if dosutils
f87a2b2e 8854maybe-html-dosutils: html-dosutils
1358ccea 8855
f87a2b2e 8856html-dosutils: \
05750653 8857 configure-dosutils
f41d6665 8858 @: $(MAKE); $(unstage)
295f4e42 8859 @[ -f ./dosutils/Makefile ] || exit 0; \
8c90b13a
L
8860 r=`${PWD_COMMAND}`; export r; \
8861 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8862 $(HOST_EXPORTS) \
d32ab992 8863 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8864 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8865 done; \
f87a2b2e 8866 echo "Doing html in dosutils" ; \
215c351a 8867 (cd $(HOST_SUBDIR)/dosutils && \
1358ccea
NN
8868 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8869 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8870 "RANLIB=$${RANLIB}" \
8871 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
f87a2b2e 8872 html) \
1358ccea
NN
8873 || exit 1
8874
60975492 8875@endif dosutils
1358ccea 8876
f87a2b2e
MS
8877.PHONY: maybe-TAGS-dosutils TAGS-dosutils
8878maybe-TAGS-dosutils:
60975492 8879@if dosutils
f87a2b2e 8880maybe-TAGS-dosutils: TAGS-dosutils
1358ccea 8881
f87a2b2e 8882TAGS-dosutils: \
05750653 8883 configure-dosutils
f41d6665 8884 @: $(MAKE); $(unstage)
f87a2b2e
MS
8885 @[ -f ./dosutils/Makefile ] || exit 0; \
8886 r=`${PWD_COMMAND}`; export r; \
8887 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
8888 $(HOST_EXPORTS) \
8889 for flag in $(EXTRA_HOST_FLAGS) ; do \
8890 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8891 done; \
8892 echo "Doing TAGS in dosutils" ; \
215c351a 8893 (cd $(HOST_SUBDIR)/dosutils && \
f87a2b2e
MS
8894 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8895 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8896 "RANLIB=$${RANLIB}" \
8897 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8898 TAGS) \
8899 || exit 1
8900
8901@endif dosutils
8902
8903.PHONY: maybe-install-info-dosutils install-info-dosutils
8904maybe-install-info-dosutils:
8905@if dosutils
8906maybe-install-info-dosutils: install-info-dosutils
8907
8908install-info-dosutils: \
8909 configure-dosutils \
05750653 8910 info-dosutils
f41d6665 8911 @: $(MAKE); $(unstage)
295f4e42 8912 @[ -f ./dosutils/Makefile ] || exit 0; \
8c90b13a
L
8913 r=`${PWD_COMMAND}`; export r; \
8914 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8915 $(HOST_EXPORTS) \
d32ab992 8916 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8917 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8918 done; \
295f4e42 8919 echo "Doing install-info in dosutils" ; \
215c351a 8920 (cd $(HOST_SUBDIR)/dosutils && \
1358ccea
NN
8921 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8922 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8923 "RANLIB=$${RANLIB}" \
8924 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8925 install-info) \
1358ccea
NN
8926 || exit 1
8927
60975492 8928@endif dosutils
1358ccea 8929
65d6e994
CD
8930.PHONY: maybe-install-html-dosutils install-html-dosutils
8931maybe-install-html-dosutils:
8932@if dosutils
8933maybe-install-html-dosutils: install-html-dosutils
8934
8935install-html-dosutils: \
8936 configure-dosutils \
8937 html-dosutils
8938 @: $(MAKE); $(unstage)
8939 @[ -f ./dosutils/Makefile ] || exit 0; \
8940 r=`${PWD_COMMAND}`; export r; \
8941 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
8942 $(HOST_EXPORTS) \
8943 for flag in $(EXTRA_HOST_FLAGS) ; do \
8944 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8945 done; \
8946 echo "Doing install-html in dosutils" ; \
8947 (cd $(HOST_SUBDIR)/dosutils && \
8948 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8949 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8950 "RANLIB=$${RANLIB}" \
8951 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
8952 install-html) \
8953 || exit 1
8954
8955@endif dosutils
8956
295f4e42
NN
8957.PHONY: maybe-installcheck-dosutils installcheck-dosutils
8958maybe-installcheck-dosutils:
60975492
PB
8959@if dosutils
8960maybe-installcheck-dosutils: installcheck-dosutils
1358ccea 8961
295f4e42 8962installcheck-dosutils: \
05750653 8963 configure-dosutils
f41d6665 8964 @: $(MAKE); $(unstage)
295f4e42 8965 @[ -f ./dosutils/Makefile ] || exit 0; \
8c90b13a
L
8966 r=`${PWD_COMMAND}`; export r; \
8967 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8968 $(HOST_EXPORTS) \
d32ab992 8969 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8970 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8971 done; \
295f4e42 8972 echo "Doing installcheck in dosutils" ; \
215c351a 8973 (cd $(HOST_SUBDIR)/dosutils && \
1358ccea
NN
8974 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
8975 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
8976 "RANLIB=$${RANLIB}" \
8977 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 8978 installcheck) \
1358ccea
NN
8979 || exit 1
8980
60975492 8981@endif dosutils
1358ccea 8982
295f4e42
NN
8983.PHONY: maybe-mostlyclean-dosutils mostlyclean-dosutils
8984maybe-mostlyclean-dosutils:
60975492
PB
8985@if dosutils
8986maybe-mostlyclean-dosutils: mostlyclean-dosutils
1358ccea 8987
05750653 8988mostlyclean-dosutils:
f41d6665 8989 @: $(MAKE); $(unstage)
295f4e42 8990 @[ -f ./dosutils/Makefile ] || exit 0; \
8c90b13a
L
8991 r=`${PWD_COMMAND}`; export r; \
8992 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 8993 $(HOST_EXPORTS) \
d32ab992 8994 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
8995 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
8996 done; \
295f4e42 8997 echo "Doing mostlyclean in dosutils" ; \
215c351a 8998 (cd $(HOST_SUBDIR)/dosutils && \
1358ccea
NN
8999 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9000 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9001 "RANLIB=$${RANLIB}" \
9002 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9003 mostlyclean) \
1358ccea
NN
9004 || exit 1
9005
60975492 9006@endif dosutils
1358ccea 9007
295f4e42
NN
9008.PHONY: maybe-clean-dosutils clean-dosutils
9009maybe-clean-dosutils:
60975492
PB
9010@if dosutils
9011maybe-clean-dosutils: clean-dosutils
1358ccea 9012
05750653 9013clean-dosutils:
f41d6665 9014 @: $(MAKE); $(unstage)
295f4e42 9015 @[ -f ./dosutils/Makefile ] || exit 0; \
8c90b13a
L
9016 r=`${PWD_COMMAND}`; export r; \
9017 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9018 $(HOST_EXPORTS) \
d32ab992 9019 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9020 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9021 done; \
295f4e42 9022 echo "Doing clean in dosutils" ; \
215c351a 9023 (cd $(HOST_SUBDIR)/dosutils && \
1358ccea
NN
9024 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9025 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9026 "RANLIB=$${RANLIB}" \
9027 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9028 clean) \
1358ccea
NN
9029 || exit 1
9030
60975492 9031@endif dosutils
1358ccea 9032
295f4e42
NN
9033.PHONY: maybe-distclean-dosutils distclean-dosutils
9034maybe-distclean-dosutils:
60975492
PB
9035@if dosutils
9036maybe-distclean-dosutils: distclean-dosutils
1358ccea 9037
05750653 9038distclean-dosutils:
f41d6665 9039 @: $(MAKE); $(unstage)
295f4e42 9040 @[ -f ./dosutils/Makefile ] || exit 0; \
8c90b13a
L
9041 r=`${PWD_COMMAND}`; export r; \
9042 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9043 $(HOST_EXPORTS) \
d32ab992 9044 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9045 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9046 done; \
295f4e42 9047 echo "Doing distclean in dosutils" ; \
215c351a 9048 (cd $(HOST_SUBDIR)/dosutils && \
1358ccea
NN
9049 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9050 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9051 "RANLIB=$${RANLIB}" \
9052 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9053 distclean) \
1358ccea
NN
9054 || exit 1
9055
60975492 9056@endif dosutils
1358ccea 9057
295f4e42
NN
9058.PHONY: maybe-maintainer-clean-dosutils maintainer-clean-dosutils
9059maybe-maintainer-clean-dosutils:
60975492
PB
9060@if dosutils
9061maybe-maintainer-clean-dosutils: maintainer-clean-dosutils
1358ccea 9062
05750653 9063maintainer-clean-dosutils:
f41d6665 9064 @: $(MAKE); $(unstage)
295f4e42 9065 @[ -f ./dosutils/Makefile ] || exit 0; \
8c90b13a
L
9066 r=`${PWD_COMMAND}`; export r; \
9067 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9068 $(HOST_EXPORTS) \
d32ab992 9069 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9070 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9071 done; \
295f4e42 9072 echo "Doing maintainer-clean in dosutils" ; \
215c351a 9073 (cd $(HOST_SUBDIR)/dosutils && \
1358ccea
NN
9074 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9075 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9076 "RANLIB=$${RANLIB}" \
9077 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9078 maintainer-clean) \
1358ccea
NN
9079 || exit 1
9080
60975492 9081@endif dosutils
1358ccea
NN
9082
9083
25b42232 9084
295f4e42
NN
9085.PHONY: configure-etc maybe-configure-etc
9086maybe-configure-etc:
3ff3adad
PB
9087@if gcc-bootstrap
9088configure-etc: stage_current
9089@endif gcc-bootstrap
60975492
PB
9090@if etc
9091maybe-configure-etc: configure-etc
cc11cc9b 9092configure-etc:
f41d6665 9093 @: $(MAKE); $(unstage)
cc11cc9b 9094 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 9095 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
9096 test ! -f $(HOST_SUBDIR)/etc/Makefile || exit 0; \
9097 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/etc ; \
4fc4dd12 9098 $(HOST_EXPORTS) \
25b42232
PB
9099 echo Configuring in $(HOST_SUBDIR)/etc; \
9100 cd "$(HOST_SUBDIR)/etc" || exit 1; \
295f4e42 9101 case $(srcdir) in \
215c351a
PB
9102 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9103 *) topdir=`echo $(HOST_SUBDIR)/etc/ | \
9104 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 9105 esac; \
215c351a
PB
9106 srcdiroption="--srcdir=$${topdir}/etc"; \
9107 libsrcdir="$$s/etc"; \
295f4e42 9108 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 9109 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 9110 || exit 1
60975492 9111@endif etc
1358ccea 9112
25b42232
PB
9113
9114
ce406537
PB
9115
9116
295f4e42
NN
9117.PHONY: all-etc maybe-all-etc
9118maybe-all-etc:
3ff3adad
PB
9119@if gcc-bootstrap
9120all-etc: stage_current
9121@endif gcc-bootstrap
60975492 9122@if etc
7e0b5752 9123TARGET-etc=all
60975492 9124maybe-all-etc: all-etc
295f4e42 9125all-etc: configure-etc
f41d6665 9126 @: $(MAKE); $(unstage)
295f4e42
NN
9127 @r=`${PWD_COMMAND}`; export r; \
9128 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9129 $(HOST_EXPORTS) \
215c351a
PB
9130 (cd $(HOST_SUBDIR)/etc && \
9131 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-etc))
60975492 9132@endif etc
1358ccea 9133
25b42232 9134
ce406537
PB
9135
9136
295f4e42
NN
9137.PHONY: check-etc maybe-check-etc
9138maybe-check-etc:
60975492
PB
9139@if etc
9140maybe-check-etc: check-etc
1358ccea 9141
295f4e42 9142check-etc:
f41d6665 9143 @: $(MAKE); $(unstage)
295f4e42 9144 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 9145 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9146 $(HOST_EXPORTS) \
215c351a
PB
9147 (cd $(HOST_SUBDIR)/etc && \
9148 $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 9149
60975492 9150@endif etc
1358ccea 9151
295f4e42
NN
9152.PHONY: install-etc maybe-install-etc
9153maybe-install-etc:
60975492
PB
9154@if etc
9155maybe-install-etc: install-etc
1358ccea 9156
295f4e42 9157install-etc: installdirs
f41d6665 9158 @: $(MAKE); $(unstage)
295f4e42 9159 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 9160 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9161 $(HOST_EXPORTS) \
215c351a 9162 (cd $(HOST_SUBDIR)/etc && \
ace9ac7b 9163 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 9164
60975492 9165@endif etc
1358ccea 9166
b5422ad7 9167# Other targets (info, dvi, pdf, etc.)
1358ccea 9168
295f4e42
NN
9169.PHONY: maybe-info-etc info-etc
9170maybe-info-etc:
60975492
PB
9171@if etc
9172maybe-info-etc: info-etc
295f4e42
NN
9173
9174info-etc: \
05750653 9175 configure-etc
f41d6665 9176 @: $(MAKE); $(unstage)
295f4e42 9177 @[ -f ./etc/Makefile ] || exit 0; \
8c90b13a
L
9178 r=`${PWD_COMMAND}`; export r; \
9179 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9180 $(HOST_EXPORTS) \
d32ab992 9181 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9182 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9183 done; \
295f4e42 9184 echo "Doing info in etc" ; \
215c351a 9185 (cd $(HOST_SUBDIR)/etc && \
1358ccea
NN
9186 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9187 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9188 "RANLIB=$${RANLIB}" \
9189 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9190 info) \
1358ccea
NN
9191 || exit 1
9192
60975492 9193@endif etc
1358ccea 9194
295f4e42
NN
9195.PHONY: maybe-dvi-etc dvi-etc
9196maybe-dvi-etc:
60975492
PB
9197@if etc
9198maybe-dvi-etc: dvi-etc
1358ccea 9199
295f4e42 9200dvi-etc: \
05750653 9201 configure-etc
f41d6665 9202 @: $(MAKE); $(unstage)
295f4e42 9203 @[ -f ./etc/Makefile ] || exit 0; \
8c90b13a
L
9204 r=`${PWD_COMMAND}`; export r; \
9205 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9206 $(HOST_EXPORTS) \
d32ab992 9207 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9208 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9209 done; \
295f4e42 9210 echo "Doing dvi in etc" ; \
215c351a 9211 (cd $(HOST_SUBDIR)/etc && \
1358ccea
NN
9212 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9213 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9214 "RANLIB=$${RANLIB}" \
9215 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9216 dvi) \
1358ccea
NN
9217 || exit 1
9218
60975492 9219@endif etc
1358ccea 9220
b5422ad7
BM
9221.PHONY: maybe-pdf-etc pdf-etc
9222maybe-pdf-etc:
9223@if etc
9224maybe-pdf-etc: pdf-etc
9225
9226pdf-etc: \
9227 configure-etc
9228 @: $(MAKE); $(unstage)
9229 @[ -f ./etc/Makefile ] || exit 0; \
9230 r=`${PWD_COMMAND}`; export r; \
9231 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9232 $(HOST_EXPORTS) \
9233 for flag in $(EXTRA_HOST_FLAGS) ; do \
9234 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9235 done; \
9236 echo "Doing pdf in etc" ; \
9237 (cd $(HOST_SUBDIR)/etc && \
9238 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9239 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9240 "RANLIB=$${RANLIB}" \
9241 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9242 pdf) \
9243 || exit 1
9244
9245@endif etc
9246
f87a2b2e
MS
9247.PHONY: maybe-html-etc html-etc
9248maybe-html-etc:
9249@if etc
9250maybe-html-etc: html-etc
9251
9252html-etc: \
05750653 9253 configure-etc
f41d6665 9254 @: $(MAKE); $(unstage)
f87a2b2e
MS
9255 @[ -f ./etc/Makefile ] || exit 0; \
9256 r=`${PWD_COMMAND}`; export r; \
9257 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
9258 $(HOST_EXPORTS) \
9259 for flag in $(EXTRA_HOST_FLAGS) ; do \
9260 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9261 done; \
9262 echo "Doing html in etc" ; \
215c351a 9263 (cd $(HOST_SUBDIR)/etc && \
f87a2b2e
MS
9264 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9265 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9266 "RANLIB=$${RANLIB}" \
9267 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9268 html) \
9269 || exit 1
9270
9271@endif etc
9272
295f4e42
NN
9273.PHONY: maybe-TAGS-etc TAGS-etc
9274maybe-TAGS-etc:
60975492
PB
9275@if etc
9276maybe-TAGS-etc: TAGS-etc
1358ccea 9277
295f4e42 9278TAGS-etc: \
05750653 9279 configure-etc
f41d6665 9280 @: $(MAKE); $(unstage)
295f4e42 9281 @[ -f ./etc/Makefile ] || exit 0; \
8c90b13a
L
9282 r=`${PWD_COMMAND}`; export r; \
9283 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9284 $(HOST_EXPORTS) \
d32ab992 9285 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9286 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9287 done; \
295f4e42 9288 echo "Doing TAGS in etc" ; \
215c351a 9289 (cd $(HOST_SUBDIR)/etc && \
1358ccea
NN
9290 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9291 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9292 "RANLIB=$${RANLIB}" \
9293 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9294 TAGS) \
1358ccea
NN
9295 || exit 1
9296
60975492 9297@endif etc
1358ccea 9298
295f4e42
NN
9299.PHONY: maybe-install-info-etc install-info-etc
9300maybe-install-info-etc:
60975492
PB
9301@if etc
9302maybe-install-info-etc: install-info-etc
1358ccea 9303
295f4e42
NN
9304install-info-etc: \
9305 configure-etc \
05750653 9306 info-etc
f41d6665 9307 @: $(MAKE); $(unstage)
295f4e42 9308 @[ -f ./etc/Makefile ] || exit 0; \
8c90b13a
L
9309 r=`${PWD_COMMAND}`; export r; \
9310 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9311 $(HOST_EXPORTS) \
d32ab992 9312 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9313 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9314 done; \
295f4e42 9315 echo "Doing install-info in etc" ; \
215c351a 9316 (cd $(HOST_SUBDIR)/etc && \
1358ccea
NN
9317 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9318 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9319 "RANLIB=$${RANLIB}" \
9320 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9321 install-info) \
1358ccea
NN
9322 || exit 1
9323
60975492 9324@endif etc
1358ccea 9325
65d6e994
CD
9326.PHONY: maybe-install-html-etc install-html-etc
9327maybe-install-html-etc:
9328@if etc
9329maybe-install-html-etc: install-html-etc
9330
9331install-html-etc: \
9332 configure-etc \
9333 html-etc
9334 @: $(MAKE); $(unstage)
9335 @[ -f ./etc/Makefile ] || exit 0; \
9336 r=`${PWD_COMMAND}`; export r; \
9337 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9338 $(HOST_EXPORTS) \
9339 for flag in $(EXTRA_HOST_FLAGS) ; do \
9340 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9341 done; \
9342 echo "Doing install-html in etc" ; \
9343 (cd $(HOST_SUBDIR)/etc && \
9344 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9345 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9346 "RANLIB=$${RANLIB}" \
9347 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9348 install-html) \
9349 || exit 1
9350
9351@endif etc
9352
295f4e42
NN
9353.PHONY: maybe-installcheck-etc installcheck-etc
9354maybe-installcheck-etc:
60975492
PB
9355@if etc
9356maybe-installcheck-etc: installcheck-etc
1358ccea 9357
295f4e42 9358installcheck-etc: \
05750653 9359 configure-etc
f41d6665 9360 @: $(MAKE); $(unstage)
295f4e42 9361 @[ -f ./etc/Makefile ] || exit 0; \
8c90b13a
L
9362 r=`${PWD_COMMAND}`; export r; \
9363 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9364 $(HOST_EXPORTS) \
d32ab992 9365 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9366 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9367 done; \
295f4e42 9368 echo "Doing installcheck in etc" ; \
215c351a 9369 (cd $(HOST_SUBDIR)/etc && \
1358ccea
NN
9370 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9371 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9372 "RANLIB=$${RANLIB}" \
9373 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9374 installcheck) \
1358ccea
NN
9375 || exit 1
9376
60975492 9377@endif etc
1358ccea 9378
295f4e42
NN
9379.PHONY: maybe-mostlyclean-etc mostlyclean-etc
9380maybe-mostlyclean-etc:
60975492
PB
9381@if etc
9382maybe-mostlyclean-etc: mostlyclean-etc
1358ccea 9383
05750653 9384mostlyclean-etc:
f41d6665 9385 @: $(MAKE); $(unstage)
295f4e42 9386 @[ -f ./etc/Makefile ] || exit 0; \
8c90b13a
L
9387 r=`${PWD_COMMAND}`; export r; \
9388 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9389 $(HOST_EXPORTS) \
d32ab992 9390 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9391 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9392 done; \
295f4e42 9393 echo "Doing mostlyclean in etc" ; \
215c351a 9394 (cd $(HOST_SUBDIR)/etc && \
1358ccea
NN
9395 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9396 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9397 "RANLIB=$${RANLIB}" \
9398 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9399 mostlyclean) \
1358ccea
NN
9400 || exit 1
9401
60975492 9402@endif etc
1358ccea 9403
295f4e42
NN
9404.PHONY: maybe-clean-etc clean-etc
9405maybe-clean-etc:
60975492
PB
9406@if etc
9407maybe-clean-etc: clean-etc
1358ccea 9408
05750653 9409clean-etc:
f41d6665 9410 @: $(MAKE); $(unstage)
295f4e42 9411 @[ -f ./etc/Makefile ] || exit 0; \
8c90b13a
L
9412 r=`${PWD_COMMAND}`; export r; \
9413 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9414 $(HOST_EXPORTS) \
d32ab992 9415 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9416 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9417 done; \
295f4e42 9418 echo "Doing clean in etc" ; \
215c351a 9419 (cd $(HOST_SUBDIR)/etc && \
1358ccea
NN
9420 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9421 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9422 "RANLIB=$${RANLIB}" \
9423 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9424 clean) \
1358ccea
NN
9425 || exit 1
9426
60975492 9427@endif etc
1358ccea 9428
295f4e42
NN
9429.PHONY: maybe-distclean-etc distclean-etc
9430maybe-distclean-etc:
60975492
PB
9431@if etc
9432maybe-distclean-etc: distclean-etc
1358ccea 9433
05750653 9434distclean-etc:
f41d6665 9435 @: $(MAKE); $(unstage)
295f4e42 9436 @[ -f ./etc/Makefile ] || exit 0; \
8c90b13a
L
9437 r=`${PWD_COMMAND}`; export r; \
9438 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9439 $(HOST_EXPORTS) \
d32ab992 9440 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9441 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9442 done; \
295f4e42 9443 echo "Doing distclean in etc" ; \
215c351a 9444 (cd $(HOST_SUBDIR)/etc && \
1358ccea
NN
9445 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9446 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9447 "RANLIB=$${RANLIB}" \
9448 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9449 distclean) \
1358ccea
NN
9450 || exit 1
9451
60975492 9452@endif etc
1358ccea 9453
295f4e42
NN
9454.PHONY: maybe-maintainer-clean-etc maintainer-clean-etc
9455maybe-maintainer-clean-etc:
60975492
PB
9456@if etc
9457maybe-maintainer-clean-etc: maintainer-clean-etc
1358ccea 9458
05750653 9459maintainer-clean-etc:
f41d6665 9460 @: $(MAKE); $(unstage)
295f4e42 9461 @[ -f ./etc/Makefile ] || exit 0; \
8c90b13a
L
9462 r=`${PWD_COMMAND}`; export r; \
9463 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9464 $(HOST_EXPORTS) \
d32ab992 9465 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9466 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9467 done; \
295f4e42 9468 echo "Doing maintainer-clean in etc" ; \
215c351a 9469 (cd $(HOST_SUBDIR)/etc && \
1358ccea
NN
9470 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9471 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9472 "RANLIB=$${RANLIB}" \
9473 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9474 maintainer-clean) \
1358ccea
NN
9475 || exit 1
9476
60975492 9477@endif etc
1358ccea 9478
1358ccea 9479
25b42232 9480
295f4e42
NN
9481.PHONY: configure-fastjar maybe-configure-fastjar
9482maybe-configure-fastjar:
3ff3adad
PB
9483@if gcc-bootstrap
9484configure-fastjar: stage_current
9485@endif gcc-bootstrap
60975492
PB
9486@if fastjar
9487maybe-configure-fastjar: configure-fastjar
cc11cc9b 9488configure-fastjar:
f41d6665 9489 @: $(MAKE); $(unstage)
cc11cc9b 9490 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 9491 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
9492 test ! -f $(HOST_SUBDIR)/fastjar/Makefile || exit 0; \
9493 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fastjar ; \
4fc4dd12 9494 $(HOST_EXPORTS) \
25b42232
PB
9495 echo Configuring in $(HOST_SUBDIR)/fastjar; \
9496 cd "$(HOST_SUBDIR)/fastjar" || exit 1; \
295f4e42 9497 case $(srcdir) in \
215c351a
PB
9498 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9499 *) topdir=`echo $(HOST_SUBDIR)/fastjar/ | \
9500 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 9501 esac; \
215c351a
PB
9502 srcdiroption="--srcdir=$${topdir}/fastjar"; \
9503 libsrcdir="$$s/fastjar"; \
295f4e42 9504 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 9505 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 9506 || exit 1
60975492 9507@endif fastjar
1358ccea 9508
25b42232
PB
9509
9510
ce406537
PB
9511
9512
295f4e42
NN
9513.PHONY: all-fastjar maybe-all-fastjar
9514maybe-all-fastjar:
3ff3adad
PB
9515@if gcc-bootstrap
9516all-fastjar: stage_current
9517@endif gcc-bootstrap
60975492 9518@if fastjar
7e0b5752 9519TARGET-fastjar=all
60975492 9520maybe-all-fastjar: all-fastjar
295f4e42 9521all-fastjar: configure-fastjar
f41d6665 9522 @: $(MAKE); $(unstage)
295f4e42 9523 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 9524 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9525 $(HOST_EXPORTS) \
215c351a
PB
9526 (cd $(HOST_SUBDIR)/fastjar && \
9527 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-fastjar))
60975492 9528@endif fastjar
1358ccea 9529
25b42232 9530
ce406537
PB
9531
9532
295f4e42
NN
9533.PHONY: check-fastjar maybe-check-fastjar
9534maybe-check-fastjar:
60975492
PB
9535@if fastjar
9536maybe-check-fastjar: check-fastjar
1358ccea 9537
295f4e42
NN
9538# This module is only tested in a native toolchain.
9539check-fastjar:
f41d6665 9540 @: $(MAKE); $(unstage)
295f4e42
NN
9541 @if [ '$(host)' = '$(target)' ] ; then \
9542 r=`${PWD_COMMAND}`; export r; \
9543 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9544 $(HOST_EXPORTS) \
215c351a 9545 (cd $(HOST_SUBDIR)/fastjar && \
ef6e9bc0 9546 $(MAKE) $(FLAGS_TO_PASS) check); \
295f4e42 9547 fi
1358ccea 9548
60975492 9549@endif fastjar
295f4e42
NN
9550
9551.PHONY: install-fastjar maybe-install-fastjar
9552maybe-install-fastjar:
60975492
PB
9553@if fastjar
9554maybe-install-fastjar: install-fastjar
295f4e42
NN
9555
9556install-fastjar: installdirs
f41d6665 9557 @: $(MAKE); $(unstage)
295f4e42 9558 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 9559 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9560 $(HOST_EXPORTS) \
215c351a 9561 (cd $(HOST_SUBDIR)/fastjar && \
ace9ac7b 9562 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 9563
60975492 9564@endif fastjar
1358ccea 9565
b5422ad7 9566# Other targets (info, dvi, pdf, etc.)
d9cdb878 9567
295f4e42
NN
9568.PHONY: maybe-info-fastjar info-fastjar
9569maybe-info-fastjar:
60975492
PB
9570@if fastjar
9571maybe-info-fastjar: info-fastjar
295f4e42
NN
9572
9573info-fastjar: \
05750653 9574 configure-fastjar
f41d6665 9575 @: $(MAKE); $(unstage)
295f4e42 9576 @[ -f ./fastjar/Makefile ] || exit 0; \
d9cdb878
AC
9577 r=`${PWD_COMMAND}`; export r; \
9578 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9579 $(HOST_EXPORTS) \
d32ab992 9580 for flag in $(EXTRA_HOST_FLAGS) ; do \
d9cdb878
AC
9581 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9582 done; \
295f4e42 9583 echo "Doing info in fastjar" ; \
215c351a 9584 (cd $(HOST_SUBDIR)/fastjar && \
d9cdb878
AC
9585 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9586 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9587 "RANLIB=$${RANLIB}" \
9588 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9589 info) \
d9cdb878
AC
9590 || exit 1
9591
60975492 9592@endif fastjar
d9cdb878 9593
295f4e42
NN
9594.PHONY: maybe-dvi-fastjar dvi-fastjar
9595maybe-dvi-fastjar:
60975492
PB
9596@if fastjar
9597maybe-dvi-fastjar: dvi-fastjar
1358ccea 9598
295f4e42 9599dvi-fastjar: \
05750653 9600 configure-fastjar
f41d6665 9601 @: $(MAKE); $(unstage)
295f4e42 9602 @[ -f ./fastjar/Makefile ] || exit 0; \
8c90b13a
L
9603 r=`${PWD_COMMAND}`; export r; \
9604 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9605 $(HOST_EXPORTS) \
d32ab992 9606 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9607 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9608 done; \
295f4e42 9609 echo "Doing dvi in fastjar" ; \
215c351a 9610 (cd $(HOST_SUBDIR)/fastjar && \
1358ccea
NN
9611 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9612 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9613 "RANLIB=$${RANLIB}" \
9614 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9615 dvi) \
1358ccea
NN
9616 || exit 1
9617
60975492 9618@endif fastjar
1358ccea 9619
b5422ad7
BM
9620.PHONY: maybe-pdf-fastjar pdf-fastjar
9621maybe-pdf-fastjar:
9622@if fastjar
9623maybe-pdf-fastjar: pdf-fastjar
9624
9625pdf-fastjar: \
9626 configure-fastjar
9627 @: $(MAKE); $(unstage)
9628 @[ -f ./fastjar/Makefile ] || exit 0; \
9629 r=`${PWD_COMMAND}`; export r; \
9630 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9631 $(HOST_EXPORTS) \
9632 for flag in $(EXTRA_HOST_FLAGS) ; do \
9633 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9634 done; \
9635 echo "Doing pdf in fastjar" ; \
9636 (cd $(HOST_SUBDIR)/fastjar && \
9637 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9638 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9639 "RANLIB=$${RANLIB}" \
9640 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9641 pdf) \
9642 || exit 1
9643
9644@endif fastjar
9645
f87a2b2e
MS
9646.PHONY: maybe-html-fastjar html-fastjar
9647maybe-html-fastjar:
9648@if fastjar
9649maybe-html-fastjar: html-fastjar
9650
9651html-fastjar: \
05750653 9652 configure-fastjar
f41d6665 9653 @: $(MAKE); $(unstage)
f87a2b2e
MS
9654 @[ -f ./fastjar/Makefile ] || exit 0; \
9655 r=`${PWD_COMMAND}`; export r; \
9656 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
9657 $(HOST_EXPORTS) \
9658 for flag in $(EXTRA_HOST_FLAGS) ; do \
9659 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9660 done; \
9661 echo "Doing html in fastjar" ; \
215c351a 9662 (cd $(HOST_SUBDIR)/fastjar && \
f87a2b2e
MS
9663 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9664 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9665 "RANLIB=$${RANLIB}" \
9666 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9667 html) \
9668 || exit 1
9669
9670@endif fastjar
9671
295f4e42
NN
9672.PHONY: maybe-TAGS-fastjar TAGS-fastjar
9673maybe-TAGS-fastjar:
60975492
PB
9674@if fastjar
9675maybe-TAGS-fastjar: TAGS-fastjar
1358ccea 9676
295f4e42 9677TAGS-fastjar: \
05750653 9678 configure-fastjar
f41d6665 9679 @: $(MAKE); $(unstage)
295f4e42 9680 @[ -f ./fastjar/Makefile ] || exit 0; \
8c90b13a
L
9681 r=`${PWD_COMMAND}`; export r; \
9682 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9683 $(HOST_EXPORTS) \
d32ab992 9684 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9685 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9686 done; \
295f4e42 9687 echo "Doing TAGS in fastjar" ; \
215c351a 9688 (cd $(HOST_SUBDIR)/fastjar && \
1358ccea
NN
9689 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9690 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9691 "RANLIB=$${RANLIB}" \
9692 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9693 TAGS) \
1358ccea
NN
9694 || exit 1
9695
60975492 9696@endif fastjar
1358ccea 9697
295f4e42
NN
9698.PHONY: maybe-install-info-fastjar install-info-fastjar
9699maybe-install-info-fastjar:
60975492
PB
9700@if fastjar
9701maybe-install-info-fastjar: install-info-fastjar
1358ccea 9702
295f4e42
NN
9703install-info-fastjar: \
9704 configure-fastjar \
05750653 9705 info-fastjar
f41d6665 9706 @: $(MAKE); $(unstage)
295f4e42 9707 @[ -f ./fastjar/Makefile ] || exit 0; \
8c90b13a
L
9708 r=`${PWD_COMMAND}`; export r; \
9709 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9710 $(HOST_EXPORTS) \
d32ab992 9711 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9712 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9713 done; \
295f4e42 9714 echo "Doing install-info in fastjar" ; \
215c351a 9715 (cd $(HOST_SUBDIR)/fastjar && \
1358ccea
NN
9716 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9717 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9718 "RANLIB=$${RANLIB}" \
9719 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9720 install-info) \
1358ccea
NN
9721 || exit 1
9722
60975492 9723@endif fastjar
1358ccea 9724
65d6e994
CD
9725.PHONY: maybe-install-html-fastjar install-html-fastjar
9726maybe-install-html-fastjar:
9727@if fastjar
9728maybe-install-html-fastjar: install-html-fastjar
9729
9730install-html-fastjar: \
9731 configure-fastjar \
9732 html-fastjar
9733 @: $(MAKE); $(unstage)
9734 @[ -f ./fastjar/Makefile ] || exit 0; \
9735 r=`${PWD_COMMAND}`; export r; \
9736 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
9737 $(HOST_EXPORTS) \
9738 for flag in $(EXTRA_HOST_FLAGS) ; do \
9739 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9740 done; \
9741 echo "Doing install-html in fastjar" ; \
9742 (cd $(HOST_SUBDIR)/fastjar && \
9743 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9744 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9745 "RANLIB=$${RANLIB}" \
9746 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
9747 install-html) \
9748 || exit 1
9749
9750@endif fastjar
9751
295f4e42
NN
9752.PHONY: maybe-installcheck-fastjar installcheck-fastjar
9753maybe-installcheck-fastjar:
60975492
PB
9754@if fastjar
9755maybe-installcheck-fastjar: installcheck-fastjar
1358ccea 9756
295f4e42 9757installcheck-fastjar: \
05750653 9758 configure-fastjar
f41d6665 9759 @: $(MAKE); $(unstage)
295f4e42 9760 @[ -f ./fastjar/Makefile ] || exit 0; \
8c90b13a
L
9761 r=`${PWD_COMMAND}`; export r; \
9762 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9763 $(HOST_EXPORTS) \
d32ab992 9764 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9765 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9766 done; \
295f4e42 9767 echo "Doing installcheck in fastjar" ; \
215c351a 9768 (cd $(HOST_SUBDIR)/fastjar && \
1358ccea
NN
9769 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9770 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9771 "RANLIB=$${RANLIB}" \
9772 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9773 installcheck) \
1358ccea
NN
9774 || exit 1
9775
60975492 9776@endif fastjar
1358ccea 9777
295f4e42
NN
9778.PHONY: maybe-mostlyclean-fastjar mostlyclean-fastjar
9779maybe-mostlyclean-fastjar:
60975492
PB
9780@if fastjar
9781maybe-mostlyclean-fastjar: mostlyclean-fastjar
1358ccea 9782
05750653 9783mostlyclean-fastjar:
f41d6665 9784 @: $(MAKE); $(unstage)
295f4e42 9785 @[ -f ./fastjar/Makefile ] || exit 0; \
8c90b13a
L
9786 r=`${PWD_COMMAND}`; export r; \
9787 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9788 $(HOST_EXPORTS) \
d32ab992 9789 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9790 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9791 done; \
295f4e42 9792 echo "Doing mostlyclean in fastjar" ; \
215c351a 9793 (cd $(HOST_SUBDIR)/fastjar && \
1358ccea
NN
9794 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9795 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9796 "RANLIB=$${RANLIB}" \
9797 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9798 mostlyclean) \
1358ccea
NN
9799 || exit 1
9800
60975492 9801@endif fastjar
1358ccea 9802
295f4e42
NN
9803.PHONY: maybe-clean-fastjar clean-fastjar
9804maybe-clean-fastjar:
60975492
PB
9805@if fastjar
9806maybe-clean-fastjar: clean-fastjar
1358ccea 9807
05750653 9808clean-fastjar:
f41d6665 9809 @: $(MAKE); $(unstage)
295f4e42 9810 @[ -f ./fastjar/Makefile ] || exit 0; \
8c90b13a
L
9811 r=`${PWD_COMMAND}`; export r; \
9812 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9813 $(HOST_EXPORTS) \
d32ab992 9814 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9815 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9816 done; \
295f4e42 9817 echo "Doing clean in fastjar" ; \
215c351a 9818 (cd $(HOST_SUBDIR)/fastjar && \
1358ccea
NN
9819 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9820 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9821 "RANLIB=$${RANLIB}" \
9822 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9823 clean) \
1358ccea
NN
9824 || exit 1
9825
60975492 9826@endif fastjar
1358ccea 9827
295f4e42
NN
9828.PHONY: maybe-distclean-fastjar distclean-fastjar
9829maybe-distclean-fastjar:
60975492
PB
9830@if fastjar
9831maybe-distclean-fastjar: distclean-fastjar
1358ccea 9832
05750653 9833distclean-fastjar:
f41d6665 9834 @: $(MAKE); $(unstage)
295f4e42 9835 @[ -f ./fastjar/Makefile ] || exit 0; \
8c90b13a
L
9836 r=`${PWD_COMMAND}`; export r; \
9837 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9838 $(HOST_EXPORTS) \
d32ab992 9839 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9840 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9841 done; \
295f4e42 9842 echo "Doing distclean in fastjar" ; \
215c351a 9843 (cd $(HOST_SUBDIR)/fastjar && \
1358ccea
NN
9844 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9845 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9846 "RANLIB=$${RANLIB}" \
9847 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9848 distclean) \
1358ccea
NN
9849 || exit 1
9850
60975492 9851@endif fastjar
1358ccea 9852
295f4e42
NN
9853.PHONY: maybe-maintainer-clean-fastjar maintainer-clean-fastjar
9854maybe-maintainer-clean-fastjar:
60975492
PB
9855@if fastjar
9856maybe-maintainer-clean-fastjar: maintainer-clean-fastjar
1358ccea 9857
05750653 9858maintainer-clean-fastjar:
f41d6665 9859 @: $(MAKE); $(unstage)
295f4e42 9860 @[ -f ./fastjar/Makefile ] || exit 0; \
8c90b13a
L
9861 r=`${PWD_COMMAND}`; export r; \
9862 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9863 $(HOST_EXPORTS) \
d32ab992 9864 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9865 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9866 done; \
295f4e42 9867 echo "Doing maintainer-clean in fastjar" ; \
215c351a 9868 (cd $(HOST_SUBDIR)/fastjar && \
1358ccea
NN
9869 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9870 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9871 "RANLIB=$${RANLIB}" \
9872 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9873 maintainer-clean) \
1358ccea
NN
9874 || exit 1
9875
60975492 9876@endif fastjar
1358ccea 9877
1358ccea 9878
25b42232 9879
295f4e42
NN
9880.PHONY: configure-fileutils maybe-configure-fileutils
9881maybe-configure-fileutils:
3ff3adad
PB
9882@if gcc-bootstrap
9883configure-fileutils: stage_current
9884@endif gcc-bootstrap
60975492
PB
9885@if fileutils
9886maybe-configure-fileutils: configure-fileutils
cc11cc9b 9887configure-fileutils:
f41d6665 9888 @: $(MAKE); $(unstage)
cc11cc9b 9889 @r=`${PWD_COMMAND}`; export r; \
295f4e42 9890 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
9891 test ! -f $(HOST_SUBDIR)/fileutils/Makefile || exit 0; \
9892 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fileutils ; \
4fc4dd12 9893 $(HOST_EXPORTS) \
25b42232
PB
9894 echo Configuring in $(HOST_SUBDIR)/fileutils; \
9895 cd "$(HOST_SUBDIR)/fileutils" || exit 1; \
295f4e42 9896 case $(srcdir) in \
215c351a
PB
9897 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
9898 *) topdir=`echo $(HOST_SUBDIR)/fileutils/ | \
9899 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 9900 esac; \
215c351a
PB
9901 srcdiroption="--srcdir=$${topdir}/fileutils"; \
9902 libsrcdir="$$s/fileutils"; \
295f4e42 9903 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 9904 $(HOST_CONFIGARGS) $${srcdiroption} \
295f4e42 9905 || exit 1
60975492 9906@endif fileutils
295f4e42 9907
25b42232
PB
9908
9909
ce406537
PB
9910
9911
295f4e42
NN
9912.PHONY: all-fileutils maybe-all-fileutils
9913maybe-all-fileutils:
3ff3adad
PB
9914@if gcc-bootstrap
9915all-fileutils: stage_current
9916@endif gcc-bootstrap
60975492 9917@if fileutils
7e0b5752 9918TARGET-fileutils=all
60975492 9919maybe-all-fileutils: all-fileutils
295f4e42 9920all-fileutils: configure-fileutils
f41d6665 9921 @: $(MAKE); $(unstage)
295f4e42
NN
9922 @r=`${PWD_COMMAND}`; export r; \
9923 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9924 $(HOST_EXPORTS) \
215c351a
PB
9925 (cd $(HOST_SUBDIR)/fileutils && \
9926 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-fileutils))
60975492 9927@endif fileutils
295f4e42 9928
25b42232 9929
ce406537
PB
9930
9931
295f4e42
NN
9932.PHONY: check-fileutils maybe-check-fileutils
9933maybe-check-fileutils:
60975492
PB
9934@if fileutils
9935maybe-check-fileutils: check-fileutils
295f4e42
NN
9936
9937check-fileutils:
f41d6665 9938 @: $(MAKE); $(unstage)
295f4e42
NN
9939 @r=`${PWD_COMMAND}`; export r; \
9940 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9941 $(HOST_EXPORTS) \
215c351a
PB
9942 (cd $(HOST_SUBDIR)/fileutils && \
9943 $(MAKE) $(FLAGS_TO_PASS) check)
295f4e42 9944
60975492 9945@endif fileutils
295f4e42
NN
9946
9947.PHONY: install-fileutils maybe-install-fileutils
9948maybe-install-fileutils:
60975492
PB
9949@if fileutils
9950maybe-install-fileutils: install-fileutils
295f4e42
NN
9951
9952install-fileutils: installdirs
f41d6665 9953 @: $(MAKE); $(unstage)
295f4e42
NN
9954 @r=`${PWD_COMMAND}`; export r; \
9955 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9956 $(HOST_EXPORTS) \
215c351a 9957 (cd $(HOST_SUBDIR)/fileutils && \
ace9ac7b 9958 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 9959
60975492 9960@endif fileutils
295f4e42 9961
b5422ad7 9962# Other targets (info, dvi, pdf, etc.)
295f4e42
NN
9963
9964.PHONY: maybe-info-fileutils info-fileutils
9965maybe-info-fileutils:
60975492
PB
9966@if fileutils
9967maybe-info-fileutils: info-fileutils
295f4e42
NN
9968
9969info-fileutils: \
05750653 9970 configure-fileutils
f41d6665 9971 @: $(MAKE); $(unstage)
295f4e42 9972 @[ -f ./fileutils/Makefile ] || exit 0; \
8c90b13a
L
9973 r=`${PWD_COMMAND}`; export r; \
9974 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 9975 $(HOST_EXPORTS) \
d32ab992 9976 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
9977 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
9978 done; \
295f4e42 9979 echo "Doing info in fileutils" ; \
215c351a 9980 (cd $(HOST_SUBDIR)/fileutils && \
1358ccea
NN
9981 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
9982 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
9983 "RANLIB=$${RANLIB}" \
9984 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 9985 info) \
1358ccea
NN
9986 || exit 1
9987
60975492 9988@endif fileutils
1358ccea 9989
295f4e42
NN
9990.PHONY: maybe-dvi-fileutils dvi-fileutils
9991maybe-dvi-fileutils:
60975492
PB
9992@if fileutils
9993maybe-dvi-fileutils: dvi-fileutils
1358ccea 9994
295f4e42 9995dvi-fileutils: \
05750653 9996 configure-fileutils
f41d6665 9997 @: $(MAKE); $(unstage)
295f4e42 9998 @[ -f ./fileutils/Makefile ] || exit 0; \
8c90b13a
L
9999 r=`${PWD_COMMAND}`; export r; \
10000 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10001 $(HOST_EXPORTS) \
d32ab992 10002 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10003 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10004 done; \
295f4e42 10005 echo "Doing dvi in fileutils" ; \
215c351a 10006 (cd $(HOST_SUBDIR)/fileutils && \
1358ccea
NN
10007 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10008 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10009 "RANLIB=$${RANLIB}" \
10010 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10011 dvi) \
1358ccea
NN
10012 || exit 1
10013
60975492 10014@endif fileutils
1358ccea 10015
b5422ad7
BM
10016.PHONY: maybe-pdf-fileutils pdf-fileutils
10017maybe-pdf-fileutils:
10018@if fileutils
10019maybe-pdf-fileutils: pdf-fileutils
10020
10021pdf-fileutils: \
10022 configure-fileutils
10023 @: $(MAKE); $(unstage)
10024 @[ -f ./fileutils/Makefile ] || exit 0; \
10025 r=`${PWD_COMMAND}`; export r; \
10026 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10027 $(HOST_EXPORTS) \
10028 for flag in $(EXTRA_HOST_FLAGS) ; do \
10029 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10030 done; \
10031 echo "Doing pdf in fileutils" ; \
10032 (cd $(HOST_SUBDIR)/fileutils && \
10033 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10034 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10035 "RANLIB=$${RANLIB}" \
10036 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10037 pdf) \
10038 || exit 1
10039
10040@endif fileutils
10041
f87a2b2e
MS
10042.PHONY: maybe-html-fileutils html-fileutils
10043maybe-html-fileutils:
10044@if fileutils
10045maybe-html-fileutils: html-fileutils
10046
10047html-fileutils: \
05750653 10048 configure-fileutils
f41d6665 10049 @: $(MAKE); $(unstage)
f87a2b2e
MS
10050 @[ -f ./fileutils/Makefile ] || exit 0; \
10051 r=`${PWD_COMMAND}`; export r; \
10052 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
10053 $(HOST_EXPORTS) \
10054 for flag in $(EXTRA_HOST_FLAGS) ; do \
10055 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10056 done; \
10057 echo "Doing html in fileutils" ; \
215c351a 10058 (cd $(HOST_SUBDIR)/fileutils && \
f87a2b2e
MS
10059 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10060 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10061 "RANLIB=$${RANLIB}" \
10062 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10063 html) \
10064 || exit 1
10065
10066@endif fileutils
10067
295f4e42
NN
10068.PHONY: maybe-TAGS-fileutils TAGS-fileutils
10069maybe-TAGS-fileutils:
60975492
PB
10070@if fileutils
10071maybe-TAGS-fileutils: TAGS-fileutils
1358ccea 10072
295f4e42 10073TAGS-fileutils: \
05750653 10074 configure-fileutils
f41d6665 10075 @: $(MAKE); $(unstage)
295f4e42 10076 @[ -f ./fileutils/Makefile ] || exit 0; \
8c90b13a
L
10077 r=`${PWD_COMMAND}`; export r; \
10078 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10079 $(HOST_EXPORTS) \
d32ab992 10080 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10081 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10082 done; \
295f4e42 10083 echo "Doing TAGS in fileutils" ; \
215c351a 10084 (cd $(HOST_SUBDIR)/fileutils && \
1358ccea
NN
10085 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10086 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10087 "RANLIB=$${RANLIB}" \
10088 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10089 TAGS) \
1358ccea
NN
10090 || exit 1
10091
60975492 10092@endif fileutils
1358ccea 10093
295f4e42
NN
10094.PHONY: maybe-install-info-fileutils install-info-fileutils
10095maybe-install-info-fileutils:
60975492
PB
10096@if fileutils
10097maybe-install-info-fileutils: install-info-fileutils
1358ccea 10098
295f4e42
NN
10099install-info-fileutils: \
10100 configure-fileutils \
05750653 10101 info-fileutils
f41d6665 10102 @: $(MAKE); $(unstage)
295f4e42 10103 @[ -f ./fileutils/Makefile ] || exit 0; \
8c90b13a
L
10104 r=`${PWD_COMMAND}`; export r; \
10105 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10106 $(HOST_EXPORTS) \
d32ab992 10107 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10108 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10109 done; \
295f4e42 10110 echo "Doing install-info in fileutils" ; \
215c351a 10111 (cd $(HOST_SUBDIR)/fileutils && \
1358ccea
NN
10112 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10113 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10114 "RANLIB=$${RANLIB}" \
10115 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10116 install-info) \
1358ccea
NN
10117 || exit 1
10118
60975492 10119@endif fileutils
1358ccea 10120
65d6e994
CD
10121.PHONY: maybe-install-html-fileutils install-html-fileutils
10122maybe-install-html-fileutils:
10123@if fileutils
10124maybe-install-html-fileutils: install-html-fileutils
10125
10126install-html-fileutils: \
10127 configure-fileutils \
10128 html-fileutils
10129 @: $(MAKE); $(unstage)
10130 @[ -f ./fileutils/Makefile ] || exit 0; \
10131 r=`${PWD_COMMAND}`; export r; \
10132 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10133 $(HOST_EXPORTS) \
10134 for flag in $(EXTRA_HOST_FLAGS) ; do \
10135 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10136 done; \
10137 echo "Doing install-html in fileutils" ; \
10138 (cd $(HOST_SUBDIR)/fileutils && \
10139 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10140 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10141 "RANLIB=$${RANLIB}" \
10142 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10143 install-html) \
10144 || exit 1
10145
10146@endif fileutils
10147
295f4e42
NN
10148.PHONY: maybe-installcheck-fileutils installcheck-fileutils
10149maybe-installcheck-fileutils:
60975492
PB
10150@if fileutils
10151maybe-installcheck-fileutils: installcheck-fileutils
1358ccea 10152
295f4e42 10153installcheck-fileutils: \
05750653 10154 configure-fileutils
f41d6665 10155 @: $(MAKE); $(unstage)
295f4e42 10156 @[ -f ./fileutils/Makefile ] || exit 0; \
8c90b13a
L
10157 r=`${PWD_COMMAND}`; export r; \
10158 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10159 $(HOST_EXPORTS) \
d32ab992 10160 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10161 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10162 done; \
295f4e42 10163 echo "Doing installcheck in fileutils" ; \
215c351a 10164 (cd $(HOST_SUBDIR)/fileutils && \
1358ccea
NN
10165 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10166 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10167 "RANLIB=$${RANLIB}" \
10168 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10169 installcheck) \
1358ccea
NN
10170 || exit 1
10171
60975492 10172@endif fileutils
1358ccea 10173
295f4e42
NN
10174.PHONY: maybe-mostlyclean-fileutils mostlyclean-fileutils
10175maybe-mostlyclean-fileutils:
60975492
PB
10176@if fileutils
10177maybe-mostlyclean-fileutils: mostlyclean-fileutils
1358ccea 10178
05750653 10179mostlyclean-fileutils:
f41d6665 10180 @: $(MAKE); $(unstage)
295f4e42 10181 @[ -f ./fileutils/Makefile ] || exit 0; \
8c90b13a
L
10182 r=`${PWD_COMMAND}`; export r; \
10183 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10184 $(HOST_EXPORTS) \
d32ab992 10185 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10186 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10187 done; \
295f4e42 10188 echo "Doing mostlyclean in fileutils" ; \
215c351a 10189 (cd $(HOST_SUBDIR)/fileutils && \
1358ccea
NN
10190 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10191 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10192 "RANLIB=$${RANLIB}" \
10193 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10194 mostlyclean) \
1358ccea
NN
10195 || exit 1
10196
60975492 10197@endif fileutils
1358ccea 10198
295f4e42
NN
10199.PHONY: maybe-clean-fileutils clean-fileutils
10200maybe-clean-fileutils:
60975492
PB
10201@if fileutils
10202maybe-clean-fileutils: clean-fileutils
1358ccea 10203
05750653 10204clean-fileutils:
f41d6665 10205 @: $(MAKE); $(unstage)
295f4e42 10206 @[ -f ./fileutils/Makefile ] || exit 0; \
8c90b13a
L
10207 r=`${PWD_COMMAND}`; export r; \
10208 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10209 $(HOST_EXPORTS) \
d32ab992 10210 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10211 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10212 done; \
295f4e42 10213 echo "Doing clean in fileutils" ; \
215c351a 10214 (cd $(HOST_SUBDIR)/fileutils && \
1358ccea
NN
10215 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10216 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10217 "RANLIB=$${RANLIB}" \
10218 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10219 clean) \
1358ccea
NN
10220 || exit 1
10221
60975492 10222@endif fileutils
1358ccea 10223
295f4e42
NN
10224.PHONY: maybe-distclean-fileutils distclean-fileutils
10225maybe-distclean-fileutils:
60975492
PB
10226@if fileutils
10227maybe-distclean-fileutils: distclean-fileutils
1358ccea 10228
05750653 10229distclean-fileutils:
f41d6665 10230 @: $(MAKE); $(unstage)
295f4e42 10231 @[ -f ./fileutils/Makefile ] || exit 0; \
8c90b13a
L
10232 r=`${PWD_COMMAND}`; export r; \
10233 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10234 $(HOST_EXPORTS) \
d32ab992 10235 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10236 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10237 done; \
295f4e42 10238 echo "Doing distclean in fileutils" ; \
215c351a 10239 (cd $(HOST_SUBDIR)/fileutils && \
1358ccea
NN
10240 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10241 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10242 "RANLIB=$${RANLIB}" \
10243 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10244 distclean) \
1358ccea
NN
10245 || exit 1
10246
60975492 10247@endif fileutils
1358ccea 10248
295f4e42
NN
10249.PHONY: maybe-maintainer-clean-fileutils maintainer-clean-fileutils
10250maybe-maintainer-clean-fileutils:
60975492
PB
10251@if fileutils
10252maybe-maintainer-clean-fileutils: maintainer-clean-fileutils
1358ccea 10253
05750653 10254maintainer-clean-fileutils:
f41d6665 10255 @: $(MAKE); $(unstage)
1358ccea 10256 @[ -f ./fileutils/Makefile ] || exit 0; \
8c90b13a
L
10257 r=`${PWD_COMMAND}`; export r; \
10258 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10259 $(HOST_EXPORTS) \
d32ab992 10260 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10261 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10262 done; \
295f4e42 10263 echo "Doing maintainer-clean in fileutils" ; \
215c351a 10264 (cd $(HOST_SUBDIR)/fileutils && \
1358ccea
NN
10265 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10266 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10267 "RANLIB=$${RANLIB}" \
10268 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10269 maintainer-clean) \
295f4e42
NN
10270 || exit 1
10271
60975492 10272@endif fileutils
295f4e42
NN
10273
10274
25b42232 10275
295f4e42
NN
10276.PHONY: configure-findutils maybe-configure-findutils
10277maybe-configure-findutils:
3ff3adad
PB
10278@if gcc-bootstrap
10279configure-findutils: stage_current
10280@endif gcc-bootstrap
60975492
PB
10281@if findutils
10282maybe-configure-findutils: configure-findutils
cc11cc9b 10283configure-findutils:
f41d6665 10284 @: $(MAKE); $(unstage)
cc11cc9b 10285 @r=`${PWD_COMMAND}`; export r; \
295f4e42 10286 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
10287 test ! -f $(HOST_SUBDIR)/findutils/Makefile || exit 0; \
10288 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/findutils ; \
4fc4dd12 10289 $(HOST_EXPORTS) \
25b42232
PB
10290 echo Configuring in $(HOST_SUBDIR)/findutils; \
10291 cd "$(HOST_SUBDIR)/findutils" || exit 1; \
295f4e42 10292 case $(srcdir) in \
215c351a
PB
10293 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10294 *) topdir=`echo $(HOST_SUBDIR)/findutils/ | \
10295 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 10296 esac; \
215c351a
PB
10297 srcdiroption="--srcdir=$${topdir}/findutils"; \
10298 libsrcdir="$$s/findutils"; \
295f4e42 10299 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 10300 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 10301 || exit 1
60975492 10302@endif findutils
1358ccea 10303
25b42232
PB
10304
10305
ce406537
PB
10306
10307
295f4e42
NN
10308.PHONY: all-findutils maybe-all-findutils
10309maybe-all-findutils:
3ff3adad
PB
10310@if gcc-bootstrap
10311all-findutils: stage_current
10312@endif gcc-bootstrap
60975492 10313@if findutils
7e0b5752 10314TARGET-findutils=all
60975492 10315maybe-all-findutils: all-findutils
295f4e42 10316all-findutils: configure-findutils
f41d6665 10317 @: $(MAKE); $(unstage)
295f4e42 10318 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 10319 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10320 $(HOST_EXPORTS) \
215c351a
PB
10321 (cd $(HOST_SUBDIR)/findutils && \
10322 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-findutils))
60975492 10323@endif findutils
1358ccea 10324
25b42232 10325
ce406537
PB
10326
10327
295f4e42
NN
10328.PHONY: check-findutils maybe-check-findutils
10329maybe-check-findutils:
60975492
PB
10330@if findutils
10331maybe-check-findutils: check-findutils
1358ccea 10332
295f4e42 10333check-findutils:
f41d6665 10334 @: $(MAKE); $(unstage)
295f4e42 10335 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 10336 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10337 $(HOST_EXPORTS) \
215c351a
PB
10338 (cd $(HOST_SUBDIR)/findutils && \
10339 $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 10340
60975492 10341@endif findutils
1358ccea 10342
295f4e42
NN
10343.PHONY: install-findutils maybe-install-findutils
10344maybe-install-findutils:
60975492
PB
10345@if findutils
10346maybe-install-findutils: install-findutils
1358ccea 10347
295f4e42 10348install-findutils: installdirs
f41d6665 10349 @: $(MAKE); $(unstage)
295f4e42 10350 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 10351 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10352 $(HOST_EXPORTS) \
215c351a 10353 (cd $(HOST_SUBDIR)/findutils && \
ace9ac7b 10354 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 10355
60975492 10356@endif findutils
1358ccea 10357
b5422ad7 10358# Other targets (info, dvi, pdf, etc.)
1358ccea 10359
295f4e42
NN
10360.PHONY: maybe-info-findutils info-findutils
10361maybe-info-findutils:
60975492
PB
10362@if findutils
10363maybe-info-findutils: info-findutils
295f4e42
NN
10364
10365info-findutils: \
05750653 10366 configure-findutils
f41d6665 10367 @: $(MAKE); $(unstage)
295f4e42 10368 @[ -f ./findutils/Makefile ] || exit 0; \
8c90b13a
L
10369 r=`${PWD_COMMAND}`; export r; \
10370 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10371 $(HOST_EXPORTS) \
d32ab992 10372 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10373 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10374 done; \
295f4e42 10375 echo "Doing info in findutils" ; \
215c351a 10376 (cd $(HOST_SUBDIR)/findutils && \
1358ccea
NN
10377 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10378 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10379 "RANLIB=$${RANLIB}" \
10380 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10381 info) \
1358ccea
NN
10382 || exit 1
10383
60975492 10384@endif findutils
1358ccea 10385
295f4e42
NN
10386.PHONY: maybe-dvi-findutils dvi-findutils
10387maybe-dvi-findutils:
60975492
PB
10388@if findutils
10389maybe-dvi-findutils: dvi-findutils
1358ccea 10390
295f4e42 10391dvi-findutils: \
05750653 10392 configure-findutils
f41d6665 10393 @: $(MAKE); $(unstage)
295f4e42 10394 @[ -f ./findutils/Makefile ] || exit 0; \
8c90b13a
L
10395 r=`${PWD_COMMAND}`; export r; \
10396 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10397 $(HOST_EXPORTS) \
d32ab992 10398 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10399 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10400 done; \
295f4e42 10401 echo "Doing dvi in findutils" ; \
215c351a 10402 (cd $(HOST_SUBDIR)/findutils && \
1358ccea
NN
10403 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10404 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10405 "RANLIB=$${RANLIB}" \
10406 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10407 dvi) \
1358ccea
NN
10408 || exit 1
10409
60975492 10410@endif findutils
1358ccea 10411
b5422ad7
BM
10412.PHONY: maybe-pdf-findutils pdf-findutils
10413maybe-pdf-findutils:
10414@if findutils
10415maybe-pdf-findutils: pdf-findutils
10416
10417pdf-findutils: \
10418 configure-findutils
10419 @: $(MAKE); $(unstage)
10420 @[ -f ./findutils/Makefile ] || exit 0; \
10421 r=`${PWD_COMMAND}`; export r; \
10422 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10423 $(HOST_EXPORTS) \
10424 for flag in $(EXTRA_HOST_FLAGS) ; do \
10425 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10426 done; \
10427 echo "Doing pdf in findutils" ; \
10428 (cd $(HOST_SUBDIR)/findutils && \
10429 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10430 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10431 "RANLIB=$${RANLIB}" \
10432 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10433 pdf) \
10434 || exit 1
10435
10436@endif findutils
10437
f87a2b2e
MS
10438.PHONY: maybe-html-findutils html-findutils
10439maybe-html-findutils:
10440@if findutils
10441maybe-html-findutils: html-findutils
10442
10443html-findutils: \
05750653 10444 configure-findutils
f41d6665 10445 @: $(MAKE); $(unstage)
f87a2b2e
MS
10446 @[ -f ./findutils/Makefile ] || exit 0; \
10447 r=`${PWD_COMMAND}`; export r; \
10448 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
10449 $(HOST_EXPORTS) \
10450 for flag in $(EXTRA_HOST_FLAGS) ; do \
10451 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10452 done; \
10453 echo "Doing html in findutils" ; \
215c351a 10454 (cd $(HOST_SUBDIR)/findutils && \
f87a2b2e
MS
10455 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10456 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10457 "RANLIB=$${RANLIB}" \
10458 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10459 html) \
10460 || exit 1
10461
10462@endif findutils
10463
295f4e42
NN
10464.PHONY: maybe-TAGS-findutils TAGS-findutils
10465maybe-TAGS-findutils:
60975492
PB
10466@if findutils
10467maybe-TAGS-findutils: TAGS-findutils
1358ccea 10468
295f4e42 10469TAGS-findutils: \
05750653 10470 configure-findutils
f41d6665 10471 @: $(MAKE); $(unstage)
295f4e42 10472 @[ -f ./findutils/Makefile ] || exit 0; \
8c90b13a
L
10473 r=`${PWD_COMMAND}`; export r; \
10474 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10475 $(HOST_EXPORTS) \
d32ab992 10476 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10477 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10478 done; \
295f4e42 10479 echo "Doing TAGS in findutils" ; \
215c351a 10480 (cd $(HOST_SUBDIR)/findutils && \
1358ccea
NN
10481 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10482 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10483 "RANLIB=$${RANLIB}" \
10484 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10485 TAGS) \
1358ccea
NN
10486 || exit 1
10487
60975492 10488@endif findutils
1358ccea 10489
295f4e42
NN
10490.PHONY: maybe-install-info-findutils install-info-findutils
10491maybe-install-info-findutils:
60975492
PB
10492@if findutils
10493maybe-install-info-findutils: install-info-findutils
1358ccea 10494
295f4e42
NN
10495install-info-findutils: \
10496 configure-findutils \
05750653 10497 info-findutils
f41d6665 10498 @: $(MAKE); $(unstage)
295f4e42 10499 @[ -f ./findutils/Makefile ] || exit 0; \
8c90b13a
L
10500 r=`${PWD_COMMAND}`; export r; \
10501 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10502 $(HOST_EXPORTS) \
d32ab992 10503 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10504 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10505 done; \
295f4e42 10506 echo "Doing install-info in findutils" ; \
215c351a 10507 (cd $(HOST_SUBDIR)/findutils && \
1358ccea
NN
10508 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10509 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10510 "RANLIB=$${RANLIB}" \
10511 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10512 install-info) \
1358ccea
NN
10513 || exit 1
10514
60975492 10515@endif findutils
1358ccea 10516
65d6e994
CD
10517.PHONY: maybe-install-html-findutils install-html-findutils
10518maybe-install-html-findutils:
10519@if findutils
10520maybe-install-html-findutils: install-html-findutils
10521
10522install-html-findutils: \
10523 configure-findutils \
10524 html-findutils
10525 @: $(MAKE); $(unstage)
10526 @[ -f ./findutils/Makefile ] || exit 0; \
10527 r=`${PWD_COMMAND}`; export r; \
10528 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10529 $(HOST_EXPORTS) \
10530 for flag in $(EXTRA_HOST_FLAGS) ; do \
10531 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10532 done; \
10533 echo "Doing install-html in findutils" ; \
10534 (cd $(HOST_SUBDIR)/findutils && \
10535 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10536 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10537 "RANLIB=$${RANLIB}" \
10538 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10539 install-html) \
10540 || exit 1
10541
10542@endif findutils
10543
295f4e42
NN
10544.PHONY: maybe-installcheck-findutils installcheck-findutils
10545maybe-installcheck-findutils:
60975492
PB
10546@if findutils
10547maybe-installcheck-findutils: installcheck-findutils
1358ccea 10548
295f4e42 10549installcheck-findutils: \
05750653 10550 configure-findutils
f41d6665 10551 @: $(MAKE); $(unstage)
295f4e42 10552 @[ -f ./findutils/Makefile ] || exit 0; \
8c90b13a
L
10553 r=`${PWD_COMMAND}`; export r; \
10554 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10555 $(HOST_EXPORTS) \
d32ab992 10556 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10557 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10558 done; \
295f4e42 10559 echo "Doing installcheck in findutils" ; \
215c351a 10560 (cd $(HOST_SUBDIR)/findutils && \
1358ccea
NN
10561 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10562 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10563 "RANLIB=$${RANLIB}" \
10564 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10565 installcheck) \
1358ccea
NN
10566 || exit 1
10567
60975492 10568@endif findutils
1358ccea 10569
295f4e42
NN
10570.PHONY: maybe-mostlyclean-findutils mostlyclean-findutils
10571maybe-mostlyclean-findutils:
60975492
PB
10572@if findutils
10573maybe-mostlyclean-findutils: mostlyclean-findutils
1358ccea 10574
05750653 10575mostlyclean-findutils:
f41d6665 10576 @: $(MAKE); $(unstage)
295f4e42 10577 @[ -f ./findutils/Makefile ] || exit 0; \
8c90b13a
L
10578 r=`${PWD_COMMAND}`; export r; \
10579 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10580 $(HOST_EXPORTS) \
d32ab992 10581 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10582 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10583 done; \
295f4e42 10584 echo "Doing mostlyclean in findutils" ; \
215c351a 10585 (cd $(HOST_SUBDIR)/findutils && \
1358ccea
NN
10586 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10587 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10588 "RANLIB=$${RANLIB}" \
10589 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10590 mostlyclean) \
1358ccea
NN
10591 || exit 1
10592
60975492 10593@endif findutils
1358ccea 10594
295f4e42
NN
10595.PHONY: maybe-clean-findutils clean-findutils
10596maybe-clean-findutils:
60975492
PB
10597@if findutils
10598maybe-clean-findutils: clean-findutils
1358ccea 10599
05750653 10600clean-findutils:
f41d6665 10601 @: $(MAKE); $(unstage)
295f4e42 10602 @[ -f ./findutils/Makefile ] || exit 0; \
8c90b13a
L
10603 r=`${PWD_COMMAND}`; export r; \
10604 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10605 $(HOST_EXPORTS) \
d32ab992 10606 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10607 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10608 done; \
295f4e42 10609 echo "Doing clean in findutils" ; \
215c351a 10610 (cd $(HOST_SUBDIR)/findutils && \
1358ccea
NN
10611 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10612 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10613 "RANLIB=$${RANLIB}" \
10614 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10615 clean) \
1358ccea
NN
10616 || exit 1
10617
60975492 10618@endif findutils
1358ccea 10619
295f4e42
NN
10620.PHONY: maybe-distclean-findutils distclean-findutils
10621maybe-distclean-findutils:
60975492
PB
10622@if findutils
10623maybe-distclean-findutils: distclean-findutils
1358ccea 10624
05750653 10625distclean-findutils:
f41d6665 10626 @: $(MAKE); $(unstage)
295f4e42 10627 @[ -f ./findutils/Makefile ] || exit 0; \
8c90b13a
L
10628 r=`${PWD_COMMAND}`; export r; \
10629 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10630 $(HOST_EXPORTS) \
d32ab992 10631 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10632 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10633 done; \
295f4e42 10634 echo "Doing distclean in findutils" ; \
215c351a 10635 (cd $(HOST_SUBDIR)/findutils && \
1358ccea
NN
10636 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10637 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10638 "RANLIB=$${RANLIB}" \
10639 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10640 distclean) \
1358ccea
NN
10641 || exit 1
10642
60975492 10643@endif findutils
1358ccea 10644
295f4e42
NN
10645.PHONY: maybe-maintainer-clean-findutils maintainer-clean-findutils
10646maybe-maintainer-clean-findutils:
60975492
PB
10647@if findutils
10648maybe-maintainer-clean-findutils: maintainer-clean-findutils
1358ccea 10649
05750653 10650maintainer-clean-findutils:
f41d6665 10651 @: $(MAKE); $(unstage)
295f4e42 10652 @[ -f ./findutils/Makefile ] || exit 0; \
8c90b13a
L
10653 r=`${PWD_COMMAND}`; export r; \
10654 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10655 $(HOST_EXPORTS) \
d32ab992 10656 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10657 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10658 done; \
295f4e42 10659 echo "Doing maintainer-clean in findutils" ; \
215c351a 10660 (cd $(HOST_SUBDIR)/findutils && \
1358ccea
NN
10661 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10662 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10663 "RANLIB=$${RANLIB}" \
10664 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10665 maintainer-clean) \
1358ccea
NN
10666 || exit 1
10667
60975492 10668@endif findutils
1358ccea 10669
1358ccea 10670
25b42232 10671
295f4e42
NN
10672.PHONY: configure-find maybe-configure-find
10673maybe-configure-find:
3ff3adad
PB
10674@if gcc-bootstrap
10675configure-find: stage_current
10676@endif gcc-bootstrap
60975492
PB
10677@if find
10678maybe-configure-find: configure-find
cc11cc9b 10679configure-find:
f41d6665 10680 @: $(MAKE); $(unstage)
cc11cc9b 10681 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 10682 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
10683 test ! -f $(HOST_SUBDIR)/find/Makefile || exit 0; \
10684 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/find ; \
4fc4dd12 10685 $(HOST_EXPORTS) \
25b42232
PB
10686 echo Configuring in $(HOST_SUBDIR)/find; \
10687 cd "$(HOST_SUBDIR)/find" || exit 1; \
295f4e42 10688 case $(srcdir) in \
215c351a
PB
10689 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
10690 *) topdir=`echo $(HOST_SUBDIR)/find/ | \
10691 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 10692 esac; \
215c351a
PB
10693 srcdiroption="--srcdir=$${topdir}/find"; \
10694 libsrcdir="$$s/find"; \
295f4e42 10695 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 10696 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 10697 || exit 1
60975492 10698@endif find
1358ccea 10699
25b42232
PB
10700
10701
ce406537
PB
10702
10703
295f4e42
NN
10704.PHONY: all-find maybe-all-find
10705maybe-all-find:
3ff3adad
PB
10706@if gcc-bootstrap
10707all-find: stage_current
10708@endif gcc-bootstrap
60975492 10709@if find
7e0b5752 10710TARGET-find=all
60975492 10711maybe-all-find: all-find
295f4e42 10712all-find: configure-find
f41d6665 10713 @: $(MAKE); $(unstage)
295f4e42
NN
10714 @r=`${PWD_COMMAND}`; export r; \
10715 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10716 $(HOST_EXPORTS) \
215c351a
PB
10717 (cd $(HOST_SUBDIR)/find && \
10718 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-find))
60975492 10719@endif find
1358ccea 10720
25b42232 10721
ce406537
PB
10722
10723
295f4e42
NN
10724.PHONY: check-find maybe-check-find
10725maybe-check-find:
60975492
PB
10726@if find
10727maybe-check-find: check-find
1358ccea 10728
295f4e42 10729check-find:
f41d6665 10730 @: $(MAKE); $(unstage)
295f4e42 10731 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 10732 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10733 $(HOST_EXPORTS) \
215c351a
PB
10734 (cd $(HOST_SUBDIR)/find && \
10735 $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 10736
60975492 10737@endif find
1358ccea 10738
295f4e42
NN
10739.PHONY: install-find maybe-install-find
10740maybe-install-find:
60975492
PB
10741@if find
10742maybe-install-find: install-find
1358ccea 10743
295f4e42 10744install-find: installdirs
f41d6665 10745 @: $(MAKE); $(unstage)
295f4e42 10746 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 10747 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10748 $(HOST_EXPORTS) \
215c351a 10749 (cd $(HOST_SUBDIR)/find && \
ace9ac7b 10750 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 10751
60975492 10752@endif find
1358ccea 10753
b5422ad7 10754# Other targets (info, dvi, pdf, etc.)
1358ccea 10755
295f4e42
NN
10756.PHONY: maybe-info-find info-find
10757maybe-info-find:
60975492
PB
10758@if find
10759maybe-info-find: info-find
295f4e42
NN
10760
10761info-find: \
05750653 10762 configure-find
f41d6665 10763 @: $(MAKE); $(unstage)
295f4e42 10764 @[ -f ./find/Makefile ] || exit 0; \
8c90b13a
L
10765 r=`${PWD_COMMAND}`; export r; \
10766 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10767 $(HOST_EXPORTS) \
d32ab992 10768 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10769 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10770 done; \
295f4e42 10771 echo "Doing info in find" ; \
215c351a 10772 (cd $(HOST_SUBDIR)/find && \
1358ccea
NN
10773 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10774 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10775 "RANLIB=$${RANLIB}" \
10776 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10777 info) \
1358ccea
NN
10778 || exit 1
10779
60975492 10780@endif find
1358ccea 10781
295f4e42
NN
10782.PHONY: maybe-dvi-find dvi-find
10783maybe-dvi-find:
60975492
PB
10784@if find
10785maybe-dvi-find: dvi-find
1358ccea 10786
295f4e42 10787dvi-find: \
05750653 10788 configure-find
f41d6665 10789 @: $(MAKE); $(unstage)
295f4e42 10790 @[ -f ./find/Makefile ] || exit 0; \
8c90b13a
L
10791 r=`${PWD_COMMAND}`; export r; \
10792 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10793 $(HOST_EXPORTS) \
d32ab992 10794 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10795 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10796 done; \
295f4e42 10797 echo "Doing dvi in find" ; \
215c351a 10798 (cd $(HOST_SUBDIR)/find && \
1358ccea
NN
10799 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10800 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10801 "RANLIB=$${RANLIB}" \
10802 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10803 dvi) \
1358ccea
NN
10804 || exit 1
10805
60975492 10806@endif find
1358ccea 10807
b5422ad7
BM
10808.PHONY: maybe-pdf-find pdf-find
10809maybe-pdf-find:
10810@if find
10811maybe-pdf-find: pdf-find
10812
10813pdf-find: \
10814 configure-find
10815 @: $(MAKE); $(unstage)
10816 @[ -f ./find/Makefile ] || exit 0; \
10817 r=`${PWD_COMMAND}`; export r; \
10818 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10819 $(HOST_EXPORTS) \
10820 for flag in $(EXTRA_HOST_FLAGS) ; do \
10821 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10822 done; \
10823 echo "Doing pdf in find" ; \
10824 (cd $(HOST_SUBDIR)/find && \
10825 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10826 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10827 "RANLIB=$${RANLIB}" \
10828 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10829 pdf) \
10830 || exit 1
10831
10832@endif find
10833
f87a2b2e
MS
10834.PHONY: maybe-html-find html-find
10835maybe-html-find:
10836@if find
10837maybe-html-find: html-find
10838
10839html-find: \
05750653 10840 configure-find
f41d6665 10841 @: $(MAKE); $(unstage)
f87a2b2e
MS
10842 @[ -f ./find/Makefile ] || exit 0; \
10843 r=`${PWD_COMMAND}`; export r; \
10844 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
10845 $(HOST_EXPORTS) \
10846 for flag in $(EXTRA_HOST_FLAGS) ; do \
10847 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10848 done; \
10849 echo "Doing html in find" ; \
215c351a 10850 (cd $(HOST_SUBDIR)/find && \
f87a2b2e
MS
10851 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10852 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10853 "RANLIB=$${RANLIB}" \
10854 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10855 html) \
10856 || exit 1
10857
10858@endif find
10859
295f4e42
NN
10860.PHONY: maybe-TAGS-find TAGS-find
10861maybe-TAGS-find:
60975492
PB
10862@if find
10863maybe-TAGS-find: TAGS-find
1358ccea 10864
295f4e42 10865TAGS-find: \
05750653 10866 configure-find
f41d6665 10867 @: $(MAKE); $(unstage)
295f4e42 10868 @[ -f ./find/Makefile ] || exit 0; \
8c90b13a
L
10869 r=`${PWD_COMMAND}`; export r; \
10870 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10871 $(HOST_EXPORTS) \
d32ab992 10872 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10873 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10874 done; \
295f4e42 10875 echo "Doing TAGS in find" ; \
215c351a 10876 (cd $(HOST_SUBDIR)/find && \
1358ccea
NN
10877 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10878 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10879 "RANLIB=$${RANLIB}" \
10880 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10881 TAGS) \
1358ccea
NN
10882 || exit 1
10883
60975492 10884@endif find
1358ccea 10885
295f4e42
NN
10886.PHONY: maybe-install-info-find install-info-find
10887maybe-install-info-find:
60975492
PB
10888@if find
10889maybe-install-info-find: install-info-find
1358ccea 10890
295f4e42
NN
10891install-info-find: \
10892 configure-find \
05750653 10893 info-find
f41d6665 10894 @: $(MAKE); $(unstage)
295f4e42 10895 @[ -f ./find/Makefile ] || exit 0; \
8c90b13a
L
10896 r=`${PWD_COMMAND}`; export r; \
10897 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10898 $(HOST_EXPORTS) \
d32ab992 10899 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10900 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10901 done; \
295f4e42 10902 echo "Doing install-info in find" ; \
215c351a 10903 (cd $(HOST_SUBDIR)/find && \
1358ccea
NN
10904 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10905 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10906 "RANLIB=$${RANLIB}" \
10907 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10908 install-info) \
1358ccea
NN
10909 || exit 1
10910
60975492 10911@endif find
1358ccea 10912
65d6e994
CD
10913.PHONY: maybe-install-html-find install-html-find
10914maybe-install-html-find:
10915@if find
10916maybe-install-html-find: install-html-find
10917
10918install-html-find: \
10919 configure-find \
10920 html-find
10921 @: $(MAKE); $(unstage)
10922 @[ -f ./find/Makefile ] || exit 0; \
10923 r=`${PWD_COMMAND}`; export r; \
10924 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
10925 $(HOST_EXPORTS) \
10926 for flag in $(EXTRA_HOST_FLAGS) ; do \
10927 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10928 done; \
10929 echo "Doing install-html in find" ; \
10930 (cd $(HOST_SUBDIR)/find && \
10931 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10932 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10933 "RANLIB=$${RANLIB}" \
10934 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
10935 install-html) \
10936 || exit 1
10937
10938@endif find
10939
295f4e42
NN
10940.PHONY: maybe-installcheck-find installcheck-find
10941maybe-installcheck-find:
60975492
PB
10942@if find
10943maybe-installcheck-find: installcheck-find
1358ccea 10944
295f4e42 10945installcheck-find: \
05750653 10946 configure-find
f41d6665 10947 @: $(MAKE); $(unstage)
295f4e42 10948 @[ -f ./find/Makefile ] || exit 0; \
8c90b13a
L
10949 r=`${PWD_COMMAND}`; export r; \
10950 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10951 $(HOST_EXPORTS) \
d32ab992 10952 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10953 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10954 done; \
295f4e42 10955 echo "Doing installcheck in find" ; \
215c351a 10956 (cd $(HOST_SUBDIR)/find && \
1358ccea
NN
10957 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10958 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10959 "RANLIB=$${RANLIB}" \
10960 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10961 installcheck) \
1358ccea
NN
10962 || exit 1
10963
60975492 10964@endif find
1358ccea 10965
295f4e42
NN
10966.PHONY: maybe-mostlyclean-find mostlyclean-find
10967maybe-mostlyclean-find:
60975492
PB
10968@if find
10969maybe-mostlyclean-find: mostlyclean-find
1358ccea 10970
05750653 10971mostlyclean-find:
f41d6665 10972 @: $(MAKE); $(unstage)
295f4e42 10973 @[ -f ./find/Makefile ] || exit 0; \
8c90b13a
L
10974 r=`${PWD_COMMAND}`; export r; \
10975 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 10976 $(HOST_EXPORTS) \
d32ab992 10977 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
10978 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
10979 done; \
295f4e42 10980 echo "Doing mostlyclean in find" ; \
215c351a 10981 (cd $(HOST_SUBDIR)/find && \
1358ccea
NN
10982 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
10983 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
10984 "RANLIB=$${RANLIB}" \
10985 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 10986 mostlyclean) \
1358ccea
NN
10987 || exit 1
10988
60975492 10989@endif find
1358ccea 10990
295f4e42
NN
10991.PHONY: maybe-clean-find clean-find
10992maybe-clean-find:
60975492
PB
10993@if find
10994maybe-clean-find: clean-find
1358ccea 10995
05750653 10996clean-find:
f41d6665 10997 @: $(MAKE); $(unstage)
295f4e42 10998 @[ -f ./find/Makefile ] || exit 0; \
8c90b13a
L
10999 r=`${PWD_COMMAND}`; export r; \
11000 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 11001 $(HOST_EXPORTS) \
d32ab992 11002 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11003 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11004 done; \
295f4e42 11005 echo "Doing clean in find" ; \
215c351a 11006 (cd $(HOST_SUBDIR)/find && \
1358ccea
NN
11007 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11008 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11009 "RANLIB=$${RANLIB}" \
11010 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 11011 clean) \
1358ccea
NN
11012 || exit 1
11013
60975492 11014@endif find
1358ccea 11015
295f4e42
NN
11016.PHONY: maybe-distclean-find distclean-find
11017maybe-distclean-find:
60975492
PB
11018@if find
11019maybe-distclean-find: distclean-find
1358ccea 11020
05750653 11021distclean-find:
f41d6665 11022 @: $(MAKE); $(unstage)
295f4e42 11023 @[ -f ./find/Makefile ] || exit 0; \
8c90b13a
L
11024 r=`${PWD_COMMAND}`; export r; \
11025 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 11026 $(HOST_EXPORTS) \
d32ab992 11027 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11028 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11029 done; \
295f4e42 11030 echo "Doing distclean in find" ; \
215c351a 11031 (cd $(HOST_SUBDIR)/find && \
1358ccea
NN
11032 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11033 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11034 "RANLIB=$${RANLIB}" \
11035 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 11036 distclean) \
1358ccea
NN
11037 || exit 1
11038
60975492 11039@endif find
1358ccea 11040
295f4e42
NN
11041.PHONY: maybe-maintainer-clean-find maintainer-clean-find
11042maybe-maintainer-clean-find:
60975492
PB
11043@if find
11044maybe-maintainer-clean-find: maintainer-clean-find
1358ccea 11045
05750653 11046maintainer-clean-find:
f41d6665 11047 @: $(MAKE); $(unstage)
295f4e42 11048 @[ -f ./find/Makefile ] || exit 0; \
8c90b13a
L
11049 r=`${PWD_COMMAND}`; export r; \
11050 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 11051 $(HOST_EXPORTS) \
d32ab992 11052 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11053 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11054 done; \
295f4e42 11055 echo "Doing maintainer-clean in find" ; \
215c351a 11056 (cd $(HOST_SUBDIR)/find && \
1358ccea
NN
11057 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11058 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11059 "RANLIB=$${RANLIB}" \
11060 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 11061 maintainer-clean) \
1358ccea
NN
11062 || exit 1
11063
60975492 11064@endif find
1358ccea 11065
1358ccea 11066
25b42232 11067
53c7ffe7
GK
11068.PHONY: configure-fixincludes maybe-configure-fixincludes
11069maybe-configure-fixincludes:
3ff3adad
PB
11070@if gcc-bootstrap
11071configure-fixincludes: stage_current
11072@endif gcc-bootstrap
53c7ffe7
GK
11073@if fixincludes
11074maybe-configure-fixincludes: configure-fixincludes
cc11cc9b 11075configure-fixincludes:
f41d6665 11076 @: $(MAKE); $(unstage)
cc11cc9b 11077 @r=`${PWD_COMMAND}`; export r; \
53c7ffe7 11078 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
11079 test ! -f $(HOST_SUBDIR)/fixincludes/Makefile || exit 0; \
11080 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/fixincludes ; \
53c7ffe7 11081 $(HOST_EXPORTS) \
25b42232
PB
11082 echo Configuring in $(HOST_SUBDIR)/fixincludes; \
11083 cd "$(HOST_SUBDIR)/fixincludes" || exit 1; \
53c7ffe7 11084 case $(srcdir) in \
215c351a
PB
11085 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11086 *) topdir=`echo $(HOST_SUBDIR)/fixincludes/ | \
11087 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
53c7ffe7 11088 esac; \
215c351a
PB
11089 srcdiroption="--srcdir=$${topdir}/fixincludes"; \
11090 libsrcdir="$$s/fixincludes"; \
53c7ffe7
GK
11091 $(SHELL) $${libsrcdir}/configure \
11092 $(HOST_CONFIGARGS) $${srcdiroption} \
11093 || exit 1
11094@endif fixincludes
11095
25b42232
PB
11096
11097
ce406537
PB
11098
11099
53c7ffe7
GK
11100.PHONY: all-fixincludes maybe-all-fixincludes
11101maybe-all-fixincludes:
3ff3adad
PB
11102@if gcc-bootstrap
11103all-fixincludes: stage_current
11104@endif gcc-bootstrap
53c7ffe7
GK
11105@if fixincludes
11106TARGET-fixincludes=all
11107maybe-all-fixincludes: all-fixincludes
11108all-fixincludes: configure-fixincludes
f41d6665 11109 @: $(MAKE); $(unstage)
53c7ffe7
GK
11110 @r=`${PWD_COMMAND}`; export r; \
11111 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53c7ffe7 11112 $(HOST_EXPORTS) \
215c351a
PB
11113 (cd $(HOST_SUBDIR)/fixincludes && \
11114 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-fixincludes))
53c7ffe7
GK
11115@endif fixincludes
11116
25b42232 11117
ce406537
PB
11118
11119
53c7ffe7
GK
11120.PHONY: check-fixincludes maybe-check-fixincludes
11121maybe-check-fixincludes:
11122@if fixincludes
11123maybe-check-fixincludes: check-fixincludes
11124
11125check-fixincludes:
f41d6665 11126 @: $(MAKE); $(unstage)
53c7ffe7
GK
11127 @r=`${PWD_COMMAND}`; export r; \
11128 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53c7ffe7 11129 $(HOST_EXPORTS) \
215c351a
PB
11130 (cd $(HOST_SUBDIR)/fixincludes && \
11131 $(MAKE) $(FLAGS_TO_PASS) check)
53c7ffe7
GK
11132
11133@endif fixincludes
11134
11135.PHONY: install-fixincludes maybe-install-fixincludes
11136maybe-install-fixincludes:
11137@if fixincludes
11138maybe-install-fixincludes: install-fixincludes
11139
11140install-fixincludes: installdirs
f41d6665 11141 @: $(MAKE); $(unstage)
53c7ffe7
GK
11142 @r=`${PWD_COMMAND}`; export r; \
11143 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53c7ffe7 11144 $(HOST_EXPORTS) \
215c351a 11145 (cd $(HOST_SUBDIR)/fixincludes && \
ace9ac7b 11146 $(MAKE) $(FLAGS_TO_PASS) install)
53c7ffe7
GK
11147
11148@endif fixincludes
11149
b5422ad7 11150# Other targets (info, dvi, pdf, etc.)
53c7ffe7
GK
11151
11152.PHONY: maybe-info-fixincludes info-fixincludes
11153maybe-info-fixincludes:
11154@if fixincludes
11155maybe-info-fixincludes: info-fixincludes
11156
54f88091
PB
11157# fixincludes doesn't support info.
11158info-fixincludes:
53c7ffe7
GK
11159
11160@endif fixincludes
11161
11162.PHONY: maybe-dvi-fixincludes dvi-fixincludes
11163maybe-dvi-fixincludes:
11164@if fixincludes
11165maybe-dvi-fixincludes: dvi-fixincludes
11166
54f88091
PB
11167# fixincludes doesn't support dvi.
11168dvi-fixincludes:
53c7ffe7
GK
11169
11170@endif fixincludes
11171
b5422ad7
BM
11172.PHONY: maybe-pdf-fixincludes pdf-fixincludes
11173maybe-pdf-fixincludes:
11174@if fixincludes
11175maybe-pdf-fixincludes: pdf-fixincludes
11176
11177# fixincludes doesn't support pdf.
11178pdf-fixincludes:
11179
11180@endif fixincludes
11181
f87a2b2e
MS
11182.PHONY: maybe-html-fixincludes html-fixincludes
11183maybe-html-fixincludes:
11184@if fixincludes
11185maybe-html-fixincludes: html-fixincludes
11186
11187html-fixincludes: \
05750653 11188 configure-fixincludes
f41d6665 11189 @: $(MAKE); $(unstage)
f87a2b2e
MS
11190 @[ -f ./fixincludes/Makefile ] || exit 0; \
11191 r=`${PWD_COMMAND}`; export r; \
11192 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
11193 $(HOST_EXPORTS) \
11194 for flag in $(EXTRA_HOST_FLAGS) ; do \
11195 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11196 done; \
11197 echo "Doing html in fixincludes" ; \
215c351a 11198 (cd $(HOST_SUBDIR)/fixincludes && \
f87a2b2e
MS
11199 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11200 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11201 "RANLIB=$${RANLIB}" \
11202 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11203 html) \
11204 || exit 1
11205
11206@endif fixincludes
11207
53c7ffe7
GK
11208.PHONY: maybe-TAGS-fixincludes TAGS-fixincludes
11209maybe-TAGS-fixincludes:
11210@if fixincludes
11211maybe-TAGS-fixincludes: TAGS-fixincludes
11212
54f88091
PB
11213# fixincludes doesn't support TAGS.
11214TAGS-fixincludes:
53c7ffe7
GK
11215
11216@endif fixincludes
11217
11218.PHONY: maybe-install-info-fixincludes install-info-fixincludes
11219maybe-install-info-fixincludes:
11220@if fixincludes
11221maybe-install-info-fixincludes: install-info-fixincludes
11222
54f88091
PB
11223# fixincludes doesn't support install-info.
11224install-info-fixincludes:
53c7ffe7
GK
11225
11226@endif fixincludes
11227
65d6e994
CD
11228.PHONY: maybe-install-html-fixincludes install-html-fixincludes
11229maybe-install-html-fixincludes:
11230@if fixincludes
11231maybe-install-html-fixincludes: install-html-fixincludes
11232
11233install-html-fixincludes: \
11234 configure-fixincludes \
11235 html-fixincludes
11236 @: $(MAKE); $(unstage)
11237 @[ -f ./fixincludes/Makefile ] || exit 0; \
11238 r=`${PWD_COMMAND}`; export r; \
11239 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11240 $(HOST_EXPORTS) \
11241 for flag in $(EXTRA_HOST_FLAGS) ; do \
11242 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11243 done; \
11244 echo "Doing install-html in fixincludes" ; \
11245 (cd $(HOST_SUBDIR)/fixincludes && \
11246 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11247 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11248 "RANLIB=$${RANLIB}" \
11249 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11250 install-html) \
11251 || exit 1
11252
11253@endif fixincludes
11254
53c7ffe7
GK
11255.PHONY: maybe-installcheck-fixincludes installcheck-fixincludes
11256maybe-installcheck-fixincludes:
11257@if fixincludes
11258maybe-installcheck-fixincludes: installcheck-fixincludes
11259
54f88091
PB
11260# fixincludes doesn't support installcheck.
11261installcheck-fixincludes:
53c7ffe7
GK
11262
11263@endif fixincludes
11264
11265.PHONY: maybe-mostlyclean-fixincludes mostlyclean-fixincludes
11266maybe-mostlyclean-fixincludes:
11267@if fixincludes
11268maybe-mostlyclean-fixincludes: mostlyclean-fixincludes
11269
05750653 11270mostlyclean-fixincludes:
f41d6665 11271 @: $(MAKE); $(unstage)
53c7ffe7
GK
11272 @[ -f ./fixincludes/Makefile ] || exit 0; \
11273 r=`${PWD_COMMAND}`; export r; \
11274 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53c7ffe7
GK
11275 $(HOST_EXPORTS) \
11276 for flag in $(EXTRA_HOST_FLAGS) ; do \
11277 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11278 done; \
11279 echo "Doing mostlyclean in fixincludes" ; \
215c351a 11280 (cd $(HOST_SUBDIR)/fixincludes && \
53c7ffe7
GK
11281 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11282 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11283 "RANLIB=$${RANLIB}" \
11284 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11285 mostlyclean) \
11286 || exit 1
11287
11288@endif fixincludes
11289
11290.PHONY: maybe-clean-fixincludes clean-fixincludes
11291maybe-clean-fixincludes:
11292@if fixincludes
11293maybe-clean-fixincludes: clean-fixincludes
11294
05750653 11295clean-fixincludes:
f41d6665 11296 @: $(MAKE); $(unstage)
53c7ffe7
GK
11297 @[ -f ./fixincludes/Makefile ] || exit 0; \
11298 r=`${PWD_COMMAND}`; export r; \
11299 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53c7ffe7
GK
11300 $(HOST_EXPORTS) \
11301 for flag in $(EXTRA_HOST_FLAGS) ; do \
11302 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11303 done; \
11304 echo "Doing clean in fixincludes" ; \
215c351a 11305 (cd $(HOST_SUBDIR)/fixincludes && \
53c7ffe7
GK
11306 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11307 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11308 "RANLIB=$${RANLIB}" \
11309 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11310 clean) \
11311 || exit 1
11312
11313@endif fixincludes
11314
11315.PHONY: maybe-distclean-fixincludes distclean-fixincludes
11316maybe-distclean-fixincludes:
11317@if fixincludes
11318maybe-distclean-fixincludes: distclean-fixincludes
11319
05750653 11320distclean-fixincludes:
f41d6665 11321 @: $(MAKE); $(unstage)
53c7ffe7
GK
11322 @[ -f ./fixincludes/Makefile ] || exit 0; \
11323 r=`${PWD_COMMAND}`; export r; \
11324 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53c7ffe7
GK
11325 $(HOST_EXPORTS) \
11326 for flag in $(EXTRA_HOST_FLAGS) ; do \
11327 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11328 done; \
11329 echo "Doing distclean in fixincludes" ; \
215c351a 11330 (cd $(HOST_SUBDIR)/fixincludes && \
53c7ffe7
GK
11331 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11332 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11333 "RANLIB=$${RANLIB}" \
11334 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11335 distclean) \
11336 || exit 1
11337
11338@endif fixincludes
11339
11340.PHONY: maybe-maintainer-clean-fixincludes maintainer-clean-fixincludes
11341maybe-maintainer-clean-fixincludes:
11342@if fixincludes
11343maybe-maintainer-clean-fixincludes: maintainer-clean-fixincludes
11344
05750653 11345maintainer-clean-fixincludes:
f41d6665 11346 @: $(MAKE); $(unstage)
53c7ffe7
GK
11347 @[ -f ./fixincludes/Makefile ] || exit 0; \
11348 r=`${PWD_COMMAND}`; export r; \
11349 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
53c7ffe7
GK
11350 $(HOST_EXPORTS) \
11351 for flag in $(EXTRA_HOST_FLAGS) ; do \
11352 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11353 done; \
11354 echo "Doing maintainer-clean in fixincludes" ; \
215c351a 11355 (cd $(HOST_SUBDIR)/fixincludes && \
53c7ffe7
GK
11356 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11357 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11358 "RANLIB=$${RANLIB}" \
11359 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11360 maintainer-clean) \
11361 || exit 1
11362
11363@endif fixincludes
11364
11365
25b42232 11366
295f4e42
NN
11367.PHONY: configure-flex maybe-configure-flex
11368maybe-configure-flex:
3ff3adad
PB
11369@if gcc-bootstrap
11370configure-flex: stage_current
11371@endif gcc-bootstrap
60975492
PB
11372@if flex
11373maybe-configure-flex: configure-flex
cc11cc9b 11374configure-flex:
f41d6665 11375 @: $(MAKE); $(unstage)
cc11cc9b 11376 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 11377 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
11378 test ! -f $(HOST_SUBDIR)/flex/Makefile || exit 0; \
11379 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/flex ; \
4fc4dd12 11380 $(HOST_EXPORTS) \
25b42232
PB
11381 echo Configuring in $(HOST_SUBDIR)/flex; \
11382 cd "$(HOST_SUBDIR)/flex" || exit 1; \
295f4e42 11383 case $(srcdir) in \
215c351a
PB
11384 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11385 *) topdir=`echo $(HOST_SUBDIR)/flex/ | \
11386 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 11387 esac; \
215c351a
PB
11388 srcdiroption="--srcdir=$${topdir}/flex"; \
11389 libsrcdir="$$s/flex"; \
295f4e42 11390 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 11391 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 11392 || exit 1
60975492 11393@endif flex
1358ccea 11394
25b42232
PB
11395
11396
ce406537
PB
11397
11398
295f4e42
NN
11399.PHONY: all-flex maybe-all-flex
11400maybe-all-flex:
3ff3adad
PB
11401@if gcc-bootstrap
11402all-flex: stage_current
11403@endif gcc-bootstrap
60975492 11404@if flex
7e0b5752 11405TARGET-flex=all
60975492 11406maybe-all-flex: all-flex
295f4e42 11407all-flex: configure-flex
f41d6665 11408 @: $(MAKE); $(unstage)
295f4e42 11409 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 11410 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 11411 $(HOST_EXPORTS) \
215c351a
PB
11412 (cd $(HOST_SUBDIR)/flex && \
11413 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-flex))
60975492 11414@endif flex
295f4e42 11415
25b42232 11416
ce406537
PB
11417
11418
295f4e42
NN
11419.PHONY: check-flex maybe-check-flex
11420maybe-check-flex:
60975492
PB
11421@if flex
11422maybe-check-flex: check-flex
295f4e42
NN
11423
11424# This module is only tested in a native toolchain.
11425check-flex:
f41d6665 11426 @: $(MAKE); $(unstage)
295f4e42
NN
11427 @if [ '$(host)' = '$(target)' ] ; then \
11428 r=`${PWD_COMMAND}`; export r; \
11429 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 11430 $(HOST_EXPORTS) \
215c351a 11431 (cd $(HOST_SUBDIR)/flex && \
ef6e9bc0 11432 $(MAKE) $(FLAGS_TO_PASS) check); \
295f4e42 11433 fi
1358ccea 11434
60975492 11435@endif flex
1358ccea 11436
295f4e42
NN
11437.PHONY: install-flex maybe-install-flex
11438maybe-install-flex:
60975492
PB
11439@if flex
11440maybe-install-flex: install-flex
1358ccea 11441
295f4e42 11442install-flex: installdirs
f41d6665 11443 @: $(MAKE); $(unstage)
295f4e42 11444 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 11445 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 11446 $(HOST_EXPORTS) \
215c351a 11447 (cd $(HOST_SUBDIR)/flex && \
ace9ac7b 11448 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 11449
60975492 11450@endif flex
1358ccea 11451
b5422ad7 11452# Other targets (info, dvi, pdf, etc.)
1358ccea 11453
295f4e42
NN
11454.PHONY: maybe-info-flex info-flex
11455maybe-info-flex:
60975492
PB
11456@if flex
11457maybe-info-flex: info-flex
295f4e42
NN
11458
11459info-flex: \
05750653 11460 configure-flex
f41d6665 11461 @: $(MAKE); $(unstage)
295f4e42 11462 @[ -f ./flex/Makefile ] || exit 0; \
8c90b13a
L
11463 r=`${PWD_COMMAND}`; export r; \
11464 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 11465 $(HOST_EXPORTS) \
d32ab992 11466 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11467 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11468 done; \
295f4e42 11469 echo "Doing info in flex" ; \
215c351a 11470 (cd $(HOST_SUBDIR)/flex && \
1358ccea
NN
11471 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11472 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11473 "RANLIB=$${RANLIB}" \
11474 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 11475 info) \
1358ccea
NN
11476 || exit 1
11477
60975492 11478@endif flex
1358ccea 11479
295f4e42
NN
11480.PHONY: maybe-dvi-flex dvi-flex
11481maybe-dvi-flex:
60975492
PB
11482@if flex
11483maybe-dvi-flex: dvi-flex
1358ccea 11484
295f4e42 11485dvi-flex: \
05750653 11486 configure-flex
f41d6665 11487 @: $(MAKE); $(unstage)
295f4e42 11488 @[ -f ./flex/Makefile ] || exit 0; \
8c90b13a
L
11489 r=`${PWD_COMMAND}`; export r; \
11490 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 11491 $(HOST_EXPORTS) \
d32ab992 11492 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11493 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11494 done; \
295f4e42 11495 echo "Doing dvi in flex" ; \
215c351a 11496 (cd $(HOST_SUBDIR)/flex && \
1358ccea
NN
11497 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11498 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11499 "RANLIB=$${RANLIB}" \
11500 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 11501 dvi) \
1358ccea
NN
11502 || exit 1
11503
60975492 11504@endif flex
1358ccea 11505
b5422ad7
BM
11506.PHONY: maybe-pdf-flex pdf-flex
11507maybe-pdf-flex:
11508@if flex
11509maybe-pdf-flex: pdf-flex
11510
11511pdf-flex: \
11512 configure-flex
11513 @: $(MAKE); $(unstage)
11514 @[ -f ./flex/Makefile ] || exit 0; \
11515 r=`${PWD_COMMAND}`; export r; \
11516 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11517 $(HOST_EXPORTS) \
11518 for flag in $(EXTRA_HOST_FLAGS) ; do \
11519 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11520 done; \
11521 echo "Doing pdf in flex" ; \
11522 (cd $(HOST_SUBDIR)/flex && \
11523 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11524 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11525 "RANLIB=$${RANLIB}" \
11526 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11527 pdf) \
11528 || exit 1
11529
11530@endif flex
11531
f87a2b2e
MS
11532.PHONY: maybe-html-flex html-flex
11533maybe-html-flex:
11534@if flex
11535maybe-html-flex: html-flex
11536
11537html-flex: \
05750653 11538 configure-flex
f41d6665 11539 @: $(MAKE); $(unstage)
f87a2b2e
MS
11540 @[ -f ./flex/Makefile ] || exit 0; \
11541 r=`${PWD_COMMAND}`; export r; \
11542 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
11543 $(HOST_EXPORTS) \
11544 for flag in $(EXTRA_HOST_FLAGS) ; do \
11545 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11546 done; \
11547 echo "Doing html in flex" ; \
215c351a 11548 (cd $(HOST_SUBDIR)/flex && \
f87a2b2e
MS
11549 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11550 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11551 "RANLIB=$${RANLIB}" \
11552 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11553 html) \
11554 || exit 1
11555
11556@endif flex
11557
295f4e42
NN
11558.PHONY: maybe-TAGS-flex TAGS-flex
11559maybe-TAGS-flex:
60975492
PB
11560@if flex
11561maybe-TAGS-flex: TAGS-flex
1358ccea 11562
295f4e42 11563TAGS-flex: \
05750653 11564 configure-flex
f41d6665 11565 @: $(MAKE); $(unstage)
295f4e42 11566 @[ -f ./flex/Makefile ] || exit 0; \
8c90b13a
L
11567 r=`${PWD_COMMAND}`; export r; \
11568 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 11569 $(HOST_EXPORTS) \
d32ab992 11570 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11571 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11572 done; \
295f4e42 11573 echo "Doing TAGS in flex" ; \
215c351a 11574 (cd $(HOST_SUBDIR)/flex && \
1358ccea
NN
11575 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11576 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11577 "RANLIB=$${RANLIB}" \
11578 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 11579 TAGS) \
1358ccea
NN
11580 || exit 1
11581
60975492 11582@endif flex
1358ccea 11583
295f4e42
NN
11584.PHONY: maybe-install-info-flex install-info-flex
11585maybe-install-info-flex:
60975492
PB
11586@if flex
11587maybe-install-info-flex: install-info-flex
1358ccea 11588
295f4e42
NN
11589install-info-flex: \
11590 configure-flex \
05750653 11591 info-flex
f41d6665 11592 @: $(MAKE); $(unstage)
295f4e42 11593 @[ -f ./flex/Makefile ] || exit 0; \
8c90b13a
L
11594 r=`${PWD_COMMAND}`; export r; \
11595 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 11596 $(HOST_EXPORTS) \
d32ab992 11597 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11598 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11599 done; \
295f4e42 11600 echo "Doing install-info in flex" ; \
215c351a 11601 (cd $(HOST_SUBDIR)/flex && \
1358ccea
NN
11602 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11603 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11604 "RANLIB=$${RANLIB}" \
11605 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 11606 install-info) \
1358ccea
NN
11607 || exit 1
11608
60975492 11609@endif flex
1358ccea 11610
65d6e994
CD
11611.PHONY: maybe-install-html-flex install-html-flex
11612maybe-install-html-flex:
11613@if flex
11614maybe-install-html-flex: install-html-flex
11615
11616install-html-flex: \
11617 configure-flex \
11618 html-flex
11619 @: $(MAKE); $(unstage)
11620 @[ -f ./flex/Makefile ] || exit 0; \
11621 r=`${PWD_COMMAND}`; export r; \
11622 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11623 $(HOST_EXPORTS) \
11624 for flag in $(EXTRA_HOST_FLAGS) ; do \
11625 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11626 done; \
11627 echo "Doing install-html in flex" ; \
11628 (cd $(HOST_SUBDIR)/flex && \
11629 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11630 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11631 "RANLIB=$${RANLIB}" \
11632 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
11633 install-html) \
11634 || exit 1
11635
11636@endif flex
11637
295f4e42
NN
11638.PHONY: maybe-installcheck-flex installcheck-flex
11639maybe-installcheck-flex:
60975492
PB
11640@if flex
11641maybe-installcheck-flex: installcheck-flex
1358ccea 11642
295f4e42 11643installcheck-flex: \
05750653 11644 configure-flex
f41d6665 11645 @: $(MAKE); $(unstage)
295f4e42 11646 @[ -f ./flex/Makefile ] || exit 0; \
8c90b13a
L
11647 r=`${PWD_COMMAND}`; export r; \
11648 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 11649 $(HOST_EXPORTS) \
d32ab992 11650 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11651 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11652 done; \
295f4e42 11653 echo "Doing installcheck in flex" ; \
215c351a 11654 (cd $(HOST_SUBDIR)/flex && \
1358ccea
NN
11655 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11656 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11657 "RANLIB=$${RANLIB}" \
11658 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 11659 installcheck) \
1358ccea
NN
11660 || exit 1
11661
60975492 11662@endif flex
1358ccea 11663
295f4e42
NN
11664.PHONY: maybe-mostlyclean-flex mostlyclean-flex
11665maybe-mostlyclean-flex:
60975492
PB
11666@if flex
11667maybe-mostlyclean-flex: mostlyclean-flex
1358ccea 11668
05750653 11669mostlyclean-flex:
f41d6665 11670 @: $(MAKE); $(unstage)
295f4e42 11671 @[ -f ./flex/Makefile ] || exit 0; \
8c90b13a
L
11672 r=`${PWD_COMMAND}`; export r; \
11673 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 11674 $(HOST_EXPORTS) \
d32ab992 11675 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11676 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11677 done; \
295f4e42 11678 echo "Doing mostlyclean in flex" ; \
215c351a 11679 (cd $(HOST_SUBDIR)/flex && \
1358ccea
NN
11680 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11681 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11682 "RANLIB=$${RANLIB}" \
11683 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 11684 mostlyclean) \
1358ccea
NN
11685 || exit 1
11686
60975492 11687@endif flex
1358ccea 11688
295f4e42
NN
11689.PHONY: maybe-clean-flex clean-flex
11690maybe-clean-flex:
60975492
PB
11691@if flex
11692maybe-clean-flex: clean-flex
1358ccea 11693
05750653 11694clean-flex:
f41d6665 11695 @: $(MAKE); $(unstage)
295f4e42 11696 @[ -f ./flex/Makefile ] || exit 0; \
8c90b13a
L
11697 r=`${PWD_COMMAND}`; export r; \
11698 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 11699 $(HOST_EXPORTS) \
d32ab992 11700 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11701 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11702 done; \
295f4e42 11703 echo "Doing clean in flex" ; \
215c351a 11704 (cd $(HOST_SUBDIR)/flex && \
1358ccea
NN
11705 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11706 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11707 "RANLIB=$${RANLIB}" \
11708 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 11709 clean) \
1358ccea
NN
11710 || exit 1
11711
60975492 11712@endif flex
1358ccea 11713
295f4e42
NN
11714.PHONY: maybe-distclean-flex distclean-flex
11715maybe-distclean-flex:
60975492
PB
11716@if flex
11717maybe-distclean-flex: distclean-flex
1358ccea 11718
05750653 11719distclean-flex:
f41d6665 11720 @: $(MAKE); $(unstage)
295f4e42 11721 @[ -f ./flex/Makefile ] || exit 0; \
8c90b13a
L
11722 r=`${PWD_COMMAND}`; export r; \
11723 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 11724 $(HOST_EXPORTS) \
d32ab992 11725 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11726 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11727 done; \
295f4e42 11728 echo "Doing distclean in flex" ; \
215c351a 11729 (cd $(HOST_SUBDIR)/flex && \
1358ccea
NN
11730 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11731 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11732 "RANLIB=$${RANLIB}" \
11733 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 11734 distclean) \
1358ccea
NN
11735 || exit 1
11736
60975492 11737@endif flex
1358ccea 11738
295f4e42
NN
11739.PHONY: maybe-maintainer-clean-flex maintainer-clean-flex
11740maybe-maintainer-clean-flex:
60975492
PB
11741@if flex
11742maybe-maintainer-clean-flex: maintainer-clean-flex
1358ccea 11743
05750653 11744maintainer-clean-flex:
f41d6665 11745 @: $(MAKE); $(unstage)
295f4e42 11746 @[ -f ./flex/Makefile ] || exit 0; \
8c90b13a
L
11747 r=`${PWD_COMMAND}`; export r; \
11748 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 11749 $(HOST_EXPORTS) \
d32ab992 11750 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
11751 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
11752 done; \
295f4e42 11753 echo "Doing maintainer-clean in flex" ; \
215c351a 11754 (cd $(HOST_SUBDIR)/flex && \
1358ccea
NN
11755 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
11756 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
11757 "RANLIB=$${RANLIB}" \
11758 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 11759 maintainer-clean) \
1358ccea
NN
11760 || exit 1
11761
60975492 11762@endif flex
1358ccea 11763
1358ccea 11764
25b42232 11765
295f4e42
NN
11766.PHONY: configure-gas maybe-configure-gas
11767maybe-configure-gas:
3ff3adad
PB
11768@if gcc-bootstrap
11769configure-gas: stage_current
11770@endif gcc-bootstrap
60975492
PB
11771@if gas
11772maybe-configure-gas: configure-gas
cc11cc9b 11773configure-gas:
cc11cc9b
PB
11774 @r=`${PWD_COMMAND}`; export r; \
11775 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
215c351a
PB
11776 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
11777 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
4fc4dd12 11778 $(HOST_EXPORTS) \
25b42232
PB
11779 echo Configuring in $(HOST_SUBDIR)/gas; \
11780 cd "$(HOST_SUBDIR)/gas" || exit 1; \
295f4e42 11781 case $(srcdir) in \
215c351a
PB
11782 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11783 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
11784 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 11785 esac; \
215c351a
PB
11786 srcdiroption="--srcdir=$${topdir}/gas"; \
11787 libsrcdir="$$s/gas"; \
295f4e42 11788 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 11789 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 11790 || exit 1
60975492 11791@endif gas
1358ccea 11792
25b42232
PB
11793
11794
ce406537
PB
11795.PHONY: configure-stage1-gas maybe-configure-stage1-gas
11796maybe-configure-stage1-gas:
11797@if gas-bootstrap
11798maybe-configure-stage1-gas: configure-stage1-gas
f41d6665 11799configure-stage1-gas:
cc11cc9b 11800 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
f41d6665 11801 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
cc11cc9b
PB
11802 @r=`${PWD_COMMAND}`; export r; \
11803 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 11804 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
ce406537
PB
11805 $(HOST_EXPORTS) \
11806 echo Configuring stage 1 in $(HOST_SUBDIR)/gas ; \
f41d6665 11807 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
ce406537
PB
11808 cd $(HOST_SUBDIR)/gas || exit 1; \
11809 case $(srcdir) in \
11810 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11811 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
11812 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11813 esac; \
11814 srcdiroption="--srcdir=$${topdir}/gas"; \
11815 libsrcdir="$$s/gas"; \
11816 $(SHELL) $${libsrcdir}/configure \
11817 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 11818 \
8efea775 11819 --disable-intermodule $(STAGE1_CHECKING) --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
ce406537
PB
11820@endif gas-bootstrap
11821
11822.PHONY: configure-stage2-gas maybe-configure-stage2-gas
11823maybe-configure-stage2-gas:
11824@if gas-bootstrap
11825maybe-configure-stage2-gas: configure-stage2-gas
f41d6665 11826configure-stage2-gas:
cc11cc9b 11827 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
f41d6665 11828 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
cc11cc9b
PB
11829 @r=`${PWD_COMMAND}`; export r; \
11830 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 11831 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
ce406537
PB
11832 $(HOST_EXPORTS) \
11833 $(POSTSTAGE1_HOST_EXPORTS) \
11834 echo Configuring stage 2 in $(HOST_SUBDIR)/gas ; \
f41d6665 11835 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
ce406537
PB
11836 cd $(HOST_SUBDIR)/gas || exit 1; \
11837 case $(srcdir) in \
11838 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11839 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
11840 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11841 esac; \
11842 srcdiroption="--srcdir=$${topdir}/gas"; \
11843 libsrcdir="$$s/gas"; \
11844 $(SHELL) $${libsrcdir}/configure \
11845 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 11846 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
11847 @stage2_werror_flag@
11848@endif gas-bootstrap
11849
11850.PHONY: configure-stage3-gas maybe-configure-stage3-gas
11851maybe-configure-stage3-gas:
11852@if gas-bootstrap
11853maybe-configure-stage3-gas: configure-stage3-gas
f41d6665 11854configure-stage3-gas:
cc11cc9b 11855 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
f41d6665 11856 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
cc11cc9b
PB
11857 @r=`${PWD_COMMAND}`; export r; \
11858 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 11859 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
ce406537
PB
11860 $(HOST_EXPORTS) \
11861 $(POSTSTAGE1_HOST_EXPORTS) \
11862 echo Configuring stage 3 in $(HOST_SUBDIR)/gas ; \
f41d6665 11863 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
ce406537
PB
11864 cd $(HOST_SUBDIR)/gas || exit 1; \
11865 case $(srcdir) in \
11866 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11867 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
11868 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11869 esac; \
11870 srcdiroption="--srcdir=$${topdir}/gas"; \
11871 libsrcdir="$$s/gas"; \
11872 $(SHELL) $${libsrcdir}/configure \
11873 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 11874 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
11875 @stage2_werror_flag@
11876@endif gas-bootstrap
11877
11878.PHONY: configure-stage4-gas maybe-configure-stage4-gas
11879maybe-configure-stage4-gas:
11880@if gas-bootstrap
11881maybe-configure-stage4-gas: configure-stage4-gas
f41d6665 11882configure-stage4-gas:
cc11cc9b 11883 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
f41d6665 11884 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
cc11cc9b
PB
11885 @r=`${PWD_COMMAND}`; export r; \
11886 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 11887 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
ce406537
PB
11888 $(HOST_EXPORTS) \
11889 $(POSTSTAGE1_HOST_EXPORTS) \
11890 echo Configuring stage 4 in $(HOST_SUBDIR)/gas ; \
f41d6665 11891 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
ce406537
PB
11892 cd $(HOST_SUBDIR)/gas || exit 1; \
11893 case $(srcdir) in \
11894 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11895 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
11896 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11897 esac; \
11898 srcdiroption="--srcdir=$${topdir}/gas"; \
11899 libsrcdir="$$s/gas"; \
11900 $(SHELL) $${libsrcdir}/configure \
11901 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 11902 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
11903 @stage2_werror_flag@
11904@endif gas-bootstrap
11905
11906.PHONY: configure-stageprofile-gas maybe-configure-stageprofile-gas
11907maybe-configure-stageprofile-gas:
11908@if gas-bootstrap
11909maybe-configure-stageprofile-gas: configure-stageprofile-gas
f41d6665 11910configure-stageprofile-gas:
cc11cc9b 11911 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
f41d6665 11912 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
cc11cc9b
PB
11913 @r=`${PWD_COMMAND}`; export r; \
11914 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 11915 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
ce406537
PB
11916 $(HOST_EXPORTS) \
11917 $(POSTSTAGE1_HOST_EXPORTS) \
11918 echo Configuring stage profile in $(HOST_SUBDIR)/gas ; \
f41d6665 11919 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
ce406537
PB
11920 cd $(HOST_SUBDIR)/gas || exit 1; \
11921 case $(srcdir) in \
11922 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11923 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
11924 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11925 esac; \
11926 srcdiroption="--srcdir=$${topdir}/gas"; \
11927 libsrcdir="$$s/gas"; \
11928 $(SHELL) $${libsrcdir}/configure \
11929 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 11930 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
11931 @stage2_werror_flag@
11932@endif gas-bootstrap
11933
11934.PHONY: configure-stagefeedback-gas maybe-configure-stagefeedback-gas
11935maybe-configure-stagefeedback-gas:
11936@if gas-bootstrap
11937maybe-configure-stagefeedback-gas: configure-stagefeedback-gas
f41d6665 11938configure-stagefeedback-gas:
cc11cc9b 11939 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
f41d6665 11940 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas
cc11cc9b
PB
11941 @r=`${PWD_COMMAND}`; export r; \
11942 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 11943 test ! -f $(HOST_SUBDIR)/gas/Makefile || exit 0; \
ce406537
PB
11944 $(HOST_EXPORTS) \
11945 $(POSTSTAGE1_HOST_EXPORTS) \
11946 echo Configuring stage feedback in $(HOST_SUBDIR)/gas ; \
f41d6665 11947 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gas ; \
ce406537
PB
11948 cd $(HOST_SUBDIR)/gas || exit 1; \
11949 case $(srcdir) in \
11950 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
11951 *) topdir=`echo $(HOST_SUBDIR)/gas/ | \
11952 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
11953 esac; \
11954 srcdiroption="--srcdir=$${topdir}/gas"; \
11955 libsrcdir="$$s/gas"; \
11956 $(SHELL) $${libsrcdir}/configure \
11957 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 11958 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
11959 @stage2_werror_flag@
11960@endif gas-bootstrap
11961
11962
11963
11964
11965
295f4e42
NN
11966.PHONY: all-gas maybe-all-gas
11967maybe-all-gas:
3ff3adad
PB
11968@if gcc-bootstrap
11969all-gas: stage_current
11970@endif gcc-bootstrap
60975492 11971@if gas
7e0b5752 11972TARGET-gas=all
60975492 11973maybe-all-gas: all-gas
295f4e42 11974all-gas: configure-gas
cc11cc9b 11975 @r=`${PWD_COMMAND}`; export r; \
295f4e42 11976 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 11977 $(HOST_EXPORTS) \
215c351a
PB
11978 (cd $(HOST_SUBDIR)/gas && \
11979 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-gas))
60975492 11980@endif gas
1358ccea 11981
25b42232 11982
ce406537
PB
11983
11984.PHONY: all-stage1-gas maybe-all-stage1-gas
11985.PHONY: clean-stage1-gas maybe-clean-stage1-gas
11986maybe-all-stage1-gas:
11987maybe-clean-stage1-gas:
11988@if gas-bootstrap
11989maybe-all-stage1-gas: all-stage1-gas
11990all-stage1: all-stage1-gas
1061f99e 11991TARGET-stage1-gas = $(TARGET-gas)
ce406537 11992all-stage1-gas: configure-stage1-gas
cc11cc9b 11993 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
ce406537
PB
11994 @r=`${PWD_COMMAND}`; export r; \
11995 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
11996 $(HOST_EXPORTS) \
11997 cd $(HOST_SUBDIR)/gas && \
cc11cc9b 11998 $(MAKE) $(FLAGS_TO_PASS) CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" \
1061f99e 11999 $(TARGET-stage1-gas)
ce406537
PB
12000
12001maybe-clean-stage1-gas: clean-stage1-gas
12002clean-stage1: clean-stage1-gas
12003clean-stage1-gas:
995a5697
PB
12004 @if [ $(current_stage) = stage1 ]; then \
12005 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
12006 else \
12007 [ -f $(HOST_SUBDIR)/stage1-gas/Makefile ] || exit 0; \
12008 $(MAKE) stage1-start; \
12009 fi; \
ce406537
PB
12010 cd $(HOST_SUBDIR)/gas && \
12011 $(MAKE) $(FLAGS_TO_PASS) \
cc11cc9b 12012 CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" clean
ce406537
PB
12013@endif gas-bootstrap
12014
12015
12016.PHONY: all-stage2-gas maybe-all-stage2-gas
12017.PHONY: clean-stage2-gas maybe-clean-stage2-gas
12018maybe-all-stage2-gas:
12019maybe-clean-stage2-gas:
12020@if gas-bootstrap
12021maybe-all-stage2-gas: all-stage2-gas
12022all-stage2: all-stage2-gas
1061f99e 12023TARGET-stage2-gas = $(TARGET-gas)
ce406537 12024all-stage2-gas: configure-stage2-gas
cc11cc9b 12025 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
ce406537
PB
12026 @r=`${PWD_COMMAND}`; export r; \
12027 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12028 $(HOST_EXPORTS) \
12029 $(POSTSTAGE1_HOST_EXPORTS) \
12030 cd $(HOST_SUBDIR)/gas && \
1061f99e
PB
12031 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
12032 $(TARGET-stage2-gas)
ce406537
PB
12033
12034maybe-clean-stage2-gas: clean-stage2-gas
12035clean-stage2: clean-stage2-gas
12036clean-stage2-gas:
995a5697
PB
12037 @if [ $(current_stage) = stage2 ]; then \
12038 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
12039 else \
12040 [ -f $(HOST_SUBDIR)/stage2-gas/Makefile ] || exit 0; \
12041 $(MAKE) stage2-start; \
12042 fi; \
ce406537
PB
12043 cd $(HOST_SUBDIR)/gas && \
12044 $(MAKE) $(FLAGS_TO_PASS) \
12045 $(POSTSTAGE1_FLAGS_TO_PASS) \
12046 clean
12047@endif gas-bootstrap
12048
12049
12050.PHONY: all-stage3-gas maybe-all-stage3-gas
12051.PHONY: clean-stage3-gas maybe-clean-stage3-gas
12052maybe-all-stage3-gas:
12053maybe-clean-stage3-gas:
12054@if gas-bootstrap
12055maybe-all-stage3-gas: all-stage3-gas
12056all-stage3: all-stage3-gas
1061f99e 12057TARGET-stage3-gas = $(TARGET-gas)
ce406537 12058all-stage3-gas: configure-stage3-gas
cc11cc9b 12059 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
ce406537
PB
12060 @r=`${PWD_COMMAND}`; export r; \
12061 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12062 $(HOST_EXPORTS) \
12063 $(POSTSTAGE1_HOST_EXPORTS) \
12064 cd $(HOST_SUBDIR)/gas && \
1061f99e
PB
12065 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
12066 $(TARGET-stage3-gas)
ce406537
PB
12067
12068maybe-clean-stage3-gas: clean-stage3-gas
12069clean-stage3: clean-stage3-gas
12070clean-stage3-gas:
995a5697
PB
12071 @if [ $(current_stage) = stage3 ]; then \
12072 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
12073 else \
12074 [ -f $(HOST_SUBDIR)/stage3-gas/Makefile ] || exit 0; \
12075 $(MAKE) stage3-start; \
12076 fi; \
ce406537
PB
12077 cd $(HOST_SUBDIR)/gas && \
12078 $(MAKE) $(FLAGS_TO_PASS) \
12079 $(POSTSTAGE1_FLAGS_TO_PASS) \
12080 clean
12081@endif gas-bootstrap
12082
12083
12084.PHONY: all-stage4-gas maybe-all-stage4-gas
12085.PHONY: clean-stage4-gas maybe-clean-stage4-gas
12086maybe-all-stage4-gas:
12087maybe-clean-stage4-gas:
12088@if gas-bootstrap
12089maybe-all-stage4-gas: all-stage4-gas
12090all-stage4: all-stage4-gas
1061f99e 12091TARGET-stage4-gas = $(TARGET-gas)
ce406537 12092all-stage4-gas: configure-stage4-gas
cc11cc9b 12093 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
ce406537
PB
12094 @r=`${PWD_COMMAND}`; export r; \
12095 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12096 $(HOST_EXPORTS) \
12097 $(POSTSTAGE1_HOST_EXPORTS) \
12098 cd $(HOST_SUBDIR)/gas && \
1061f99e
PB
12099 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
12100 $(TARGET-stage4-gas)
ce406537
PB
12101
12102maybe-clean-stage4-gas: clean-stage4-gas
12103clean-stage4: clean-stage4-gas
12104clean-stage4-gas:
995a5697
PB
12105 @if [ $(current_stage) = stage4 ]; then \
12106 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
12107 else \
12108 [ -f $(HOST_SUBDIR)/stage4-gas/Makefile ] || exit 0; \
12109 $(MAKE) stage4-start; \
12110 fi; \
ce406537
PB
12111 cd $(HOST_SUBDIR)/gas && \
12112 $(MAKE) $(FLAGS_TO_PASS) \
12113 $(POSTSTAGE1_FLAGS_TO_PASS) \
12114 clean
12115@endif gas-bootstrap
12116
12117
12118.PHONY: all-stageprofile-gas maybe-all-stageprofile-gas
12119.PHONY: clean-stageprofile-gas maybe-clean-stageprofile-gas
12120maybe-all-stageprofile-gas:
12121maybe-clean-stageprofile-gas:
12122@if gas-bootstrap
12123maybe-all-stageprofile-gas: all-stageprofile-gas
12124all-stageprofile: all-stageprofile-gas
1061f99e 12125TARGET-stageprofile-gas = $(TARGET-gas)
ce406537 12126all-stageprofile-gas: configure-stageprofile-gas
cc11cc9b 12127 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
ce406537
PB
12128 @r=`${PWD_COMMAND}`; export r; \
12129 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12130 $(HOST_EXPORTS) \
12131 $(POSTSTAGE1_HOST_EXPORTS) \
12132 cd $(HOST_SUBDIR)/gas && \
1061f99e
PB
12133 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" \
12134 $(TARGET-stageprofile-gas)
ce406537
PB
12135
12136maybe-clean-stageprofile-gas: clean-stageprofile-gas
12137clean-stageprofile: clean-stageprofile-gas
12138clean-stageprofile-gas:
995a5697
PB
12139 @if [ $(current_stage) = stageprofile ]; then \
12140 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
12141 else \
12142 [ -f $(HOST_SUBDIR)/stageprofile-gas/Makefile ] || exit 0; \
12143 $(MAKE) stageprofile-start; \
12144 fi; \
ce406537
PB
12145 cd $(HOST_SUBDIR)/gas && \
12146 $(MAKE) $(FLAGS_TO_PASS) \
12147 $(POSTSTAGE1_FLAGS_TO_PASS) \
12148 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean
12149@endif gas-bootstrap
12150
12151
12152.PHONY: all-stagefeedback-gas maybe-all-stagefeedback-gas
12153.PHONY: clean-stagefeedback-gas maybe-clean-stagefeedback-gas
12154maybe-all-stagefeedback-gas:
12155maybe-clean-stagefeedback-gas:
12156@if gas-bootstrap
12157maybe-all-stagefeedback-gas: all-stagefeedback-gas
12158all-stagefeedback: all-stagefeedback-gas
1061f99e 12159TARGET-stagefeedback-gas = $(TARGET-gas)
ce406537 12160all-stagefeedback-gas: configure-stagefeedback-gas
cc11cc9b 12161 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
ce406537
PB
12162 @r=`${PWD_COMMAND}`; export r; \
12163 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12164 $(HOST_EXPORTS) \
12165 $(POSTSTAGE1_HOST_EXPORTS) \
12166 cd $(HOST_SUBDIR)/gas && \
1061f99e
PB
12167 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-use" \
12168 $(TARGET-stagefeedback-gas)
ce406537
PB
12169
12170maybe-clean-stagefeedback-gas: clean-stagefeedback-gas
12171clean-stagefeedback: clean-stagefeedback-gas
12172clean-stagefeedback-gas:
995a5697
PB
12173 @if [ $(current_stage) = stagefeedback ]; then \
12174 [ -f $(HOST_SUBDIR)/gas/Makefile ] || exit 0; \
12175 else \
12176 [ -f $(HOST_SUBDIR)/stagefeedback-gas/Makefile ] || exit 0; \
12177 $(MAKE) stagefeedback-start; \
12178 fi; \
ce406537
PB
12179 cd $(HOST_SUBDIR)/gas && \
12180 $(MAKE) $(FLAGS_TO_PASS) \
12181 $(POSTSTAGE1_FLAGS_TO_PASS) \
12182 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean
12183@endif gas-bootstrap
12184
12185
12186
12187
12188
295f4e42
NN
12189.PHONY: check-gas maybe-check-gas
12190maybe-check-gas:
60975492
PB
12191@if gas
12192maybe-check-gas: check-gas
1358ccea 12193
295f4e42 12194check-gas:
f41d6665 12195 @: $(MAKE); $(unstage)
295f4e42 12196 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 12197 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12198 $(HOST_EXPORTS) \
215c351a
PB
12199 (cd $(HOST_SUBDIR)/gas && \
12200 $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 12201
60975492 12202@endif gas
1358ccea 12203
295f4e42
NN
12204.PHONY: install-gas maybe-install-gas
12205maybe-install-gas:
60975492
PB
12206@if gas
12207maybe-install-gas: install-gas
1358ccea 12208
295f4e42 12209install-gas: installdirs
f41d6665 12210 @: $(MAKE); $(unstage)
295f4e42 12211 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 12212 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12213 $(HOST_EXPORTS) \
215c351a 12214 (cd $(HOST_SUBDIR)/gas && \
ace9ac7b 12215 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 12216
60975492 12217@endif gas
1358ccea 12218
b5422ad7 12219# Other targets (info, dvi, pdf, etc.)
1358ccea 12220
295f4e42
NN
12221.PHONY: maybe-info-gas info-gas
12222maybe-info-gas:
60975492
PB
12223@if gas
12224maybe-info-gas: info-gas
295f4e42
NN
12225
12226info-gas: \
05750653 12227 configure-gas
295f4e42 12228 @[ -f ./gas/Makefile ] || exit 0; \
8c90b13a
L
12229 r=`${PWD_COMMAND}`; export r; \
12230 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12231 $(HOST_EXPORTS) \
d32ab992 12232 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
12233 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12234 done; \
295f4e42 12235 echo "Doing info in gas" ; \
215c351a 12236 (cd $(HOST_SUBDIR)/gas && \
1358ccea
NN
12237 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12238 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12239 "RANLIB=$${RANLIB}" \
12240 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12241 info) \
1358ccea
NN
12242 || exit 1
12243
60975492 12244@endif gas
1358ccea 12245
295f4e42
NN
12246.PHONY: maybe-dvi-gas dvi-gas
12247maybe-dvi-gas:
60975492
PB
12248@if gas
12249maybe-dvi-gas: dvi-gas
1358ccea 12250
295f4e42 12251dvi-gas: \
05750653 12252 configure-gas
295f4e42 12253 @[ -f ./gas/Makefile ] || exit 0; \
8c90b13a
L
12254 r=`${PWD_COMMAND}`; export r; \
12255 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12256 $(HOST_EXPORTS) \
d32ab992 12257 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
12258 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12259 done; \
295f4e42 12260 echo "Doing dvi in gas" ; \
215c351a 12261 (cd $(HOST_SUBDIR)/gas && \
1358ccea
NN
12262 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12263 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12264 "RANLIB=$${RANLIB}" \
12265 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12266 dvi) \
1358ccea
NN
12267 || exit 1
12268
60975492 12269@endif gas
1358ccea 12270
b5422ad7
BM
12271.PHONY: maybe-pdf-gas pdf-gas
12272maybe-pdf-gas:
12273@if gas
12274maybe-pdf-gas: pdf-gas
12275
12276pdf-gas: \
12277 configure-gas
12278 @[ -f ./gas/Makefile ] || exit 0; \
12279 r=`${PWD_COMMAND}`; export r; \
12280 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12281 $(HOST_EXPORTS) \
12282 for flag in $(EXTRA_HOST_FLAGS) ; do \
12283 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12284 done; \
12285 echo "Doing pdf in gas" ; \
12286 (cd $(HOST_SUBDIR)/gas && \
12287 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12288 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12289 "RANLIB=$${RANLIB}" \
12290 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12291 pdf) \
12292 || exit 1
12293
12294@endif gas
12295
f87a2b2e
MS
12296.PHONY: maybe-html-gas html-gas
12297maybe-html-gas:
12298@if gas
12299maybe-html-gas: html-gas
12300
12301html-gas: \
05750653 12302 configure-gas
f87a2b2e
MS
12303 @[ -f ./gas/Makefile ] || exit 0; \
12304 r=`${PWD_COMMAND}`; export r; \
12305 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
12306 $(HOST_EXPORTS) \
12307 for flag in $(EXTRA_HOST_FLAGS) ; do \
12308 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12309 done; \
12310 echo "Doing html in gas" ; \
215c351a 12311 (cd $(HOST_SUBDIR)/gas && \
f87a2b2e
MS
12312 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12313 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12314 "RANLIB=$${RANLIB}" \
12315 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12316 html) \
12317 || exit 1
12318
12319@endif gas
12320
295f4e42
NN
12321.PHONY: maybe-TAGS-gas TAGS-gas
12322maybe-TAGS-gas:
60975492
PB
12323@if gas
12324maybe-TAGS-gas: TAGS-gas
1358ccea 12325
295f4e42 12326TAGS-gas: \
05750653 12327 configure-gas
295f4e42 12328 @[ -f ./gas/Makefile ] || exit 0; \
8c90b13a
L
12329 r=`${PWD_COMMAND}`; export r; \
12330 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12331 $(HOST_EXPORTS) \
d32ab992 12332 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
12333 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12334 done; \
295f4e42 12335 echo "Doing TAGS in gas" ; \
215c351a 12336 (cd $(HOST_SUBDIR)/gas && \
1358ccea
NN
12337 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12338 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12339 "RANLIB=$${RANLIB}" \
12340 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12341 TAGS) \
1358ccea
NN
12342 || exit 1
12343
60975492 12344@endif gas
1358ccea 12345
295f4e42
NN
12346.PHONY: maybe-install-info-gas install-info-gas
12347maybe-install-info-gas:
60975492
PB
12348@if gas
12349maybe-install-info-gas: install-info-gas
1358ccea 12350
295f4e42
NN
12351install-info-gas: \
12352 configure-gas \
05750653 12353 info-gas
295f4e42 12354 @[ -f ./gas/Makefile ] || exit 0; \
8c90b13a
L
12355 r=`${PWD_COMMAND}`; export r; \
12356 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12357 $(HOST_EXPORTS) \
d32ab992 12358 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
12359 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12360 done; \
295f4e42 12361 echo "Doing install-info in gas" ; \
215c351a 12362 (cd $(HOST_SUBDIR)/gas && \
1358ccea
NN
12363 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12364 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12365 "RANLIB=$${RANLIB}" \
12366 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12367 install-info) \
1358ccea
NN
12368 || exit 1
12369
60975492 12370@endif gas
1358ccea 12371
65d6e994
CD
12372.PHONY: maybe-install-html-gas install-html-gas
12373maybe-install-html-gas:
12374@if gas
12375maybe-install-html-gas: install-html-gas
12376
12377install-html-gas: \
12378 configure-gas \
12379 html-gas
12380 @[ -f ./gas/Makefile ] || exit 0; \
12381 r=`${PWD_COMMAND}`; export r; \
12382 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12383 $(HOST_EXPORTS) \
12384 for flag in $(EXTRA_HOST_FLAGS) ; do \
12385 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12386 done; \
12387 echo "Doing install-html in gas" ; \
12388 (cd $(HOST_SUBDIR)/gas && \
12389 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12390 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12391 "RANLIB=$${RANLIB}" \
12392 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
12393 install-html) \
12394 || exit 1
12395
12396@endif gas
12397
295f4e42
NN
12398.PHONY: maybe-installcheck-gas installcheck-gas
12399maybe-installcheck-gas:
60975492
PB
12400@if gas
12401maybe-installcheck-gas: installcheck-gas
1358ccea 12402
295f4e42 12403installcheck-gas: \
05750653 12404 configure-gas
295f4e42 12405 @[ -f ./gas/Makefile ] || exit 0; \
8c90b13a
L
12406 r=`${PWD_COMMAND}`; export r; \
12407 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12408 $(HOST_EXPORTS) \
d32ab992 12409 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
12410 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12411 done; \
295f4e42 12412 echo "Doing installcheck in gas" ; \
215c351a 12413 (cd $(HOST_SUBDIR)/gas && \
1358ccea
NN
12414 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12415 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12416 "RANLIB=$${RANLIB}" \
12417 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12418 installcheck) \
1358ccea
NN
12419 || exit 1
12420
60975492 12421@endif gas
1358ccea 12422
295f4e42
NN
12423.PHONY: maybe-mostlyclean-gas mostlyclean-gas
12424maybe-mostlyclean-gas:
60975492
PB
12425@if gas
12426maybe-mostlyclean-gas: mostlyclean-gas
1358ccea 12427
05750653 12428mostlyclean-gas:
295f4e42 12429 @[ -f ./gas/Makefile ] || exit 0; \
8c90b13a
L
12430 r=`${PWD_COMMAND}`; export r; \
12431 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12432 $(HOST_EXPORTS) \
d32ab992 12433 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
12434 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12435 done; \
295f4e42 12436 echo "Doing mostlyclean in gas" ; \
215c351a 12437 (cd $(HOST_SUBDIR)/gas && \
1358ccea
NN
12438 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12439 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12440 "RANLIB=$${RANLIB}" \
12441 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12442 mostlyclean) \
1358ccea
NN
12443 || exit 1
12444
60975492 12445@endif gas
1358ccea 12446
295f4e42
NN
12447.PHONY: maybe-clean-gas clean-gas
12448maybe-clean-gas:
60975492
PB
12449@if gas
12450maybe-clean-gas: clean-gas
1358ccea 12451
05750653 12452clean-gas:
295f4e42 12453 @[ -f ./gas/Makefile ] || exit 0; \
8c90b13a
L
12454 r=`${PWD_COMMAND}`; export r; \
12455 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12456 $(HOST_EXPORTS) \
d32ab992 12457 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
12458 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12459 done; \
295f4e42 12460 echo "Doing clean in gas" ; \
215c351a 12461 (cd $(HOST_SUBDIR)/gas && \
1358ccea
NN
12462 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12463 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12464 "RANLIB=$${RANLIB}" \
12465 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12466 clean) \
1358ccea
NN
12467 || exit 1
12468
60975492 12469@endif gas
1358ccea 12470
295f4e42
NN
12471.PHONY: maybe-distclean-gas distclean-gas
12472maybe-distclean-gas:
60975492
PB
12473@if gas
12474maybe-distclean-gas: distclean-gas
1358ccea 12475
05750653 12476distclean-gas:
295f4e42 12477 @[ -f ./gas/Makefile ] || exit 0; \
8c90b13a
L
12478 r=`${PWD_COMMAND}`; export r; \
12479 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12480 $(HOST_EXPORTS) \
d32ab992 12481 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
12482 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12483 done; \
295f4e42 12484 echo "Doing distclean in gas" ; \
215c351a 12485 (cd $(HOST_SUBDIR)/gas && \
1358ccea
NN
12486 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12487 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12488 "RANLIB=$${RANLIB}" \
12489 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12490 distclean) \
1358ccea
NN
12491 || exit 1
12492
60975492 12493@endif gas
1358ccea 12494
295f4e42
NN
12495.PHONY: maybe-maintainer-clean-gas maintainer-clean-gas
12496maybe-maintainer-clean-gas:
60975492
PB
12497@if gas
12498maybe-maintainer-clean-gas: maintainer-clean-gas
1358ccea 12499
05750653 12500maintainer-clean-gas:
295f4e42 12501 @[ -f ./gas/Makefile ] || exit 0; \
8c90b13a
L
12502 r=`${PWD_COMMAND}`; export r; \
12503 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12504 $(HOST_EXPORTS) \
d32ab992 12505 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
12506 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12507 done; \
295f4e42 12508 echo "Doing maintainer-clean in gas" ; \
215c351a 12509 (cd $(HOST_SUBDIR)/gas && \
1358ccea
NN
12510 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12511 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12512 "RANLIB=$${RANLIB}" \
12513 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12514 maintainer-clean) \
1358ccea
NN
12515 || exit 1
12516
60975492 12517@endif gas
1358ccea 12518
1358ccea 12519
25b42232 12520
d32ab992
PB
12521.PHONY: configure-gcc maybe-configure-gcc
12522maybe-configure-gcc:
cc11cc9b 12523@if gcc-bootstrap
3ff3adad 12524configure-gcc: stage_current
cc11cc9b
PB
12525@endif gcc-bootstrap
12526@if gcc
3ff3adad
PB
12527maybe-configure-gcc: configure-gcc
12528configure-gcc:
cc11cc9b
PB
12529 @r=`${PWD_COMMAND}`; export r; \
12530 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
215c351a
PB
12531 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
12532 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \
4fc4dd12 12533 $(HOST_EXPORTS) \
25b42232
PB
12534 echo Configuring in $(HOST_SUBDIR)/gcc; \
12535 cd "$(HOST_SUBDIR)/gcc" || exit 1; \
295f4e42 12536 case $(srcdir) in \
215c351a
PB
12537 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12538 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
12539 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 12540 esac; \
215c351a
PB
12541 srcdiroption="--srcdir=$${topdir}/gcc"; \
12542 libsrcdir="$$s/gcc"; \
295f4e42 12543 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 12544 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 12545 || exit 1
d32ab992 12546@endif gcc
1358ccea 12547
25b42232
PB
12548
12549
ce406537
PB
12550.PHONY: configure-stage1-gcc maybe-configure-stage1-gcc
12551maybe-configure-stage1-gcc:
12552@if gcc-bootstrap
12553maybe-configure-stage1-gcc: configure-stage1-gcc
f41d6665 12554configure-stage1-gcc:
cc11cc9b 12555 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
f41d6665 12556 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
cc11cc9b
PB
12557 @r=`${PWD_COMMAND}`; export r; \
12558 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 12559 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
ce406537
PB
12560 $(HOST_EXPORTS) \
12561 echo Configuring stage 1 in $(HOST_SUBDIR)/gcc ; \
f41d6665 12562 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \
ce406537
PB
12563 cd $(HOST_SUBDIR)/gcc || exit 1; \
12564 case $(srcdir) in \
12565 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12566 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
12567 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12568 esac; \
12569 srcdiroption="--srcdir=$${topdir}/gcc"; \
12570 libsrcdir="$$s/gcc"; \
12571 $(SHELL) $${libsrcdir}/configure \
12572 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 12573 \
8efea775 12574 --disable-intermodule $(STAGE1_CHECKING) --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
ce406537
PB
12575@endif gcc-bootstrap
12576
12577.PHONY: configure-stage2-gcc maybe-configure-stage2-gcc
12578maybe-configure-stage2-gcc:
12579@if gcc-bootstrap
12580maybe-configure-stage2-gcc: configure-stage2-gcc
f41d6665 12581configure-stage2-gcc:
cc11cc9b 12582 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
f41d6665 12583 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
cc11cc9b
PB
12584 @r=`${PWD_COMMAND}`; export r; \
12585 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 12586 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
ce406537
PB
12587 $(HOST_EXPORTS) \
12588 $(POSTSTAGE1_HOST_EXPORTS) \
12589 echo Configuring stage 2 in $(HOST_SUBDIR)/gcc ; \
f41d6665 12590 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \
ce406537
PB
12591 cd $(HOST_SUBDIR)/gcc || exit 1; \
12592 case $(srcdir) in \
12593 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12594 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
12595 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12596 esac; \
12597 srcdiroption="--srcdir=$${topdir}/gcc"; \
12598 libsrcdir="$$s/gcc"; \
12599 $(SHELL) $${libsrcdir}/configure \
12600 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 12601 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
12602 @stage2_werror_flag@
12603@endif gcc-bootstrap
12604
12605.PHONY: configure-stage3-gcc maybe-configure-stage3-gcc
12606maybe-configure-stage3-gcc:
12607@if gcc-bootstrap
12608maybe-configure-stage3-gcc: configure-stage3-gcc
f41d6665 12609configure-stage3-gcc:
cc11cc9b 12610 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
f41d6665 12611 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
cc11cc9b
PB
12612 @r=`${PWD_COMMAND}`; export r; \
12613 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 12614 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
ce406537
PB
12615 $(HOST_EXPORTS) \
12616 $(POSTSTAGE1_HOST_EXPORTS) \
12617 echo Configuring stage 3 in $(HOST_SUBDIR)/gcc ; \
f41d6665 12618 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \
ce406537
PB
12619 cd $(HOST_SUBDIR)/gcc || exit 1; \
12620 case $(srcdir) in \
12621 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12622 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
12623 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12624 esac; \
12625 srcdiroption="--srcdir=$${topdir}/gcc"; \
12626 libsrcdir="$$s/gcc"; \
12627 $(SHELL) $${libsrcdir}/configure \
12628 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 12629 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
12630 @stage2_werror_flag@
12631@endif gcc-bootstrap
12632
12633.PHONY: configure-stage4-gcc maybe-configure-stage4-gcc
12634maybe-configure-stage4-gcc:
12635@if gcc-bootstrap
12636maybe-configure-stage4-gcc: configure-stage4-gcc
f41d6665 12637configure-stage4-gcc:
cc11cc9b 12638 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
f41d6665 12639 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
cc11cc9b
PB
12640 @r=`${PWD_COMMAND}`; export r; \
12641 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 12642 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
ce406537
PB
12643 $(HOST_EXPORTS) \
12644 $(POSTSTAGE1_HOST_EXPORTS) \
12645 echo Configuring stage 4 in $(HOST_SUBDIR)/gcc ; \
f41d6665 12646 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \
ce406537
PB
12647 cd $(HOST_SUBDIR)/gcc || exit 1; \
12648 case $(srcdir) in \
12649 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12650 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
12651 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12652 esac; \
12653 srcdiroption="--srcdir=$${topdir}/gcc"; \
12654 libsrcdir="$$s/gcc"; \
12655 $(SHELL) $${libsrcdir}/configure \
12656 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 12657 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
12658 @stage2_werror_flag@
12659@endif gcc-bootstrap
12660
12661.PHONY: configure-stageprofile-gcc maybe-configure-stageprofile-gcc
12662maybe-configure-stageprofile-gcc:
12663@if gcc-bootstrap
12664maybe-configure-stageprofile-gcc: configure-stageprofile-gcc
f41d6665 12665configure-stageprofile-gcc:
cc11cc9b 12666 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
f41d6665 12667 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
cc11cc9b
PB
12668 @r=`${PWD_COMMAND}`; export r; \
12669 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 12670 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
ce406537
PB
12671 $(HOST_EXPORTS) \
12672 $(POSTSTAGE1_HOST_EXPORTS) \
12673 echo Configuring stage profile in $(HOST_SUBDIR)/gcc ; \
f41d6665 12674 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \
ce406537
PB
12675 cd $(HOST_SUBDIR)/gcc || exit 1; \
12676 case $(srcdir) in \
12677 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12678 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
12679 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12680 esac; \
12681 srcdiroption="--srcdir=$${topdir}/gcc"; \
12682 libsrcdir="$$s/gcc"; \
12683 $(SHELL) $${libsrcdir}/configure \
12684 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 12685 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
12686 @stage2_werror_flag@
12687@endif gcc-bootstrap
12688
12689.PHONY: configure-stagefeedback-gcc maybe-configure-stagefeedback-gcc
12690maybe-configure-stagefeedback-gcc:
12691@if gcc-bootstrap
12692maybe-configure-stagefeedback-gcc: configure-stagefeedback-gcc
f41d6665 12693configure-stagefeedback-gcc:
cc11cc9b 12694 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
f41d6665 12695 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc
cc11cc9b
PB
12696 @r=`${PWD_COMMAND}`; export r; \
12697 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 12698 test ! -f $(HOST_SUBDIR)/gcc/Makefile || exit 0; \
ce406537
PB
12699 $(HOST_EXPORTS) \
12700 $(POSTSTAGE1_HOST_EXPORTS) \
12701 echo Configuring stage feedback in $(HOST_SUBDIR)/gcc ; \
f41d6665 12702 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gcc ; \
ce406537
PB
12703 cd $(HOST_SUBDIR)/gcc || exit 1; \
12704 case $(srcdir) in \
12705 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
12706 *) topdir=`echo $(HOST_SUBDIR)/gcc/ | \
12707 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
12708 esac; \
12709 srcdiroption="--srcdir=$${topdir}/gcc"; \
12710 libsrcdir="$$s/gcc"; \
12711 $(SHELL) $${libsrcdir}/configure \
12712 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 12713 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
12714 @stage2_werror_flag@
12715@endif gcc-bootstrap
12716
12717
12718
12719
12720
d32ab992
PB
12721.PHONY: all-gcc maybe-all-gcc
12722maybe-all-gcc:
3ff3adad
PB
12723@if gcc-bootstrap
12724all-gcc: stage_current
12725@endif gcc-bootstrap
d32ab992 12726@if gcc
b88a7564 12727TARGET-gcc=`if [ -f stage_last ]; then echo quickstrap ; else echo all; fi`
d32ab992
PB
12728maybe-all-gcc: all-gcc
12729all-gcc: configure-gcc
cc11cc9b 12730 @r=`${PWD_COMMAND}`; export r; \
295f4e42 12731 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12732 $(HOST_EXPORTS) \
215c351a
PB
12733 (cd $(HOST_SUBDIR)/gcc && \
12734 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) $(TARGET-gcc))
d32ab992 12735@endif gcc
1358ccea 12736
25b42232 12737
ce406537
PB
12738
12739.PHONY: all-stage1-gcc maybe-all-stage1-gcc
12740.PHONY: clean-stage1-gcc maybe-clean-stage1-gcc
12741maybe-all-stage1-gcc:
12742maybe-clean-stage1-gcc:
12743@if gcc-bootstrap
12744maybe-all-stage1-gcc: all-stage1-gcc
12745all-stage1: all-stage1-gcc
1061f99e 12746TARGET-stage1-gcc = $(TARGET-gcc)
ce406537 12747all-stage1-gcc: configure-stage1-gcc
cc11cc9b 12748 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
ce406537
PB
12749 @r=`${PWD_COMMAND}`; export r; \
12750 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12751 $(HOST_EXPORTS) \
12752 cd $(HOST_SUBDIR)/gcc && \
cc11cc9b 12753 $(MAKE) $(FLAGS_TO_PASS) CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" $(EXTRA_GCC_FLAGS) \
1061f99e 12754 $(TARGET-stage1-gcc)
ce406537
PB
12755
12756maybe-clean-stage1-gcc: clean-stage1-gcc
12757clean-stage1: clean-stage1-gcc
12758clean-stage1-gcc:
995a5697
PB
12759 @if [ $(current_stage) = stage1 ]; then \
12760 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
12761 else \
12762 [ -f $(HOST_SUBDIR)/stage1-gcc/Makefile ] || exit 0; \
12763 $(MAKE) stage1-start; \
12764 fi; \
ce406537
PB
12765 cd $(HOST_SUBDIR)/gcc && \
12766 $(MAKE) $(FLAGS_TO_PASS) \
cc11cc9b 12767 CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" $(EXTRA_GCC_FLAGS) clean
ce406537
PB
12768@endif gcc-bootstrap
12769
12770
12771.PHONY: all-stage2-gcc maybe-all-stage2-gcc
12772.PHONY: clean-stage2-gcc maybe-clean-stage2-gcc
12773maybe-all-stage2-gcc:
12774maybe-clean-stage2-gcc:
12775@if gcc-bootstrap
12776maybe-all-stage2-gcc: all-stage2-gcc
12777all-stage2: all-stage2-gcc
1061f99e 12778TARGET-stage2-gcc = $(TARGET-gcc)
ce406537 12779all-stage2-gcc: configure-stage2-gcc
cc11cc9b 12780 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
ce406537
PB
12781 @r=`${PWD_COMMAND}`; export r; \
12782 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12783 $(HOST_EXPORTS) \
12784 $(POSTSTAGE1_HOST_EXPORTS) \
12785 cd $(HOST_SUBDIR)/gcc && \
1061f99e
PB
12786 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
12787 $(TARGET-stage2-gcc)
ce406537
PB
12788
12789maybe-clean-stage2-gcc: clean-stage2-gcc
12790clean-stage2: clean-stage2-gcc
12791clean-stage2-gcc:
995a5697
PB
12792 @if [ $(current_stage) = stage2 ]; then \
12793 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
12794 else \
12795 [ -f $(HOST_SUBDIR)/stage2-gcc/Makefile ] || exit 0; \
12796 $(MAKE) stage2-start; \
12797 fi; \
ce406537
PB
12798 cd $(HOST_SUBDIR)/gcc && \
12799 $(MAKE) $(FLAGS_TO_PASS) \
12800 $(POSTSTAGE1_FLAGS_TO_PASS) \
12801 $(EXTRA_GCC_FLAGS) clean
12802@endif gcc-bootstrap
12803
12804
12805.PHONY: all-stage3-gcc maybe-all-stage3-gcc
12806.PHONY: clean-stage3-gcc maybe-clean-stage3-gcc
12807maybe-all-stage3-gcc:
12808maybe-clean-stage3-gcc:
12809@if gcc-bootstrap
12810maybe-all-stage3-gcc: all-stage3-gcc
12811all-stage3: all-stage3-gcc
1061f99e 12812TARGET-stage3-gcc = $(TARGET-gcc)
ce406537 12813all-stage3-gcc: configure-stage3-gcc
cc11cc9b 12814 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
ce406537
PB
12815 @r=`${PWD_COMMAND}`; export r; \
12816 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12817 $(HOST_EXPORTS) \
12818 $(POSTSTAGE1_HOST_EXPORTS) \
12819 cd $(HOST_SUBDIR)/gcc && \
1061f99e
PB
12820 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
12821 $(TARGET-stage3-gcc)
ce406537
PB
12822
12823maybe-clean-stage3-gcc: clean-stage3-gcc
12824clean-stage3: clean-stage3-gcc
12825clean-stage3-gcc:
995a5697
PB
12826 @if [ $(current_stage) = stage3 ]; then \
12827 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
12828 else \
12829 [ -f $(HOST_SUBDIR)/stage3-gcc/Makefile ] || exit 0; \
12830 $(MAKE) stage3-start; \
12831 fi; \
ce406537
PB
12832 cd $(HOST_SUBDIR)/gcc && \
12833 $(MAKE) $(FLAGS_TO_PASS) \
12834 $(POSTSTAGE1_FLAGS_TO_PASS) \
12835 $(EXTRA_GCC_FLAGS) clean
12836@endif gcc-bootstrap
12837
12838
12839.PHONY: all-stage4-gcc maybe-all-stage4-gcc
12840.PHONY: clean-stage4-gcc maybe-clean-stage4-gcc
12841maybe-all-stage4-gcc:
12842maybe-clean-stage4-gcc:
12843@if gcc-bootstrap
12844maybe-all-stage4-gcc: all-stage4-gcc
12845all-stage4: all-stage4-gcc
1061f99e 12846TARGET-stage4-gcc = $(TARGET-gcc)
ce406537 12847all-stage4-gcc: configure-stage4-gcc
cc11cc9b 12848 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
ce406537
PB
12849 @r=`${PWD_COMMAND}`; export r; \
12850 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12851 $(HOST_EXPORTS) \
12852 $(POSTSTAGE1_HOST_EXPORTS) \
12853 cd $(HOST_SUBDIR)/gcc && \
1061f99e
PB
12854 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) \
12855 $(TARGET-stage4-gcc)
ce406537
PB
12856
12857maybe-clean-stage4-gcc: clean-stage4-gcc
12858clean-stage4: clean-stage4-gcc
12859clean-stage4-gcc:
995a5697
PB
12860 @if [ $(current_stage) = stage4 ]; then \
12861 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
12862 else \
12863 [ -f $(HOST_SUBDIR)/stage4-gcc/Makefile ] || exit 0; \
12864 $(MAKE) stage4-start; \
12865 fi; \
ce406537
PB
12866 cd $(HOST_SUBDIR)/gcc && \
12867 $(MAKE) $(FLAGS_TO_PASS) \
12868 $(POSTSTAGE1_FLAGS_TO_PASS) \
12869 $(EXTRA_GCC_FLAGS) clean
12870@endif gcc-bootstrap
12871
12872
12873.PHONY: all-stageprofile-gcc maybe-all-stageprofile-gcc
12874.PHONY: clean-stageprofile-gcc maybe-clean-stageprofile-gcc
12875maybe-all-stageprofile-gcc:
12876maybe-clean-stageprofile-gcc:
12877@if gcc-bootstrap
12878maybe-all-stageprofile-gcc: all-stageprofile-gcc
12879all-stageprofile: all-stageprofile-gcc
1061f99e 12880TARGET-stageprofile-gcc = $(TARGET-gcc)
ce406537 12881all-stageprofile-gcc: configure-stageprofile-gcc
cc11cc9b 12882 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
ce406537
PB
12883 @r=`${PWD_COMMAND}`; export r; \
12884 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12885 $(HOST_EXPORTS) \
12886 $(POSTSTAGE1_HOST_EXPORTS) \
12887 cd $(HOST_SUBDIR)/gcc && \
1061f99e
PB
12888 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" $(EXTRA_GCC_FLAGS) \
12889 $(TARGET-stageprofile-gcc)
ce406537
PB
12890
12891maybe-clean-stageprofile-gcc: clean-stageprofile-gcc
12892clean-stageprofile: clean-stageprofile-gcc
12893clean-stageprofile-gcc:
995a5697
PB
12894 @if [ $(current_stage) = stageprofile ]; then \
12895 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
12896 else \
12897 [ -f $(HOST_SUBDIR)/stageprofile-gcc/Makefile ] || exit 0; \
12898 $(MAKE) stageprofile-start; \
12899 fi; \
ce406537
PB
12900 cd $(HOST_SUBDIR)/gcc && \
12901 $(MAKE) $(FLAGS_TO_PASS) \
12902 $(POSTSTAGE1_FLAGS_TO_PASS) \
12903 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" $(EXTRA_GCC_FLAGS) clean
12904@endif gcc-bootstrap
12905
12906
12907.PHONY: all-stagefeedback-gcc maybe-all-stagefeedback-gcc
12908.PHONY: clean-stagefeedback-gcc maybe-clean-stagefeedback-gcc
12909maybe-all-stagefeedback-gcc:
12910maybe-clean-stagefeedback-gcc:
12911@if gcc-bootstrap
12912maybe-all-stagefeedback-gcc: all-stagefeedback-gcc
12913all-stagefeedback: all-stagefeedback-gcc
1061f99e 12914TARGET-stagefeedback-gcc = $(TARGET-gcc)
ce406537 12915all-stagefeedback-gcc: configure-stagefeedback-gcc
cc11cc9b 12916 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
ce406537
PB
12917 @r=`${PWD_COMMAND}`; export r; \
12918 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
12919 $(HOST_EXPORTS) \
12920 $(POSTSTAGE1_HOST_EXPORTS) \
12921 cd $(HOST_SUBDIR)/gcc && \
1061f99e
PB
12922 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-use" $(EXTRA_GCC_FLAGS) \
12923 $(TARGET-stagefeedback-gcc)
ce406537
PB
12924
12925maybe-clean-stagefeedback-gcc: clean-stagefeedback-gcc
12926clean-stagefeedback: clean-stagefeedback-gcc
12927clean-stagefeedback-gcc:
995a5697
PB
12928 @if [ $(current_stage) = stagefeedback ]; then \
12929 [ -f $(HOST_SUBDIR)/gcc/Makefile ] || exit 0; \
12930 else \
12931 [ -f $(HOST_SUBDIR)/stagefeedback-gcc/Makefile ] || exit 0; \
12932 $(MAKE) stagefeedback-start; \
12933 fi; \
ce406537
PB
12934 cd $(HOST_SUBDIR)/gcc && \
12935 $(MAKE) $(FLAGS_TO_PASS) \
12936 $(POSTSTAGE1_FLAGS_TO_PASS) \
12937 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" $(EXTRA_GCC_FLAGS) clean
12938@endif gcc-bootstrap
12939
12940
12941
12942
12943
d32ab992
PB
12944.PHONY: check-gcc maybe-check-gcc
12945maybe-check-gcc:
12946@if gcc
12947maybe-check-gcc: check-gcc
1358ccea 12948
d32ab992 12949check-gcc:
f41d6665 12950 @: $(MAKE); $(unstage)
295f4e42 12951 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 12952 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12953 $(HOST_EXPORTS) \
215c351a
PB
12954 (cd $(HOST_SUBDIR)/gcc && \
12955 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) check)
1358ccea 12956
d32ab992 12957@endif gcc
1358ccea 12958
d32ab992
PB
12959.PHONY: install-gcc maybe-install-gcc
12960maybe-install-gcc:
12961@if gcc
12962maybe-install-gcc: install-gcc
1358ccea 12963
d32ab992 12964install-gcc: installdirs
f41d6665 12965 @: $(MAKE); $(unstage)
295f4e42 12966 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 12967 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12968 $(HOST_EXPORTS) \
215c351a 12969 (cd $(HOST_SUBDIR)/gcc && \
ace9ac7b 12970 $(MAKE) $(FLAGS_TO_PASS) $(EXTRA_GCC_FLAGS) install)
1358ccea 12971
d32ab992 12972@endif gcc
1358ccea 12973
b5422ad7 12974# Other targets (info, dvi, pdf, etc.)
1358ccea 12975
d32ab992
PB
12976.PHONY: maybe-info-gcc info-gcc
12977maybe-info-gcc:
12978@if gcc
12979maybe-info-gcc: info-gcc
1358ccea 12980
d32ab992 12981info-gcc: \
05750653 12982 configure-gcc
d32ab992 12983 @[ -f ./gcc/Makefile ] || exit 0; \
8c90b13a
L
12984 r=`${PWD_COMMAND}`; export r; \
12985 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 12986 $(HOST_EXPORTS) \
d32ab992 12987 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
1358ccea
NN
12988 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
12989 done; \
d32ab992 12990 echo "Doing info in gcc" ; \
215c351a 12991 (cd $(HOST_SUBDIR)/gcc && \
1358ccea
NN
12992 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
12993 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
12994 "RANLIB=$${RANLIB}" \
12995 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 12996 info) \
1358ccea
NN
12997 || exit 1
12998
d32ab992 12999@endif gcc
1358ccea 13000
d32ab992
PB
13001.PHONY: maybe-dvi-gcc dvi-gcc
13002maybe-dvi-gcc:
13003@if gcc
13004maybe-dvi-gcc: dvi-gcc
1358ccea 13005
d32ab992 13006dvi-gcc: \
05750653 13007 configure-gcc
d32ab992 13008 @[ -f ./gcc/Makefile ] || exit 0; \
8c90b13a
L
13009 r=`${PWD_COMMAND}`; export r; \
13010 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13011 $(HOST_EXPORTS) \
d32ab992 13012 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
1358ccea
NN
13013 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13014 done; \
d32ab992 13015 echo "Doing dvi in gcc" ; \
215c351a 13016 (cd $(HOST_SUBDIR)/gcc && \
1358ccea
NN
13017 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13018 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13019 "RANLIB=$${RANLIB}" \
13020 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13021 dvi) \
1358ccea
NN
13022 || exit 1
13023
d32ab992 13024@endif gcc
1358ccea 13025
b5422ad7
BM
13026.PHONY: maybe-pdf-gcc pdf-gcc
13027maybe-pdf-gcc:
13028@if gcc
13029maybe-pdf-gcc: pdf-gcc
13030
13031pdf-gcc: \
13032 configure-gcc
13033 @[ -f ./gcc/Makefile ] || exit 0; \
13034 r=`${PWD_COMMAND}`; export r; \
13035 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13036 $(HOST_EXPORTS) \
13037 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
13038 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13039 done; \
13040 echo "Doing pdf in gcc" ; \
13041 (cd $(HOST_SUBDIR)/gcc && \
13042 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13043 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13044 "RANLIB=$${RANLIB}" \
13045 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13046 pdf) \
13047 || exit 1
13048
13049@endif gcc
13050
f87a2b2e
MS
13051.PHONY: maybe-html-gcc html-gcc
13052maybe-html-gcc:
13053@if gcc
13054maybe-html-gcc: html-gcc
13055
13056html-gcc: \
05750653 13057 configure-gcc
f87a2b2e
MS
13058 @[ -f ./gcc/Makefile ] || exit 0; \
13059 r=`${PWD_COMMAND}`; export r; \
13060 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
13061 $(HOST_EXPORTS) \
13062 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
13063 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13064 done; \
13065 echo "Doing html in gcc" ; \
215c351a 13066 (cd $(HOST_SUBDIR)/gcc && \
f87a2b2e
MS
13067 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13068 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13069 "RANLIB=$${RANLIB}" \
13070 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13071 html) \
13072 || exit 1
13073
13074@endif gcc
13075
d32ab992
PB
13076.PHONY: maybe-TAGS-gcc TAGS-gcc
13077maybe-TAGS-gcc:
13078@if gcc
13079maybe-TAGS-gcc: TAGS-gcc
1358ccea 13080
d32ab992 13081TAGS-gcc: \
05750653 13082 configure-gcc
d32ab992 13083 @[ -f ./gcc/Makefile ] || exit 0; \
8c90b13a
L
13084 r=`${PWD_COMMAND}`; export r; \
13085 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13086 $(HOST_EXPORTS) \
d32ab992 13087 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
1358ccea
NN
13088 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13089 done; \
d32ab992 13090 echo "Doing TAGS in gcc" ; \
215c351a 13091 (cd $(HOST_SUBDIR)/gcc && \
1358ccea
NN
13092 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13093 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13094 "RANLIB=$${RANLIB}" \
13095 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13096 TAGS) \
1358ccea
NN
13097 || exit 1
13098
d32ab992 13099@endif gcc
1358ccea 13100
d32ab992
PB
13101.PHONY: maybe-install-info-gcc install-info-gcc
13102maybe-install-info-gcc:
13103@if gcc
13104maybe-install-info-gcc: install-info-gcc
1358ccea 13105
d32ab992
PB
13106install-info-gcc: \
13107 configure-gcc \
05750653 13108 info-gcc
d32ab992 13109 @[ -f ./gcc/Makefile ] || exit 0; \
8c90b13a
L
13110 r=`${PWD_COMMAND}`; export r; \
13111 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13112 $(HOST_EXPORTS) \
d32ab992 13113 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
1358ccea
NN
13114 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13115 done; \
d32ab992 13116 echo "Doing install-info in gcc" ; \
215c351a 13117 (cd $(HOST_SUBDIR)/gcc && \
1358ccea
NN
13118 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13119 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13120 "RANLIB=$${RANLIB}" \
13121 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13122 install-info) \
1358ccea
NN
13123 || exit 1
13124
d32ab992 13125@endif gcc
1358ccea 13126
65d6e994
CD
13127.PHONY: maybe-install-html-gcc install-html-gcc
13128maybe-install-html-gcc:
13129@if gcc
13130maybe-install-html-gcc: install-html-gcc
13131
13132install-html-gcc: \
13133 configure-gcc \
13134 html-gcc
13135 @[ -f ./gcc/Makefile ] || exit 0; \
13136 r=`${PWD_COMMAND}`; export r; \
13137 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13138 $(HOST_EXPORTS) \
13139 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
13140 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13141 done; \
13142 echo "Doing install-html in gcc" ; \
13143 (cd $(HOST_SUBDIR)/gcc && \
13144 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13145 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13146 "RANLIB=$${RANLIB}" \
13147 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13148 install-html) \
13149 || exit 1
13150
13151@endif gcc
13152
d32ab992
PB
13153.PHONY: maybe-installcheck-gcc installcheck-gcc
13154maybe-installcheck-gcc:
13155@if gcc
13156maybe-installcheck-gcc: installcheck-gcc
1358ccea 13157
d32ab992 13158installcheck-gcc: \
05750653 13159 configure-gcc
d32ab992 13160 @[ -f ./gcc/Makefile ] || exit 0; \
8c90b13a
L
13161 r=`${PWD_COMMAND}`; export r; \
13162 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13163 $(HOST_EXPORTS) \
d32ab992 13164 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
1358ccea
NN
13165 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13166 done; \
d32ab992 13167 echo "Doing installcheck in gcc" ; \
215c351a 13168 (cd $(HOST_SUBDIR)/gcc && \
1358ccea
NN
13169 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13170 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13171 "RANLIB=$${RANLIB}" \
13172 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13173 installcheck) \
1358ccea
NN
13174 || exit 1
13175
d32ab992 13176@endif gcc
1358ccea 13177
d32ab992
PB
13178.PHONY: maybe-mostlyclean-gcc mostlyclean-gcc
13179maybe-mostlyclean-gcc:
13180@if gcc
13181maybe-mostlyclean-gcc: mostlyclean-gcc
1358ccea 13182
05750653 13183mostlyclean-gcc:
d32ab992 13184 @[ -f ./gcc/Makefile ] || exit 0; \
8c90b13a
L
13185 r=`${PWD_COMMAND}`; export r; \
13186 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13187 $(HOST_EXPORTS) \
d32ab992 13188 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
1358ccea
NN
13189 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13190 done; \
d32ab992 13191 echo "Doing mostlyclean in gcc" ; \
215c351a 13192 (cd $(HOST_SUBDIR)/gcc && \
1358ccea
NN
13193 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13194 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13195 "RANLIB=$${RANLIB}" \
13196 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13197 mostlyclean) \
1358ccea
NN
13198 || exit 1
13199
d32ab992 13200@endif gcc
1358ccea 13201
d32ab992
PB
13202.PHONY: maybe-clean-gcc clean-gcc
13203maybe-clean-gcc:
13204@if gcc
13205maybe-clean-gcc: clean-gcc
1358ccea 13206
05750653 13207clean-gcc:
d32ab992 13208 @[ -f ./gcc/Makefile ] || exit 0; \
8c90b13a
L
13209 r=`${PWD_COMMAND}`; export r; \
13210 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13211 $(HOST_EXPORTS) \
d32ab992 13212 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
1358ccea
NN
13213 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13214 done; \
d32ab992 13215 echo "Doing clean in gcc" ; \
215c351a 13216 (cd $(HOST_SUBDIR)/gcc && \
1358ccea
NN
13217 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13218 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13219 "RANLIB=$${RANLIB}" \
13220 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13221 clean) \
1358ccea
NN
13222 || exit 1
13223
d32ab992 13224@endif gcc
1358ccea 13225
d32ab992
PB
13226.PHONY: maybe-distclean-gcc distclean-gcc
13227maybe-distclean-gcc:
13228@if gcc
13229maybe-distclean-gcc: distclean-gcc
1358ccea 13230
05750653 13231distclean-gcc:
d32ab992 13232 @[ -f ./gcc/Makefile ] || exit 0; \
8c90b13a
L
13233 r=`${PWD_COMMAND}`; export r; \
13234 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13235 $(HOST_EXPORTS) \
d32ab992 13236 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
1358ccea
NN
13237 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13238 done; \
d32ab992 13239 echo "Doing distclean in gcc" ; \
215c351a 13240 (cd $(HOST_SUBDIR)/gcc && \
1358ccea
NN
13241 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13242 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13243 "RANLIB=$${RANLIB}" \
13244 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13245 distclean) \
1358ccea
NN
13246 || exit 1
13247
d32ab992 13248@endif gcc
1358ccea 13249
d32ab992
PB
13250.PHONY: maybe-maintainer-clean-gcc maintainer-clean-gcc
13251maybe-maintainer-clean-gcc:
13252@if gcc
13253maybe-maintainer-clean-gcc: maintainer-clean-gcc
1358ccea 13254
05750653 13255maintainer-clean-gcc:
d32ab992 13256 @[ -f ./gcc/Makefile ] || exit 0; \
8c90b13a
L
13257 r=`${PWD_COMMAND}`; export r; \
13258 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13259 $(HOST_EXPORTS) \
d32ab992 13260 for flag in $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS); do \
1358ccea
NN
13261 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13262 done; \
d32ab992 13263 echo "Doing maintainer-clean in gcc" ; \
215c351a 13264 (cd $(HOST_SUBDIR)/gcc && \
1358ccea
NN
13265 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13266 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13267 "RANLIB=$${RANLIB}" \
13268 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13269 maintainer-clean) \
1358ccea
NN
13270 || exit 1
13271
d32ab992 13272@endif gcc
1358ccea 13273
1358ccea 13274
25b42232 13275
d32ab992
PB
13276.PHONY: configure-gawk maybe-configure-gawk
13277maybe-configure-gawk:
3ff3adad
PB
13278@if gcc-bootstrap
13279configure-gawk: stage_current
13280@endif gcc-bootstrap
d32ab992
PB
13281@if gawk
13282maybe-configure-gawk: configure-gawk
cc11cc9b 13283configure-gawk:
f41d6665 13284 @: $(MAKE); $(unstage)
cc11cc9b 13285 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 13286 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
13287 test ! -f $(HOST_SUBDIR)/gawk/Makefile || exit 0; \
13288 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gawk ; \
4fc4dd12 13289 $(HOST_EXPORTS) \
25b42232
PB
13290 echo Configuring in $(HOST_SUBDIR)/gawk; \
13291 cd "$(HOST_SUBDIR)/gawk" || exit 1; \
295f4e42 13292 case $(srcdir) in \
215c351a
PB
13293 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
13294 *) topdir=`echo $(HOST_SUBDIR)/gawk/ | \
13295 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 13296 esac; \
215c351a
PB
13297 srcdiroption="--srcdir=$${topdir}/gawk"; \
13298 libsrcdir="$$s/gawk"; \
295f4e42 13299 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 13300 $(HOST_CONFIGARGS) $${srcdiroption} \
295f4e42 13301 || exit 1
d32ab992 13302@endif gawk
295f4e42 13303
25b42232
PB
13304
13305
ce406537
PB
13306
13307
d32ab992
PB
13308.PHONY: all-gawk maybe-all-gawk
13309maybe-all-gawk:
3ff3adad
PB
13310@if gcc-bootstrap
13311all-gawk: stage_current
13312@endif gcc-bootstrap
d32ab992 13313@if gawk
7e0b5752 13314TARGET-gawk=all
d32ab992
PB
13315maybe-all-gawk: all-gawk
13316all-gawk: configure-gawk
f41d6665 13317 @: $(MAKE); $(unstage)
295f4e42
NN
13318 @r=`${PWD_COMMAND}`; export r; \
13319 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13320 $(HOST_EXPORTS) \
215c351a
PB
13321 (cd $(HOST_SUBDIR)/gawk && \
13322 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-gawk))
d32ab992 13323@endif gawk
295f4e42 13324
25b42232 13325
ce406537
PB
13326
13327
d32ab992
PB
13328.PHONY: check-gawk maybe-check-gawk
13329maybe-check-gawk:
13330@if gawk
13331maybe-check-gawk: check-gawk
295f4e42 13332
d32ab992 13333check-gawk:
f41d6665 13334 @: $(MAKE); $(unstage)
295f4e42
NN
13335 @r=`${PWD_COMMAND}`; export r; \
13336 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13337 $(HOST_EXPORTS) \
215c351a
PB
13338 (cd $(HOST_SUBDIR)/gawk && \
13339 $(MAKE) $(FLAGS_TO_PASS) check)
295f4e42 13340
d32ab992 13341@endif gawk
295f4e42 13342
d32ab992
PB
13343.PHONY: install-gawk maybe-install-gawk
13344maybe-install-gawk:
13345@if gawk
13346maybe-install-gawk: install-gawk
295f4e42 13347
d32ab992 13348install-gawk: installdirs
f41d6665 13349 @: $(MAKE); $(unstage)
295f4e42
NN
13350 @r=`${PWD_COMMAND}`; export r; \
13351 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13352 $(HOST_EXPORTS) \
215c351a 13353 (cd $(HOST_SUBDIR)/gawk && \
ace9ac7b 13354 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 13355
d32ab992 13356@endif gawk
295f4e42 13357
b5422ad7 13358# Other targets (info, dvi, pdf, etc.)
295f4e42 13359
d32ab992
PB
13360.PHONY: maybe-info-gawk info-gawk
13361maybe-info-gawk:
13362@if gawk
13363maybe-info-gawk: info-gawk
295f4e42 13364
d32ab992 13365info-gawk: \
05750653 13366 configure-gawk
f41d6665 13367 @: $(MAKE); $(unstage)
d32ab992 13368 @[ -f ./gawk/Makefile ] || exit 0; \
295f4e42
NN
13369 r=`${PWD_COMMAND}`; export r; \
13370 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13371 $(HOST_EXPORTS) \
d32ab992 13372 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13373 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13374 done; \
d32ab992 13375 echo "Doing info in gawk" ; \
215c351a 13376 (cd $(HOST_SUBDIR)/gawk && \
1358ccea
NN
13377 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13378 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13379 "RANLIB=$${RANLIB}" \
13380 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13381 info) \
1358ccea
NN
13382 || exit 1
13383
d32ab992 13384@endif gawk
1358ccea 13385
d32ab992
PB
13386.PHONY: maybe-dvi-gawk dvi-gawk
13387maybe-dvi-gawk:
13388@if gawk
13389maybe-dvi-gawk: dvi-gawk
1358ccea 13390
d32ab992 13391dvi-gawk: \
05750653 13392 configure-gawk
f41d6665 13393 @: $(MAKE); $(unstage)
d32ab992 13394 @[ -f ./gawk/Makefile ] || exit 0; \
8c90b13a
L
13395 r=`${PWD_COMMAND}`; export r; \
13396 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13397 $(HOST_EXPORTS) \
d32ab992 13398 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13399 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13400 done; \
d32ab992 13401 echo "Doing dvi in gawk" ; \
215c351a 13402 (cd $(HOST_SUBDIR)/gawk && \
1358ccea
NN
13403 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13404 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13405 "RANLIB=$${RANLIB}" \
13406 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13407 dvi) \
1358ccea
NN
13408 || exit 1
13409
d32ab992 13410@endif gawk
1358ccea 13411
b5422ad7
BM
13412.PHONY: maybe-pdf-gawk pdf-gawk
13413maybe-pdf-gawk:
13414@if gawk
13415maybe-pdf-gawk: pdf-gawk
13416
13417pdf-gawk: \
13418 configure-gawk
13419 @: $(MAKE); $(unstage)
13420 @[ -f ./gawk/Makefile ] || exit 0; \
13421 r=`${PWD_COMMAND}`; export r; \
13422 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13423 $(HOST_EXPORTS) \
13424 for flag in $(EXTRA_HOST_FLAGS) ; do \
13425 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13426 done; \
13427 echo "Doing pdf in gawk" ; \
13428 (cd $(HOST_SUBDIR)/gawk && \
13429 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13430 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13431 "RANLIB=$${RANLIB}" \
13432 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13433 pdf) \
13434 || exit 1
13435
13436@endif gawk
13437
f87a2b2e
MS
13438.PHONY: maybe-html-gawk html-gawk
13439maybe-html-gawk:
13440@if gawk
13441maybe-html-gawk: html-gawk
13442
13443html-gawk: \
05750653 13444 configure-gawk
f41d6665 13445 @: $(MAKE); $(unstage)
f87a2b2e
MS
13446 @[ -f ./gawk/Makefile ] || exit 0; \
13447 r=`${PWD_COMMAND}`; export r; \
13448 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
13449 $(HOST_EXPORTS) \
13450 for flag in $(EXTRA_HOST_FLAGS) ; do \
13451 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13452 done; \
13453 echo "Doing html in gawk" ; \
215c351a 13454 (cd $(HOST_SUBDIR)/gawk && \
f87a2b2e
MS
13455 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13456 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13457 "RANLIB=$${RANLIB}" \
13458 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13459 html) \
13460 || exit 1
13461
13462@endif gawk
13463
d32ab992
PB
13464.PHONY: maybe-TAGS-gawk TAGS-gawk
13465maybe-TAGS-gawk:
13466@if gawk
13467maybe-TAGS-gawk: TAGS-gawk
d9cdb878 13468
d32ab992 13469TAGS-gawk: \
05750653 13470 configure-gawk
f41d6665 13471 @: $(MAKE); $(unstage)
d32ab992 13472 @[ -f ./gawk/Makefile ] || exit 0; \
d9cdb878
AC
13473 r=`${PWD_COMMAND}`; export r; \
13474 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13475 $(HOST_EXPORTS) \
d32ab992 13476 for flag in $(EXTRA_HOST_FLAGS) ; do \
d9cdb878
AC
13477 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13478 done; \
d32ab992 13479 echo "Doing TAGS in gawk" ; \
215c351a 13480 (cd $(HOST_SUBDIR)/gawk && \
d9cdb878
AC
13481 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13482 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13483 "RANLIB=$${RANLIB}" \
13484 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13485 TAGS) \
d9cdb878
AC
13486 || exit 1
13487
d32ab992 13488@endif gawk
d9cdb878 13489
d32ab992
PB
13490.PHONY: maybe-install-info-gawk install-info-gawk
13491maybe-install-info-gawk:
13492@if gawk
13493maybe-install-info-gawk: install-info-gawk
1358ccea 13494
d32ab992
PB
13495install-info-gawk: \
13496 configure-gawk \
05750653 13497 info-gawk
f41d6665 13498 @: $(MAKE); $(unstage)
d32ab992 13499 @[ -f ./gawk/Makefile ] || exit 0; \
8c90b13a
L
13500 r=`${PWD_COMMAND}`; export r; \
13501 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13502 $(HOST_EXPORTS) \
d32ab992 13503 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13504 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13505 done; \
d32ab992 13506 echo "Doing install-info in gawk" ; \
215c351a 13507 (cd $(HOST_SUBDIR)/gawk && \
1358ccea
NN
13508 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13509 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13510 "RANLIB=$${RANLIB}" \
13511 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13512 install-info) \
1358ccea
NN
13513 || exit 1
13514
d32ab992 13515@endif gawk
1358ccea 13516
65d6e994
CD
13517.PHONY: maybe-install-html-gawk install-html-gawk
13518maybe-install-html-gawk:
13519@if gawk
13520maybe-install-html-gawk: install-html-gawk
13521
13522install-html-gawk: \
13523 configure-gawk \
13524 html-gawk
13525 @: $(MAKE); $(unstage)
13526 @[ -f ./gawk/Makefile ] || exit 0; \
13527 r=`${PWD_COMMAND}`; export r; \
13528 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13529 $(HOST_EXPORTS) \
13530 for flag in $(EXTRA_HOST_FLAGS) ; do \
13531 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13532 done; \
13533 echo "Doing install-html in gawk" ; \
13534 (cd $(HOST_SUBDIR)/gawk && \
13535 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13536 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13537 "RANLIB=$${RANLIB}" \
13538 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13539 install-html) \
13540 || exit 1
13541
13542@endif gawk
13543
d32ab992
PB
13544.PHONY: maybe-installcheck-gawk installcheck-gawk
13545maybe-installcheck-gawk:
13546@if gawk
13547maybe-installcheck-gawk: installcheck-gawk
1358ccea 13548
d32ab992 13549installcheck-gawk: \
05750653 13550 configure-gawk
f41d6665 13551 @: $(MAKE); $(unstage)
d32ab992 13552 @[ -f ./gawk/Makefile ] || exit 0; \
8c90b13a
L
13553 r=`${PWD_COMMAND}`; export r; \
13554 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13555 $(HOST_EXPORTS) \
d32ab992 13556 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13557 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13558 done; \
d32ab992 13559 echo "Doing installcheck in gawk" ; \
215c351a 13560 (cd $(HOST_SUBDIR)/gawk && \
1358ccea
NN
13561 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13562 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13563 "RANLIB=$${RANLIB}" \
13564 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13565 installcheck) \
1358ccea
NN
13566 || exit 1
13567
d32ab992 13568@endif gawk
1358ccea 13569
d32ab992
PB
13570.PHONY: maybe-mostlyclean-gawk mostlyclean-gawk
13571maybe-mostlyclean-gawk:
13572@if gawk
13573maybe-mostlyclean-gawk: mostlyclean-gawk
1358ccea 13574
05750653 13575mostlyclean-gawk:
f41d6665 13576 @: $(MAKE); $(unstage)
d32ab992 13577 @[ -f ./gawk/Makefile ] || exit 0; \
8c90b13a
L
13578 r=`${PWD_COMMAND}`; export r; \
13579 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13580 $(HOST_EXPORTS) \
d32ab992 13581 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13582 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13583 done; \
d32ab992 13584 echo "Doing mostlyclean in gawk" ; \
215c351a 13585 (cd $(HOST_SUBDIR)/gawk && \
1358ccea
NN
13586 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13587 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13588 "RANLIB=$${RANLIB}" \
13589 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13590 mostlyclean) \
1358ccea
NN
13591 || exit 1
13592
d32ab992 13593@endif gawk
1358ccea 13594
d32ab992
PB
13595.PHONY: maybe-clean-gawk clean-gawk
13596maybe-clean-gawk:
13597@if gawk
13598maybe-clean-gawk: clean-gawk
1358ccea 13599
05750653 13600clean-gawk:
f41d6665 13601 @: $(MAKE); $(unstage)
d32ab992 13602 @[ -f ./gawk/Makefile ] || exit 0; \
8c90b13a
L
13603 r=`${PWD_COMMAND}`; export r; \
13604 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13605 $(HOST_EXPORTS) \
d32ab992 13606 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13607 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13608 done; \
d32ab992 13609 echo "Doing clean in gawk" ; \
215c351a 13610 (cd $(HOST_SUBDIR)/gawk && \
1358ccea
NN
13611 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13612 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13613 "RANLIB=$${RANLIB}" \
13614 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13615 clean) \
1358ccea
NN
13616 || exit 1
13617
d32ab992 13618@endif gawk
1358ccea 13619
d32ab992
PB
13620.PHONY: maybe-distclean-gawk distclean-gawk
13621maybe-distclean-gawk:
13622@if gawk
13623maybe-distclean-gawk: distclean-gawk
1358ccea 13624
05750653 13625distclean-gawk:
f41d6665 13626 @: $(MAKE); $(unstage)
d32ab992 13627 @[ -f ./gawk/Makefile ] || exit 0; \
8c90b13a
L
13628 r=`${PWD_COMMAND}`; export r; \
13629 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13630 $(HOST_EXPORTS) \
d32ab992 13631 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13632 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13633 done; \
d32ab992 13634 echo "Doing distclean in gawk" ; \
215c351a 13635 (cd $(HOST_SUBDIR)/gawk && \
1358ccea
NN
13636 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13637 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13638 "RANLIB=$${RANLIB}" \
13639 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13640 distclean) \
1358ccea
NN
13641 || exit 1
13642
d32ab992 13643@endif gawk
1358ccea 13644
d32ab992
PB
13645.PHONY: maybe-maintainer-clean-gawk maintainer-clean-gawk
13646maybe-maintainer-clean-gawk:
13647@if gawk
13648maybe-maintainer-clean-gawk: maintainer-clean-gawk
1358ccea 13649
05750653 13650maintainer-clean-gawk:
f41d6665 13651 @: $(MAKE); $(unstage)
d32ab992 13652 @[ -f ./gawk/Makefile ] || exit 0; \
8c90b13a
L
13653 r=`${PWD_COMMAND}`; export r; \
13654 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13655 $(HOST_EXPORTS) \
d32ab992 13656 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13657 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13658 done; \
d32ab992 13659 echo "Doing maintainer-clean in gawk" ; \
215c351a 13660 (cd $(HOST_SUBDIR)/gawk && \
1358ccea
NN
13661 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13662 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13663 "RANLIB=$${RANLIB}" \
13664 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13665 maintainer-clean) \
1358ccea
NN
13666 || exit 1
13667
d32ab992 13668@endif gawk
1358ccea 13669
1358ccea 13670
25b42232 13671
d32ab992
PB
13672.PHONY: configure-gettext maybe-configure-gettext
13673maybe-configure-gettext:
3ff3adad
PB
13674@if gcc-bootstrap
13675configure-gettext: stage_current
13676@endif gcc-bootstrap
d32ab992
PB
13677@if gettext
13678maybe-configure-gettext: configure-gettext
cc11cc9b 13679configure-gettext:
f41d6665 13680 @: $(MAKE); $(unstage)
cc11cc9b 13681 @r=`${PWD_COMMAND}`; export r; \
295f4e42 13682 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
13683 test ! -f $(HOST_SUBDIR)/gettext/Makefile || exit 0; \
13684 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gettext ; \
4fc4dd12 13685 $(HOST_EXPORTS) \
25b42232
PB
13686 echo Configuring in $(HOST_SUBDIR)/gettext; \
13687 cd "$(HOST_SUBDIR)/gettext" || exit 1; \
295f4e42 13688 case $(srcdir) in \
215c351a
PB
13689 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
13690 *) topdir=`echo $(HOST_SUBDIR)/gettext/ | \
13691 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 13692 esac; \
215c351a
PB
13693 srcdiroption="--srcdir=$${topdir}/gettext"; \
13694 libsrcdir="$$s/gettext"; \
295f4e42 13695 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 13696 $(HOST_CONFIGARGS) $${srcdiroption} \
295f4e42 13697 || exit 1
d32ab992 13698@endif gettext
295f4e42 13699
25b42232
PB
13700
13701
ce406537
PB
13702
13703
d32ab992
PB
13704.PHONY: all-gettext maybe-all-gettext
13705maybe-all-gettext:
3ff3adad
PB
13706@if gcc-bootstrap
13707all-gettext: stage_current
13708@endif gcc-bootstrap
d32ab992 13709@if gettext
7e0b5752 13710TARGET-gettext=all
d32ab992
PB
13711maybe-all-gettext: all-gettext
13712all-gettext: configure-gettext
f41d6665 13713 @: $(MAKE); $(unstage)
295f4e42
NN
13714 @r=`${PWD_COMMAND}`; export r; \
13715 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13716 $(HOST_EXPORTS) \
215c351a
PB
13717 (cd $(HOST_SUBDIR)/gettext && \
13718 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-gettext))
d32ab992 13719@endif gettext
295f4e42 13720
25b42232 13721
ce406537
PB
13722
13723
d32ab992
PB
13724.PHONY: check-gettext maybe-check-gettext
13725maybe-check-gettext:
13726@if gettext
13727maybe-check-gettext: check-gettext
295f4e42 13728
d32ab992 13729check-gettext:
f41d6665 13730 @: $(MAKE); $(unstage)
295f4e42
NN
13731 @r=`${PWD_COMMAND}`; export r; \
13732 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13733 $(HOST_EXPORTS) \
215c351a
PB
13734 (cd $(HOST_SUBDIR)/gettext && \
13735 $(MAKE) $(FLAGS_TO_PASS) check)
295f4e42 13736
d32ab992 13737@endif gettext
295f4e42 13738
d32ab992
PB
13739.PHONY: install-gettext maybe-install-gettext
13740maybe-install-gettext:
13741@if gettext
13742maybe-install-gettext: install-gettext
295f4e42 13743
d32ab992 13744install-gettext: installdirs
f41d6665 13745 @: $(MAKE); $(unstage)
295f4e42
NN
13746 @r=`${PWD_COMMAND}`; export r; \
13747 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13748 $(HOST_EXPORTS) \
215c351a 13749 (cd $(HOST_SUBDIR)/gettext && \
ace9ac7b 13750 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 13751
d32ab992 13752@endif gettext
295f4e42 13753
b5422ad7 13754# Other targets (info, dvi, pdf, etc.)
295f4e42 13755
d32ab992
PB
13756.PHONY: maybe-info-gettext info-gettext
13757maybe-info-gettext:
13758@if gettext
13759maybe-info-gettext: info-gettext
295f4e42 13760
d32ab992 13761info-gettext: \
05750653 13762 configure-gettext
f41d6665 13763 @: $(MAKE); $(unstage)
d32ab992 13764 @[ -f ./gettext/Makefile ] || exit 0; \
8c90b13a
L
13765 r=`${PWD_COMMAND}`; export r; \
13766 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13767 $(HOST_EXPORTS) \
d32ab992 13768 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13769 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13770 done; \
d32ab992 13771 echo "Doing info in gettext" ; \
215c351a 13772 (cd $(HOST_SUBDIR)/gettext && \
1358ccea
NN
13773 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13774 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13775 "RANLIB=$${RANLIB}" \
13776 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13777 info) \
1358ccea
NN
13778 || exit 1
13779
d32ab992 13780@endif gettext
1358ccea 13781
d32ab992
PB
13782.PHONY: maybe-dvi-gettext dvi-gettext
13783maybe-dvi-gettext:
13784@if gettext
13785maybe-dvi-gettext: dvi-gettext
1358ccea 13786
d32ab992 13787dvi-gettext: \
05750653 13788 configure-gettext
f41d6665 13789 @: $(MAKE); $(unstage)
d32ab992 13790 @[ -f ./gettext/Makefile ] || exit 0; \
8c90b13a
L
13791 r=`${PWD_COMMAND}`; export r; \
13792 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13793 $(HOST_EXPORTS) \
d32ab992 13794 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13795 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13796 done; \
d32ab992 13797 echo "Doing dvi in gettext" ; \
215c351a 13798 (cd $(HOST_SUBDIR)/gettext && \
1358ccea
NN
13799 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13800 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13801 "RANLIB=$${RANLIB}" \
13802 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13803 dvi) \
1358ccea
NN
13804 || exit 1
13805
d32ab992 13806@endif gettext
1358ccea 13807
b5422ad7
BM
13808.PHONY: maybe-pdf-gettext pdf-gettext
13809maybe-pdf-gettext:
13810@if gettext
13811maybe-pdf-gettext: pdf-gettext
13812
13813pdf-gettext: \
13814 configure-gettext
13815 @: $(MAKE); $(unstage)
13816 @[ -f ./gettext/Makefile ] || exit 0; \
13817 r=`${PWD_COMMAND}`; export r; \
13818 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13819 $(HOST_EXPORTS) \
13820 for flag in $(EXTRA_HOST_FLAGS) ; do \
13821 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13822 done; \
13823 echo "Doing pdf in gettext" ; \
13824 (cd $(HOST_SUBDIR)/gettext && \
13825 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13826 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13827 "RANLIB=$${RANLIB}" \
13828 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13829 pdf) \
13830 || exit 1
13831
13832@endif gettext
13833
f87a2b2e
MS
13834.PHONY: maybe-html-gettext html-gettext
13835maybe-html-gettext:
13836@if gettext
13837maybe-html-gettext: html-gettext
13838
13839html-gettext: \
05750653 13840 configure-gettext
f41d6665 13841 @: $(MAKE); $(unstage)
f87a2b2e
MS
13842 @[ -f ./gettext/Makefile ] || exit 0; \
13843 r=`${PWD_COMMAND}`; export r; \
13844 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
13845 $(HOST_EXPORTS) \
13846 for flag in $(EXTRA_HOST_FLAGS) ; do \
13847 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13848 done; \
13849 echo "Doing html in gettext" ; \
215c351a 13850 (cd $(HOST_SUBDIR)/gettext && \
f87a2b2e
MS
13851 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13852 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13853 "RANLIB=$${RANLIB}" \
13854 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13855 html) \
13856 || exit 1
13857
13858@endif gettext
13859
d32ab992
PB
13860.PHONY: maybe-TAGS-gettext TAGS-gettext
13861maybe-TAGS-gettext:
13862@if gettext
13863maybe-TAGS-gettext: TAGS-gettext
1358ccea 13864
d32ab992 13865TAGS-gettext: \
05750653 13866 configure-gettext
f41d6665 13867 @: $(MAKE); $(unstage)
d32ab992 13868 @[ -f ./gettext/Makefile ] || exit 0; \
8c90b13a
L
13869 r=`${PWD_COMMAND}`; export r; \
13870 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13871 $(HOST_EXPORTS) \
d32ab992 13872 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13873 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13874 done; \
d32ab992 13875 echo "Doing TAGS in gettext" ; \
215c351a 13876 (cd $(HOST_SUBDIR)/gettext && \
1358ccea
NN
13877 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13878 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13879 "RANLIB=$${RANLIB}" \
13880 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13881 TAGS) \
1358ccea
NN
13882 || exit 1
13883
d32ab992 13884@endif gettext
1358ccea 13885
d32ab992
PB
13886.PHONY: maybe-install-info-gettext install-info-gettext
13887maybe-install-info-gettext:
13888@if gettext
13889maybe-install-info-gettext: install-info-gettext
13890
13891install-info-gettext: \
13892 configure-gettext \
05750653 13893 info-gettext
f41d6665 13894 @: $(MAKE); $(unstage)
d32ab992 13895 @[ -f ./gettext/Makefile ] || exit 0; \
8c90b13a
L
13896 r=`${PWD_COMMAND}`; export r; \
13897 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13898 $(HOST_EXPORTS) \
d32ab992 13899 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13900 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13901 done; \
d32ab992 13902 echo "Doing install-info in gettext" ; \
215c351a 13903 (cd $(HOST_SUBDIR)/gettext && \
1358ccea
NN
13904 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13905 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13906 "RANLIB=$${RANLIB}" \
13907 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13908 install-info) \
1358ccea
NN
13909 || exit 1
13910
d32ab992 13911@endif gettext
1358ccea 13912
65d6e994
CD
13913.PHONY: maybe-install-html-gettext install-html-gettext
13914maybe-install-html-gettext:
13915@if gettext
13916maybe-install-html-gettext: install-html-gettext
13917
13918install-html-gettext: \
13919 configure-gettext \
13920 html-gettext
13921 @: $(MAKE); $(unstage)
13922 @[ -f ./gettext/Makefile ] || exit 0; \
13923 r=`${PWD_COMMAND}`; export r; \
13924 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
13925 $(HOST_EXPORTS) \
13926 for flag in $(EXTRA_HOST_FLAGS) ; do \
13927 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13928 done; \
13929 echo "Doing install-html in gettext" ; \
13930 (cd $(HOST_SUBDIR)/gettext && \
13931 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13932 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13933 "RANLIB=$${RANLIB}" \
13934 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
13935 install-html) \
13936 || exit 1
13937
13938@endif gettext
13939
d32ab992
PB
13940.PHONY: maybe-installcheck-gettext installcheck-gettext
13941maybe-installcheck-gettext:
13942@if gettext
13943maybe-installcheck-gettext: installcheck-gettext
1358ccea 13944
d32ab992 13945installcheck-gettext: \
05750653 13946 configure-gettext
f41d6665 13947 @: $(MAKE); $(unstage)
d32ab992 13948 @[ -f ./gettext/Makefile ] || exit 0; \
8c90b13a
L
13949 r=`${PWD_COMMAND}`; export r; \
13950 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13951 $(HOST_EXPORTS) \
d32ab992 13952 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13953 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13954 done; \
d32ab992 13955 echo "Doing installcheck in gettext" ; \
215c351a 13956 (cd $(HOST_SUBDIR)/gettext && \
1358ccea
NN
13957 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13958 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13959 "RANLIB=$${RANLIB}" \
13960 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13961 installcheck) \
1358ccea
NN
13962 || exit 1
13963
d32ab992 13964@endif gettext
1358ccea 13965
d32ab992
PB
13966.PHONY: maybe-mostlyclean-gettext mostlyclean-gettext
13967maybe-mostlyclean-gettext:
13968@if gettext
13969maybe-mostlyclean-gettext: mostlyclean-gettext
1358ccea 13970
05750653 13971mostlyclean-gettext:
f41d6665 13972 @: $(MAKE); $(unstage)
d32ab992 13973 @[ -f ./gettext/Makefile ] || exit 0; \
8c90b13a
L
13974 r=`${PWD_COMMAND}`; export r; \
13975 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 13976 $(HOST_EXPORTS) \
d32ab992 13977 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
13978 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
13979 done; \
d32ab992 13980 echo "Doing mostlyclean in gettext" ; \
215c351a 13981 (cd $(HOST_SUBDIR)/gettext && \
1358ccea
NN
13982 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
13983 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
13984 "RANLIB=$${RANLIB}" \
13985 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 13986 mostlyclean) \
1358ccea
NN
13987 || exit 1
13988
d32ab992 13989@endif gettext
1358ccea 13990
d32ab992
PB
13991.PHONY: maybe-clean-gettext clean-gettext
13992maybe-clean-gettext:
13993@if gettext
13994maybe-clean-gettext: clean-gettext
1358ccea 13995
05750653 13996clean-gettext:
f41d6665 13997 @: $(MAKE); $(unstage)
d32ab992 13998 @[ -f ./gettext/Makefile ] || exit 0; \
8c90b13a
L
13999 r=`${PWD_COMMAND}`; export r; \
14000 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14001 $(HOST_EXPORTS) \
d32ab992 14002 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14003 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14004 done; \
d32ab992 14005 echo "Doing clean in gettext" ; \
215c351a 14006 (cd $(HOST_SUBDIR)/gettext && \
1358ccea
NN
14007 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14008 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14009 "RANLIB=$${RANLIB}" \
14010 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14011 clean) \
1358ccea
NN
14012 || exit 1
14013
d32ab992 14014@endif gettext
1358ccea 14015
d32ab992
PB
14016.PHONY: maybe-distclean-gettext distclean-gettext
14017maybe-distclean-gettext:
14018@if gettext
14019maybe-distclean-gettext: distclean-gettext
1358ccea 14020
05750653 14021distclean-gettext:
f41d6665 14022 @: $(MAKE); $(unstage)
d32ab992 14023 @[ -f ./gettext/Makefile ] || exit 0; \
8c90b13a
L
14024 r=`${PWD_COMMAND}`; export r; \
14025 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14026 $(HOST_EXPORTS) \
d32ab992 14027 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14028 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14029 done; \
d32ab992 14030 echo "Doing distclean in gettext" ; \
215c351a 14031 (cd $(HOST_SUBDIR)/gettext && \
1358ccea
NN
14032 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14033 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14034 "RANLIB=$${RANLIB}" \
14035 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14036 distclean) \
1358ccea
NN
14037 || exit 1
14038
d32ab992 14039@endif gettext
1358ccea 14040
d32ab992
PB
14041.PHONY: maybe-maintainer-clean-gettext maintainer-clean-gettext
14042maybe-maintainer-clean-gettext:
14043@if gettext
14044maybe-maintainer-clean-gettext: maintainer-clean-gettext
1358ccea 14045
05750653 14046maintainer-clean-gettext:
f41d6665 14047 @: $(MAKE); $(unstage)
d32ab992 14048 @[ -f ./gettext/Makefile ] || exit 0; \
8c90b13a
L
14049 r=`${PWD_COMMAND}`; export r; \
14050 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14051 $(HOST_EXPORTS) \
d32ab992 14052 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14053 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14054 done; \
d32ab992 14055 echo "Doing maintainer-clean in gettext" ; \
215c351a 14056 (cd $(HOST_SUBDIR)/gettext && \
1358ccea
NN
14057 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14058 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14059 "RANLIB=$${RANLIB}" \
14060 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14061 maintainer-clean) \
1358ccea
NN
14062 || exit 1
14063
d32ab992 14064@endif gettext
1358ccea 14065
1358ccea 14066
25b42232 14067
d32ab992
PB
14068.PHONY: configure-gnuserv maybe-configure-gnuserv
14069maybe-configure-gnuserv:
3ff3adad
PB
14070@if gcc-bootstrap
14071configure-gnuserv: stage_current
14072@endif gcc-bootstrap
d32ab992
PB
14073@if gnuserv
14074maybe-configure-gnuserv: configure-gnuserv
cc11cc9b 14075configure-gnuserv:
f41d6665 14076 @: $(MAKE); $(unstage)
cc11cc9b 14077 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 14078 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
14079 test ! -f $(HOST_SUBDIR)/gnuserv/Makefile || exit 0; \
14080 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gnuserv ; \
4fc4dd12 14081 $(HOST_EXPORTS) \
25b42232
PB
14082 echo Configuring in $(HOST_SUBDIR)/gnuserv; \
14083 cd "$(HOST_SUBDIR)/gnuserv" || exit 1; \
295f4e42 14084 case $(srcdir) in \
215c351a
PB
14085 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
14086 *) topdir=`echo $(HOST_SUBDIR)/gnuserv/ | \
14087 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 14088 esac; \
215c351a
PB
14089 srcdiroption="--srcdir=$${topdir}/gnuserv"; \
14090 libsrcdir="$$s/gnuserv"; \
295f4e42 14091 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 14092 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 14093 || exit 1
d32ab992 14094@endif gnuserv
1358ccea 14095
25b42232
PB
14096
14097
ce406537
PB
14098
14099
d32ab992
PB
14100.PHONY: all-gnuserv maybe-all-gnuserv
14101maybe-all-gnuserv:
3ff3adad
PB
14102@if gcc-bootstrap
14103all-gnuserv: stage_current
14104@endif gcc-bootstrap
d32ab992 14105@if gnuserv
7e0b5752 14106TARGET-gnuserv=all
d32ab992
PB
14107maybe-all-gnuserv: all-gnuserv
14108all-gnuserv: configure-gnuserv
f41d6665 14109 @: $(MAKE); $(unstage)
295f4e42
NN
14110 @r=`${PWD_COMMAND}`; export r; \
14111 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14112 $(HOST_EXPORTS) \
215c351a
PB
14113 (cd $(HOST_SUBDIR)/gnuserv && \
14114 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-gnuserv))
d32ab992 14115@endif gnuserv
1358ccea 14116
25b42232 14117
ce406537
PB
14118
14119
d32ab992
PB
14120.PHONY: check-gnuserv maybe-check-gnuserv
14121maybe-check-gnuserv:
14122@if gnuserv
14123maybe-check-gnuserv: check-gnuserv
1358ccea 14124
d32ab992 14125check-gnuserv:
f41d6665 14126 @: $(MAKE); $(unstage)
295f4e42 14127 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 14128 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14129 $(HOST_EXPORTS) \
215c351a
PB
14130 (cd $(HOST_SUBDIR)/gnuserv && \
14131 $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 14132
d32ab992 14133@endif gnuserv
1358ccea 14134
d32ab992
PB
14135.PHONY: install-gnuserv maybe-install-gnuserv
14136maybe-install-gnuserv:
14137@if gnuserv
14138maybe-install-gnuserv: install-gnuserv
1358ccea 14139
d32ab992 14140install-gnuserv: installdirs
f41d6665 14141 @: $(MAKE); $(unstage)
295f4e42
NN
14142 @r=`${PWD_COMMAND}`; export r; \
14143 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14144 $(HOST_EXPORTS) \
215c351a 14145 (cd $(HOST_SUBDIR)/gnuserv && \
ace9ac7b 14146 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 14147
d32ab992 14148@endif gnuserv
295f4e42 14149
b5422ad7 14150# Other targets (info, dvi, pdf, etc.)
295f4e42 14151
d32ab992
PB
14152.PHONY: maybe-info-gnuserv info-gnuserv
14153maybe-info-gnuserv:
14154@if gnuserv
14155maybe-info-gnuserv: info-gnuserv
295f4e42 14156
d32ab992 14157info-gnuserv: \
05750653 14158 configure-gnuserv
f41d6665 14159 @: $(MAKE); $(unstage)
d32ab992 14160 @[ -f ./gnuserv/Makefile ] || exit 0; \
8c90b13a
L
14161 r=`${PWD_COMMAND}`; export r; \
14162 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14163 $(HOST_EXPORTS) \
d32ab992 14164 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14165 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14166 done; \
d32ab992 14167 echo "Doing info in gnuserv" ; \
215c351a 14168 (cd $(HOST_SUBDIR)/gnuserv && \
1358ccea
NN
14169 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14170 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14171 "RANLIB=$${RANLIB}" \
14172 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14173 info) \
1358ccea
NN
14174 || exit 1
14175
d32ab992 14176@endif gnuserv
1358ccea 14177
d32ab992
PB
14178.PHONY: maybe-dvi-gnuserv dvi-gnuserv
14179maybe-dvi-gnuserv:
14180@if gnuserv
14181maybe-dvi-gnuserv: dvi-gnuserv
1358ccea 14182
d32ab992 14183dvi-gnuserv: \
05750653 14184 configure-gnuserv
f41d6665 14185 @: $(MAKE); $(unstage)
d32ab992 14186 @[ -f ./gnuserv/Makefile ] || exit 0; \
8c90b13a
L
14187 r=`${PWD_COMMAND}`; export r; \
14188 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14189 $(HOST_EXPORTS) \
d32ab992 14190 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14191 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14192 done; \
d32ab992 14193 echo "Doing dvi in gnuserv" ; \
215c351a 14194 (cd $(HOST_SUBDIR)/gnuserv && \
1358ccea
NN
14195 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14196 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14197 "RANLIB=$${RANLIB}" \
14198 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14199 dvi) \
1358ccea
NN
14200 || exit 1
14201
d32ab992 14202@endif gnuserv
1358ccea 14203
b5422ad7
BM
14204.PHONY: maybe-pdf-gnuserv pdf-gnuserv
14205maybe-pdf-gnuserv:
14206@if gnuserv
14207maybe-pdf-gnuserv: pdf-gnuserv
14208
14209pdf-gnuserv: \
14210 configure-gnuserv
14211 @: $(MAKE); $(unstage)
14212 @[ -f ./gnuserv/Makefile ] || exit 0; \
14213 r=`${PWD_COMMAND}`; export r; \
14214 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14215 $(HOST_EXPORTS) \
14216 for flag in $(EXTRA_HOST_FLAGS) ; do \
14217 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14218 done; \
14219 echo "Doing pdf in gnuserv" ; \
14220 (cd $(HOST_SUBDIR)/gnuserv && \
14221 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14222 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14223 "RANLIB=$${RANLIB}" \
14224 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14225 pdf) \
14226 || exit 1
14227
14228@endif gnuserv
14229
f87a2b2e
MS
14230.PHONY: maybe-html-gnuserv html-gnuserv
14231maybe-html-gnuserv:
14232@if gnuserv
14233maybe-html-gnuserv: html-gnuserv
14234
14235html-gnuserv: \
05750653 14236 configure-gnuserv
f41d6665 14237 @: $(MAKE); $(unstage)
f87a2b2e
MS
14238 @[ -f ./gnuserv/Makefile ] || exit 0; \
14239 r=`${PWD_COMMAND}`; export r; \
14240 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
14241 $(HOST_EXPORTS) \
14242 for flag in $(EXTRA_HOST_FLAGS) ; do \
14243 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14244 done; \
14245 echo "Doing html in gnuserv" ; \
215c351a 14246 (cd $(HOST_SUBDIR)/gnuserv && \
f87a2b2e
MS
14247 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14248 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14249 "RANLIB=$${RANLIB}" \
14250 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14251 html) \
14252 || exit 1
14253
14254@endif gnuserv
14255
d32ab992
PB
14256.PHONY: maybe-TAGS-gnuserv TAGS-gnuserv
14257maybe-TAGS-gnuserv:
14258@if gnuserv
14259maybe-TAGS-gnuserv: TAGS-gnuserv
1358ccea 14260
d32ab992 14261TAGS-gnuserv: \
05750653 14262 configure-gnuserv
f41d6665 14263 @: $(MAKE); $(unstage)
d32ab992 14264 @[ -f ./gnuserv/Makefile ] || exit 0; \
8c90b13a
L
14265 r=`${PWD_COMMAND}`; export r; \
14266 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14267 $(HOST_EXPORTS) \
d32ab992 14268 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14269 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14270 done; \
d32ab992 14271 echo "Doing TAGS in gnuserv" ; \
215c351a 14272 (cd $(HOST_SUBDIR)/gnuserv && \
1358ccea
NN
14273 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14274 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14275 "RANLIB=$${RANLIB}" \
14276 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14277 TAGS) \
1358ccea
NN
14278 || exit 1
14279
d32ab992 14280@endif gnuserv
1358ccea 14281
d32ab992
PB
14282.PHONY: maybe-install-info-gnuserv install-info-gnuserv
14283maybe-install-info-gnuserv:
14284@if gnuserv
14285maybe-install-info-gnuserv: install-info-gnuserv
1358ccea 14286
d32ab992
PB
14287install-info-gnuserv: \
14288 configure-gnuserv \
05750653 14289 info-gnuserv
f41d6665 14290 @: $(MAKE); $(unstage)
d32ab992 14291 @[ -f ./gnuserv/Makefile ] || exit 0; \
8c90b13a
L
14292 r=`${PWD_COMMAND}`; export r; \
14293 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14294 $(HOST_EXPORTS) \
d32ab992 14295 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14296 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14297 done; \
d32ab992 14298 echo "Doing install-info in gnuserv" ; \
215c351a 14299 (cd $(HOST_SUBDIR)/gnuserv && \
1358ccea
NN
14300 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14301 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14302 "RANLIB=$${RANLIB}" \
14303 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14304 install-info) \
1358ccea
NN
14305 || exit 1
14306
d32ab992 14307@endif gnuserv
1358ccea 14308
65d6e994
CD
14309.PHONY: maybe-install-html-gnuserv install-html-gnuserv
14310maybe-install-html-gnuserv:
14311@if gnuserv
14312maybe-install-html-gnuserv: install-html-gnuserv
14313
14314install-html-gnuserv: \
14315 configure-gnuserv \
14316 html-gnuserv
14317 @: $(MAKE); $(unstage)
14318 @[ -f ./gnuserv/Makefile ] || exit 0; \
14319 r=`${PWD_COMMAND}`; export r; \
14320 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14321 $(HOST_EXPORTS) \
14322 for flag in $(EXTRA_HOST_FLAGS) ; do \
14323 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14324 done; \
14325 echo "Doing install-html in gnuserv" ; \
14326 (cd $(HOST_SUBDIR)/gnuserv && \
14327 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14328 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14329 "RANLIB=$${RANLIB}" \
14330 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14331 install-html) \
14332 || exit 1
14333
14334@endif gnuserv
14335
d32ab992
PB
14336.PHONY: maybe-installcheck-gnuserv installcheck-gnuserv
14337maybe-installcheck-gnuserv:
14338@if gnuserv
14339maybe-installcheck-gnuserv: installcheck-gnuserv
1358ccea 14340
d32ab992 14341installcheck-gnuserv: \
05750653 14342 configure-gnuserv
f41d6665 14343 @: $(MAKE); $(unstage)
d32ab992 14344 @[ -f ./gnuserv/Makefile ] || exit 0; \
8c90b13a
L
14345 r=`${PWD_COMMAND}`; export r; \
14346 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14347 $(HOST_EXPORTS) \
d32ab992 14348 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14349 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14350 done; \
d32ab992 14351 echo "Doing installcheck in gnuserv" ; \
215c351a 14352 (cd $(HOST_SUBDIR)/gnuserv && \
1358ccea
NN
14353 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14354 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14355 "RANLIB=$${RANLIB}" \
14356 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14357 installcheck) \
1358ccea
NN
14358 || exit 1
14359
d32ab992 14360@endif gnuserv
1358ccea 14361
d32ab992
PB
14362.PHONY: maybe-mostlyclean-gnuserv mostlyclean-gnuserv
14363maybe-mostlyclean-gnuserv:
14364@if gnuserv
14365maybe-mostlyclean-gnuserv: mostlyclean-gnuserv
1358ccea 14366
05750653 14367mostlyclean-gnuserv:
f41d6665 14368 @: $(MAKE); $(unstage)
d32ab992 14369 @[ -f ./gnuserv/Makefile ] || exit 0; \
8c90b13a
L
14370 r=`${PWD_COMMAND}`; export r; \
14371 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14372 $(HOST_EXPORTS) \
d32ab992 14373 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14374 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14375 done; \
d32ab992 14376 echo "Doing mostlyclean in gnuserv" ; \
215c351a 14377 (cd $(HOST_SUBDIR)/gnuserv && \
1358ccea
NN
14378 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14379 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14380 "RANLIB=$${RANLIB}" \
14381 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14382 mostlyclean) \
1358ccea
NN
14383 || exit 1
14384
d32ab992 14385@endif gnuserv
1358ccea 14386
d32ab992
PB
14387.PHONY: maybe-clean-gnuserv clean-gnuserv
14388maybe-clean-gnuserv:
14389@if gnuserv
14390maybe-clean-gnuserv: clean-gnuserv
1358ccea 14391
05750653 14392clean-gnuserv:
f41d6665 14393 @: $(MAKE); $(unstage)
d32ab992 14394 @[ -f ./gnuserv/Makefile ] || exit 0; \
8c90b13a
L
14395 r=`${PWD_COMMAND}`; export r; \
14396 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14397 $(HOST_EXPORTS) \
d32ab992 14398 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14399 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14400 done; \
d32ab992 14401 echo "Doing clean in gnuserv" ; \
215c351a 14402 (cd $(HOST_SUBDIR)/gnuserv && \
1358ccea
NN
14403 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14404 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14405 "RANLIB=$${RANLIB}" \
14406 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14407 clean) \
1358ccea
NN
14408 || exit 1
14409
d32ab992 14410@endif gnuserv
1358ccea 14411
d32ab992
PB
14412.PHONY: maybe-distclean-gnuserv distclean-gnuserv
14413maybe-distclean-gnuserv:
14414@if gnuserv
14415maybe-distclean-gnuserv: distclean-gnuserv
1358ccea 14416
05750653 14417distclean-gnuserv:
f41d6665 14418 @: $(MAKE); $(unstage)
d32ab992 14419 @[ -f ./gnuserv/Makefile ] || exit 0; \
8c90b13a
L
14420 r=`${PWD_COMMAND}`; export r; \
14421 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14422 $(HOST_EXPORTS) \
d32ab992 14423 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14424 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14425 done; \
d32ab992 14426 echo "Doing distclean in gnuserv" ; \
215c351a 14427 (cd $(HOST_SUBDIR)/gnuserv && \
1358ccea
NN
14428 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14429 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14430 "RANLIB=$${RANLIB}" \
14431 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14432 distclean) \
1358ccea
NN
14433 || exit 1
14434
d32ab992 14435@endif gnuserv
1358ccea 14436
d32ab992
PB
14437.PHONY: maybe-maintainer-clean-gnuserv maintainer-clean-gnuserv
14438maybe-maintainer-clean-gnuserv:
14439@if gnuserv
14440maybe-maintainer-clean-gnuserv: maintainer-clean-gnuserv
1358ccea 14441
05750653 14442maintainer-clean-gnuserv:
f41d6665 14443 @: $(MAKE); $(unstage)
d32ab992 14444 @[ -f ./gnuserv/Makefile ] || exit 0; \
8c90b13a
L
14445 r=`${PWD_COMMAND}`; export r; \
14446 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14447 $(HOST_EXPORTS) \
d32ab992 14448 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14449 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14450 done; \
d32ab992 14451 echo "Doing maintainer-clean in gnuserv" ; \
215c351a 14452 (cd $(HOST_SUBDIR)/gnuserv && \
1358ccea
NN
14453 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14454 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14455 "RANLIB=$${RANLIB}" \
14456 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14457 maintainer-clean) \
1358ccea
NN
14458 || exit 1
14459
d32ab992 14460@endif gnuserv
1358ccea 14461
1358ccea 14462
25b42232 14463
d32ab992
PB
14464.PHONY: configure-gprof maybe-configure-gprof
14465maybe-configure-gprof:
3ff3adad
PB
14466@if gcc-bootstrap
14467configure-gprof: stage_current
14468@endif gcc-bootstrap
d32ab992
PB
14469@if gprof
14470maybe-configure-gprof: configure-gprof
cc11cc9b 14471configure-gprof:
f41d6665 14472 @: $(MAKE); $(unstage)
cc11cc9b 14473 @r=`${PWD_COMMAND}`; export r; \
295f4e42 14474 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
14475 test ! -f $(HOST_SUBDIR)/gprof/Makefile || exit 0; \
14476 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gprof ; \
4fc4dd12 14477 $(HOST_EXPORTS) \
25b42232
PB
14478 echo Configuring in $(HOST_SUBDIR)/gprof; \
14479 cd "$(HOST_SUBDIR)/gprof" || exit 1; \
295f4e42 14480 case $(srcdir) in \
215c351a
PB
14481 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
14482 *) topdir=`echo $(HOST_SUBDIR)/gprof/ | \
14483 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 14484 esac; \
215c351a
PB
14485 srcdiroption="--srcdir=$${topdir}/gprof"; \
14486 libsrcdir="$$s/gprof"; \
295f4e42 14487 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 14488 $(HOST_CONFIGARGS) $${srcdiroption} \
295f4e42 14489 || exit 1
d32ab992 14490@endif gprof
295f4e42 14491
25b42232
PB
14492
14493
ce406537
PB
14494
14495
d32ab992
PB
14496.PHONY: all-gprof maybe-all-gprof
14497maybe-all-gprof:
3ff3adad
PB
14498@if gcc-bootstrap
14499all-gprof: stage_current
14500@endif gcc-bootstrap
d32ab992 14501@if gprof
7e0b5752 14502TARGET-gprof=all
d32ab992
PB
14503maybe-all-gprof: all-gprof
14504all-gprof: configure-gprof
f41d6665 14505 @: $(MAKE); $(unstage)
295f4e42
NN
14506 @r=`${PWD_COMMAND}`; export r; \
14507 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14508 $(HOST_EXPORTS) \
215c351a
PB
14509 (cd $(HOST_SUBDIR)/gprof && \
14510 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-gprof))
d32ab992 14511@endif gprof
295f4e42 14512
25b42232 14513
ce406537
PB
14514
14515
d32ab992
PB
14516.PHONY: check-gprof maybe-check-gprof
14517maybe-check-gprof:
14518@if gprof
14519maybe-check-gprof: check-gprof
295f4e42 14520
d32ab992 14521check-gprof:
f41d6665 14522 @: $(MAKE); $(unstage)
295f4e42
NN
14523 @r=`${PWD_COMMAND}`; export r; \
14524 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14525 $(HOST_EXPORTS) \
215c351a
PB
14526 (cd $(HOST_SUBDIR)/gprof && \
14527 $(MAKE) $(FLAGS_TO_PASS) check)
295f4e42 14528
d32ab992 14529@endif gprof
295f4e42 14530
d32ab992
PB
14531.PHONY: install-gprof maybe-install-gprof
14532maybe-install-gprof:
14533@if gprof
14534maybe-install-gprof: install-gprof
295f4e42 14535
d32ab992 14536install-gprof: installdirs
f41d6665 14537 @: $(MAKE); $(unstage)
295f4e42
NN
14538 @r=`${PWD_COMMAND}`; export r; \
14539 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14540 $(HOST_EXPORTS) \
215c351a 14541 (cd $(HOST_SUBDIR)/gprof && \
ace9ac7b 14542 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 14543
d32ab992 14544@endif gprof
295f4e42 14545
b5422ad7 14546# Other targets (info, dvi, pdf, etc.)
295f4e42 14547
d32ab992
PB
14548.PHONY: maybe-info-gprof info-gprof
14549maybe-info-gprof:
14550@if gprof
14551maybe-info-gprof: info-gprof
295f4e42 14552
d32ab992 14553info-gprof: \
05750653 14554 configure-gprof
f41d6665 14555 @: $(MAKE); $(unstage)
d32ab992 14556 @[ -f ./gprof/Makefile ] || exit 0; \
8c90b13a
L
14557 r=`${PWD_COMMAND}`; export r; \
14558 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14559 $(HOST_EXPORTS) \
d32ab992 14560 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14561 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14562 done; \
d32ab992 14563 echo "Doing info in gprof" ; \
215c351a 14564 (cd $(HOST_SUBDIR)/gprof && \
1358ccea
NN
14565 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14566 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14567 "RANLIB=$${RANLIB}" \
14568 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14569 info) \
1358ccea
NN
14570 || exit 1
14571
d32ab992 14572@endif gprof
1358ccea 14573
d32ab992
PB
14574.PHONY: maybe-dvi-gprof dvi-gprof
14575maybe-dvi-gprof:
14576@if gprof
14577maybe-dvi-gprof: dvi-gprof
1358ccea 14578
d32ab992 14579dvi-gprof: \
05750653 14580 configure-gprof
f41d6665 14581 @: $(MAKE); $(unstage)
d32ab992 14582 @[ -f ./gprof/Makefile ] || exit 0; \
8c90b13a
L
14583 r=`${PWD_COMMAND}`; export r; \
14584 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14585 $(HOST_EXPORTS) \
d32ab992 14586 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14587 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14588 done; \
d32ab992 14589 echo "Doing dvi in gprof" ; \
215c351a 14590 (cd $(HOST_SUBDIR)/gprof && \
1358ccea
NN
14591 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14592 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14593 "RANLIB=$${RANLIB}" \
14594 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14595 dvi) \
1358ccea
NN
14596 || exit 1
14597
d32ab992 14598@endif gprof
1358ccea 14599
b5422ad7
BM
14600.PHONY: maybe-pdf-gprof pdf-gprof
14601maybe-pdf-gprof:
14602@if gprof
14603maybe-pdf-gprof: pdf-gprof
14604
14605pdf-gprof: \
14606 configure-gprof
14607 @: $(MAKE); $(unstage)
14608 @[ -f ./gprof/Makefile ] || exit 0; \
14609 r=`${PWD_COMMAND}`; export r; \
14610 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14611 $(HOST_EXPORTS) \
14612 for flag in $(EXTRA_HOST_FLAGS) ; do \
14613 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14614 done; \
14615 echo "Doing pdf in gprof" ; \
14616 (cd $(HOST_SUBDIR)/gprof && \
14617 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14618 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14619 "RANLIB=$${RANLIB}" \
14620 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14621 pdf) \
14622 || exit 1
14623
14624@endif gprof
14625
f87a2b2e
MS
14626.PHONY: maybe-html-gprof html-gprof
14627maybe-html-gprof:
14628@if gprof
14629maybe-html-gprof: html-gprof
14630
14631html-gprof: \
05750653 14632 configure-gprof
f41d6665 14633 @: $(MAKE); $(unstage)
f87a2b2e
MS
14634 @[ -f ./gprof/Makefile ] || exit 0; \
14635 r=`${PWD_COMMAND}`; export r; \
14636 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
14637 $(HOST_EXPORTS) \
14638 for flag in $(EXTRA_HOST_FLAGS) ; do \
14639 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14640 done; \
14641 echo "Doing html in gprof" ; \
215c351a 14642 (cd $(HOST_SUBDIR)/gprof && \
f87a2b2e
MS
14643 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14644 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14645 "RANLIB=$${RANLIB}" \
14646 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14647 html) \
14648 || exit 1
14649
14650@endif gprof
14651
d32ab992
PB
14652.PHONY: maybe-TAGS-gprof TAGS-gprof
14653maybe-TAGS-gprof:
14654@if gprof
14655maybe-TAGS-gprof: TAGS-gprof
1358ccea 14656
d32ab992 14657TAGS-gprof: \
05750653 14658 configure-gprof
f41d6665 14659 @: $(MAKE); $(unstage)
d32ab992 14660 @[ -f ./gprof/Makefile ] || exit 0; \
8c90b13a
L
14661 r=`${PWD_COMMAND}`; export r; \
14662 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14663 $(HOST_EXPORTS) \
d32ab992 14664 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14665 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14666 done; \
d32ab992 14667 echo "Doing TAGS in gprof" ; \
215c351a 14668 (cd $(HOST_SUBDIR)/gprof && \
1358ccea
NN
14669 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14670 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14671 "RANLIB=$${RANLIB}" \
14672 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14673 TAGS) \
1358ccea
NN
14674 || exit 1
14675
d32ab992 14676@endif gprof
1358ccea 14677
d32ab992
PB
14678.PHONY: maybe-install-info-gprof install-info-gprof
14679maybe-install-info-gprof:
14680@if gprof
14681maybe-install-info-gprof: install-info-gprof
1358ccea 14682
d32ab992
PB
14683install-info-gprof: \
14684 configure-gprof \
05750653 14685 info-gprof
f41d6665 14686 @: $(MAKE); $(unstage)
d32ab992 14687 @[ -f ./gprof/Makefile ] || exit 0; \
8c90b13a
L
14688 r=`${PWD_COMMAND}`; export r; \
14689 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14690 $(HOST_EXPORTS) \
d32ab992 14691 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14692 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14693 done; \
d32ab992 14694 echo "Doing install-info in gprof" ; \
215c351a 14695 (cd $(HOST_SUBDIR)/gprof && \
1358ccea
NN
14696 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14697 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14698 "RANLIB=$${RANLIB}" \
14699 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14700 install-info) \
1358ccea
NN
14701 || exit 1
14702
d32ab992 14703@endif gprof
1358ccea 14704
65d6e994
CD
14705.PHONY: maybe-install-html-gprof install-html-gprof
14706maybe-install-html-gprof:
14707@if gprof
14708maybe-install-html-gprof: install-html-gprof
14709
14710install-html-gprof: \
14711 configure-gprof \
14712 html-gprof
14713 @: $(MAKE); $(unstage)
14714 @[ -f ./gprof/Makefile ] || exit 0; \
14715 r=`${PWD_COMMAND}`; export r; \
14716 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
14717 $(HOST_EXPORTS) \
14718 for flag in $(EXTRA_HOST_FLAGS) ; do \
14719 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14720 done; \
14721 echo "Doing install-html in gprof" ; \
14722 (cd $(HOST_SUBDIR)/gprof && \
14723 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14724 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14725 "RANLIB=$${RANLIB}" \
14726 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
14727 install-html) \
14728 || exit 1
14729
14730@endif gprof
14731
d32ab992
PB
14732.PHONY: maybe-installcheck-gprof installcheck-gprof
14733maybe-installcheck-gprof:
14734@if gprof
14735maybe-installcheck-gprof: installcheck-gprof
1358ccea 14736
d32ab992 14737installcheck-gprof: \
05750653 14738 configure-gprof
f41d6665 14739 @: $(MAKE); $(unstage)
d32ab992 14740 @[ -f ./gprof/Makefile ] || exit 0; \
8c90b13a
L
14741 r=`${PWD_COMMAND}`; export r; \
14742 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14743 $(HOST_EXPORTS) \
d32ab992 14744 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14745 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14746 done; \
d32ab992 14747 echo "Doing installcheck in gprof" ; \
215c351a 14748 (cd $(HOST_SUBDIR)/gprof && \
1358ccea
NN
14749 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14750 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14751 "RANLIB=$${RANLIB}" \
14752 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14753 installcheck) \
1358ccea
NN
14754 || exit 1
14755
d32ab992 14756@endif gprof
1358ccea 14757
d32ab992
PB
14758.PHONY: maybe-mostlyclean-gprof mostlyclean-gprof
14759maybe-mostlyclean-gprof:
14760@if gprof
14761maybe-mostlyclean-gprof: mostlyclean-gprof
1358ccea 14762
05750653 14763mostlyclean-gprof:
f41d6665 14764 @: $(MAKE); $(unstage)
d32ab992 14765 @[ -f ./gprof/Makefile ] || exit 0; \
8c90b13a
L
14766 r=`${PWD_COMMAND}`; export r; \
14767 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14768 $(HOST_EXPORTS) \
d32ab992 14769 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14770 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14771 done; \
d32ab992 14772 echo "Doing mostlyclean in gprof" ; \
215c351a 14773 (cd $(HOST_SUBDIR)/gprof && \
1358ccea
NN
14774 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14775 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14776 "RANLIB=$${RANLIB}" \
14777 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14778 mostlyclean) \
1358ccea
NN
14779 || exit 1
14780
d32ab992 14781@endif gprof
1358ccea 14782
d32ab992
PB
14783.PHONY: maybe-clean-gprof clean-gprof
14784maybe-clean-gprof:
14785@if gprof
14786maybe-clean-gprof: clean-gprof
1358ccea 14787
05750653 14788clean-gprof:
f41d6665 14789 @: $(MAKE); $(unstage)
d32ab992 14790 @[ -f ./gprof/Makefile ] || exit 0; \
8c90b13a
L
14791 r=`${PWD_COMMAND}`; export r; \
14792 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14793 $(HOST_EXPORTS) \
d32ab992 14794 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14795 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14796 done; \
d32ab992 14797 echo "Doing clean in gprof" ; \
215c351a 14798 (cd $(HOST_SUBDIR)/gprof && \
1358ccea
NN
14799 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14800 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14801 "RANLIB=$${RANLIB}" \
14802 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14803 clean) \
1358ccea
NN
14804 || exit 1
14805
d32ab992 14806@endif gprof
1358ccea 14807
d32ab992
PB
14808.PHONY: maybe-distclean-gprof distclean-gprof
14809maybe-distclean-gprof:
14810@if gprof
14811maybe-distclean-gprof: distclean-gprof
1358ccea 14812
05750653 14813distclean-gprof:
f41d6665 14814 @: $(MAKE); $(unstage)
d32ab992 14815 @[ -f ./gprof/Makefile ] || exit 0; \
8c90b13a
L
14816 r=`${PWD_COMMAND}`; export r; \
14817 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14818 $(HOST_EXPORTS) \
d32ab992 14819 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14820 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14821 done; \
d32ab992 14822 echo "Doing distclean in gprof" ; \
215c351a 14823 (cd $(HOST_SUBDIR)/gprof && \
1358ccea
NN
14824 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14825 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14826 "RANLIB=$${RANLIB}" \
14827 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14828 distclean) \
1358ccea
NN
14829 || exit 1
14830
d32ab992 14831@endif gprof
1358ccea 14832
d32ab992
PB
14833.PHONY: maybe-maintainer-clean-gprof maintainer-clean-gprof
14834maybe-maintainer-clean-gprof:
14835@if gprof
14836maybe-maintainer-clean-gprof: maintainer-clean-gprof
1358ccea 14837
05750653 14838maintainer-clean-gprof:
f41d6665 14839 @: $(MAKE); $(unstage)
d32ab992 14840 @[ -f ./gprof/Makefile ] || exit 0; \
8c90b13a
L
14841 r=`${PWD_COMMAND}`; export r; \
14842 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14843 $(HOST_EXPORTS) \
d32ab992 14844 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14845 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14846 done; \
d32ab992 14847 echo "Doing maintainer-clean in gprof" ; \
215c351a 14848 (cd $(HOST_SUBDIR)/gprof && \
1358ccea
NN
14849 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14850 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14851 "RANLIB=$${RANLIB}" \
14852 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14853 maintainer-clean) \
1358ccea
NN
14854 || exit 1
14855
d32ab992 14856@endif gprof
1358ccea 14857
1358ccea 14858
25b42232 14859
d32ab992
PB
14860.PHONY: configure-gzip maybe-configure-gzip
14861maybe-configure-gzip:
3ff3adad
PB
14862@if gcc-bootstrap
14863configure-gzip: stage_current
14864@endif gcc-bootstrap
d32ab992
PB
14865@if gzip
14866maybe-configure-gzip: configure-gzip
cc11cc9b 14867configure-gzip:
f41d6665 14868 @: $(MAKE); $(unstage)
cc11cc9b 14869 @r=`${PWD_COMMAND}`; export r; \
295f4e42 14870 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
14871 test ! -f $(HOST_SUBDIR)/gzip/Makefile || exit 0; \
14872 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gzip ; \
4fc4dd12 14873 $(HOST_EXPORTS) \
25b42232
PB
14874 echo Configuring in $(HOST_SUBDIR)/gzip; \
14875 cd "$(HOST_SUBDIR)/gzip" || exit 1; \
295f4e42 14876 case $(srcdir) in \
215c351a
PB
14877 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
14878 *) topdir=`echo $(HOST_SUBDIR)/gzip/ | \
14879 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 14880 esac; \
215c351a
PB
14881 srcdiroption="--srcdir=$${topdir}/gzip"; \
14882 libsrcdir="$$s/gzip"; \
295f4e42 14883 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 14884 $(HOST_CONFIGARGS) $${srcdiroption} \
295f4e42 14885 || exit 1
d32ab992 14886@endif gzip
295f4e42 14887
25b42232
PB
14888
14889
ce406537
PB
14890
14891
d32ab992
PB
14892.PHONY: all-gzip maybe-all-gzip
14893maybe-all-gzip:
3ff3adad
PB
14894@if gcc-bootstrap
14895all-gzip: stage_current
14896@endif gcc-bootstrap
d32ab992 14897@if gzip
7e0b5752 14898TARGET-gzip=all
d32ab992
PB
14899maybe-all-gzip: all-gzip
14900all-gzip: configure-gzip
f41d6665 14901 @: $(MAKE); $(unstage)
295f4e42
NN
14902 @r=`${PWD_COMMAND}`; export r; \
14903 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14904 $(HOST_EXPORTS) \
215c351a
PB
14905 (cd $(HOST_SUBDIR)/gzip && \
14906 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-gzip))
d32ab992 14907@endif gzip
295f4e42 14908
25b42232 14909
ce406537
PB
14910
14911
d32ab992
PB
14912.PHONY: check-gzip maybe-check-gzip
14913maybe-check-gzip:
14914@if gzip
14915maybe-check-gzip: check-gzip
295f4e42 14916
d32ab992 14917check-gzip:
f41d6665 14918 @: $(MAKE); $(unstage)
295f4e42
NN
14919 @r=`${PWD_COMMAND}`; export r; \
14920 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14921 $(HOST_EXPORTS) \
215c351a
PB
14922 (cd $(HOST_SUBDIR)/gzip && \
14923 $(MAKE) $(FLAGS_TO_PASS) check)
295f4e42 14924
d32ab992 14925@endif gzip
295f4e42 14926
d32ab992
PB
14927.PHONY: install-gzip maybe-install-gzip
14928maybe-install-gzip:
14929@if gzip
14930maybe-install-gzip: install-gzip
295f4e42 14931
d32ab992 14932install-gzip: installdirs
f41d6665 14933 @: $(MAKE); $(unstage)
295f4e42
NN
14934 @r=`${PWD_COMMAND}`; export r; \
14935 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14936 $(HOST_EXPORTS) \
215c351a 14937 (cd $(HOST_SUBDIR)/gzip && \
ace9ac7b 14938 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 14939
d32ab992 14940@endif gzip
295f4e42 14941
b5422ad7 14942# Other targets (info, dvi, pdf, etc.)
295f4e42 14943
d32ab992
PB
14944.PHONY: maybe-info-gzip info-gzip
14945maybe-info-gzip:
14946@if gzip
14947maybe-info-gzip: info-gzip
295f4e42 14948
d32ab992 14949info-gzip: \
05750653 14950 configure-gzip
f41d6665 14951 @: $(MAKE); $(unstage)
d32ab992 14952 @[ -f ./gzip/Makefile ] || exit 0; \
8c90b13a
L
14953 r=`${PWD_COMMAND}`; export r; \
14954 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14955 $(HOST_EXPORTS) \
d32ab992 14956 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14957 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14958 done; \
d32ab992 14959 echo "Doing info in gzip" ; \
215c351a 14960 (cd $(HOST_SUBDIR)/gzip && \
1358ccea
NN
14961 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14962 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14963 "RANLIB=$${RANLIB}" \
14964 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14965 info) \
1358ccea
NN
14966 || exit 1
14967
d32ab992 14968@endif gzip
1358ccea 14969
d32ab992
PB
14970.PHONY: maybe-dvi-gzip dvi-gzip
14971maybe-dvi-gzip:
14972@if gzip
14973maybe-dvi-gzip: dvi-gzip
1358ccea 14974
d32ab992 14975dvi-gzip: \
05750653 14976 configure-gzip
f41d6665 14977 @: $(MAKE); $(unstage)
d32ab992 14978 @[ -f ./gzip/Makefile ] || exit 0; \
8c90b13a
L
14979 r=`${PWD_COMMAND}`; export r; \
14980 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 14981 $(HOST_EXPORTS) \
d32ab992 14982 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
14983 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
14984 done; \
d32ab992 14985 echo "Doing dvi in gzip" ; \
215c351a 14986 (cd $(HOST_SUBDIR)/gzip && \
1358ccea
NN
14987 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
14988 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
14989 "RANLIB=$${RANLIB}" \
14990 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 14991 dvi) \
1358ccea
NN
14992 || exit 1
14993
d32ab992 14994@endif gzip
1358ccea 14995
b5422ad7
BM
14996.PHONY: maybe-pdf-gzip pdf-gzip
14997maybe-pdf-gzip:
14998@if gzip
14999maybe-pdf-gzip: pdf-gzip
15000
15001pdf-gzip: \
15002 configure-gzip
15003 @: $(MAKE); $(unstage)
15004 @[ -f ./gzip/Makefile ] || exit 0; \
15005 r=`${PWD_COMMAND}`; export r; \
15006 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15007 $(HOST_EXPORTS) \
15008 for flag in $(EXTRA_HOST_FLAGS) ; do \
15009 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15010 done; \
15011 echo "Doing pdf in gzip" ; \
15012 (cd $(HOST_SUBDIR)/gzip && \
15013 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15014 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15015 "RANLIB=$${RANLIB}" \
15016 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15017 pdf) \
15018 || exit 1
15019
15020@endif gzip
15021
f87a2b2e
MS
15022.PHONY: maybe-html-gzip html-gzip
15023maybe-html-gzip:
15024@if gzip
15025maybe-html-gzip: html-gzip
15026
15027html-gzip: \
05750653 15028 configure-gzip
f41d6665 15029 @: $(MAKE); $(unstage)
f87a2b2e
MS
15030 @[ -f ./gzip/Makefile ] || exit 0; \
15031 r=`${PWD_COMMAND}`; export r; \
15032 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
15033 $(HOST_EXPORTS) \
15034 for flag in $(EXTRA_HOST_FLAGS) ; do \
15035 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15036 done; \
15037 echo "Doing html in gzip" ; \
215c351a 15038 (cd $(HOST_SUBDIR)/gzip && \
f87a2b2e
MS
15039 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15040 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15041 "RANLIB=$${RANLIB}" \
15042 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15043 html) \
15044 || exit 1
15045
15046@endif gzip
15047
d32ab992
PB
15048.PHONY: maybe-TAGS-gzip TAGS-gzip
15049maybe-TAGS-gzip:
15050@if gzip
15051maybe-TAGS-gzip: TAGS-gzip
1358ccea 15052
d32ab992 15053TAGS-gzip: \
05750653 15054 configure-gzip
f41d6665 15055 @: $(MAKE); $(unstage)
d32ab992 15056 @[ -f ./gzip/Makefile ] || exit 0; \
8c90b13a
L
15057 r=`${PWD_COMMAND}`; export r; \
15058 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15059 $(HOST_EXPORTS) \
d32ab992 15060 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
15061 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15062 done; \
d32ab992 15063 echo "Doing TAGS in gzip" ; \
215c351a 15064 (cd $(HOST_SUBDIR)/gzip && \
1358ccea
NN
15065 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15066 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15067 "RANLIB=$${RANLIB}" \
15068 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15069 TAGS) \
1358ccea
NN
15070 || exit 1
15071
d32ab992 15072@endif gzip
1358ccea 15073
d32ab992
PB
15074.PHONY: maybe-install-info-gzip install-info-gzip
15075maybe-install-info-gzip:
15076@if gzip
15077maybe-install-info-gzip: install-info-gzip
1358ccea 15078
d32ab992
PB
15079install-info-gzip: \
15080 configure-gzip \
05750653 15081 info-gzip
f41d6665 15082 @: $(MAKE); $(unstage)
d32ab992 15083 @[ -f ./gzip/Makefile ] || exit 0; \
8c90b13a
L
15084 r=`${PWD_COMMAND}`; export r; \
15085 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15086 $(HOST_EXPORTS) \
d32ab992 15087 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
15088 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15089 done; \
d32ab992 15090 echo "Doing install-info in gzip" ; \
215c351a 15091 (cd $(HOST_SUBDIR)/gzip && \
1358ccea
NN
15092 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15093 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15094 "RANLIB=$${RANLIB}" \
15095 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15096 install-info) \
1358ccea
NN
15097 || exit 1
15098
d32ab992 15099@endif gzip
1358ccea 15100
65d6e994
CD
15101.PHONY: maybe-install-html-gzip install-html-gzip
15102maybe-install-html-gzip:
15103@if gzip
15104maybe-install-html-gzip: install-html-gzip
15105
15106install-html-gzip: \
15107 configure-gzip \
15108 html-gzip
15109 @: $(MAKE); $(unstage)
15110 @[ -f ./gzip/Makefile ] || exit 0; \
15111 r=`${PWD_COMMAND}`; export r; \
15112 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15113 $(HOST_EXPORTS) \
15114 for flag in $(EXTRA_HOST_FLAGS) ; do \
15115 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15116 done; \
15117 echo "Doing install-html in gzip" ; \
15118 (cd $(HOST_SUBDIR)/gzip && \
15119 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15120 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15121 "RANLIB=$${RANLIB}" \
15122 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15123 install-html) \
15124 || exit 1
15125
15126@endif gzip
15127
d32ab992
PB
15128.PHONY: maybe-installcheck-gzip installcheck-gzip
15129maybe-installcheck-gzip:
15130@if gzip
15131maybe-installcheck-gzip: installcheck-gzip
1358ccea 15132
d32ab992 15133installcheck-gzip: \
05750653 15134 configure-gzip
f41d6665 15135 @: $(MAKE); $(unstage)
d32ab992 15136 @[ -f ./gzip/Makefile ] || exit 0; \
8c90b13a
L
15137 r=`${PWD_COMMAND}`; export r; \
15138 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15139 $(HOST_EXPORTS) \
d32ab992 15140 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
15141 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15142 done; \
d32ab992 15143 echo "Doing installcheck in gzip" ; \
215c351a 15144 (cd $(HOST_SUBDIR)/gzip && \
1358ccea
NN
15145 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15146 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15147 "RANLIB=$${RANLIB}" \
15148 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15149 installcheck) \
1358ccea
NN
15150 || exit 1
15151
d32ab992 15152@endif gzip
1358ccea 15153
d32ab992
PB
15154.PHONY: maybe-mostlyclean-gzip mostlyclean-gzip
15155maybe-mostlyclean-gzip:
15156@if gzip
15157maybe-mostlyclean-gzip: mostlyclean-gzip
1358ccea 15158
05750653 15159mostlyclean-gzip:
f41d6665 15160 @: $(MAKE); $(unstage)
d32ab992 15161 @[ -f ./gzip/Makefile ] || exit 0; \
8c90b13a
L
15162 r=`${PWD_COMMAND}`; export r; \
15163 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15164 $(HOST_EXPORTS) \
d32ab992 15165 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
15166 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15167 done; \
d32ab992 15168 echo "Doing mostlyclean in gzip" ; \
215c351a 15169 (cd $(HOST_SUBDIR)/gzip && \
1358ccea
NN
15170 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15171 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15172 "RANLIB=$${RANLIB}" \
15173 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15174 mostlyclean) \
1358ccea
NN
15175 || exit 1
15176
d32ab992 15177@endif gzip
1358ccea 15178
d32ab992
PB
15179.PHONY: maybe-clean-gzip clean-gzip
15180maybe-clean-gzip:
15181@if gzip
15182maybe-clean-gzip: clean-gzip
1358ccea 15183
05750653 15184clean-gzip:
f41d6665 15185 @: $(MAKE); $(unstage)
d32ab992 15186 @[ -f ./gzip/Makefile ] || exit 0; \
8c90b13a
L
15187 r=`${PWD_COMMAND}`; export r; \
15188 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15189 $(HOST_EXPORTS) \
d32ab992 15190 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
15191 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15192 done; \
d32ab992 15193 echo "Doing clean in gzip" ; \
215c351a 15194 (cd $(HOST_SUBDIR)/gzip && \
1358ccea
NN
15195 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15196 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15197 "RANLIB=$${RANLIB}" \
15198 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15199 clean) \
1358ccea
NN
15200 || exit 1
15201
d32ab992 15202@endif gzip
1358ccea 15203
d32ab992
PB
15204.PHONY: maybe-distclean-gzip distclean-gzip
15205maybe-distclean-gzip:
15206@if gzip
15207maybe-distclean-gzip: distclean-gzip
1358ccea 15208
05750653 15209distclean-gzip:
f41d6665 15210 @: $(MAKE); $(unstage)
d32ab992 15211 @[ -f ./gzip/Makefile ] || exit 0; \
8c90b13a
L
15212 r=`${PWD_COMMAND}`; export r; \
15213 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15214 $(HOST_EXPORTS) \
d32ab992 15215 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
15216 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15217 done; \
d32ab992 15218 echo "Doing distclean in gzip" ; \
215c351a 15219 (cd $(HOST_SUBDIR)/gzip && \
1358ccea
NN
15220 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15221 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15222 "RANLIB=$${RANLIB}" \
15223 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15224 distclean) \
1358ccea
NN
15225 || exit 1
15226
d32ab992 15227@endif gzip
1358ccea 15228
d32ab992
PB
15229.PHONY: maybe-maintainer-clean-gzip maintainer-clean-gzip
15230maybe-maintainer-clean-gzip:
15231@if gzip
15232maybe-maintainer-clean-gzip: maintainer-clean-gzip
1358ccea 15233
05750653 15234maintainer-clean-gzip:
f41d6665 15235 @: $(MAKE); $(unstage)
d32ab992 15236 @[ -f ./gzip/Makefile ] || exit 0; \
8c90b13a
L
15237 r=`${PWD_COMMAND}`; export r; \
15238 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15239 $(HOST_EXPORTS) \
d32ab992 15240 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
15241 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15242 done; \
d32ab992 15243 echo "Doing maintainer-clean in gzip" ; \
215c351a 15244 (cd $(HOST_SUBDIR)/gzip && \
1358ccea
NN
15245 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15246 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15247 "RANLIB=$${RANLIB}" \
15248 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15249 maintainer-clean) \
295f4e42
NN
15250 || exit 1
15251
d32ab992 15252@endif gzip
295f4e42
NN
15253
15254
25b42232 15255
d32ab992
PB
15256.PHONY: configure-hello maybe-configure-hello
15257maybe-configure-hello:
3ff3adad
PB
15258@if gcc-bootstrap
15259configure-hello: stage_current
15260@endif gcc-bootstrap
d32ab992
PB
15261@if hello
15262maybe-configure-hello: configure-hello
cc11cc9b 15263configure-hello:
f41d6665 15264 @: $(MAKE); $(unstage)
cc11cc9b 15265 @r=`${PWD_COMMAND}`; export r; \
295f4e42 15266 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
15267 test ! -f $(HOST_SUBDIR)/hello/Makefile || exit 0; \
15268 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/hello ; \
4fc4dd12 15269 $(HOST_EXPORTS) \
25b42232
PB
15270 echo Configuring in $(HOST_SUBDIR)/hello; \
15271 cd "$(HOST_SUBDIR)/hello" || exit 1; \
295f4e42 15272 case $(srcdir) in \
215c351a
PB
15273 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15274 *) topdir=`echo $(HOST_SUBDIR)/hello/ | \
15275 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 15276 esac; \
215c351a
PB
15277 srcdiroption="--srcdir=$${topdir}/hello"; \
15278 libsrcdir="$$s/hello"; \
295f4e42 15279 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 15280 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 15281 || exit 1
d32ab992 15282@endif hello
1358ccea 15283
25b42232
PB
15284
15285
ce406537
PB
15286
15287
d32ab992
PB
15288.PHONY: all-hello maybe-all-hello
15289maybe-all-hello:
3ff3adad
PB
15290@if gcc-bootstrap
15291all-hello: stage_current
15292@endif gcc-bootstrap
d32ab992 15293@if hello
7e0b5752 15294TARGET-hello=all
d32ab992
PB
15295maybe-all-hello: all-hello
15296all-hello: configure-hello
f41d6665 15297 @: $(MAKE); $(unstage)
295f4e42 15298 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 15299 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15300 $(HOST_EXPORTS) \
215c351a
PB
15301 (cd $(HOST_SUBDIR)/hello && \
15302 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-hello))
d32ab992 15303@endif hello
1358ccea 15304
25b42232 15305
ce406537
PB
15306
15307
d32ab992
PB
15308.PHONY: check-hello maybe-check-hello
15309maybe-check-hello:
15310@if hello
15311maybe-check-hello: check-hello
1358ccea 15312
d32ab992 15313check-hello:
f41d6665 15314 @: $(MAKE); $(unstage)
295f4e42 15315 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 15316 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15317 $(HOST_EXPORTS) \
215c351a
PB
15318 (cd $(HOST_SUBDIR)/hello && \
15319 $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 15320
d32ab992 15321@endif hello
1358ccea 15322
d32ab992
PB
15323.PHONY: install-hello maybe-install-hello
15324maybe-install-hello:
15325@if hello
15326maybe-install-hello: install-hello
1358ccea 15327
d32ab992 15328install-hello: installdirs
f41d6665 15329 @: $(MAKE); $(unstage)
295f4e42 15330 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 15331 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15332 $(HOST_EXPORTS) \
215c351a 15333 (cd $(HOST_SUBDIR)/hello && \
ace9ac7b 15334 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 15335
d32ab992 15336@endif hello
1358ccea 15337
b5422ad7 15338# Other targets (info, dvi, pdf, etc.)
1358ccea 15339
d32ab992
PB
15340.PHONY: maybe-info-hello info-hello
15341maybe-info-hello:
15342@if hello
15343maybe-info-hello: info-hello
295f4e42 15344
d32ab992 15345info-hello: \
05750653 15346 configure-hello
f41d6665 15347 @: $(MAKE); $(unstage)
d32ab992 15348 @[ -f ./hello/Makefile ] || exit 0; \
8c90b13a
L
15349 r=`${PWD_COMMAND}`; export r; \
15350 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15351 $(HOST_EXPORTS) \
d32ab992 15352 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
15353 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15354 done; \
d32ab992 15355 echo "Doing info in hello" ; \
215c351a 15356 (cd $(HOST_SUBDIR)/hello && \
1358ccea
NN
15357 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15358 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15359 "RANLIB=$${RANLIB}" \
15360 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15361 info) \
1358ccea
NN
15362 || exit 1
15363
d32ab992 15364@endif hello
1358ccea 15365
d32ab992
PB
15366.PHONY: maybe-dvi-hello dvi-hello
15367maybe-dvi-hello:
15368@if hello
15369maybe-dvi-hello: dvi-hello
1358ccea 15370
d32ab992 15371dvi-hello: \
05750653 15372 configure-hello
f41d6665 15373 @: $(MAKE); $(unstage)
d32ab992 15374 @[ -f ./hello/Makefile ] || exit 0; \
8c90b13a
L
15375 r=`${PWD_COMMAND}`; export r; \
15376 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15377 $(HOST_EXPORTS) \
d32ab992 15378 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
15379 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15380 done; \
d32ab992 15381 echo "Doing dvi in hello" ; \
215c351a 15382 (cd $(HOST_SUBDIR)/hello && \
1358ccea
NN
15383 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15384 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15385 "RANLIB=$${RANLIB}" \
15386 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15387 dvi) \
1358ccea
NN
15388 || exit 1
15389
d32ab992 15390@endif hello
1358ccea 15391
b5422ad7
BM
15392.PHONY: maybe-pdf-hello pdf-hello
15393maybe-pdf-hello:
15394@if hello
15395maybe-pdf-hello: pdf-hello
15396
15397pdf-hello: \
15398 configure-hello
15399 @: $(MAKE); $(unstage)
15400 @[ -f ./hello/Makefile ] || exit 0; \
15401 r=`${PWD_COMMAND}`; export r; \
15402 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15403 $(HOST_EXPORTS) \
15404 for flag in $(EXTRA_HOST_FLAGS) ; do \
15405 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15406 done; \
15407 echo "Doing pdf in hello" ; \
15408 (cd $(HOST_SUBDIR)/hello && \
15409 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15410 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15411 "RANLIB=$${RANLIB}" \
15412 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15413 pdf) \
15414 || exit 1
15415
15416@endif hello
15417
f87a2b2e
MS
15418.PHONY: maybe-html-hello html-hello
15419maybe-html-hello:
15420@if hello
15421maybe-html-hello: html-hello
15422
15423html-hello: \
05750653 15424 configure-hello
f41d6665 15425 @: $(MAKE); $(unstage)
f87a2b2e
MS
15426 @[ -f ./hello/Makefile ] || exit 0; \
15427 r=`${PWD_COMMAND}`; export r; \
15428 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
15429 $(HOST_EXPORTS) \
15430 for flag in $(EXTRA_HOST_FLAGS) ; do \
15431 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15432 done; \
15433 echo "Doing html in hello" ; \
215c351a 15434 (cd $(HOST_SUBDIR)/hello && \
f87a2b2e
MS
15435 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15436 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15437 "RANLIB=$${RANLIB}" \
15438 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15439 html) \
15440 || exit 1
15441
15442@endif hello
15443
d32ab992
PB
15444.PHONY: maybe-TAGS-hello TAGS-hello
15445maybe-TAGS-hello:
15446@if hello
15447maybe-TAGS-hello: TAGS-hello
1358ccea 15448
d32ab992 15449TAGS-hello: \
05750653 15450 configure-hello
f41d6665 15451 @: $(MAKE); $(unstage)
d32ab992 15452 @[ -f ./hello/Makefile ] || exit 0; \
8c90b13a
L
15453 r=`${PWD_COMMAND}`; export r; \
15454 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15455 $(HOST_EXPORTS) \
d32ab992 15456 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
15457 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15458 done; \
d32ab992 15459 echo "Doing TAGS in hello" ; \
215c351a 15460 (cd $(HOST_SUBDIR)/hello && \
1358ccea
NN
15461 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15462 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15463 "RANLIB=$${RANLIB}" \
15464 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15465 TAGS) \
1358ccea
NN
15466 || exit 1
15467
d32ab992 15468@endif hello
1358ccea 15469
d32ab992
PB
15470.PHONY: maybe-install-info-hello install-info-hello
15471maybe-install-info-hello:
15472@if hello
15473maybe-install-info-hello: install-info-hello
1358ccea 15474
d32ab992
PB
15475install-info-hello: \
15476 configure-hello \
05750653 15477 info-hello
f41d6665 15478 @: $(MAKE); $(unstage)
d32ab992 15479 @[ -f ./hello/Makefile ] || exit 0; \
8c90b13a
L
15480 r=`${PWD_COMMAND}`; export r; \
15481 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15482 $(HOST_EXPORTS) \
d32ab992 15483 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
15484 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15485 done; \
d32ab992 15486 echo "Doing install-info in hello" ; \
215c351a 15487 (cd $(HOST_SUBDIR)/hello && \
1358ccea
NN
15488 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15489 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15490 "RANLIB=$${RANLIB}" \
15491 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15492 install-info) \
1358ccea
NN
15493 || exit 1
15494
d32ab992 15495@endif hello
1358ccea 15496
65d6e994
CD
15497.PHONY: maybe-install-html-hello install-html-hello
15498maybe-install-html-hello:
15499@if hello
15500maybe-install-html-hello: install-html-hello
15501
15502install-html-hello: \
15503 configure-hello \
15504 html-hello
15505 @: $(MAKE); $(unstage)
15506 @[ -f ./hello/Makefile ] || exit 0; \
15507 r=`${PWD_COMMAND}`; export r; \
15508 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15509 $(HOST_EXPORTS) \
15510 for flag in $(EXTRA_HOST_FLAGS) ; do \
15511 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15512 done; \
15513 echo "Doing install-html in hello" ; \
15514 (cd $(HOST_SUBDIR)/hello && \
15515 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15516 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15517 "RANLIB=$${RANLIB}" \
15518 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15519 install-html) \
15520 || exit 1
15521
15522@endif hello
15523
d32ab992
PB
15524.PHONY: maybe-installcheck-hello installcheck-hello
15525maybe-installcheck-hello:
15526@if hello
15527maybe-installcheck-hello: installcheck-hello
1358ccea 15528
d32ab992 15529installcheck-hello: \
05750653 15530 configure-hello
f41d6665 15531 @: $(MAKE); $(unstage)
d32ab992 15532 @[ -f ./hello/Makefile ] || exit 0; \
8c90b13a
L
15533 r=`${PWD_COMMAND}`; export r; \
15534 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15535 $(HOST_EXPORTS) \
d32ab992 15536 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
15537 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15538 done; \
d32ab992 15539 echo "Doing installcheck in hello" ; \
215c351a 15540 (cd $(HOST_SUBDIR)/hello && \
1358ccea
NN
15541 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15542 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15543 "RANLIB=$${RANLIB}" \
15544 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15545 installcheck) \
1358ccea
NN
15546 || exit 1
15547
d32ab992 15548@endif hello
1358ccea 15549
d32ab992
PB
15550.PHONY: maybe-mostlyclean-hello mostlyclean-hello
15551maybe-mostlyclean-hello:
15552@if hello
15553maybe-mostlyclean-hello: mostlyclean-hello
1358ccea 15554
05750653 15555mostlyclean-hello:
f41d6665 15556 @: $(MAKE); $(unstage)
d32ab992 15557 @[ -f ./hello/Makefile ] || exit 0; \
8c90b13a
L
15558 r=`${PWD_COMMAND}`; export r; \
15559 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15560 $(HOST_EXPORTS) \
d32ab992 15561 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
15562 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15563 done; \
d32ab992 15564 echo "Doing mostlyclean in hello" ; \
215c351a 15565 (cd $(HOST_SUBDIR)/hello && \
1358ccea
NN
15566 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15567 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15568 "RANLIB=$${RANLIB}" \
15569 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15570 mostlyclean) \
1358ccea
NN
15571 || exit 1
15572
d32ab992 15573@endif hello
1358ccea 15574
d32ab992
PB
15575.PHONY: maybe-clean-hello clean-hello
15576maybe-clean-hello:
15577@if hello
15578maybe-clean-hello: clean-hello
1358ccea 15579
05750653 15580clean-hello:
f41d6665 15581 @: $(MAKE); $(unstage)
d32ab992 15582 @[ -f ./hello/Makefile ] || exit 0; \
8c90b13a
L
15583 r=`${PWD_COMMAND}`; export r; \
15584 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15585 $(HOST_EXPORTS) \
d32ab992 15586 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
15587 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15588 done; \
d32ab992 15589 echo "Doing clean in hello" ; \
215c351a 15590 (cd $(HOST_SUBDIR)/hello && \
1358ccea
NN
15591 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15592 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15593 "RANLIB=$${RANLIB}" \
15594 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15595 clean) \
1358ccea
NN
15596 || exit 1
15597
d32ab992 15598@endif hello
1358ccea 15599
d32ab992
PB
15600.PHONY: maybe-distclean-hello distclean-hello
15601maybe-distclean-hello:
15602@if hello
15603maybe-distclean-hello: distclean-hello
1358ccea 15604
05750653 15605distclean-hello:
f41d6665 15606 @: $(MAKE); $(unstage)
d32ab992 15607 @[ -f ./hello/Makefile ] || exit 0; \
8c90b13a
L
15608 r=`${PWD_COMMAND}`; export r; \
15609 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15610 $(HOST_EXPORTS) \
d32ab992 15611 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
15612 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15613 done; \
d32ab992 15614 echo "Doing distclean in hello" ; \
215c351a 15615 (cd $(HOST_SUBDIR)/hello && \
1358ccea
NN
15616 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15617 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15618 "RANLIB=$${RANLIB}" \
15619 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15620 distclean) \
1358ccea
NN
15621 || exit 1
15622
d32ab992 15623@endif hello
1358ccea 15624
d32ab992
PB
15625.PHONY: maybe-maintainer-clean-hello maintainer-clean-hello
15626maybe-maintainer-clean-hello:
15627@if hello
15628maybe-maintainer-clean-hello: maintainer-clean-hello
1358ccea 15629
05750653 15630maintainer-clean-hello:
f41d6665 15631 @: $(MAKE); $(unstage)
d32ab992 15632 @[ -f ./hello/Makefile ] || exit 0; \
8c90b13a
L
15633 r=`${PWD_COMMAND}`; export r; \
15634 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15635 $(HOST_EXPORTS) \
d32ab992 15636 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
15637 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15638 done; \
d32ab992 15639 echo "Doing maintainer-clean in hello" ; \
215c351a 15640 (cd $(HOST_SUBDIR)/hello && \
1358ccea
NN
15641 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15642 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15643 "RANLIB=$${RANLIB}" \
15644 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15645 maintainer-clean) \
1358ccea
NN
15646 || exit 1
15647
d32ab992 15648@endif hello
1358ccea 15649
1358ccea 15650
25b42232 15651
d32ab992
PB
15652.PHONY: configure-indent maybe-configure-indent
15653maybe-configure-indent:
3ff3adad
PB
15654@if gcc-bootstrap
15655configure-indent: stage_current
15656@endif gcc-bootstrap
d32ab992
PB
15657@if indent
15658maybe-configure-indent: configure-indent
cc11cc9b 15659configure-indent:
f41d6665 15660 @: $(MAKE); $(unstage)
cc11cc9b 15661 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 15662 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
15663 test ! -f $(HOST_SUBDIR)/indent/Makefile || exit 0; \
15664 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/indent ; \
4fc4dd12 15665 $(HOST_EXPORTS) \
25b42232
PB
15666 echo Configuring in $(HOST_SUBDIR)/indent; \
15667 cd "$(HOST_SUBDIR)/indent" || exit 1; \
295f4e42 15668 case $(srcdir) in \
215c351a
PB
15669 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
15670 *) topdir=`echo $(HOST_SUBDIR)/indent/ | \
15671 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 15672 esac; \
215c351a
PB
15673 srcdiroption="--srcdir=$${topdir}/indent"; \
15674 libsrcdir="$$s/indent"; \
295f4e42 15675 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 15676 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 15677 || exit 1
d32ab992 15678@endif indent
1358ccea 15679
25b42232
PB
15680
15681
ce406537
PB
15682
15683
d32ab992
PB
15684.PHONY: all-indent maybe-all-indent
15685maybe-all-indent:
3ff3adad
PB
15686@if gcc-bootstrap
15687all-indent: stage_current
15688@endif gcc-bootstrap
d32ab992 15689@if indent
7e0b5752 15690TARGET-indent=all
d32ab992
PB
15691maybe-all-indent: all-indent
15692all-indent: configure-indent
f41d6665 15693 @: $(MAKE); $(unstage)
295f4e42
NN
15694 @r=`${PWD_COMMAND}`; export r; \
15695 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15696 $(HOST_EXPORTS) \
215c351a
PB
15697 (cd $(HOST_SUBDIR)/indent && \
15698 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-indent))
d32ab992 15699@endif indent
1358ccea 15700
25b42232 15701
ce406537
PB
15702
15703
d32ab992
PB
15704.PHONY: check-indent maybe-check-indent
15705maybe-check-indent:
15706@if indent
15707maybe-check-indent: check-indent
1358ccea 15708
d32ab992 15709check-indent:
f41d6665 15710 @: $(MAKE); $(unstage)
295f4e42 15711 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 15712 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15713 $(HOST_EXPORTS) \
215c351a
PB
15714 (cd $(HOST_SUBDIR)/indent && \
15715 $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 15716
d32ab992 15717@endif indent
1358ccea 15718
d32ab992
PB
15719.PHONY: install-indent maybe-install-indent
15720maybe-install-indent:
15721@if indent
15722maybe-install-indent: install-indent
1358ccea 15723
d32ab992 15724install-indent: installdirs
f41d6665 15725 @: $(MAKE); $(unstage)
295f4e42 15726 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 15727 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15728 $(HOST_EXPORTS) \
215c351a 15729 (cd $(HOST_SUBDIR)/indent && \
ace9ac7b 15730 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 15731
d32ab992 15732@endif indent
1358ccea 15733
b5422ad7 15734# Other targets (info, dvi, pdf, etc.)
1358ccea 15735
d32ab992
PB
15736.PHONY: maybe-info-indent info-indent
15737maybe-info-indent:
15738@if indent
15739maybe-info-indent: info-indent
295f4e42 15740
d32ab992 15741info-indent: \
05750653 15742 configure-indent
f41d6665 15743 @: $(MAKE); $(unstage)
d32ab992 15744 @[ -f ./indent/Makefile ] || exit 0; \
8c90b13a
L
15745 r=`${PWD_COMMAND}`; export r; \
15746 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15747 $(HOST_EXPORTS) \
d32ab992 15748 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
15749 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15750 done; \
d32ab992 15751 echo "Doing info in indent" ; \
215c351a 15752 (cd $(HOST_SUBDIR)/indent && \
1358ccea
NN
15753 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15754 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15755 "RANLIB=$${RANLIB}" \
15756 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15757 info) \
1358ccea
NN
15758 || exit 1
15759
d32ab992 15760@endif indent
1358ccea 15761
d32ab992
PB
15762.PHONY: maybe-dvi-indent dvi-indent
15763maybe-dvi-indent:
15764@if indent
15765maybe-dvi-indent: dvi-indent
1358ccea 15766
d32ab992 15767dvi-indent: \
05750653 15768 configure-indent
f41d6665 15769 @: $(MAKE); $(unstage)
d32ab992 15770 @[ -f ./indent/Makefile ] || exit 0; \
8c90b13a
L
15771 r=`${PWD_COMMAND}`; export r; \
15772 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15773 $(HOST_EXPORTS) \
d32ab992 15774 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
15775 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15776 done; \
d32ab992 15777 echo "Doing dvi in indent" ; \
215c351a 15778 (cd $(HOST_SUBDIR)/indent && \
1358ccea
NN
15779 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15780 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15781 "RANLIB=$${RANLIB}" \
15782 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15783 dvi) \
1358ccea
NN
15784 || exit 1
15785
d32ab992 15786@endif indent
1358ccea 15787
b5422ad7
BM
15788.PHONY: maybe-pdf-indent pdf-indent
15789maybe-pdf-indent:
15790@if indent
15791maybe-pdf-indent: pdf-indent
15792
15793pdf-indent: \
15794 configure-indent
15795 @: $(MAKE); $(unstage)
15796 @[ -f ./indent/Makefile ] || exit 0; \
15797 r=`${PWD_COMMAND}`; export r; \
15798 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15799 $(HOST_EXPORTS) \
15800 for flag in $(EXTRA_HOST_FLAGS) ; do \
15801 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15802 done; \
15803 echo "Doing pdf in indent" ; \
15804 (cd $(HOST_SUBDIR)/indent && \
15805 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15806 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15807 "RANLIB=$${RANLIB}" \
15808 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15809 pdf) \
15810 || exit 1
15811
15812@endif indent
15813
f87a2b2e
MS
15814.PHONY: maybe-html-indent html-indent
15815maybe-html-indent:
15816@if indent
15817maybe-html-indent: html-indent
15818
15819html-indent: \
05750653 15820 configure-indent
f41d6665 15821 @: $(MAKE); $(unstage)
f87a2b2e
MS
15822 @[ -f ./indent/Makefile ] || exit 0; \
15823 r=`${PWD_COMMAND}`; export r; \
15824 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
15825 $(HOST_EXPORTS) \
15826 for flag in $(EXTRA_HOST_FLAGS) ; do \
15827 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15828 done; \
15829 echo "Doing html in indent" ; \
215c351a 15830 (cd $(HOST_SUBDIR)/indent && \
f87a2b2e
MS
15831 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15832 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15833 "RANLIB=$${RANLIB}" \
15834 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15835 html) \
15836 || exit 1
15837
15838@endif indent
15839
d32ab992
PB
15840.PHONY: maybe-TAGS-indent TAGS-indent
15841maybe-TAGS-indent:
15842@if indent
15843maybe-TAGS-indent: TAGS-indent
1358ccea 15844
d32ab992 15845TAGS-indent: \
05750653 15846 configure-indent
f41d6665 15847 @: $(MAKE); $(unstage)
d32ab992 15848 @[ -f ./indent/Makefile ] || exit 0; \
8c90b13a
L
15849 r=`${PWD_COMMAND}`; export r; \
15850 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15851 $(HOST_EXPORTS) \
d32ab992 15852 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
15853 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15854 done; \
d32ab992 15855 echo "Doing TAGS in indent" ; \
215c351a 15856 (cd $(HOST_SUBDIR)/indent && \
1358ccea
NN
15857 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15858 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15859 "RANLIB=$${RANLIB}" \
15860 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15861 TAGS) \
1358ccea
NN
15862 || exit 1
15863
d32ab992 15864@endif indent
1358ccea 15865
d32ab992
PB
15866.PHONY: maybe-install-info-indent install-info-indent
15867maybe-install-info-indent:
15868@if indent
15869maybe-install-info-indent: install-info-indent
1358ccea 15870
d32ab992
PB
15871install-info-indent: \
15872 configure-indent \
05750653 15873 info-indent
f41d6665 15874 @: $(MAKE); $(unstage)
d32ab992 15875 @[ -f ./indent/Makefile ] || exit 0; \
8c90b13a
L
15876 r=`${PWD_COMMAND}`; export r; \
15877 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15878 $(HOST_EXPORTS) \
d32ab992 15879 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
15880 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15881 done; \
d32ab992 15882 echo "Doing install-info in indent" ; \
215c351a 15883 (cd $(HOST_SUBDIR)/indent && \
1358ccea
NN
15884 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15885 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15886 "RANLIB=$${RANLIB}" \
15887 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15888 install-info) \
1358ccea
NN
15889 || exit 1
15890
d32ab992 15891@endif indent
1358ccea 15892
65d6e994
CD
15893.PHONY: maybe-install-html-indent install-html-indent
15894maybe-install-html-indent:
15895@if indent
15896maybe-install-html-indent: install-html-indent
15897
15898install-html-indent: \
15899 configure-indent \
15900 html-indent
15901 @: $(MAKE); $(unstage)
15902 @[ -f ./indent/Makefile ] || exit 0; \
15903 r=`${PWD_COMMAND}`; export r; \
15904 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
15905 $(HOST_EXPORTS) \
15906 for flag in $(EXTRA_HOST_FLAGS) ; do \
15907 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15908 done; \
15909 echo "Doing install-html in indent" ; \
15910 (cd $(HOST_SUBDIR)/indent && \
15911 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15912 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15913 "RANLIB=$${RANLIB}" \
15914 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
15915 install-html) \
15916 || exit 1
15917
15918@endif indent
15919
d32ab992
PB
15920.PHONY: maybe-installcheck-indent installcheck-indent
15921maybe-installcheck-indent:
15922@if indent
15923maybe-installcheck-indent: installcheck-indent
1358ccea 15924
d32ab992 15925installcheck-indent: \
05750653 15926 configure-indent
f41d6665 15927 @: $(MAKE); $(unstage)
d32ab992 15928 @[ -f ./indent/Makefile ] || exit 0; \
8c90b13a
L
15929 r=`${PWD_COMMAND}`; export r; \
15930 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15931 $(HOST_EXPORTS) \
d32ab992 15932 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
15933 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15934 done; \
d32ab992 15935 echo "Doing installcheck in indent" ; \
215c351a 15936 (cd $(HOST_SUBDIR)/indent && \
1358ccea
NN
15937 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15938 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15939 "RANLIB=$${RANLIB}" \
15940 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15941 installcheck) \
1358ccea
NN
15942 || exit 1
15943
d32ab992 15944@endif indent
1358ccea 15945
d32ab992
PB
15946.PHONY: maybe-mostlyclean-indent mostlyclean-indent
15947maybe-mostlyclean-indent:
15948@if indent
15949maybe-mostlyclean-indent: mostlyclean-indent
1358ccea 15950
05750653 15951mostlyclean-indent:
f41d6665 15952 @: $(MAKE); $(unstage)
d32ab992 15953 @[ -f ./indent/Makefile ] || exit 0; \
8c90b13a
L
15954 r=`${PWD_COMMAND}`; export r; \
15955 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15956 $(HOST_EXPORTS) \
d32ab992 15957 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
15958 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15959 done; \
d32ab992 15960 echo "Doing mostlyclean in indent" ; \
215c351a 15961 (cd $(HOST_SUBDIR)/indent && \
1358ccea
NN
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}" \
d32ab992 15966 mostlyclean) \
1358ccea
NN
15967 || exit 1
15968
d32ab992 15969@endif indent
1358ccea 15970
d32ab992
PB
15971.PHONY: maybe-clean-indent clean-indent
15972maybe-clean-indent:
15973@if indent
15974maybe-clean-indent: clean-indent
1358ccea 15975
05750653 15976clean-indent:
f41d6665 15977 @: $(MAKE); $(unstage)
d32ab992 15978 @[ -f ./indent/Makefile ] || exit 0; \
8c90b13a
L
15979 r=`${PWD_COMMAND}`; export r; \
15980 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 15981 $(HOST_EXPORTS) \
d32ab992 15982 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
15983 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
15984 done; \
d32ab992 15985 echo "Doing clean in indent" ; \
215c351a 15986 (cd $(HOST_SUBDIR)/indent && \
1358ccea
NN
15987 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
15988 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
15989 "RANLIB=$${RANLIB}" \
15990 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 15991 clean) \
1358ccea
NN
15992 || exit 1
15993
d32ab992 15994@endif indent
1358ccea 15995
d32ab992
PB
15996.PHONY: maybe-distclean-indent distclean-indent
15997maybe-distclean-indent:
15998@if indent
15999maybe-distclean-indent: distclean-indent
1358ccea 16000
05750653 16001distclean-indent:
f41d6665 16002 @: $(MAKE); $(unstage)
d32ab992 16003 @[ -f ./indent/Makefile ] || exit 0; \
8c90b13a
L
16004 r=`${PWD_COMMAND}`; export r; \
16005 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16006 $(HOST_EXPORTS) \
d32ab992 16007 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
16008 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16009 done; \
d32ab992 16010 echo "Doing distclean in indent" ; \
215c351a 16011 (cd $(HOST_SUBDIR)/indent && \
1358ccea
NN
16012 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16013 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16014 "RANLIB=$${RANLIB}" \
16015 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16016 distclean) \
1358ccea
NN
16017 || exit 1
16018
d32ab992 16019@endif indent
1358ccea 16020
d32ab992
PB
16021.PHONY: maybe-maintainer-clean-indent maintainer-clean-indent
16022maybe-maintainer-clean-indent:
16023@if indent
16024maybe-maintainer-clean-indent: maintainer-clean-indent
1358ccea 16025
05750653 16026maintainer-clean-indent:
f41d6665 16027 @: $(MAKE); $(unstage)
d32ab992 16028 @[ -f ./indent/Makefile ] || exit 0; \
8c90b13a
L
16029 r=`${PWD_COMMAND}`; export r; \
16030 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16031 $(HOST_EXPORTS) \
d32ab992 16032 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
16033 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16034 done; \
d32ab992 16035 echo "Doing maintainer-clean in indent" ; \
215c351a 16036 (cd $(HOST_SUBDIR)/indent && \
1358ccea
NN
16037 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16038 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16039 "RANLIB=$${RANLIB}" \
16040 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16041 maintainer-clean) \
1358ccea
NN
16042 || exit 1
16043
d32ab992 16044@endif indent
1358ccea 16045
1358ccea 16046
25b42232 16047
d32ab992
PB
16048.PHONY: configure-intl maybe-configure-intl
16049maybe-configure-intl:
3ff3adad
PB
16050@if gcc-bootstrap
16051configure-intl: stage_current
16052@endif gcc-bootstrap
d32ab992
PB
16053@if intl
16054maybe-configure-intl: configure-intl
cc11cc9b 16055configure-intl:
cc11cc9b
PB
16056 @r=`${PWD_COMMAND}`; export r; \
16057 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
215c351a
PB
16058 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
16059 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
4fc4dd12 16060 $(HOST_EXPORTS) \
25b42232
PB
16061 echo Configuring in $(HOST_SUBDIR)/intl; \
16062 cd "$(HOST_SUBDIR)/intl" || exit 1; \
295f4e42 16063 case $(srcdir) in \
215c351a
PB
16064 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
16065 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
16066 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 16067 esac; \
215c351a
PB
16068 srcdiroption="--srcdir=$${topdir}/intl"; \
16069 libsrcdir="$$s/intl"; \
295f4e42 16070 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 16071 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 16072 || exit 1
d32ab992 16073@endif intl
1358ccea 16074
25b42232
PB
16075
16076
ce406537
PB
16077.PHONY: configure-stage1-intl maybe-configure-stage1-intl
16078maybe-configure-stage1-intl:
16079@if intl-bootstrap
16080maybe-configure-stage1-intl: configure-stage1-intl
f41d6665 16081configure-stage1-intl:
cc11cc9b 16082 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
f41d6665 16083 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
cc11cc9b
PB
16084 @r=`${PWD_COMMAND}`; export r; \
16085 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 16086 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
ce406537
PB
16087 $(HOST_EXPORTS) \
16088 echo Configuring stage 1 in $(HOST_SUBDIR)/intl ; \
f41d6665 16089 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
ce406537
PB
16090 cd $(HOST_SUBDIR)/intl || exit 1; \
16091 case $(srcdir) in \
16092 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
16093 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
16094 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16095 esac; \
16096 srcdiroption="--srcdir=$${topdir}/intl"; \
16097 libsrcdir="$$s/intl"; \
16098 $(SHELL) $${libsrcdir}/configure \
16099 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 16100 \
8efea775 16101 --disable-intermodule $(STAGE1_CHECKING) --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
ce406537
PB
16102@endif intl-bootstrap
16103
16104.PHONY: configure-stage2-intl maybe-configure-stage2-intl
16105maybe-configure-stage2-intl:
16106@if intl-bootstrap
16107maybe-configure-stage2-intl: configure-stage2-intl
f41d6665 16108configure-stage2-intl:
cc11cc9b 16109 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
f41d6665 16110 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
cc11cc9b
PB
16111 @r=`${PWD_COMMAND}`; export r; \
16112 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 16113 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
ce406537
PB
16114 $(HOST_EXPORTS) \
16115 $(POSTSTAGE1_HOST_EXPORTS) \
16116 echo Configuring stage 2 in $(HOST_SUBDIR)/intl ; \
f41d6665 16117 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
ce406537
PB
16118 cd $(HOST_SUBDIR)/intl || exit 1; \
16119 case $(srcdir) in \
16120 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
16121 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
16122 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16123 esac; \
16124 srcdiroption="--srcdir=$${topdir}/intl"; \
16125 libsrcdir="$$s/intl"; \
16126 $(SHELL) $${libsrcdir}/configure \
16127 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 16128 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
16129 @stage2_werror_flag@
16130@endif intl-bootstrap
16131
16132.PHONY: configure-stage3-intl maybe-configure-stage3-intl
16133maybe-configure-stage3-intl:
16134@if intl-bootstrap
16135maybe-configure-stage3-intl: configure-stage3-intl
f41d6665 16136configure-stage3-intl:
cc11cc9b 16137 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
f41d6665 16138 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
cc11cc9b
PB
16139 @r=`${PWD_COMMAND}`; export r; \
16140 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 16141 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
ce406537
PB
16142 $(HOST_EXPORTS) \
16143 $(POSTSTAGE1_HOST_EXPORTS) \
16144 echo Configuring stage 3 in $(HOST_SUBDIR)/intl ; \
f41d6665 16145 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
ce406537
PB
16146 cd $(HOST_SUBDIR)/intl || exit 1; \
16147 case $(srcdir) in \
16148 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
16149 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
16150 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16151 esac; \
16152 srcdiroption="--srcdir=$${topdir}/intl"; \
16153 libsrcdir="$$s/intl"; \
16154 $(SHELL) $${libsrcdir}/configure \
16155 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 16156 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
16157 @stage2_werror_flag@
16158@endif intl-bootstrap
16159
16160.PHONY: configure-stage4-intl maybe-configure-stage4-intl
16161maybe-configure-stage4-intl:
16162@if intl-bootstrap
16163maybe-configure-stage4-intl: configure-stage4-intl
f41d6665 16164configure-stage4-intl:
cc11cc9b 16165 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
f41d6665 16166 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
cc11cc9b
PB
16167 @r=`${PWD_COMMAND}`; export r; \
16168 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 16169 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
ce406537
PB
16170 $(HOST_EXPORTS) \
16171 $(POSTSTAGE1_HOST_EXPORTS) \
16172 echo Configuring stage 4 in $(HOST_SUBDIR)/intl ; \
f41d6665 16173 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
ce406537
PB
16174 cd $(HOST_SUBDIR)/intl || exit 1; \
16175 case $(srcdir) in \
16176 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
16177 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
16178 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16179 esac; \
16180 srcdiroption="--srcdir=$${topdir}/intl"; \
16181 libsrcdir="$$s/intl"; \
16182 $(SHELL) $${libsrcdir}/configure \
16183 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 16184 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
16185 @stage2_werror_flag@
16186@endif intl-bootstrap
16187
16188.PHONY: configure-stageprofile-intl maybe-configure-stageprofile-intl
16189maybe-configure-stageprofile-intl:
16190@if intl-bootstrap
16191maybe-configure-stageprofile-intl: configure-stageprofile-intl
f41d6665 16192configure-stageprofile-intl:
cc11cc9b 16193 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
f41d6665 16194 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
cc11cc9b
PB
16195 @r=`${PWD_COMMAND}`; export r; \
16196 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 16197 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
ce406537
PB
16198 $(HOST_EXPORTS) \
16199 $(POSTSTAGE1_HOST_EXPORTS) \
16200 echo Configuring stage profile in $(HOST_SUBDIR)/intl ; \
f41d6665 16201 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
ce406537
PB
16202 cd $(HOST_SUBDIR)/intl || exit 1; \
16203 case $(srcdir) in \
16204 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
16205 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
16206 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16207 esac; \
16208 srcdiroption="--srcdir=$${topdir}/intl"; \
16209 libsrcdir="$$s/intl"; \
16210 $(SHELL) $${libsrcdir}/configure \
16211 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 16212 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
16213 @stage2_werror_flag@
16214@endif intl-bootstrap
16215
16216.PHONY: configure-stagefeedback-intl maybe-configure-stagefeedback-intl
16217maybe-configure-stagefeedback-intl:
16218@if intl-bootstrap
16219maybe-configure-stagefeedback-intl: configure-stagefeedback-intl
f41d6665 16220configure-stagefeedback-intl:
cc11cc9b 16221 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
f41d6665 16222 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl
cc11cc9b
PB
16223 @r=`${PWD_COMMAND}`; export r; \
16224 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 16225 test ! -f $(HOST_SUBDIR)/intl/Makefile || exit 0; \
ce406537
PB
16226 $(HOST_EXPORTS) \
16227 $(POSTSTAGE1_HOST_EXPORTS) \
16228 echo Configuring stage feedback in $(HOST_SUBDIR)/intl ; \
f41d6665 16229 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/intl ; \
ce406537
PB
16230 cd $(HOST_SUBDIR)/intl || exit 1; \
16231 case $(srcdir) in \
16232 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
16233 *) topdir=`echo $(HOST_SUBDIR)/intl/ | \
16234 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
16235 esac; \
16236 srcdiroption="--srcdir=$${topdir}/intl"; \
16237 libsrcdir="$$s/intl"; \
16238 $(SHELL) $${libsrcdir}/configure \
16239 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 16240 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
16241 @stage2_werror_flag@
16242@endif intl-bootstrap
16243
16244
16245
16246
16247
d32ab992
PB
16248.PHONY: all-intl maybe-all-intl
16249maybe-all-intl:
3ff3adad
PB
16250@if gcc-bootstrap
16251all-intl: stage_current
16252@endif gcc-bootstrap
d32ab992 16253@if intl
7e0b5752 16254TARGET-intl=all
d32ab992
PB
16255maybe-all-intl: all-intl
16256all-intl: configure-intl
cc11cc9b 16257 @r=`${PWD_COMMAND}`; export r; \
295f4e42 16258 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16259 $(HOST_EXPORTS) \
215c351a
PB
16260 (cd $(HOST_SUBDIR)/intl && \
16261 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-intl))
d32ab992 16262@endif intl
295f4e42 16263
25b42232 16264
ce406537
PB
16265
16266.PHONY: all-stage1-intl maybe-all-stage1-intl
16267.PHONY: clean-stage1-intl maybe-clean-stage1-intl
16268maybe-all-stage1-intl:
16269maybe-clean-stage1-intl:
16270@if intl-bootstrap
16271maybe-all-stage1-intl: all-stage1-intl
16272all-stage1: all-stage1-intl
1061f99e 16273TARGET-stage1-intl = $(TARGET-intl)
ce406537 16274all-stage1-intl: configure-stage1-intl
cc11cc9b 16275 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
ce406537
PB
16276 @r=`${PWD_COMMAND}`; export r; \
16277 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16278 $(HOST_EXPORTS) \
16279 cd $(HOST_SUBDIR)/intl && \
cc11cc9b 16280 $(MAKE) $(FLAGS_TO_PASS) CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" \
1061f99e 16281 $(TARGET-stage1-intl)
ce406537
PB
16282
16283maybe-clean-stage1-intl: clean-stage1-intl
16284clean-stage1: clean-stage1-intl
16285clean-stage1-intl:
995a5697
PB
16286 @if [ $(current_stage) = stage1 ]; then \
16287 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
16288 else \
16289 [ -f $(HOST_SUBDIR)/stage1-intl/Makefile ] || exit 0; \
16290 $(MAKE) stage1-start; \
16291 fi; \
ce406537
PB
16292 cd $(HOST_SUBDIR)/intl && \
16293 $(MAKE) $(FLAGS_TO_PASS) \
cc11cc9b 16294 CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" clean
ce406537
PB
16295@endif intl-bootstrap
16296
16297
16298.PHONY: all-stage2-intl maybe-all-stage2-intl
16299.PHONY: clean-stage2-intl maybe-clean-stage2-intl
16300maybe-all-stage2-intl:
16301maybe-clean-stage2-intl:
16302@if intl-bootstrap
16303maybe-all-stage2-intl: all-stage2-intl
16304all-stage2: all-stage2-intl
1061f99e 16305TARGET-stage2-intl = $(TARGET-intl)
ce406537 16306all-stage2-intl: configure-stage2-intl
cc11cc9b 16307 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
ce406537
PB
16308 @r=`${PWD_COMMAND}`; export r; \
16309 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16310 $(HOST_EXPORTS) \
16311 $(POSTSTAGE1_HOST_EXPORTS) \
16312 cd $(HOST_SUBDIR)/intl && \
1061f99e
PB
16313 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
16314 $(TARGET-stage2-intl)
ce406537
PB
16315
16316maybe-clean-stage2-intl: clean-stage2-intl
16317clean-stage2: clean-stage2-intl
16318clean-stage2-intl:
995a5697
PB
16319 @if [ $(current_stage) = stage2 ]; then \
16320 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
16321 else \
16322 [ -f $(HOST_SUBDIR)/stage2-intl/Makefile ] || exit 0; \
16323 $(MAKE) stage2-start; \
16324 fi; \
ce406537
PB
16325 cd $(HOST_SUBDIR)/intl && \
16326 $(MAKE) $(FLAGS_TO_PASS) \
16327 $(POSTSTAGE1_FLAGS_TO_PASS) \
16328 clean
16329@endif intl-bootstrap
16330
16331
16332.PHONY: all-stage3-intl maybe-all-stage3-intl
16333.PHONY: clean-stage3-intl maybe-clean-stage3-intl
16334maybe-all-stage3-intl:
16335maybe-clean-stage3-intl:
16336@if intl-bootstrap
16337maybe-all-stage3-intl: all-stage3-intl
16338all-stage3: all-stage3-intl
1061f99e 16339TARGET-stage3-intl = $(TARGET-intl)
ce406537 16340all-stage3-intl: configure-stage3-intl
cc11cc9b 16341 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
ce406537
PB
16342 @r=`${PWD_COMMAND}`; export r; \
16343 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16344 $(HOST_EXPORTS) \
16345 $(POSTSTAGE1_HOST_EXPORTS) \
16346 cd $(HOST_SUBDIR)/intl && \
1061f99e
PB
16347 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
16348 $(TARGET-stage3-intl)
ce406537
PB
16349
16350maybe-clean-stage3-intl: clean-stage3-intl
16351clean-stage3: clean-stage3-intl
16352clean-stage3-intl:
995a5697
PB
16353 @if [ $(current_stage) = stage3 ]; then \
16354 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
16355 else \
16356 [ -f $(HOST_SUBDIR)/stage3-intl/Makefile ] || exit 0; \
16357 $(MAKE) stage3-start; \
16358 fi; \
ce406537
PB
16359 cd $(HOST_SUBDIR)/intl && \
16360 $(MAKE) $(FLAGS_TO_PASS) \
16361 $(POSTSTAGE1_FLAGS_TO_PASS) \
16362 clean
16363@endif intl-bootstrap
16364
16365
16366.PHONY: all-stage4-intl maybe-all-stage4-intl
16367.PHONY: clean-stage4-intl maybe-clean-stage4-intl
16368maybe-all-stage4-intl:
16369maybe-clean-stage4-intl:
16370@if intl-bootstrap
16371maybe-all-stage4-intl: all-stage4-intl
16372all-stage4: all-stage4-intl
1061f99e 16373TARGET-stage4-intl = $(TARGET-intl)
ce406537 16374all-stage4-intl: configure-stage4-intl
cc11cc9b 16375 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
ce406537
PB
16376 @r=`${PWD_COMMAND}`; export r; \
16377 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16378 $(HOST_EXPORTS) \
16379 $(POSTSTAGE1_HOST_EXPORTS) \
16380 cd $(HOST_SUBDIR)/intl && \
1061f99e
PB
16381 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
16382 $(TARGET-stage4-intl)
ce406537
PB
16383
16384maybe-clean-stage4-intl: clean-stage4-intl
16385clean-stage4: clean-stage4-intl
16386clean-stage4-intl:
995a5697
PB
16387 @if [ $(current_stage) = stage4 ]; then \
16388 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
16389 else \
16390 [ -f $(HOST_SUBDIR)/stage4-intl/Makefile ] || exit 0; \
16391 $(MAKE) stage4-start; \
16392 fi; \
ce406537
PB
16393 cd $(HOST_SUBDIR)/intl && \
16394 $(MAKE) $(FLAGS_TO_PASS) \
16395 $(POSTSTAGE1_FLAGS_TO_PASS) \
16396 clean
16397@endif intl-bootstrap
16398
16399
16400.PHONY: all-stageprofile-intl maybe-all-stageprofile-intl
16401.PHONY: clean-stageprofile-intl maybe-clean-stageprofile-intl
16402maybe-all-stageprofile-intl:
16403maybe-clean-stageprofile-intl:
16404@if intl-bootstrap
16405maybe-all-stageprofile-intl: all-stageprofile-intl
16406all-stageprofile: all-stageprofile-intl
1061f99e 16407TARGET-stageprofile-intl = $(TARGET-intl)
ce406537 16408all-stageprofile-intl: configure-stageprofile-intl
cc11cc9b 16409 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
ce406537
PB
16410 @r=`${PWD_COMMAND}`; export r; \
16411 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16412 $(HOST_EXPORTS) \
16413 $(POSTSTAGE1_HOST_EXPORTS) \
16414 cd $(HOST_SUBDIR)/intl && \
1061f99e
PB
16415 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" \
16416 $(TARGET-stageprofile-intl)
ce406537
PB
16417
16418maybe-clean-stageprofile-intl: clean-stageprofile-intl
16419clean-stageprofile: clean-stageprofile-intl
16420clean-stageprofile-intl:
995a5697
PB
16421 @if [ $(current_stage) = stageprofile ]; then \
16422 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
16423 else \
16424 [ -f $(HOST_SUBDIR)/stageprofile-intl/Makefile ] || exit 0; \
16425 $(MAKE) stageprofile-start; \
16426 fi; \
ce406537
PB
16427 cd $(HOST_SUBDIR)/intl && \
16428 $(MAKE) $(FLAGS_TO_PASS) \
16429 $(POSTSTAGE1_FLAGS_TO_PASS) \
16430 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean
16431@endif intl-bootstrap
16432
16433
16434.PHONY: all-stagefeedback-intl maybe-all-stagefeedback-intl
16435.PHONY: clean-stagefeedback-intl maybe-clean-stagefeedback-intl
16436maybe-all-stagefeedback-intl:
16437maybe-clean-stagefeedback-intl:
16438@if intl-bootstrap
16439maybe-all-stagefeedback-intl: all-stagefeedback-intl
16440all-stagefeedback: all-stagefeedback-intl
1061f99e 16441TARGET-stagefeedback-intl = $(TARGET-intl)
ce406537 16442all-stagefeedback-intl: configure-stagefeedback-intl
cc11cc9b 16443 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
ce406537
PB
16444 @r=`${PWD_COMMAND}`; export r; \
16445 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16446 $(HOST_EXPORTS) \
16447 $(POSTSTAGE1_HOST_EXPORTS) \
16448 cd $(HOST_SUBDIR)/intl && \
1061f99e
PB
16449 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-use" \
16450 $(TARGET-stagefeedback-intl)
ce406537
PB
16451
16452maybe-clean-stagefeedback-intl: clean-stagefeedback-intl
16453clean-stagefeedback: clean-stagefeedback-intl
16454clean-stagefeedback-intl:
995a5697
PB
16455 @if [ $(current_stage) = stagefeedback ]; then \
16456 [ -f $(HOST_SUBDIR)/intl/Makefile ] || exit 0; \
16457 else \
16458 [ -f $(HOST_SUBDIR)/stagefeedback-intl/Makefile ] || exit 0; \
16459 $(MAKE) stagefeedback-start; \
16460 fi; \
ce406537
PB
16461 cd $(HOST_SUBDIR)/intl && \
16462 $(MAKE) $(FLAGS_TO_PASS) \
16463 $(POSTSTAGE1_FLAGS_TO_PASS) \
16464 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean
16465@endif intl-bootstrap
16466
16467
16468
16469
16470
d32ab992
PB
16471.PHONY: check-intl maybe-check-intl
16472maybe-check-intl:
16473@if intl
16474maybe-check-intl: check-intl
295f4e42 16475
d32ab992 16476check-intl:
f41d6665 16477 @: $(MAKE); $(unstage)
295f4e42
NN
16478 @r=`${PWD_COMMAND}`; export r; \
16479 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16480 $(HOST_EXPORTS) \
215c351a
PB
16481 (cd $(HOST_SUBDIR)/intl && \
16482 $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 16483
d32ab992 16484@endif intl
1358ccea 16485
d32ab992
PB
16486.PHONY: install-intl maybe-install-intl
16487maybe-install-intl:
16488@if intl
16489maybe-install-intl: install-intl
295f4e42 16490
d32ab992 16491install-intl: installdirs
f41d6665 16492 @: $(MAKE); $(unstage)
295f4e42 16493 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 16494 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16495 $(HOST_EXPORTS) \
215c351a 16496 (cd $(HOST_SUBDIR)/intl && \
ace9ac7b 16497 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 16498
d32ab992 16499@endif intl
1358ccea 16500
b5422ad7 16501# Other targets (info, dvi, pdf, etc.)
1358ccea 16502
d32ab992
PB
16503.PHONY: maybe-info-intl info-intl
16504maybe-info-intl:
16505@if intl
16506maybe-info-intl: info-intl
295f4e42 16507
d32ab992 16508info-intl: \
05750653 16509 configure-intl
d32ab992 16510 @[ -f ./intl/Makefile ] || exit 0; \
8c90b13a
L
16511 r=`${PWD_COMMAND}`; export r; \
16512 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16513 $(HOST_EXPORTS) \
d32ab992 16514 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
16515 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16516 done; \
d32ab992 16517 echo "Doing info in intl" ; \
215c351a 16518 (cd $(HOST_SUBDIR)/intl && \
1358ccea
NN
16519 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16520 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16521 "RANLIB=$${RANLIB}" \
16522 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16523 info) \
1358ccea
NN
16524 || exit 1
16525
d32ab992 16526@endif intl
1358ccea 16527
d32ab992
PB
16528.PHONY: maybe-dvi-intl dvi-intl
16529maybe-dvi-intl:
16530@if intl
16531maybe-dvi-intl: dvi-intl
1358ccea 16532
d32ab992 16533dvi-intl: \
05750653 16534 configure-intl
d32ab992
PB
16535 @[ -f ./intl/Makefile ] || exit 0; \
16536 r=`${PWD_COMMAND}`; export r; \
8c90b13a 16537 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16538 $(HOST_EXPORTS) \
d32ab992 16539 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
16540 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16541 done; \
d32ab992 16542 echo "Doing dvi in intl" ; \
215c351a 16543 (cd $(HOST_SUBDIR)/intl && \
1358ccea
NN
16544 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16545 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16546 "RANLIB=$${RANLIB}" \
16547 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16548 dvi) \
1358ccea
NN
16549 || exit 1
16550
d32ab992 16551@endif intl
1358ccea 16552
b5422ad7
BM
16553.PHONY: maybe-pdf-intl pdf-intl
16554maybe-pdf-intl:
16555@if intl
16556maybe-pdf-intl: pdf-intl
16557
16558pdf-intl: \
16559 configure-intl
16560 @[ -f ./intl/Makefile ] || exit 0; \
16561 r=`${PWD_COMMAND}`; export r; \
16562 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16563 $(HOST_EXPORTS) \
16564 for flag in $(EXTRA_HOST_FLAGS) ; do \
16565 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16566 done; \
16567 echo "Doing pdf in intl" ; \
16568 (cd $(HOST_SUBDIR)/intl && \
16569 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16570 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16571 "RANLIB=$${RANLIB}" \
16572 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16573 pdf) \
16574 || exit 1
16575
16576@endif intl
16577
f87a2b2e
MS
16578.PHONY: maybe-html-intl html-intl
16579maybe-html-intl:
16580@if intl
16581maybe-html-intl: html-intl
16582
16583html-intl: \
05750653 16584 configure-intl
f87a2b2e
MS
16585 @[ -f ./intl/Makefile ] || exit 0; \
16586 r=`${PWD_COMMAND}`; export r; \
16587 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
16588 $(HOST_EXPORTS) \
16589 for flag in $(EXTRA_HOST_FLAGS) ; do \
16590 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16591 done; \
16592 echo "Doing html in intl" ; \
215c351a 16593 (cd $(HOST_SUBDIR)/intl && \
f87a2b2e
MS
16594 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16595 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16596 "RANLIB=$${RANLIB}" \
16597 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16598 html) \
16599 || exit 1
16600
16601@endif intl
16602
d32ab992
PB
16603.PHONY: maybe-TAGS-intl TAGS-intl
16604maybe-TAGS-intl:
16605@if intl
16606maybe-TAGS-intl: TAGS-intl
1358ccea 16607
d32ab992 16608TAGS-intl: \
05750653 16609 configure-intl
d32ab992 16610 @[ -f ./intl/Makefile ] || exit 0; \
8c90b13a
L
16611 r=`${PWD_COMMAND}`; export r; \
16612 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16613 $(HOST_EXPORTS) \
d32ab992 16614 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
16615 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16616 done; \
d32ab992 16617 echo "Doing TAGS in intl" ; \
215c351a 16618 (cd $(HOST_SUBDIR)/intl && \
1358ccea
NN
16619 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16620 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16621 "RANLIB=$${RANLIB}" \
16622 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16623 TAGS) \
1358ccea
NN
16624 || exit 1
16625
d32ab992 16626@endif intl
1358ccea 16627
d32ab992
PB
16628.PHONY: maybe-install-info-intl install-info-intl
16629maybe-install-info-intl:
16630@if intl
16631maybe-install-info-intl: install-info-intl
1358ccea 16632
d32ab992
PB
16633install-info-intl: \
16634 configure-intl \
05750653 16635 info-intl
d32ab992 16636 @[ -f ./intl/Makefile ] || exit 0; \
8c90b13a
L
16637 r=`${PWD_COMMAND}`; export r; \
16638 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16639 $(HOST_EXPORTS) \
d32ab992 16640 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
16641 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16642 done; \
d32ab992 16643 echo "Doing install-info in intl" ; \
215c351a 16644 (cd $(HOST_SUBDIR)/intl && \
1358ccea
NN
16645 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16646 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16647 "RANLIB=$${RANLIB}" \
16648 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16649 install-info) \
1358ccea
NN
16650 || exit 1
16651
d32ab992 16652@endif intl
1358ccea 16653
65d6e994
CD
16654.PHONY: maybe-install-html-intl install-html-intl
16655maybe-install-html-intl:
16656@if intl
16657maybe-install-html-intl: install-html-intl
16658
16659install-html-intl: \
16660 configure-intl \
16661 html-intl
16662 @[ -f ./intl/Makefile ] || exit 0; \
16663 r=`${PWD_COMMAND}`; export r; \
16664 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16665 $(HOST_EXPORTS) \
16666 for flag in $(EXTRA_HOST_FLAGS) ; do \
16667 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16668 done; \
16669 echo "Doing install-html in intl" ; \
16670 (cd $(HOST_SUBDIR)/intl && \
16671 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16672 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16673 "RANLIB=$${RANLIB}" \
16674 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16675 install-html) \
16676 || exit 1
16677
16678@endif intl
16679
d32ab992
PB
16680.PHONY: maybe-installcheck-intl installcheck-intl
16681maybe-installcheck-intl:
16682@if intl
16683maybe-installcheck-intl: installcheck-intl
1358ccea 16684
d32ab992 16685installcheck-intl: \
05750653 16686 configure-intl
d32ab992 16687 @[ -f ./intl/Makefile ] || exit 0; \
8c90b13a
L
16688 r=`${PWD_COMMAND}`; export r; \
16689 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16690 $(HOST_EXPORTS) \
d32ab992 16691 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
16692 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16693 done; \
d32ab992 16694 echo "Doing installcheck in intl" ; \
215c351a 16695 (cd $(HOST_SUBDIR)/intl && \
1358ccea
NN
16696 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16697 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16698 "RANLIB=$${RANLIB}" \
16699 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16700 installcheck) \
1358ccea
NN
16701 || exit 1
16702
d32ab992 16703@endif intl
1358ccea 16704
d32ab992
PB
16705.PHONY: maybe-mostlyclean-intl mostlyclean-intl
16706maybe-mostlyclean-intl:
16707@if intl
16708maybe-mostlyclean-intl: mostlyclean-intl
1358ccea 16709
05750653 16710mostlyclean-intl:
d32ab992
PB
16711 @[ -f ./intl/Makefile ] || exit 0; \
16712 r=`${PWD_COMMAND}`; export r; \
16713 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d32ab992
PB
16714 $(HOST_EXPORTS) \
16715 for flag in $(EXTRA_HOST_FLAGS) ; do \
16716 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16717 done; \
16718 echo "Doing mostlyclean in intl" ; \
215c351a 16719 (cd $(HOST_SUBDIR)/intl && \
d32ab992
PB
16720 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16721 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16722 "RANLIB=$${RANLIB}" \
16723 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16724 mostlyclean) \
16725 || exit 1
295f4e42 16726
d32ab992 16727@endif intl
295f4e42 16728
d32ab992
PB
16729.PHONY: maybe-clean-intl clean-intl
16730maybe-clean-intl:
16731@if intl
16732maybe-clean-intl: clean-intl
295f4e42 16733
05750653 16734clean-intl:
d32ab992 16735 @[ -f ./intl/Makefile ] || exit 0; \
8c90b13a
L
16736 r=`${PWD_COMMAND}`; export r; \
16737 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16738 $(HOST_EXPORTS) \
d32ab992 16739 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
16740 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16741 done; \
d32ab992 16742 echo "Doing clean in intl" ; \
215c351a 16743 (cd $(HOST_SUBDIR)/intl && \
1358ccea
NN
16744 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16745 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16746 "RANLIB=$${RANLIB}" \
16747 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16748 clean) \
1358ccea
NN
16749 || exit 1
16750
d32ab992 16751@endif intl
1358ccea 16752
d32ab992
PB
16753.PHONY: maybe-distclean-intl distclean-intl
16754maybe-distclean-intl:
16755@if intl
16756maybe-distclean-intl: distclean-intl
1358ccea 16757
05750653 16758distclean-intl:
d32ab992 16759 @[ -f ./intl/Makefile ] || exit 0; \
8c90b13a
L
16760 r=`${PWD_COMMAND}`; export r; \
16761 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16762 $(HOST_EXPORTS) \
d32ab992 16763 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
16764 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16765 done; \
d32ab992 16766 echo "Doing distclean in intl" ; \
215c351a 16767 (cd $(HOST_SUBDIR)/intl && \
1358ccea
NN
16768 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16769 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16770 "RANLIB=$${RANLIB}" \
16771 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16772 distclean) \
1358ccea
NN
16773 || exit 1
16774
d32ab992 16775@endif intl
1358ccea 16776
d32ab992
PB
16777.PHONY: maybe-maintainer-clean-intl maintainer-clean-intl
16778maybe-maintainer-clean-intl:
16779@if intl
16780maybe-maintainer-clean-intl: maintainer-clean-intl
1358ccea 16781
05750653 16782maintainer-clean-intl:
d32ab992 16783 @[ -f ./intl/Makefile ] || exit 0; \
8c90b13a
L
16784 r=`${PWD_COMMAND}`; export r; \
16785 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16786 $(HOST_EXPORTS) \
d32ab992 16787 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
16788 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16789 done; \
d32ab992 16790 echo "Doing maintainer-clean in intl" ; \
215c351a 16791 (cd $(HOST_SUBDIR)/intl && \
1358ccea
NN
16792 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16793 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16794 "RANLIB=$${RANLIB}" \
16795 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16796 maintainer-clean) \
1358ccea
NN
16797 || exit 1
16798
d32ab992 16799@endif intl
1358ccea 16800
1358ccea 16801
25b42232 16802
d32ab992
PB
16803.PHONY: configure-tcl maybe-configure-tcl
16804maybe-configure-tcl:
3ff3adad
PB
16805@if gcc-bootstrap
16806configure-tcl: stage_current
16807@endif gcc-bootstrap
d32ab992
PB
16808@if tcl
16809maybe-configure-tcl: configure-tcl
cc11cc9b 16810configure-tcl:
f41d6665 16811 @: $(MAKE); $(unstage)
cc11cc9b 16812 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 16813 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
16814 test ! -f $(HOST_SUBDIR)/tcl/Makefile || exit 0; \
16815 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/tcl ; \
4fc4dd12 16816 $(HOST_EXPORTS) \
25b42232
PB
16817 echo Configuring in $(HOST_SUBDIR)/tcl; \
16818 cd "$(HOST_SUBDIR)/tcl" || exit 1; \
295f4e42 16819 case $(srcdir) in \
215c351a
PB
16820 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
16821 *) topdir=`echo $(HOST_SUBDIR)/tcl/ | \
16822 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 16823 esac; \
215c351a
PB
16824 srcdiroption="--srcdir=$${topdir}/tcl"; \
16825 libsrcdir="$$s/tcl"; \
295f4e42 16826 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 16827 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 16828 || exit 1
d32ab992 16829@endif tcl
1358ccea 16830
25b42232
PB
16831
16832
ce406537
PB
16833
16834
d32ab992
PB
16835.PHONY: all-tcl maybe-all-tcl
16836maybe-all-tcl:
3ff3adad
PB
16837@if gcc-bootstrap
16838all-tcl: stage_current
16839@endif gcc-bootstrap
d32ab992 16840@if tcl
7e0b5752 16841TARGET-tcl=all
d32ab992
PB
16842maybe-all-tcl: all-tcl
16843all-tcl: configure-tcl
f41d6665 16844 @: $(MAKE); $(unstage)
295f4e42
NN
16845 @r=`${PWD_COMMAND}`; export r; \
16846 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16847 $(HOST_EXPORTS) \
215c351a
PB
16848 (cd $(HOST_SUBDIR)/tcl && \
16849 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-tcl))
d32ab992 16850@endif tcl
1358ccea 16851
25b42232 16852
ce406537
PB
16853
16854
d32ab992
PB
16855.PHONY: check-tcl maybe-check-tcl
16856maybe-check-tcl:
16857@if tcl
16858maybe-check-tcl: check-tcl
d9cdb878 16859
d32ab992 16860check-tcl:
f41d6665 16861 @: $(MAKE); $(unstage)
295f4e42 16862 @r=`${PWD_COMMAND}`; export r; \
d9cdb878 16863 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16864 $(HOST_EXPORTS) \
215c351a
PB
16865 (cd $(HOST_SUBDIR)/tcl && \
16866 $(MAKE) $(FLAGS_TO_PASS) check)
d9cdb878 16867
d32ab992 16868@endif tcl
d9cdb878 16869
d32ab992
PB
16870.PHONY: install-tcl maybe-install-tcl
16871maybe-install-tcl:
16872@if tcl
16873maybe-install-tcl: install-tcl
1358ccea 16874
d32ab992 16875install-tcl: installdirs
f41d6665 16876 @: $(MAKE); $(unstage)
295f4e42
NN
16877 @r=`${PWD_COMMAND}`; export r; \
16878 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16879 $(HOST_EXPORTS) \
215c351a 16880 (cd $(HOST_SUBDIR)/tcl && \
ace9ac7b 16881 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 16882
d32ab992 16883@endif tcl
1358ccea 16884
b5422ad7 16885# Other targets (info, dvi, pdf, etc.)
1358ccea 16886
d32ab992
PB
16887.PHONY: maybe-info-tcl info-tcl
16888maybe-info-tcl:
16889@if tcl
16890maybe-info-tcl: info-tcl
295f4e42 16891
d32ab992 16892info-tcl: \
05750653 16893 configure-tcl
f41d6665 16894 @: $(MAKE); $(unstage)
d32ab992 16895 @[ -f ./tcl/Makefile ] || exit 0; \
8c90b13a
L
16896 r=`${PWD_COMMAND}`; export r; \
16897 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16898 $(HOST_EXPORTS) \
d32ab992 16899 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
16900 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16901 done; \
d32ab992 16902 echo "Doing info in tcl" ; \
215c351a 16903 (cd $(HOST_SUBDIR)/tcl && \
1358ccea
NN
16904 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16905 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16906 "RANLIB=$${RANLIB}" \
16907 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16908 info) \
1358ccea
NN
16909 || exit 1
16910
d32ab992 16911@endif tcl
1358ccea 16912
d32ab992
PB
16913.PHONY: maybe-dvi-tcl dvi-tcl
16914maybe-dvi-tcl:
16915@if tcl
16916maybe-dvi-tcl: dvi-tcl
1358ccea 16917
d32ab992 16918dvi-tcl: \
05750653 16919 configure-tcl
f41d6665 16920 @: $(MAKE); $(unstage)
d32ab992 16921 @[ -f ./tcl/Makefile ] || exit 0; \
8c90b13a
L
16922 r=`${PWD_COMMAND}`; export r; \
16923 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 16924 $(HOST_EXPORTS) \
d32ab992 16925 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
16926 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16927 done; \
d32ab992 16928 echo "Doing dvi in tcl" ; \
215c351a 16929 (cd $(HOST_SUBDIR)/tcl && \
1358ccea
NN
16930 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16931 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16932 "RANLIB=$${RANLIB}" \
16933 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 16934 dvi) \
1358ccea
NN
16935 || exit 1
16936
d32ab992 16937@endif tcl
1358ccea 16938
b5422ad7
BM
16939.PHONY: maybe-pdf-tcl pdf-tcl
16940maybe-pdf-tcl:
16941@if tcl
16942maybe-pdf-tcl: pdf-tcl
16943
16944pdf-tcl: \
16945 configure-tcl
16946 @: $(MAKE); $(unstage)
16947 @[ -f ./tcl/Makefile ] || exit 0; \
16948 r=`${PWD_COMMAND}`; export r; \
16949 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
16950 $(HOST_EXPORTS) \
16951 for flag in $(EXTRA_HOST_FLAGS) ; do \
16952 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16953 done; \
16954 echo "Doing pdf in tcl" ; \
16955 (cd $(HOST_SUBDIR)/tcl && \
16956 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16957 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16958 "RANLIB=$${RANLIB}" \
16959 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16960 pdf) \
16961 || exit 1
16962
16963@endif tcl
16964
f87a2b2e
MS
16965.PHONY: maybe-html-tcl html-tcl
16966maybe-html-tcl:
16967@if tcl
16968maybe-html-tcl: html-tcl
16969
16970html-tcl: \
05750653 16971 configure-tcl
f41d6665 16972 @: $(MAKE); $(unstage)
f87a2b2e
MS
16973 @[ -f ./tcl/Makefile ] || exit 0; \
16974 r=`${PWD_COMMAND}`; export r; \
16975 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
16976 $(HOST_EXPORTS) \
16977 for flag in $(EXTRA_HOST_FLAGS) ; do \
16978 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
16979 done; \
16980 echo "Doing html in tcl" ; \
215c351a 16981 (cd $(HOST_SUBDIR)/tcl && \
f87a2b2e
MS
16982 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
16983 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
16984 "RANLIB=$${RANLIB}" \
16985 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
16986 html) \
16987 || exit 1
16988
16989@endif tcl
16990
d32ab992
PB
16991.PHONY: maybe-TAGS-tcl TAGS-tcl
16992maybe-TAGS-tcl:
16993@if tcl
16994maybe-TAGS-tcl: TAGS-tcl
1358ccea 16995
d32ab992 16996TAGS-tcl: \
05750653 16997 configure-tcl
f41d6665 16998 @: $(MAKE); $(unstage)
d32ab992 16999 @[ -f ./tcl/Makefile ] || exit 0; \
8c90b13a
L
17000 r=`${PWD_COMMAND}`; export r; \
17001 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 17002 $(HOST_EXPORTS) \
d32ab992 17003 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
17004 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17005 done; \
d32ab992 17006 echo "Doing TAGS in tcl" ; \
215c351a 17007 (cd $(HOST_SUBDIR)/tcl && \
1358ccea
NN
17008 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17009 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17010 "RANLIB=$${RANLIB}" \
17011 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17012 TAGS) \
1358ccea
NN
17013 || exit 1
17014
d32ab992 17015@endif tcl
1358ccea 17016
d32ab992
PB
17017.PHONY: maybe-install-info-tcl install-info-tcl
17018maybe-install-info-tcl:
17019@if tcl
17020maybe-install-info-tcl: install-info-tcl
1358ccea 17021
d32ab992
PB
17022install-info-tcl: \
17023 configure-tcl \
05750653 17024 info-tcl
f41d6665 17025 @: $(MAKE); $(unstage)
d32ab992 17026 @[ -f ./tcl/Makefile ] || exit 0; \
8c90b13a
L
17027 r=`${PWD_COMMAND}`; export r; \
17028 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 17029 $(HOST_EXPORTS) \
d32ab992 17030 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
17031 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17032 done; \
d32ab992 17033 echo "Doing install-info in tcl" ; \
215c351a 17034 (cd $(HOST_SUBDIR)/tcl && \
1358ccea
NN
17035 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17036 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17037 "RANLIB=$${RANLIB}" \
17038 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17039 install-info) \
1358ccea
NN
17040 || exit 1
17041
d32ab992 17042@endif tcl
1358ccea 17043
65d6e994
CD
17044.PHONY: maybe-install-html-tcl install-html-tcl
17045maybe-install-html-tcl:
17046@if tcl
17047maybe-install-html-tcl: install-html-tcl
17048
17049install-html-tcl: \
17050 configure-tcl \
17051 html-tcl
17052 @: $(MAKE); $(unstage)
17053 @[ -f ./tcl/Makefile ] || exit 0; \
17054 r=`${PWD_COMMAND}`; export r; \
17055 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17056 $(HOST_EXPORTS) \
17057 for flag in $(EXTRA_HOST_FLAGS) ; do \
17058 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17059 done; \
17060 echo "Doing install-html in tcl" ; \
17061 (cd $(HOST_SUBDIR)/tcl && \
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}" \
17066 install-html) \
17067 || exit 1
17068
17069@endif tcl
17070
d32ab992
PB
17071.PHONY: maybe-installcheck-tcl installcheck-tcl
17072maybe-installcheck-tcl:
17073@if tcl
17074maybe-installcheck-tcl: installcheck-tcl
1358ccea 17075
d32ab992 17076installcheck-tcl: \
05750653 17077 configure-tcl
f41d6665 17078 @: $(MAKE); $(unstage)
d32ab992 17079 @[ -f ./tcl/Makefile ] || exit 0; \
8c90b13a
L
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 \
1358ccea
NN
17084 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17085 done; \
d32ab992 17086 echo "Doing installcheck in tcl" ; \
215c351a 17087 (cd $(HOST_SUBDIR)/tcl && \
1358ccea
NN
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 installcheck) \
1358ccea
NN
17093 || exit 1
17094
d32ab992 17095@endif tcl
1358ccea 17096
d32ab992
PB
17097.PHONY: maybe-mostlyclean-tcl mostlyclean-tcl
17098maybe-mostlyclean-tcl:
17099@if tcl
17100maybe-mostlyclean-tcl: mostlyclean-tcl
1358ccea 17101
d32ab992
PB
17102# tcl doesn't support mostlyclean.
17103mostlyclean-tcl:
1358ccea 17104
d32ab992 17105@endif tcl
1358ccea 17106
d32ab992
PB
17107.PHONY: maybe-clean-tcl clean-tcl
17108maybe-clean-tcl:
17109@if tcl
17110maybe-clean-tcl: clean-tcl
1358ccea 17111
05750653 17112clean-tcl:
f41d6665 17113 @: $(MAKE); $(unstage)
d32ab992 17114 @[ -f ./tcl/Makefile ] || exit 0; \
8c90b13a
L
17115 r=`${PWD_COMMAND}`; export r; \
17116 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 17117 $(HOST_EXPORTS) \
d32ab992 17118 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
17119 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17120 done; \
d32ab992 17121 echo "Doing clean in tcl" ; \
215c351a 17122 (cd $(HOST_SUBDIR)/tcl && \
1358ccea
NN
17123 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17124 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17125 "RANLIB=$${RANLIB}" \
17126 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17127 clean) \
1358ccea
NN
17128 || exit 1
17129
d32ab992 17130@endif tcl
1358ccea 17131
d32ab992
PB
17132.PHONY: maybe-distclean-tcl distclean-tcl
17133maybe-distclean-tcl:
17134@if tcl
17135maybe-distclean-tcl: distclean-tcl
1358ccea 17136
05750653 17137distclean-tcl:
f41d6665 17138 @: $(MAKE); $(unstage)
d32ab992 17139 @[ -f ./tcl/Makefile ] || exit 0; \
8c90b13a
L
17140 r=`${PWD_COMMAND}`; export r; \
17141 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 17142 $(HOST_EXPORTS) \
d32ab992 17143 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
17144 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17145 done; \
d32ab992 17146 echo "Doing distclean in tcl" ; \
215c351a 17147 (cd $(HOST_SUBDIR)/tcl && \
1358ccea
NN
17148 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17149 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17150 "RANLIB=$${RANLIB}" \
17151 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17152 distclean) \
1358ccea
NN
17153 || exit 1
17154
d32ab992 17155@endif tcl
1358ccea 17156
d32ab992
PB
17157.PHONY: maybe-maintainer-clean-tcl maintainer-clean-tcl
17158maybe-maintainer-clean-tcl:
17159@if tcl
17160maybe-maintainer-clean-tcl: maintainer-clean-tcl
1358ccea 17161
05750653 17162maintainer-clean-tcl:
f41d6665 17163 @: $(MAKE); $(unstage)
d32ab992 17164 @[ -f ./tcl/Makefile ] || exit 0; \
8c90b13a
L
17165 r=`${PWD_COMMAND}`; export r; \
17166 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 17167 $(HOST_EXPORTS) \
d32ab992 17168 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
17169 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17170 done; \
d32ab992 17171 echo "Doing maintainer-clean in tcl" ; \
215c351a 17172 (cd $(HOST_SUBDIR)/tcl && \
1358ccea
NN
17173 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17174 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17175 "RANLIB=$${RANLIB}" \
17176 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17177 maintainer-clean) \
1358ccea
NN
17178 || exit 1
17179
d32ab992 17180@endif tcl
295f4e42
NN
17181
17182
25b42232 17183
d32ab992
PB
17184.PHONY: configure-itcl maybe-configure-itcl
17185maybe-configure-itcl:
3ff3adad
PB
17186@if gcc-bootstrap
17187configure-itcl: stage_current
17188@endif gcc-bootstrap
d32ab992
PB
17189@if itcl
17190maybe-configure-itcl: configure-itcl
cc11cc9b 17191configure-itcl:
f41d6665 17192 @: $(MAKE); $(unstage)
cc11cc9b 17193 @r=`${PWD_COMMAND}`; export r; \
295f4e42 17194 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
17195 test ! -f $(HOST_SUBDIR)/itcl/Makefile || exit 0; \
17196 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/itcl ; \
4fc4dd12 17197 $(HOST_EXPORTS) \
25b42232
PB
17198 echo Configuring in $(HOST_SUBDIR)/itcl; \
17199 cd "$(HOST_SUBDIR)/itcl" || exit 1; \
295f4e42 17200 case $(srcdir) in \
215c351a
PB
17201 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
17202 *) topdir=`echo $(HOST_SUBDIR)/itcl/ | \
17203 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 17204 esac; \
215c351a
PB
17205 srcdiroption="--srcdir=$${topdir}/itcl"; \
17206 libsrcdir="$$s/itcl"; \
295f4e42 17207 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 17208 $(HOST_CONFIGARGS) $${srcdiroption} \
295f4e42 17209 || exit 1
d32ab992 17210@endif itcl
295f4e42 17211
25b42232
PB
17212
17213
ce406537
PB
17214
17215
d32ab992
PB
17216.PHONY: all-itcl maybe-all-itcl
17217maybe-all-itcl:
3ff3adad
PB
17218@if gcc-bootstrap
17219all-itcl: stage_current
17220@endif gcc-bootstrap
d32ab992 17221@if itcl
7e0b5752 17222TARGET-itcl=all
d32ab992
PB
17223maybe-all-itcl: all-itcl
17224all-itcl: configure-itcl
f41d6665 17225 @: $(MAKE); $(unstage)
295f4e42 17226 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 17227 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 17228 $(HOST_EXPORTS) \
215c351a
PB
17229 (cd $(HOST_SUBDIR)/itcl && \
17230 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-itcl))
d32ab992 17231@endif itcl
1358ccea 17232
25b42232 17233
ce406537
PB
17234
17235
d32ab992
PB
17236.PHONY: check-itcl maybe-check-itcl
17237maybe-check-itcl:
17238@if itcl
17239maybe-check-itcl: check-itcl
1358ccea 17240
d32ab992 17241check-itcl:
f41d6665 17242 @: $(MAKE); $(unstage)
295f4e42 17243 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 17244 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 17245 $(HOST_EXPORTS) \
215c351a
PB
17246 (cd $(HOST_SUBDIR)/itcl && \
17247 $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 17248
d32ab992 17249@endif itcl
1358ccea 17250
d32ab992
PB
17251.PHONY: install-itcl maybe-install-itcl
17252maybe-install-itcl:
17253@if itcl
17254maybe-install-itcl: install-itcl
1358ccea 17255
d32ab992 17256install-itcl: installdirs
f41d6665 17257 @: $(MAKE); $(unstage)
295f4e42 17258 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 17259 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 17260 $(HOST_EXPORTS) \
215c351a 17261 (cd $(HOST_SUBDIR)/itcl && \
ace9ac7b 17262 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 17263
d32ab992 17264@endif itcl
1358ccea 17265
b5422ad7 17266# Other targets (info, dvi, pdf, etc.)
1358ccea 17267
d32ab992
PB
17268.PHONY: maybe-info-itcl info-itcl
17269maybe-info-itcl:
17270@if itcl
17271maybe-info-itcl: info-itcl
295f4e42 17272
d32ab992 17273info-itcl: \
05750653 17274 configure-itcl
f41d6665 17275 @: $(MAKE); $(unstage)
d32ab992 17276 @[ -f ./itcl/Makefile ] || exit 0; \
8c90b13a
L
17277 r=`${PWD_COMMAND}`; export r; \
17278 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 17279 $(HOST_EXPORTS) \
d32ab992 17280 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
17281 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17282 done; \
d32ab992 17283 echo "Doing info in itcl" ; \
215c351a 17284 (cd $(HOST_SUBDIR)/itcl && \
1358ccea
NN
17285 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17286 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17287 "RANLIB=$${RANLIB}" \
17288 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17289 info) \
1358ccea
NN
17290 || exit 1
17291
d32ab992 17292@endif itcl
1358ccea 17293
d32ab992
PB
17294.PHONY: maybe-dvi-itcl dvi-itcl
17295maybe-dvi-itcl:
17296@if itcl
17297maybe-dvi-itcl: dvi-itcl
1358ccea 17298
d32ab992 17299dvi-itcl: \
05750653 17300 configure-itcl
f41d6665 17301 @: $(MAKE); $(unstage)
d32ab992 17302 @[ -f ./itcl/Makefile ] || exit 0; \
8c90b13a
L
17303 r=`${PWD_COMMAND}`; export r; \
17304 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 17305 $(HOST_EXPORTS) \
d32ab992 17306 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
17307 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17308 done; \
d32ab992 17309 echo "Doing dvi in itcl" ; \
215c351a 17310 (cd $(HOST_SUBDIR)/itcl && \
1358ccea
NN
17311 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17312 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17313 "RANLIB=$${RANLIB}" \
17314 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17315 dvi) \
1358ccea
NN
17316 || exit 1
17317
d32ab992 17318@endif itcl
1358ccea 17319
b5422ad7
BM
17320.PHONY: maybe-pdf-itcl pdf-itcl
17321maybe-pdf-itcl:
17322@if itcl
17323maybe-pdf-itcl: pdf-itcl
17324
17325pdf-itcl: \
17326 configure-itcl
17327 @: $(MAKE); $(unstage)
17328 @[ -f ./itcl/Makefile ] || exit 0; \
17329 r=`${PWD_COMMAND}`; export r; \
17330 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17331 $(HOST_EXPORTS) \
17332 for flag in $(EXTRA_HOST_FLAGS) ; do \
17333 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17334 done; \
17335 echo "Doing pdf in itcl" ; \
17336 (cd $(HOST_SUBDIR)/itcl && \
17337 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17338 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17339 "RANLIB=$${RANLIB}" \
17340 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17341 pdf) \
17342 || exit 1
17343
17344@endif itcl
17345
f87a2b2e
MS
17346.PHONY: maybe-html-itcl html-itcl
17347maybe-html-itcl:
17348@if itcl
17349maybe-html-itcl: html-itcl
17350
17351html-itcl: \
05750653 17352 configure-itcl
f41d6665 17353 @: $(MAKE); $(unstage)
f87a2b2e
MS
17354 @[ -f ./itcl/Makefile ] || exit 0; \
17355 r=`${PWD_COMMAND}`; export r; \
17356 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
17357 $(HOST_EXPORTS) \
17358 for flag in $(EXTRA_HOST_FLAGS) ; do \
17359 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17360 done; \
17361 echo "Doing html in itcl" ; \
215c351a 17362 (cd $(HOST_SUBDIR)/itcl && \
f87a2b2e
MS
17363 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17364 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17365 "RANLIB=$${RANLIB}" \
17366 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17367 html) \
17368 || exit 1
17369
17370@endif itcl
17371
d32ab992
PB
17372.PHONY: maybe-TAGS-itcl TAGS-itcl
17373maybe-TAGS-itcl:
17374@if itcl
17375maybe-TAGS-itcl: TAGS-itcl
1358ccea 17376
d32ab992 17377TAGS-itcl: \
05750653 17378 configure-itcl
f41d6665 17379 @: $(MAKE); $(unstage)
d32ab992 17380 @[ -f ./itcl/Makefile ] || exit 0; \
8c90b13a
L
17381 r=`${PWD_COMMAND}`; export r; \
17382 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 17383 $(HOST_EXPORTS) \
d32ab992 17384 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
17385 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17386 done; \
d32ab992 17387 echo "Doing TAGS in itcl" ; \
215c351a 17388 (cd $(HOST_SUBDIR)/itcl && \
1358ccea
NN
17389 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17390 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17391 "RANLIB=$${RANLIB}" \
17392 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17393 TAGS) \
1358ccea
NN
17394 || exit 1
17395
d32ab992 17396@endif itcl
1358ccea 17397
d32ab992
PB
17398.PHONY: maybe-install-info-itcl install-info-itcl
17399maybe-install-info-itcl:
17400@if itcl
17401maybe-install-info-itcl: install-info-itcl
1358ccea 17402
d32ab992
PB
17403install-info-itcl: \
17404 configure-itcl \
05750653 17405 info-itcl
f41d6665 17406 @: $(MAKE); $(unstage)
d32ab992 17407 @[ -f ./itcl/Makefile ] || exit 0; \
8c90b13a
L
17408 r=`${PWD_COMMAND}`; export r; \
17409 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 17410 $(HOST_EXPORTS) \
d32ab992 17411 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
17412 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17413 done; \
d32ab992 17414 echo "Doing install-info in itcl" ; \
215c351a 17415 (cd $(HOST_SUBDIR)/itcl && \
1358ccea
NN
17416 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17417 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17418 "RANLIB=$${RANLIB}" \
17419 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17420 install-info) \
1358ccea
NN
17421 || exit 1
17422
d32ab992 17423@endif itcl
1358ccea 17424
65d6e994
CD
17425.PHONY: maybe-install-html-itcl install-html-itcl
17426maybe-install-html-itcl:
17427@if itcl
17428maybe-install-html-itcl: install-html-itcl
17429
17430install-html-itcl: \
17431 configure-itcl \
17432 html-itcl
17433 @: $(MAKE); $(unstage)
17434 @[ -f ./itcl/Makefile ] || exit 0; \
17435 r=`${PWD_COMMAND}`; export r; \
17436 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17437 $(HOST_EXPORTS) \
17438 for flag in $(EXTRA_HOST_FLAGS) ; do \
17439 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17440 done; \
17441 echo "Doing install-html in itcl" ; \
17442 (cd $(HOST_SUBDIR)/itcl && \
17443 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17444 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17445 "RANLIB=$${RANLIB}" \
17446 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
17447 install-html) \
17448 || exit 1
17449
17450@endif itcl
17451
d32ab992
PB
17452.PHONY: maybe-installcheck-itcl installcheck-itcl
17453maybe-installcheck-itcl:
17454@if itcl
17455maybe-installcheck-itcl: installcheck-itcl
1358ccea 17456
d32ab992 17457installcheck-itcl: \
05750653 17458 configure-itcl
f41d6665 17459 @: $(MAKE); $(unstage)
d32ab992 17460 @[ -f ./itcl/Makefile ] || exit 0; \
8c90b13a
L
17461 r=`${PWD_COMMAND}`; export r; \
17462 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 17463 $(HOST_EXPORTS) \
d32ab992 17464 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
17465 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17466 done; \
d32ab992 17467 echo "Doing installcheck in itcl" ; \
215c351a 17468 (cd $(HOST_SUBDIR)/itcl && \
1358ccea
NN
17469 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17470 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17471 "RANLIB=$${RANLIB}" \
17472 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17473 installcheck) \
1358ccea
NN
17474 || exit 1
17475
d32ab992 17476@endif itcl
1358ccea 17477
d32ab992
PB
17478.PHONY: maybe-mostlyclean-itcl mostlyclean-itcl
17479maybe-mostlyclean-itcl:
17480@if itcl
17481maybe-mostlyclean-itcl: mostlyclean-itcl
1358ccea 17482
05750653 17483mostlyclean-itcl:
f41d6665 17484 @: $(MAKE); $(unstage)
d32ab992 17485 @[ -f ./itcl/Makefile ] || exit 0; \
8c90b13a
L
17486 r=`${PWD_COMMAND}`; export r; \
17487 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 17488 $(HOST_EXPORTS) \
d32ab992 17489 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
17490 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17491 done; \
d32ab992 17492 echo "Doing mostlyclean in itcl" ; \
215c351a 17493 (cd $(HOST_SUBDIR)/itcl && \
1358ccea
NN
17494 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17495 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17496 "RANLIB=$${RANLIB}" \
17497 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17498 mostlyclean) \
1358ccea
NN
17499 || exit 1
17500
d32ab992 17501@endif itcl
1358ccea 17502
d32ab992
PB
17503.PHONY: maybe-clean-itcl clean-itcl
17504maybe-clean-itcl:
17505@if itcl
17506maybe-clean-itcl: clean-itcl
1358ccea 17507
05750653 17508clean-itcl:
f41d6665 17509 @: $(MAKE); $(unstage)
d32ab992 17510 @[ -f ./itcl/Makefile ] || exit 0; \
8c90b13a
L
17511 r=`${PWD_COMMAND}`; export r; \
17512 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 17513 $(HOST_EXPORTS) \
d32ab992 17514 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
17515 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17516 done; \
d32ab992 17517 echo "Doing clean in itcl" ; \
215c351a 17518 (cd $(HOST_SUBDIR)/itcl && \
1358ccea
NN
17519 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17520 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17521 "RANLIB=$${RANLIB}" \
17522 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17523 clean) \
1358ccea
NN
17524 || exit 1
17525
d32ab992 17526@endif itcl
1358ccea 17527
d32ab992
PB
17528.PHONY: maybe-distclean-itcl distclean-itcl
17529maybe-distclean-itcl:
17530@if itcl
17531maybe-distclean-itcl: distclean-itcl
1358ccea 17532
05750653 17533distclean-itcl:
f41d6665 17534 @: $(MAKE); $(unstage)
d32ab992 17535 @[ -f ./itcl/Makefile ] || exit 0; \
8c90b13a
L
17536 r=`${PWD_COMMAND}`; export r; \
17537 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 17538 $(HOST_EXPORTS) \
d32ab992 17539 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
17540 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17541 done; \
d32ab992 17542 echo "Doing distclean in itcl" ; \
215c351a 17543 (cd $(HOST_SUBDIR)/itcl && \
1358ccea
NN
17544 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17545 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17546 "RANLIB=$${RANLIB}" \
17547 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17548 distclean) \
1358ccea
NN
17549 || exit 1
17550
d32ab992 17551@endif itcl
1358ccea 17552
d32ab992
PB
17553.PHONY: maybe-maintainer-clean-itcl maintainer-clean-itcl
17554maybe-maintainer-clean-itcl:
17555@if itcl
17556maybe-maintainer-clean-itcl: maintainer-clean-itcl
1358ccea 17557
05750653 17558maintainer-clean-itcl:
f41d6665 17559 @: $(MAKE); $(unstage)
d32ab992 17560 @[ -f ./itcl/Makefile ] || exit 0; \
8c90b13a
L
17561 r=`${PWD_COMMAND}`; export r; \
17562 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 17563 $(HOST_EXPORTS) \
d32ab992 17564 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
17565 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
17566 done; \
d32ab992 17567 echo "Doing maintainer-clean in itcl" ; \
215c351a 17568 (cd $(HOST_SUBDIR)/itcl && \
1358ccea
NN
17569 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
17570 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
17571 "RANLIB=$${RANLIB}" \
17572 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 17573 maintainer-clean) \
1358ccea
NN
17574 || exit 1
17575
d32ab992 17576@endif itcl
1358ccea 17577
1358ccea 17578
25b42232 17579
d32ab992
PB
17580.PHONY: configure-ld maybe-configure-ld
17581maybe-configure-ld:
3ff3adad
PB
17582@if gcc-bootstrap
17583configure-ld: stage_current
17584@endif gcc-bootstrap
d32ab992
PB
17585@if ld
17586maybe-configure-ld: configure-ld
cc11cc9b 17587configure-ld:
cc11cc9b
PB
17588 @r=`${PWD_COMMAND}`; export r; \
17589 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
215c351a
PB
17590 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
17591 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
4fc4dd12 17592 $(HOST_EXPORTS) \
25b42232
PB
17593 echo Configuring in $(HOST_SUBDIR)/ld; \
17594 cd "$(HOST_SUBDIR)/ld" || exit 1; \
4f4e53dd 17595 case $(srcdir) in \
215c351a
PB
17596 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
17597 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
17598 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4f4e53dd 17599 esac; \
215c351a
PB
17600 srcdiroption="--srcdir=$${topdir}/ld"; \
17601 libsrcdir="$$s/ld"; \
4f4e53dd 17602 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 17603 $(HOST_CONFIGARGS) $${srcdiroption} \
4f4e53dd 17604 || exit 1
d32ab992 17605@endif ld
4f4e53dd 17606
25b42232
PB
17607
17608
ce406537
PB
17609.PHONY: configure-stage1-ld maybe-configure-stage1-ld
17610maybe-configure-stage1-ld:
17611@if ld-bootstrap
17612maybe-configure-stage1-ld: configure-stage1-ld
f41d6665 17613configure-stage1-ld:
cc11cc9b 17614 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
f41d6665 17615 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
cc11cc9b
PB
17616 @r=`${PWD_COMMAND}`; export r; \
17617 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 17618 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
ce406537
PB
17619 $(HOST_EXPORTS) \
17620 echo Configuring stage 1 in $(HOST_SUBDIR)/ld ; \
f41d6665 17621 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
ce406537
PB
17622 cd $(HOST_SUBDIR)/ld || exit 1; \
17623 case $(srcdir) in \
17624 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
17625 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
17626 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17627 esac; \
17628 srcdiroption="--srcdir=$${topdir}/ld"; \
17629 libsrcdir="$$s/ld"; \
17630 $(SHELL) $${libsrcdir}/configure \
17631 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 17632 \
8efea775 17633 --disable-intermodule $(STAGE1_CHECKING) --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
ce406537
PB
17634@endif ld-bootstrap
17635
17636.PHONY: configure-stage2-ld maybe-configure-stage2-ld
17637maybe-configure-stage2-ld:
17638@if ld-bootstrap
17639maybe-configure-stage2-ld: configure-stage2-ld
f41d6665 17640configure-stage2-ld:
cc11cc9b 17641 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
f41d6665 17642 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
cc11cc9b
PB
17643 @r=`${PWD_COMMAND}`; export r; \
17644 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 17645 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
ce406537
PB
17646 $(HOST_EXPORTS) \
17647 $(POSTSTAGE1_HOST_EXPORTS) \
17648 echo Configuring stage 2 in $(HOST_SUBDIR)/ld ; \
f41d6665 17649 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
ce406537
PB
17650 cd $(HOST_SUBDIR)/ld || exit 1; \
17651 case $(srcdir) in \
17652 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
17653 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
17654 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17655 esac; \
17656 srcdiroption="--srcdir=$${topdir}/ld"; \
17657 libsrcdir="$$s/ld"; \
17658 $(SHELL) $${libsrcdir}/configure \
17659 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 17660 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
17661 @stage2_werror_flag@
17662@endif ld-bootstrap
17663
17664.PHONY: configure-stage3-ld maybe-configure-stage3-ld
17665maybe-configure-stage3-ld:
17666@if ld-bootstrap
17667maybe-configure-stage3-ld: configure-stage3-ld
f41d6665 17668configure-stage3-ld:
cc11cc9b 17669 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
f41d6665 17670 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
cc11cc9b
PB
17671 @r=`${PWD_COMMAND}`; export r; \
17672 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 17673 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
ce406537
PB
17674 $(HOST_EXPORTS) \
17675 $(POSTSTAGE1_HOST_EXPORTS) \
17676 echo Configuring stage 3 in $(HOST_SUBDIR)/ld ; \
f41d6665 17677 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
ce406537
PB
17678 cd $(HOST_SUBDIR)/ld || exit 1; \
17679 case $(srcdir) in \
17680 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
17681 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
17682 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17683 esac; \
17684 srcdiroption="--srcdir=$${topdir}/ld"; \
17685 libsrcdir="$$s/ld"; \
17686 $(SHELL) $${libsrcdir}/configure \
17687 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 17688 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
17689 @stage2_werror_flag@
17690@endif ld-bootstrap
17691
17692.PHONY: configure-stage4-ld maybe-configure-stage4-ld
17693maybe-configure-stage4-ld:
17694@if ld-bootstrap
17695maybe-configure-stage4-ld: configure-stage4-ld
f41d6665 17696configure-stage4-ld:
cc11cc9b 17697 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
f41d6665 17698 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
cc11cc9b
PB
17699 @r=`${PWD_COMMAND}`; export r; \
17700 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 17701 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
ce406537
PB
17702 $(HOST_EXPORTS) \
17703 $(POSTSTAGE1_HOST_EXPORTS) \
17704 echo Configuring stage 4 in $(HOST_SUBDIR)/ld ; \
f41d6665 17705 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
ce406537
PB
17706 cd $(HOST_SUBDIR)/ld || exit 1; \
17707 case $(srcdir) in \
17708 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
17709 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
17710 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17711 esac; \
17712 srcdiroption="--srcdir=$${topdir}/ld"; \
17713 libsrcdir="$$s/ld"; \
17714 $(SHELL) $${libsrcdir}/configure \
17715 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 17716 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
17717 @stage2_werror_flag@
17718@endif ld-bootstrap
17719
17720.PHONY: configure-stageprofile-ld maybe-configure-stageprofile-ld
17721maybe-configure-stageprofile-ld:
17722@if ld-bootstrap
17723maybe-configure-stageprofile-ld: configure-stageprofile-ld
f41d6665 17724configure-stageprofile-ld:
cc11cc9b 17725 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
f41d6665 17726 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
cc11cc9b
PB
17727 @r=`${PWD_COMMAND}`; export r; \
17728 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 17729 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
ce406537
PB
17730 $(HOST_EXPORTS) \
17731 $(POSTSTAGE1_HOST_EXPORTS) \
17732 echo Configuring stage profile in $(HOST_SUBDIR)/ld ; \
f41d6665 17733 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
ce406537
PB
17734 cd $(HOST_SUBDIR)/ld || exit 1; \
17735 case $(srcdir) in \
17736 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
17737 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
17738 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17739 esac; \
17740 srcdiroption="--srcdir=$${topdir}/ld"; \
17741 libsrcdir="$$s/ld"; \
17742 $(SHELL) $${libsrcdir}/configure \
17743 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 17744 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
17745 @stage2_werror_flag@
17746@endif ld-bootstrap
17747
17748.PHONY: configure-stagefeedback-ld maybe-configure-stagefeedback-ld
17749maybe-configure-stagefeedback-ld:
17750@if ld-bootstrap
17751maybe-configure-stagefeedback-ld: configure-stagefeedback-ld
f41d6665 17752configure-stagefeedback-ld:
cc11cc9b 17753 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
f41d6665 17754 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld
cc11cc9b
PB
17755 @r=`${PWD_COMMAND}`; export r; \
17756 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 17757 test ! -f $(HOST_SUBDIR)/ld/Makefile || exit 0; \
ce406537
PB
17758 $(HOST_EXPORTS) \
17759 $(POSTSTAGE1_HOST_EXPORTS) \
17760 echo Configuring stage feedback in $(HOST_SUBDIR)/ld ; \
f41d6665 17761 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/ld ; \
ce406537
PB
17762 cd $(HOST_SUBDIR)/ld || exit 1; \
17763 case $(srcdir) in \
17764 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
17765 *) topdir=`echo $(HOST_SUBDIR)/ld/ | \
17766 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
17767 esac; \
17768 srcdiroption="--srcdir=$${topdir}/ld"; \
17769 libsrcdir="$$s/ld"; \
17770 $(SHELL) $${libsrcdir}/configure \
17771 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 17772 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
17773 @stage2_werror_flag@
17774@endif ld-bootstrap
17775
17776
17777
17778
17779
d32ab992
PB
17780.PHONY: all-ld maybe-all-ld
17781maybe-all-ld:
3ff3adad
PB
17782@if gcc-bootstrap
17783all-ld: stage_current
17784@endif gcc-bootstrap
d32ab992 17785@if ld
7e0b5752 17786TARGET-ld=all
d32ab992
PB
17787maybe-all-ld: all-ld
17788all-ld: configure-ld
cc11cc9b 17789 @r=`${PWD_COMMAND}`; export r; \
4f4e53dd 17790 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 17791 $(HOST_EXPORTS) \
215c351a
PB
17792 (cd $(HOST_SUBDIR)/ld && \
17793 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-ld))
d32ab992 17794@endif ld
4f4e53dd 17795
25b42232 17796
ce406537
PB
17797
17798.PHONY: all-stage1-ld maybe-all-stage1-ld
17799.PHONY: clean-stage1-ld maybe-clean-stage1-ld
17800maybe-all-stage1-ld:
17801maybe-clean-stage1-ld:
17802@if ld-bootstrap
17803maybe-all-stage1-ld: all-stage1-ld
17804all-stage1: all-stage1-ld
1061f99e 17805TARGET-stage1-ld = $(TARGET-ld)
ce406537 17806all-stage1-ld: configure-stage1-ld
cc11cc9b 17807 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
ce406537
PB
17808 @r=`${PWD_COMMAND}`; export r; \
17809 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17810 $(HOST_EXPORTS) \
17811 cd $(HOST_SUBDIR)/ld && \
cc11cc9b 17812 $(MAKE) $(FLAGS_TO_PASS) CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" \
1061f99e 17813 $(TARGET-stage1-ld)
ce406537
PB
17814
17815maybe-clean-stage1-ld: clean-stage1-ld
17816clean-stage1: clean-stage1-ld
17817clean-stage1-ld:
995a5697
PB
17818 @if [ $(current_stage) = stage1 ]; then \
17819 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
17820 else \
17821 [ -f $(HOST_SUBDIR)/stage1-ld/Makefile ] || exit 0; \
17822 $(MAKE) stage1-start; \
17823 fi; \
ce406537
PB
17824 cd $(HOST_SUBDIR)/ld && \
17825 $(MAKE) $(FLAGS_TO_PASS) \
cc11cc9b 17826 CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" clean
ce406537
PB
17827@endif ld-bootstrap
17828
17829
17830.PHONY: all-stage2-ld maybe-all-stage2-ld
17831.PHONY: clean-stage2-ld maybe-clean-stage2-ld
17832maybe-all-stage2-ld:
17833maybe-clean-stage2-ld:
17834@if ld-bootstrap
17835maybe-all-stage2-ld: all-stage2-ld
17836all-stage2: all-stage2-ld
1061f99e 17837TARGET-stage2-ld = $(TARGET-ld)
ce406537 17838all-stage2-ld: configure-stage2-ld
cc11cc9b 17839 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
ce406537
PB
17840 @r=`${PWD_COMMAND}`; export r; \
17841 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17842 $(HOST_EXPORTS) \
17843 $(POSTSTAGE1_HOST_EXPORTS) \
17844 cd $(HOST_SUBDIR)/ld && \
1061f99e
PB
17845 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
17846 $(TARGET-stage2-ld)
ce406537
PB
17847
17848maybe-clean-stage2-ld: clean-stage2-ld
17849clean-stage2: clean-stage2-ld
17850clean-stage2-ld:
995a5697
PB
17851 @if [ $(current_stage) = stage2 ]; then \
17852 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
17853 else \
17854 [ -f $(HOST_SUBDIR)/stage2-ld/Makefile ] || exit 0; \
17855 $(MAKE) stage2-start; \
17856 fi; \
ce406537
PB
17857 cd $(HOST_SUBDIR)/ld && \
17858 $(MAKE) $(FLAGS_TO_PASS) \
17859 $(POSTSTAGE1_FLAGS_TO_PASS) \
17860 clean
17861@endif ld-bootstrap
17862
17863
17864.PHONY: all-stage3-ld maybe-all-stage3-ld
17865.PHONY: clean-stage3-ld maybe-clean-stage3-ld
17866maybe-all-stage3-ld:
17867maybe-clean-stage3-ld:
17868@if ld-bootstrap
17869maybe-all-stage3-ld: all-stage3-ld
17870all-stage3: all-stage3-ld
1061f99e 17871TARGET-stage3-ld = $(TARGET-ld)
ce406537 17872all-stage3-ld: configure-stage3-ld
cc11cc9b 17873 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
ce406537
PB
17874 @r=`${PWD_COMMAND}`; export r; \
17875 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17876 $(HOST_EXPORTS) \
17877 $(POSTSTAGE1_HOST_EXPORTS) \
17878 cd $(HOST_SUBDIR)/ld && \
1061f99e
PB
17879 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
17880 $(TARGET-stage3-ld)
ce406537
PB
17881
17882maybe-clean-stage3-ld: clean-stage3-ld
17883clean-stage3: clean-stage3-ld
17884clean-stage3-ld:
995a5697
PB
17885 @if [ $(current_stage) = stage3 ]; then \
17886 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
17887 else \
17888 [ -f $(HOST_SUBDIR)/stage3-ld/Makefile ] || exit 0; \
17889 $(MAKE) stage3-start; \
17890 fi; \
ce406537
PB
17891 cd $(HOST_SUBDIR)/ld && \
17892 $(MAKE) $(FLAGS_TO_PASS) \
17893 $(POSTSTAGE1_FLAGS_TO_PASS) \
17894 clean
17895@endif ld-bootstrap
17896
17897
17898.PHONY: all-stage4-ld maybe-all-stage4-ld
17899.PHONY: clean-stage4-ld maybe-clean-stage4-ld
17900maybe-all-stage4-ld:
17901maybe-clean-stage4-ld:
17902@if ld-bootstrap
17903maybe-all-stage4-ld: all-stage4-ld
17904all-stage4: all-stage4-ld
1061f99e 17905TARGET-stage4-ld = $(TARGET-ld)
ce406537 17906all-stage4-ld: configure-stage4-ld
cc11cc9b 17907 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
ce406537
PB
17908 @r=`${PWD_COMMAND}`; export r; \
17909 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17910 $(HOST_EXPORTS) \
17911 $(POSTSTAGE1_HOST_EXPORTS) \
17912 cd $(HOST_SUBDIR)/ld && \
1061f99e
PB
17913 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
17914 $(TARGET-stage4-ld)
ce406537
PB
17915
17916maybe-clean-stage4-ld: clean-stage4-ld
17917clean-stage4: clean-stage4-ld
17918clean-stage4-ld:
995a5697
PB
17919 @if [ $(current_stage) = stage4 ]; then \
17920 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
17921 else \
17922 [ -f $(HOST_SUBDIR)/stage4-ld/Makefile ] || exit 0; \
17923 $(MAKE) stage4-start; \
17924 fi; \
ce406537
PB
17925 cd $(HOST_SUBDIR)/ld && \
17926 $(MAKE) $(FLAGS_TO_PASS) \
17927 $(POSTSTAGE1_FLAGS_TO_PASS) \
17928 clean
17929@endif ld-bootstrap
17930
17931
17932.PHONY: all-stageprofile-ld maybe-all-stageprofile-ld
17933.PHONY: clean-stageprofile-ld maybe-clean-stageprofile-ld
17934maybe-all-stageprofile-ld:
17935maybe-clean-stageprofile-ld:
17936@if ld-bootstrap
17937maybe-all-stageprofile-ld: all-stageprofile-ld
17938all-stageprofile: all-stageprofile-ld
1061f99e 17939TARGET-stageprofile-ld = $(TARGET-ld)
ce406537 17940all-stageprofile-ld: configure-stageprofile-ld
cc11cc9b 17941 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
ce406537
PB
17942 @r=`${PWD_COMMAND}`; export r; \
17943 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17944 $(HOST_EXPORTS) \
17945 $(POSTSTAGE1_HOST_EXPORTS) \
17946 cd $(HOST_SUBDIR)/ld && \
1061f99e
PB
17947 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" \
17948 $(TARGET-stageprofile-ld)
ce406537
PB
17949
17950maybe-clean-stageprofile-ld: clean-stageprofile-ld
17951clean-stageprofile: clean-stageprofile-ld
17952clean-stageprofile-ld:
995a5697
PB
17953 @if [ $(current_stage) = stageprofile ]; then \
17954 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
17955 else \
17956 [ -f $(HOST_SUBDIR)/stageprofile-ld/Makefile ] || exit 0; \
17957 $(MAKE) stageprofile-start; \
17958 fi; \
ce406537
PB
17959 cd $(HOST_SUBDIR)/ld && \
17960 $(MAKE) $(FLAGS_TO_PASS) \
17961 $(POSTSTAGE1_FLAGS_TO_PASS) \
17962 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean
17963@endif ld-bootstrap
17964
17965
17966.PHONY: all-stagefeedback-ld maybe-all-stagefeedback-ld
17967.PHONY: clean-stagefeedback-ld maybe-clean-stagefeedback-ld
17968maybe-all-stagefeedback-ld:
17969maybe-clean-stagefeedback-ld:
17970@if ld-bootstrap
17971maybe-all-stagefeedback-ld: all-stagefeedback-ld
17972all-stagefeedback: all-stagefeedback-ld
1061f99e 17973TARGET-stagefeedback-ld = $(TARGET-ld)
ce406537 17974all-stagefeedback-ld: configure-stagefeedback-ld
cc11cc9b 17975 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
ce406537
PB
17976 @r=`${PWD_COMMAND}`; export r; \
17977 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
17978 $(HOST_EXPORTS) \
17979 $(POSTSTAGE1_HOST_EXPORTS) \
17980 cd $(HOST_SUBDIR)/ld && \
1061f99e
PB
17981 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-use" \
17982 $(TARGET-stagefeedback-ld)
ce406537
PB
17983
17984maybe-clean-stagefeedback-ld: clean-stagefeedback-ld
17985clean-stagefeedback: clean-stagefeedback-ld
17986clean-stagefeedback-ld:
995a5697
PB
17987 @if [ $(current_stage) = stagefeedback ]; then \
17988 [ -f $(HOST_SUBDIR)/ld/Makefile ] || exit 0; \
17989 else \
17990 [ -f $(HOST_SUBDIR)/stagefeedback-ld/Makefile ] || exit 0; \
17991 $(MAKE) stagefeedback-start; \
17992 fi; \
ce406537
PB
17993 cd $(HOST_SUBDIR)/ld && \
17994 $(MAKE) $(FLAGS_TO_PASS) \
17995 $(POSTSTAGE1_FLAGS_TO_PASS) \
17996 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean
17997@endif ld-bootstrap
17998
17999
18000
18001
18002
d32ab992
PB
18003.PHONY: check-ld maybe-check-ld
18004maybe-check-ld:
18005@if ld
18006maybe-check-ld: check-ld
4f4e53dd 18007
d32ab992 18008check-ld:
f41d6665 18009 @: $(MAKE); $(unstage)
4f4e53dd
PB
18010 @r=`${PWD_COMMAND}`; export r; \
18011 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 18012 $(HOST_EXPORTS) \
215c351a
PB
18013 (cd $(HOST_SUBDIR)/ld && \
18014 $(MAKE) $(FLAGS_TO_PASS) check)
4f4e53dd 18015
d32ab992 18016@endif ld
4f4e53dd 18017
d32ab992
PB
18018.PHONY: install-ld maybe-install-ld
18019maybe-install-ld:
18020@if ld
18021maybe-install-ld: install-ld
4f4e53dd 18022
d32ab992 18023install-ld: installdirs
f41d6665 18024 @: $(MAKE); $(unstage)
4f4e53dd
PB
18025 @r=`${PWD_COMMAND}`; export r; \
18026 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 18027 $(HOST_EXPORTS) \
215c351a 18028 (cd $(HOST_SUBDIR)/ld && \
ace9ac7b 18029 $(MAKE) $(FLAGS_TO_PASS) install)
4f4e53dd 18030
d32ab992 18031@endif ld
4f4e53dd 18032
b5422ad7 18033# Other targets (info, dvi, pdf, etc.)
4f4e53dd 18034
d32ab992
PB
18035.PHONY: maybe-info-ld info-ld
18036maybe-info-ld:
18037@if ld
18038maybe-info-ld: info-ld
4f4e53dd 18039
d32ab992 18040info-ld: \
05750653 18041 configure-ld
d32ab992 18042 @[ -f ./ld/Makefile ] || exit 0; \
4f4e53dd
PB
18043 r=`${PWD_COMMAND}`; export r; \
18044 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 18045 $(HOST_EXPORTS) \
d32ab992 18046 for flag in $(EXTRA_HOST_FLAGS) ; do \
4f4e53dd
PB
18047 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18048 done; \
d32ab992 18049 echo "Doing info in ld" ; \
215c351a 18050 (cd $(HOST_SUBDIR)/ld && \
4f4e53dd
PB
18051 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18052 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18053 "RANLIB=$${RANLIB}" \
18054 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 18055 info) \
4f4e53dd
PB
18056 || exit 1
18057
d32ab992 18058@endif ld
4f4e53dd 18059
d32ab992
PB
18060.PHONY: maybe-dvi-ld dvi-ld
18061maybe-dvi-ld:
18062@if ld
18063maybe-dvi-ld: dvi-ld
4f4e53dd 18064
d32ab992 18065dvi-ld: \
05750653 18066 configure-ld
d32ab992 18067 @[ -f ./ld/Makefile ] || exit 0; \
4f4e53dd
PB
18068 r=`${PWD_COMMAND}`; export r; \
18069 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 18070 $(HOST_EXPORTS) \
d32ab992 18071 for flag in $(EXTRA_HOST_FLAGS) ; do \
4f4e53dd
PB
18072 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18073 done; \
d32ab992 18074 echo "Doing dvi in ld" ; \
215c351a 18075 (cd $(HOST_SUBDIR)/ld && \
4f4e53dd
PB
18076 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18077 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18078 "RANLIB=$${RANLIB}" \
18079 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 18080 dvi) \
4f4e53dd
PB
18081 || exit 1
18082
d32ab992 18083@endif ld
4f4e53dd 18084
b5422ad7
BM
18085.PHONY: maybe-pdf-ld pdf-ld
18086maybe-pdf-ld:
18087@if ld
18088maybe-pdf-ld: pdf-ld
18089
18090pdf-ld: \
18091 configure-ld
18092 @[ -f ./ld/Makefile ] || exit 0; \
18093 r=`${PWD_COMMAND}`; export r; \
18094 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18095 $(HOST_EXPORTS) \
18096 for flag in $(EXTRA_HOST_FLAGS) ; do \
18097 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18098 done; \
18099 echo "Doing pdf in ld" ; \
18100 (cd $(HOST_SUBDIR)/ld && \
18101 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18102 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18103 "RANLIB=$${RANLIB}" \
18104 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18105 pdf) \
18106 || exit 1
18107
18108@endif ld
18109
f87a2b2e
MS
18110.PHONY: maybe-html-ld html-ld
18111maybe-html-ld:
18112@if ld
18113maybe-html-ld: html-ld
18114
18115html-ld: \
05750653 18116 configure-ld
f87a2b2e
MS
18117 @[ -f ./ld/Makefile ] || exit 0; \
18118 r=`${PWD_COMMAND}`; export r; \
18119 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
18120 $(HOST_EXPORTS) \
18121 for flag in $(EXTRA_HOST_FLAGS) ; do \
18122 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18123 done; \
18124 echo "Doing html in ld" ; \
215c351a 18125 (cd $(HOST_SUBDIR)/ld && \
f87a2b2e
MS
18126 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18127 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18128 "RANLIB=$${RANLIB}" \
18129 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18130 html) \
18131 || exit 1
18132
18133@endif ld
18134
d32ab992
PB
18135.PHONY: maybe-TAGS-ld TAGS-ld
18136maybe-TAGS-ld:
18137@if ld
18138maybe-TAGS-ld: TAGS-ld
4f4e53dd 18139
d32ab992 18140TAGS-ld: \
05750653 18141 configure-ld
d32ab992 18142 @[ -f ./ld/Makefile ] || exit 0; \
4f4e53dd
PB
18143 r=`${PWD_COMMAND}`; export r; \
18144 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 18145 $(HOST_EXPORTS) \
d32ab992 18146 for flag in $(EXTRA_HOST_FLAGS) ; do \
4f4e53dd
PB
18147 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18148 done; \
d32ab992 18149 echo "Doing TAGS in ld" ; \
215c351a 18150 (cd $(HOST_SUBDIR)/ld && \
4f4e53dd
PB
18151 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18152 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18153 "RANLIB=$${RANLIB}" \
18154 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 18155 TAGS) \
4f4e53dd
PB
18156 || exit 1
18157
d32ab992 18158@endif ld
4f4e53dd 18159
d32ab992
PB
18160.PHONY: maybe-install-info-ld install-info-ld
18161maybe-install-info-ld:
18162@if ld
18163maybe-install-info-ld: install-info-ld
4f4e53dd 18164
d32ab992
PB
18165install-info-ld: \
18166 configure-ld \
05750653 18167 info-ld
d32ab992 18168 @[ -f ./ld/Makefile ] || exit 0; \
4f4e53dd
PB
18169 r=`${PWD_COMMAND}`; export r; \
18170 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 18171 $(HOST_EXPORTS) \
d32ab992 18172 for flag in $(EXTRA_HOST_FLAGS) ; do \
4f4e53dd
PB
18173 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18174 done; \
d32ab992 18175 echo "Doing install-info in ld" ; \
215c351a 18176 (cd $(HOST_SUBDIR)/ld && \
4f4e53dd
PB
18177 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18178 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18179 "RANLIB=$${RANLIB}" \
18180 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 18181 install-info) \
4f4e53dd
PB
18182 || exit 1
18183
d32ab992 18184@endif ld
4f4e53dd 18185
65d6e994
CD
18186.PHONY: maybe-install-html-ld install-html-ld
18187maybe-install-html-ld:
18188@if ld
18189maybe-install-html-ld: install-html-ld
18190
18191install-html-ld: \
18192 configure-ld \
18193 html-ld
18194 @[ -f ./ld/Makefile ] || exit 0; \
18195 r=`${PWD_COMMAND}`; export r; \
18196 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18197 $(HOST_EXPORTS) \
18198 for flag in $(EXTRA_HOST_FLAGS) ; do \
18199 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18200 done; \
18201 echo "Doing install-html in ld" ; \
18202 (cd $(HOST_SUBDIR)/ld && \
18203 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18204 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18205 "RANLIB=$${RANLIB}" \
18206 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18207 install-html) \
18208 || exit 1
18209
18210@endif ld
18211
d32ab992
PB
18212.PHONY: maybe-installcheck-ld installcheck-ld
18213maybe-installcheck-ld:
18214@if ld
18215maybe-installcheck-ld: installcheck-ld
4f4e53dd 18216
d32ab992 18217installcheck-ld: \
05750653 18218 configure-ld
d32ab992 18219 @[ -f ./ld/Makefile ] || exit 0; \
4f4e53dd
PB
18220 r=`${PWD_COMMAND}`; export r; \
18221 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 18222 $(HOST_EXPORTS) \
d32ab992 18223 for flag in $(EXTRA_HOST_FLAGS) ; do \
4f4e53dd
PB
18224 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18225 done; \
d32ab992 18226 echo "Doing installcheck in ld" ; \
215c351a 18227 (cd $(HOST_SUBDIR)/ld && \
4f4e53dd
PB
18228 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18229 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18230 "RANLIB=$${RANLIB}" \
18231 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 18232 installcheck) \
4f4e53dd
PB
18233 || exit 1
18234
d32ab992 18235@endif ld
4f4e53dd 18236
d32ab992
PB
18237.PHONY: maybe-mostlyclean-ld mostlyclean-ld
18238maybe-mostlyclean-ld:
18239@if ld
18240maybe-mostlyclean-ld: mostlyclean-ld
4f4e53dd 18241
05750653 18242mostlyclean-ld:
d32ab992 18243 @[ -f ./ld/Makefile ] || exit 0; \
4f4e53dd
PB
18244 r=`${PWD_COMMAND}`; export r; \
18245 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 18246 $(HOST_EXPORTS) \
d32ab992 18247 for flag in $(EXTRA_HOST_FLAGS) ; do \
4f4e53dd
PB
18248 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18249 done; \
d32ab992 18250 echo "Doing mostlyclean in ld" ; \
215c351a 18251 (cd $(HOST_SUBDIR)/ld && \
4f4e53dd
PB
18252 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18253 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18254 "RANLIB=$${RANLIB}" \
18255 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 18256 mostlyclean) \
4f4e53dd
PB
18257 || exit 1
18258
d32ab992 18259@endif ld
4f4e53dd 18260
d32ab992
PB
18261.PHONY: maybe-clean-ld clean-ld
18262maybe-clean-ld:
18263@if ld
18264maybe-clean-ld: clean-ld
4f4e53dd 18265
05750653 18266clean-ld:
d32ab992 18267 @[ -f ./ld/Makefile ] || exit 0; \
4f4e53dd
PB
18268 r=`${PWD_COMMAND}`; export r; \
18269 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 18270 $(HOST_EXPORTS) \
d32ab992 18271 for flag in $(EXTRA_HOST_FLAGS) ; do \
4f4e53dd
PB
18272 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18273 done; \
d32ab992 18274 echo "Doing clean in ld" ; \
215c351a 18275 (cd $(HOST_SUBDIR)/ld && \
4f4e53dd
PB
18276 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18277 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18278 "RANLIB=$${RANLIB}" \
18279 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 18280 clean) \
4f4e53dd
PB
18281 || exit 1
18282
d32ab992 18283@endif ld
4f4e53dd 18284
d32ab992
PB
18285.PHONY: maybe-distclean-ld distclean-ld
18286maybe-distclean-ld:
18287@if ld
18288maybe-distclean-ld: distclean-ld
4f4e53dd 18289
05750653 18290distclean-ld:
d32ab992 18291 @[ -f ./ld/Makefile ] || exit 0; \
4f4e53dd
PB
18292 r=`${PWD_COMMAND}`; export r; \
18293 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 18294 $(HOST_EXPORTS) \
d32ab992 18295 for flag in $(EXTRA_HOST_FLAGS) ; do \
4f4e53dd
PB
18296 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18297 done; \
d32ab992 18298 echo "Doing distclean in ld" ; \
215c351a 18299 (cd $(HOST_SUBDIR)/ld && \
4f4e53dd
PB
18300 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18301 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18302 "RANLIB=$${RANLIB}" \
18303 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 18304 distclean) \
4f4e53dd
PB
18305 || exit 1
18306
d32ab992 18307@endif ld
4f4e53dd 18308
d32ab992
PB
18309.PHONY: maybe-maintainer-clean-ld maintainer-clean-ld
18310maybe-maintainer-clean-ld:
18311@if ld
18312maybe-maintainer-clean-ld: maintainer-clean-ld
4f4e53dd 18313
05750653 18314maintainer-clean-ld:
d32ab992 18315 @[ -f ./ld/Makefile ] || exit 0; \
4f4e53dd
PB
18316 r=`${PWD_COMMAND}`; export r; \
18317 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 18318 $(HOST_EXPORTS) \
d32ab992 18319 for flag in $(EXTRA_HOST_FLAGS) ; do \
4f4e53dd
PB
18320 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18321 done; \
d32ab992 18322 echo "Doing maintainer-clean in ld" ; \
215c351a 18323 (cd $(HOST_SUBDIR)/ld && \
4f4e53dd
PB
18324 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18325 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18326 "RANLIB=$${RANLIB}" \
18327 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 18328 maintainer-clean) \
4f4e53dd
PB
18329 || exit 1
18330
d32ab992 18331@endif ld
4f4e53dd
PB
18332
18333
25b42232 18334
d32ab992
PB
18335.PHONY: configure-libcpp maybe-configure-libcpp
18336maybe-configure-libcpp:
3ff3adad
PB
18337@if gcc-bootstrap
18338configure-libcpp: stage_current
18339@endif gcc-bootstrap
d32ab992
PB
18340@if libcpp
18341maybe-configure-libcpp: configure-libcpp
cc11cc9b 18342configure-libcpp:
cc11cc9b
PB
18343 @r=`${PWD_COMMAND}`; export r; \
18344 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
215c351a
PB
18345 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
18346 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
4fc4dd12 18347 $(HOST_EXPORTS) \
25b42232
PB
18348 echo Configuring in $(HOST_SUBDIR)/libcpp; \
18349 cd "$(HOST_SUBDIR)/libcpp" || exit 1; \
295f4e42 18350 case $(srcdir) in \
215c351a
PB
18351 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
18352 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
18353 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 18354 esac; \
215c351a
PB
18355 srcdiroption="--srcdir=$${topdir}/libcpp"; \
18356 libsrcdir="$$s/libcpp"; \
295f4e42 18357 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 18358 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 18359 || exit 1
d32ab992 18360@endif libcpp
1358ccea 18361
25b42232
PB
18362
18363
ce406537
PB
18364.PHONY: configure-stage1-libcpp maybe-configure-stage1-libcpp
18365maybe-configure-stage1-libcpp:
18366@if libcpp-bootstrap
18367maybe-configure-stage1-libcpp: configure-stage1-libcpp
f41d6665 18368configure-stage1-libcpp:
cc11cc9b 18369 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
f41d6665 18370 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
cc11cc9b
PB
18371 @r=`${PWD_COMMAND}`; export r; \
18372 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 18373 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
ce406537
PB
18374 $(HOST_EXPORTS) \
18375 echo Configuring stage 1 in $(HOST_SUBDIR)/libcpp ; \
f41d6665 18376 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
ce406537
PB
18377 cd $(HOST_SUBDIR)/libcpp || exit 1; \
18378 case $(srcdir) in \
18379 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
18380 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
18381 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18382 esac; \
18383 srcdiroption="--srcdir=$${topdir}/libcpp"; \
18384 libsrcdir="$$s/libcpp"; \
18385 $(SHELL) $${libsrcdir}/configure \
18386 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 18387 \
8efea775 18388 --disable-intermodule $(STAGE1_CHECKING) --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
ce406537
PB
18389@endif libcpp-bootstrap
18390
18391.PHONY: configure-stage2-libcpp maybe-configure-stage2-libcpp
18392maybe-configure-stage2-libcpp:
18393@if libcpp-bootstrap
18394maybe-configure-stage2-libcpp: configure-stage2-libcpp
f41d6665 18395configure-stage2-libcpp:
cc11cc9b 18396 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
f41d6665 18397 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
cc11cc9b
PB
18398 @r=`${PWD_COMMAND}`; export r; \
18399 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 18400 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
ce406537
PB
18401 $(HOST_EXPORTS) \
18402 $(POSTSTAGE1_HOST_EXPORTS) \
18403 echo Configuring stage 2 in $(HOST_SUBDIR)/libcpp ; \
f41d6665 18404 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
ce406537
PB
18405 cd $(HOST_SUBDIR)/libcpp || exit 1; \
18406 case $(srcdir) in \
18407 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
18408 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
18409 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18410 esac; \
18411 srcdiroption="--srcdir=$${topdir}/libcpp"; \
18412 libsrcdir="$$s/libcpp"; \
18413 $(SHELL) $${libsrcdir}/configure \
18414 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 18415 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
18416 @stage2_werror_flag@
18417@endif libcpp-bootstrap
18418
18419.PHONY: configure-stage3-libcpp maybe-configure-stage3-libcpp
18420maybe-configure-stage3-libcpp:
18421@if libcpp-bootstrap
18422maybe-configure-stage3-libcpp: configure-stage3-libcpp
f41d6665 18423configure-stage3-libcpp:
cc11cc9b 18424 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
f41d6665 18425 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
cc11cc9b
PB
18426 @r=`${PWD_COMMAND}`; export r; \
18427 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 18428 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
ce406537
PB
18429 $(HOST_EXPORTS) \
18430 $(POSTSTAGE1_HOST_EXPORTS) \
18431 echo Configuring stage 3 in $(HOST_SUBDIR)/libcpp ; \
f41d6665 18432 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
ce406537
PB
18433 cd $(HOST_SUBDIR)/libcpp || exit 1; \
18434 case $(srcdir) in \
18435 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
18436 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
18437 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18438 esac; \
18439 srcdiroption="--srcdir=$${topdir}/libcpp"; \
18440 libsrcdir="$$s/libcpp"; \
18441 $(SHELL) $${libsrcdir}/configure \
18442 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 18443 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
18444 @stage2_werror_flag@
18445@endif libcpp-bootstrap
18446
18447.PHONY: configure-stage4-libcpp maybe-configure-stage4-libcpp
18448maybe-configure-stage4-libcpp:
18449@if libcpp-bootstrap
18450maybe-configure-stage4-libcpp: configure-stage4-libcpp
f41d6665 18451configure-stage4-libcpp:
cc11cc9b 18452 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
f41d6665 18453 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
cc11cc9b
PB
18454 @r=`${PWD_COMMAND}`; export r; \
18455 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 18456 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
ce406537
PB
18457 $(HOST_EXPORTS) \
18458 $(POSTSTAGE1_HOST_EXPORTS) \
18459 echo Configuring stage 4 in $(HOST_SUBDIR)/libcpp ; \
f41d6665 18460 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
ce406537
PB
18461 cd $(HOST_SUBDIR)/libcpp || exit 1; \
18462 case $(srcdir) in \
18463 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
18464 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
18465 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18466 esac; \
18467 srcdiroption="--srcdir=$${topdir}/libcpp"; \
18468 libsrcdir="$$s/libcpp"; \
18469 $(SHELL) $${libsrcdir}/configure \
18470 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 18471 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
18472 @stage2_werror_flag@
18473@endif libcpp-bootstrap
18474
18475.PHONY: configure-stageprofile-libcpp maybe-configure-stageprofile-libcpp
18476maybe-configure-stageprofile-libcpp:
18477@if libcpp-bootstrap
18478maybe-configure-stageprofile-libcpp: configure-stageprofile-libcpp
f41d6665 18479configure-stageprofile-libcpp:
cc11cc9b 18480 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
f41d6665 18481 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
cc11cc9b
PB
18482 @r=`${PWD_COMMAND}`; export r; \
18483 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 18484 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
ce406537
PB
18485 $(HOST_EXPORTS) \
18486 $(POSTSTAGE1_HOST_EXPORTS) \
18487 echo Configuring stage profile in $(HOST_SUBDIR)/libcpp ; \
f41d6665 18488 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
ce406537
PB
18489 cd $(HOST_SUBDIR)/libcpp || exit 1; \
18490 case $(srcdir) in \
18491 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
18492 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
18493 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18494 esac; \
18495 srcdiroption="--srcdir=$${topdir}/libcpp"; \
18496 libsrcdir="$$s/libcpp"; \
18497 $(SHELL) $${libsrcdir}/configure \
18498 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 18499 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
18500 @stage2_werror_flag@
18501@endif libcpp-bootstrap
18502
18503.PHONY: configure-stagefeedback-libcpp maybe-configure-stagefeedback-libcpp
18504maybe-configure-stagefeedback-libcpp:
18505@if libcpp-bootstrap
18506maybe-configure-stagefeedback-libcpp: configure-stagefeedback-libcpp
f41d6665 18507configure-stagefeedback-libcpp:
cc11cc9b 18508 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
f41d6665 18509 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp
cc11cc9b
PB
18510 @r=`${PWD_COMMAND}`; export r; \
18511 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 18512 test ! -f $(HOST_SUBDIR)/libcpp/Makefile || exit 0; \
ce406537
PB
18513 $(HOST_EXPORTS) \
18514 $(POSTSTAGE1_HOST_EXPORTS) \
18515 echo Configuring stage feedback in $(HOST_SUBDIR)/libcpp ; \
f41d6665 18516 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libcpp ; \
ce406537
PB
18517 cd $(HOST_SUBDIR)/libcpp || exit 1; \
18518 case $(srcdir) in \
18519 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
18520 *) topdir=`echo $(HOST_SUBDIR)/libcpp/ | \
18521 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
18522 esac; \
18523 srcdiroption="--srcdir=$${topdir}/libcpp"; \
18524 libsrcdir="$$s/libcpp"; \
18525 $(SHELL) $${libsrcdir}/configure \
18526 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 18527 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
18528 @stage2_werror_flag@
18529@endif libcpp-bootstrap
18530
18531
18532
18533
18534
d32ab992
PB
18535.PHONY: all-libcpp maybe-all-libcpp
18536maybe-all-libcpp:
3ff3adad
PB
18537@if gcc-bootstrap
18538all-libcpp: stage_current
18539@endif gcc-bootstrap
d32ab992 18540@if libcpp
7e0b5752 18541TARGET-libcpp=all
d32ab992
PB
18542maybe-all-libcpp: all-libcpp
18543all-libcpp: configure-libcpp
cc11cc9b 18544 @r=`${PWD_COMMAND}`; export r; \
295f4e42 18545 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 18546 $(HOST_EXPORTS) \
215c351a
PB
18547 (cd $(HOST_SUBDIR)/libcpp && \
18548 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-libcpp))
d32ab992 18549@endif libcpp
1358ccea 18550
25b42232 18551
ce406537
PB
18552
18553.PHONY: all-stage1-libcpp maybe-all-stage1-libcpp
18554.PHONY: clean-stage1-libcpp maybe-clean-stage1-libcpp
18555maybe-all-stage1-libcpp:
18556maybe-clean-stage1-libcpp:
18557@if libcpp-bootstrap
18558maybe-all-stage1-libcpp: all-stage1-libcpp
18559all-stage1: all-stage1-libcpp
1061f99e 18560TARGET-stage1-libcpp = $(TARGET-libcpp)
ce406537 18561all-stage1-libcpp: configure-stage1-libcpp
cc11cc9b 18562 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
ce406537
PB
18563 @r=`${PWD_COMMAND}`; export r; \
18564 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18565 $(HOST_EXPORTS) \
18566 cd $(HOST_SUBDIR)/libcpp && \
cc11cc9b 18567 $(MAKE) $(FLAGS_TO_PASS) CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" \
1061f99e 18568 $(TARGET-stage1-libcpp)
ce406537
PB
18569
18570maybe-clean-stage1-libcpp: clean-stage1-libcpp
18571clean-stage1: clean-stage1-libcpp
18572clean-stage1-libcpp:
995a5697
PB
18573 @if [ $(current_stage) = stage1 ]; then \
18574 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
18575 else \
18576 [ -f $(HOST_SUBDIR)/stage1-libcpp/Makefile ] || exit 0; \
18577 $(MAKE) stage1-start; \
18578 fi; \
ce406537
PB
18579 cd $(HOST_SUBDIR)/libcpp && \
18580 $(MAKE) $(FLAGS_TO_PASS) \
cc11cc9b 18581 CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" clean
ce406537
PB
18582@endif libcpp-bootstrap
18583
18584
18585.PHONY: all-stage2-libcpp maybe-all-stage2-libcpp
18586.PHONY: clean-stage2-libcpp maybe-clean-stage2-libcpp
18587maybe-all-stage2-libcpp:
18588maybe-clean-stage2-libcpp:
18589@if libcpp-bootstrap
18590maybe-all-stage2-libcpp: all-stage2-libcpp
18591all-stage2: all-stage2-libcpp
1061f99e 18592TARGET-stage2-libcpp = $(TARGET-libcpp)
ce406537 18593all-stage2-libcpp: configure-stage2-libcpp
cc11cc9b 18594 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
ce406537
PB
18595 @r=`${PWD_COMMAND}`; export r; \
18596 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18597 $(HOST_EXPORTS) \
18598 $(POSTSTAGE1_HOST_EXPORTS) \
18599 cd $(HOST_SUBDIR)/libcpp && \
1061f99e
PB
18600 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
18601 $(TARGET-stage2-libcpp)
ce406537
PB
18602
18603maybe-clean-stage2-libcpp: clean-stage2-libcpp
18604clean-stage2: clean-stage2-libcpp
18605clean-stage2-libcpp:
995a5697
PB
18606 @if [ $(current_stage) = stage2 ]; then \
18607 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
18608 else \
18609 [ -f $(HOST_SUBDIR)/stage2-libcpp/Makefile ] || exit 0; \
18610 $(MAKE) stage2-start; \
18611 fi; \
ce406537
PB
18612 cd $(HOST_SUBDIR)/libcpp && \
18613 $(MAKE) $(FLAGS_TO_PASS) \
18614 $(POSTSTAGE1_FLAGS_TO_PASS) \
18615 clean
18616@endif libcpp-bootstrap
18617
18618
18619.PHONY: all-stage3-libcpp maybe-all-stage3-libcpp
18620.PHONY: clean-stage3-libcpp maybe-clean-stage3-libcpp
18621maybe-all-stage3-libcpp:
18622maybe-clean-stage3-libcpp:
18623@if libcpp-bootstrap
18624maybe-all-stage3-libcpp: all-stage3-libcpp
18625all-stage3: all-stage3-libcpp
1061f99e 18626TARGET-stage3-libcpp = $(TARGET-libcpp)
ce406537 18627all-stage3-libcpp: configure-stage3-libcpp
cc11cc9b 18628 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
ce406537
PB
18629 @r=`${PWD_COMMAND}`; export r; \
18630 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18631 $(HOST_EXPORTS) \
18632 $(POSTSTAGE1_HOST_EXPORTS) \
18633 cd $(HOST_SUBDIR)/libcpp && \
1061f99e
PB
18634 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
18635 $(TARGET-stage3-libcpp)
ce406537
PB
18636
18637maybe-clean-stage3-libcpp: clean-stage3-libcpp
18638clean-stage3: clean-stage3-libcpp
18639clean-stage3-libcpp:
995a5697
PB
18640 @if [ $(current_stage) = stage3 ]; then \
18641 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
18642 else \
18643 [ -f $(HOST_SUBDIR)/stage3-libcpp/Makefile ] || exit 0; \
18644 $(MAKE) stage3-start; \
18645 fi; \
ce406537
PB
18646 cd $(HOST_SUBDIR)/libcpp && \
18647 $(MAKE) $(FLAGS_TO_PASS) \
18648 $(POSTSTAGE1_FLAGS_TO_PASS) \
18649 clean
18650@endif libcpp-bootstrap
18651
18652
18653.PHONY: all-stage4-libcpp maybe-all-stage4-libcpp
18654.PHONY: clean-stage4-libcpp maybe-clean-stage4-libcpp
18655maybe-all-stage4-libcpp:
18656maybe-clean-stage4-libcpp:
18657@if libcpp-bootstrap
18658maybe-all-stage4-libcpp: all-stage4-libcpp
18659all-stage4: all-stage4-libcpp
1061f99e 18660TARGET-stage4-libcpp = $(TARGET-libcpp)
ce406537 18661all-stage4-libcpp: configure-stage4-libcpp
cc11cc9b 18662 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
ce406537
PB
18663 @r=`${PWD_COMMAND}`; export r; \
18664 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18665 $(HOST_EXPORTS) \
18666 $(POSTSTAGE1_HOST_EXPORTS) \
18667 cd $(HOST_SUBDIR)/libcpp && \
1061f99e
PB
18668 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
18669 $(TARGET-stage4-libcpp)
ce406537
PB
18670
18671maybe-clean-stage4-libcpp: clean-stage4-libcpp
18672clean-stage4: clean-stage4-libcpp
18673clean-stage4-libcpp:
995a5697
PB
18674 @if [ $(current_stage) = stage4 ]; then \
18675 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
18676 else \
18677 [ -f $(HOST_SUBDIR)/stage4-libcpp/Makefile ] || exit 0; \
18678 $(MAKE) stage4-start; \
18679 fi; \
ce406537
PB
18680 cd $(HOST_SUBDIR)/libcpp && \
18681 $(MAKE) $(FLAGS_TO_PASS) \
18682 $(POSTSTAGE1_FLAGS_TO_PASS) \
18683 clean
18684@endif libcpp-bootstrap
18685
18686
18687.PHONY: all-stageprofile-libcpp maybe-all-stageprofile-libcpp
18688.PHONY: clean-stageprofile-libcpp maybe-clean-stageprofile-libcpp
18689maybe-all-stageprofile-libcpp:
18690maybe-clean-stageprofile-libcpp:
18691@if libcpp-bootstrap
18692maybe-all-stageprofile-libcpp: all-stageprofile-libcpp
18693all-stageprofile: all-stageprofile-libcpp
1061f99e 18694TARGET-stageprofile-libcpp = $(TARGET-libcpp)
ce406537 18695all-stageprofile-libcpp: configure-stageprofile-libcpp
cc11cc9b 18696 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
ce406537
PB
18697 @r=`${PWD_COMMAND}`; export r; \
18698 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18699 $(HOST_EXPORTS) \
18700 $(POSTSTAGE1_HOST_EXPORTS) \
18701 cd $(HOST_SUBDIR)/libcpp && \
1061f99e
PB
18702 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" \
18703 $(TARGET-stageprofile-libcpp)
ce406537
PB
18704
18705maybe-clean-stageprofile-libcpp: clean-stageprofile-libcpp
18706clean-stageprofile: clean-stageprofile-libcpp
18707clean-stageprofile-libcpp:
995a5697
PB
18708 @if [ $(current_stage) = stageprofile ]; then \
18709 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
18710 else \
18711 [ -f $(HOST_SUBDIR)/stageprofile-libcpp/Makefile ] || exit 0; \
18712 $(MAKE) stageprofile-start; \
18713 fi; \
ce406537
PB
18714 cd $(HOST_SUBDIR)/libcpp && \
18715 $(MAKE) $(FLAGS_TO_PASS) \
18716 $(POSTSTAGE1_FLAGS_TO_PASS) \
18717 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean
18718@endif libcpp-bootstrap
18719
18720
18721.PHONY: all-stagefeedback-libcpp maybe-all-stagefeedback-libcpp
18722.PHONY: clean-stagefeedback-libcpp maybe-clean-stagefeedback-libcpp
18723maybe-all-stagefeedback-libcpp:
18724maybe-clean-stagefeedback-libcpp:
18725@if libcpp-bootstrap
18726maybe-all-stagefeedback-libcpp: all-stagefeedback-libcpp
18727all-stagefeedback: all-stagefeedback-libcpp
1061f99e 18728TARGET-stagefeedback-libcpp = $(TARGET-libcpp)
ce406537 18729all-stagefeedback-libcpp: configure-stagefeedback-libcpp
cc11cc9b 18730 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
ce406537
PB
18731 @r=`${PWD_COMMAND}`; export r; \
18732 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18733 $(HOST_EXPORTS) \
18734 $(POSTSTAGE1_HOST_EXPORTS) \
18735 cd $(HOST_SUBDIR)/libcpp && \
1061f99e
PB
18736 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-use" \
18737 $(TARGET-stagefeedback-libcpp)
ce406537
PB
18738
18739maybe-clean-stagefeedback-libcpp: clean-stagefeedback-libcpp
18740clean-stagefeedback: clean-stagefeedback-libcpp
18741clean-stagefeedback-libcpp:
995a5697
PB
18742 @if [ $(current_stage) = stagefeedback ]; then \
18743 [ -f $(HOST_SUBDIR)/libcpp/Makefile ] || exit 0; \
18744 else \
18745 [ -f $(HOST_SUBDIR)/stagefeedback-libcpp/Makefile ] || exit 0; \
18746 $(MAKE) stagefeedback-start; \
18747 fi; \
ce406537
PB
18748 cd $(HOST_SUBDIR)/libcpp && \
18749 $(MAKE) $(FLAGS_TO_PASS) \
18750 $(POSTSTAGE1_FLAGS_TO_PASS) \
18751 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean
18752@endif libcpp-bootstrap
18753
18754
18755
18756
18757
d32ab992
PB
18758.PHONY: check-libcpp maybe-check-libcpp
18759maybe-check-libcpp:
18760@if libcpp
18761maybe-check-libcpp: check-libcpp
1358ccea 18762
d32ab992 18763check-libcpp:
f41d6665 18764 @: $(MAKE); $(unstage)
295f4e42 18765 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 18766 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 18767 $(HOST_EXPORTS) \
215c351a
PB
18768 (cd $(HOST_SUBDIR)/libcpp && \
18769 $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 18770
d32ab992 18771@endif libcpp
1358ccea 18772
d32ab992
PB
18773.PHONY: install-libcpp maybe-install-libcpp
18774maybe-install-libcpp:
18775@if libcpp
18776maybe-install-libcpp: install-libcpp
18777
18778install-libcpp: installdirs
f41d6665 18779 @: $(MAKE); $(unstage)
295f4e42 18780 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 18781 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 18782 $(HOST_EXPORTS) \
215c351a 18783 (cd $(HOST_SUBDIR)/libcpp && \
ace9ac7b 18784 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 18785
d32ab992 18786@endif libcpp
1358ccea 18787
b5422ad7 18788# Other targets (info, dvi, pdf, etc.)
1358ccea 18789
d32ab992
PB
18790.PHONY: maybe-info-libcpp info-libcpp
18791maybe-info-libcpp:
18792@if libcpp
18793maybe-info-libcpp: info-libcpp
295f4e42 18794
d32ab992 18795info-libcpp: \
05750653 18796 configure-libcpp
d32ab992 18797 @[ -f ./libcpp/Makefile ] || exit 0; \
8c90b13a
L
18798 r=`${PWD_COMMAND}`; export r; \
18799 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 18800 $(HOST_EXPORTS) \
d32ab992 18801 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
18802 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18803 done; \
d32ab992 18804 echo "Doing info in libcpp" ; \
215c351a 18805 (cd $(HOST_SUBDIR)/libcpp && \
1358ccea
NN
18806 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18807 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18808 "RANLIB=$${RANLIB}" \
18809 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 18810 info) \
1358ccea
NN
18811 || exit 1
18812
d32ab992 18813@endif libcpp
1358ccea 18814
d32ab992
PB
18815.PHONY: maybe-dvi-libcpp dvi-libcpp
18816maybe-dvi-libcpp:
18817@if libcpp
18818maybe-dvi-libcpp: dvi-libcpp
1358ccea 18819
d32ab992 18820dvi-libcpp: \
05750653 18821 configure-libcpp
d32ab992 18822 @[ -f ./libcpp/Makefile ] || exit 0; \
8c90b13a
L
18823 r=`${PWD_COMMAND}`; export r; \
18824 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 18825 $(HOST_EXPORTS) \
d32ab992 18826 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
18827 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18828 done; \
d32ab992 18829 echo "Doing dvi in libcpp" ; \
215c351a 18830 (cd $(HOST_SUBDIR)/libcpp && \
1358ccea
NN
18831 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18832 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18833 "RANLIB=$${RANLIB}" \
18834 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 18835 dvi) \
1358ccea
NN
18836 || exit 1
18837
d32ab992 18838@endif libcpp
1358ccea 18839
b5422ad7
BM
18840.PHONY: maybe-pdf-libcpp pdf-libcpp
18841maybe-pdf-libcpp:
18842@if libcpp
18843maybe-pdf-libcpp: pdf-libcpp
18844
18845pdf-libcpp: \
18846 configure-libcpp
18847 @[ -f ./libcpp/Makefile ] || exit 0; \
18848 r=`${PWD_COMMAND}`; export r; \
18849 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18850 $(HOST_EXPORTS) \
18851 for flag in $(EXTRA_HOST_FLAGS) ; do \
18852 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18853 done; \
18854 echo "Doing pdf in libcpp" ; \
18855 (cd $(HOST_SUBDIR)/libcpp && \
18856 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18857 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18858 "RANLIB=$${RANLIB}" \
18859 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18860 pdf) \
18861 || exit 1
18862
18863@endif libcpp
18864
f87a2b2e
MS
18865.PHONY: maybe-html-libcpp html-libcpp
18866maybe-html-libcpp:
18867@if libcpp
18868maybe-html-libcpp: html-libcpp
18869
18870html-libcpp: \
05750653 18871 configure-libcpp
f87a2b2e
MS
18872 @[ -f ./libcpp/Makefile ] || exit 0; \
18873 r=`${PWD_COMMAND}`; export r; \
18874 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
18875 $(HOST_EXPORTS) \
18876 for flag in $(EXTRA_HOST_FLAGS) ; do \
18877 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18878 done; \
18879 echo "Doing html in libcpp" ; \
215c351a 18880 (cd $(HOST_SUBDIR)/libcpp && \
f87a2b2e
MS
18881 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18882 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18883 "RANLIB=$${RANLIB}" \
18884 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18885 html) \
18886 || exit 1
18887
18888@endif libcpp
18889
d32ab992
PB
18890.PHONY: maybe-TAGS-libcpp TAGS-libcpp
18891maybe-TAGS-libcpp:
18892@if libcpp
18893maybe-TAGS-libcpp: TAGS-libcpp
1358ccea 18894
d32ab992 18895TAGS-libcpp: \
05750653 18896 configure-libcpp
d32ab992 18897 @[ -f ./libcpp/Makefile ] || exit 0; \
8c90b13a
L
18898 r=`${PWD_COMMAND}`; export r; \
18899 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 18900 $(HOST_EXPORTS) \
d32ab992 18901 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
18902 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18903 done; \
d32ab992 18904 echo "Doing TAGS in libcpp" ; \
215c351a 18905 (cd $(HOST_SUBDIR)/libcpp && \
1358ccea
NN
18906 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18907 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18908 "RANLIB=$${RANLIB}" \
18909 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 18910 TAGS) \
1358ccea
NN
18911 || exit 1
18912
d32ab992 18913@endif libcpp
1358ccea 18914
d32ab992
PB
18915.PHONY: maybe-install-info-libcpp install-info-libcpp
18916maybe-install-info-libcpp:
18917@if libcpp
18918maybe-install-info-libcpp: install-info-libcpp
1358ccea 18919
d32ab992
PB
18920install-info-libcpp: \
18921 configure-libcpp \
05750653 18922 info-libcpp
d32ab992 18923 @[ -f ./libcpp/Makefile ] || exit 0; \
8c90b13a
L
18924 r=`${PWD_COMMAND}`; export r; \
18925 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 18926 $(HOST_EXPORTS) \
d32ab992 18927 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
18928 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18929 done; \
d32ab992 18930 echo "Doing install-info in libcpp" ; \
215c351a 18931 (cd $(HOST_SUBDIR)/libcpp && \
1358ccea
NN
18932 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18933 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18934 "RANLIB=$${RANLIB}" \
18935 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 18936 install-info) \
1358ccea
NN
18937 || exit 1
18938
d32ab992 18939@endif libcpp
1358ccea 18940
65d6e994
CD
18941.PHONY: maybe-install-html-libcpp install-html-libcpp
18942maybe-install-html-libcpp:
18943@if libcpp
18944maybe-install-html-libcpp: install-html-libcpp
18945
18946install-html-libcpp: \
18947 configure-libcpp \
18948 html-libcpp
18949 @[ -f ./libcpp/Makefile ] || exit 0; \
18950 r=`${PWD_COMMAND}`; export r; \
18951 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
18952 $(HOST_EXPORTS) \
18953 for flag in $(EXTRA_HOST_FLAGS) ; do \
18954 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18955 done; \
18956 echo "Doing install-html in libcpp" ; \
18957 (cd $(HOST_SUBDIR)/libcpp && \
18958 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18959 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18960 "RANLIB=$${RANLIB}" \
18961 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
18962 install-html) \
18963 || exit 1
18964
18965@endif libcpp
18966
d32ab992
PB
18967.PHONY: maybe-installcheck-libcpp installcheck-libcpp
18968maybe-installcheck-libcpp:
18969@if libcpp
18970maybe-installcheck-libcpp: installcheck-libcpp
1358ccea 18971
d32ab992 18972installcheck-libcpp: \
05750653 18973 configure-libcpp
d32ab992 18974 @[ -f ./libcpp/Makefile ] || exit 0; \
8c90b13a
L
18975 r=`${PWD_COMMAND}`; export r; \
18976 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 18977 $(HOST_EXPORTS) \
d32ab992 18978 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
18979 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
18980 done; \
d32ab992 18981 echo "Doing installcheck in libcpp" ; \
215c351a 18982 (cd $(HOST_SUBDIR)/libcpp && \
1358ccea
NN
18983 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
18984 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
18985 "RANLIB=$${RANLIB}" \
18986 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 18987 installcheck) \
1358ccea
NN
18988 || exit 1
18989
d32ab992 18990@endif libcpp
1358ccea 18991
d32ab992
PB
18992.PHONY: maybe-mostlyclean-libcpp mostlyclean-libcpp
18993maybe-mostlyclean-libcpp:
18994@if libcpp
18995maybe-mostlyclean-libcpp: mostlyclean-libcpp
1358ccea 18996
05750653 18997mostlyclean-libcpp:
d32ab992 18998 @[ -f ./libcpp/Makefile ] || exit 0; \
8c90b13a
L
18999 r=`${PWD_COMMAND}`; export r; \
19000 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 19001 $(HOST_EXPORTS) \
d32ab992 19002 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
19003 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19004 done; \
d32ab992 19005 echo "Doing mostlyclean in libcpp" ; \
215c351a 19006 (cd $(HOST_SUBDIR)/libcpp && \
1358ccea
NN
19007 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19008 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19009 "RANLIB=$${RANLIB}" \
19010 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 19011 mostlyclean) \
1358ccea
NN
19012 || exit 1
19013
d32ab992 19014@endif libcpp
1358ccea 19015
d32ab992
PB
19016.PHONY: maybe-clean-libcpp clean-libcpp
19017maybe-clean-libcpp:
19018@if libcpp
19019maybe-clean-libcpp: clean-libcpp
1358ccea 19020
05750653 19021clean-libcpp:
d32ab992 19022 @[ -f ./libcpp/Makefile ] || exit 0; \
8c90b13a
L
19023 r=`${PWD_COMMAND}`; export r; \
19024 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 19025 $(HOST_EXPORTS) \
d32ab992 19026 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
19027 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19028 done; \
d32ab992 19029 echo "Doing clean in libcpp" ; \
215c351a 19030 (cd $(HOST_SUBDIR)/libcpp && \
1358ccea
NN
19031 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19032 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19033 "RANLIB=$${RANLIB}" \
19034 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 19035 clean) \
1358ccea
NN
19036 || exit 1
19037
d32ab992 19038@endif libcpp
1358ccea 19039
d32ab992
PB
19040.PHONY: maybe-distclean-libcpp distclean-libcpp
19041maybe-distclean-libcpp:
19042@if libcpp
19043maybe-distclean-libcpp: distclean-libcpp
1358ccea 19044
05750653 19045distclean-libcpp:
d32ab992 19046 @[ -f ./libcpp/Makefile ] || exit 0; \
8c90b13a
L
19047 r=`${PWD_COMMAND}`; export r; \
19048 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 19049 $(HOST_EXPORTS) \
d32ab992 19050 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
19051 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19052 done; \
d32ab992 19053 echo "Doing distclean in libcpp" ; \
215c351a 19054 (cd $(HOST_SUBDIR)/libcpp && \
1358ccea
NN
19055 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19056 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19057 "RANLIB=$${RANLIB}" \
19058 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 19059 distclean) \
1358ccea
NN
19060 || exit 1
19061
d32ab992 19062@endif libcpp
1358ccea 19063
d32ab992
PB
19064.PHONY: maybe-maintainer-clean-libcpp maintainer-clean-libcpp
19065maybe-maintainer-clean-libcpp:
19066@if libcpp
19067maybe-maintainer-clean-libcpp: maintainer-clean-libcpp
1358ccea 19068
05750653 19069maintainer-clean-libcpp:
d32ab992 19070 @[ -f ./libcpp/Makefile ] || exit 0; \
8c90b13a
L
19071 r=`${PWD_COMMAND}`; export r; \
19072 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 19073 $(HOST_EXPORTS) \
d32ab992 19074 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
19075 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19076 done; \
d32ab992 19077 echo "Doing maintainer-clean in libcpp" ; \
215c351a 19078 (cd $(HOST_SUBDIR)/libcpp && \
1358ccea
NN
19079 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19080 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19081 "RANLIB=$${RANLIB}" \
19082 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 19083 maintainer-clean) \
1358ccea
NN
19084 || exit 1
19085
d32ab992 19086@endif libcpp
1358ccea 19087
1358ccea 19088
25b42232 19089
a4b6c45a
BE
19090.PHONY: configure-libdecnumber maybe-configure-libdecnumber
19091maybe-configure-libdecnumber:
3ff3adad
PB
19092@if gcc-bootstrap
19093configure-libdecnumber: stage_current
19094@endif gcc-bootstrap
a4b6c45a
BE
19095@if libdecnumber
19096maybe-configure-libdecnumber: configure-libdecnumber
cc11cc9b 19097configure-libdecnumber:
cc11cc9b
PB
19098 @r=`${PWD_COMMAND}`; export r; \
19099 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a4b6c45a
BE
19100 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
19101 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \
a4b6c45a
BE
19102 $(HOST_EXPORTS) \
19103 echo Configuring in $(HOST_SUBDIR)/libdecnumber; \
19104 cd "$(HOST_SUBDIR)/libdecnumber" || exit 1; \
19105 case $(srcdir) in \
19106 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19107 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
19108 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19109 esac; \
19110 srcdiroption="--srcdir=$${topdir}/libdecnumber"; \
19111 libsrcdir="$$s/libdecnumber"; \
19112 $(SHELL) $${libsrcdir}/configure \
19113 $(HOST_CONFIGARGS) $${srcdiroption} \
19114 || exit 1
19115@endif libdecnumber
19116
19117
19118
19119.PHONY: configure-stage1-libdecnumber maybe-configure-stage1-libdecnumber
19120maybe-configure-stage1-libdecnumber:
19121@if libdecnumber-bootstrap
19122maybe-configure-stage1-libdecnumber: configure-stage1-libdecnumber
f41d6665 19123configure-stage1-libdecnumber:
cc11cc9b 19124 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
f41d6665 19125 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
cc11cc9b
PB
19126 @r=`${PWD_COMMAND}`; export r; \
19127 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 19128 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
a4b6c45a
BE
19129 $(HOST_EXPORTS) \
19130 echo Configuring stage 1 in $(HOST_SUBDIR)/libdecnumber ; \
f41d6665 19131 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \
a4b6c45a
BE
19132 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
19133 case $(srcdir) in \
19134 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19135 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
19136 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19137 esac; \
19138 srcdiroption="--srcdir=$${topdir}/libdecnumber"; \
19139 libsrcdir="$$s/libdecnumber"; \
19140 $(SHELL) $${libsrcdir}/configure \
19141 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 19142 \
8efea775 19143 --disable-intermodule $(STAGE1_CHECKING) --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
a4b6c45a
BE
19144@endif libdecnumber-bootstrap
19145
19146.PHONY: configure-stage2-libdecnumber maybe-configure-stage2-libdecnumber
19147maybe-configure-stage2-libdecnumber:
19148@if libdecnumber-bootstrap
19149maybe-configure-stage2-libdecnumber: configure-stage2-libdecnumber
f41d6665 19150configure-stage2-libdecnumber:
cc11cc9b 19151 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
f41d6665 19152 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
cc11cc9b
PB
19153 @r=`${PWD_COMMAND}`; export r; \
19154 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 19155 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
a4b6c45a
BE
19156 $(HOST_EXPORTS) \
19157 $(POSTSTAGE1_HOST_EXPORTS) \
19158 echo Configuring stage 2 in $(HOST_SUBDIR)/libdecnumber ; \
f41d6665 19159 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \
a4b6c45a
BE
19160 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
19161 case $(srcdir) in \
19162 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19163 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
19164 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19165 esac; \
19166 srcdiroption="--srcdir=$${topdir}/libdecnumber"; \
19167 libsrcdir="$$s/libdecnumber"; \
19168 $(SHELL) $${libsrcdir}/configure \
19169 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 19170 --with-build-libsubdir=$(HOST_SUBDIR) \
a4b6c45a
BE
19171 @stage2_werror_flag@
19172@endif libdecnumber-bootstrap
19173
19174.PHONY: configure-stage3-libdecnumber maybe-configure-stage3-libdecnumber
19175maybe-configure-stage3-libdecnumber:
19176@if libdecnumber-bootstrap
19177maybe-configure-stage3-libdecnumber: configure-stage3-libdecnumber
f41d6665 19178configure-stage3-libdecnumber:
cc11cc9b 19179 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
f41d6665 19180 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
cc11cc9b
PB
19181 @r=`${PWD_COMMAND}`; export r; \
19182 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 19183 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
a4b6c45a
BE
19184 $(HOST_EXPORTS) \
19185 $(POSTSTAGE1_HOST_EXPORTS) \
19186 echo Configuring stage 3 in $(HOST_SUBDIR)/libdecnumber ; \
f41d6665 19187 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \
a4b6c45a
BE
19188 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
19189 case $(srcdir) in \
19190 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19191 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
19192 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19193 esac; \
19194 srcdiroption="--srcdir=$${topdir}/libdecnumber"; \
19195 libsrcdir="$$s/libdecnumber"; \
19196 $(SHELL) $${libsrcdir}/configure \
19197 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 19198 --with-build-libsubdir=$(HOST_SUBDIR) \
a4b6c45a
BE
19199 @stage2_werror_flag@
19200@endif libdecnumber-bootstrap
19201
19202.PHONY: configure-stage4-libdecnumber maybe-configure-stage4-libdecnumber
19203maybe-configure-stage4-libdecnumber:
19204@if libdecnumber-bootstrap
19205maybe-configure-stage4-libdecnumber: configure-stage4-libdecnumber
f41d6665 19206configure-stage4-libdecnumber:
cc11cc9b 19207 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
f41d6665 19208 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
cc11cc9b
PB
19209 @r=`${PWD_COMMAND}`; export r; \
19210 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 19211 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
a4b6c45a
BE
19212 $(HOST_EXPORTS) \
19213 $(POSTSTAGE1_HOST_EXPORTS) \
19214 echo Configuring stage 4 in $(HOST_SUBDIR)/libdecnumber ; \
f41d6665 19215 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \
a4b6c45a
BE
19216 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
19217 case $(srcdir) in \
19218 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19219 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
19220 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19221 esac; \
19222 srcdiroption="--srcdir=$${topdir}/libdecnumber"; \
19223 libsrcdir="$$s/libdecnumber"; \
19224 $(SHELL) $${libsrcdir}/configure \
19225 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 19226 --with-build-libsubdir=$(HOST_SUBDIR) \
a4b6c45a
BE
19227 @stage2_werror_flag@
19228@endif libdecnumber-bootstrap
19229
19230.PHONY: configure-stageprofile-libdecnumber maybe-configure-stageprofile-libdecnumber
19231maybe-configure-stageprofile-libdecnumber:
19232@if libdecnumber-bootstrap
19233maybe-configure-stageprofile-libdecnumber: configure-stageprofile-libdecnumber
f41d6665 19234configure-stageprofile-libdecnumber:
cc11cc9b 19235 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
f41d6665 19236 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
cc11cc9b
PB
19237 @r=`${PWD_COMMAND}`; export r; \
19238 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 19239 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
a4b6c45a
BE
19240 $(HOST_EXPORTS) \
19241 $(POSTSTAGE1_HOST_EXPORTS) \
19242 echo Configuring stage profile in $(HOST_SUBDIR)/libdecnumber ; \
f41d6665 19243 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \
a4b6c45a
BE
19244 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
19245 case $(srcdir) in \
19246 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19247 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
19248 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19249 esac; \
19250 srcdiroption="--srcdir=$${topdir}/libdecnumber"; \
19251 libsrcdir="$$s/libdecnumber"; \
19252 $(SHELL) $${libsrcdir}/configure \
19253 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 19254 --with-build-libsubdir=$(HOST_SUBDIR) \
a4b6c45a
BE
19255 @stage2_werror_flag@
19256@endif libdecnumber-bootstrap
19257
19258.PHONY: configure-stagefeedback-libdecnumber maybe-configure-stagefeedback-libdecnumber
19259maybe-configure-stagefeedback-libdecnumber:
19260@if libdecnumber-bootstrap
19261maybe-configure-stagefeedback-libdecnumber: configure-stagefeedback-libdecnumber
f41d6665 19262configure-stagefeedback-libdecnumber:
cc11cc9b 19263 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
f41d6665 19264 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber
cc11cc9b
PB
19265 @r=`${PWD_COMMAND}`; export r; \
19266 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 19267 test ! -f $(HOST_SUBDIR)/libdecnumber/Makefile || exit 0; \
a4b6c45a
BE
19268 $(HOST_EXPORTS) \
19269 $(POSTSTAGE1_HOST_EXPORTS) \
19270 echo Configuring stage feedback in $(HOST_SUBDIR)/libdecnumber ; \
f41d6665 19271 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libdecnumber ; \
a4b6c45a
BE
19272 cd $(HOST_SUBDIR)/libdecnumber || exit 1; \
19273 case $(srcdir) in \
19274 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19275 *) topdir=`echo $(HOST_SUBDIR)/libdecnumber/ | \
19276 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
19277 esac; \
19278 srcdiroption="--srcdir=$${topdir}/libdecnumber"; \
19279 libsrcdir="$$s/libdecnumber"; \
19280 $(SHELL) $${libsrcdir}/configure \
19281 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 19282 --with-build-libsubdir=$(HOST_SUBDIR) \
a4b6c45a
BE
19283 @stage2_werror_flag@
19284@endif libdecnumber-bootstrap
19285
19286
19287
19288
19289
19290.PHONY: all-libdecnumber maybe-all-libdecnumber
19291maybe-all-libdecnumber:
3ff3adad
PB
19292@if gcc-bootstrap
19293all-libdecnumber: stage_current
19294@endif gcc-bootstrap
a4b6c45a
BE
19295@if libdecnumber
19296TARGET-libdecnumber=all
19297maybe-all-libdecnumber: all-libdecnumber
19298all-libdecnumber: configure-libdecnumber
cc11cc9b 19299 @r=`${PWD_COMMAND}`; export r; \
a4b6c45a
BE
19300 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19301 $(HOST_EXPORTS) \
19302 (cd $(HOST_SUBDIR)/libdecnumber && \
19303 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-libdecnumber))
19304@endif libdecnumber
19305
19306
19307
19308.PHONY: all-stage1-libdecnumber maybe-all-stage1-libdecnumber
19309.PHONY: clean-stage1-libdecnumber maybe-clean-stage1-libdecnumber
19310maybe-all-stage1-libdecnumber:
19311maybe-clean-stage1-libdecnumber:
19312@if libdecnumber-bootstrap
19313maybe-all-stage1-libdecnumber: all-stage1-libdecnumber
19314all-stage1: all-stage1-libdecnumber
19315TARGET-stage1-libdecnumber = $(TARGET-libdecnumber)
19316all-stage1-libdecnumber: configure-stage1-libdecnumber
cc11cc9b 19317 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
a4b6c45a
BE
19318 @r=`${PWD_COMMAND}`; export r; \
19319 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19320 $(HOST_EXPORTS) \
19321 cd $(HOST_SUBDIR)/libdecnumber && \
cc11cc9b 19322 $(MAKE) $(FLAGS_TO_PASS) CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" \
a4b6c45a
BE
19323 $(TARGET-stage1-libdecnumber)
19324
19325maybe-clean-stage1-libdecnumber: clean-stage1-libdecnumber
19326clean-stage1: clean-stage1-libdecnumber
19327clean-stage1-libdecnumber:
995a5697
PB
19328 @if [ $(current_stage) = stage1 ]; then \
19329 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
19330 else \
19331 [ -f $(HOST_SUBDIR)/stage1-libdecnumber/Makefile ] || exit 0; \
19332 $(MAKE) stage1-start; \
19333 fi; \
a4b6c45a
BE
19334 cd $(HOST_SUBDIR)/libdecnumber && \
19335 $(MAKE) $(FLAGS_TO_PASS) \
cc11cc9b 19336 CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" clean
a4b6c45a
BE
19337@endif libdecnumber-bootstrap
19338
19339
19340.PHONY: all-stage2-libdecnumber maybe-all-stage2-libdecnumber
19341.PHONY: clean-stage2-libdecnumber maybe-clean-stage2-libdecnumber
19342maybe-all-stage2-libdecnumber:
19343maybe-clean-stage2-libdecnumber:
19344@if libdecnumber-bootstrap
19345maybe-all-stage2-libdecnumber: all-stage2-libdecnumber
19346all-stage2: all-stage2-libdecnumber
19347TARGET-stage2-libdecnumber = $(TARGET-libdecnumber)
19348all-stage2-libdecnumber: configure-stage2-libdecnumber
cc11cc9b 19349 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
a4b6c45a
BE
19350 @r=`${PWD_COMMAND}`; export r; \
19351 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19352 $(HOST_EXPORTS) \
19353 $(POSTSTAGE1_HOST_EXPORTS) \
19354 cd $(HOST_SUBDIR)/libdecnumber && \
19355 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
19356 $(TARGET-stage2-libdecnumber)
19357
19358maybe-clean-stage2-libdecnumber: clean-stage2-libdecnumber
19359clean-stage2: clean-stage2-libdecnumber
19360clean-stage2-libdecnumber:
995a5697
PB
19361 @if [ $(current_stage) = stage2 ]; then \
19362 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
19363 else \
19364 [ -f $(HOST_SUBDIR)/stage2-libdecnumber/Makefile ] || exit 0; \
19365 $(MAKE) stage2-start; \
19366 fi; \
a4b6c45a
BE
19367 cd $(HOST_SUBDIR)/libdecnumber && \
19368 $(MAKE) $(FLAGS_TO_PASS) \
19369 $(POSTSTAGE1_FLAGS_TO_PASS) \
19370 clean
19371@endif libdecnumber-bootstrap
19372
19373
19374.PHONY: all-stage3-libdecnumber maybe-all-stage3-libdecnumber
19375.PHONY: clean-stage3-libdecnumber maybe-clean-stage3-libdecnumber
19376maybe-all-stage3-libdecnumber:
19377maybe-clean-stage3-libdecnumber:
19378@if libdecnumber-bootstrap
19379maybe-all-stage3-libdecnumber: all-stage3-libdecnumber
19380all-stage3: all-stage3-libdecnumber
19381TARGET-stage3-libdecnumber = $(TARGET-libdecnumber)
19382all-stage3-libdecnumber: configure-stage3-libdecnumber
cc11cc9b 19383 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
a4b6c45a
BE
19384 @r=`${PWD_COMMAND}`; export r; \
19385 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19386 $(HOST_EXPORTS) \
19387 $(POSTSTAGE1_HOST_EXPORTS) \
19388 cd $(HOST_SUBDIR)/libdecnumber && \
19389 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
19390 $(TARGET-stage3-libdecnumber)
19391
19392maybe-clean-stage3-libdecnumber: clean-stage3-libdecnumber
19393clean-stage3: clean-stage3-libdecnumber
19394clean-stage3-libdecnumber:
995a5697
PB
19395 @if [ $(current_stage) = stage3 ]; then \
19396 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
19397 else \
19398 [ -f $(HOST_SUBDIR)/stage3-libdecnumber/Makefile ] || exit 0; \
19399 $(MAKE) stage3-start; \
19400 fi; \
a4b6c45a
BE
19401 cd $(HOST_SUBDIR)/libdecnumber && \
19402 $(MAKE) $(FLAGS_TO_PASS) \
19403 $(POSTSTAGE1_FLAGS_TO_PASS) \
19404 clean
19405@endif libdecnumber-bootstrap
19406
19407
19408.PHONY: all-stage4-libdecnumber maybe-all-stage4-libdecnumber
19409.PHONY: clean-stage4-libdecnumber maybe-clean-stage4-libdecnumber
19410maybe-all-stage4-libdecnumber:
19411maybe-clean-stage4-libdecnumber:
19412@if libdecnumber-bootstrap
19413maybe-all-stage4-libdecnumber: all-stage4-libdecnumber
19414all-stage4: all-stage4-libdecnumber
19415TARGET-stage4-libdecnumber = $(TARGET-libdecnumber)
19416all-stage4-libdecnumber: configure-stage4-libdecnumber
cc11cc9b 19417 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
a4b6c45a
BE
19418 @r=`${PWD_COMMAND}`; export r; \
19419 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19420 $(HOST_EXPORTS) \
19421 $(POSTSTAGE1_HOST_EXPORTS) \
19422 cd $(HOST_SUBDIR)/libdecnumber && \
19423 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
19424 $(TARGET-stage4-libdecnumber)
19425
19426maybe-clean-stage4-libdecnumber: clean-stage4-libdecnumber
19427clean-stage4: clean-stage4-libdecnumber
19428clean-stage4-libdecnumber:
995a5697
PB
19429 @if [ $(current_stage) = stage4 ]; then \
19430 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
19431 else \
19432 [ -f $(HOST_SUBDIR)/stage4-libdecnumber/Makefile ] || exit 0; \
19433 $(MAKE) stage4-start; \
19434 fi; \
a4b6c45a
BE
19435 cd $(HOST_SUBDIR)/libdecnumber && \
19436 $(MAKE) $(FLAGS_TO_PASS) \
19437 $(POSTSTAGE1_FLAGS_TO_PASS) \
19438 clean
19439@endif libdecnumber-bootstrap
19440
19441
19442.PHONY: all-stageprofile-libdecnumber maybe-all-stageprofile-libdecnumber
19443.PHONY: clean-stageprofile-libdecnumber maybe-clean-stageprofile-libdecnumber
19444maybe-all-stageprofile-libdecnumber:
19445maybe-clean-stageprofile-libdecnumber:
19446@if libdecnumber-bootstrap
19447maybe-all-stageprofile-libdecnumber: all-stageprofile-libdecnumber
19448all-stageprofile: all-stageprofile-libdecnumber
19449TARGET-stageprofile-libdecnumber = $(TARGET-libdecnumber)
19450all-stageprofile-libdecnumber: configure-stageprofile-libdecnumber
cc11cc9b 19451 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
a4b6c45a
BE
19452 @r=`${PWD_COMMAND}`; export r; \
19453 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19454 $(HOST_EXPORTS) \
19455 $(POSTSTAGE1_HOST_EXPORTS) \
19456 cd $(HOST_SUBDIR)/libdecnumber && \
19457 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" \
19458 $(TARGET-stageprofile-libdecnumber)
19459
19460maybe-clean-stageprofile-libdecnumber: clean-stageprofile-libdecnumber
19461clean-stageprofile: clean-stageprofile-libdecnumber
19462clean-stageprofile-libdecnumber:
995a5697
PB
19463 @if [ $(current_stage) = stageprofile ]; then \
19464 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
19465 else \
19466 [ -f $(HOST_SUBDIR)/stageprofile-libdecnumber/Makefile ] || exit 0; \
19467 $(MAKE) stageprofile-start; \
19468 fi; \
a4b6c45a
BE
19469 cd $(HOST_SUBDIR)/libdecnumber && \
19470 $(MAKE) $(FLAGS_TO_PASS) \
19471 $(POSTSTAGE1_FLAGS_TO_PASS) \
19472 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean
19473@endif libdecnumber-bootstrap
19474
19475
19476.PHONY: all-stagefeedback-libdecnumber maybe-all-stagefeedback-libdecnumber
19477.PHONY: clean-stagefeedback-libdecnumber maybe-clean-stagefeedback-libdecnumber
19478maybe-all-stagefeedback-libdecnumber:
19479maybe-clean-stagefeedback-libdecnumber:
19480@if libdecnumber-bootstrap
19481maybe-all-stagefeedback-libdecnumber: all-stagefeedback-libdecnumber
19482all-stagefeedback: all-stagefeedback-libdecnumber
19483TARGET-stagefeedback-libdecnumber = $(TARGET-libdecnumber)
19484all-stagefeedback-libdecnumber: configure-stagefeedback-libdecnumber
cc11cc9b 19485 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
a4b6c45a
BE
19486 @r=`${PWD_COMMAND}`; export r; \
19487 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19488 $(HOST_EXPORTS) \
19489 $(POSTSTAGE1_HOST_EXPORTS) \
19490 cd $(HOST_SUBDIR)/libdecnumber && \
19491 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-use" \
19492 $(TARGET-stagefeedback-libdecnumber)
19493
19494maybe-clean-stagefeedback-libdecnumber: clean-stagefeedback-libdecnumber
19495clean-stagefeedback: clean-stagefeedback-libdecnumber
19496clean-stagefeedback-libdecnumber:
995a5697
PB
19497 @if [ $(current_stage) = stagefeedback ]; then \
19498 [ -f $(HOST_SUBDIR)/libdecnumber/Makefile ] || exit 0; \
19499 else \
19500 [ -f $(HOST_SUBDIR)/stagefeedback-libdecnumber/Makefile ] || exit 0; \
19501 $(MAKE) stagefeedback-start; \
19502 fi; \
a4b6c45a
BE
19503 cd $(HOST_SUBDIR)/libdecnumber && \
19504 $(MAKE) $(FLAGS_TO_PASS) \
19505 $(POSTSTAGE1_FLAGS_TO_PASS) \
19506 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean
19507@endif libdecnumber-bootstrap
19508
19509
19510
19511
19512
19513.PHONY: check-libdecnumber maybe-check-libdecnumber
19514maybe-check-libdecnumber:
19515@if libdecnumber
19516maybe-check-libdecnumber: check-libdecnumber
19517
19518check-libdecnumber:
f41d6665 19519 @: $(MAKE); $(unstage)
a4b6c45a
BE
19520 @r=`${PWD_COMMAND}`; export r; \
19521 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19522 $(HOST_EXPORTS) \
19523 (cd $(HOST_SUBDIR)/libdecnumber && \
19524 $(MAKE) $(FLAGS_TO_PASS) check)
19525
19526@endif libdecnumber
19527
19528.PHONY: install-libdecnumber maybe-install-libdecnumber
19529maybe-install-libdecnumber:
19530@if libdecnumber
19531maybe-install-libdecnumber: install-libdecnumber
19532
19533install-libdecnumber: installdirs
f41d6665 19534 @: $(MAKE); $(unstage)
a4b6c45a
BE
19535 @r=`${PWD_COMMAND}`; export r; \
19536 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19537 $(HOST_EXPORTS) \
19538 (cd $(HOST_SUBDIR)/libdecnumber && \
19539 $(MAKE) $(FLAGS_TO_PASS) install)
19540
19541@endif libdecnumber
19542
b5422ad7 19543# Other targets (info, dvi, pdf, etc.)
a4b6c45a
BE
19544
19545.PHONY: maybe-info-libdecnumber info-libdecnumber
19546maybe-info-libdecnumber:
19547@if libdecnumber
19548maybe-info-libdecnumber: info-libdecnumber
19549
19550info-libdecnumber: \
19551 configure-libdecnumber
19552 @[ -f ./libdecnumber/Makefile ] || exit 0; \
19553 r=`${PWD_COMMAND}`; export r; \
19554 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19555 $(HOST_EXPORTS) \
19556 for flag in $(EXTRA_HOST_FLAGS) ; do \
19557 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19558 done; \
19559 echo "Doing info in libdecnumber" ; \
19560 (cd $(HOST_SUBDIR)/libdecnumber && \
19561 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19562 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19563 "RANLIB=$${RANLIB}" \
19564 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19565 info) \
19566 || exit 1
19567
19568@endif libdecnumber
19569
19570.PHONY: maybe-dvi-libdecnumber dvi-libdecnumber
19571maybe-dvi-libdecnumber:
19572@if libdecnumber
19573maybe-dvi-libdecnumber: dvi-libdecnumber
19574
19575dvi-libdecnumber: \
19576 configure-libdecnumber
19577 @[ -f ./libdecnumber/Makefile ] || exit 0; \
19578 r=`${PWD_COMMAND}`; export r; \
19579 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19580 $(HOST_EXPORTS) \
19581 for flag in $(EXTRA_HOST_FLAGS) ; do \
19582 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19583 done; \
19584 echo "Doing dvi in libdecnumber" ; \
19585 (cd $(HOST_SUBDIR)/libdecnumber && \
19586 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19587 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19588 "RANLIB=$${RANLIB}" \
19589 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19590 dvi) \
19591 || exit 1
19592
19593@endif libdecnumber
19594
b5422ad7
BM
19595.PHONY: maybe-pdf-libdecnumber pdf-libdecnumber
19596maybe-pdf-libdecnumber:
19597@if libdecnumber
19598maybe-pdf-libdecnumber: pdf-libdecnumber
19599
19600pdf-libdecnumber: \
19601 configure-libdecnumber
19602 @[ -f ./libdecnumber/Makefile ] || exit 0; \
19603 r=`${PWD_COMMAND}`; export r; \
19604 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19605 $(HOST_EXPORTS) \
19606 for flag in $(EXTRA_HOST_FLAGS) ; do \
19607 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19608 done; \
19609 echo "Doing pdf in libdecnumber" ; \
19610 (cd $(HOST_SUBDIR)/libdecnumber && \
19611 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19612 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19613 "RANLIB=$${RANLIB}" \
19614 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19615 pdf) \
19616 || exit 1
19617
19618@endif libdecnumber
19619
a4b6c45a
BE
19620.PHONY: maybe-html-libdecnumber html-libdecnumber
19621maybe-html-libdecnumber:
19622@if libdecnumber
19623maybe-html-libdecnumber: html-libdecnumber
19624
19625html-libdecnumber: \
19626 configure-libdecnumber
19627 @[ -f ./libdecnumber/Makefile ] || exit 0; \
19628 r=`${PWD_COMMAND}`; export r; \
19629 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19630 $(HOST_EXPORTS) \
19631 for flag in $(EXTRA_HOST_FLAGS) ; do \
19632 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19633 done; \
19634 echo "Doing html in libdecnumber" ; \
19635 (cd $(HOST_SUBDIR)/libdecnumber && \
19636 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19637 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19638 "RANLIB=$${RANLIB}" \
19639 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19640 html) \
19641 || exit 1
19642
19643@endif libdecnumber
19644
19645.PHONY: maybe-TAGS-libdecnumber TAGS-libdecnumber
19646maybe-TAGS-libdecnumber:
19647@if libdecnumber
19648maybe-TAGS-libdecnumber: TAGS-libdecnumber
19649
19650TAGS-libdecnumber: \
19651 configure-libdecnumber
19652 @[ -f ./libdecnumber/Makefile ] || exit 0; \
19653 r=`${PWD_COMMAND}`; export r; \
19654 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19655 $(HOST_EXPORTS) \
19656 for flag in $(EXTRA_HOST_FLAGS) ; do \
19657 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19658 done; \
19659 echo "Doing TAGS in libdecnumber" ; \
19660 (cd $(HOST_SUBDIR)/libdecnumber && \
19661 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19662 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19663 "RANLIB=$${RANLIB}" \
19664 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19665 TAGS) \
19666 || exit 1
19667
19668@endif libdecnumber
19669
19670.PHONY: maybe-install-info-libdecnumber install-info-libdecnumber
19671maybe-install-info-libdecnumber:
19672@if libdecnumber
19673maybe-install-info-libdecnumber: install-info-libdecnumber
19674
19675install-info-libdecnumber: \
19676 configure-libdecnumber \
19677 info-libdecnumber
19678 @[ -f ./libdecnumber/Makefile ] || exit 0; \
19679 r=`${PWD_COMMAND}`; export r; \
19680 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19681 $(HOST_EXPORTS) \
19682 for flag in $(EXTRA_HOST_FLAGS) ; do \
19683 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19684 done; \
19685 echo "Doing install-info in libdecnumber" ; \
19686 (cd $(HOST_SUBDIR)/libdecnumber && \
19687 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19688 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19689 "RANLIB=$${RANLIB}" \
19690 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19691 install-info) \
19692 || exit 1
19693
19694@endif libdecnumber
19695
65d6e994
CD
19696.PHONY: maybe-install-html-libdecnumber install-html-libdecnumber
19697maybe-install-html-libdecnumber:
19698@if libdecnumber
19699maybe-install-html-libdecnumber: install-html-libdecnumber
19700
19701install-html-libdecnumber: \
19702 configure-libdecnumber \
19703 html-libdecnumber
19704 @[ -f ./libdecnumber/Makefile ] || exit 0; \
19705 r=`${PWD_COMMAND}`; export r; \
19706 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19707 $(HOST_EXPORTS) \
19708 for flag in $(EXTRA_HOST_FLAGS) ; do \
19709 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19710 done; \
19711 echo "Doing install-html in libdecnumber" ; \
19712 (cd $(HOST_SUBDIR)/libdecnumber && \
19713 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19714 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19715 "RANLIB=$${RANLIB}" \
19716 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19717 install-html) \
19718 || exit 1
19719
19720@endif libdecnumber
19721
a4b6c45a
BE
19722.PHONY: maybe-installcheck-libdecnumber installcheck-libdecnumber
19723maybe-installcheck-libdecnumber:
19724@if libdecnumber
19725maybe-installcheck-libdecnumber: installcheck-libdecnumber
19726
19727installcheck-libdecnumber: \
19728 configure-libdecnumber
19729 @[ -f ./libdecnumber/Makefile ] || exit 0; \
19730 r=`${PWD_COMMAND}`; export r; \
19731 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19732 $(HOST_EXPORTS) \
19733 for flag in $(EXTRA_HOST_FLAGS) ; do \
19734 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19735 done; \
19736 echo "Doing installcheck in libdecnumber" ; \
19737 (cd $(HOST_SUBDIR)/libdecnumber && \
19738 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19739 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19740 "RANLIB=$${RANLIB}" \
19741 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19742 installcheck) \
19743 || exit 1
19744
19745@endif libdecnumber
19746
19747.PHONY: maybe-mostlyclean-libdecnumber mostlyclean-libdecnumber
19748maybe-mostlyclean-libdecnumber:
19749@if libdecnumber
19750maybe-mostlyclean-libdecnumber: mostlyclean-libdecnumber
19751
19752mostlyclean-libdecnumber:
19753 @[ -f ./libdecnumber/Makefile ] || exit 0; \
19754 r=`${PWD_COMMAND}`; export r; \
19755 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19756 $(HOST_EXPORTS) \
19757 for flag in $(EXTRA_HOST_FLAGS) ; do \
19758 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19759 done; \
19760 echo "Doing mostlyclean in libdecnumber" ; \
19761 (cd $(HOST_SUBDIR)/libdecnumber && \
19762 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19763 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19764 "RANLIB=$${RANLIB}" \
19765 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19766 mostlyclean) \
19767 || exit 1
19768
19769@endif libdecnumber
19770
19771.PHONY: maybe-clean-libdecnumber clean-libdecnumber
19772maybe-clean-libdecnumber:
19773@if libdecnumber
19774maybe-clean-libdecnumber: clean-libdecnumber
19775
19776clean-libdecnumber:
19777 @[ -f ./libdecnumber/Makefile ] || exit 0; \
19778 r=`${PWD_COMMAND}`; export r; \
19779 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19780 $(HOST_EXPORTS) \
19781 for flag in $(EXTRA_HOST_FLAGS) ; do \
19782 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19783 done; \
19784 echo "Doing clean in libdecnumber" ; \
19785 (cd $(HOST_SUBDIR)/libdecnumber && \
19786 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19787 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19788 "RANLIB=$${RANLIB}" \
19789 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19790 clean) \
19791 || exit 1
19792
19793@endif libdecnumber
19794
19795.PHONY: maybe-distclean-libdecnumber distclean-libdecnumber
19796maybe-distclean-libdecnumber:
19797@if libdecnumber
19798maybe-distclean-libdecnumber: distclean-libdecnumber
19799
19800distclean-libdecnumber:
19801 @[ -f ./libdecnumber/Makefile ] || exit 0; \
19802 r=`${PWD_COMMAND}`; export r; \
19803 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19804 $(HOST_EXPORTS) \
19805 for flag in $(EXTRA_HOST_FLAGS) ; do \
19806 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19807 done; \
19808 echo "Doing distclean in libdecnumber" ; \
19809 (cd $(HOST_SUBDIR)/libdecnumber && \
19810 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19811 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19812 "RANLIB=$${RANLIB}" \
19813 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19814 distclean) \
19815 || exit 1
19816
19817@endif libdecnumber
19818
19819.PHONY: maybe-maintainer-clean-libdecnumber maintainer-clean-libdecnumber
19820maybe-maintainer-clean-libdecnumber:
19821@if libdecnumber
19822maybe-maintainer-clean-libdecnumber: maintainer-clean-libdecnumber
19823
19824maintainer-clean-libdecnumber:
19825 @[ -f ./libdecnumber/Makefile ] || exit 0; \
19826 r=`${PWD_COMMAND}`; export r; \
19827 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19828 $(HOST_EXPORTS) \
19829 for flag in $(EXTRA_HOST_FLAGS) ; do \
19830 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19831 done; \
19832 echo "Doing maintainer-clean in libdecnumber" ; \
19833 (cd $(HOST_SUBDIR)/libdecnumber && \
19834 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19835 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19836 "RANLIB=$${RANLIB}" \
19837 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
19838 maintainer-clean) \
19839 || exit 1
19840
19841@endif libdecnumber
19842
19843
19844
d32ab992
PB
19845.PHONY: configure-libgui maybe-configure-libgui
19846maybe-configure-libgui:
3ff3adad
PB
19847@if gcc-bootstrap
19848configure-libgui: stage_current
19849@endif gcc-bootstrap
d32ab992
PB
19850@if libgui
19851maybe-configure-libgui: configure-libgui
cc11cc9b 19852configure-libgui:
f41d6665 19853 @: $(MAKE); $(unstage)
cc11cc9b 19854 @r=`${PWD_COMMAND}`; export r; \
6de9cd9a 19855 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
19856 test ! -f $(HOST_SUBDIR)/libgui/Makefile || exit 0; \
19857 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libgui ; \
4fc4dd12 19858 $(HOST_EXPORTS) \
25b42232
PB
19859 echo Configuring in $(HOST_SUBDIR)/libgui; \
19860 cd "$(HOST_SUBDIR)/libgui" || exit 1; \
6de9cd9a 19861 case $(srcdir) in \
215c351a
PB
19862 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
19863 *) topdir=`echo $(HOST_SUBDIR)/libgui/ | \
19864 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6de9cd9a 19865 esac; \
215c351a
PB
19866 srcdiroption="--srcdir=$${topdir}/libgui"; \
19867 libsrcdir="$$s/libgui"; \
6de9cd9a 19868 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 19869 $(HOST_CONFIGARGS) $${srcdiroption} \
6de9cd9a 19870 || exit 1
d32ab992 19871@endif libgui
6de9cd9a 19872
25b42232
PB
19873
19874
ce406537
PB
19875
19876
d32ab992
PB
19877.PHONY: all-libgui maybe-all-libgui
19878maybe-all-libgui:
3ff3adad
PB
19879@if gcc-bootstrap
19880all-libgui: stage_current
19881@endif gcc-bootstrap
d32ab992 19882@if libgui
7e0b5752 19883TARGET-libgui=all
d32ab992
PB
19884maybe-all-libgui: all-libgui
19885all-libgui: configure-libgui
f41d6665 19886 @: $(MAKE); $(unstage)
6de9cd9a
DN
19887 @r=`${PWD_COMMAND}`; export r; \
19888 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 19889 $(HOST_EXPORTS) \
215c351a
PB
19890 (cd $(HOST_SUBDIR)/libgui && \
19891 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-libgui))
d32ab992 19892@endif libgui
6de9cd9a 19893
25b42232 19894
ce406537
PB
19895
19896
d32ab992
PB
19897.PHONY: check-libgui maybe-check-libgui
19898maybe-check-libgui:
19899@if libgui
19900maybe-check-libgui: check-libgui
6de9cd9a 19901
d32ab992 19902check-libgui:
f41d6665 19903 @: $(MAKE); $(unstage)
6de9cd9a
DN
19904 @r=`${PWD_COMMAND}`; export r; \
19905 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 19906 $(HOST_EXPORTS) \
215c351a
PB
19907 (cd $(HOST_SUBDIR)/libgui && \
19908 $(MAKE) $(FLAGS_TO_PASS) check)
6de9cd9a 19909
d32ab992 19910@endif libgui
6de9cd9a 19911
d32ab992
PB
19912.PHONY: install-libgui maybe-install-libgui
19913maybe-install-libgui:
19914@if libgui
19915maybe-install-libgui: install-libgui
6de9cd9a 19916
d32ab992 19917install-libgui: installdirs
f41d6665 19918 @: $(MAKE); $(unstage)
d32ab992
PB
19919 @r=`${PWD_COMMAND}`; export r; \
19920 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d32ab992 19921 $(HOST_EXPORTS) \
215c351a 19922 (cd $(HOST_SUBDIR)/libgui && \
ace9ac7b 19923 $(MAKE) $(FLAGS_TO_PASS) install)
6de9cd9a 19924
d32ab992 19925@endif libgui
6de9cd9a 19926
b5422ad7 19927# Other targets (info, dvi, pdf, etc.)
6de9cd9a 19928
d32ab992
PB
19929.PHONY: maybe-info-libgui info-libgui
19930maybe-info-libgui:
19931@if libgui
19932maybe-info-libgui: info-libgui
6de9cd9a 19933
d32ab992 19934info-libgui: \
05750653 19935 configure-libgui
f41d6665 19936 @: $(MAKE); $(unstage)
d32ab992 19937 @[ -f ./libgui/Makefile ] || exit 0; \
6de9cd9a
DN
19938 r=`${PWD_COMMAND}`; export r; \
19939 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 19940 $(HOST_EXPORTS) \
d32ab992 19941 for flag in $(EXTRA_HOST_FLAGS) ; do \
6de9cd9a
DN
19942 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19943 done; \
d32ab992 19944 echo "Doing info in libgui" ; \
215c351a 19945 (cd $(HOST_SUBDIR)/libgui && \
6de9cd9a
DN
19946 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19947 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19948 "RANLIB=$${RANLIB}" \
19949 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 19950 info) \
6de9cd9a
DN
19951 || exit 1
19952
d32ab992 19953@endif libgui
6de9cd9a 19954
d32ab992
PB
19955.PHONY: maybe-dvi-libgui dvi-libgui
19956maybe-dvi-libgui:
19957@if libgui
19958maybe-dvi-libgui: dvi-libgui
6de9cd9a 19959
d32ab992 19960dvi-libgui: \
05750653 19961 configure-libgui
f41d6665 19962 @: $(MAKE); $(unstage)
d32ab992 19963 @[ -f ./libgui/Makefile ] || exit 0; \
6de9cd9a
DN
19964 r=`${PWD_COMMAND}`; export r; \
19965 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 19966 $(HOST_EXPORTS) \
d32ab992 19967 for flag in $(EXTRA_HOST_FLAGS) ; do \
6de9cd9a
DN
19968 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19969 done; \
d32ab992 19970 echo "Doing dvi in libgui" ; \
215c351a 19971 (cd $(HOST_SUBDIR)/libgui && \
6de9cd9a
DN
19972 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19973 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
19974 "RANLIB=$${RANLIB}" \
19975 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 19976 dvi) \
6de9cd9a
DN
19977 || exit 1
19978
d32ab992 19979@endif libgui
6de9cd9a 19980
b5422ad7
BM
19981.PHONY: maybe-pdf-libgui pdf-libgui
19982maybe-pdf-libgui:
19983@if libgui
19984maybe-pdf-libgui: pdf-libgui
19985
19986pdf-libgui: \
19987 configure-libgui
19988 @: $(MAKE); $(unstage)
19989 @[ -f ./libgui/Makefile ] || exit 0; \
19990 r=`${PWD_COMMAND}`; export r; \
19991 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
19992 $(HOST_EXPORTS) \
19993 for flag in $(EXTRA_HOST_FLAGS) ; do \
19994 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
19995 done; \
19996 echo "Doing pdf in libgui" ; \
19997 (cd $(HOST_SUBDIR)/libgui && \
19998 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
19999 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20000 "RANLIB=$${RANLIB}" \
20001 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20002 pdf) \
20003 || exit 1
20004
20005@endif libgui
20006
f87a2b2e
MS
20007.PHONY: maybe-html-libgui html-libgui
20008maybe-html-libgui:
20009@if libgui
20010maybe-html-libgui: html-libgui
20011
20012html-libgui: \
05750653 20013 configure-libgui
f41d6665 20014 @: $(MAKE); $(unstage)
f87a2b2e
MS
20015 @[ -f ./libgui/Makefile ] || exit 0; \
20016 r=`${PWD_COMMAND}`; export r; \
20017 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
20018 $(HOST_EXPORTS) \
20019 for flag in $(EXTRA_HOST_FLAGS) ; do \
20020 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20021 done; \
20022 echo "Doing html in libgui" ; \
215c351a 20023 (cd $(HOST_SUBDIR)/libgui && \
f87a2b2e
MS
20024 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20025 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20026 "RANLIB=$${RANLIB}" \
20027 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20028 html) \
20029 || exit 1
20030
20031@endif libgui
20032
d32ab992
PB
20033.PHONY: maybe-TAGS-libgui TAGS-libgui
20034maybe-TAGS-libgui:
20035@if libgui
20036maybe-TAGS-libgui: TAGS-libgui
6de9cd9a 20037
d32ab992 20038TAGS-libgui: \
05750653 20039 configure-libgui
f41d6665 20040 @: $(MAKE); $(unstage)
d32ab992 20041 @[ -f ./libgui/Makefile ] || exit 0; \
6de9cd9a
DN
20042 r=`${PWD_COMMAND}`; export r; \
20043 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20044 $(HOST_EXPORTS) \
d32ab992 20045 for flag in $(EXTRA_HOST_FLAGS) ; do \
6de9cd9a
DN
20046 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20047 done; \
d32ab992 20048 echo "Doing TAGS in libgui" ; \
215c351a 20049 (cd $(HOST_SUBDIR)/libgui && \
6de9cd9a
DN
20050 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20051 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20052 "RANLIB=$${RANLIB}" \
20053 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20054 TAGS) \
6de9cd9a
DN
20055 || exit 1
20056
d32ab992 20057@endif libgui
6de9cd9a 20058
d32ab992
PB
20059.PHONY: maybe-install-info-libgui install-info-libgui
20060maybe-install-info-libgui:
20061@if libgui
20062maybe-install-info-libgui: install-info-libgui
6de9cd9a 20063
d32ab992
PB
20064install-info-libgui: \
20065 configure-libgui \
05750653 20066 info-libgui
f41d6665 20067 @: $(MAKE); $(unstage)
d32ab992 20068 @[ -f ./libgui/Makefile ] || exit 0; \
6de9cd9a
DN
20069 r=`${PWD_COMMAND}`; export r; \
20070 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20071 $(HOST_EXPORTS) \
d32ab992 20072 for flag in $(EXTRA_HOST_FLAGS) ; do \
6de9cd9a
DN
20073 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20074 done; \
d32ab992 20075 echo "Doing install-info in libgui" ; \
215c351a 20076 (cd $(HOST_SUBDIR)/libgui && \
6de9cd9a
DN
20077 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20078 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20079 "RANLIB=$${RANLIB}" \
20080 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20081 install-info) \
6de9cd9a
DN
20082 || exit 1
20083
d32ab992 20084@endif libgui
6de9cd9a 20085
65d6e994
CD
20086.PHONY: maybe-install-html-libgui install-html-libgui
20087maybe-install-html-libgui:
20088@if libgui
20089maybe-install-html-libgui: install-html-libgui
20090
20091install-html-libgui: \
20092 configure-libgui \
20093 html-libgui
20094 @: $(MAKE); $(unstage)
20095 @[ -f ./libgui/Makefile ] || exit 0; \
20096 r=`${PWD_COMMAND}`; export r; \
20097 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20098 $(HOST_EXPORTS) \
20099 for flag in $(EXTRA_HOST_FLAGS) ; do \
20100 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20101 done; \
20102 echo "Doing install-html in libgui" ; \
20103 (cd $(HOST_SUBDIR)/libgui && \
20104 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20105 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20106 "RANLIB=$${RANLIB}" \
20107 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20108 install-html) \
20109 || exit 1
20110
20111@endif libgui
20112
d32ab992
PB
20113.PHONY: maybe-installcheck-libgui installcheck-libgui
20114maybe-installcheck-libgui:
20115@if libgui
20116maybe-installcheck-libgui: installcheck-libgui
6de9cd9a 20117
d32ab992 20118installcheck-libgui: \
05750653 20119 configure-libgui
f41d6665 20120 @: $(MAKE); $(unstage)
d32ab992 20121 @[ -f ./libgui/Makefile ] || exit 0; \
6de9cd9a
DN
20122 r=`${PWD_COMMAND}`; export r; \
20123 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20124 $(HOST_EXPORTS) \
d32ab992 20125 for flag in $(EXTRA_HOST_FLAGS) ; do \
6de9cd9a
DN
20126 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20127 done; \
d32ab992 20128 echo "Doing installcheck in libgui" ; \
215c351a 20129 (cd $(HOST_SUBDIR)/libgui && \
6de9cd9a
DN
20130 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20131 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20132 "RANLIB=$${RANLIB}" \
20133 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20134 installcheck) \
6de9cd9a
DN
20135 || exit 1
20136
d32ab992 20137@endif libgui
6de9cd9a 20138
d32ab992
PB
20139.PHONY: maybe-mostlyclean-libgui mostlyclean-libgui
20140maybe-mostlyclean-libgui:
20141@if libgui
20142maybe-mostlyclean-libgui: mostlyclean-libgui
6de9cd9a 20143
05750653 20144mostlyclean-libgui:
f41d6665 20145 @: $(MAKE); $(unstage)
d32ab992 20146 @[ -f ./libgui/Makefile ] || exit 0; \
6de9cd9a
DN
20147 r=`${PWD_COMMAND}`; export r; \
20148 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20149 $(HOST_EXPORTS) \
d32ab992 20150 for flag in $(EXTRA_HOST_FLAGS) ; do \
6de9cd9a
DN
20151 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20152 done; \
d32ab992 20153 echo "Doing mostlyclean in libgui" ; \
215c351a 20154 (cd $(HOST_SUBDIR)/libgui && \
6de9cd9a
DN
20155 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20156 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20157 "RANLIB=$${RANLIB}" \
20158 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20159 mostlyclean) \
6de9cd9a
DN
20160 || exit 1
20161
d32ab992 20162@endif libgui
6de9cd9a 20163
d32ab992
PB
20164.PHONY: maybe-clean-libgui clean-libgui
20165maybe-clean-libgui:
20166@if libgui
20167maybe-clean-libgui: clean-libgui
6de9cd9a 20168
05750653 20169clean-libgui:
f41d6665 20170 @: $(MAKE); $(unstage)
d32ab992 20171 @[ -f ./libgui/Makefile ] || exit 0; \
6de9cd9a
DN
20172 r=`${PWD_COMMAND}`; export r; \
20173 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20174 $(HOST_EXPORTS) \
d32ab992 20175 for flag in $(EXTRA_HOST_FLAGS) ; do \
6de9cd9a
DN
20176 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20177 done; \
d32ab992 20178 echo "Doing clean in libgui" ; \
215c351a 20179 (cd $(HOST_SUBDIR)/libgui && \
6de9cd9a
DN
20180 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20181 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20182 "RANLIB=$${RANLIB}" \
20183 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20184 clean) \
6de9cd9a
DN
20185 || exit 1
20186
d32ab992 20187@endif libgui
6de9cd9a 20188
d32ab992
PB
20189.PHONY: maybe-distclean-libgui distclean-libgui
20190maybe-distclean-libgui:
20191@if libgui
20192maybe-distclean-libgui: distclean-libgui
6de9cd9a 20193
05750653 20194distclean-libgui:
f41d6665 20195 @: $(MAKE); $(unstage)
d32ab992 20196 @[ -f ./libgui/Makefile ] || exit 0; \
6de9cd9a
DN
20197 r=`${PWD_COMMAND}`; export r; \
20198 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20199 $(HOST_EXPORTS) \
d32ab992 20200 for flag in $(EXTRA_HOST_FLAGS) ; do \
6de9cd9a
DN
20201 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20202 done; \
d32ab992 20203 echo "Doing distclean in libgui" ; \
215c351a 20204 (cd $(HOST_SUBDIR)/libgui && \
6de9cd9a
DN
20205 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20206 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20207 "RANLIB=$${RANLIB}" \
20208 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20209 distclean) \
6de9cd9a
DN
20210 || exit 1
20211
d32ab992 20212@endif libgui
6de9cd9a 20213
d32ab992
PB
20214.PHONY: maybe-maintainer-clean-libgui maintainer-clean-libgui
20215maybe-maintainer-clean-libgui:
20216@if libgui
20217maybe-maintainer-clean-libgui: maintainer-clean-libgui
6de9cd9a 20218
05750653 20219maintainer-clean-libgui:
f41d6665 20220 @: $(MAKE); $(unstage)
d32ab992 20221 @[ -f ./libgui/Makefile ] || exit 0; \
6de9cd9a
DN
20222 r=`${PWD_COMMAND}`; export r; \
20223 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20224 $(HOST_EXPORTS) \
d32ab992 20225 for flag in $(EXTRA_HOST_FLAGS) ; do \
6de9cd9a
DN
20226 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20227 done; \
d32ab992 20228 echo "Doing maintainer-clean in libgui" ; \
215c351a 20229 (cd $(HOST_SUBDIR)/libgui && \
6de9cd9a
DN
20230 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20231 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20232 "RANLIB=$${RANLIB}" \
20233 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20234 maintainer-clean) \
6de9cd9a
DN
20235 || exit 1
20236
d32ab992 20237@endif libgui
6de9cd9a
DN
20238
20239
25b42232 20240
d32ab992
PB
20241.PHONY: configure-libiberty maybe-configure-libiberty
20242maybe-configure-libiberty:
3ff3adad
PB
20243@if gcc-bootstrap
20244configure-libiberty: stage_current
20245@endif gcc-bootstrap
d32ab992
PB
20246@if libiberty
20247maybe-configure-libiberty: configure-libiberty
cc11cc9b 20248configure-libiberty:
cc11cc9b
PB
20249 @r=`${PWD_COMMAND}`; export r; \
20250 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
215c351a
PB
20251 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
20252 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
4fc4dd12 20253 $(HOST_EXPORTS) \
25b42232
PB
20254 echo Configuring in $(HOST_SUBDIR)/libiberty; \
20255 cd "$(HOST_SUBDIR)/libiberty" || exit 1; \
295f4e42 20256 case $(srcdir) in \
215c351a
PB
20257 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
20258 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
20259 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 20260 esac; \
215c351a
PB
20261 srcdiroption="--srcdir=$${topdir}/libiberty"; \
20262 libsrcdir="$$s/libiberty"; \
295f4e42 20263 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 20264 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 20265 || exit 1
d32ab992 20266@endif libiberty
1358ccea 20267
25b42232
PB
20268
20269
ce406537
PB
20270.PHONY: configure-stage1-libiberty maybe-configure-stage1-libiberty
20271maybe-configure-stage1-libiberty:
20272@if libiberty-bootstrap
20273maybe-configure-stage1-libiberty: configure-stage1-libiberty
f41d6665 20274configure-stage1-libiberty:
cc11cc9b 20275 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
f41d6665 20276 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
cc11cc9b
PB
20277 @r=`${PWD_COMMAND}`; export r; \
20278 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 20279 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
ce406537
PB
20280 $(HOST_EXPORTS) \
20281 echo Configuring stage 1 in $(HOST_SUBDIR)/libiberty ; \
f41d6665 20282 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
ce406537
PB
20283 cd $(HOST_SUBDIR)/libiberty || exit 1; \
20284 case $(srcdir) in \
20285 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
20286 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
20287 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20288 esac; \
20289 srcdiroption="--srcdir=$${topdir}/libiberty"; \
20290 libsrcdir="$$s/libiberty"; \
20291 $(SHELL) $${libsrcdir}/configure \
20292 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 20293 \
8efea775 20294 --disable-intermodule $(STAGE1_CHECKING) --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
ce406537
PB
20295@endif libiberty-bootstrap
20296
20297.PHONY: configure-stage2-libiberty maybe-configure-stage2-libiberty
20298maybe-configure-stage2-libiberty:
20299@if libiberty-bootstrap
20300maybe-configure-stage2-libiberty: configure-stage2-libiberty
f41d6665 20301configure-stage2-libiberty:
cc11cc9b 20302 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
f41d6665 20303 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
cc11cc9b
PB
20304 @r=`${PWD_COMMAND}`; export r; \
20305 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 20306 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
ce406537
PB
20307 $(HOST_EXPORTS) \
20308 $(POSTSTAGE1_HOST_EXPORTS) \
20309 echo Configuring stage 2 in $(HOST_SUBDIR)/libiberty ; \
f41d6665 20310 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
ce406537
PB
20311 cd $(HOST_SUBDIR)/libiberty || exit 1; \
20312 case $(srcdir) in \
20313 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
20314 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
20315 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20316 esac; \
20317 srcdiroption="--srcdir=$${topdir}/libiberty"; \
20318 libsrcdir="$$s/libiberty"; \
20319 $(SHELL) $${libsrcdir}/configure \
20320 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 20321 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
20322 @stage2_werror_flag@
20323@endif libiberty-bootstrap
20324
20325.PHONY: configure-stage3-libiberty maybe-configure-stage3-libiberty
20326maybe-configure-stage3-libiberty:
20327@if libiberty-bootstrap
20328maybe-configure-stage3-libiberty: configure-stage3-libiberty
f41d6665 20329configure-stage3-libiberty:
cc11cc9b 20330 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
f41d6665 20331 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
cc11cc9b
PB
20332 @r=`${PWD_COMMAND}`; export r; \
20333 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 20334 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
ce406537
PB
20335 $(HOST_EXPORTS) \
20336 $(POSTSTAGE1_HOST_EXPORTS) \
20337 echo Configuring stage 3 in $(HOST_SUBDIR)/libiberty ; \
f41d6665 20338 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
ce406537
PB
20339 cd $(HOST_SUBDIR)/libiberty || exit 1; \
20340 case $(srcdir) in \
20341 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
20342 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
20343 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20344 esac; \
20345 srcdiroption="--srcdir=$${topdir}/libiberty"; \
20346 libsrcdir="$$s/libiberty"; \
20347 $(SHELL) $${libsrcdir}/configure \
20348 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 20349 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
20350 @stage2_werror_flag@
20351@endif libiberty-bootstrap
20352
20353.PHONY: configure-stage4-libiberty maybe-configure-stage4-libiberty
20354maybe-configure-stage4-libiberty:
20355@if libiberty-bootstrap
20356maybe-configure-stage4-libiberty: configure-stage4-libiberty
f41d6665 20357configure-stage4-libiberty:
cc11cc9b 20358 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
f41d6665 20359 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
cc11cc9b
PB
20360 @r=`${PWD_COMMAND}`; export r; \
20361 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 20362 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
ce406537
PB
20363 $(HOST_EXPORTS) \
20364 $(POSTSTAGE1_HOST_EXPORTS) \
20365 echo Configuring stage 4 in $(HOST_SUBDIR)/libiberty ; \
f41d6665 20366 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
ce406537
PB
20367 cd $(HOST_SUBDIR)/libiberty || exit 1; \
20368 case $(srcdir) in \
20369 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
20370 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
20371 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20372 esac; \
20373 srcdiroption="--srcdir=$${topdir}/libiberty"; \
20374 libsrcdir="$$s/libiberty"; \
20375 $(SHELL) $${libsrcdir}/configure \
20376 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 20377 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
20378 @stage2_werror_flag@
20379@endif libiberty-bootstrap
20380
20381.PHONY: configure-stageprofile-libiberty maybe-configure-stageprofile-libiberty
20382maybe-configure-stageprofile-libiberty:
20383@if libiberty-bootstrap
20384maybe-configure-stageprofile-libiberty: configure-stageprofile-libiberty
f41d6665 20385configure-stageprofile-libiberty:
cc11cc9b 20386 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
f41d6665 20387 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
cc11cc9b
PB
20388 @r=`${PWD_COMMAND}`; export r; \
20389 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 20390 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
ce406537
PB
20391 $(HOST_EXPORTS) \
20392 $(POSTSTAGE1_HOST_EXPORTS) \
20393 echo Configuring stage profile in $(HOST_SUBDIR)/libiberty ; \
f41d6665 20394 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
ce406537
PB
20395 cd $(HOST_SUBDIR)/libiberty || exit 1; \
20396 case $(srcdir) in \
20397 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
20398 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
20399 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20400 esac; \
20401 srcdiroption="--srcdir=$${topdir}/libiberty"; \
20402 libsrcdir="$$s/libiberty"; \
20403 $(SHELL) $${libsrcdir}/configure \
20404 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 20405 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
20406 @stage2_werror_flag@
20407@endif libiberty-bootstrap
20408
20409.PHONY: configure-stagefeedback-libiberty maybe-configure-stagefeedback-libiberty
20410maybe-configure-stagefeedback-libiberty:
20411@if libiberty-bootstrap
20412maybe-configure-stagefeedback-libiberty: configure-stagefeedback-libiberty
f41d6665 20413configure-stagefeedback-libiberty:
cc11cc9b 20414 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
f41d6665 20415 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty
cc11cc9b
PB
20416 @r=`${PWD_COMMAND}`; export r; \
20417 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 20418 test ! -f $(HOST_SUBDIR)/libiberty/Makefile || exit 0; \
ce406537
PB
20419 $(HOST_EXPORTS) \
20420 $(POSTSTAGE1_HOST_EXPORTS) \
20421 echo Configuring stage feedback in $(HOST_SUBDIR)/libiberty ; \
f41d6665 20422 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiberty ; \
ce406537
PB
20423 cd $(HOST_SUBDIR)/libiberty || exit 1; \
20424 case $(srcdir) in \
20425 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
20426 *) topdir=`echo $(HOST_SUBDIR)/libiberty/ | \
20427 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
20428 esac; \
20429 srcdiroption="--srcdir=$${topdir}/libiberty"; \
20430 libsrcdir="$$s/libiberty"; \
20431 $(SHELL) $${libsrcdir}/configure \
20432 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 20433 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
20434 @stage2_werror_flag@
20435@endif libiberty-bootstrap
20436
20437
20438
20439
20440
d32ab992
PB
20441.PHONY: all-libiberty maybe-all-libiberty
20442maybe-all-libiberty:
3ff3adad
PB
20443@if gcc-bootstrap
20444all-libiberty: stage_current
20445@endif gcc-bootstrap
d32ab992 20446@if libiberty
7e0b5752 20447TARGET-libiberty=all
d32ab992
PB
20448maybe-all-libiberty: all-libiberty
20449all-libiberty: configure-libiberty
cc11cc9b 20450 @r=`${PWD_COMMAND}`; export r; \
d32ab992 20451 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20452 $(HOST_EXPORTS) \
215c351a
PB
20453 (cd $(HOST_SUBDIR)/libiberty && \
20454 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-libiberty))
d32ab992 20455@endif libiberty
1358ccea 20456
25b42232 20457
ce406537
PB
20458
20459.PHONY: all-stage1-libiberty maybe-all-stage1-libiberty
20460.PHONY: clean-stage1-libiberty maybe-clean-stage1-libiberty
20461maybe-all-stage1-libiberty:
20462maybe-clean-stage1-libiberty:
20463@if libiberty-bootstrap
20464maybe-all-stage1-libiberty: all-stage1-libiberty
20465all-stage1: all-stage1-libiberty
1061f99e 20466TARGET-stage1-libiberty = $(TARGET-libiberty)
ce406537 20467all-stage1-libiberty: configure-stage1-libiberty
cc11cc9b 20468 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
ce406537
PB
20469 @r=`${PWD_COMMAND}`; export r; \
20470 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20471 $(HOST_EXPORTS) \
20472 cd $(HOST_SUBDIR)/libiberty && \
cc11cc9b 20473 $(MAKE) $(FLAGS_TO_PASS) CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" \
1061f99e 20474 $(TARGET-stage1-libiberty)
ce406537
PB
20475
20476maybe-clean-stage1-libiberty: clean-stage1-libiberty
20477clean-stage1: clean-stage1-libiberty
20478clean-stage1-libiberty:
995a5697
PB
20479 @if [ $(current_stage) = stage1 ]; then \
20480 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
20481 else \
20482 [ -f $(HOST_SUBDIR)/stage1-libiberty/Makefile ] || exit 0; \
20483 $(MAKE) stage1-start; \
20484 fi; \
ce406537
PB
20485 cd $(HOST_SUBDIR)/libiberty && \
20486 $(MAKE) $(FLAGS_TO_PASS) \
cc11cc9b 20487 CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" clean
ce406537
PB
20488@endif libiberty-bootstrap
20489
20490
20491.PHONY: all-stage2-libiberty maybe-all-stage2-libiberty
20492.PHONY: clean-stage2-libiberty maybe-clean-stage2-libiberty
20493maybe-all-stage2-libiberty:
20494maybe-clean-stage2-libiberty:
20495@if libiberty-bootstrap
20496maybe-all-stage2-libiberty: all-stage2-libiberty
20497all-stage2: all-stage2-libiberty
1061f99e 20498TARGET-stage2-libiberty = $(TARGET-libiberty)
ce406537 20499all-stage2-libiberty: configure-stage2-libiberty
cc11cc9b 20500 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
ce406537
PB
20501 @r=`${PWD_COMMAND}`; export r; \
20502 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20503 $(HOST_EXPORTS) \
20504 $(POSTSTAGE1_HOST_EXPORTS) \
20505 cd $(HOST_SUBDIR)/libiberty && \
1061f99e
PB
20506 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
20507 $(TARGET-stage2-libiberty)
ce406537
PB
20508
20509maybe-clean-stage2-libiberty: clean-stage2-libiberty
20510clean-stage2: clean-stage2-libiberty
20511clean-stage2-libiberty:
995a5697
PB
20512 @if [ $(current_stage) = stage2 ]; then \
20513 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
20514 else \
20515 [ -f $(HOST_SUBDIR)/stage2-libiberty/Makefile ] || exit 0; \
20516 $(MAKE) stage2-start; \
20517 fi; \
ce406537
PB
20518 cd $(HOST_SUBDIR)/libiberty && \
20519 $(MAKE) $(FLAGS_TO_PASS) \
20520 $(POSTSTAGE1_FLAGS_TO_PASS) \
20521 clean
20522@endif libiberty-bootstrap
20523
20524
20525.PHONY: all-stage3-libiberty maybe-all-stage3-libiberty
20526.PHONY: clean-stage3-libiberty maybe-clean-stage3-libiberty
20527maybe-all-stage3-libiberty:
20528maybe-clean-stage3-libiberty:
20529@if libiberty-bootstrap
20530maybe-all-stage3-libiberty: all-stage3-libiberty
20531all-stage3: all-stage3-libiberty
1061f99e 20532TARGET-stage3-libiberty = $(TARGET-libiberty)
ce406537 20533all-stage3-libiberty: configure-stage3-libiberty
cc11cc9b 20534 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
ce406537
PB
20535 @r=`${PWD_COMMAND}`; export r; \
20536 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20537 $(HOST_EXPORTS) \
20538 $(POSTSTAGE1_HOST_EXPORTS) \
20539 cd $(HOST_SUBDIR)/libiberty && \
1061f99e
PB
20540 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
20541 $(TARGET-stage3-libiberty)
ce406537
PB
20542
20543maybe-clean-stage3-libiberty: clean-stage3-libiberty
20544clean-stage3: clean-stage3-libiberty
20545clean-stage3-libiberty:
995a5697
PB
20546 @if [ $(current_stage) = stage3 ]; then \
20547 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
20548 else \
20549 [ -f $(HOST_SUBDIR)/stage3-libiberty/Makefile ] || exit 0; \
20550 $(MAKE) stage3-start; \
20551 fi; \
ce406537
PB
20552 cd $(HOST_SUBDIR)/libiberty && \
20553 $(MAKE) $(FLAGS_TO_PASS) \
20554 $(POSTSTAGE1_FLAGS_TO_PASS) \
20555 clean
20556@endif libiberty-bootstrap
20557
20558
20559.PHONY: all-stage4-libiberty maybe-all-stage4-libiberty
20560.PHONY: clean-stage4-libiberty maybe-clean-stage4-libiberty
20561maybe-all-stage4-libiberty:
20562maybe-clean-stage4-libiberty:
20563@if libiberty-bootstrap
20564maybe-all-stage4-libiberty: all-stage4-libiberty
20565all-stage4: all-stage4-libiberty
1061f99e 20566TARGET-stage4-libiberty = $(TARGET-libiberty)
ce406537 20567all-stage4-libiberty: configure-stage4-libiberty
cc11cc9b 20568 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
ce406537
PB
20569 @r=`${PWD_COMMAND}`; export r; \
20570 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20571 $(HOST_EXPORTS) \
20572 $(POSTSTAGE1_HOST_EXPORTS) \
20573 cd $(HOST_SUBDIR)/libiberty && \
1061f99e
PB
20574 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
20575 $(TARGET-stage4-libiberty)
ce406537
PB
20576
20577maybe-clean-stage4-libiberty: clean-stage4-libiberty
20578clean-stage4: clean-stage4-libiberty
20579clean-stage4-libiberty:
995a5697
PB
20580 @if [ $(current_stage) = stage4 ]; then \
20581 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
20582 else \
20583 [ -f $(HOST_SUBDIR)/stage4-libiberty/Makefile ] || exit 0; \
20584 $(MAKE) stage4-start; \
20585 fi; \
ce406537
PB
20586 cd $(HOST_SUBDIR)/libiberty && \
20587 $(MAKE) $(FLAGS_TO_PASS) \
20588 $(POSTSTAGE1_FLAGS_TO_PASS) \
20589 clean
20590@endif libiberty-bootstrap
20591
20592
20593.PHONY: all-stageprofile-libiberty maybe-all-stageprofile-libiberty
20594.PHONY: clean-stageprofile-libiberty maybe-clean-stageprofile-libiberty
20595maybe-all-stageprofile-libiberty:
20596maybe-clean-stageprofile-libiberty:
20597@if libiberty-bootstrap
20598maybe-all-stageprofile-libiberty: all-stageprofile-libiberty
20599all-stageprofile: all-stageprofile-libiberty
1061f99e 20600TARGET-stageprofile-libiberty = $(TARGET-libiberty)
ce406537 20601all-stageprofile-libiberty: configure-stageprofile-libiberty
cc11cc9b 20602 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
ce406537
PB
20603 @r=`${PWD_COMMAND}`; export r; \
20604 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20605 $(HOST_EXPORTS) \
20606 $(POSTSTAGE1_HOST_EXPORTS) \
20607 cd $(HOST_SUBDIR)/libiberty && \
1061f99e
PB
20608 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" \
20609 $(TARGET-stageprofile-libiberty)
ce406537
PB
20610
20611maybe-clean-stageprofile-libiberty: clean-stageprofile-libiberty
20612clean-stageprofile: clean-stageprofile-libiberty
20613clean-stageprofile-libiberty:
995a5697
PB
20614 @if [ $(current_stage) = stageprofile ]; then \
20615 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
20616 else \
20617 [ -f $(HOST_SUBDIR)/stageprofile-libiberty/Makefile ] || exit 0; \
20618 $(MAKE) stageprofile-start; \
20619 fi; \
ce406537
PB
20620 cd $(HOST_SUBDIR)/libiberty && \
20621 $(MAKE) $(FLAGS_TO_PASS) \
20622 $(POSTSTAGE1_FLAGS_TO_PASS) \
20623 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean
20624@endif libiberty-bootstrap
20625
20626
20627.PHONY: all-stagefeedback-libiberty maybe-all-stagefeedback-libiberty
20628.PHONY: clean-stagefeedback-libiberty maybe-clean-stagefeedback-libiberty
20629maybe-all-stagefeedback-libiberty:
20630maybe-clean-stagefeedback-libiberty:
20631@if libiberty-bootstrap
20632maybe-all-stagefeedback-libiberty: all-stagefeedback-libiberty
20633all-stagefeedback: all-stagefeedback-libiberty
1061f99e 20634TARGET-stagefeedback-libiberty = $(TARGET-libiberty)
ce406537 20635all-stagefeedback-libiberty: configure-stagefeedback-libiberty
cc11cc9b 20636 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
ce406537
PB
20637 @r=`${PWD_COMMAND}`; export r; \
20638 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20639 $(HOST_EXPORTS) \
20640 $(POSTSTAGE1_HOST_EXPORTS) \
20641 cd $(HOST_SUBDIR)/libiberty && \
1061f99e
PB
20642 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-use" \
20643 $(TARGET-stagefeedback-libiberty)
ce406537
PB
20644
20645maybe-clean-stagefeedback-libiberty: clean-stagefeedback-libiberty
20646clean-stagefeedback: clean-stagefeedback-libiberty
20647clean-stagefeedback-libiberty:
995a5697
PB
20648 @if [ $(current_stage) = stagefeedback ]; then \
20649 [ -f $(HOST_SUBDIR)/libiberty/Makefile ] || exit 0; \
20650 else \
20651 [ -f $(HOST_SUBDIR)/stagefeedback-libiberty/Makefile ] || exit 0; \
20652 $(MAKE) stagefeedback-start; \
20653 fi; \
ce406537
PB
20654 cd $(HOST_SUBDIR)/libiberty && \
20655 $(MAKE) $(FLAGS_TO_PASS) \
20656 $(POSTSTAGE1_FLAGS_TO_PASS) \
20657 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean
20658@endif libiberty-bootstrap
20659
20660
20661
20662
20663
d32ab992
PB
20664.PHONY: check-libiberty maybe-check-libiberty
20665maybe-check-libiberty:
20666@if libiberty
20667maybe-check-libiberty: check-libiberty
1358ccea 20668
d32ab992 20669check-libiberty:
f41d6665 20670 @: $(MAKE); $(unstage)
295f4e42 20671 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 20672 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20673 $(HOST_EXPORTS) \
215c351a
PB
20674 (cd $(HOST_SUBDIR)/libiberty && \
20675 $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 20676
d32ab992 20677@endif libiberty
1358ccea 20678
d32ab992
PB
20679.PHONY: install-libiberty maybe-install-libiberty
20680maybe-install-libiberty:
20681@if libiberty
20682maybe-install-libiberty: install-libiberty
1358ccea 20683
d32ab992 20684install-libiberty: installdirs
f41d6665 20685 @: $(MAKE); $(unstage)
295f4e42 20686 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 20687 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20688 $(HOST_EXPORTS) \
215c351a 20689 (cd $(HOST_SUBDIR)/libiberty && \
ace9ac7b 20690 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 20691
d32ab992 20692@endif libiberty
1358ccea 20693
b5422ad7 20694# Other targets (info, dvi, pdf, etc.)
1358ccea 20695
d32ab992
PB
20696.PHONY: maybe-info-libiberty info-libiberty
20697maybe-info-libiberty:
20698@if libiberty
20699maybe-info-libiberty: info-libiberty
295f4e42 20700
d32ab992 20701info-libiberty: \
05750653 20702 configure-libiberty
d32ab992 20703 @[ -f ./libiberty/Makefile ] || exit 0; \
8c90b13a
L
20704 r=`${PWD_COMMAND}`; export r; \
20705 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20706 $(HOST_EXPORTS) \
d32ab992 20707 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
20708 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20709 done; \
f87a2b2e 20710 echo "Doing info in libiberty" ; \
215c351a 20711 (cd $(HOST_SUBDIR)/libiberty && \
f87a2b2e
MS
20712 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20713 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20714 "RANLIB=$${RANLIB}" \
20715 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20716 info) \
20717 || exit 1
20718
20719@endif libiberty
20720
20721.PHONY: maybe-dvi-libiberty dvi-libiberty
20722maybe-dvi-libiberty:
20723@if libiberty
20724maybe-dvi-libiberty: dvi-libiberty
20725
20726dvi-libiberty: \
05750653 20727 configure-libiberty
f87a2b2e
MS
20728 @[ -f ./libiberty/Makefile ] || exit 0; \
20729 r=`${PWD_COMMAND}`; export r; \
20730 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
20731 $(HOST_EXPORTS) \
20732 for flag in $(EXTRA_HOST_FLAGS) ; do \
20733 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20734 done; \
20735 echo "Doing dvi in libiberty" ; \
215c351a 20736 (cd $(HOST_SUBDIR)/libiberty && \
1358ccea
NN
20737 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20738 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20739 "RANLIB=$${RANLIB}" \
20740 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
f87a2b2e 20741 dvi) \
1358ccea
NN
20742 || exit 1
20743
d32ab992 20744@endif libiberty
1358ccea 20745
b5422ad7
BM
20746.PHONY: maybe-pdf-libiberty pdf-libiberty
20747maybe-pdf-libiberty:
20748@if libiberty
20749maybe-pdf-libiberty: pdf-libiberty
20750
20751pdf-libiberty: \
20752 configure-libiberty
20753 @[ -f ./libiberty/Makefile ] || exit 0; \
20754 r=`${PWD_COMMAND}`; export r; \
20755 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20756 $(HOST_EXPORTS) \
20757 for flag in $(EXTRA_HOST_FLAGS) ; do \
20758 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20759 done; \
20760 echo "Doing pdf in libiberty" ; \
20761 (cd $(HOST_SUBDIR)/libiberty && \
20762 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20763 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20764 "RANLIB=$${RANLIB}" \
20765 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20766 pdf) \
20767 || exit 1
20768
20769@endif libiberty
20770
f87a2b2e
MS
20771.PHONY: maybe-html-libiberty html-libiberty
20772maybe-html-libiberty:
d32ab992 20773@if libiberty
f87a2b2e 20774maybe-html-libiberty: html-libiberty
1358ccea 20775
f87a2b2e 20776html-libiberty: \
05750653 20777 configure-libiberty
d32ab992 20778 @[ -f ./libiberty/Makefile ] || exit 0; \
8c90b13a
L
20779 r=`${PWD_COMMAND}`; export r; \
20780 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20781 $(HOST_EXPORTS) \
d32ab992 20782 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
20783 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20784 done; \
f87a2b2e 20785 echo "Doing html in libiberty" ; \
215c351a 20786 (cd $(HOST_SUBDIR)/libiberty && \
1358ccea
NN
20787 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20788 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20789 "RANLIB=$${RANLIB}" \
20790 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
f87a2b2e 20791 html) \
1358ccea
NN
20792 || exit 1
20793
d32ab992 20794@endif libiberty
1358ccea 20795
d32ab992
PB
20796.PHONY: maybe-TAGS-libiberty TAGS-libiberty
20797maybe-TAGS-libiberty:
20798@if libiberty
20799maybe-TAGS-libiberty: TAGS-libiberty
1358ccea 20800
d32ab992 20801TAGS-libiberty: \
05750653 20802 configure-libiberty
d32ab992 20803 @[ -f ./libiberty/Makefile ] || exit 0; \
8c90b13a
L
20804 r=`${PWD_COMMAND}`; export r; \
20805 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20806 $(HOST_EXPORTS) \
d32ab992 20807 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
20808 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20809 done; \
d32ab992 20810 echo "Doing TAGS in libiberty" ; \
215c351a 20811 (cd $(HOST_SUBDIR)/libiberty && \
1358ccea
NN
20812 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20813 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20814 "RANLIB=$${RANLIB}" \
20815 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20816 TAGS) \
1358ccea
NN
20817 || exit 1
20818
d32ab992 20819@endif libiberty
1358ccea 20820
d32ab992
PB
20821.PHONY: maybe-install-info-libiberty install-info-libiberty
20822maybe-install-info-libiberty:
20823@if libiberty
20824maybe-install-info-libiberty: install-info-libiberty
1358ccea 20825
d32ab992
PB
20826install-info-libiberty: \
20827 configure-libiberty \
05750653 20828 info-libiberty
d32ab992 20829 @[ -f ./libiberty/Makefile ] || exit 0; \
8c90b13a
L
20830 r=`${PWD_COMMAND}`; export r; \
20831 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20832 $(HOST_EXPORTS) \
d32ab992 20833 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
20834 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20835 done; \
d32ab992 20836 echo "Doing install-info in libiberty" ; \
215c351a 20837 (cd $(HOST_SUBDIR)/libiberty && \
1358ccea
NN
20838 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20839 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20840 "RANLIB=$${RANLIB}" \
20841 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20842 install-info) \
1358ccea
NN
20843 || exit 1
20844
d32ab992 20845@endif libiberty
1358ccea 20846
65d6e994
CD
20847.PHONY: maybe-install-html-libiberty install-html-libiberty
20848maybe-install-html-libiberty:
20849@if libiberty
20850maybe-install-html-libiberty: install-html-libiberty
20851
20852install-html-libiberty: \
20853 configure-libiberty \
20854 html-libiberty
20855 @[ -f ./libiberty/Makefile ] || exit 0; \
20856 r=`${PWD_COMMAND}`; export r; \
20857 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
20858 $(HOST_EXPORTS) \
20859 for flag in $(EXTRA_HOST_FLAGS) ; do \
20860 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20861 done; \
20862 echo "Doing install-html in libiberty" ; \
20863 (cd $(HOST_SUBDIR)/libiberty && \
20864 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20865 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20866 "RANLIB=$${RANLIB}" \
20867 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
20868 install-html) \
20869 || exit 1
20870
20871@endif libiberty
20872
d32ab992
PB
20873.PHONY: maybe-installcheck-libiberty installcheck-libiberty
20874maybe-installcheck-libiberty:
20875@if libiberty
20876maybe-installcheck-libiberty: installcheck-libiberty
1358ccea 20877
d32ab992 20878installcheck-libiberty: \
05750653 20879 configure-libiberty
d32ab992 20880 @[ -f ./libiberty/Makefile ] || exit 0; \
8c90b13a
L
20881 r=`${PWD_COMMAND}`; export r; \
20882 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20883 $(HOST_EXPORTS) \
d32ab992 20884 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
20885 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20886 done; \
d32ab992 20887 echo "Doing installcheck in libiberty" ; \
215c351a 20888 (cd $(HOST_SUBDIR)/libiberty && \
1358ccea
NN
20889 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20890 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20891 "RANLIB=$${RANLIB}" \
20892 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20893 installcheck) \
1358ccea
NN
20894 || exit 1
20895
d32ab992 20896@endif libiberty
1358ccea 20897
d32ab992
PB
20898.PHONY: maybe-mostlyclean-libiberty mostlyclean-libiberty
20899maybe-mostlyclean-libiberty:
20900@if libiberty
20901maybe-mostlyclean-libiberty: mostlyclean-libiberty
1358ccea 20902
05750653 20903mostlyclean-libiberty:
d32ab992 20904 @[ -f ./libiberty/Makefile ] || exit 0; \
8c90b13a
L
20905 r=`${PWD_COMMAND}`; export r; \
20906 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20907 $(HOST_EXPORTS) \
d32ab992 20908 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
20909 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20910 done; \
d32ab992 20911 echo "Doing mostlyclean in libiberty" ; \
215c351a 20912 (cd $(HOST_SUBDIR)/libiberty && \
1358ccea
NN
20913 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20914 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20915 "RANLIB=$${RANLIB}" \
20916 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20917 mostlyclean) \
1358ccea
NN
20918 || exit 1
20919
d32ab992 20920@endif libiberty
1358ccea 20921
d32ab992
PB
20922.PHONY: maybe-clean-libiberty clean-libiberty
20923maybe-clean-libiberty:
20924@if libiberty
20925maybe-clean-libiberty: clean-libiberty
1358ccea 20926
05750653 20927clean-libiberty:
d32ab992 20928 @[ -f ./libiberty/Makefile ] || exit 0; \
8c90b13a
L
20929 r=`${PWD_COMMAND}`; export r; \
20930 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20931 $(HOST_EXPORTS) \
d32ab992 20932 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
20933 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20934 done; \
d32ab992 20935 echo "Doing clean in libiberty" ; \
215c351a 20936 (cd $(HOST_SUBDIR)/libiberty && \
1358ccea
NN
20937 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20938 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20939 "RANLIB=$${RANLIB}" \
20940 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20941 clean) \
1358ccea
NN
20942 || exit 1
20943
d32ab992 20944@endif libiberty
1358ccea 20945
d32ab992
PB
20946.PHONY: maybe-distclean-libiberty distclean-libiberty
20947maybe-distclean-libiberty:
20948@if libiberty
20949maybe-distclean-libiberty: distclean-libiberty
1358ccea 20950
05750653 20951distclean-libiberty:
d32ab992 20952 @[ -f ./libiberty/Makefile ] || exit 0; \
8c90b13a
L
20953 r=`${PWD_COMMAND}`; export r; \
20954 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20955 $(HOST_EXPORTS) \
d32ab992 20956 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
20957 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20958 done; \
d32ab992 20959 echo "Doing distclean in libiberty" ; \
215c351a 20960 (cd $(HOST_SUBDIR)/libiberty && \
1358ccea
NN
20961 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20962 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20963 "RANLIB=$${RANLIB}" \
20964 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20965 distclean) \
1358ccea
NN
20966 || exit 1
20967
d32ab992 20968@endif libiberty
1358ccea 20969
d32ab992
PB
20970.PHONY: maybe-maintainer-clean-libiberty maintainer-clean-libiberty
20971maybe-maintainer-clean-libiberty:
20972@if libiberty
20973maybe-maintainer-clean-libiberty: maintainer-clean-libiberty
1358ccea 20974
05750653 20975maintainer-clean-libiberty:
d32ab992 20976 @[ -f ./libiberty/Makefile ] || exit 0; \
8c90b13a
L
20977 r=`${PWD_COMMAND}`; export r; \
20978 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 20979 $(HOST_EXPORTS) \
d32ab992 20980 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
20981 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
20982 done; \
d32ab992 20983 echo "Doing maintainer-clean in libiberty" ; \
215c351a 20984 (cd $(HOST_SUBDIR)/libiberty && \
1358ccea
NN
20985 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
20986 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
20987 "RANLIB=$${RANLIB}" \
20988 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 20989 maintainer-clean) \
1358ccea
NN
20990 || exit 1
20991
d32ab992 20992@endif libiberty
1358ccea 20993
1358ccea 20994
25b42232 20995
d32ab992
PB
20996.PHONY: configure-libtool maybe-configure-libtool
20997maybe-configure-libtool:
3ff3adad
PB
20998@if gcc-bootstrap
20999configure-libtool: stage_current
21000@endif gcc-bootstrap
d32ab992
PB
21001@if libtool
21002maybe-configure-libtool: configure-libtool
cc11cc9b 21003configure-libtool:
f41d6665 21004 @: $(MAKE); $(unstage)
cc11cc9b 21005 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 21006 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
21007 test ! -f $(HOST_SUBDIR)/libtool/Makefile || exit 0; \
21008 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libtool ; \
4fc4dd12 21009 $(HOST_EXPORTS) \
25b42232
PB
21010 echo Configuring in $(HOST_SUBDIR)/libtool; \
21011 cd "$(HOST_SUBDIR)/libtool" || exit 1; \
295f4e42 21012 case $(srcdir) in \
215c351a
PB
21013 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
21014 *) topdir=`echo $(HOST_SUBDIR)/libtool/ | \
21015 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 21016 esac; \
215c351a
PB
21017 srcdiroption="--srcdir=$${topdir}/libtool"; \
21018 libsrcdir="$$s/libtool"; \
295f4e42 21019 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 21020 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 21021 || exit 1
d32ab992 21022@endif libtool
1358ccea 21023
25b42232
PB
21024
21025
ce406537
PB
21026
21027
d32ab992
PB
21028.PHONY: all-libtool maybe-all-libtool
21029maybe-all-libtool:
3ff3adad
PB
21030@if gcc-bootstrap
21031all-libtool: stage_current
21032@endif gcc-bootstrap
d32ab992 21033@if libtool
7e0b5752 21034TARGET-libtool=all
d32ab992
PB
21035maybe-all-libtool: all-libtool
21036all-libtool: configure-libtool
f41d6665 21037 @: $(MAKE); $(unstage)
295f4e42
NN
21038 @r=`${PWD_COMMAND}`; export r; \
21039 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21040 $(HOST_EXPORTS) \
215c351a
PB
21041 (cd $(HOST_SUBDIR)/libtool && \
21042 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-libtool))
d32ab992 21043@endif libtool
1358ccea 21044
25b42232 21045
ce406537
PB
21046
21047
d32ab992
PB
21048.PHONY: check-libtool maybe-check-libtool
21049maybe-check-libtool:
21050@if libtool
21051maybe-check-libtool: check-libtool
1358ccea 21052
d32ab992 21053check-libtool:
f41d6665 21054 @: $(MAKE); $(unstage)
295f4e42 21055 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 21056 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21057 $(HOST_EXPORTS) \
215c351a
PB
21058 (cd $(HOST_SUBDIR)/libtool && \
21059 $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 21060
d32ab992 21061@endif libtool
1358ccea 21062
d32ab992
PB
21063.PHONY: install-libtool maybe-install-libtool
21064maybe-install-libtool:
21065@if libtool
21066maybe-install-libtool: install-libtool
1358ccea 21067
d32ab992 21068install-libtool: installdirs
f41d6665 21069 @: $(MAKE); $(unstage)
295f4e42 21070 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 21071 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21072 $(HOST_EXPORTS) \
215c351a 21073 (cd $(HOST_SUBDIR)/libtool && \
ace9ac7b 21074 $(MAKE) $(FLAGS_TO_PASS) install)
1358ccea 21075
d32ab992 21076@endif libtool
1358ccea 21077
b5422ad7 21078# Other targets (info, dvi, pdf, etc.)
1358ccea 21079
d32ab992
PB
21080.PHONY: maybe-info-libtool info-libtool
21081maybe-info-libtool:
21082@if libtool
21083maybe-info-libtool: info-libtool
295f4e42 21084
d32ab992 21085info-libtool: \
05750653 21086 configure-libtool
f41d6665 21087 @: $(MAKE); $(unstage)
d32ab992 21088 @[ -f ./libtool/Makefile ] || exit 0; \
8c90b13a
L
21089 r=`${PWD_COMMAND}`; export r; \
21090 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21091 $(HOST_EXPORTS) \
d32ab992 21092 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
21093 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21094 done; \
d32ab992 21095 echo "Doing info in libtool" ; \
215c351a 21096 (cd $(HOST_SUBDIR)/libtool && \
1358ccea
NN
21097 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21098 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21099 "RANLIB=$${RANLIB}" \
21100 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21101 info) \
1358ccea
NN
21102 || exit 1
21103
d32ab992 21104@endif libtool
1358ccea 21105
d32ab992
PB
21106.PHONY: maybe-dvi-libtool dvi-libtool
21107maybe-dvi-libtool:
21108@if libtool
21109maybe-dvi-libtool: dvi-libtool
1358ccea 21110
d32ab992 21111dvi-libtool: \
05750653 21112 configure-libtool
f41d6665 21113 @: $(MAKE); $(unstage)
d32ab992 21114 @[ -f ./libtool/Makefile ] || exit 0; \
8c90b13a
L
21115 r=`${PWD_COMMAND}`; export r; \
21116 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21117 $(HOST_EXPORTS) \
d32ab992 21118 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
21119 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21120 done; \
d32ab992 21121 echo "Doing dvi in libtool" ; \
215c351a 21122 (cd $(HOST_SUBDIR)/libtool && \
1358ccea
NN
21123 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21124 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21125 "RANLIB=$${RANLIB}" \
21126 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21127 dvi) \
1358ccea
NN
21128 || exit 1
21129
d32ab992 21130@endif libtool
1358ccea 21131
b5422ad7
BM
21132.PHONY: maybe-pdf-libtool pdf-libtool
21133maybe-pdf-libtool:
21134@if libtool
21135maybe-pdf-libtool: pdf-libtool
21136
21137pdf-libtool: \
21138 configure-libtool
21139 @: $(MAKE); $(unstage)
21140 @[ -f ./libtool/Makefile ] || exit 0; \
21141 r=`${PWD_COMMAND}`; export r; \
21142 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21143 $(HOST_EXPORTS) \
21144 for flag in $(EXTRA_HOST_FLAGS) ; do \
21145 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21146 done; \
21147 echo "Doing pdf in libtool" ; \
21148 (cd $(HOST_SUBDIR)/libtool && \
21149 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21150 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21151 "RANLIB=$${RANLIB}" \
21152 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21153 pdf) \
21154 || exit 1
21155
21156@endif libtool
21157
f87a2b2e
MS
21158.PHONY: maybe-html-libtool html-libtool
21159maybe-html-libtool:
21160@if libtool
21161maybe-html-libtool: html-libtool
21162
21163html-libtool: \
05750653 21164 configure-libtool
f41d6665 21165 @: $(MAKE); $(unstage)
f87a2b2e
MS
21166 @[ -f ./libtool/Makefile ] || exit 0; \
21167 r=`${PWD_COMMAND}`; export r; \
21168 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
21169 $(HOST_EXPORTS) \
21170 for flag in $(EXTRA_HOST_FLAGS) ; do \
21171 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21172 done; \
21173 echo "Doing html in libtool" ; \
215c351a 21174 (cd $(HOST_SUBDIR)/libtool && \
f87a2b2e
MS
21175 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21176 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21177 "RANLIB=$${RANLIB}" \
21178 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21179 html) \
21180 || exit 1
21181
21182@endif libtool
21183
d32ab992
PB
21184.PHONY: maybe-TAGS-libtool TAGS-libtool
21185maybe-TAGS-libtool:
21186@if libtool
21187maybe-TAGS-libtool: TAGS-libtool
1358ccea 21188
d32ab992 21189TAGS-libtool: \
05750653 21190 configure-libtool
f41d6665 21191 @: $(MAKE); $(unstage)
d32ab992 21192 @[ -f ./libtool/Makefile ] || exit 0; \
8c90b13a
L
21193 r=`${PWD_COMMAND}`; export r; \
21194 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21195 $(HOST_EXPORTS) \
d32ab992 21196 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
21197 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21198 done; \
d32ab992 21199 echo "Doing TAGS in libtool" ; \
215c351a 21200 (cd $(HOST_SUBDIR)/libtool && \
1358ccea
NN
21201 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21202 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21203 "RANLIB=$${RANLIB}" \
21204 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21205 TAGS) \
1358ccea
NN
21206 || exit 1
21207
d32ab992 21208@endif libtool
1358ccea 21209
d32ab992
PB
21210.PHONY: maybe-install-info-libtool install-info-libtool
21211maybe-install-info-libtool:
21212@if libtool
21213maybe-install-info-libtool: install-info-libtool
1358ccea 21214
d32ab992
PB
21215install-info-libtool: \
21216 configure-libtool \
05750653 21217 info-libtool
f41d6665 21218 @: $(MAKE); $(unstage)
d32ab992 21219 @[ -f ./libtool/Makefile ] || exit 0; \
8c90b13a
L
21220 r=`${PWD_COMMAND}`; export r; \
21221 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21222 $(HOST_EXPORTS) \
d32ab992 21223 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
21224 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21225 done; \
d32ab992 21226 echo "Doing install-info in libtool" ; \
215c351a 21227 (cd $(HOST_SUBDIR)/libtool && \
1358ccea
NN
21228 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21229 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21230 "RANLIB=$${RANLIB}" \
21231 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21232 install-info) \
1358ccea
NN
21233 || exit 1
21234
d32ab992 21235@endif libtool
1358ccea 21236
65d6e994
CD
21237.PHONY: maybe-install-html-libtool install-html-libtool
21238maybe-install-html-libtool:
21239@if libtool
21240maybe-install-html-libtool: install-html-libtool
21241
21242install-html-libtool: \
21243 configure-libtool \
21244 html-libtool
21245 @: $(MAKE); $(unstage)
21246 @[ -f ./libtool/Makefile ] || exit 0; \
21247 r=`${PWD_COMMAND}`; export r; \
21248 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21249 $(HOST_EXPORTS) \
21250 for flag in $(EXTRA_HOST_FLAGS) ; do \
21251 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21252 done; \
21253 echo "Doing install-html in libtool" ; \
21254 (cd $(HOST_SUBDIR)/libtool && \
21255 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21256 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21257 "RANLIB=$${RANLIB}" \
21258 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21259 install-html) \
21260 || exit 1
21261
21262@endif libtool
21263
d32ab992
PB
21264.PHONY: maybe-installcheck-libtool installcheck-libtool
21265maybe-installcheck-libtool:
21266@if libtool
21267maybe-installcheck-libtool: installcheck-libtool
1358ccea 21268
d32ab992 21269installcheck-libtool: \
05750653 21270 configure-libtool
f41d6665 21271 @: $(MAKE); $(unstage)
d32ab992 21272 @[ -f ./libtool/Makefile ] || exit 0; \
8c90b13a
L
21273 r=`${PWD_COMMAND}`; export r; \
21274 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21275 $(HOST_EXPORTS) \
d32ab992 21276 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
21277 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21278 done; \
d32ab992 21279 echo "Doing installcheck in libtool" ; \
215c351a 21280 (cd $(HOST_SUBDIR)/libtool && \
1358ccea
NN
21281 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21282 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21283 "RANLIB=$${RANLIB}" \
21284 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21285 installcheck) \
1358ccea
NN
21286 || exit 1
21287
d32ab992 21288@endif libtool
1358ccea 21289
d32ab992
PB
21290.PHONY: maybe-mostlyclean-libtool mostlyclean-libtool
21291maybe-mostlyclean-libtool:
21292@if libtool
21293maybe-mostlyclean-libtool: mostlyclean-libtool
1358ccea 21294
05750653 21295mostlyclean-libtool:
f41d6665 21296 @: $(MAKE); $(unstage)
d32ab992 21297 @[ -f ./libtool/Makefile ] || exit 0; \
8c90b13a
L
21298 r=`${PWD_COMMAND}`; export r; \
21299 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21300 $(HOST_EXPORTS) \
d32ab992 21301 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
21302 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21303 done; \
d32ab992 21304 echo "Doing mostlyclean in libtool" ; \
215c351a 21305 (cd $(HOST_SUBDIR)/libtool && \
1358ccea
NN
21306 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21307 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21308 "RANLIB=$${RANLIB}" \
21309 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21310 mostlyclean) \
1358ccea
NN
21311 || exit 1
21312
d32ab992 21313@endif libtool
1358ccea 21314
d32ab992
PB
21315.PHONY: maybe-clean-libtool clean-libtool
21316maybe-clean-libtool:
21317@if libtool
21318maybe-clean-libtool: clean-libtool
1358ccea 21319
05750653 21320clean-libtool:
f41d6665 21321 @: $(MAKE); $(unstage)
d32ab992 21322 @[ -f ./libtool/Makefile ] || exit 0; \
8c90b13a
L
21323 r=`${PWD_COMMAND}`; export r; \
21324 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21325 $(HOST_EXPORTS) \
d32ab992 21326 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
21327 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21328 done; \
d32ab992 21329 echo "Doing clean in libtool" ; \
215c351a 21330 (cd $(HOST_SUBDIR)/libtool && \
1358ccea
NN
21331 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21332 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21333 "RANLIB=$${RANLIB}" \
21334 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21335 clean) \
1358ccea
NN
21336 || exit 1
21337
d32ab992 21338@endif libtool
1358ccea 21339
d32ab992
PB
21340.PHONY: maybe-distclean-libtool distclean-libtool
21341maybe-distclean-libtool:
21342@if libtool
21343maybe-distclean-libtool: distclean-libtool
1358ccea 21344
05750653 21345distclean-libtool:
f41d6665 21346 @: $(MAKE); $(unstage)
d32ab992 21347 @[ -f ./libtool/Makefile ] || exit 0; \
8c90b13a
L
21348 r=`${PWD_COMMAND}`; export r; \
21349 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21350 $(HOST_EXPORTS) \
d32ab992 21351 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
21352 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21353 done; \
d32ab992 21354 echo "Doing distclean in libtool" ; \
215c351a 21355 (cd $(HOST_SUBDIR)/libtool && \
1358ccea
NN
21356 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21357 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21358 "RANLIB=$${RANLIB}" \
21359 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21360 distclean) \
1358ccea
NN
21361 || exit 1
21362
d32ab992 21363@endif libtool
1358ccea 21364
d32ab992
PB
21365.PHONY: maybe-maintainer-clean-libtool maintainer-clean-libtool
21366maybe-maintainer-clean-libtool:
21367@if libtool
21368maybe-maintainer-clean-libtool: maintainer-clean-libtool
1358ccea 21369
05750653 21370maintainer-clean-libtool:
f41d6665 21371 @: $(MAKE); $(unstage)
d32ab992 21372 @[ -f ./libtool/Makefile ] || exit 0; \
8c90b13a
L
21373 r=`${PWD_COMMAND}`; export r; \
21374 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21375 $(HOST_EXPORTS) \
d32ab992 21376 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
21377 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21378 done; \
d32ab992 21379 echo "Doing maintainer-clean in libtool" ; \
215c351a 21380 (cd $(HOST_SUBDIR)/libtool && \
1358ccea
NN
21381 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21382 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21383 "RANLIB=$${RANLIB}" \
21384 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21385 maintainer-clean) \
1358ccea
NN
21386 || exit 1
21387
d32ab992 21388@endif libtool
1358ccea 21389
1358ccea 21390
25b42232 21391
d32ab992
PB
21392.PHONY: configure-m4 maybe-configure-m4
21393maybe-configure-m4:
3ff3adad
PB
21394@if gcc-bootstrap
21395configure-m4: stage_current
21396@endif gcc-bootstrap
d32ab992
PB
21397@if m4
21398maybe-configure-m4: configure-m4
cc11cc9b 21399configure-m4:
f41d6665 21400 @: $(MAKE); $(unstage)
cc11cc9b 21401 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 21402 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
21403 test ! -f $(HOST_SUBDIR)/m4/Makefile || exit 0; \
21404 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/m4 ; \
4fc4dd12 21405 $(HOST_EXPORTS) \
25b42232
PB
21406 echo Configuring in $(HOST_SUBDIR)/m4; \
21407 cd "$(HOST_SUBDIR)/m4" || exit 1; \
295f4e42 21408 case $(srcdir) in \
215c351a
PB
21409 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
21410 *) topdir=`echo $(HOST_SUBDIR)/m4/ | \
21411 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 21412 esac; \
215c351a
PB
21413 srcdiroption="--srcdir=$${topdir}/m4"; \
21414 libsrcdir="$$s/m4"; \
295f4e42 21415 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 21416 $(HOST_CONFIGARGS) $${srcdiroption} \
1358ccea 21417 || exit 1
d32ab992 21418@endif m4
1358ccea 21419
25b42232
PB
21420
21421
ce406537
PB
21422
21423
d32ab992
PB
21424.PHONY: all-m4 maybe-all-m4
21425maybe-all-m4:
3ff3adad
PB
21426@if gcc-bootstrap
21427all-m4: stage_current
21428@endif gcc-bootstrap
d32ab992 21429@if m4
7e0b5752 21430TARGET-m4=all
d32ab992
PB
21431maybe-all-m4: all-m4
21432all-m4: configure-m4
f41d6665 21433 @: $(MAKE); $(unstage)
295f4e42
NN
21434 @r=`${PWD_COMMAND}`; export r; \
21435 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21436 $(HOST_EXPORTS) \
215c351a
PB
21437 (cd $(HOST_SUBDIR)/m4 && \
21438 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-m4))
d32ab992 21439@endif m4
295f4e42 21440
25b42232 21441
ce406537
PB
21442
21443
d32ab992
PB
21444.PHONY: check-m4 maybe-check-m4
21445maybe-check-m4:
21446@if m4
21447maybe-check-m4: check-m4
1358ccea 21448
d32ab992 21449check-m4:
f41d6665 21450 @: $(MAKE); $(unstage)
295f4e42
NN
21451 @r=`${PWD_COMMAND}`; export r; \
21452 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21453 $(HOST_EXPORTS) \
215c351a
PB
21454 (cd $(HOST_SUBDIR)/m4 && \
21455 $(MAKE) $(FLAGS_TO_PASS) check)
1358ccea 21456
d32ab992 21457@endif m4
295f4e42 21458
d32ab992
PB
21459.PHONY: install-m4 maybe-install-m4
21460maybe-install-m4:
21461@if m4
21462maybe-install-m4: install-m4
295f4e42 21463
d32ab992 21464install-m4: installdirs
f41d6665 21465 @: $(MAKE); $(unstage)
295f4e42
NN
21466 @r=`${PWD_COMMAND}`; export r; \
21467 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21468 $(HOST_EXPORTS) \
215c351a 21469 (cd $(HOST_SUBDIR)/m4 && \
ace9ac7b 21470 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 21471
d32ab992 21472@endif m4
295f4e42 21473
b5422ad7 21474# Other targets (info, dvi, pdf, etc.)
295f4e42 21475
d32ab992
PB
21476.PHONY: maybe-info-m4 info-m4
21477maybe-info-m4:
21478@if m4
21479maybe-info-m4: info-m4
295f4e42 21480
d32ab992 21481info-m4: \
05750653 21482 configure-m4
f41d6665 21483 @: $(MAKE); $(unstage)
d32ab992 21484 @[ -f ./m4/Makefile ] || exit 0; \
8c90b13a
L
21485 r=`${PWD_COMMAND}`; export r; \
21486 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21487 $(HOST_EXPORTS) \
d32ab992 21488 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
21489 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21490 done; \
d32ab992 21491 echo "Doing info in m4" ; \
215c351a 21492 (cd $(HOST_SUBDIR)/m4 && \
1358ccea
NN
21493 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21494 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21495 "RANLIB=$${RANLIB}" \
21496 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21497 info) \
1358ccea
NN
21498 || exit 1
21499
d32ab992 21500@endif m4
1358ccea 21501
d32ab992
PB
21502.PHONY: maybe-dvi-m4 dvi-m4
21503maybe-dvi-m4:
21504@if m4
21505maybe-dvi-m4: dvi-m4
1358ccea 21506
d32ab992 21507dvi-m4: \
05750653 21508 configure-m4
f41d6665 21509 @: $(MAKE); $(unstage)
d32ab992 21510 @[ -f ./m4/Makefile ] || exit 0; \
8c90b13a
L
21511 r=`${PWD_COMMAND}`; export r; \
21512 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21513 $(HOST_EXPORTS) \
d32ab992 21514 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
21515 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21516 done; \
d32ab992 21517 echo "Doing dvi in m4" ; \
215c351a 21518 (cd $(HOST_SUBDIR)/m4 && \
1358ccea
NN
21519 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21520 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21521 "RANLIB=$${RANLIB}" \
21522 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21523 dvi) \
1358ccea
NN
21524 || exit 1
21525
d32ab992 21526@endif m4
1358ccea 21527
b5422ad7
BM
21528.PHONY: maybe-pdf-m4 pdf-m4
21529maybe-pdf-m4:
21530@if m4
21531maybe-pdf-m4: pdf-m4
21532
21533pdf-m4: \
21534 configure-m4
21535 @: $(MAKE); $(unstage)
21536 @[ -f ./m4/Makefile ] || exit 0; \
21537 r=`${PWD_COMMAND}`; export r; \
21538 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21539 $(HOST_EXPORTS) \
21540 for flag in $(EXTRA_HOST_FLAGS) ; do \
21541 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21542 done; \
21543 echo "Doing pdf in m4" ; \
21544 (cd $(HOST_SUBDIR)/m4 && \
21545 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21546 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21547 "RANLIB=$${RANLIB}" \
21548 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21549 pdf) \
21550 || exit 1
21551
21552@endif m4
21553
f87a2b2e
MS
21554.PHONY: maybe-html-m4 html-m4
21555maybe-html-m4:
21556@if m4
21557maybe-html-m4: html-m4
21558
21559html-m4: \
05750653 21560 configure-m4
f41d6665 21561 @: $(MAKE); $(unstage)
f87a2b2e
MS
21562 @[ -f ./m4/Makefile ] || exit 0; \
21563 r=`${PWD_COMMAND}`; export r; \
21564 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
21565 $(HOST_EXPORTS) \
21566 for flag in $(EXTRA_HOST_FLAGS) ; do \
21567 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21568 done; \
21569 echo "Doing html in m4" ; \
215c351a 21570 (cd $(HOST_SUBDIR)/m4 && \
f87a2b2e
MS
21571 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21572 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21573 "RANLIB=$${RANLIB}" \
21574 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21575 html) \
21576 || exit 1
21577
21578@endif m4
21579
d32ab992
PB
21580.PHONY: maybe-TAGS-m4 TAGS-m4
21581maybe-TAGS-m4:
21582@if m4
21583maybe-TAGS-m4: TAGS-m4
1358ccea 21584
d32ab992 21585TAGS-m4: \
05750653 21586 configure-m4
f41d6665 21587 @: $(MAKE); $(unstage)
d32ab992 21588 @[ -f ./m4/Makefile ] || exit 0; \
8c90b13a
L
21589 r=`${PWD_COMMAND}`; export r; \
21590 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21591 $(HOST_EXPORTS) \
d32ab992 21592 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
21593 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21594 done; \
d32ab992 21595 echo "Doing TAGS in m4" ; \
215c351a 21596 (cd $(HOST_SUBDIR)/m4 && \
1358ccea
NN
21597 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21598 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21599 "RANLIB=$${RANLIB}" \
21600 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21601 TAGS) \
1358ccea
NN
21602 || exit 1
21603
d32ab992 21604@endif m4
1358ccea 21605
d32ab992
PB
21606.PHONY: maybe-install-info-m4 install-info-m4
21607maybe-install-info-m4:
21608@if m4
21609maybe-install-info-m4: install-info-m4
1358ccea 21610
d32ab992
PB
21611install-info-m4: \
21612 configure-m4 \
05750653 21613 info-m4
f41d6665 21614 @: $(MAKE); $(unstage)
d32ab992 21615 @[ -f ./m4/Makefile ] || exit 0; \
8c90b13a
L
21616 r=`${PWD_COMMAND}`; export r; \
21617 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21618 $(HOST_EXPORTS) \
d32ab992 21619 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
21620 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21621 done; \
d32ab992 21622 echo "Doing install-info in m4" ; \
215c351a 21623 (cd $(HOST_SUBDIR)/m4 && \
1358ccea
NN
21624 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21625 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21626 "RANLIB=$${RANLIB}" \
21627 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21628 install-info) \
1358ccea
NN
21629 || exit 1
21630
d32ab992 21631@endif m4
1358ccea 21632
65d6e994
CD
21633.PHONY: maybe-install-html-m4 install-html-m4
21634maybe-install-html-m4:
21635@if m4
21636maybe-install-html-m4: install-html-m4
21637
21638install-html-m4: \
21639 configure-m4 \
21640 html-m4
21641 @: $(MAKE); $(unstage)
21642 @[ -f ./m4/Makefile ] || exit 0; \
21643 r=`${PWD_COMMAND}`; export r; \
21644 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21645 $(HOST_EXPORTS) \
21646 for flag in $(EXTRA_HOST_FLAGS) ; do \
21647 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21648 done; \
21649 echo "Doing install-html in m4" ; \
21650 (cd $(HOST_SUBDIR)/m4 && \
21651 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21652 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21653 "RANLIB=$${RANLIB}" \
21654 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21655 install-html) \
21656 || exit 1
21657
21658@endif m4
21659
d32ab992
PB
21660.PHONY: maybe-installcheck-m4 installcheck-m4
21661maybe-installcheck-m4:
21662@if m4
21663maybe-installcheck-m4: installcheck-m4
1358ccea 21664
d32ab992 21665installcheck-m4: \
05750653 21666 configure-m4
f41d6665 21667 @: $(MAKE); $(unstage)
d32ab992 21668 @[ -f ./m4/Makefile ] || exit 0; \
8c90b13a
L
21669 r=`${PWD_COMMAND}`; export r; \
21670 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21671 $(HOST_EXPORTS) \
d32ab992 21672 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
21673 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21674 done; \
d32ab992 21675 echo "Doing installcheck in m4" ; \
215c351a 21676 (cd $(HOST_SUBDIR)/m4 && \
1358ccea
NN
21677 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21678 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21679 "RANLIB=$${RANLIB}" \
21680 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21681 installcheck) \
1358ccea
NN
21682 || exit 1
21683
d32ab992 21684@endif m4
1358ccea 21685
d32ab992
PB
21686.PHONY: maybe-mostlyclean-m4 mostlyclean-m4
21687maybe-mostlyclean-m4:
21688@if m4
21689maybe-mostlyclean-m4: mostlyclean-m4
1358ccea 21690
05750653 21691mostlyclean-m4:
f41d6665 21692 @: $(MAKE); $(unstage)
d32ab992 21693 @[ -f ./m4/Makefile ] || exit 0; \
8c90b13a
L
21694 r=`${PWD_COMMAND}`; export r; \
21695 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21696 $(HOST_EXPORTS) \
d32ab992 21697 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
21698 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21699 done; \
d32ab992 21700 echo "Doing mostlyclean in m4" ; \
215c351a 21701 (cd $(HOST_SUBDIR)/m4 && \
1358ccea
NN
21702 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21703 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21704 "RANLIB=$${RANLIB}" \
21705 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21706 mostlyclean) \
1358ccea
NN
21707 || exit 1
21708
d32ab992 21709@endif m4
1358ccea 21710
d32ab992
PB
21711.PHONY: maybe-clean-m4 clean-m4
21712maybe-clean-m4:
21713@if m4
21714maybe-clean-m4: clean-m4
1358ccea 21715
05750653 21716clean-m4:
f41d6665 21717 @: $(MAKE); $(unstage)
d32ab992 21718 @[ -f ./m4/Makefile ] || exit 0; \
8c90b13a
L
21719 r=`${PWD_COMMAND}`; export r; \
21720 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21721 $(HOST_EXPORTS) \
d32ab992 21722 for flag in $(EXTRA_HOST_FLAGS) ; do \
1358ccea
NN
21723 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21724 done; \
d32ab992 21725 echo "Doing clean in m4" ; \
215c351a 21726 (cd $(HOST_SUBDIR)/m4 && \
1358ccea
NN
21727 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21728 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21729 "RANLIB=$${RANLIB}" \
21730 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21731 clean) \
1358ccea
NN
21732 || exit 1
21733
d32ab992 21734@endif m4
1358ccea 21735
d32ab992
PB
21736.PHONY: maybe-distclean-m4 distclean-m4
21737maybe-distclean-m4:
21738@if m4
21739maybe-distclean-m4: distclean-m4
d9cdb878 21740
05750653 21741distclean-m4:
f41d6665 21742 @: $(MAKE); $(unstage)
d32ab992 21743 @[ -f ./m4/Makefile ] || exit 0; \
d9cdb878
AC
21744 r=`${PWD_COMMAND}`; export r; \
21745 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21746 $(HOST_EXPORTS) \
d32ab992 21747 for flag in $(EXTRA_HOST_FLAGS) ; do \
d9cdb878
AC
21748 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21749 done; \
d32ab992 21750 echo "Doing distclean in m4" ; \
215c351a 21751 (cd $(HOST_SUBDIR)/m4 && \
d9cdb878
AC
21752 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21753 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
295f4e42
NN
21754 "RANLIB=$${RANLIB}" \
21755 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21756 distclean) \
295f4e42 21757 || exit 1
6599da04 21758
d32ab992 21759@endif m4
c4137c50 21760
d32ab992
PB
21761.PHONY: maybe-maintainer-clean-m4 maintainer-clean-m4
21762maybe-maintainer-clean-m4:
21763@if m4
21764maybe-maintainer-clean-m4: maintainer-clean-m4
c4137c50 21765
05750653 21766maintainer-clean-m4:
f41d6665 21767 @: $(MAKE); $(unstage)
d32ab992 21768 @[ -f ./m4/Makefile ] || exit 0; \
295f4e42
NN
21769 r=`${PWD_COMMAND}`; export r; \
21770 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21771 $(HOST_EXPORTS) \
d32ab992 21772 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
21773 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21774 done; \
d32ab992 21775 echo "Doing maintainer-clean in m4" ; \
215c351a 21776 (cd $(HOST_SUBDIR)/m4 && \
295f4e42
NN
21777 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21778 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21779 "RANLIB=$${RANLIB}" \
21780 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21781 maintainer-clean) \
295f4e42 21782 || exit 1
c4137c50 21783
d32ab992 21784@endif m4
c4137c50 21785
6599da04 21786
25b42232 21787
d32ab992
PB
21788.PHONY: configure-make maybe-configure-make
21789maybe-configure-make:
3ff3adad
PB
21790@if gcc-bootstrap
21791configure-make: stage_current
21792@endif gcc-bootstrap
d32ab992
PB
21793@if make
21794maybe-configure-make: configure-make
cc11cc9b 21795configure-make:
f41d6665 21796 @: $(MAKE); $(unstage)
cc11cc9b 21797 @r=`${PWD_COMMAND}`; export r; \
d32ab992 21798 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
21799 test ! -f $(HOST_SUBDIR)/make/Makefile || exit 0; \
21800 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/make ; \
d32ab992 21801 $(HOST_EXPORTS) \
25b42232
PB
21802 echo Configuring in $(HOST_SUBDIR)/make; \
21803 cd "$(HOST_SUBDIR)/make" || exit 1; \
295f4e42 21804 case $(srcdir) in \
215c351a
PB
21805 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
21806 *) topdir=`echo $(HOST_SUBDIR)/make/ | \
21807 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
295f4e42 21808 esac; \
215c351a
PB
21809 srcdiroption="--srcdir=$${topdir}/make"; \
21810 libsrcdir="$$s/make"; \
295f4e42 21811 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 21812 $(HOST_CONFIGARGS) $${srcdiroption} \
295f4e42 21813 || exit 1
d32ab992 21814@endif make
8b87bb96 21815
25b42232
PB
21816
21817
ce406537
PB
21818
21819
d32ab992
PB
21820.PHONY: all-make maybe-all-make
21821maybe-all-make:
3ff3adad
PB
21822@if gcc-bootstrap
21823all-make: stage_current
21824@endif gcc-bootstrap
d32ab992 21825@if make
7e0b5752 21826TARGET-make=all
d32ab992
PB
21827maybe-all-make: all-make
21828all-make: configure-make
f41d6665 21829 @: $(MAKE); $(unstage)
295f4e42
NN
21830 @r=`${PWD_COMMAND}`; export r; \
21831 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21832 $(HOST_EXPORTS) \
215c351a
PB
21833 (cd $(HOST_SUBDIR)/make && \
21834 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-make))
d32ab992 21835@endif make
7e2dbcef 21836
25b42232 21837
ce406537
PB
21838
21839
d32ab992
PB
21840.PHONY: check-make maybe-check-make
21841maybe-check-make:
21842@if make
21843maybe-check-make: check-make
295f4e42 21844
d32ab992 21845check-make:
f41d6665 21846 @: $(MAKE); $(unstage)
d32ab992
PB
21847 @r=`${PWD_COMMAND}`; export r; \
21848 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d32ab992 21849 $(HOST_EXPORTS) \
215c351a
PB
21850 (cd $(HOST_SUBDIR)/make && \
21851 $(MAKE) $(FLAGS_TO_PASS) check)
295f4e42 21852
d32ab992 21853@endif make
295f4e42 21854
d32ab992
PB
21855.PHONY: install-make maybe-install-make
21856maybe-install-make:
21857@if make
21858maybe-install-make: install-make
295f4e42 21859
d32ab992 21860install-make: installdirs
f41d6665 21861 @: $(MAKE); $(unstage)
295f4e42
NN
21862 @r=`${PWD_COMMAND}`; export r; \
21863 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21864 $(HOST_EXPORTS) \
215c351a 21865 (cd $(HOST_SUBDIR)/make && \
ace9ac7b 21866 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 21867
d32ab992 21868@endif make
295f4e42 21869
b5422ad7 21870# Other targets (info, dvi, pdf, etc.)
295f4e42 21871
d32ab992
PB
21872.PHONY: maybe-info-make info-make
21873maybe-info-make:
21874@if make
21875maybe-info-make: info-make
295f4e42 21876
d32ab992 21877info-make: \
05750653 21878 configure-make
f41d6665 21879 @: $(MAKE); $(unstage)
d32ab992 21880 @[ -f ./make/Makefile ] || exit 0; \
295f4e42
NN
21881 r=`${PWD_COMMAND}`; export r; \
21882 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21883 $(HOST_EXPORTS) \
d32ab992 21884 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
21885 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21886 done; \
d32ab992 21887 echo "Doing info in make" ; \
215c351a 21888 (cd $(HOST_SUBDIR)/make && \
295f4e42
NN
21889 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21890 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21891 "RANLIB=$${RANLIB}" \
21892 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21893 info) \
295f4e42 21894 || exit 1
7e2dbcef 21895
d32ab992 21896@endif make
6599da04 21897
d32ab992
PB
21898.PHONY: maybe-dvi-make dvi-make
21899maybe-dvi-make:
21900@if make
21901maybe-dvi-make: dvi-make
6599da04 21902
d32ab992 21903dvi-make: \
05750653 21904 configure-make
f41d6665 21905 @: $(MAKE); $(unstage)
d32ab992 21906 @[ -f ./make/Makefile ] || exit 0; \
295f4e42
NN
21907 r=`${PWD_COMMAND}`; export r; \
21908 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21909 $(HOST_EXPORTS) \
d32ab992 21910 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
21911 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21912 done; \
d32ab992 21913 echo "Doing dvi in make" ; \
215c351a 21914 (cd $(HOST_SUBDIR)/make && \
295f4e42
NN
21915 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21916 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21917 "RANLIB=$${RANLIB}" \
21918 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21919 dvi) \
295f4e42 21920 || exit 1
6599da04 21921
d32ab992 21922@endif make
6599da04 21923
b5422ad7
BM
21924.PHONY: maybe-pdf-make pdf-make
21925maybe-pdf-make:
21926@if make
21927maybe-pdf-make: pdf-make
21928
21929pdf-make: \
21930 configure-make
21931 @: $(MAKE); $(unstage)
21932 @[ -f ./make/Makefile ] || exit 0; \
21933 r=`${PWD_COMMAND}`; export r; \
21934 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
21935 $(HOST_EXPORTS) \
21936 for flag in $(EXTRA_HOST_FLAGS) ; do \
21937 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21938 done; \
21939 echo "Doing pdf in make" ; \
21940 (cd $(HOST_SUBDIR)/make && \
21941 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21942 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21943 "RANLIB=$${RANLIB}" \
21944 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21945 pdf) \
21946 || exit 1
21947
21948@endif make
21949
f87a2b2e
MS
21950.PHONY: maybe-html-make html-make
21951maybe-html-make:
21952@if make
21953maybe-html-make: html-make
21954
21955html-make: \
05750653 21956 configure-make
f41d6665 21957 @: $(MAKE); $(unstage)
f87a2b2e
MS
21958 @[ -f ./make/Makefile ] || exit 0; \
21959 r=`${PWD_COMMAND}`; export r; \
21960 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
21961 $(HOST_EXPORTS) \
21962 for flag in $(EXTRA_HOST_FLAGS) ; do \
21963 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21964 done; \
21965 echo "Doing html in make" ; \
215c351a 21966 (cd $(HOST_SUBDIR)/make && \
f87a2b2e
MS
21967 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21968 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21969 "RANLIB=$${RANLIB}" \
21970 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
21971 html) \
21972 || exit 1
21973
21974@endif make
21975
d32ab992
PB
21976.PHONY: maybe-TAGS-make TAGS-make
21977maybe-TAGS-make:
21978@if make
21979maybe-TAGS-make: TAGS-make
4977bab6 21980
d32ab992 21981TAGS-make: \
05750653 21982 configure-make
f41d6665 21983 @: $(MAKE); $(unstage)
d32ab992 21984 @[ -f ./make/Makefile ] || exit 0; \
295f4e42
NN
21985 r=`${PWD_COMMAND}`; export r; \
21986 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 21987 $(HOST_EXPORTS) \
d32ab992 21988 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
21989 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
21990 done; \
d32ab992 21991 echo "Doing TAGS in make" ; \
215c351a 21992 (cd $(HOST_SUBDIR)/make && \
295f4e42
NN
21993 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
21994 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
21995 "RANLIB=$${RANLIB}" \
21996 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 21997 TAGS) \
295f4e42 21998 || exit 1
4977bab6 21999
d32ab992 22000@endif make
4977bab6 22001
d32ab992
PB
22002.PHONY: maybe-install-info-make install-info-make
22003maybe-install-info-make:
22004@if make
22005maybe-install-info-make: install-info-make
4977bab6 22006
d32ab992
PB
22007install-info-make: \
22008 configure-make \
05750653 22009 info-make
f41d6665 22010 @: $(MAKE); $(unstage)
d32ab992 22011 @[ -f ./make/Makefile ] || exit 0; \
295f4e42
NN
22012 r=`${PWD_COMMAND}`; export r; \
22013 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22014 $(HOST_EXPORTS) \
d32ab992 22015 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22016 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22017 done; \
d32ab992 22018 echo "Doing install-info in make" ; \
215c351a 22019 (cd $(HOST_SUBDIR)/make && \
295f4e42
NN
22020 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22021 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22022 "RANLIB=$${RANLIB}" \
22023 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22024 install-info) \
295f4e42 22025 || exit 1
4977bab6 22026
d32ab992 22027@endif make
4977bab6 22028
65d6e994
CD
22029.PHONY: maybe-install-html-make install-html-make
22030maybe-install-html-make:
22031@if make
22032maybe-install-html-make: install-html-make
22033
22034install-html-make: \
22035 configure-make \
22036 html-make
22037 @: $(MAKE); $(unstage)
22038 @[ -f ./make/Makefile ] || exit 0; \
22039 r=`${PWD_COMMAND}`; export r; \
22040 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22041 $(HOST_EXPORTS) \
22042 for flag in $(EXTRA_HOST_FLAGS) ; do \
22043 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22044 done; \
22045 echo "Doing install-html in make" ; \
22046 (cd $(HOST_SUBDIR)/make && \
22047 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22048 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22049 "RANLIB=$${RANLIB}" \
22050 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22051 install-html) \
22052 || exit 1
22053
22054@endif make
22055
d32ab992
PB
22056.PHONY: maybe-installcheck-make installcheck-make
22057maybe-installcheck-make:
22058@if make
22059maybe-installcheck-make: installcheck-make
4977bab6 22060
d32ab992 22061installcheck-make: \
05750653 22062 configure-make
f41d6665 22063 @: $(MAKE); $(unstage)
d32ab992 22064 @[ -f ./make/Makefile ] || exit 0; \
8c90b13a
L
22065 r=`${PWD_COMMAND}`; export r; \
22066 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22067 $(HOST_EXPORTS) \
d32ab992 22068 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22069 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22070 done; \
d32ab992 22071 echo "Doing installcheck in make" ; \
215c351a 22072 (cd $(HOST_SUBDIR)/make && \
295f4e42
NN
22073 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22074 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22075 "RANLIB=$${RANLIB}" \
22076 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22077 installcheck) \
295f4e42
NN
22078 || exit 1
22079
d32ab992 22080@endif make
295f4e42 22081
d32ab992
PB
22082.PHONY: maybe-mostlyclean-make mostlyclean-make
22083maybe-mostlyclean-make:
22084@if make
22085maybe-mostlyclean-make: mostlyclean-make
295f4e42 22086
05750653 22087mostlyclean-make:
f41d6665 22088 @: $(MAKE); $(unstage)
d32ab992 22089 @[ -f ./make/Makefile ] || exit 0; \
295f4e42
NN
22090 r=`${PWD_COMMAND}`; export r; \
22091 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22092 $(HOST_EXPORTS) \
d32ab992 22093 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22094 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22095 done; \
d32ab992 22096 echo "Doing mostlyclean in make" ; \
215c351a 22097 (cd $(HOST_SUBDIR)/make && \
295f4e42
NN
22098 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22099 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22100 "RANLIB=$${RANLIB}" \
22101 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22102 mostlyclean) \
295f4e42
NN
22103 || exit 1
22104
d32ab992 22105@endif make
295f4e42 22106
d32ab992
PB
22107.PHONY: maybe-clean-make clean-make
22108maybe-clean-make:
22109@if make
22110maybe-clean-make: clean-make
295f4e42 22111
05750653 22112clean-make:
f41d6665 22113 @: $(MAKE); $(unstage)
d32ab992 22114 @[ -f ./make/Makefile ] || exit 0; \
295f4e42
NN
22115 r=`${PWD_COMMAND}`; export r; \
22116 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22117 $(HOST_EXPORTS) \
d32ab992 22118 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22119 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22120 done; \
d32ab992 22121 echo "Doing clean in make" ; \
215c351a 22122 (cd $(HOST_SUBDIR)/make && \
295f4e42
NN
22123 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22124 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22125 "RANLIB=$${RANLIB}" \
22126 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22127 clean) \
295f4e42
NN
22128 || exit 1
22129
d32ab992 22130@endif make
295f4e42 22131
d32ab992
PB
22132.PHONY: maybe-distclean-make distclean-make
22133maybe-distclean-make:
22134@if make
22135maybe-distclean-make: distclean-make
295f4e42 22136
05750653 22137distclean-make:
f41d6665 22138 @: $(MAKE); $(unstage)
d32ab992 22139 @[ -f ./make/Makefile ] || exit 0; \
295f4e42
NN
22140 r=`${PWD_COMMAND}`; export r; \
22141 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22142 $(HOST_EXPORTS) \
d32ab992 22143 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22144 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22145 done; \
d32ab992 22146 echo "Doing distclean in make" ; \
215c351a 22147 (cd $(HOST_SUBDIR)/make && \
295f4e42
NN
22148 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22149 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22150 "RANLIB=$${RANLIB}" \
22151 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22152 distclean) \
3aa83176 22153 || exit 1
4977bab6 22154
d32ab992 22155@endif make
295f4e42 22156
d32ab992
PB
22157.PHONY: maybe-maintainer-clean-make maintainer-clean-make
22158maybe-maintainer-clean-make:
22159@if make
22160maybe-maintainer-clean-make: maintainer-clean-make
295f4e42 22161
05750653 22162maintainer-clean-make:
f41d6665 22163 @: $(MAKE); $(unstage)
d32ab992 22164 @[ -f ./make/Makefile ] || exit 0; \
295f4e42 22165 r=`${PWD_COMMAND}`; export r; \
8c90b13a 22166 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22167 $(HOST_EXPORTS) \
d32ab992 22168 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22169 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22170 done; \
d32ab992 22171 echo "Doing maintainer-clean in make" ; \
215c351a 22172 (cd $(HOST_SUBDIR)/make && \
295f4e42
NN
22173 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22174 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22175 "RANLIB=$${RANLIB}" \
22176 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22177 maintainer-clean) \
295f4e42 22178 || exit 1
4977bab6 22179
d32ab992 22180@endif make
4977bab6 22181
4977bab6 22182
25b42232 22183
d32ab992
PB
22184.PHONY: configure-mmalloc maybe-configure-mmalloc
22185maybe-configure-mmalloc:
3ff3adad
PB
22186@if gcc-bootstrap
22187configure-mmalloc: stage_current
22188@endif gcc-bootstrap
d32ab992
PB
22189@if mmalloc
22190maybe-configure-mmalloc: configure-mmalloc
cc11cc9b 22191configure-mmalloc:
f41d6665 22192 @: $(MAKE); $(unstage)
cc11cc9b 22193 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 22194 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
22195 test ! -f $(HOST_SUBDIR)/mmalloc/Makefile || exit 0; \
22196 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/mmalloc ; \
4fc4dd12 22197 $(HOST_EXPORTS) \
25b42232
PB
22198 echo Configuring in $(HOST_SUBDIR)/mmalloc; \
22199 cd "$(HOST_SUBDIR)/mmalloc" || exit 1; \
4977bab6 22200 case $(srcdir) in \
215c351a
PB
22201 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
22202 *) topdir=`echo $(HOST_SUBDIR)/mmalloc/ | \
22203 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 22204 esac; \
215c351a
PB
22205 srcdiroption="--srcdir=$${topdir}/mmalloc"; \
22206 libsrcdir="$$s/mmalloc"; \
4977bab6 22207 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 22208 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 22209 || exit 1
d32ab992 22210@endif mmalloc
4977bab6 22211
25b42232
PB
22212
22213
ce406537
PB
22214
22215
d32ab992
PB
22216.PHONY: all-mmalloc maybe-all-mmalloc
22217maybe-all-mmalloc:
3ff3adad
PB
22218@if gcc-bootstrap
22219all-mmalloc: stage_current
22220@endif gcc-bootstrap
d32ab992 22221@if mmalloc
7e0b5752 22222TARGET-mmalloc=all
d32ab992
PB
22223maybe-all-mmalloc: all-mmalloc
22224all-mmalloc: configure-mmalloc
f41d6665 22225 @: $(MAKE); $(unstage)
8c90b13a
L
22226 @r=`${PWD_COMMAND}`; export r; \
22227 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22228 $(HOST_EXPORTS) \
215c351a
PB
22229 (cd $(HOST_SUBDIR)/mmalloc && \
22230 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-mmalloc))
d32ab992 22231@endif mmalloc
4977bab6 22232
25b42232 22233
ce406537
PB
22234
22235
d32ab992
PB
22236.PHONY: check-mmalloc maybe-check-mmalloc
22237maybe-check-mmalloc:
22238@if mmalloc
22239maybe-check-mmalloc: check-mmalloc
4977bab6 22240
d32ab992 22241check-mmalloc:
4977bab6 22242
d32ab992 22243@endif mmalloc
4977bab6 22244
d32ab992
PB
22245.PHONY: install-mmalloc maybe-install-mmalloc
22246maybe-install-mmalloc:
22247@if mmalloc
22248maybe-install-mmalloc: install-mmalloc
7e2dbcef 22249
d32ab992 22250install-mmalloc: installdirs
f41d6665 22251 @: $(MAKE); $(unstage)
8c90b13a
L
22252 @r=`${PWD_COMMAND}`; export r; \
22253 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22254 $(HOST_EXPORTS) \
215c351a 22255 (cd $(HOST_SUBDIR)/mmalloc && \
ace9ac7b 22256 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 22257
d32ab992 22258@endif mmalloc
295f4e42 22259
b5422ad7 22260# Other targets (info, dvi, pdf, etc.)
295f4e42 22261
d32ab992
PB
22262.PHONY: maybe-info-mmalloc info-mmalloc
22263maybe-info-mmalloc:
22264@if mmalloc
22265maybe-info-mmalloc: info-mmalloc
295f4e42 22266
d32ab992 22267info-mmalloc: \
05750653 22268 configure-mmalloc
f41d6665 22269 @: $(MAKE); $(unstage)
d32ab992 22270 @[ -f ./mmalloc/Makefile ] || exit 0; \
295f4e42
NN
22271 r=`${PWD_COMMAND}`; export r; \
22272 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22273 $(HOST_EXPORTS) \
d32ab992 22274 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22275 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22276 done; \
d32ab992 22277 echo "Doing info in mmalloc" ; \
215c351a 22278 (cd $(HOST_SUBDIR)/mmalloc && \
295f4e42
NN
22279 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22280 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22281 "RANLIB=$${RANLIB}" \
22282 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22283 info) \
295f4e42
NN
22284 || exit 1
22285
d32ab992 22286@endif mmalloc
295f4e42 22287
d32ab992
PB
22288.PHONY: maybe-dvi-mmalloc dvi-mmalloc
22289maybe-dvi-mmalloc:
22290@if mmalloc
22291maybe-dvi-mmalloc: dvi-mmalloc
295f4e42 22292
d32ab992 22293dvi-mmalloc: \
05750653 22294 configure-mmalloc
f41d6665 22295 @: $(MAKE); $(unstage)
d32ab992 22296 @[ -f ./mmalloc/Makefile ] || exit 0; \
295f4e42
NN
22297 r=`${PWD_COMMAND}`; export r; \
22298 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22299 $(HOST_EXPORTS) \
d32ab992 22300 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22301 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22302 done; \
d32ab992 22303 echo "Doing dvi in mmalloc" ; \
215c351a 22304 (cd $(HOST_SUBDIR)/mmalloc && \
295f4e42
NN
22305 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22306 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22307 "RANLIB=$${RANLIB}" \
22308 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22309 dvi) \
295f4e42
NN
22310 || exit 1
22311
d32ab992 22312@endif mmalloc
295f4e42 22313
b5422ad7
BM
22314.PHONY: maybe-pdf-mmalloc pdf-mmalloc
22315maybe-pdf-mmalloc:
22316@if mmalloc
22317maybe-pdf-mmalloc: pdf-mmalloc
22318
22319pdf-mmalloc: \
22320 configure-mmalloc
22321 @: $(MAKE); $(unstage)
22322 @[ -f ./mmalloc/Makefile ] || exit 0; \
22323 r=`${PWD_COMMAND}`; export r; \
22324 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22325 $(HOST_EXPORTS) \
22326 for flag in $(EXTRA_HOST_FLAGS) ; do \
22327 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22328 done; \
22329 echo "Doing pdf in mmalloc" ; \
22330 (cd $(HOST_SUBDIR)/mmalloc && \
22331 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22332 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22333 "RANLIB=$${RANLIB}" \
22334 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22335 pdf) \
22336 || exit 1
22337
22338@endif mmalloc
22339
f87a2b2e
MS
22340.PHONY: maybe-html-mmalloc html-mmalloc
22341maybe-html-mmalloc:
22342@if mmalloc
22343maybe-html-mmalloc: html-mmalloc
22344
22345html-mmalloc: \
05750653 22346 configure-mmalloc
f41d6665 22347 @: $(MAKE); $(unstage)
f87a2b2e
MS
22348 @[ -f ./mmalloc/Makefile ] || exit 0; \
22349 r=`${PWD_COMMAND}`; export r; \
22350 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
22351 $(HOST_EXPORTS) \
22352 for flag in $(EXTRA_HOST_FLAGS) ; do \
22353 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22354 done; \
22355 echo "Doing html in mmalloc" ; \
215c351a 22356 (cd $(HOST_SUBDIR)/mmalloc && \
f87a2b2e
MS
22357 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22358 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22359 "RANLIB=$${RANLIB}" \
22360 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22361 html) \
22362 || exit 1
22363
22364@endif mmalloc
22365
d32ab992
PB
22366.PHONY: maybe-TAGS-mmalloc TAGS-mmalloc
22367maybe-TAGS-mmalloc:
22368@if mmalloc
22369maybe-TAGS-mmalloc: TAGS-mmalloc
295f4e42 22370
d32ab992 22371TAGS-mmalloc: \
05750653 22372 configure-mmalloc
f41d6665 22373 @: $(MAKE); $(unstage)
d32ab992 22374 @[ -f ./mmalloc/Makefile ] || exit 0; \
295f4e42
NN
22375 r=`${PWD_COMMAND}`; export r; \
22376 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22377 $(HOST_EXPORTS) \
d32ab992 22378 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22379 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22380 done; \
d32ab992 22381 echo "Doing TAGS in mmalloc" ; \
215c351a 22382 (cd $(HOST_SUBDIR)/mmalloc && \
295f4e42
NN
22383 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22384 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22385 "RANLIB=$${RANLIB}" \
22386 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22387 TAGS) \
295f4e42
NN
22388 || exit 1
22389
d32ab992 22390@endif mmalloc
295f4e42 22391
d32ab992
PB
22392.PHONY: maybe-install-info-mmalloc install-info-mmalloc
22393maybe-install-info-mmalloc:
22394@if mmalloc
22395maybe-install-info-mmalloc: install-info-mmalloc
295f4e42 22396
d32ab992
PB
22397install-info-mmalloc: \
22398 configure-mmalloc \
05750653 22399 info-mmalloc
f41d6665 22400 @: $(MAKE); $(unstage)
d32ab992 22401 @[ -f ./mmalloc/Makefile ] || exit 0; \
295f4e42
NN
22402 r=`${PWD_COMMAND}`; export r; \
22403 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22404 $(HOST_EXPORTS) \
d32ab992 22405 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22406 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22407 done; \
d32ab992 22408 echo "Doing install-info in mmalloc" ; \
215c351a 22409 (cd $(HOST_SUBDIR)/mmalloc && \
295f4e42
NN
22410 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22411 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22412 "RANLIB=$${RANLIB}" \
22413 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22414 install-info) \
295f4e42
NN
22415 || exit 1
22416
d32ab992 22417@endif mmalloc
295f4e42 22418
65d6e994
CD
22419.PHONY: maybe-install-html-mmalloc install-html-mmalloc
22420maybe-install-html-mmalloc:
22421@if mmalloc
22422maybe-install-html-mmalloc: install-html-mmalloc
22423
22424install-html-mmalloc: \
22425 configure-mmalloc \
22426 html-mmalloc
22427 @: $(MAKE); $(unstage)
22428 @[ -f ./mmalloc/Makefile ] || exit 0; \
22429 r=`${PWD_COMMAND}`; export r; \
22430 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22431 $(HOST_EXPORTS) \
22432 for flag in $(EXTRA_HOST_FLAGS) ; do \
22433 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22434 done; \
22435 echo "Doing install-html in mmalloc" ; \
22436 (cd $(HOST_SUBDIR)/mmalloc && \
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}" \
22441 install-html) \
22442 || exit 1
22443
22444@endif mmalloc
22445
d32ab992
PB
22446.PHONY: maybe-installcheck-mmalloc installcheck-mmalloc
22447maybe-installcheck-mmalloc:
22448@if mmalloc
22449maybe-installcheck-mmalloc: installcheck-mmalloc
295f4e42 22450
d32ab992 22451installcheck-mmalloc: \
05750653 22452 configure-mmalloc
f41d6665 22453 @: $(MAKE); $(unstage)
d32ab992 22454 @[ -f ./mmalloc/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 installcheck in mmalloc" ; \
215c351a 22462 (cd $(HOST_SUBDIR)/mmalloc && \
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 installcheck) \
295f4e42
NN
22468 || exit 1
22469
d32ab992 22470@endif mmalloc
295f4e42 22471
d32ab992
PB
22472.PHONY: maybe-mostlyclean-mmalloc mostlyclean-mmalloc
22473maybe-mostlyclean-mmalloc:
22474@if mmalloc
22475maybe-mostlyclean-mmalloc: mostlyclean-mmalloc
295f4e42 22476
05750653 22477mostlyclean-mmalloc:
f41d6665 22478 @: $(MAKE); $(unstage)
d32ab992 22479 @[ -f ./mmalloc/Makefile ] || exit 0; \
295f4e42
NN
22480 r=`${PWD_COMMAND}`; export r; \
22481 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22482 $(HOST_EXPORTS) \
d32ab992 22483 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22484 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22485 done; \
d32ab992 22486 echo "Doing mostlyclean in mmalloc" ; \
215c351a 22487 (cd $(HOST_SUBDIR)/mmalloc && \
295f4e42
NN
22488 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22489 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22490 "RANLIB=$${RANLIB}" \
22491 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22492 mostlyclean) \
295f4e42
NN
22493 || exit 1
22494
d32ab992 22495@endif mmalloc
295f4e42 22496
d32ab992
PB
22497.PHONY: maybe-clean-mmalloc clean-mmalloc
22498maybe-clean-mmalloc:
22499@if mmalloc
22500maybe-clean-mmalloc: clean-mmalloc
295f4e42 22501
05750653 22502clean-mmalloc:
f41d6665 22503 @: $(MAKE); $(unstage)
d32ab992 22504 @[ -f ./mmalloc/Makefile ] || exit 0; \
295f4e42
NN
22505 r=`${PWD_COMMAND}`; export r; \
22506 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22507 $(HOST_EXPORTS) \
d32ab992 22508 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22509 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22510 done; \
d32ab992 22511 echo "Doing clean in mmalloc" ; \
215c351a 22512 (cd $(HOST_SUBDIR)/mmalloc && \
295f4e42
NN
22513 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22514 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22515 "RANLIB=$${RANLIB}" \
22516 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22517 clean) \
295f4e42
NN
22518 || exit 1
22519
d32ab992 22520@endif mmalloc
295f4e42 22521
d32ab992
PB
22522.PHONY: maybe-distclean-mmalloc distclean-mmalloc
22523maybe-distclean-mmalloc:
22524@if mmalloc
22525maybe-distclean-mmalloc: distclean-mmalloc
295f4e42 22526
05750653 22527distclean-mmalloc:
f41d6665 22528 @: $(MAKE); $(unstage)
d32ab992 22529 @[ -f ./mmalloc/Makefile ] || exit 0; \
295f4e42
NN
22530 r=`${PWD_COMMAND}`; export r; \
22531 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22532 $(HOST_EXPORTS) \
d32ab992 22533 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22534 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22535 done; \
d32ab992 22536 echo "Doing distclean in mmalloc" ; \
215c351a 22537 (cd $(HOST_SUBDIR)/mmalloc && \
295f4e42
NN
22538 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22539 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22540 "RANLIB=$${RANLIB}" \
22541 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22542 distclean) \
295f4e42
NN
22543 || exit 1
22544
d32ab992 22545@endif mmalloc
295f4e42 22546
d32ab992
PB
22547.PHONY: maybe-maintainer-clean-mmalloc maintainer-clean-mmalloc
22548maybe-maintainer-clean-mmalloc:
22549@if mmalloc
22550maybe-maintainer-clean-mmalloc: maintainer-clean-mmalloc
295f4e42 22551
05750653 22552maintainer-clean-mmalloc:
f41d6665 22553 @: $(MAKE); $(unstage)
d32ab992 22554 @[ -f ./mmalloc/Makefile ] || exit 0; \
295f4e42
NN
22555 r=`${PWD_COMMAND}`; export r; \
22556 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22557 $(HOST_EXPORTS) \
d32ab992 22558 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22559 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22560 done; \
d32ab992 22561 echo "Doing maintainer-clean in mmalloc" ; \
215c351a 22562 (cd $(HOST_SUBDIR)/mmalloc && \
295f4e42
NN
22563 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22564 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22565 "RANLIB=$${RANLIB}" \
22566 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22567 maintainer-clean) \
295f4e42 22568 || exit 1
4977bab6 22569
d32ab992 22570@endif mmalloc
4977bab6 22571
295f4e42 22572
25b42232 22573
d32ab992
PB
22574.PHONY: configure-patch maybe-configure-patch
22575maybe-configure-patch:
3ff3adad
PB
22576@if gcc-bootstrap
22577configure-patch: stage_current
22578@endif gcc-bootstrap
d32ab992
PB
22579@if patch
22580maybe-configure-patch: configure-patch
cc11cc9b 22581configure-patch:
f41d6665 22582 @: $(MAKE); $(unstage)
cc11cc9b 22583 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 22584 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
22585 test ! -f $(HOST_SUBDIR)/patch/Makefile || exit 0; \
22586 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/patch ; \
4fc4dd12 22587 $(HOST_EXPORTS) \
25b42232
PB
22588 echo Configuring in $(HOST_SUBDIR)/patch; \
22589 cd "$(HOST_SUBDIR)/patch" || exit 1; \
4977bab6 22590 case $(srcdir) in \
215c351a
PB
22591 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
22592 *) topdir=`echo $(HOST_SUBDIR)/patch/ | \
22593 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 22594 esac; \
215c351a
PB
22595 srcdiroption="--srcdir=$${topdir}/patch"; \
22596 libsrcdir="$$s/patch"; \
4977bab6 22597 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 22598 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 22599 || exit 1
d32ab992 22600@endif patch
4977bab6 22601
25b42232
PB
22602
22603
ce406537
PB
22604
22605
d32ab992
PB
22606.PHONY: all-patch maybe-all-patch
22607maybe-all-patch:
3ff3adad
PB
22608@if gcc-bootstrap
22609all-patch: stage_current
22610@endif gcc-bootstrap
d32ab992 22611@if patch
7e0b5752 22612TARGET-patch=all
d32ab992
PB
22613maybe-all-patch: all-patch
22614all-patch: configure-patch
f41d6665 22615 @: $(MAKE); $(unstage)
8c90b13a
L
22616 @r=`${PWD_COMMAND}`; export r; \
22617 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22618 $(HOST_EXPORTS) \
215c351a
PB
22619 (cd $(HOST_SUBDIR)/patch && \
22620 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-patch))
d32ab992 22621@endif patch
4977bab6 22622
25b42232 22623
ce406537
PB
22624
22625
d32ab992
PB
22626.PHONY: check-patch maybe-check-patch
22627maybe-check-patch:
22628@if patch
22629maybe-check-patch: check-patch
4977bab6 22630
d32ab992 22631check-patch:
f41d6665 22632 @: $(MAKE); $(unstage)
8c90b13a
L
22633 @r=`${PWD_COMMAND}`; export r; \
22634 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22635 $(HOST_EXPORTS) \
215c351a
PB
22636 (cd $(HOST_SUBDIR)/patch && \
22637 $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6 22638
d32ab992 22639@endif patch
4977bab6 22640
d32ab992
PB
22641.PHONY: install-patch maybe-install-patch
22642maybe-install-patch:
22643@if patch
22644maybe-install-patch: install-patch
295f4e42 22645
d32ab992 22646install-patch: installdirs
f41d6665 22647 @: $(MAKE); $(unstage)
295f4e42
NN
22648 @r=`${PWD_COMMAND}`; export r; \
22649 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22650 $(HOST_EXPORTS) \
215c351a 22651 (cd $(HOST_SUBDIR)/patch && \
ace9ac7b 22652 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 22653
d32ab992 22654@endif patch
295f4e42 22655
b5422ad7 22656# Other targets (info, dvi, pdf, etc.)
295f4e42 22657
d32ab992
PB
22658.PHONY: maybe-info-patch info-patch
22659maybe-info-patch:
22660@if patch
22661maybe-info-patch: info-patch
295f4e42 22662
d32ab992 22663info-patch: \
05750653 22664 configure-patch
f41d6665 22665 @: $(MAKE); $(unstage)
d32ab992 22666 @[ -f ./patch/Makefile ] || exit 0; \
295f4e42
NN
22667 r=`${PWD_COMMAND}`; export r; \
22668 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22669 $(HOST_EXPORTS) \
d32ab992 22670 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22671 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22672 done; \
d32ab992 22673 echo "Doing info in patch" ; \
215c351a 22674 (cd $(HOST_SUBDIR)/patch && \
295f4e42
NN
22675 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22676 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22677 "RANLIB=$${RANLIB}" \
22678 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22679 info) \
295f4e42
NN
22680 || exit 1
22681
d32ab992 22682@endif patch
295f4e42 22683
d32ab992
PB
22684.PHONY: maybe-dvi-patch dvi-patch
22685maybe-dvi-patch:
22686@if patch
22687maybe-dvi-patch: dvi-patch
295f4e42 22688
d32ab992 22689dvi-patch: \
05750653 22690 configure-patch
f41d6665 22691 @: $(MAKE); $(unstage)
d32ab992 22692 @[ -f ./patch/Makefile ] || exit 0; \
295f4e42
NN
22693 r=`${PWD_COMMAND}`; export r; \
22694 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22695 $(HOST_EXPORTS) \
d32ab992 22696 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22697 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22698 done; \
d32ab992 22699 echo "Doing dvi in patch" ; \
215c351a 22700 (cd $(HOST_SUBDIR)/patch && \
295f4e42
NN
22701 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22702 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22703 "RANLIB=$${RANLIB}" \
22704 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22705 dvi) \
295f4e42
NN
22706 || exit 1
22707
d32ab992 22708@endif patch
295f4e42 22709
b5422ad7
BM
22710.PHONY: maybe-pdf-patch pdf-patch
22711maybe-pdf-patch:
22712@if patch
22713maybe-pdf-patch: pdf-patch
22714
22715pdf-patch: \
22716 configure-patch
22717 @: $(MAKE); $(unstage)
22718 @[ -f ./patch/Makefile ] || exit 0; \
22719 r=`${PWD_COMMAND}`; export r; \
22720 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22721 $(HOST_EXPORTS) \
22722 for flag in $(EXTRA_HOST_FLAGS) ; do \
22723 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22724 done; \
22725 echo "Doing pdf in patch" ; \
22726 (cd $(HOST_SUBDIR)/patch && \
22727 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22728 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22729 "RANLIB=$${RANLIB}" \
22730 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22731 pdf) \
22732 || exit 1
22733
22734@endif patch
22735
f87a2b2e
MS
22736.PHONY: maybe-html-patch html-patch
22737maybe-html-patch:
22738@if patch
22739maybe-html-patch: html-patch
22740
22741html-patch: \
05750653 22742 configure-patch
f41d6665 22743 @: $(MAKE); $(unstage)
f87a2b2e
MS
22744 @[ -f ./patch/Makefile ] || exit 0; \
22745 r=`${PWD_COMMAND}`; export r; \
22746 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
22747 $(HOST_EXPORTS) \
22748 for flag in $(EXTRA_HOST_FLAGS) ; do \
22749 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22750 done; \
22751 echo "Doing html in patch" ; \
215c351a 22752 (cd $(HOST_SUBDIR)/patch && \
f87a2b2e
MS
22753 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22754 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22755 "RANLIB=$${RANLIB}" \
22756 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
22757 html) \
22758 || exit 1
22759
22760@endif patch
22761
d32ab992
PB
22762.PHONY: maybe-TAGS-patch TAGS-patch
22763maybe-TAGS-patch:
22764@if patch
22765maybe-TAGS-patch: TAGS-patch
295f4e42 22766
d32ab992 22767TAGS-patch: \
05750653 22768 configure-patch
f41d6665 22769 @: $(MAKE); $(unstage)
d32ab992 22770 @[ -f ./patch/Makefile ] || exit 0; \
295f4e42
NN
22771 r=`${PWD_COMMAND}`; export r; \
22772 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22773 $(HOST_EXPORTS) \
d32ab992 22774 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22775 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22776 done; \
d32ab992 22777 echo "Doing TAGS in patch" ; \
215c351a 22778 (cd $(HOST_SUBDIR)/patch && \
295f4e42
NN
22779 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22780 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22781 "RANLIB=$${RANLIB}" \
22782 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22783 TAGS) \
295f4e42
NN
22784 || exit 1
22785
d32ab992 22786@endif patch
295f4e42 22787
d32ab992
PB
22788.PHONY: maybe-install-info-patch install-info-patch
22789maybe-install-info-patch:
22790@if patch
22791maybe-install-info-patch: install-info-patch
295f4e42 22792
d32ab992
PB
22793install-info-patch: \
22794 configure-patch \
05750653 22795 info-patch
f41d6665 22796 @: $(MAKE); $(unstage)
d32ab992 22797 @[ -f ./patch/Makefile ] || exit 0; \
295f4e42
NN
22798 r=`${PWD_COMMAND}`; export r; \
22799 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22800 $(HOST_EXPORTS) \
d32ab992 22801 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22802 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22803 done; \
d32ab992 22804 echo "Doing install-info in patch" ; \
215c351a 22805 (cd $(HOST_SUBDIR)/patch && \
295f4e42
NN
22806 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22807 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22808 "RANLIB=$${RANLIB}" \
22809 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22810 install-info) \
295f4e42
NN
22811 || exit 1
22812
d32ab992 22813@endif patch
295f4e42 22814
65d6e994
CD
22815.PHONY: maybe-install-html-patch install-html-patch
22816maybe-install-html-patch:
22817@if patch
22818maybe-install-html-patch: install-html-patch
22819
22820install-html-patch: \
22821 configure-patch \
22822 html-patch
22823 @: $(MAKE); $(unstage)
22824 @[ -f ./patch/Makefile ] || exit 0; \
22825 r=`${PWD_COMMAND}`; export r; \
22826 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
22827 $(HOST_EXPORTS) \
22828 for flag in $(EXTRA_HOST_FLAGS) ; do \
22829 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22830 done; \
22831 echo "Doing install-html in patch" ; \
22832 (cd $(HOST_SUBDIR)/patch && \
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}" \
22837 install-html) \
22838 || exit 1
22839
22840@endif patch
22841
d32ab992
PB
22842.PHONY: maybe-installcheck-patch installcheck-patch
22843maybe-installcheck-patch:
22844@if patch
22845maybe-installcheck-patch: installcheck-patch
295f4e42 22846
d32ab992 22847installcheck-patch: \
05750653 22848 configure-patch
f41d6665 22849 @: $(MAKE); $(unstage)
d32ab992 22850 @[ -f ./patch/Makefile ] || exit 0; \
295f4e42
NN
22851 r=`${PWD_COMMAND}`; export r; \
22852 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22853 $(HOST_EXPORTS) \
d32ab992 22854 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22855 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22856 done; \
d32ab992 22857 echo "Doing installcheck in patch" ; \
215c351a 22858 (cd $(HOST_SUBDIR)/patch && \
295f4e42
NN
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}" \
d32ab992 22863 installcheck) \
295f4e42
NN
22864 || exit 1
22865
d32ab992 22866@endif patch
295f4e42 22867
d32ab992
PB
22868.PHONY: maybe-mostlyclean-patch mostlyclean-patch
22869maybe-mostlyclean-patch:
22870@if patch
22871maybe-mostlyclean-patch: mostlyclean-patch
295f4e42 22872
05750653 22873mostlyclean-patch:
f41d6665 22874 @: $(MAKE); $(unstage)
d32ab992 22875 @[ -f ./patch/Makefile ] || exit 0; \
295f4e42
NN
22876 r=`${PWD_COMMAND}`; export r; \
22877 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22878 $(HOST_EXPORTS) \
d32ab992 22879 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22880 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22881 done; \
d32ab992 22882 echo "Doing mostlyclean in patch" ; \
215c351a 22883 (cd $(HOST_SUBDIR)/patch && \
295f4e42
NN
22884 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22885 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22886 "RANLIB=$${RANLIB}" \
22887 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22888 mostlyclean) \
295f4e42
NN
22889 || exit 1
22890
d32ab992 22891@endif patch
295f4e42 22892
d32ab992
PB
22893.PHONY: maybe-clean-patch clean-patch
22894maybe-clean-patch:
22895@if patch
22896maybe-clean-patch: clean-patch
295f4e42 22897
05750653 22898clean-patch:
f41d6665 22899 @: $(MAKE); $(unstage)
d32ab992 22900 @[ -f ./patch/Makefile ] || exit 0; \
295f4e42
NN
22901 r=`${PWD_COMMAND}`; export r; \
22902 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22903 $(HOST_EXPORTS) \
d32ab992 22904 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22905 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22906 done; \
d32ab992 22907 echo "Doing clean in patch" ; \
215c351a 22908 (cd $(HOST_SUBDIR)/patch && \
295f4e42
NN
22909 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22910 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22911 "RANLIB=$${RANLIB}" \
22912 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22913 clean) \
295f4e42
NN
22914 || exit 1
22915
d32ab992 22916@endif patch
295f4e42 22917
d32ab992
PB
22918.PHONY: maybe-distclean-patch distclean-patch
22919maybe-distclean-patch:
22920@if patch
22921maybe-distclean-patch: distclean-patch
295f4e42 22922
05750653 22923distclean-patch:
f41d6665 22924 @: $(MAKE); $(unstage)
d32ab992 22925 @[ -f ./patch/Makefile ] || exit 0; \
295f4e42
NN
22926 r=`${PWD_COMMAND}`; export r; \
22927 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22928 $(HOST_EXPORTS) \
d32ab992 22929 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22930 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22931 done; \
d32ab992 22932 echo "Doing distclean in patch" ; \
215c351a 22933 (cd $(HOST_SUBDIR)/patch && \
295f4e42
NN
22934 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22935 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22936 "RANLIB=$${RANLIB}" \
22937 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22938 distclean) \
295f4e42
NN
22939 || exit 1
22940
d32ab992 22941@endif patch
295f4e42 22942
d32ab992
PB
22943.PHONY: maybe-maintainer-clean-patch maintainer-clean-patch
22944maybe-maintainer-clean-patch:
22945@if patch
22946maybe-maintainer-clean-patch: maintainer-clean-patch
295f4e42 22947
05750653 22948maintainer-clean-patch:
f41d6665 22949 @: $(MAKE); $(unstage)
d32ab992 22950 @[ -f ./patch/Makefile ] || exit 0; \
295f4e42
NN
22951 r=`${PWD_COMMAND}`; export r; \
22952 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 22953 $(HOST_EXPORTS) \
d32ab992 22954 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
22955 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
22956 done; \
d32ab992 22957 echo "Doing maintainer-clean in patch" ; \
215c351a 22958 (cd $(HOST_SUBDIR)/patch && \
295f4e42
NN
22959 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
22960 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
22961 "RANLIB=$${RANLIB}" \
22962 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 22963 maintainer-clean) \
295f4e42 22964 || exit 1
7e2dbcef 22965
d32ab992 22966@endif patch
4977bab6
ZW
22967
22968
25b42232 22969
d32ab992
PB
22970.PHONY: configure-perl maybe-configure-perl
22971maybe-configure-perl:
3ff3adad
PB
22972@if gcc-bootstrap
22973configure-perl: stage_current
22974@endif gcc-bootstrap
d32ab992
PB
22975@if perl
22976maybe-configure-perl: configure-perl
cc11cc9b 22977configure-perl:
f41d6665 22978 @: $(MAKE); $(unstage)
cc11cc9b 22979 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 22980 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
22981 test ! -f $(HOST_SUBDIR)/perl/Makefile || exit 0; \
22982 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/perl ; \
4fc4dd12 22983 $(HOST_EXPORTS) \
25b42232
PB
22984 echo Configuring in $(HOST_SUBDIR)/perl; \
22985 cd "$(HOST_SUBDIR)/perl" || exit 1; \
4977bab6 22986 case $(srcdir) in \
215c351a
PB
22987 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
22988 *) topdir=`echo $(HOST_SUBDIR)/perl/ | \
22989 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 22990 esac; \
215c351a
PB
22991 srcdiroption="--srcdir=$${topdir}/perl"; \
22992 libsrcdir="$$s/perl"; \
4977bab6 22993 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 22994 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 22995 || exit 1
d32ab992 22996@endif perl
4977bab6 22997
25b42232
PB
22998
22999
ce406537
PB
23000
23001
d32ab992
PB
23002.PHONY: all-perl maybe-all-perl
23003maybe-all-perl:
3ff3adad
PB
23004@if gcc-bootstrap
23005all-perl: stage_current
23006@endif gcc-bootstrap
d32ab992 23007@if perl
7e0b5752 23008TARGET-perl=all
d32ab992
PB
23009maybe-all-perl: all-perl
23010all-perl: configure-perl
f41d6665 23011 @: $(MAKE); $(unstage)
8c90b13a
L
23012 @r=`${PWD_COMMAND}`; export r; \
23013 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23014 $(HOST_EXPORTS) \
215c351a
PB
23015 (cd $(HOST_SUBDIR)/perl && \
23016 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-perl))
d32ab992 23017@endif perl
4977bab6 23018
25b42232 23019
ce406537
PB
23020
23021
d32ab992
PB
23022.PHONY: check-perl maybe-check-perl
23023maybe-check-perl:
23024@if perl
23025maybe-check-perl: check-perl
4977bab6 23026
d32ab992 23027check-perl:
f41d6665 23028 @: $(MAKE); $(unstage)
8c90b13a
L
23029 @r=`${PWD_COMMAND}`; export r; \
23030 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23031 $(HOST_EXPORTS) \
215c351a
PB
23032 (cd $(HOST_SUBDIR)/perl && \
23033 $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6 23034
d32ab992 23035@endif perl
4977bab6 23036
d32ab992
PB
23037.PHONY: install-perl maybe-install-perl
23038maybe-install-perl:
23039@if perl
23040maybe-install-perl: install-perl
7e2dbcef 23041
d32ab992 23042install-perl: installdirs
f41d6665 23043 @: $(MAKE); $(unstage)
8c90b13a
L
23044 @r=`${PWD_COMMAND}`; export r; \
23045 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23046 $(HOST_EXPORTS) \
215c351a 23047 (cd $(HOST_SUBDIR)/perl && \
ace9ac7b 23048 $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6 23049
d32ab992 23050@endif perl
4977bab6 23051
b5422ad7 23052# Other targets (info, dvi, pdf, etc.)
295f4e42 23053
d32ab992
PB
23054.PHONY: maybe-info-perl info-perl
23055maybe-info-perl:
23056@if perl
23057maybe-info-perl: info-perl
295f4e42 23058
d32ab992 23059info-perl: \
05750653 23060 configure-perl
f41d6665 23061 @: $(MAKE); $(unstage)
d32ab992 23062 @[ -f ./perl/Makefile ] || exit 0; \
295f4e42
NN
23063 r=`${PWD_COMMAND}`; export r; \
23064 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23065 $(HOST_EXPORTS) \
d32ab992 23066 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23067 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23068 done; \
d32ab992 23069 echo "Doing info in perl" ; \
215c351a 23070 (cd $(HOST_SUBDIR)/perl && \
295f4e42
NN
23071 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23072 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23073 "RANLIB=$${RANLIB}" \
23074 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 23075 info) \
295f4e42
NN
23076 || exit 1
23077
d32ab992 23078@endif perl
295f4e42 23079
d32ab992
PB
23080.PHONY: maybe-dvi-perl dvi-perl
23081maybe-dvi-perl:
23082@if perl
23083maybe-dvi-perl: dvi-perl
295f4e42 23084
d32ab992 23085dvi-perl: \
05750653 23086 configure-perl
f41d6665 23087 @: $(MAKE); $(unstage)
d32ab992 23088 @[ -f ./perl/Makefile ] || exit 0; \
295f4e42
NN
23089 r=`${PWD_COMMAND}`; export r; \
23090 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23091 $(HOST_EXPORTS) \
d32ab992 23092 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23093 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23094 done; \
d32ab992 23095 echo "Doing dvi in perl" ; \
215c351a 23096 (cd $(HOST_SUBDIR)/perl && \
295f4e42
NN
23097 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23098 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23099 "RANLIB=$${RANLIB}" \
23100 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 23101 dvi) \
295f4e42
NN
23102 || exit 1
23103
d32ab992 23104@endif perl
295f4e42 23105
b5422ad7
BM
23106.PHONY: maybe-pdf-perl pdf-perl
23107maybe-pdf-perl:
23108@if perl
23109maybe-pdf-perl: pdf-perl
23110
23111pdf-perl: \
23112 configure-perl
23113 @: $(MAKE); $(unstage)
23114 @[ -f ./perl/Makefile ] || exit 0; \
23115 r=`${PWD_COMMAND}`; export r; \
23116 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23117 $(HOST_EXPORTS) \
23118 for flag in $(EXTRA_HOST_FLAGS) ; do \
23119 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23120 done; \
23121 echo "Doing pdf in perl" ; \
23122 (cd $(HOST_SUBDIR)/perl && \
23123 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23124 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23125 "RANLIB=$${RANLIB}" \
23126 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23127 pdf) \
23128 || exit 1
23129
23130@endif perl
23131
f87a2b2e
MS
23132.PHONY: maybe-html-perl html-perl
23133maybe-html-perl:
23134@if perl
23135maybe-html-perl: html-perl
23136
23137html-perl: \
05750653 23138 configure-perl
f41d6665 23139 @: $(MAKE); $(unstage)
f87a2b2e
MS
23140 @[ -f ./perl/Makefile ] || exit 0; \
23141 r=`${PWD_COMMAND}`; export r; \
23142 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
23143 $(HOST_EXPORTS) \
23144 for flag in $(EXTRA_HOST_FLAGS) ; do \
23145 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23146 done; \
23147 echo "Doing html in perl" ; \
215c351a 23148 (cd $(HOST_SUBDIR)/perl && \
f87a2b2e
MS
23149 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23150 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23151 "RANLIB=$${RANLIB}" \
23152 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23153 html) \
23154 || exit 1
23155
23156@endif perl
23157
d32ab992
PB
23158.PHONY: maybe-TAGS-perl TAGS-perl
23159maybe-TAGS-perl:
23160@if perl
23161maybe-TAGS-perl: TAGS-perl
295f4e42 23162
d32ab992 23163TAGS-perl: \
05750653 23164 configure-perl
f41d6665 23165 @: $(MAKE); $(unstage)
d32ab992 23166 @[ -f ./perl/Makefile ] || exit 0; \
295f4e42
NN
23167 r=`${PWD_COMMAND}`; export r; \
23168 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23169 $(HOST_EXPORTS) \
d32ab992 23170 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23171 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23172 done; \
d32ab992 23173 echo "Doing TAGS in perl" ; \
215c351a 23174 (cd $(HOST_SUBDIR)/perl && \
295f4e42
NN
23175 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23176 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23177 "RANLIB=$${RANLIB}" \
23178 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 23179 TAGS) \
295f4e42
NN
23180 || exit 1
23181
d32ab992 23182@endif perl
295f4e42 23183
d32ab992
PB
23184.PHONY: maybe-install-info-perl install-info-perl
23185maybe-install-info-perl:
23186@if perl
23187maybe-install-info-perl: install-info-perl
295f4e42 23188
d32ab992
PB
23189install-info-perl: \
23190 configure-perl \
05750653 23191 info-perl
f41d6665 23192 @: $(MAKE); $(unstage)
d32ab992 23193 @[ -f ./perl/Makefile ] || exit 0; \
295f4e42
NN
23194 r=`${PWD_COMMAND}`; export r; \
23195 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23196 $(HOST_EXPORTS) \
d32ab992 23197 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23198 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23199 done; \
d32ab992 23200 echo "Doing install-info in perl" ; \
215c351a 23201 (cd $(HOST_SUBDIR)/perl && \
295f4e42
NN
23202 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23203 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23204 "RANLIB=$${RANLIB}" \
23205 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 23206 install-info) \
295f4e42
NN
23207 || exit 1
23208
d32ab992 23209@endif perl
295f4e42 23210
65d6e994
CD
23211.PHONY: maybe-install-html-perl install-html-perl
23212maybe-install-html-perl:
23213@if perl
23214maybe-install-html-perl: install-html-perl
23215
23216install-html-perl: \
23217 configure-perl \
23218 html-perl
23219 @: $(MAKE); $(unstage)
23220 @[ -f ./perl/Makefile ] || exit 0; \
23221 r=`${PWD_COMMAND}`; export r; \
23222 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23223 $(HOST_EXPORTS) \
23224 for flag in $(EXTRA_HOST_FLAGS) ; do \
23225 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23226 done; \
23227 echo "Doing install-html in perl" ; \
23228 (cd $(HOST_SUBDIR)/perl && \
23229 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23230 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23231 "RANLIB=$${RANLIB}" \
23232 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23233 install-html) \
23234 || exit 1
23235
23236@endif perl
23237
d32ab992
PB
23238.PHONY: maybe-installcheck-perl installcheck-perl
23239maybe-installcheck-perl:
23240@if perl
23241maybe-installcheck-perl: installcheck-perl
295f4e42 23242
d32ab992 23243installcheck-perl: \
05750653 23244 configure-perl
f41d6665 23245 @: $(MAKE); $(unstage)
d32ab992 23246 @[ -f ./perl/Makefile ] || exit 0; \
295f4e42
NN
23247 r=`${PWD_COMMAND}`; export r; \
23248 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23249 $(HOST_EXPORTS) \
d32ab992 23250 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23251 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23252 done; \
d32ab992 23253 echo "Doing installcheck in perl" ; \
215c351a 23254 (cd $(HOST_SUBDIR)/perl && \
295f4e42
NN
23255 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23256 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23257 "RANLIB=$${RANLIB}" \
23258 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 23259 installcheck) \
295f4e42
NN
23260 || exit 1
23261
d32ab992 23262@endif perl
295f4e42 23263
d32ab992
PB
23264.PHONY: maybe-mostlyclean-perl mostlyclean-perl
23265maybe-mostlyclean-perl:
23266@if perl
23267maybe-mostlyclean-perl: mostlyclean-perl
295f4e42 23268
05750653 23269mostlyclean-perl:
f41d6665 23270 @: $(MAKE); $(unstage)
d32ab992 23271 @[ -f ./perl/Makefile ] || exit 0; \
295f4e42
NN
23272 r=`${PWD_COMMAND}`; export r; \
23273 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23274 $(HOST_EXPORTS) \
d32ab992 23275 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23276 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23277 done; \
d32ab992 23278 echo "Doing mostlyclean in perl" ; \
215c351a 23279 (cd $(HOST_SUBDIR)/perl && \
295f4e42
NN
23280 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23281 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23282 "RANLIB=$${RANLIB}" \
23283 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 23284 mostlyclean) \
295f4e42
NN
23285 || exit 1
23286
d32ab992 23287@endif perl
295f4e42 23288
d32ab992
PB
23289.PHONY: maybe-clean-perl clean-perl
23290maybe-clean-perl:
23291@if perl
23292maybe-clean-perl: clean-perl
295f4e42 23293
05750653 23294clean-perl:
f41d6665 23295 @: $(MAKE); $(unstage)
d32ab992 23296 @[ -f ./perl/Makefile ] || exit 0; \
295f4e42
NN
23297 r=`${PWD_COMMAND}`; export r; \
23298 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23299 $(HOST_EXPORTS) \
d32ab992 23300 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23301 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23302 done; \
d32ab992 23303 echo "Doing clean in perl" ; \
215c351a 23304 (cd $(HOST_SUBDIR)/perl && \
295f4e42
NN
23305 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23306 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23307 "RANLIB=$${RANLIB}" \
23308 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 23309 clean) \
295f4e42
NN
23310 || exit 1
23311
d32ab992 23312@endif perl
295f4e42 23313
d32ab992
PB
23314.PHONY: maybe-distclean-perl distclean-perl
23315maybe-distclean-perl:
23316@if perl
23317maybe-distclean-perl: distclean-perl
295f4e42 23318
05750653 23319distclean-perl:
f41d6665 23320 @: $(MAKE); $(unstage)
d32ab992 23321 @[ -f ./perl/Makefile ] || exit 0; \
295f4e42
NN
23322 r=`${PWD_COMMAND}`; export r; \
23323 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23324 $(HOST_EXPORTS) \
d32ab992 23325 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23326 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23327 done; \
d32ab992 23328 echo "Doing distclean in perl" ; \
215c351a 23329 (cd $(HOST_SUBDIR)/perl && \
295f4e42
NN
23330 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23331 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23332 "RANLIB=$${RANLIB}" \
23333 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 23334 distclean) \
295f4e42
NN
23335 || exit 1
23336
d32ab992 23337@endif perl
295f4e42 23338
d32ab992
PB
23339.PHONY: maybe-maintainer-clean-perl maintainer-clean-perl
23340maybe-maintainer-clean-perl:
23341@if perl
23342maybe-maintainer-clean-perl: maintainer-clean-perl
295f4e42 23343
05750653 23344maintainer-clean-perl:
f41d6665 23345 @: $(MAKE); $(unstage)
d32ab992 23346 @[ -f ./perl/Makefile ] || exit 0; \
295f4e42
NN
23347 r=`${PWD_COMMAND}`; export r; \
23348 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23349 $(HOST_EXPORTS) \
d32ab992 23350 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23351 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23352 done; \
d32ab992 23353 echo "Doing maintainer-clean in perl" ; \
215c351a 23354 (cd $(HOST_SUBDIR)/perl && \
295f4e42
NN
23355 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23356 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23357 "RANLIB=$${RANLIB}" \
23358 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 23359 maintainer-clean) \
295f4e42
NN
23360 || exit 1
23361
d32ab992 23362@endif perl
295f4e42
NN
23363
23364
25b42232 23365
d32ab992
PB
23366.PHONY: configure-prms maybe-configure-prms
23367maybe-configure-prms:
3ff3adad
PB
23368@if gcc-bootstrap
23369configure-prms: stage_current
23370@endif gcc-bootstrap
d32ab992
PB
23371@if prms
23372maybe-configure-prms: configure-prms
cc11cc9b 23373configure-prms:
f41d6665 23374 @: $(MAKE); $(unstage)
cc11cc9b 23375 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 23376 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
23377 test ! -f $(HOST_SUBDIR)/prms/Makefile || exit 0; \
23378 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/prms ; \
4fc4dd12 23379 $(HOST_EXPORTS) \
25b42232
PB
23380 echo Configuring in $(HOST_SUBDIR)/prms; \
23381 cd "$(HOST_SUBDIR)/prms" || exit 1; \
4977bab6 23382 case $(srcdir) in \
215c351a
PB
23383 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23384 *) topdir=`echo $(HOST_SUBDIR)/prms/ | \
23385 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 23386 esac; \
215c351a
PB
23387 srcdiroption="--srcdir=$${topdir}/prms"; \
23388 libsrcdir="$$s/prms"; \
4977bab6 23389 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 23390 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 23391 || exit 1
d32ab992 23392@endif prms
4977bab6 23393
25b42232
PB
23394
23395
ce406537
PB
23396
23397
d32ab992
PB
23398.PHONY: all-prms maybe-all-prms
23399maybe-all-prms:
3ff3adad
PB
23400@if gcc-bootstrap
23401all-prms: stage_current
23402@endif gcc-bootstrap
d32ab992 23403@if prms
7e0b5752 23404TARGET-prms=all
d32ab992
PB
23405maybe-all-prms: all-prms
23406all-prms: configure-prms
f41d6665 23407 @: $(MAKE); $(unstage)
8c90b13a
L
23408 @r=`${PWD_COMMAND}`; export r; \
23409 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23410 $(HOST_EXPORTS) \
215c351a
PB
23411 (cd $(HOST_SUBDIR)/prms && \
23412 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-prms))
d32ab992 23413@endif prms
4977bab6 23414
25b42232 23415
ce406537
PB
23416
23417
d32ab992
PB
23418.PHONY: check-prms maybe-check-prms
23419maybe-check-prms:
23420@if prms
23421maybe-check-prms: check-prms
4977bab6 23422
d32ab992 23423check-prms:
f41d6665 23424 @: $(MAKE); $(unstage)
8c90b13a
L
23425 @r=`${PWD_COMMAND}`; export r; \
23426 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23427 $(HOST_EXPORTS) \
215c351a
PB
23428 (cd $(HOST_SUBDIR)/prms && \
23429 $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6 23430
d32ab992 23431@endif prms
4977bab6 23432
d32ab992
PB
23433.PHONY: install-prms maybe-install-prms
23434maybe-install-prms:
23435@if prms
23436maybe-install-prms: install-prms
7e2dbcef 23437
d32ab992 23438install-prms: installdirs
f41d6665 23439 @: $(MAKE); $(unstage)
8c90b13a
L
23440 @r=`${PWD_COMMAND}`; export r; \
23441 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23442 $(HOST_EXPORTS) \
215c351a 23443 (cd $(HOST_SUBDIR)/prms && \
ace9ac7b 23444 $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6 23445
d32ab992 23446@endif prms
4977bab6 23447
b5422ad7 23448# Other targets (info, dvi, pdf, etc.)
295f4e42 23449
d32ab992
PB
23450.PHONY: maybe-info-prms info-prms
23451maybe-info-prms:
23452@if prms
23453maybe-info-prms: info-prms
295f4e42 23454
d32ab992 23455info-prms: \
05750653 23456 configure-prms
f41d6665 23457 @: $(MAKE); $(unstage)
d32ab992 23458 @[ -f ./prms/Makefile ] || exit 0; \
8c90b13a
L
23459 r=`${PWD_COMMAND}`; export r; \
23460 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23461 $(HOST_EXPORTS) \
d32ab992 23462 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23463 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23464 done; \
d32ab992 23465 echo "Doing info in prms" ; \
215c351a 23466 (cd $(HOST_SUBDIR)/prms && \
295f4e42
NN
23467 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23468 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23469 "RANLIB=$${RANLIB}" \
23470 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 23471 info) \
4977bab6
ZW
23472 || exit 1
23473
d32ab992 23474@endif prms
295f4e42 23475
d32ab992
PB
23476.PHONY: maybe-dvi-prms dvi-prms
23477maybe-dvi-prms:
23478@if prms
23479maybe-dvi-prms: dvi-prms
295f4e42 23480
d32ab992 23481dvi-prms: \
05750653 23482 configure-prms
f41d6665 23483 @: $(MAKE); $(unstage)
d32ab992 23484 @[ -f ./prms/Makefile ] || exit 0; \
295f4e42 23485 r=`${PWD_COMMAND}`; export r; \
8c90b13a 23486 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23487 $(HOST_EXPORTS) \
d32ab992 23488 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23489 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23490 done; \
d32ab992 23491 echo "Doing dvi in prms" ; \
215c351a 23492 (cd $(HOST_SUBDIR)/prms && \
295f4e42
NN
23493 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23494 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23495 "RANLIB=$${RANLIB}" \
23496 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 23497 dvi) \
295f4e42 23498 || exit 1
4977bab6 23499
d32ab992 23500@endif prms
4977bab6 23501
b5422ad7
BM
23502.PHONY: maybe-pdf-prms pdf-prms
23503maybe-pdf-prms:
23504@if prms
23505maybe-pdf-prms: pdf-prms
23506
23507pdf-prms: \
23508 configure-prms
23509 @: $(MAKE); $(unstage)
23510 @[ -f ./prms/Makefile ] || exit 0; \
23511 r=`${PWD_COMMAND}`; export r; \
23512 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23513 $(HOST_EXPORTS) \
23514 for flag in $(EXTRA_HOST_FLAGS) ; do \
23515 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23516 done; \
23517 echo "Doing pdf in prms" ; \
23518 (cd $(HOST_SUBDIR)/prms && \
23519 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23520 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23521 "RANLIB=$${RANLIB}" \
23522 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23523 pdf) \
23524 || exit 1
23525
23526@endif prms
23527
f87a2b2e
MS
23528.PHONY: maybe-html-prms html-prms
23529maybe-html-prms:
23530@if prms
23531maybe-html-prms: html-prms
23532
23533html-prms: \
05750653 23534 configure-prms
f41d6665 23535 @: $(MAKE); $(unstage)
f87a2b2e
MS
23536 @[ -f ./prms/Makefile ] || exit 0; \
23537 r=`${PWD_COMMAND}`; export r; \
23538 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
23539 $(HOST_EXPORTS) \
23540 for flag in $(EXTRA_HOST_FLAGS) ; do \
23541 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23542 done; \
23543 echo "Doing html in prms" ; \
215c351a 23544 (cd $(HOST_SUBDIR)/prms && \
f87a2b2e
MS
23545 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23546 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23547 "RANLIB=$${RANLIB}" \
23548 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23549 html) \
23550 || exit 1
23551
23552@endif prms
23553
d32ab992
PB
23554.PHONY: maybe-TAGS-prms TAGS-prms
23555maybe-TAGS-prms:
23556@if prms
23557maybe-TAGS-prms: TAGS-prms
295f4e42 23558
d32ab992 23559TAGS-prms: \
05750653 23560 configure-prms
f41d6665 23561 @: $(MAKE); $(unstage)
d32ab992 23562 @[ -f ./prms/Makefile ] || exit 0; \
295f4e42 23563 r=`${PWD_COMMAND}`; export r; \
8c90b13a 23564 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23565 $(HOST_EXPORTS) \
d32ab992 23566 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23567 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23568 done; \
d32ab992 23569 echo "Doing TAGS in prms" ; \
215c351a 23570 (cd $(HOST_SUBDIR)/prms && \
295f4e42
NN
23571 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23572 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23573 "RANLIB=$${RANLIB}" \
23574 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 23575 TAGS) \
295f4e42 23576 || exit 1
4977bab6 23577
d32ab992 23578@endif prms
4977bab6 23579
d32ab992
PB
23580.PHONY: maybe-install-info-prms install-info-prms
23581maybe-install-info-prms:
23582@if prms
23583maybe-install-info-prms: install-info-prms
7e2dbcef 23584
d32ab992
PB
23585install-info-prms: \
23586 configure-prms \
05750653 23587 info-prms
f41d6665 23588 @: $(MAKE); $(unstage)
d32ab992 23589 @[ -f ./prms/Makefile ] || exit 0; \
295f4e42
NN
23590 r=`${PWD_COMMAND}`; export r; \
23591 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23592 $(HOST_EXPORTS) \
d32ab992 23593 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23594 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23595 done; \
d32ab992 23596 echo "Doing install-info in prms" ; \
215c351a 23597 (cd $(HOST_SUBDIR)/prms && \
295f4e42
NN
23598 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23599 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23600 "RANLIB=$${RANLIB}" \
23601 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 23602 install-info) \
295f4e42
NN
23603 || exit 1
23604
d32ab992 23605@endif prms
295f4e42 23606
65d6e994
CD
23607.PHONY: maybe-install-html-prms install-html-prms
23608maybe-install-html-prms:
23609@if prms
23610maybe-install-html-prms: install-html-prms
23611
23612install-html-prms: \
23613 configure-prms \
23614 html-prms
23615 @: $(MAKE); $(unstage)
23616 @[ -f ./prms/Makefile ] || exit 0; \
23617 r=`${PWD_COMMAND}`; export r; \
23618 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23619 $(HOST_EXPORTS) \
23620 for flag in $(EXTRA_HOST_FLAGS) ; do \
23621 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23622 done; \
23623 echo "Doing install-html in prms" ; \
23624 (cd $(HOST_SUBDIR)/prms && \
23625 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23626 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23627 "RANLIB=$${RANLIB}" \
23628 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23629 install-html) \
23630 || exit 1
23631
23632@endif prms
23633
d32ab992
PB
23634.PHONY: maybe-installcheck-prms installcheck-prms
23635maybe-installcheck-prms:
23636@if prms
23637maybe-installcheck-prms: installcheck-prms
295f4e42 23638
d32ab992 23639installcheck-prms: \
05750653 23640 configure-prms
f41d6665 23641 @: $(MAKE); $(unstage)
d32ab992 23642 @[ -f ./prms/Makefile ] || exit 0; \
295f4e42
NN
23643 r=`${PWD_COMMAND}`; export r; \
23644 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23645 $(HOST_EXPORTS) \
d32ab992 23646 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23647 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23648 done; \
d32ab992 23649 echo "Doing installcheck in prms" ; \
215c351a 23650 (cd $(HOST_SUBDIR)/prms && \
295f4e42
NN
23651 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23652 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23653 "RANLIB=$${RANLIB}" \
23654 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 23655 installcheck) \
295f4e42
NN
23656 || exit 1
23657
d32ab992 23658@endif prms
295f4e42 23659
d32ab992
PB
23660.PHONY: maybe-mostlyclean-prms mostlyclean-prms
23661maybe-mostlyclean-prms:
23662@if prms
23663maybe-mostlyclean-prms: mostlyclean-prms
295f4e42 23664
05750653 23665mostlyclean-prms:
f41d6665 23666 @: $(MAKE); $(unstage)
d32ab992 23667 @[ -f ./prms/Makefile ] || exit 0; \
295f4e42
NN
23668 r=`${PWD_COMMAND}`; export r; \
23669 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23670 $(HOST_EXPORTS) \
d32ab992 23671 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23672 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23673 done; \
d32ab992 23674 echo "Doing mostlyclean in prms" ; \
215c351a 23675 (cd $(HOST_SUBDIR)/prms && \
295f4e42
NN
23676 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23677 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23678 "RANLIB=$${RANLIB}" \
23679 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 23680 mostlyclean) \
295f4e42
NN
23681 || exit 1
23682
d32ab992 23683@endif prms
295f4e42 23684
d32ab992
PB
23685.PHONY: maybe-clean-prms clean-prms
23686maybe-clean-prms:
23687@if prms
23688maybe-clean-prms: clean-prms
295f4e42 23689
05750653 23690clean-prms:
f41d6665 23691 @: $(MAKE); $(unstage)
d32ab992 23692 @[ -f ./prms/Makefile ] || exit 0; \
295f4e42
NN
23693 r=`${PWD_COMMAND}`; export r; \
23694 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23695 $(HOST_EXPORTS) \
d32ab992 23696 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23697 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23698 done; \
d32ab992 23699 echo "Doing clean in prms" ; \
215c351a 23700 (cd $(HOST_SUBDIR)/prms && \
295f4e42
NN
23701 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23702 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23703 "RANLIB=$${RANLIB}" \
23704 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 23705 clean) \
295f4e42
NN
23706 || exit 1
23707
d32ab992 23708@endif prms
295f4e42 23709
d32ab992
PB
23710.PHONY: maybe-distclean-prms distclean-prms
23711maybe-distclean-prms:
23712@if prms
23713maybe-distclean-prms: distclean-prms
295f4e42 23714
05750653 23715distclean-prms:
f41d6665 23716 @: $(MAKE); $(unstage)
d32ab992 23717 @[ -f ./prms/Makefile ] || exit 0; \
295f4e42
NN
23718 r=`${PWD_COMMAND}`; export r; \
23719 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23720 $(HOST_EXPORTS) \
d32ab992 23721 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23722 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23723 done; \
d32ab992 23724 echo "Doing distclean in prms" ; \
215c351a 23725 (cd $(HOST_SUBDIR)/prms && \
295f4e42
NN
23726 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23727 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23728 "RANLIB=$${RANLIB}" \
23729 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 23730 distclean) \
295f4e42
NN
23731 || exit 1
23732
d32ab992 23733@endif prms
295f4e42 23734
d32ab992
PB
23735.PHONY: maybe-maintainer-clean-prms maintainer-clean-prms
23736maybe-maintainer-clean-prms:
23737@if prms
23738maybe-maintainer-clean-prms: maintainer-clean-prms
295f4e42 23739
05750653 23740maintainer-clean-prms:
f41d6665 23741 @: $(MAKE); $(unstage)
d32ab992 23742 @[ -f ./prms/Makefile ] || exit 0; \
295f4e42 23743 r=`${PWD_COMMAND}`; export r; \
8c90b13a 23744 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23745 $(HOST_EXPORTS) \
d32ab992 23746 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23747 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23748 done; \
d32ab992 23749 echo "Doing maintainer-clean in prms" ; \
215c351a 23750 (cd $(HOST_SUBDIR)/prms && \
295f4e42
NN
23751 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23752 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23753 "RANLIB=$${RANLIB}" \
23754 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 23755 maintainer-clean) \
295f4e42 23756 || exit 1
4977bab6 23757
d32ab992 23758@endif prms
4977bab6 23759
295f4e42 23760
25b42232 23761
d32ab992
PB
23762.PHONY: configure-rcs maybe-configure-rcs
23763maybe-configure-rcs:
3ff3adad
PB
23764@if gcc-bootstrap
23765configure-rcs: stage_current
23766@endif gcc-bootstrap
d32ab992
PB
23767@if rcs
23768maybe-configure-rcs: configure-rcs
cc11cc9b 23769configure-rcs:
f41d6665 23770 @: $(MAKE); $(unstage)
cc11cc9b 23771 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 23772 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
23773 test ! -f $(HOST_SUBDIR)/rcs/Makefile || exit 0; \
23774 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/rcs ; \
4fc4dd12 23775 $(HOST_EXPORTS) \
25b42232
PB
23776 echo Configuring in $(HOST_SUBDIR)/rcs; \
23777 cd "$(HOST_SUBDIR)/rcs" || exit 1; \
4977bab6 23778 case $(srcdir) in \
215c351a
PB
23779 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
23780 *) topdir=`echo $(HOST_SUBDIR)/rcs/ | \
23781 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 23782 esac; \
215c351a
PB
23783 srcdiroption="--srcdir=$${topdir}/rcs"; \
23784 libsrcdir="$$s/rcs"; \
4977bab6 23785 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 23786 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 23787 || exit 1
d32ab992 23788@endif rcs
4977bab6 23789
25b42232
PB
23790
23791
ce406537
PB
23792
23793
d32ab992
PB
23794.PHONY: all-rcs maybe-all-rcs
23795maybe-all-rcs:
3ff3adad
PB
23796@if gcc-bootstrap
23797all-rcs: stage_current
23798@endif gcc-bootstrap
d32ab992 23799@if rcs
7e0b5752 23800TARGET-rcs=all
d32ab992
PB
23801maybe-all-rcs: all-rcs
23802all-rcs: configure-rcs
f41d6665 23803 @: $(MAKE); $(unstage)
8c90b13a
L
23804 @r=`${PWD_COMMAND}`; export r; \
23805 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23806 $(HOST_EXPORTS) \
215c351a
PB
23807 (cd $(HOST_SUBDIR)/rcs && \
23808 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-rcs))
d32ab992 23809@endif rcs
4977bab6 23810
25b42232 23811
ce406537
PB
23812
23813
d32ab992
PB
23814.PHONY: check-rcs maybe-check-rcs
23815maybe-check-rcs:
23816@if rcs
23817maybe-check-rcs: check-rcs
4977bab6 23818
d32ab992 23819check-rcs:
f41d6665 23820 @: $(MAKE); $(unstage)
8c90b13a
L
23821 @r=`${PWD_COMMAND}`; export r; \
23822 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23823 $(HOST_EXPORTS) \
215c351a
PB
23824 (cd $(HOST_SUBDIR)/rcs && \
23825 $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6 23826
d32ab992 23827@endif rcs
4977bab6 23828
d32ab992
PB
23829.PHONY: install-rcs maybe-install-rcs
23830maybe-install-rcs:
23831@if rcs
23832maybe-install-rcs: install-rcs
295f4e42 23833
d32ab992 23834install-rcs: installdirs
f41d6665 23835 @: $(MAKE); $(unstage)
295f4e42
NN
23836 @r=`${PWD_COMMAND}`; export r; \
23837 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23838 $(HOST_EXPORTS) \
215c351a 23839 (cd $(HOST_SUBDIR)/rcs && \
ace9ac7b 23840 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 23841
d32ab992 23842@endif rcs
295f4e42 23843
b5422ad7 23844# Other targets (info, dvi, pdf, etc.)
295f4e42 23845
d32ab992
PB
23846.PHONY: maybe-info-rcs info-rcs
23847maybe-info-rcs:
23848@if rcs
23849maybe-info-rcs: info-rcs
295f4e42 23850
d32ab992 23851info-rcs: \
05750653 23852 configure-rcs
f41d6665 23853 @: $(MAKE); $(unstage)
d32ab992 23854 @[ -f ./rcs/Makefile ] || exit 0; \
295f4e42
NN
23855 r=`${PWD_COMMAND}`; export r; \
23856 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23857 $(HOST_EXPORTS) \
d32ab992 23858 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23859 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23860 done; \
d32ab992 23861 echo "Doing info in rcs" ; \
215c351a 23862 (cd $(HOST_SUBDIR)/rcs && \
295f4e42
NN
23863 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23864 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23865 "RANLIB=$${RANLIB}" \
23866 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 23867 info) \
295f4e42
NN
23868 || exit 1
23869
d32ab992 23870@endif rcs
295f4e42 23871
d32ab992
PB
23872.PHONY: maybe-dvi-rcs dvi-rcs
23873maybe-dvi-rcs:
23874@if rcs
23875maybe-dvi-rcs: dvi-rcs
295f4e42 23876
d32ab992 23877dvi-rcs: \
05750653 23878 configure-rcs
f41d6665 23879 @: $(MAKE); $(unstage)
d32ab992 23880 @[ -f ./rcs/Makefile ] || exit 0; \
295f4e42
NN
23881 r=`${PWD_COMMAND}`; export r; \
23882 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23883 $(HOST_EXPORTS) \
d32ab992 23884 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23885 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23886 done; \
d32ab992 23887 echo "Doing dvi in rcs" ; \
215c351a 23888 (cd $(HOST_SUBDIR)/rcs && \
295f4e42
NN
23889 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23890 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23891 "RANLIB=$${RANLIB}" \
23892 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 23893 dvi) \
295f4e42
NN
23894 || exit 1
23895
d32ab992 23896@endif rcs
295f4e42 23897
b5422ad7
BM
23898.PHONY: maybe-pdf-rcs pdf-rcs
23899maybe-pdf-rcs:
23900@if rcs
23901maybe-pdf-rcs: pdf-rcs
23902
23903pdf-rcs: \
23904 configure-rcs
23905 @: $(MAKE); $(unstage)
23906 @[ -f ./rcs/Makefile ] || exit 0; \
23907 r=`${PWD_COMMAND}`; export r; \
23908 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
23909 $(HOST_EXPORTS) \
23910 for flag in $(EXTRA_HOST_FLAGS) ; do \
23911 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23912 done; \
23913 echo "Doing pdf in rcs" ; \
23914 (cd $(HOST_SUBDIR)/rcs && \
23915 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23916 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23917 "RANLIB=$${RANLIB}" \
23918 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23919 pdf) \
23920 || exit 1
23921
23922@endif rcs
23923
f87a2b2e
MS
23924.PHONY: maybe-html-rcs html-rcs
23925maybe-html-rcs:
23926@if rcs
23927maybe-html-rcs: html-rcs
23928
23929html-rcs: \
05750653 23930 configure-rcs
f41d6665 23931 @: $(MAKE); $(unstage)
f87a2b2e
MS
23932 @[ -f ./rcs/Makefile ] || exit 0; \
23933 r=`${PWD_COMMAND}`; export r; \
23934 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
23935 $(HOST_EXPORTS) \
23936 for flag in $(EXTRA_HOST_FLAGS) ; do \
23937 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23938 done; \
23939 echo "Doing html in rcs" ; \
215c351a 23940 (cd $(HOST_SUBDIR)/rcs && \
f87a2b2e
MS
23941 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23942 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23943 "RANLIB=$${RANLIB}" \
23944 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
23945 html) \
23946 || exit 1
23947
23948@endif rcs
23949
d32ab992
PB
23950.PHONY: maybe-TAGS-rcs TAGS-rcs
23951maybe-TAGS-rcs:
23952@if rcs
23953maybe-TAGS-rcs: TAGS-rcs
295f4e42 23954
d32ab992 23955TAGS-rcs: \
05750653 23956 configure-rcs
f41d6665 23957 @: $(MAKE); $(unstage)
d32ab992 23958 @[ -f ./rcs/Makefile ] || exit 0; \
295f4e42
NN
23959 r=`${PWD_COMMAND}`; export r; \
23960 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23961 $(HOST_EXPORTS) \
d32ab992 23962 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23963 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23964 done; \
d32ab992 23965 echo "Doing TAGS in rcs" ; \
215c351a 23966 (cd $(HOST_SUBDIR)/rcs && \
295f4e42
NN
23967 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23968 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23969 "RANLIB=$${RANLIB}" \
23970 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 23971 TAGS) \
295f4e42
NN
23972 || exit 1
23973
d32ab992 23974@endif rcs
295f4e42 23975
d32ab992
PB
23976.PHONY: maybe-install-info-rcs install-info-rcs
23977maybe-install-info-rcs:
23978@if rcs
23979maybe-install-info-rcs: install-info-rcs
295f4e42 23980
d32ab992
PB
23981install-info-rcs: \
23982 configure-rcs \
05750653 23983 info-rcs
f41d6665 23984 @: $(MAKE); $(unstage)
d32ab992 23985 @[ -f ./rcs/Makefile ] || exit 0; \
295f4e42
NN
23986 r=`${PWD_COMMAND}`; export r; \
23987 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 23988 $(HOST_EXPORTS) \
d32ab992 23989 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
23990 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
23991 done; \
d32ab992 23992 echo "Doing install-info in rcs" ; \
215c351a 23993 (cd $(HOST_SUBDIR)/rcs && \
295f4e42
NN
23994 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
23995 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
23996 "RANLIB=$${RANLIB}" \
23997 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 23998 install-info) \
295f4e42
NN
23999 || exit 1
24000
d32ab992 24001@endif rcs
295f4e42 24002
65d6e994
CD
24003.PHONY: maybe-install-html-rcs install-html-rcs
24004maybe-install-html-rcs:
24005@if rcs
24006maybe-install-html-rcs: install-html-rcs
24007
24008install-html-rcs: \
24009 configure-rcs \
24010 html-rcs
24011 @: $(MAKE); $(unstage)
24012 @[ -f ./rcs/Makefile ] || exit 0; \
24013 r=`${PWD_COMMAND}`; export r; \
24014 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24015 $(HOST_EXPORTS) \
24016 for flag in $(EXTRA_HOST_FLAGS) ; do \
24017 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24018 done; \
24019 echo "Doing install-html in rcs" ; \
24020 (cd $(HOST_SUBDIR)/rcs && \
24021 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24022 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24023 "RANLIB=$${RANLIB}" \
24024 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
24025 install-html) \
24026 || exit 1
24027
24028@endif rcs
24029
d32ab992
PB
24030.PHONY: maybe-installcheck-rcs installcheck-rcs
24031maybe-installcheck-rcs:
24032@if rcs
24033maybe-installcheck-rcs: installcheck-rcs
295f4e42 24034
d32ab992 24035installcheck-rcs: \
05750653 24036 configure-rcs
f41d6665 24037 @: $(MAKE); $(unstage)
d32ab992 24038 @[ -f ./rcs/Makefile ] || exit 0; \
295f4e42
NN
24039 r=`${PWD_COMMAND}`; export r; \
24040 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24041 $(HOST_EXPORTS) \
d32ab992 24042 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24043 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24044 done; \
d32ab992 24045 echo "Doing installcheck in rcs" ; \
215c351a 24046 (cd $(HOST_SUBDIR)/rcs && \
295f4e42
NN
24047 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24048 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24049 "RANLIB=$${RANLIB}" \
24050 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24051 installcheck) \
295f4e42
NN
24052 || exit 1
24053
d32ab992 24054@endif rcs
295f4e42 24055
d32ab992
PB
24056.PHONY: maybe-mostlyclean-rcs mostlyclean-rcs
24057maybe-mostlyclean-rcs:
24058@if rcs
24059maybe-mostlyclean-rcs: mostlyclean-rcs
295f4e42 24060
05750653 24061mostlyclean-rcs:
f41d6665 24062 @: $(MAKE); $(unstage)
d32ab992 24063 @[ -f ./rcs/Makefile ] || exit 0; \
295f4e42
NN
24064 r=`${PWD_COMMAND}`; export r; \
24065 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24066 $(HOST_EXPORTS) \
d32ab992 24067 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24068 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24069 done; \
d32ab992 24070 echo "Doing mostlyclean in rcs" ; \
215c351a 24071 (cd $(HOST_SUBDIR)/rcs && \
295f4e42
NN
24072 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24073 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24074 "RANLIB=$${RANLIB}" \
24075 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24076 mostlyclean) \
295f4e42
NN
24077 || exit 1
24078
d32ab992 24079@endif rcs
295f4e42 24080
d32ab992
PB
24081.PHONY: maybe-clean-rcs clean-rcs
24082maybe-clean-rcs:
24083@if rcs
24084maybe-clean-rcs: clean-rcs
295f4e42 24085
05750653 24086clean-rcs:
f41d6665 24087 @: $(MAKE); $(unstage)
d32ab992 24088 @[ -f ./rcs/Makefile ] || exit 0; \
295f4e42
NN
24089 r=`${PWD_COMMAND}`; export r; \
24090 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24091 $(HOST_EXPORTS) \
d32ab992 24092 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24093 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24094 done; \
d32ab992 24095 echo "Doing clean in rcs" ; \
215c351a 24096 (cd $(HOST_SUBDIR)/rcs && \
295f4e42
NN
24097 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24098 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24099 "RANLIB=$${RANLIB}" \
24100 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24101 clean) \
295f4e42
NN
24102 || exit 1
24103
d32ab992 24104@endif rcs
295f4e42 24105
d32ab992
PB
24106.PHONY: maybe-distclean-rcs distclean-rcs
24107maybe-distclean-rcs:
24108@if rcs
24109maybe-distclean-rcs: distclean-rcs
295f4e42 24110
05750653 24111distclean-rcs:
f41d6665 24112 @: $(MAKE); $(unstage)
d32ab992 24113 @[ -f ./rcs/Makefile ] || exit 0; \
295f4e42
NN
24114 r=`${PWD_COMMAND}`; export r; \
24115 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24116 $(HOST_EXPORTS) \
d32ab992 24117 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24118 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24119 done; \
d32ab992 24120 echo "Doing distclean in rcs" ; \
215c351a 24121 (cd $(HOST_SUBDIR)/rcs && \
295f4e42
NN
24122 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24123 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24124 "RANLIB=$${RANLIB}" \
24125 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24126 distclean) \
295f4e42
NN
24127 || exit 1
24128
d32ab992 24129@endif rcs
295f4e42 24130
d32ab992
PB
24131.PHONY: maybe-maintainer-clean-rcs maintainer-clean-rcs
24132maybe-maintainer-clean-rcs:
24133@if rcs
24134maybe-maintainer-clean-rcs: maintainer-clean-rcs
295f4e42 24135
05750653 24136maintainer-clean-rcs:
f41d6665 24137 @: $(MAKE); $(unstage)
d32ab992 24138 @[ -f ./rcs/Makefile ] || exit 0; \
295f4e42
NN
24139 r=`${PWD_COMMAND}`; export r; \
24140 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24141 $(HOST_EXPORTS) \
d32ab992 24142 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24143 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24144 done; \
d32ab992 24145 echo "Doing maintainer-clean in rcs" ; \
215c351a 24146 (cd $(HOST_SUBDIR)/rcs && \
295f4e42
NN
24147 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24148 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24149 "RANLIB=$${RANLIB}" \
24150 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24151 maintainer-clean) \
295f4e42 24152 || exit 1
7e2dbcef 24153
d32ab992 24154@endif rcs
4977bab6
ZW
24155
24156
25b42232 24157
d32ab992
PB
24158.PHONY: configure-readline maybe-configure-readline
24159maybe-configure-readline:
3ff3adad
PB
24160@if gcc-bootstrap
24161configure-readline: stage_current
24162@endif gcc-bootstrap
d32ab992
PB
24163@if readline
24164maybe-configure-readline: configure-readline
cc11cc9b 24165configure-readline:
f41d6665 24166 @: $(MAKE); $(unstage)
cc11cc9b 24167 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 24168 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
24169 test ! -f $(HOST_SUBDIR)/readline/Makefile || exit 0; \
24170 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/readline ; \
4fc4dd12 24171 $(HOST_EXPORTS) \
25b42232
PB
24172 echo Configuring in $(HOST_SUBDIR)/readline; \
24173 cd "$(HOST_SUBDIR)/readline" || exit 1; \
4977bab6 24174 case $(srcdir) in \
215c351a
PB
24175 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24176 *) topdir=`echo $(HOST_SUBDIR)/readline/ | \
24177 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 24178 esac; \
215c351a
PB
24179 srcdiroption="--srcdir=$${topdir}/readline"; \
24180 libsrcdir="$$s/readline"; \
4977bab6 24181 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 24182 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 24183 || exit 1
d32ab992 24184@endif readline
4977bab6 24185
25b42232
PB
24186
24187
ce406537
PB
24188
24189
d32ab992
PB
24190.PHONY: all-readline maybe-all-readline
24191maybe-all-readline:
3ff3adad
PB
24192@if gcc-bootstrap
24193all-readline: stage_current
24194@endif gcc-bootstrap
d32ab992 24195@if readline
7e0b5752 24196TARGET-readline=all
d32ab992
PB
24197maybe-all-readline: all-readline
24198all-readline: configure-readline
f41d6665 24199 @: $(MAKE); $(unstage)
8c90b13a
L
24200 @r=`${PWD_COMMAND}`; export r; \
24201 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24202 $(HOST_EXPORTS) \
215c351a
PB
24203 (cd $(HOST_SUBDIR)/readline && \
24204 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-readline))
d32ab992 24205@endif readline
4977bab6 24206
25b42232 24207
ce406537
PB
24208
24209
d32ab992
PB
24210.PHONY: check-readline maybe-check-readline
24211maybe-check-readline:
24212@if readline
24213maybe-check-readline: check-readline
4977bab6 24214
d32ab992 24215check-readline:
f41d6665 24216 @: $(MAKE); $(unstage)
d32ab992
PB
24217 @r=`${PWD_COMMAND}`; export r; \
24218 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d32ab992 24219 $(HOST_EXPORTS) \
215c351a
PB
24220 (cd $(HOST_SUBDIR)/readline && \
24221 $(MAKE) $(FLAGS_TO_PASS) check)
295f4e42 24222
d32ab992 24223@endif readline
295f4e42 24224
d32ab992
PB
24225.PHONY: install-readline maybe-install-readline
24226maybe-install-readline:
24227@if readline
24228maybe-install-readline: install-readline
295f4e42 24229
d32ab992 24230install-readline: installdirs
f41d6665 24231 @: $(MAKE); $(unstage)
d32ab992
PB
24232 @r=`${PWD_COMMAND}`; export r; \
24233 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d32ab992 24234 $(HOST_EXPORTS) \
215c351a 24235 (cd $(HOST_SUBDIR)/readline && \
ace9ac7b 24236 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 24237
d32ab992 24238@endif readline
295f4e42 24239
b5422ad7 24240# Other targets (info, dvi, pdf, etc.)
295f4e42 24241
d32ab992
PB
24242.PHONY: maybe-info-readline info-readline
24243maybe-info-readline:
24244@if readline
24245maybe-info-readline: info-readline
295f4e42 24246
d32ab992 24247info-readline: \
05750653 24248 configure-readline
f41d6665 24249 @: $(MAKE); $(unstage)
d32ab992 24250 @[ -f ./readline/Makefile ] || exit 0; \
295f4e42 24251 r=`${PWD_COMMAND}`; export r; \
8c90b13a 24252 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24253 $(HOST_EXPORTS) \
d32ab992 24254 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24255 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24256 done; \
d32ab992 24257 echo "Doing info in readline" ; \
215c351a 24258 (cd $(HOST_SUBDIR)/readline && \
295f4e42
NN
24259 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24260 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24261 "RANLIB=$${RANLIB}" \
24262 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24263 info) \
295f4e42 24264 || exit 1
4977bab6 24265
d32ab992 24266@endif readline
4977bab6 24267
d32ab992
PB
24268.PHONY: maybe-dvi-readline dvi-readline
24269maybe-dvi-readline:
24270@if readline
24271maybe-dvi-readline: dvi-readline
7e2dbcef 24272
d32ab992 24273dvi-readline: \
05750653 24274 configure-readline
f41d6665 24275 @: $(MAKE); $(unstage)
d32ab992 24276 @[ -f ./readline/Makefile ] || exit 0; \
295f4e42 24277 r=`${PWD_COMMAND}`; export r; \
8c90b13a 24278 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24279 $(HOST_EXPORTS) \
d32ab992 24280 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24281 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24282 done; \
d32ab992 24283 echo "Doing dvi in readline" ; \
215c351a 24284 (cd $(HOST_SUBDIR)/readline && \
295f4e42
NN
24285 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24286 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24287 "RANLIB=$${RANLIB}" \
24288 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24289 dvi) \
295f4e42 24290 || exit 1
4977bab6 24291
d32ab992 24292@endif readline
4977bab6 24293
b5422ad7
BM
24294.PHONY: maybe-pdf-readline pdf-readline
24295maybe-pdf-readline:
24296@if readline
24297maybe-pdf-readline: pdf-readline
24298
24299pdf-readline: \
24300 configure-readline
24301 @: $(MAKE); $(unstage)
24302 @[ -f ./readline/Makefile ] || exit 0; \
24303 r=`${PWD_COMMAND}`; export r; \
24304 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24305 $(HOST_EXPORTS) \
24306 for flag in $(EXTRA_HOST_FLAGS) ; do \
24307 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24308 done; \
24309 echo "Doing pdf in readline" ; \
24310 (cd $(HOST_SUBDIR)/readline && \
24311 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24312 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24313 "RANLIB=$${RANLIB}" \
24314 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
24315 pdf) \
24316 || exit 1
24317
24318@endif readline
24319
f87a2b2e
MS
24320.PHONY: maybe-html-readline html-readline
24321maybe-html-readline:
24322@if readline
24323maybe-html-readline: html-readline
24324
24325html-readline: \
05750653 24326 configure-readline
f41d6665 24327 @: $(MAKE); $(unstage)
f87a2b2e
MS
24328 @[ -f ./readline/Makefile ] || exit 0; \
24329 r=`${PWD_COMMAND}`; export r; \
24330 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
24331 $(HOST_EXPORTS) \
24332 for flag in $(EXTRA_HOST_FLAGS) ; do \
24333 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24334 done; \
24335 echo "Doing html in readline" ; \
215c351a 24336 (cd $(HOST_SUBDIR)/readline && \
f87a2b2e
MS
24337 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24338 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24339 "RANLIB=$${RANLIB}" \
24340 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
24341 html) \
24342 || exit 1
24343
24344@endif readline
24345
d32ab992
PB
24346.PHONY: maybe-TAGS-readline TAGS-readline
24347maybe-TAGS-readline:
24348@if readline
24349maybe-TAGS-readline: TAGS-readline
295f4e42 24350
d32ab992 24351TAGS-readline: \
05750653 24352 configure-readline
f41d6665 24353 @: $(MAKE); $(unstage)
d32ab992 24354 @[ -f ./readline/Makefile ] || exit 0; \
295f4e42
NN
24355 r=`${PWD_COMMAND}`; export r; \
24356 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24357 $(HOST_EXPORTS) \
d32ab992 24358 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24359 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24360 done; \
d32ab992 24361 echo "Doing TAGS in readline" ; \
215c351a 24362 (cd $(HOST_SUBDIR)/readline && \
295f4e42
NN
24363 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24364 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24365 "RANLIB=$${RANLIB}" \
24366 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24367 TAGS) \
295f4e42
NN
24368 || exit 1
24369
d32ab992 24370@endif readline
295f4e42 24371
d32ab992
PB
24372.PHONY: maybe-install-info-readline install-info-readline
24373maybe-install-info-readline:
24374@if readline
24375maybe-install-info-readline: install-info-readline
295f4e42 24376
d32ab992
PB
24377install-info-readline: \
24378 configure-readline \
05750653 24379 info-readline
f41d6665 24380 @: $(MAKE); $(unstage)
d32ab992 24381 @[ -f ./readline/Makefile ] || exit 0; \
295f4e42
NN
24382 r=`${PWD_COMMAND}`; export r; \
24383 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24384 $(HOST_EXPORTS) \
d32ab992 24385 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24386 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24387 done; \
d32ab992 24388 echo "Doing install-info in readline" ; \
215c351a 24389 (cd $(HOST_SUBDIR)/readline && \
295f4e42
NN
24390 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24391 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24392 "RANLIB=$${RANLIB}" \
24393 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24394 install-info) \
295f4e42
NN
24395 || exit 1
24396
d32ab992 24397@endif readline
295f4e42 24398
65d6e994
CD
24399.PHONY: maybe-install-html-readline install-html-readline
24400maybe-install-html-readline:
24401@if readline
24402maybe-install-html-readline: install-html-readline
24403
24404install-html-readline: \
24405 configure-readline \
24406 html-readline
24407 @: $(MAKE); $(unstage)
24408 @[ -f ./readline/Makefile ] || exit 0; \
24409 r=`${PWD_COMMAND}`; export r; \
24410 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24411 $(HOST_EXPORTS) \
24412 for flag in $(EXTRA_HOST_FLAGS) ; do \
24413 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24414 done; \
24415 echo "Doing install-html in readline" ; \
24416 (cd $(HOST_SUBDIR)/readline && \
24417 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24418 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24419 "RANLIB=$${RANLIB}" \
24420 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
24421 install-html) \
24422 || exit 1
24423
24424@endif readline
24425
d32ab992
PB
24426.PHONY: maybe-installcheck-readline installcheck-readline
24427maybe-installcheck-readline:
24428@if readline
24429maybe-installcheck-readline: installcheck-readline
295f4e42 24430
d32ab992 24431installcheck-readline: \
05750653 24432 configure-readline
f41d6665 24433 @: $(MAKE); $(unstage)
d32ab992 24434 @[ -f ./readline/Makefile ] || exit 0; \
295f4e42
NN
24435 r=`${PWD_COMMAND}`; export r; \
24436 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24437 $(HOST_EXPORTS) \
d32ab992 24438 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24439 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24440 done; \
d32ab992 24441 echo "Doing installcheck in readline" ; \
215c351a 24442 (cd $(HOST_SUBDIR)/readline && \
295f4e42
NN
24443 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24444 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24445 "RANLIB=$${RANLIB}" \
24446 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24447 installcheck) \
295f4e42
NN
24448 || exit 1
24449
d32ab992 24450@endif readline
295f4e42 24451
d32ab992
PB
24452.PHONY: maybe-mostlyclean-readline mostlyclean-readline
24453maybe-mostlyclean-readline:
24454@if readline
24455maybe-mostlyclean-readline: mostlyclean-readline
295f4e42 24456
05750653 24457mostlyclean-readline:
f41d6665 24458 @: $(MAKE); $(unstage)
d32ab992 24459 @[ -f ./readline/Makefile ] || exit 0; \
295f4e42
NN
24460 r=`${PWD_COMMAND}`; export r; \
24461 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24462 $(HOST_EXPORTS) \
d32ab992 24463 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24464 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24465 done; \
d32ab992 24466 echo "Doing mostlyclean in readline" ; \
215c351a 24467 (cd $(HOST_SUBDIR)/readline && \
295f4e42
NN
24468 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24469 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24470 "RANLIB=$${RANLIB}" \
24471 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24472 mostlyclean) \
295f4e42
NN
24473 || exit 1
24474
d32ab992 24475@endif readline
295f4e42 24476
d32ab992
PB
24477.PHONY: maybe-clean-readline clean-readline
24478maybe-clean-readline:
24479@if readline
24480maybe-clean-readline: clean-readline
295f4e42 24481
05750653 24482clean-readline:
f41d6665 24483 @: $(MAKE); $(unstage)
d32ab992 24484 @[ -f ./readline/Makefile ] || exit 0; \
295f4e42
NN
24485 r=`${PWD_COMMAND}`; export r; \
24486 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24487 $(HOST_EXPORTS) \
d32ab992 24488 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24489 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24490 done; \
d32ab992 24491 echo "Doing clean in readline" ; \
215c351a 24492 (cd $(HOST_SUBDIR)/readline && \
295f4e42
NN
24493 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24494 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24495 "RANLIB=$${RANLIB}" \
24496 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24497 clean) \
295f4e42
NN
24498 || exit 1
24499
d32ab992 24500@endif readline
295f4e42 24501
d32ab992
PB
24502.PHONY: maybe-distclean-readline distclean-readline
24503maybe-distclean-readline:
24504@if readline
24505maybe-distclean-readline: distclean-readline
295f4e42 24506
05750653 24507distclean-readline:
f41d6665 24508 @: $(MAKE); $(unstage)
d32ab992 24509 @[ -f ./readline/Makefile ] || exit 0; \
295f4e42
NN
24510 r=`${PWD_COMMAND}`; export r; \
24511 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24512 $(HOST_EXPORTS) \
d32ab992 24513 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24514 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24515 done; \
d32ab992 24516 echo "Doing distclean in readline" ; \
215c351a 24517 (cd $(HOST_SUBDIR)/readline && \
295f4e42
NN
24518 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24519 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24520 "RANLIB=$${RANLIB}" \
24521 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24522 distclean) \
295f4e42
NN
24523 || exit 1
24524
d32ab992 24525@endif readline
295f4e42 24526
d32ab992
PB
24527.PHONY: maybe-maintainer-clean-readline maintainer-clean-readline
24528maybe-maintainer-clean-readline:
24529@if readline
24530maybe-maintainer-clean-readline: maintainer-clean-readline
295f4e42 24531
05750653 24532maintainer-clean-readline:
f41d6665 24533 @: $(MAKE); $(unstage)
d32ab992 24534 @[ -f ./readline/Makefile ] || exit 0; \
295f4e42
NN
24535 r=`${PWD_COMMAND}`; export r; \
24536 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24537 $(HOST_EXPORTS) \
d32ab992 24538 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24539 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24540 done; \
d32ab992 24541 echo "Doing maintainer-clean in readline" ; \
215c351a 24542 (cd $(HOST_SUBDIR)/readline && \
295f4e42
NN
24543 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24544 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24545 "RANLIB=$${RANLIB}" \
24546 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24547 maintainer-clean) \
295f4e42
NN
24548 || exit 1
24549
d32ab992 24550@endif readline
295f4e42
NN
24551
24552
25b42232 24553
d32ab992
PB
24554.PHONY: configure-release maybe-configure-release
24555maybe-configure-release:
3ff3adad
PB
24556@if gcc-bootstrap
24557configure-release: stage_current
24558@endif gcc-bootstrap
d32ab992
PB
24559@if release
24560maybe-configure-release: configure-release
cc11cc9b 24561configure-release:
f41d6665 24562 @: $(MAKE); $(unstage)
cc11cc9b 24563 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 24564 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
24565 test ! -f $(HOST_SUBDIR)/release/Makefile || exit 0; \
24566 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/release ; \
4fc4dd12 24567 $(HOST_EXPORTS) \
25b42232
PB
24568 echo Configuring in $(HOST_SUBDIR)/release; \
24569 cd "$(HOST_SUBDIR)/release" || exit 1; \
4977bab6 24570 case $(srcdir) in \
215c351a
PB
24571 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24572 *) topdir=`echo $(HOST_SUBDIR)/release/ | \
24573 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 24574 esac; \
215c351a
PB
24575 srcdiroption="--srcdir=$${topdir}/release"; \
24576 libsrcdir="$$s/release"; \
4977bab6 24577 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 24578 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 24579 || exit 1
d32ab992 24580@endif release
4977bab6 24581
25b42232
PB
24582
24583
ce406537
PB
24584
24585
d32ab992
PB
24586.PHONY: all-release maybe-all-release
24587maybe-all-release:
3ff3adad
PB
24588@if gcc-bootstrap
24589all-release: stage_current
24590@endif gcc-bootstrap
d32ab992 24591@if release
7e0b5752 24592TARGET-release=all
d32ab992
PB
24593maybe-all-release: all-release
24594all-release: configure-release
f41d6665 24595 @: $(MAKE); $(unstage)
8c90b13a
L
24596 @r=`${PWD_COMMAND}`; export r; \
24597 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24598 $(HOST_EXPORTS) \
215c351a
PB
24599 (cd $(HOST_SUBDIR)/release && \
24600 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-release))
d32ab992 24601@endif release
4977bab6 24602
25b42232 24603
ce406537
PB
24604
24605
d32ab992
PB
24606.PHONY: check-release maybe-check-release
24607maybe-check-release:
24608@if release
24609maybe-check-release: check-release
4977bab6 24610
d32ab992 24611check-release:
4977bab6 24612
d32ab992 24613@endif release
4977bab6 24614
d32ab992
PB
24615.PHONY: install-release maybe-install-release
24616maybe-install-release:
24617@if release
24618maybe-install-release: install-release
7e2dbcef 24619
d32ab992 24620install-release:
4977bab6 24621
d32ab992 24622@endif release
4977bab6 24623
b5422ad7 24624# Other targets (info, dvi, pdf, etc.)
295f4e42 24625
d32ab992
PB
24626.PHONY: maybe-info-release info-release
24627maybe-info-release:
24628@if release
24629maybe-info-release: info-release
295f4e42 24630
d32ab992 24631info-release: \
05750653 24632 configure-release
f41d6665 24633 @: $(MAKE); $(unstage)
d32ab992 24634 @[ -f ./release/Makefile ] || exit 0; \
8c90b13a
L
24635 r=`${PWD_COMMAND}`; export r; \
24636 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24637 $(HOST_EXPORTS) \
d32ab992 24638 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24639 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24640 done; \
d32ab992 24641 echo "Doing info in release" ; \
215c351a 24642 (cd $(HOST_SUBDIR)/release && \
295f4e42
NN
24643 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24644 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24645 "RANLIB=$${RANLIB}" \
24646 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24647 info) \
4977bab6
ZW
24648 || exit 1
24649
d32ab992 24650@endif release
295f4e42 24651
d32ab992
PB
24652.PHONY: maybe-dvi-release dvi-release
24653maybe-dvi-release:
24654@if release
24655maybe-dvi-release: dvi-release
295f4e42 24656
d32ab992 24657dvi-release: \
05750653 24658 configure-release
f41d6665 24659 @: $(MAKE); $(unstage)
d32ab992 24660 @[ -f ./release/Makefile ] || exit 0; \
295f4e42 24661 r=`${PWD_COMMAND}`; export r; \
8c90b13a 24662 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24663 $(HOST_EXPORTS) \
d32ab992 24664 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24665 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24666 done; \
d32ab992 24667 echo "Doing dvi in release" ; \
215c351a 24668 (cd $(HOST_SUBDIR)/release && \
295f4e42
NN
24669 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24670 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24671 "RANLIB=$${RANLIB}" \
24672 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24673 dvi) \
295f4e42 24674 || exit 1
4977bab6 24675
d32ab992 24676@endif release
4977bab6 24677
b5422ad7
BM
24678.PHONY: maybe-pdf-release pdf-release
24679maybe-pdf-release:
24680@if release
24681maybe-pdf-release: pdf-release
24682
24683pdf-release: \
24684 configure-release
24685 @: $(MAKE); $(unstage)
24686 @[ -f ./release/Makefile ] || exit 0; \
24687 r=`${PWD_COMMAND}`; export r; \
24688 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24689 $(HOST_EXPORTS) \
24690 for flag in $(EXTRA_HOST_FLAGS) ; do \
24691 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24692 done; \
24693 echo "Doing pdf in release" ; \
24694 (cd $(HOST_SUBDIR)/release && \
24695 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24696 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24697 "RANLIB=$${RANLIB}" \
24698 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
24699 pdf) \
24700 || exit 1
24701
24702@endif release
24703
f87a2b2e
MS
24704.PHONY: maybe-html-release html-release
24705maybe-html-release:
24706@if release
24707maybe-html-release: html-release
24708
24709html-release: \
05750653 24710 configure-release
f41d6665 24711 @: $(MAKE); $(unstage)
f87a2b2e
MS
24712 @[ -f ./release/Makefile ] || exit 0; \
24713 r=`${PWD_COMMAND}`; export r; \
24714 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
24715 $(HOST_EXPORTS) \
24716 for flag in $(EXTRA_HOST_FLAGS) ; do \
24717 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24718 done; \
24719 echo "Doing html in release" ; \
215c351a 24720 (cd $(HOST_SUBDIR)/release && \
f87a2b2e
MS
24721 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24722 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24723 "RANLIB=$${RANLIB}" \
24724 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
24725 html) \
24726 || exit 1
24727
24728@endif release
24729
d32ab992
PB
24730.PHONY: maybe-TAGS-release TAGS-release
24731maybe-TAGS-release:
24732@if release
24733maybe-TAGS-release: TAGS-release
295f4e42 24734
d32ab992 24735TAGS-release: \
05750653 24736 configure-release
f41d6665 24737 @: $(MAKE); $(unstage)
d32ab992 24738 @[ -f ./release/Makefile ] || exit 0; \
295f4e42
NN
24739 r=`${PWD_COMMAND}`; export r; \
24740 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24741 $(HOST_EXPORTS) \
d32ab992 24742 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24743 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24744 done; \
d32ab992 24745 echo "Doing TAGS in release" ; \
215c351a 24746 (cd $(HOST_SUBDIR)/release && \
295f4e42
NN
24747 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24748 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24749 "RANLIB=$${RANLIB}" \
24750 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24751 TAGS) \
295f4e42
NN
24752 || exit 1
24753
d32ab992 24754@endif release
295f4e42 24755
d32ab992
PB
24756.PHONY: maybe-install-info-release install-info-release
24757maybe-install-info-release:
24758@if release
24759maybe-install-info-release: install-info-release
295f4e42 24760
d32ab992
PB
24761install-info-release: \
24762 configure-release \
05750653 24763 info-release
f41d6665 24764 @: $(MAKE); $(unstage)
d32ab992 24765 @[ -f ./release/Makefile ] || exit 0; \
295f4e42
NN
24766 r=`${PWD_COMMAND}`; export r; \
24767 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24768 $(HOST_EXPORTS) \
d32ab992 24769 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24770 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24771 done; \
d32ab992 24772 echo "Doing install-info in release" ; \
215c351a 24773 (cd $(HOST_SUBDIR)/release && \
295f4e42
NN
24774 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24775 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24776 "RANLIB=$${RANLIB}" \
24777 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24778 install-info) \
295f4e42
NN
24779 || exit 1
24780
d32ab992 24781@endif release
295f4e42 24782
65d6e994
CD
24783.PHONY: maybe-install-html-release install-html-release
24784maybe-install-html-release:
24785@if release
24786maybe-install-html-release: install-html-release
24787
24788install-html-release: \
24789 configure-release \
24790 html-release
24791 @: $(MAKE); $(unstage)
24792 @[ -f ./release/Makefile ] || exit 0; \
24793 r=`${PWD_COMMAND}`; export r; \
24794 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
24795 $(HOST_EXPORTS) \
24796 for flag in $(EXTRA_HOST_FLAGS) ; do \
24797 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24798 done; \
24799 echo "Doing install-html in release" ; \
24800 (cd $(HOST_SUBDIR)/release && \
24801 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24802 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24803 "RANLIB=$${RANLIB}" \
24804 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
24805 install-html) \
24806 || exit 1
24807
24808@endif release
24809
d32ab992
PB
24810.PHONY: maybe-installcheck-release installcheck-release
24811maybe-installcheck-release:
24812@if release
24813maybe-installcheck-release: installcheck-release
295f4e42 24814
d32ab992 24815installcheck-release: \
05750653 24816 configure-release
f41d6665 24817 @: $(MAKE); $(unstage)
d32ab992 24818 @[ -f ./release/Makefile ] || exit 0; \
295f4e42
NN
24819 r=`${PWD_COMMAND}`; export r; \
24820 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24821 $(HOST_EXPORTS) \
d32ab992 24822 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24823 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24824 done; \
d32ab992 24825 echo "Doing installcheck in release" ; \
215c351a 24826 (cd $(HOST_SUBDIR)/release && \
295f4e42
NN
24827 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24828 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24829 "RANLIB=$${RANLIB}" \
24830 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24831 installcheck) \
295f4e42
NN
24832 || exit 1
24833
d32ab992 24834@endif release
295f4e42 24835
d32ab992
PB
24836.PHONY: maybe-mostlyclean-release mostlyclean-release
24837maybe-mostlyclean-release:
24838@if release
24839maybe-mostlyclean-release: mostlyclean-release
295f4e42 24840
05750653 24841mostlyclean-release:
f41d6665 24842 @: $(MAKE); $(unstage)
d32ab992 24843 @[ -f ./release/Makefile ] || exit 0; \
295f4e42
NN
24844 r=`${PWD_COMMAND}`; export r; \
24845 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24846 $(HOST_EXPORTS) \
d32ab992 24847 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24848 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24849 done; \
d32ab992 24850 echo "Doing mostlyclean in release" ; \
215c351a 24851 (cd $(HOST_SUBDIR)/release && \
295f4e42
NN
24852 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24853 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24854 "RANLIB=$${RANLIB}" \
24855 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24856 mostlyclean) \
295f4e42
NN
24857 || exit 1
24858
d32ab992 24859@endif release
295f4e42 24860
d32ab992
PB
24861.PHONY: maybe-clean-release clean-release
24862maybe-clean-release:
24863@if release
24864maybe-clean-release: clean-release
295f4e42 24865
05750653 24866clean-release:
f41d6665 24867 @: $(MAKE); $(unstage)
d32ab992 24868 @[ -f ./release/Makefile ] || exit 0; \
295f4e42
NN
24869 r=`${PWD_COMMAND}`; export r; \
24870 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24871 $(HOST_EXPORTS) \
d32ab992 24872 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24873 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24874 done; \
d32ab992 24875 echo "Doing clean in release" ; \
215c351a 24876 (cd $(HOST_SUBDIR)/release && \
295f4e42
NN
24877 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24878 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24879 "RANLIB=$${RANLIB}" \
24880 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24881 clean) \
295f4e42
NN
24882 || exit 1
24883
d32ab992 24884@endif release
295f4e42 24885
d32ab992
PB
24886.PHONY: maybe-distclean-release distclean-release
24887maybe-distclean-release:
24888@if release
24889maybe-distclean-release: distclean-release
295f4e42 24890
05750653 24891distclean-release:
f41d6665 24892 @: $(MAKE); $(unstage)
d32ab992 24893 @[ -f ./release/Makefile ] || exit 0; \
295f4e42
NN
24894 r=`${PWD_COMMAND}`; export r; \
24895 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24896 $(HOST_EXPORTS) \
d32ab992 24897 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24898 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24899 done; \
d32ab992 24900 echo "Doing distclean in release" ; \
215c351a 24901 (cd $(HOST_SUBDIR)/release && \
295f4e42
NN
24902 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24903 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24904 "RANLIB=$${RANLIB}" \
24905 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24906 distclean) \
295f4e42 24907 || exit 1
4977bab6 24908
d32ab992 24909@endif release
4977bab6 24910
d32ab992
PB
24911.PHONY: maybe-maintainer-clean-release maintainer-clean-release
24912maybe-maintainer-clean-release:
24913@if release
24914maybe-maintainer-clean-release: maintainer-clean-release
7e2dbcef 24915
05750653 24916maintainer-clean-release:
f41d6665 24917 @: $(MAKE); $(unstage)
d32ab992 24918 @[ -f ./release/Makefile ] || exit 0; \
295f4e42 24919 r=`${PWD_COMMAND}`; export r; \
8c90b13a 24920 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24921 $(HOST_EXPORTS) \
d32ab992 24922 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
24923 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
24924 done; \
d32ab992 24925 echo "Doing maintainer-clean in release" ; \
215c351a 24926 (cd $(HOST_SUBDIR)/release && \
295f4e42
NN
24927 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
24928 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
24929 "RANLIB=$${RANLIB}" \
24930 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 24931 maintainer-clean) \
295f4e42 24932 || exit 1
4977bab6 24933
d32ab992 24934@endif release
4977bab6 24935
295f4e42 24936
25b42232 24937
d32ab992
PB
24938.PHONY: configure-recode maybe-configure-recode
24939maybe-configure-recode:
3ff3adad
PB
24940@if gcc-bootstrap
24941configure-recode: stage_current
24942@endif gcc-bootstrap
d32ab992
PB
24943@if recode
24944maybe-configure-recode: configure-recode
cc11cc9b 24945configure-recode:
f41d6665 24946 @: $(MAKE); $(unstage)
cc11cc9b 24947 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 24948 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
24949 test ! -f $(HOST_SUBDIR)/recode/Makefile || exit 0; \
24950 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/recode ; \
4fc4dd12 24951 $(HOST_EXPORTS) \
25b42232
PB
24952 echo Configuring in $(HOST_SUBDIR)/recode; \
24953 cd "$(HOST_SUBDIR)/recode" || exit 1; \
4977bab6 24954 case $(srcdir) in \
215c351a
PB
24955 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
24956 *) topdir=`echo $(HOST_SUBDIR)/recode/ | \
24957 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 24958 esac; \
215c351a
PB
24959 srcdiroption="--srcdir=$${topdir}/recode"; \
24960 libsrcdir="$$s/recode"; \
4977bab6 24961 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 24962 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 24963 || exit 1
d32ab992 24964@endif recode
4977bab6 24965
25b42232
PB
24966
24967
ce406537
PB
24968
24969
d32ab992
PB
24970.PHONY: all-recode maybe-all-recode
24971maybe-all-recode:
3ff3adad
PB
24972@if gcc-bootstrap
24973all-recode: stage_current
24974@endif gcc-bootstrap
d32ab992 24975@if recode
7e0b5752 24976TARGET-recode=all
d32ab992
PB
24977maybe-all-recode: all-recode
24978all-recode: configure-recode
f41d6665 24979 @: $(MAKE); $(unstage)
8c90b13a
L
24980 @r=`${PWD_COMMAND}`; export r; \
24981 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24982 $(HOST_EXPORTS) \
215c351a
PB
24983 (cd $(HOST_SUBDIR)/recode && \
24984 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-recode))
d32ab992 24985@endif recode
4977bab6 24986
25b42232 24987
ce406537
PB
24988
24989
d32ab992
PB
24990.PHONY: check-recode maybe-check-recode
24991maybe-check-recode:
24992@if recode
24993maybe-check-recode: check-recode
4977bab6 24994
d32ab992 24995check-recode:
f41d6665 24996 @: $(MAKE); $(unstage)
8c90b13a
L
24997 @r=`${PWD_COMMAND}`; export r; \
24998 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 24999 $(HOST_EXPORTS) \
215c351a
PB
25000 (cd $(HOST_SUBDIR)/recode && \
25001 $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6 25002
d32ab992 25003@endif recode
4977bab6 25004
d32ab992
PB
25005.PHONY: install-recode maybe-install-recode
25006maybe-install-recode:
25007@if recode
25008maybe-install-recode: install-recode
7e2dbcef 25009
d32ab992 25010install-recode: installdirs
f41d6665 25011 @: $(MAKE); $(unstage)
8c90b13a
L
25012 @r=`${PWD_COMMAND}`; export r; \
25013 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25014 $(HOST_EXPORTS) \
215c351a 25015 (cd $(HOST_SUBDIR)/recode && \
ace9ac7b 25016 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 25017
d32ab992 25018@endif recode
295f4e42 25019
b5422ad7 25020# Other targets (info, dvi, pdf, etc.)
295f4e42 25021
d32ab992
PB
25022.PHONY: maybe-info-recode info-recode
25023maybe-info-recode:
25024@if recode
25025maybe-info-recode: info-recode
295f4e42 25026
d32ab992 25027info-recode: \
05750653 25028 configure-recode
f41d6665 25029 @: $(MAKE); $(unstage)
d32ab992 25030 @[ -f ./recode/Makefile ] || exit 0; \
295f4e42
NN
25031 r=`${PWD_COMMAND}`; export r; \
25032 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25033 $(HOST_EXPORTS) \
d32ab992 25034 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25035 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25036 done; \
d32ab992 25037 echo "Doing info in recode" ; \
215c351a 25038 (cd $(HOST_SUBDIR)/recode && \
295f4e42
NN
25039 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25040 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25041 "RANLIB=$${RANLIB}" \
25042 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25043 info) \
295f4e42
NN
25044 || exit 1
25045
d32ab992 25046@endif recode
295f4e42 25047
d32ab992
PB
25048.PHONY: maybe-dvi-recode dvi-recode
25049maybe-dvi-recode:
25050@if recode
25051maybe-dvi-recode: dvi-recode
295f4e42 25052
d32ab992 25053dvi-recode: \
05750653 25054 configure-recode
f41d6665 25055 @: $(MAKE); $(unstage)
d32ab992 25056 @[ -f ./recode/Makefile ] || exit 0; \
295f4e42
NN
25057 r=`${PWD_COMMAND}`; export r; \
25058 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25059 $(HOST_EXPORTS) \
d32ab992 25060 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25061 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25062 done; \
d32ab992 25063 echo "Doing dvi in recode" ; \
215c351a 25064 (cd $(HOST_SUBDIR)/recode && \
295f4e42
NN
25065 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25066 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25067 "RANLIB=$${RANLIB}" \
25068 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25069 dvi) \
295f4e42
NN
25070 || exit 1
25071
d32ab992 25072@endif recode
295f4e42 25073
b5422ad7
BM
25074.PHONY: maybe-pdf-recode pdf-recode
25075maybe-pdf-recode:
25076@if recode
25077maybe-pdf-recode: pdf-recode
25078
25079pdf-recode: \
25080 configure-recode
25081 @: $(MAKE); $(unstage)
25082 @[ -f ./recode/Makefile ] || exit 0; \
25083 r=`${PWD_COMMAND}`; export r; \
25084 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25085 $(HOST_EXPORTS) \
25086 for flag in $(EXTRA_HOST_FLAGS) ; do \
25087 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25088 done; \
25089 echo "Doing pdf in recode" ; \
25090 (cd $(HOST_SUBDIR)/recode && \
25091 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25092 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25093 "RANLIB=$${RANLIB}" \
25094 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
25095 pdf) \
25096 || exit 1
25097
25098@endif recode
25099
f87a2b2e
MS
25100.PHONY: maybe-html-recode html-recode
25101maybe-html-recode:
25102@if recode
25103maybe-html-recode: html-recode
25104
25105html-recode: \
05750653 25106 configure-recode
f41d6665 25107 @: $(MAKE); $(unstage)
f87a2b2e
MS
25108 @[ -f ./recode/Makefile ] || exit 0; \
25109 r=`${PWD_COMMAND}`; export r; \
25110 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
25111 $(HOST_EXPORTS) \
25112 for flag in $(EXTRA_HOST_FLAGS) ; do \
25113 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25114 done; \
25115 echo "Doing html in recode" ; \
215c351a 25116 (cd $(HOST_SUBDIR)/recode && \
f87a2b2e
MS
25117 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25118 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25119 "RANLIB=$${RANLIB}" \
25120 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
25121 html) \
25122 || exit 1
25123
25124@endif recode
25125
d32ab992
PB
25126.PHONY: maybe-TAGS-recode TAGS-recode
25127maybe-TAGS-recode:
25128@if recode
25129maybe-TAGS-recode: TAGS-recode
295f4e42 25130
d32ab992 25131TAGS-recode: \
05750653 25132 configure-recode
f41d6665 25133 @: $(MAKE); $(unstage)
d32ab992 25134 @[ -f ./recode/Makefile ] || exit 0; \
295f4e42
NN
25135 r=`${PWD_COMMAND}`; export r; \
25136 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25137 $(HOST_EXPORTS) \
d32ab992 25138 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25139 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25140 done; \
d32ab992 25141 echo "Doing TAGS in recode" ; \
215c351a 25142 (cd $(HOST_SUBDIR)/recode && \
295f4e42
NN
25143 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25144 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25145 "RANLIB=$${RANLIB}" \
25146 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25147 TAGS) \
295f4e42
NN
25148 || exit 1
25149
d32ab992 25150@endif recode
295f4e42 25151
d32ab992
PB
25152.PHONY: maybe-install-info-recode install-info-recode
25153maybe-install-info-recode:
25154@if recode
25155maybe-install-info-recode: install-info-recode
295f4e42 25156
d32ab992
PB
25157install-info-recode: \
25158 configure-recode \
05750653 25159 info-recode
f41d6665 25160 @: $(MAKE); $(unstage)
d32ab992 25161 @[ -f ./recode/Makefile ] || exit 0; \
295f4e42
NN
25162 r=`${PWD_COMMAND}`; export r; \
25163 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25164 $(HOST_EXPORTS) \
d32ab992 25165 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25166 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25167 done; \
d32ab992 25168 echo "Doing install-info in recode" ; \
215c351a 25169 (cd $(HOST_SUBDIR)/recode && \
295f4e42
NN
25170 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25171 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25172 "RANLIB=$${RANLIB}" \
25173 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25174 install-info) \
295f4e42
NN
25175 || exit 1
25176
d32ab992 25177@endif recode
295f4e42 25178
65d6e994
CD
25179.PHONY: maybe-install-html-recode install-html-recode
25180maybe-install-html-recode:
25181@if recode
25182maybe-install-html-recode: install-html-recode
25183
25184install-html-recode: \
25185 configure-recode \
25186 html-recode
25187 @: $(MAKE); $(unstage)
25188 @[ -f ./recode/Makefile ] || exit 0; \
25189 r=`${PWD_COMMAND}`; export r; \
25190 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25191 $(HOST_EXPORTS) \
25192 for flag in $(EXTRA_HOST_FLAGS) ; do \
25193 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25194 done; \
25195 echo "Doing install-html in recode" ; \
25196 (cd $(HOST_SUBDIR)/recode && \
25197 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25198 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25199 "RANLIB=$${RANLIB}" \
25200 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
25201 install-html) \
25202 || exit 1
25203
25204@endif recode
25205
d32ab992
PB
25206.PHONY: maybe-installcheck-recode installcheck-recode
25207maybe-installcheck-recode:
25208@if recode
25209maybe-installcheck-recode: installcheck-recode
295f4e42 25210
d32ab992 25211installcheck-recode: \
05750653 25212 configure-recode
f41d6665 25213 @: $(MAKE); $(unstage)
d32ab992 25214 @[ -f ./recode/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 installcheck in recode" ; \
215c351a 25222 (cd $(HOST_SUBDIR)/recode && \
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 installcheck) \
295f4e42
NN
25228 || exit 1
25229
d32ab992 25230@endif recode
295f4e42 25231
d32ab992
PB
25232.PHONY: maybe-mostlyclean-recode mostlyclean-recode
25233maybe-mostlyclean-recode:
25234@if recode
25235maybe-mostlyclean-recode: mostlyclean-recode
295f4e42 25236
05750653 25237mostlyclean-recode:
f41d6665 25238 @: $(MAKE); $(unstage)
d32ab992 25239 @[ -f ./recode/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 mostlyclean in recode" ; \
215c351a 25247 (cd $(HOST_SUBDIR)/recode && \
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 mostlyclean) \
295f4e42
NN
25253 || exit 1
25254
d32ab992 25255@endif recode
295f4e42 25256
d32ab992
PB
25257.PHONY: maybe-clean-recode clean-recode
25258maybe-clean-recode:
25259@if recode
25260maybe-clean-recode: clean-recode
295f4e42 25261
05750653 25262clean-recode:
f41d6665 25263 @: $(MAKE); $(unstage)
d32ab992 25264 @[ -f ./recode/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 clean in recode" ; \
215c351a 25272 (cd $(HOST_SUBDIR)/recode && \
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 clean) \
295f4e42
NN
25278 || exit 1
25279
d32ab992 25280@endif recode
295f4e42 25281
d32ab992
PB
25282.PHONY: maybe-distclean-recode distclean-recode
25283maybe-distclean-recode:
25284@if recode
25285maybe-distclean-recode: distclean-recode
295f4e42 25286
05750653 25287distclean-recode:
f41d6665 25288 @: $(MAKE); $(unstage)
d32ab992 25289 @[ -f ./recode/Makefile ] || exit 0; \
295f4e42
NN
25290 r=`${PWD_COMMAND}`; export r; \
25291 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25292 $(HOST_EXPORTS) \
d32ab992 25293 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25294 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25295 done; \
d32ab992 25296 echo "Doing distclean in recode" ; \
215c351a 25297 (cd $(HOST_SUBDIR)/recode && \
295f4e42
NN
25298 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25299 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25300 "RANLIB=$${RANLIB}" \
25301 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25302 distclean) \
295f4e42
NN
25303 || exit 1
25304
d32ab992 25305@endif recode
295f4e42 25306
d32ab992
PB
25307.PHONY: maybe-maintainer-clean-recode maintainer-clean-recode
25308maybe-maintainer-clean-recode:
25309@if recode
25310maybe-maintainer-clean-recode: maintainer-clean-recode
295f4e42 25311
05750653 25312maintainer-clean-recode:
f41d6665 25313 @: $(MAKE); $(unstage)
d32ab992 25314 @[ -f ./recode/Makefile ] || exit 0; \
295f4e42
NN
25315 r=`${PWD_COMMAND}`; export r; \
25316 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25317 $(HOST_EXPORTS) \
d32ab992 25318 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25319 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25320 done; \
d32ab992 25321 echo "Doing maintainer-clean in recode" ; \
215c351a 25322 (cd $(HOST_SUBDIR)/recode && \
295f4e42
NN
25323 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25324 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25325 "RANLIB=$${RANLIB}" \
25326 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25327 maintainer-clean) \
295f4e42 25328 || exit 1
4977bab6 25329
d32ab992 25330@endif recode
4977bab6 25331
295f4e42 25332
25b42232 25333
d32ab992
PB
25334.PHONY: configure-sed maybe-configure-sed
25335maybe-configure-sed:
3ff3adad
PB
25336@if gcc-bootstrap
25337configure-sed: stage_current
25338@endif gcc-bootstrap
d32ab992
PB
25339@if sed
25340maybe-configure-sed: configure-sed
cc11cc9b 25341configure-sed:
f41d6665 25342 @: $(MAKE); $(unstage)
cc11cc9b 25343 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 25344 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
25345 test ! -f $(HOST_SUBDIR)/sed/Makefile || exit 0; \
25346 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/sed ; \
4fc4dd12 25347 $(HOST_EXPORTS) \
25b42232
PB
25348 echo Configuring in $(HOST_SUBDIR)/sed; \
25349 cd "$(HOST_SUBDIR)/sed" || exit 1; \
4977bab6 25350 case $(srcdir) in \
215c351a
PB
25351 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
25352 *) topdir=`echo $(HOST_SUBDIR)/sed/ | \
25353 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 25354 esac; \
215c351a
PB
25355 srcdiroption="--srcdir=$${topdir}/sed"; \
25356 libsrcdir="$$s/sed"; \
4977bab6 25357 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 25358 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 25359 || exit 1
d32ab992 25360@endif sed
4977bab6 25361
25b42232
PB
25362
25363
ce406537
PB
25364
25365
d32ab992
PB
25366.PHONY: all-sed maybe-all-sed
25367maybe-all-sed:
3ff3adad
PB
25368@if gcc-bootstrap
25369all-sed: stage_current
25370@endif gcc-bootstrap
d32ab992 25371@if sed
7e0b5752 25372TARGET-sed=all
d32ab992
PB
25373maybe-all-sed: all-sed
25374all-sed: configure-sed
f41d6665 25375 @: $(MAKE); $(unstage)
8c90b13a
L
25376 @r=`${PWD_COMMAND}`; export r; \
25377 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25378 $(HOST_EXPORTS) \
215c351a
PB
25379 (cd $(HOST_SUBDIR)/sed && \
25380 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-sed))
d32ab992 25381@endif sed
4977bab6 25382
25b42232 25383
ce406537
PB
25384
25385
d32ab992
PB
25386.PHONY: check-sed maybe-check-sed
25387maybe-check-sed:
25388@if sed
25389maybe-check-sed: check-sed
4977bab6 25390
d32ab992 25391check-sed:
f41d6665 25392 @: $(MAKE); $(unstage)
8c90b13a
L
25393 @r=`${PWD_COMMAND}`; export r; \
25394 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25395 $(HOST_EXPORTS) \
215c351a
PB
25396 (cd $(HOST_SUBDIR)/sed && \
25397 $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6 25398
d32ab992 25399@endif sed
4977bab6 25400
d32ab992
PB
25401.PHONY: install-sed maybe-install-sed
25402maybe-install-sed:
25403@if sed
25404maybe-install-sed: install-sed
295f4e42 25405
d32ab992 25406install-sed: installdirs
f41d6665 25407 @: $(MAKE); $(unstage)
295f4e42
NN
25408 @r=`${PWD_COMMAND}`; export r; \
25409 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25410 $(HOST_EXPORTS) \
215c351a 25411 (cd $(HOST_SUBDIR)/sed && \
ace9ac7b 25412 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 25413
d32ab992 25414@endif sed
295f4e42 25415
b5422ad7 25416# Other targets (info, dvi, pdf, etc.)
295f4e42 25417
d32ab992
PB
25418.PHONY: maybe-info-sed info-sed
25419maybe-info-sed:
25420@if sed
25421maybe-info-sed: info-sed
295f4e42 25422
d32ab992 25423info-sed: \
05750653 25424 configure-sed
f41d6665 25425 @: $(MAKE); $(unstage)
d32ab992 25426 @[ -f ./sed/Makefile ] || exit 0; \
295f4e42
NN
25427 r=`${PWD_COMMAND}`; export r; \
25428 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25429 $(HOST_EXPORTS) \
d32ab992 25430 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25431 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25432 done; \
f87a2b2e 25433 echo "Doing info in sed" ; \
215c351a 25434 (cd $(HOST_SUBDIR)/sed && \
f87a2b2e
MS
25435 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25436 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25437 "RANLIB=$${RANLIB}" \
25438 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
25439 info) \
25440 || exit 1
25441
25442@endif sed
25443
25444.PHONY: maybe-dvi-sed dvi-sed
25445maybe-dvi-sed:
25446@if sed
25447maybe-dvi-sed: dvi-sed
25448
25449dvi-sed: \
05750653 25450 configure-sed
f41d6665 25451 @: $(MAKE); $(unstage)
f87a2b2e
MS
25452 @[ -f ./sed/Makefile ] || exit 0; \
25453 r=`${PWD_COMMAND}`; export r; \
25454 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
25455 $(HOST_EXPORTS) \
25456 for flag in $(EXTRA_HOST_FLAGS) ; do \
25457 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25458 done; \
25459 echo "Doing dvi in sed" ; \
215c351a 25460 (cd $(HOST_SUBDIR)/sed && \
295f4e42
NN
25461 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25462 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25463 "RANLIB=$${RANLIB}" \
25464 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
f87a2b2e 25465 dvi) \
295f4e42
NN
25466 || exit 1
25467
d32ab992 25468@endif sed
295f4e42 25469
b5422ad7
BM
25470.PHONY: maybe-pdf-sed pdf-sed
25471maybe-pdf-sed:
25472@if sed
25473maybe-pdf-sed: pdf-sed
25474
25475pdf-sed: \
25476 configure-sed
25477 @: $(MAKE); $(unstage)
25478 @[ -f ./sed/Makefile ] || exit 0; \
25479 r=`${PWD_COMMAND}`; export r; \
25480 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25481 $(HOST_EXPORTS) \
25482 for flag in $(EXTRA_HOST_FLAGS) ; do \
25483 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25484 done; \
25485 echo "Doing pdf in sed" ; \
25486 (cd $(HOST_SUBDIR)/sed && \
25487 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25488 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25489 "RANLIB=$${RANLIB}" \
25490 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
25491 pdf) \
25492 || exit 1
25493
25494@endif sed
25495
f87a2b2e
MS
25496.PHONY: maybe-html-sed html-sed
25497maybe-html-sed:
d32ab992 25498@if sed
f87a2b2e 25499maybe-html-sed: html-sed
295f4e42 25500
f87a2b2e 25501html-sed: \
05750653 25502 configure-sed
f41d6665 25503 @: $(MAKE); $(unstage)
d32ab992 25504 @[ -f ./sed/Makefile ] || exit 0; \
295f4e42
NN
25505 r=`${PWD_COMMAND}`; export r; \
25506 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25507 $(HOST_EXPORTS) \
d32ab992 25508 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25509 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25510 done; \
f87a2b2e 25511 echo "Doing html in sed" ; \
215c351a 25512 (cd $(HOST_SUBDIR)/sed && \
295f4e42
NN
25513 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25514 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25515 "RANLIB=$${RANLIB}" \
25516 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
f87a2b2e 25517 html) \
295f4e42
NN
25518 || exit 1
25519
d32ab992 25520@endif sed
295f4e42 25521
d32ab992
PB
25522.PHONY: maybe-TAGS-sed TAGS-sed
25523maybe-TAGS-sed:
25524@if sed
25525maybe-TAGS-sed: TAGS-sed
295f4e42 25526
d32ab992 25527TAGS-sed: \
05750653 25528 configure-sed
f41d6665 25529 @: $(MAKE); $(unstage)
d32ab992 25530 @[ -f ./sed/Makefile ] || exit 0; \
295f4e42
NN
25531 r=`${PWD_COMMAND}`; export r; \
25532 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25533 $(HOST_EXPORTS) \
d32ab992 25534 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25535 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25536 done; \
d32ab992 25537 echo "Doing TAGS in sed" ; \
215c351a 25538 (cd $(HOST_SUBDIR)/sed && \
295f4e42
NN
25539 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25540 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25541 "RANLIB=$${RANLIB}" \
25542 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25543 TAGS) \
295f4e42
NN
25544 || exit 1
25545
d32ab992 25546@endif sed
295f4e42 25547
d32ab992
PB
25548.PHONY: maybe-install-info-sed install-info-sed
25549maybe-install-info-sed:
25550@if sed
25551maybe-install-info-sed: install-info-sed
295f4e42 25552
d32ab992
PB
25553install-info-sed: \
25554 configure-sed \
05750653 25555 info-sed
f41d6665 25556 @: $(MAKE); $(unstage)
d32ab992 25557 @[ -f ./sed/Makefile ] || exit 0; \
295f4e42
NN
25558 r=`${PWD_COMMAND}`; export r; \
25559 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25560 $(HOST_EXPORTS) \
d32ab992 25561 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25562 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25563 done; \
d32ab992 25564 echo "Doing install-info in sed" ; \
215c351a 25565 (cd $(HOST_SUBDIR)/sed && \
295f4e42
NN
25566 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25567 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25568 "RANLIB=$${RANLIB}" \
25569 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25570 install-info) \
295f4e42
NN
25571 || exit 1
25572
d32ab992 25573@endif sed
295f4e42 25574
65d6e994
CD
25575.PHONY: maybe-install-html-sed install-html-sed
25576maybe-install-html-sed:
25577@if sed
25578maybe-install-html-sed: install-html-sed
25579
25580install-html-sed: \
25581 configure-sed \
25582 html-sed
25583 @: $(MAKE); $(unstage)
25584 @[ -f ./sed/Makefile ] || exit 0; \
25585 r=`${PWD_COMMAND}`; export r; \
25586 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25587 $(HOST_EXPORTS) \
25588 for flag in $(EXTRA_HOST_FLAGS) ; do \
25589 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25590 done; \
25591 echo "Doing install-html in sed" ; \
25592 (cd $(HOST_SUBDIR)/sed && \
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}" \
25597 install-html) \
25598 || exit 1
25599
25600@endif sed
25601
d32ab992
PB
25602.PHONY: maybe-installcheck-sed installcheck-sed
25603maybe-installcheck-sed:
25604@if sed
25605maybe-installcheck-sed: installcheck-sed
295f4e42 25606
d32ab992 25607installcheck-sed: \
05750653 25608 configure-sed
f41d6665 25609 @: $(MAKE); $(unstage)
d32ab992 25610 @[ -f ./sed/Makefile ] || exit 0; \
295f4e42
NN
25611 r=`${PWD_COMMAND}`; export r; \
25612 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25613 $(HOST_EXPORTS) \
d32ab992 25614 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25615 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25616 done; \
d32ab992 25617 echo "Doing installcheck in sed" ; \
215c351a 25618 (cd $(HOST_SUBDIR)/sed && \
295f4e42
NN
25619 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25620 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25621 "RANLIB=$${RANLIB}" \
25622 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25623 installcheck) \
295f4e42
NN
25624 || exit 1
25625
d32ab992 25626@endif sed
295f4e42 25627
d32ab992
PB
25628.PHONY: maybe-mostlyclean-sed mostlyclean-sed
25629maybe-mostlyclean-sed:
25630@if sed
25631maybe-mostlyclean-sed: mostlyclean-sed
295f4e42 25632
05750653 25633mostlyclean-sed:
f41d6665 25634 @: $(MAKE); $(unstage)
d32ab992 25635 @[ -f ./sed/Makefile ] || exit 0; \
295f4e42
NN
25636 r=`${PWD_COMMAND}`; export r; \
25637 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25638 $(HOST_EXPORTS) \
d32ab992 25639 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25640 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25641 done; \
d32ab992 25642 echo "Doing mostlyclean in sed" ; \
215c351a 25643 (cd $(HOST_SUBDIR)/sed && \
295f4e42
NN
25644 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25645 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25646 "RANLIB=$${RANLIB}" \
25647 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25648 mostlyclean) \
295f4e42
NN
25649 || exit 1
25650
d32ab992 25651@endif sed
295f4e42 25652
d32ab992
PB
25653.PHONY: maybe-clean-sed clean-sed
25654maybe-clean-sed:
25655@if sed
25656maybe-clean-sed: clean-sed
295f4e42 25657
05750653 25658clean-sed:
f41d6665 25659 @: $(MAKE); $(unstage)
d32ab992 25660 @[ -f ./sed/Makefile ] || exit 0; \
295f4e42
NN
25661 r=`${PWD_COMMAND}`; export r; \
25662 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25663 $(HOST_EXPORTS) \
d32ab992 25664 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25665 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25666 done; \
d32ab992 25667 echo "Doing clean in sed" ; \
215c351a 25668 (cd $(HOST_SUBDIR)/sed && \
295f4e42
NN
25669 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25670 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25671 "RANLIB=$${RANLIB}" \
25672 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25673 clean) \
295f4e42
NN
25674 || exit 1
25675
d32ab992 25676@endif sed
295f4e42 25677
d32ab992
PB
25678.PHONY: maybe-distclean-sed distclean-sed
25679maybe-distclean-sed:
25680@if sed
25681maybe-distclean-sed: distclean-sed
295f4e42 25682
05750653 25683distclean-sed:
f41d6665 25684 @: $(MAKE); $(unstage)
d32ab992 25685 @[ -f ./sed/Makefile ] || exit 0; \
295f4e42
NN
25686 r=`${PWD_COMMAND}`; export r; \
25687 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25688 $(HOST_EXPORTS) \
d32ab992 25689 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25690 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25691 done; \
d32ab992 25692 echo "Doing distclean in sed" ; \
215c351a 25693 (cd $(HOST_SUBDIR)/sed && \
295f4e42
NN
25694 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25695 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25696 "RANLIB=$${RANLIB}" \
25697 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25698 distclean) \
295f4e42
NN
25699 || exit 1
25700
d32ab992 25701@endif sed
295f4e42 25702
d32ab992
PB
25703.PHONY: maybe-maintainer-clean-sed maintainer-clean-sed
25704maybe-maintainer-clean-sed:
25705@if sed
25706maybe-maintainer-clean-sed: maintainer-clean-sed
295f4e42 25707
05750653 25708maintainer-clean-sed:
f41d6665 25709 @: $(MAKE); $(unstage)
d32ab992 25710 @[ -f ./sed/Makefile ] || exit 0; \
295f4e42
NN
25711 r=`${PWD_COMMAND}`; export r; \
25712 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25713 $(HOST_EXPORTS) \
d32ab992 25714 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25715 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25716 done; \
d32ab992 25717 echo "Doing maintainer-clean in sed" ; \
215c351a 25718 (cd $(HOST_SUBDIR)/sed && \
295f4e42
NN
25719 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25720 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25721 "RANLIB=$${RANLIB}" \
25722 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25723 maintainer-clean) \
295f4e42 25724 || exit 1
7e2dbcef 25725
d32ab992 25726@endif sed
4977bab6
ZW
25727
25728
25b42232 25729
d32ab992
PB
25730.PHONY: configure-send-pr maybe-configure-send-pr
25731maybe-configure-send-pr:
3ff3adad
PB
25732@if gcc-bootstrap
25733configure-send-pr: stage_current
25734@endif gcc-bootstrap
d32ab992
PB
25735@if send-pr
25736maybe-configure-send-pr: configure-send-pr
cc11cc9b 25737configure-send-pr:
f41d6665 25738 @: $(MAKE); $(unstage)
cc11cc9b 25739 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 25740 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
25741 test ! -f $(HOST_SUBDIR)/send-pr/Makefile || exit 0; \
25742 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/send-pr ; \
4fc4dd12 25743 $(HOST_EXPORTS) \
25b42232
PB
25744 echo Configuring in $(HOST_SUBDIR)/send-pr; \
25745 cd "$(HOST_SUBDIR)/send-pr" || exit 1; \
4977bab6 25746 case $(srcdir) in \
215c351a
PB
25747 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
25748 *) topdir=`echo $(HOST_SUBDIR)/send-pr/ | \
25749 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 25750 esac; \
215c351a
PB
25751 srcdiroption="--srcdir=$${topdir}/send-pr"; \
25752 libsrcdir="$$s/send-pr"; \
4977bab6 25753 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 25754 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 25755 || exit 1
d32ab992 25756@endif send-pr
4977bab6 25757
25b42232
PB
25758
25759
ce406537
PB
25760
25761
d32ab992
PB
25762.PHONY: all-send-pr maybe-all-send-pr
25763maybe-all-send-pr:
3ff3adad
PB
25764@if gcc-bootstrap
25765all-send-pr: stage_current
25766@endif gcc-bootstrap
d32ab992 25767@if send-pr
7e0b5752 25768TARGET-send-pr=all
d32ab992
PB
25769maybe-all-send-pr: all-send-pr
25770all-send-pr: configure-send-pr
f41d6665 25771 @: $(MAKE); $(unstage)
8c90b13a
L
25772 @r=`${PWD_COMMAND}`; export r; \
25773 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25774 $(HOST_EXPORTS) \
215c351a
PB
25775 (cd $(HOST_SUBDIR)/send-pr && \
25776 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-send-pr))
d32ab992 25777@endif send-pr
4977bab6 25778
25b42232 25779
ce406537
PB
25780
25781
d32ab992
PB
25782.PHONY: check-send-pr maybe-check-send-pr
25783maybe-check-send-pr:
25784@if send-pr
25785maybe-check-send-pr: check-send-pr
4977bab6 25786
d32ab992 25787check-send-pr:
f41d6665 25788 @: $(MAKE); $(unstage)
8c90b13a
L
25789 @r=`${PWD_COMMAND}`; export r; \
25790 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25791 $(HOST_EXPORTS) \
215c351a
PB
25792 (cd $(HOST_SUBDIR)/send-pr && \
25793 $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6 25794
d32ab992 25795@endif send-pr
4977bab6 25796
d32ab992
PB
25797.PHONY: install-send-pr maybe-install-send-pr
25798maybe-install-send-pr:
25799@if send-pr
25800maybe-install-send-pr: install-send-pr
7e2dbcef 25801
d32ab992 25802install-send-pr: installdirs
f41d6665 25803 @: $(MAKE); $(unstage)
8c90b13a
L
25804 @r=`${PWD_COMMAND}`; export r; \
25805 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25806 $(HOST_EXPORTS) \
215c351a 25807 (cd $(HOST_SUBDIR)/send-pr && \
ace9ac7b 25808 $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6 25809
d32ab992 25810@endif send-pr
4977bab6 25811
b5422ad7 25812# Other targets (info, dvi, pdf, etc.)
295f4e42 25813
d32ab992
PB
25814.PHONY: maybe-info-send-pr info-send-pr
25815maybe-info-send-pr:
25816@if send-pr
25817maybe-info-send-pr: info-send-pr
295f4e42 25818
d32ab992 25819info-send-pr: \
05750653 25820 configure-send-pr
f41d6665 25821 @: $(MAKE); $(unstage)
d32ab992 25822 @[ -f ./send-pr/Makefile ] || exit 0; \
295f4e42
NN
25823 r=`${PWD_COMMAND}`; export r; \
25824 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25825 $(HOST_EXPORTS) \
d32ab992 25826 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25827 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25828 done; \
d32ab992 25829 echo "Doing info in send-pr" ; \
215c351a 25830 (cd $(HOST_SUBDIR)/send-pr && \
295f4e42
NN
25831 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25832 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25833 "RANLIB=$${RANLIB}" \
25834 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25835 info) \
295f4e42
NN
25836 || exit 1
25837
d32ab992 25838@endif send-pr
295f4e42 25839
d32ab992
PB
25840.PHONY: maybe-dvi-send-pr dvi-send-pr
25841maybe-dvi-send-pr:
25842@if send-pr
25843maybe-dvi-send-pr: dvi-send-pr
295f4e42 25844
d32ab992 25845dvi-send-pr: \
05750653 25846 configure-send-pr
f41d6665 25847 @: $(MAKE); $(unstage)
d32ab992 25848 @[ -f ./send-pr/Makefile ] || exit 0; \
295f4e42
NN
25849 r=`${PWD_COMMAND}`; export r; \
25850 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25851 $(HOST_EXPORTS) \
d32ab992 25852 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25853 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25854 done; \
d32ab992 25855 echo "Doing dvi in send-pr" ; \
215c351a 25856 (cd $(HOST_SUBDIR)/send-pr && \
295f4e42
NN
25857 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25858 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25859 "RANLIB=$${RANLIB}" \
25860 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25861 dvi) \
295f4e42
NN
25862 || exit 1
25863
d32ab992 25864@endif send-pr
295f4e42 25865
b5422ad7
BM
25866.PHONY: maybe-pdf-send-pr pdf-send-pr
25867maybe-pdf-send-pr:
25868@if send-pr
25869maybe-pdf-send-pr: pdf-send-pr
25870
25871pdf-send-pr: \
25872 configure-send-pr
25873 @: $(MAKE); $(unstage)
25874 @[ -f ./send-pr/Makefile ] || exit 0; \
25875 r=`${PWD_COMMAND}`; export r; \
25876 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25877 $(HOST_EXPORTS) \
25878 for flag in $(EXTRA_HOST_FLAGS) ; do \
25879 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25880 done; \
25881 echo "Doing pdf in send-pr" ; \
25882 (cd $(HOST_SUBDIR)/send-pr && \
25883 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25884 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25885 "RANLIB=$${RANLIB}" \
25886 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
25887 pdf) \
25888 || exit 1
25889
25890@endif send-pr
25891
f87a2b2e
MS
25892.PHONY: maybe-html-send-pr html-send-pr
25893maybe-html-send-pr:
25894@if send-pr
25895maybe-html-send-pr: html-send-pr
25896
25897html-send-pr: \
05750653 25898 configure-send-pr
f41d6665 25899 @: $(MAKE); $(unstage)
f87a2b2e
MS
25900 @[ -f ./send-pr/Makefile ] || exit 0; \
25901 r=`${PWD_COMMAND}`; export r; \
25902 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
25903 $(HOST_EXPORTS) \
25904 for flag in $(EXTRA_HOST_FLAGS) ; do \
25905 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25906 done; \
25907 echo "Doing html in send-pr" ; \
215c351a 25908 (cd $(HOST_SUBDIR)/send-pr && \
f87a2b2e
MS
25909 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25910 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25911 "RANLIB=$${RANLIB}" \
25912 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
25913 html) \
25914 || exit 1
25915
25916@endif send-pr
25917
d32ab992
PB
25918.PHONY: maybe-TAGS-send-pr TAGS-send-pr
25919maybe-TAGS-send-pr:
25920@if send-pr
25921maybe-TAGS-send-pr: TAGS-send-pr
295f4e42 25922
d32ab992 25923TAGS-send-pr: \
05750653 25924 configure-send-pr
f41d6665 25925 @: $(MAKE); $(unstage)
d32ab992 25926 @[ -f ./send-pr/Makefile ] || exit 0; \
295f4e42
NN
25927 r=`${PWD_COMMAND}`; export r; \
25928 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25929 $(HOST_EXPORTS) \
d32ab992 25930 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25931 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25932 done; \
d32ab992 25933 echo "Doing TAGS in send-pr" ; \
215c351a 25934 (cd $(HOST_SUBDIR)/send-pr && \
295f4e42
NN
25935 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25936 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25937 "RANLIB=$${RANLIB}" \
25938 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25939 TAGS) \
295f4e42
NN
25940 || exit 1
25941
d32ab992 25942@endif send-pr
295f4e42 25943
d32ab992
PB
25944.PHONY: maybe-install-info-send-pr install-info-send-pr
25945maybe-install-info-send-pr:
25946@if send-pr
25947maybe-install-info-send-pr: install-info-send-pr
295f4e42 25948
d32ab992
PB
25949install-info-send-pr: \
25950 configure-send-pr \
05750653 25951 info-send-pr
f41d6665 25952 @: $(MAKE); $(unstage)
d32ab992 25953 @[ -f ./send-pr/Makefile ] || exit 0; \
295f4e42
NN
25954 r=`${PWD_COMMAND}`; export r; \
25955 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 25956 $(HOST_EXPORTS) \
d32ab992 25957 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
25958 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25959 done; \
d32ab992 25960 echo "Doing install-info in send-pr" ; \
215c351a 25961 (cd $(HOST_SUBDIR)/send-pr && \
295f4e42
NN
25962 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25963 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25964 "RANLIB=$${RANLIB}" \
25965 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 25966 install-info) \
295f4e42
NN
25967 || exit 1
25968
d32ab992 25969@endif send-pr
295f4e42 25970
65d6e994
CD
25971.PHONY: maybe-install-html-send-pr install-html-send-pr
25972maybe-install-html-send-pr:
25973@if send-pr
25974maybe-install-html-send-pr: install-html-send-pr
25975
25976install-html-send-pr: \
25977 configure-send-pr \
25978 html-send-pr
25979 @: $(MAKE); $(unstage)
25980 @[ -f ./send-pr/Makefile ] || exit 0; \
25981 r=`${PWD_COMMAND}`; export r; \
25982 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
25983 $(HOST_EXPORTS) \
25984 for flag in $(EXTRA_HOST_FLAGS) ; do \
25985 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
25986 done; \
25987 echo "Doing install-html in send-pr" ; \
25988 (cd $(HOST_SUBDIR)/send-pr && \
25989 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
25990 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
25991 "RANLIB=$${RANLIB}" \
25992 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
25993 install-html) \
25994 || exit 1
25995
25996@endif send-pr
25997
d32ab992
PB
25998.PHONY: maybe-installcheck-send-pr installcheck-send-pr
25999maybe-installcheck-send-pr:
26000@if send-pr
26001maybe-installcheck-send-pr: installcheck-send-pr
295f4e42 26002
d32ab992 26003installcheck-send-pr: \
05750653 26004 configure-send-pr
f41d6665 26005 @: $(MAKE); $(unstage)
d32ab992 26006 @[ -f ./send-pr/Makefile ] || exit 0; \
295f4e42
NN
26007 r=`${PWD_COMMAND}`; export r; \
26008 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26009 $(HOST_EXPORTS) \
d32ab992 26010 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26011 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26012 done; \
d32ab992 26013 echo "Doing installcheck in send-pr" ; \
215c351a 26014 (cd $(HOST_SUBDIR)/send-pr && \
295f4e42
NN
26015 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26016 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26017 "RANLIB=$${RANLIB}" \
26018 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26019 installcheck) \
295f4e42
NN
26020 || exit 1
26021
d32ab992 26022@endif send-pr
295f4e42 26023
d32ab992
PB
26024.PHONY: maybe-mostlyclean-send-pr mostlyclean-send-pr
26025maybe-mostlyclean-send-pr:
26026@if send-pr
26027maybe-mostlyclean-send-pr: mostlyclean-send-pr
295f4e42 26028
05750653 26029mostlyclean-send-pr:
f41d6665 26030 @: $(MAKE); $(unstage)
d32ab992 26031 @[ -f ./send-pr/Makefile ] || exit 0; \
295f4e42
NN
26032 r=`${PWD_COMMAND}`; export r; \
26033 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26034 $(HOST_EXPORTS) \
d32ab992 26035 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26036 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26037 done; \
d32ab992 26038 echo "Doing mostlyclean in send-pr" ; \
215c351a 26039 (cd $(HOST_SUBDIR)/send-pr && \
295f4e42
NN
26040 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26041 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26042 "RANLIB=$${RANLIB}" \
26043 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26044 mostlyclean) \
295f4e42
NN
26045 || exit 1
26046
d32ab992 26047@endif send-pr
295f4e42 26048
d32ab992
PB
26049.PHONY: maybe-clean-send-pr clean-send-pr
26050maybe-clean-send-pr:
26051@if send-pr
26052maybe-clean-send-pr: clean-send-pr
295f4e42 26053
05750653 26054clean-send-pr:
f41d6665 26055 @: $(MAKE); $(unstage)
d32ab992 26056 @[ -f ./send-pr/Makefile ] || exit 0; \
295f4e42
NN
26057 r=`${PWD_COMMAND}`; export r; \
26058 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26059 $(HOST_EXPORTS) \
d32ab992 26060 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26061 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26062 done; \
d32ab992 26063 echo "Doing clean in send-pr" ; \
215c351a 26064 (cd $(HOST_SUBDIR)/send-pr && \
295f4e42
NN
26065 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26066 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26067 "RANLIB=$${RANLIB}" \
26068 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26069 clean) \
295f4e42
NN
26070 || exit 1
26071
d32ab992 26072@endif send-pr
295f4e42 26073
d32ab992
PB
26074.PHONY: maybe-distclean-send-pr distclean-send-pr
26075maybe-distclean-send-pr:
26076@if send-pr
26077maybe-distclean-send-pr: distclean-send-pr
295f4e42 26078
05750653 26079distclean-send-pr:
f41d6665 26080 @: $(MAKE); $(unstage)
d32ab992 26081 @[ -f ./send-pr/Makefile ] || exit 0; \
295f4e42
NN
26082 r=`${PWD_COMMAND}`; export r; \
26083 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26084 $(HOST_EXPORTS) \
d32ab992 26085 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26086 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26087 done; \
d32ab992 26088 echo "Doing distclean in send-pr" ; \
215c351a 26089 (cd $(HOST_SUBDIR)/send-pr && \
295f4e42
NN
26090 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26091 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26092 "RANLIB=$${RANLIB}" \
26093 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26094 distclean) \
295f4e42
NN
26095 || exit 1
26096
d32ab992 26097@endif send-pr
295f4e42 26098
d32ab992
PB
26099.PHONY: maybe-maintainer-clean-send-pr maintainer-clean-send-pr
26100maybe-maintainer-clean-send-pr:
26101@if send-pr
26102maybe-maintainer-clean-send-pr: maintainer-clean-send-pr
295f4e42 26103
05750653 26104maintainer-clean-send-pr:
f41d6665 26105 @: $(MAKE); $(unstage)
d32ab992 26106 @[ -f ./send-pr/Makefile ] || exit 0; \
295f4e42
NN
26107 r=`${PWD_COMMAND}`; export r; \
26108 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26109 $(HOST_EXPORTS) \
d32ab992 26110 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26111 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26112 done; \
d32ab992 26113 echo "Doing maintainer-clean in send-pr" ; \
215c351a 26114 (cd $(HOST_SUBDIR)/send-pr && \
295f4e42
NN
26115 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26116 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26117 "RANLIB=$${RANLIB}" \
26118 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26119 maintainer-clean) \
295f4e42
NN
26120 || exit 1
26121
d32ab992 26122@endif send-pr
295f4e42
NN
26123
26124
25b42232 26125
d32ab992
PB
26126.PHONY: configure-shellutils maybe-configure-shellutils
26127maybe-configure-shellutils:
3ff3adad
PB
26128@if gcc-bootstrap
26129configure-shellutils: stage_current
26130@endif gcc-bootstrap
d32ab992
PB
26131@if shellutils
26132maybe-configure-shellutils: configure-shellutils
cc11cc9b 26133configure-shellutils:
f41d6665 26134 @: $(MAKE); $(unstage)
cc11cc9b 26135 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 26136 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
26137 test ! -f $(HOST_SUBDIR)/shellutils/Makefile || exit 0; \
26138 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/shellutils ; \
4fc4dd12 26139 $(HOST_EXPORTS) \
25b42232
PB
26140 echo Configuring in $(HOST_SUBDIR)/shellutils; \
26141 cd "$(HOST_SUBDIR)/shellutils" || exit 1; \
4977bab6 26142 case $(srcdir) in \
215c351a
PB
26143 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
26144 *) topdir=`echo $(HOST_SUBDIR)/shellutils/ | \
26145 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 26146 esac; \
215c351a
PB
26147 srcdiroption="--srcdir=$${topdir}/shellutils"; \
26148 libsrcdir="$$s/shellutils"; \
4977bab6 26149 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 26150 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 26151 || exit 1
d32ab992 26152@endif shellutils
4977bab6 26153
25b42232
PB
26154
26155
ce406537
PB
26156
26157
d32ab992
PB
26158.PHONY: all-shellutils maybe-all-shellutils
26159maybe-all-shellutils:
3ff3adad
PB
26160@if gcc-bootstrap
26161all-shellutils: stage_current
26162@endif gcc-bootstrap
d32ab992 26163@if shellutils
7e0b5752 26164TARGET-shellutils=all
d32ab992
PB
26165maybe-all-shellutils: all-shellutils
26166all-shellutils: configure-shellutils
f41d6665 26167 @: $(MAKE); $(unstage)
8c90b13a
L
26168 @r=`${PWD_COMMAND}`; export r; \
26169 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26170 $(HOST_EXPORTS) \
215c351a
PB
26171 (cd $(HOST_SUBDIR)/shellutils && \
26172 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-shellutils))
d32ab992 26173@endif shellutils
4977bab6 26174
25b42232 26175
ce406537
PB
26176
26177
d32ab992
PB
26178.PHONY: check-shellutils maybe-check-shellutils
26179maybe-check-shellutils:
26180@if shellutils
26181maybe-check-shellutils: check-shellutils
4977bab6 26182
d32ab992 26183check-shellutils:
f41d6665 26184 @: $(MAKE); $(unstage)
295f4e42
NN
26185 @r=`${PWD_COMMAND}`; export r; \
26186 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26187 $(HOST_EXPORTS) \
215c351a
PB
26188 (cd $(HOST_SUBDIR)/shellutils && \
26189 $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6 26190
d32ab992 26191@endif shellutils
4977bab6 26192
d32ab992
PB
26193.PHONY: install-shellutils maybe-install-shellutils
26194maybe-install-shellutils:
26195@if shellutils
26196maybe-install-shellutils: install-shellutils
7e2dbcef 26197
d32ab992 26198install-shellutils: installdirs
f41d6665 26199 @: $(MAKE); $(unstage)
8c90b13a
L
26200 @r=`${PWD_COMMAND}`; export r; \
26201 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26202 $(HOST_EXPORTS) \
215c351a 26203 (cd $(HOST_SUBDIR)/shellutils && \
ace9ac7b 26204 $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6 26205
d32ab992 26206@endif shellutils
4977bab6 26207
b5422ad7 26208# Other targets (info, dvi, pdf, etc.)
295f4e42 26209
d32ab992
PB
26210.PHONY: maybe-info-shellutils info-shellutils
26211maybe-info-shellutils:
26212@if shellutils
26213maybe-info-shellutils: info-shellutils
295f4e42 26214
d32ab992 26215info-shellutils: \
05750653 26216 configure-shellutils
f41d6665 26217 @: $(MAKE); $(unstage)
d32ab992 26218 @[ -f ./shellutils/Makefile ] || exit 0; \
8c90b13a
L
26219 r=`${PWD_COMMAND}`; export r; \
26220 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26221 $(HOST_EXPORTS) \
d32ab992 26222 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26223 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26224 done; \
d32ab992 26225 echo "Doing info in shellutils" ; \
215c351a 26226 (cd $(HOST_SUBDIR)/shellutils && \
295f4e42
NN
26227 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26228 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26229 "RANLIB=$${RANLIB}" \
26230 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26231 info) \
4977bab6
ZW
26232 || exit 1
26233
d32ab992 26234@endif shellutils
295f4e42 26235
d32ab992
PB
26236.PHONY: maybe-dvi-shellutils dvi-shellutils
26237maybe-dvi-shellutils:
26238@if shellutils
26239maybe-dvi-shellutils: dvi-shellutils
295f4e42 26240
d32ab992 26241dvi-shellutils: \
05750653 26242 configure-shellutils
f41d6665 26243 @: $(MAKE); $(unstage)
d32ab992 26244 @[ -f ./shellutils/Makefile ] || exit 0; \
295f4e42 26245 r=`${PWD_COMMAND}`; export r; \
8c90b13a 26246 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26247 $(HOST_EXPORTS) \
d32ab992 26248 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26249 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26250 done; \
d32ab992 26251 echo "Doing dvi in shellutils" ; \
215c351a 26252 (cd $(HOST_SUBDIR)/shellutils && \
295f4e42
NN
26253 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26254 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26255 "RANLIB=$${RANLIB}" \
26256 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26257 dvi) \
295f4e42 26258 || exit 1
4977bab6 26259
d32ab992 26260@endif shellutils
4977bab6 26261
b5422ad7
BM
26262.PHONY: maybe-pdf-shellutils pdf-shellutils
26263maybe-pdf-shellutils:
26264@if shellutils
26265maybe-pdf-shellutils: pdf-shellutils
26266
26267pdf-shellutils: \
26268 configure-shellutils
26269 @: $(MAKE); $(unstage)
26270 @[ -f ./shellutils/Makefile ] || exit 0; \
26271 r=`${PWD_COMMAND}`; export r; \
26272 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26273 $(HOST_EXPORTS) \
26274 for flag in $(EXTRA_HOST_FLAGS) ; do \
26275 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26276 done; \
26277 echo "Doing pdf in shellutils" ; \
26278 (cd $(HOST_SUBDIR)/shellutils && \
26279 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26280 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26281 "RANLIB=$${RANLIB}" \
26282 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
26283 pdf) \
26284 || exit 1
26285
26286@endif shellutils
26287
f87a2b2e
MS
26288.PHONY: maybe-html-shellutils html-shellutils
26289maybe-html-shellutils:
26290@if shellutils
26291maybe-html-shellutils: html-shellutils
26292
26293html-shellutils: \
05750653 26294 configure-shellutils
f41d6665 26295 @: $(MAKE); $(unstage)
f87a2b2e
MS
26296 @[ -f ./shellutils/Makefile ] || exit 0; \
26297 r=`${PWD_COMMAND}`; export r; \
26298 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
26299 $(HOST_EXPORTS) \
26300 for flag in $(EXTRA_HOST_FLAGS) ; do \
26301 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26302 done; \
26303 echo "Doing html in shellutils" ; \
215c351a 26304 (cd $(HOST_SUBDIR)/shellutils && \
f87a2b2e
MS
26305 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26306 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26307 "RANLIB=$${RANLIB}" \
26308 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
26309 html) \
26310 || exit 1
26311
26312@endif shellutils
26313
d32ab992
PB
26314.PHONY: maybe-TAGS-shellutils TAGS-shellutils
26315maybe-TAGS-shellutils:
26316@if shellutils
26317maybe-TAGS-shellutils: TAGS-shellutils
295f4e42 26318
d32ab992 26319TAGS-shellutils: \
05750653 26320 configure-shellutils
f41d6665 26321 @: $(MAKE); $(unstage)
d32ab992 26322 @[ -f ./shellutils/Makefile ] || exit 0; \
295f4e42 26323 r=`${PWD_COMMAND}`; export r; \
8c90b13a 26324 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26325 $(HOST_EXPORTS) \
d32ab992 26326 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26327 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26328 done; \
d32ab992 26329 echo "Doing TAGS in shellutils" ; \
215c351a 26330 (cd $(HOST_SUBDIR)/shellutils && \
295f4e42
NN
26331 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26332 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26333 "RANLIB=$${RANLIB}" \
26334 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26335 TAGS) \
295f4e42 26336 || exit 1
4977bab6 26337
d32ab992 26338@endif shellutils
4977bab6 26339
d32ab992
PB
26340.PHONY: maybe-install-info-shellutils install-info-shellutils
26341maybe-install-info-shellutils:
26342@if shellutils
26343maybe-install-info-shellutils: install-info-shellutils
7e2dbcef 26344
d32ab992
PB
26345install-info-shellutils: \
26346 configure-shellutils \
05750653 26347 info-shellutils
f41d6665 26348 @: $(MAKE); $(unstage)
d32ab992 26349 @[ -f ./shellutils/Makefile ] || exit 0; \
295f4e42
NN
26350 r=`${PWD_COMMAND}`; export r; \
26351 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26352 $(HOST_EXPORTS) \
d32ab992 26353 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26354 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26355 done; \
d32ab992 26356 echo "Doing install-info in shellutils" ; \
215c351a 26357 (cd $(HOST_SUBDIR)/shellutils && \
295f4e42
NN
26358 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26359 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26360 "RANLIB=$${RANLIB}" \
26361 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26362 install-info) \
295f4e42
NN
26363 || exit 1
26364
d32ab992 26365@endif shellutils
295f4e42 26366
65d6e994
CD
26367.PHONY: maybe-install-html-shellutils install-html-shellutils
26368maybe-install-html-shellutils:
26369@if shellutils
26370maybe-install-html-shellutils: install-html-shellutils
26371
26372install-html-shellutils: \
26373 configure-shellutils \
26374 html-shellutils
26375 @: $(MAKE); $(unstage)
26376 @[ -f ./shellutils/Makefile ] || exit 0; \
26377 r=`${PWD_COMMAND}`; export r; \
26378 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26379 $(HOST_EXPORTS) \
26380 for flag in $(EXTRA_HOST_FLAGS) ; do \
26381 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26382 done; \
26383 echo "Doing install-html in shellutils" ; \
26384 (cd $(HOST_SUBDIR)/shellutils && \
26385 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26386 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26387 "RANLIB=$${RANLIB}" \
26388 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
26389 install-html) \
26390 || exit 1
26391
26392@endif shellutils
26393
d32ab992
PB
26394.PHONY: maybe-installcheck-shellutils installcheck-shellutils
26395maybe-installcheck-shellutils:
26396@if shellutils
26397maybe-installcheck-shellutils: installcheck-shellutils
295f4e42 26398
d32ab992 26399installcheck-shellutils: \
05750653 26400 configure-shellutils
f41d6665 26401 @: $(MAKE); $(unstage)
d32ab992 26402 @[ -f ./shellutils/Makefile ] || exit 0; \
295f4e42
NN
26403 r=`${PWD_COMMAND}`; export r; \
26404 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26405 $(HOST_EXPORTS) \
d32ab992 26406 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26407 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26408 done; \
d32ab992 26409 echo "Doing installcheck in shellutils" ; \
215c351a 26410 (cd $(HOST_SUBDIR)/shellutils && \
295f4e42
NN
26411 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26412 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26413 "RANLIB=$${RANLIB}" \
26414 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26415 installcheck) \
295f4e42
NN
26416 || exit 1
26417
d32ab992 26418@endif shellutils
295f4e42 26419
d32ab992
PB
26420.PHONY: maybe-mostlyclean-shellutils mostlyclean-shellutils
26421maybe-mostlyclean-shellutils:
26422@if shellutils
26423maybe-mostlyclean-shellutils: mostlyclean-shellutils
295f4e42 26424
05750653 26425mostlyclean-shellutils:
f41d6665 26426 @: $(MAKE); $(unstage)
d32ab992 26427 @[ -f ./shellutils/Makefile ] || exit 0; \
295f4e42
NN
26428 r=`${PWD_COMMAND}`; export r; \
26429 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26430 $(HOST_EXPORTS) \
d32ab992 26431 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26432 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26433 done; \
d32ab992 26434 echo "Doing mostlyclean in shellutils" ; \
215c351a 26435 (cd $(HOST_SUBDIR)/shellutils && \
295f4e42
NN
26436 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26437 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26438 "RANLIB=$${RANLIB}" \
26439 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26440 mostlyclean) \
295f4e42
NN
26441 || exit 1
26442
d32ab992 26443@endif shellutils
295f4e42 26444
d32ab992
PB
26445.PHONY: maybe-clean-shellutils clean-shellutils
26446maybe-clean-shellutils:
26447@if shellutils
26448maybe-clean-shellutils: clean-shellutils
295f4e42 26449
05750653 26450clean-shellutils:
f41d6665 26451 @: $(MAKE); $(unstage)
d32ab992 26452 @[ -f ./shellutils/Makefile ] || exit 0; \
295f4e42
NN
26453 r=`${PWD_COMMAND}`; export r; \
26454 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26455 $(HOST_EXPORTS) \
d32ab992 26456 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26457 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26458 done; \
d32ab992 26459 echo "Doing clean in shellutils" ; \
215c351a 26460 (cd $(HOST_SUBDIR)/shellutils && \
295f4e42
NN
26461 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26462 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26463 "RANLIB=$${RANLIB}" \
26464 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26465 clean) \
295f4e42
NN
26466 || exit 1
26467
d32ab992 26468@endif shellutils
295f4e42 26469
d32ab992
PB
26470.PHONY: maybe-distclean-shellutils distclean-shellutils
26471maybe-distclean-shellutils:
26472@if shellutils
26473maybe-distclean-shellutils: distclean-shellutils
295f4e42 26474
05750653 26475distclean-shellutils:
f41d6665 26476 @: $(MAKE); $(unstage)
d32ab992 26477 @[ -f ./shellutils/Makefile ] || exit 0; \
295f4e42
NN
26478 r=`${PWD_COMMAND}`; export r; \
26479 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26480 $(HOST_EXPORTS) \
d32ab992 26481 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26482 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26483 done; \
d32ab992 26484 echo "Doing distclean in shellutils" ; \
215c351a 26485 (cd $(HOST_SUBDIR)/shellutils && \
295f4e42
NN
26486 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26487 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26488 "RANLIB=$${RANLIB}" \
26489 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26490 distclean) \
295f4e42
NN
26491 || exit 1
26492
d32ab992 26493@endif shellutils
295f4e42 26494
d32ab992
PB
26495.PHONY: maybe-maintainer-clean-shellutils maintainer-clean-shellutils
26496maybe-maintainer-clean-shellutils:
26497@if shellutils
26498maybe-maintainer-clean-shellutils: maintainer-clean-shellutils
295f4e42 26499
05750653 26500maintainer-clean-shellutils:
f41d6665 26501 @: $(MAKE); $(unstage)
d32ab992 26502 @[ -f ./shellutils/Makefile ] || exit 0; \
295f4e42 26503 r=`${PWD_COMMAND}`; export r; \
8c90b13a 26504 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26505 $(HOST_EXPORTS) \
d32ab992 26506 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26507 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26508 done; \
d32ab992 26509 echo "Doing maintainer-clean in shellutils" ; \
215c351a 26510 (cd $(HOST_SUBDIR)/shellutils && \
295f4e42
NN
26511 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26512 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26513 "RANLIB=$${RANLIB}" \
26514 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26515 maintainer-clean) \
295f4e42 26516 || exit 1
4977bab6 26517
d32ab992 26518@endif shellutils
4977bab6 26519
295f4e42 26520
25b42232 26521
d32ab992
PB
26522.PHONY: configure-sid maybe-configure-sid
26523maybe-configure-sid:
3ff3adad
PB
26524@if gcc-bootstrap
26525configure-sid: stage_current
26526@endif gcc-bootstrap
d32ab992
PB
26527@if sid
26528maybe-configure-sid: configure-sid
cc11cc9b 26529configure-sid:
f41d6665 26530 @: $(MAKE); $(unstage)
cc11cc9b 26531 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 26532 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
26533 test ! -f $(HOST_SUBDIR)/sid/Makefile || exit 0; \
26534 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/sid ; \
4fc4dd12 26535 $(HOST_EXPORTS) \
25b42232
PB
26536 echo Configuring in $(HOST_SUBDIR)/sid; \
26537 cd "$(HOST_SUBDIR)/sid" || exit 1; \
4977bab6 26538 case $(srcdir) in \
215c351a
PB
26539 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
26540 *) topdir=`echo $(HOST_SUBDIR)/sid/ | \
26541 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 26542 esac; \
215c351a
PB
26543 srcdiroption="--srcdir=$${topdir}/sid"; \
26544 libsrcdir="$$s/sid"; \
4977bab6 26545 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 26546 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 26547 || exit 1
d32ab992 26548@endif sid
4977bab6 26549
25b42232
PB
26550
26551
ce406537
PB
26552
26553
d32ab992
PB
26554.PHONY: all-sid maybe-all-sid
26555maybe-all-sid:
3ff3adad
PB
26556@if gcc-bootstrap
26557all-sid: stage_current
26558@endif gcc-bootstrap
d32ab992 26559@if sid
7e0b5752 26560TARGET-sid=all
d32ab992
PB
26561maybe-all-sid: all-sid
26562all-sid: configure-sid
f41d6665 26563 @: $(MAKE); $(unstage)
8c90b13a
L
26564 @r=`${PWD_COMMAND}`; export r; \
26565 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26566 $(HOST_EXPORTS) \
215c351a
PB
26567 (cd $(HOST_SUBDIR)/sid && \
26568 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-sid))
d32ab992 26569@endif sid
4977bab6 26570
25b42232 26571
ce406537
PB
26572
26573
d32ab992
PB
26574.PHONY: check-sid maybe-check-sid
26575maybe-check-sid:
26576@if sid
26577maybe-check-sid: check-sid
4977bab6 26578
d32ab992 26579check-sid:
f41d6665 26580 @: $(MAKE); $(unstage)
295f4e42
NN
26581 @r=`${PWD_COMMAND}`; export r; \
26582 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26583 $(HOST_EXPORTS) \
215c351a
PB
26584 (cd $(HOST_SUBDIR)/sid && \
26585 $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6 26586
d32ab992 26587@endif sid
4977bab6 26588
d32ab992
PB
26589.PHONY: install-sid maybe-install-sid
26590maybe-install-sid:
26591@if sid
26592maybe-install-sid: install-sid
7e2dbcef 26593
d32ab992 26594install-sid: installdirs
f41d6665 26595 @: $(MAKE); $(unstage)
8c90b13a
L
26596 @r=`${PWD_COMMAND}`; export r; \
26597 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26598 $(HOST_EXPORTS) \
215c351a 26599 (cd $(HOST_SUBDIR)/sid && \
ace9ac7b 26600 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 26601
d32ab992 26602@endif sid
295f4e42 26603
b5422ad7 26604# Other targets (info, dvi, pdf, etc.)
295f4e42 26605
d32ab992
PB
26606.PHONY: maybe-info-sid info-sid
26607maybe-info-sid:
26608@if sid
26609maybe-info-sid: info-sid
295f4e42 26610
d32ab992 26611info-sid: \
05750653 26612 configure-sid
f41d6665 26613 @: $(MAKE); $(unstage)
d32ab992 26614 @[ -f ./sid/Makefile ] || exit 0; \
295f4e42
NN
26615 r=`${PWD_COMMAND}`; export r; \
26616 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26617 $(HOST_EXPORTS) \
d32ab992 26618 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26619 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26620 done; \
d32ab992 26621 echo "Doing info in sid" ; \
215c351a 26622 (cd $(HOST_SUBDIR)/sid && \
295f4e42
NN
26623 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26624 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26625 "RANLIB=$${RANLIB}" \
26626 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26627 info) \
295f4e42
NN
26628 || exit 1
26629
d32ab992 26630@endif sid
295f4e42 26631
d32ab992
PB
26632.PHONY: maybe-dvi-sid dvi-sid
26633maybe-dvi-sid:
26634@if sid
26635maybe-dvi-sid: dvi-sid
295f4e42 26636
d32ab992 26637dvi-sid: \
05750653 26638 configure-sid
f41d6665 26639 @: $(MAKE); $(unstage)
d32ab992 26640 @[ -f ./sid/Makefile ] || exit 0; \
295f4e42
NN
26641 r=`${PWD_COMMAND}`; export r; \
26642 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26643 $(HOST_EXPORTS) \
d32ab992 26644 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26645 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26646 done; \
d32ab992 26647 echo "Doing dvi in sid" ; \
215c351a 26648 (cd $(HOST_SUBDIR)/sid && \
295f4e42
NN
26649 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26650 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26651 "RANLIB=$${RANLIB}" \
26652 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26653 dvi) \
295f4e42
NN
26654 || exit 1
26655
d32ab992 26656@endif sid
295f4e42 26657
b5422ad7
BM
26658.PHONY: maybe-pdf-sid pdf-sid
26659maybe-pdf-sid:
26660@if sid
26661maybe-pdf-sid: pdf-sid
26662
26663pdf-sid: \
26664 configure-sid
26665 @: $(MAKE); $(unstage)
26666 @[ -f ./sid/Makefile ] || exit 0; \
26667 r=`${PWD_COMMAND}`; export r; \
26668 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26669 $(HOST_EXPORTS) \
26670 for flag in $(EXTRA_HOST_FLAGS) ; do \
26671 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26672 done; \
26673 echo "Doing pdf in sid" ; \
26674 (cd $(HOST_SUBDIR)/sid && \
26675 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26676 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26677 "RANLIB=$${RANLIB}" \
26678 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
26679 pdf) \
26680 || exit 1
26681
26682@endif sid
26683
f87a2b2e
MS
26684.PHONY: maybe-html-sid html-sid
26685maybe-html-sid:
26686@if sid
26687maybe-html-sid: html-sid
26688
26689html-sid: \
05750653 26690 configure-sid
f41d6665 26691 @: $(MAKE); $(unstage)
f87a2b2e
MS
26692 @[ -f ./sid/Makefile ] || exit 0; \
26693 r=`${PWD_COMMAND}`; export r; \
26694 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
26695 $(HOST_EXPORTS) \
26696 for flag in $(EXTRA_HOST_FLAGS) ; do \
26697 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26698 done; \
26699 echo "Doing html in sid" ; \
215c351a 26700 (cd $(HOST_SUBDIR)/sid && \
f87a2b2e
MS
26701 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26702 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26703 "RANLIB=$${RANLIB}" \
26704 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
26705 html) \
26706 || exit 1
26707
26708@endif sid
26709
d32ab992
PB
26710.PHONY: maybe-TAGS-sid TAGS-sid
26711maybe-TAGS-sid:
26712@if sid
26713maybe-TAGS-sid: TAGS-sid
295f4e42 26714
d32ab992 26715TAGS-sid: \
05750653 26716 configure-sid
f41d6665 26717 @: $(MAKE); $(unstage)
d32ab992 26718 @[ -f ./sid/Makefile ] || exit 0; \
295f4e42
NN
26719 r=`${PWD_COMMAND}`; export r; \
26720 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26721 $(HOST_EXPORTS) \
d32ab992 26722 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26723 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26724 done; \
d32ab992 26725 echo "Doing TAGS in sid" ; \
215c351a 26726 (cd $(HOST_SUBDIR)/sid && \
295f4e42
NN
26727 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26728 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26729 "RANLIB=$${RANLIB}" \
26730 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26731 TAGS) \
295f4e42
NN
26732 || exit 1
26733
d32ab992 26734@endif sid
295f4e42 26735
d32ab992
PB
26736.PHONY: maybe-install-info-sid install-info-sid
26737maybe-install-info-sid:
26738@if sid
26739maybe-install-info-sid: install-info-sid
295f4e42 26740
d32ab992
PB
26741install-info-sid: \
26742 configure-sid \
05750653 26743 info-sid
f41d6665 26744 @: $(MAKE); $(unstage)
d32ab992 26745 @[ -f ./sid/Makefile ] || exit 0; \
295f4e42
NN
26746 r=`${PWD_COMMAND}`; export r; \
26747 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26748 $(HOST_EXPORTS) \
d32ab992 26749 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26750 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26751 done; \
d32ab992 26752 echo "Doing install-info in sid" ; \
215c351a 26753 (cd $(HOST_SUBDIR)/sid && \
295f4e42
NN
26754 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26755 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26756 "RANLIB=$${RANLIB}" \
26757 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26758 install-info) \
295f4e42
NN
26759 || exit 1
26760
d32ab992 26761@endif sid
295f4e42 26762
65d6e994
CD
26763.PHONY: maybe-install-html-sid install-html-sid
26764maybe-install-html-sid:
26765@if sid
26766maybe-install-html-sid: install-html-sid
26767
26768install-html-sid: \
26769 configure-sid \
26770 html-sid
26771 @: $(MAKE); $(unstage)
26772 @[ -f ./sid/Makefile ] || exit 0; \
26773 r=`${PWD_COMMAND}`; export r; \
26774 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
26775 $(HOST_EXPORTS) \
26776 for flag in $(EXTRA_HOST_FLAGS) ; do \
26777 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26778 done; \
26779 echo "Doing install-html in sid" ; \
26780 (cd $(HOST_SUBDIR)/sid && \
26781 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26782 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26783 "RANLIB=$${RANLIB}" \
26784 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
26785 install-html) \
26786 || exit 1
26787
26788@endif sid
26789
d32ab992
PB
26790.PHONY: maybe-installcheck-sid installcheck-sid
26791maybe-installcheck-sid:
26792@if sid
26793maybe-installcheck-sid: installcheck-sid
295f4e42 26794
d32ab992 26795installcheck-sid: \
05750653 26796 configure-sid
f41d6665 26797 @: $(MAKE); $(unstage)
d32ab992
PB
26798 @[ -f ./sid/Makefile ] || exit 0; \
26799 r=`${PWD_COMMAND}`; export r; \
295f4e42 26800 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26801 $(HOST_EXPORTS) \
d32ab992 26802 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26803 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26804 done; \
d32ab992 26805 echo "Doing installcheck in sid" ; \
215c351a 26806 (cd $(HOST_SUBDIR)/sid && \
295f4e42
NN
26807 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26808 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26809 "RANLIB=$${RANLIB}" \
26810 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26811 installcheck) \
295f4e42
NN
26812 || exit 1
26813
d32ab992 26814@endif sid
295f4e42 26815
d32ab992
PB
26816.PHONY: maybe-mostlyclean-sid mostlyclean-sid
26817maybe-mostlyclean-sid:
26818@if sid
26819maybe-mostlyclean-sid: mostlyclean-sid
295f4e42 26820
05750653 26821mostlyclean-sid:
f41d6665 26822 @: $(MAKE); $(unstage)
d32ab992 26823 @[ -f ./sid/Makefile ] || exit 0; \
295f4e42
NN
26824 r=`${PWD_COMMAND}`; export r; \
26825 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26826 $(HOST_EXPORTS) \
d32ab992 26827 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26828 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26829 done; \
d32ab992 26830 echo "Doing mostlyclean in sid" ; \
215c351a 26831 (cd $(HOST_SUBDIR)/sid && \
295f4e42
NN
26832 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26833 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26834 "RANLIB=$${RANLIB}" \
26835 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26836 mostlyclean) \
295f4e42
NN
26837 || exit 1
26838
d32ab992 26839@endif sid
295f4e42 26840
d32ab992
PB
26841.PHONY: maybe-clean-sid clean-sid
26842maybe-clean-sid:
26843@if sid
26844maybe-clean-sid: clean-sid
295f4e42 26845
05750653 26846clean-sid:
f41d6665 26847 @: $(MAKE); $(unstage)
d32ab992 26848 @[ -f ./sid/Makefile ] || exit 0; \
295f4e42
NN
26849 r=`${PWD_COMMAND}`; export r; \
26850 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26851 $(HOST_EXPORTS) \
d32ab992 26852 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26853 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26854 done; \
d32ab992 26855 echo "Doing clean in sid" ; \
215c351a 26856 (cd $(HOST_SUBDIR)/sid && \
295f4e42
NN
26857 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26858 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26859 "RANLIB=$${RANLIB}" \
26860 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26861 clean) \
295f4e42
NN
26862 || exit 1
26863
d32ab992 26864@endif sid
295f4e42 26865
d32ab992
PB
26866.PHONY: maybe-distclean-sid distclean-sid
26867maybe-distclean-sid:
26868@if sid
26869maybe-distclean-sid: distclean-sid
295f4e42 26870
05750653 26871distclean-sid:
f41d6665 26872 @: $(MAKE); $(unstage)
d32ab992 26873 @[ -f ./sid/Makefile ] || exit 0; \
295f4e42
NN
26874 r=`${PWD_COMMAND}`; export r; \
26875 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26876 $(HOST_EXPORTS) \
d32ab992 26877 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26878 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26879 done; \
d32ab992 26880 echo "Doing distclean in sid" ; \
215c351a 26881 (cd $(HOST_SUBDIR)/sid && \
295f4e42
NN
26882 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26883 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26884 "RANLIB=$${RANLIB}" \
26885 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26886 distclean) \
295f4e42
NN
26887 || exit 1
26888
d32ab992 26889@endif sid
295f4e42 26890
d32ab992
PB
26891.PHONY: maybe-maintainer-clean-sid maintainer-clean-sid
26892maybe-maintainer-clean-sid:
26893@if sid
26894maybe-maintainer-clean-sid: maintainer-clean-sid
295f4e42 26895
05750653 26896maintainer-clean-sid:
f41d6665 26897 @: $(MAKE); $(unstage)
d32ab992 26898 @[ -f ./sid/Makefile ] || exit 0; \
295f4e42
NN
26899 r=`${PWD_COMMAND}`; export r; \
26900 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26901 $(HOST_EXPORTS) \
d32ab992 26902 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
26903 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
26904 done; \
d32ab992 26905 echo "Doing maintainer-clean in sid" ; \
215c351a 26906 (cd $(HOST_SUBDIR)/sid && \
295f4e42
NN
26907 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
26908 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
26909 "RANLIB=$${RANLIB}" \
26910 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 26911 maintainer-clean) \
295f4e42 26912 || exit 1
4977bab6 26913
d32ab992 26914@endif sid
4977bab6 26915
295f4e42 26916
25b42232 26917
d32ab992
PB
26918.PHONY: configure-sim maybe-configure-sim
26919maybe-configure-sim:
3ff3adad
PB
26920@if gcc-bootstrap
26921configure-sim: stage_current
26922@endif gcc-bootstrap
d32ab992
PB
26923@if sim
26924maybe-configure-sim: configure-sim
cc11cc9b 26925configure-sim:
f41d6665 26926 @: $(MAKE); $(unstage)
cc11cc9b 26927 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 26928 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
26929 test ! -f $(HOST_SUBDIR)/sim/Makefile || exit 0; \
26930 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/sim ; \
4fc4dd12 26931 $(HOST_EXPORTS) \
25b42232
PB
26932 echo Configuring in $(HOST_SUBDIR)/sim; \
26933 cd "$(HOST_SUBDIR)/sim" || exit 1; \
4977bab6 26934 case $(srcdir) in \
215c351a
PB
26935 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
26936 *) topdir=`echo $(HOST_SUBDIR)/sim/ | \
26937 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 26938 esac; \
215c351a
PB
26939 srcdiroption="--srcdir=$${topdir}/sim"; \
26940 libsrcdir="$$s/sim"; \
4977bab6 26941 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 26942 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 26943 || exit 1
d32ab992 26944@endif sim
4977bab6 26945
25b42232
PB
26946
26947
ce406537
PB
26948
26949
d32ab992
PB
26950.PHONY: all-sim maybe-all-sim
26951maybe-all-sim:
3ff3adad
PB
26952@if gcc-bootstrap
26953all-sim: stage_current
26954@endif gcc-bootstrap
d32ab992 26955@if sim
7e0b5752 26956TARGET-sim=all
d32ab992
PB
26957maybe-all-sim: all-sim
26958all-sim: configure-sim
f41d6665 26959 @: $(MAKE); $(unstage)
8c90b13a
L
26960 @r=`${PWD_COMMAND}`; export r; \
26961 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26962 $(HOST_EXPORTS) \
215c351a
PB
26963 (cd $(HOST_SUBDIR)/sim && \
26964 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-sim))
d32ab992 26965@endif sim
4977bab6 26966
25b42232 26967
ce406537
PB
26968
26969
d32ab992
PB
26970.PHONY: check-sim maybe-check-sim
26971maybe-check-sim:
26972@if sim
26973maybe-check-sim: check-sim
4977bab6 26974
d32ab992 26975check-sim:
f41d6665 26976 @: $(MAKE); $(unstage)
8c90b13a
L
26977 @r=`${PWD_COMMAND}`; export r; \
26978 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26979 $(HOST_EXPORTS) \
215c351a
PB
26980 (cd $(HOST_SUBDIR)/sim && \
26981 $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6 26982
d32ab992 26983@endif sim
4977bab6 26984
d32ab992
PB
26985.PHONY: install-sim maybe-install-sim
26986maybe-install-sim:
26987@if sim
26988maybe-install-sim: install-sim
7e2dbcef 26989
d32ab992 26990install-sim: installdirs
f41d6665 26991 @: $(MAKE); $(unstage)
8c90b13a
L
26992 @r=`${PWD_COMMAND}`; export r; \
26993 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 26994 $(HOST_EXPORTS) \
215c351a 26995 (cd $(HOST_SUBDIR)/sim && \
ace9ac7b 26996 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 26997
d32ab992 26998@endif sim
295f4e42 26999
b5422ad7 27000# Other targets (info, dvi, pdf, etc.)
295f4e42 27001
d32ab992
PB
27002.PHONY: maybe-info-sim info-sim
27003maybe-info-sim:
27004@if sim
27005maybe-info-sim: info-sim
295f4e42 27006
d32ab992 27007info-sim: \
05750653 27008 configure-sim
f41d6665 27009 @: $(MAKE); $(unstage)
d32ab992 27010 @[ -f ./sim/Makefile ] || exit 0; \
295f4e42
NN
27011 r=`${PWD_COMMAND}`; export r; \
27012 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27013 $(HOST_EXPORTS) \
d32ab992 27014 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27015 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27016 done; \
d32ab992 27017 echo "Doing info in sim" ; \
215c351a 27018 (cd $(HOST_SUBDIR)/sim && \
295f4e42
NN
27019 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27020 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27021 "RANLIB=$${RANLIB}" \
27022 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27023 info) \
295f4e42
NN
27024 || exit 1
27025
d32ab992 27026@endif sim
295f4e42 27027
d32ab992
PB
27028.PHONY: maybe-dvi-sim dvi-sim
27029maybe-dvi-sim:
27030@if sim
27031maybe-dvi-sim: dvi-sim
295f4e42 27032
d32ab992 27033dvi-sim: \
05750653 27034 configure-sim
f41d6665 27035 @: $(MAKE); $(unstage)
d32ab992 27036 @[ -f ./sim/Makefile ] || exit 0; \
295f4e42
NN
27037 r=`${PWD_COMMAND}`; export r; \
27038 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27039 $(HOST_EXPORTS) \
d32ab992 27040 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27041 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27042 done; \
d32ab992 27043 echo "Doing dvi in sim" ; \
215c351a 27044 (cd $(HOST_SUBDIR)/sim && \
295f4e42
NN
27045 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27046 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27047 "RANLIB=$${RANLIB}" \
27048 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27049 dvi) \
295f4e42
NN
27050 || exit 1
27051
d32ab992 27052@endif sim
295f4e42 27053
b5422ad7
BM
27054.PHONY: maybe-pdf-sim pdf-sim
27055maybe-pdf-sim:
27056@if sim
27057maybe-pdf-sim: pdf-sim
27058
27059pdf-sim: \
27060 configure-sim
27061 @: $(MAKE); $(unstage)
27062 @[ -f ./sim/Makefile ] || exit 0; \
27063 r=`${PWD_COMMAND}`; export r; \
27064 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27065 $(HOST_EXPORTS) \
27066 for flag in $(EXTRA_HOST_FLAGS) ; do \
27067 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27068 done; \
27069 echo "Doing pdf in sim" ; \
27070 (cd $(HOST_SUBDIR)/sim && \
27071 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27072 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27073 "RANLIB=$${RANLIB}" \
27074 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
27075 pdf) \
27076 || exit 1
27077
27078@endif sim
27079
f87a2b2e
MS
27080.PHONY: maybe-html-sim html-sim
27081maybe-html-sim:
27082@if sim
27083maybe-html-sim: html-sim
27084
27085html-sim: \
05750653 27086 configure-sim
f41d6665 27087 @: $(MAKE); $(unstage)
f87a2b2e
MS
27088 @[ -f ./sim/Makefile ] || exit 0; \
27089 r=`${PWD_COMMAND}`; export r; \
27090 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
27091 $(HOST_EXPORTS) \
27092 for flag in $(EXTRA_HOST_FLAGS) ; do \
27093 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27094 done; \
27095 echo "Doing html in sim" ; \
215c351a 27096 (cd $(HOST_SUBDIR)/sim && \
f87a2b2e
MS
27097 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27098 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27099 "RANLIB=$${RANLIB}" \
27100 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
27101 html) \
27102 || exit 1
27103
27104@endif sim
27105
d32ab992
PB
27106.PHONY: maybe-TAGS-sim TAGS-sim
27107maybe-TAGS-sim:
27108@if sim
27109maybe-TAGS-sim: TAGS-sim
295f4e42 27110
d32ab992 27111TAGS-sim: \
05750653 27112 configure-sim
f41d6665 27113 @: $(MAKE); $(unstage)
d32ab992 27114 @[ -f ./sim/Makefile ] || exit 0; \
295f4e42
NN
27115 r=`${PWD_COMMAND}`; export r; \
27116 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27117 $(HOST_EXPORTS) \
d32ab992 27118 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27119 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27120 done; \
d32ab992 27121 echo "Doing TAGS in sim" ; \
215c351a 27122 (cd $(HOST_SUBDIR)/sim && \
295f4e42
NN
27123 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27124 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27125 "RANLIB=$${RANLIB}" \
27126 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27127 TAGS) \
295f4e42
NN
27128 || exit 1
27129
d32ab992 27130@endif sim
295f4e42 27131
d32ab992
PB
27132.PHONY: maybe-install-info-sim install-info-sim
27133maybe-install-info-sim:
27134@if sim
27135maybe-install-info-sim: install-info-sim
295f4e42 27136
d32ab992
PB
27137install-info-sim: \
27138 configure-sim \
05750653 27139 info-sim
f41d6665 27140 @: $(MAKE); $(unstage)
d32ab992 27141 @[ -f ./sim/Makefile ] || exit 0; \
295f4e42
NN
27142 r=`${PWD_COMMAND}`; export r; \
27143 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27144 $(HOST_EXPORTS) \
d32ab992 27145 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27146 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27147 done; \
d32ab992 27148 echo "Doing install-info in sim" ; \
215c351a 27149 (cd $(HOST_SUBDIR)/sim && \
295f4e42
NN
27150 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27151 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27152 "RANLIB=$${RANLIB}" \
27153 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27154 install-info) \
295f4e42
NN
27155 || exit 1
27156
d32ab992 27157@endif sim
295f4e42 27158
65d6e994
CD
27159.PHONY: maybe-install-html-sim install-html-sim
27160maybe-install-html-sim:
27161@if sim
27162maybe-install-html-sim: install-html-sim
27163
27164install-html-sim: \
27165 configure-sim \
27166 html-sim
27167 @: $(MAKE); $(unstage)
27168 @[ -f ./sim/Makefile ] || exit 0; \
27169 r=`${PWD_COMMAND}`; export r; \
27170 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27171 $(HOST_EXPORTS) \
27172 for flag in $(EXTRA_HOST_FLAGS) ; do \
27173 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27174 done; \
27175 echo "Doing install-html in sim" ; \
27176 (cd $(HOST_SUBDIR)/sim && \
27177 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27178 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27179 "RANLIB=$${RANLIB}" \
27180 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
27181 install-html) \
27182 || exit 1
27183
27184@endif sim
27185
d32ab992
PB
27186.PHONY: maybe-installcheck-sim installcheck-sim
27187maybe-installcheck-sim:
27188@if sim
27189maybe-installcheck-sim: installcheck-sim
295f4e42 27190
d32ab992 27191installcheck-sim: \
05750653 27192 configure-sim
f41d6665 27193 @: $(MAKE); $(unstage)
d32ab992 27194 @[ -f ./sim/Makefile ] || exit 0; \
295f4e42
NN
27195 r=`${PWD_COMMAND}`; export r; \
27196 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27197 $(HOST_EXPORTS) \
d32ab992 27198 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27199 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27200 done; \
d32ab992 27201 echo "Doing installcheck in sim" ; \
215c351a 27202 (cd $(HOST_SUBDIR)/sim && \
295f4e42
NN
27203 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27204 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27205 "RANLIB=$${RANLIB}" \
27206 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27207 installcheck) \
295f4e42
NN
27208 || exit 1
27209
d32ab992 27210@endif sim
295f4e42 27211
d32ab992
PB
27212.PHONY: maybe-mostlyclean-sim mostlyclean-sim
27213maybe-mostlyclean-sim:
27214@if sim
27215maybe-mostlyclean-sim: mostlyclean-sim
295f4e42 27216
05750653 27217mostlyclean-sim:
f41d6665 27218 @: $(MAKE); $(unstage)
d32ab992 27219 @[ -f ./sim/Makefile ] || exit 0; \
295f4e42
NN
27220 r=`${PWD_COMMAND}`; export r; \
27221 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27222 $(HOST_EXPORTS) \
d32ab992 27223 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27224 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27225 done; \
d32ab992 27226 echo "Doing mostlyclean in sim" ; \
215c351a 27227 (cd $(HOST_SUBDIR)/sim && \
295f4e42
NN
27228 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27229 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27230 "RANLIB=$${RANLIB}" \
27231 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27232 mostlyclean) \
295f4e42
NN
27233 || exit 1
27234
d32ab992 27235@endif sim
295f4e42 27236
d32ab992
PB
27237.PHONY: maybe-clean-sim clean-sim
27238maybe-clean-sim:
27239@if sim
27240maybe-clean-sim: clean-sim
295f4e42 27241
05750653 27242clean-sim:
f41d6665 27243 @: $(MAKE); $(unstage)
d32ab992 27244 @[ -f ./sim/Makefile ] || exit 0; \
295f4e42
NN
27245 r=`${PWD_COMMAND}`; export r; \
27246 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27247 $(HOST_EXPORTS) \
d32ab992 27248 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27249 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27250 done; \
d32ab992 27251 echo "Doing clean in sim" ; \
215c351a 27252 (cd $(HOST_SUBDIR)/sim && \
295f4e42
NN
27253 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27254 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27255 "RANLIB=$${RANLIB}" \
27256 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27257 clean) \
295f4e42
NN
27258 || exit 1
27259
d32ab992 27260@endif sim
295f4e42 27261
d32ab992
PB
27262.PHONY: maybe-distclean-sim distclean-sim
27263maybe-distclean-sim:
27264@if sim
27265maybe-distclean-sim: distclean-sim
295f4e42 27266
05750653 27267distclean-sim:
f41d6665 27268 @: $(MAKE); $(unstage)
d32ab992 27269 @[ -f ./sim/Makefile ] || exit 0; \
295f4e42
NN
27270 r=`${PWD_COMMAND}`; export r; \
27271 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27272 $(HOST_EXPORTS) \
d32ab992 27273 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27274 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27275 done; \
d32ab992 27276 echo "Doing distclean in sim" ; \
215c351a 27277 (cd $(HOST_SUBDIR)/sim && \
295f4e42
NN
27278 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27279 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27280 "RANLIB=$${RANLIB}" \
27281 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27282 distclean) \
295f4e42
NN
27283 || exit 1
27284
d32ab992 27285@endif sim
295f4e42 27286
d32ab992
PB
27287.PHONY: maybe-maintainer-clean-sim maintainer-clean-sim
27288maybe-maintainer-clean-sim:
27289@if sim
27290maybe-maintainer-clean-sim: maintainer-clean-sim
295f4e42 27291
05750653 27292maintainer-clean-sim:
f41d6665 27293 @: $(MAKE); $(unstage)
d32ab992 27294 @[ -f ./sim/Makefile ] || exit 0; \
295f4e42
NN
27295 r=`${PWD_COMMAND}`; export r; \
27296 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27297 $(HOST_EXPORTS) \
d32ab992 27298 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27299 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27300 done; \
d32ab992 27301 echo "Doing maintainer-clean in sim" ; \
215c351a 27302 (cd $(HOST_SUBDIR)/sim && \
295f4e42
NN
27303 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27304 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27305 "RANLIB=$${RANLIB}" \
27306 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27307 maintainer-clean) \
295f4e42
NN
27308 || exit 1
27309
d32ab992 27310@endif sim
4977bab6
ZW
27311
27312
25b42232 27313
d32ab992
PB
27314.PHONY: configure-tar maybe-configure-tar
27315maybe-configure-tar:
3ff3adad
PB
27316@if gcc-bootstrap
27317configure-tar: stage_current
27318@endif gcc-bootstrap
d32ab992
PB
27319@if tar
27320maybe-configure-tar: configure-tar
cc11cc9b 27321configure-tar:
f41d6665 27322 @: $(MAKE); $(unstage)
cc11cc9b 27323 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 27324 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
27325 test ! -f $(HOST_SUBDIR)/tar/Makefile || exit 0; \
27326 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/tar ; \
4fc4dd12 27327 $(HOST_EXPORTS) \
25b42232
PB
27328 echo Configuring in $(HOST_SUBDIR)/tar; \
27329 cd "$(HOST_SUBDIR)/tar" || exit 1; \
4977bab6 27330 case $(srcdir) in \
215c351a
PB
27331 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
27332 *) topdir=`echo $(HOST_SUBDIR)/tar/ | \
27333 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 27334 esac; \
215c351a
PB
27335 srcdiroption="--srcdir=$${topdir}/tar"; \
27336 libsrcdir="$$s/tar"; \
4977bab6 27337 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 27338 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 27339 || exit 1
d32ab992 27340@endif tar
4977bab6 27341
25b42232
PB
27342
27343
ce406537
PB
27344
27345
d32ab992
PB
27346.PHONY: all-tar maybe-all-tar
27347maybe-all-tar:
3ff3adad
PB
27348@if gcc-bootstrap
27349all-tar: stage_current
27350@endif gcc-bootstrap
d32ab992 27351@if tar
7e0b5752 27352TARGET-tar=all
d32ab992
PB
27353maybe-all-tar: all-tar
27354all-tar: configure-tar
f41d6665 27355 @: $(MAKE); $(unstage)
8c90b13a
L
27356 @r=`${PWD_COMMAND}`; export r; \
27357 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27358 $(HOST_EXPORTS) \
215c351a
PB
27359 (cd $(HOST_SUBDIR)/tar && \
27360 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-tar))
d32ab992 27361@endif tar
4977bab6 27362
25b42232 27363
ce406537
PB
27364
27365
d32ab992
PB
27366.PHONY: check-tar maybe-check-tar
27367maybe-check-tar:
27368@if tar
27369maybe-check-tar: check-tar
4977bab6 27370
d32ab992 27371check-tar:
f41d6665 27372 @: $(MAKE); $(unstage)
8c90b13a
L
27373 @r=`${PWD_COMMAND}`; export r; \
27374 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27375 $(HOST_EXPORTS) \
215c351a
PB
27376 (cd $(HOST_SUBDIR)/tar && \
27377 $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6 27378
d32ab992 27379@endif tar
4977bab6 27380
d32ab992
PB
27381.PHONY: install-tar maybe-install-tar
27382maybe-install-tar:
27383@if tar
27384maybe-install-tar: install-tar
7e2dbcef 27385
d32ab992 27386install-tar: installdirs
f41d6665 27387 @: $(MAKE); $(unstage)
d32ab992
PB
27388 @r=`${PWD_COMMAND}`; export r; \
27389 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d32ab992 27390 $(HOST_EXPORTS) \
215c351a 27391 (cd $(HOST_SUBDIR)/tar && \
ace9ac7b 27392 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 27393
d32ab992 27394@endif tar
295f4e42 27395
b5422ad7 27396# Other targets (info, dvi, pdf, etc.)
295f4e42 27397
d32ab992
PB
27398.PHONY: maybe-info-tar info-tar
27399maybe-info-tar:
27400@if tar
27401maybe-info-tar: info-tar
295f4e42 27402
d32ab992 27403info-tar: \
05750653 27404 configure-tar
f41d6665 27405 @: $(MAKE); $(unstage)
d32ab992 27406 @[ -f ./tar/Makefile ] || exit 0; \
295f4e42 27407 r=`${PWD_COMMAND}`; export r; \
8c90b13a 27408 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27409 $(HOST_EXPORTS) \
d32ab992 27410 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27411 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27412 done; \
d32ab992 27413 echo "Doing info in tar" ; \
215c351a 27414 (cd $(HOST_SUBDIR)/tar && \
295f4e42
NN
27415 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27416 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27417 "RANLIB=$${RANLIB}" \
27418 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27419 info) \
295f4e42 27420 || exit 1
4977bab6 27421
d32ab992 27422@endif tar
4977bab6 27423
d32ab992
PB
27424.PHONY: maybe-dvi-tar dvi-tar
27425maybe-dvi-tar:
27426@if tar
27427maybe-dvi-tar: dvi-tar
295f4e42 27428
d32ab992 27429dvi-tar: \
05750653 27430 configure-tar
f41d6665 27431 @: $(MAKE); $(unstage)
d32ab992 27432 @[ -f ./tar/Makefile ] || exit 0; \
8c90b13a
L
27433 r=`${PWD_COMMAND}`; export r; \
27434 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27435 $(HOST_EXPORTS) \
d32ab992 27436 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27437 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27438 done; \
d32ab992 27439 echo "Doing dvi in tar" ; \
215c351a 27440 (cd $(HOST_SUBDIR)/tar && \
295f4e42
NN
27441 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27442 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27443 "RANLIB=$${RANLIB}" \
27444 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27445 dvi) \
4977bab6
ZW
27446 || exit 1
27447
d32ab992 27448@endif tar
295f4e42 27449
b5422ad7
BM
27450.PHONY: maybe-pdf-tar pdf-tar
27451maybe-pdf-tar:
27452@if tar
27453maybe-pdf-tar: pdf-tar
27454
27455pdf-tar: \
27456 configure-tar
27457 @: $(MAKE); $(unstage)
27458 @[ -f ./tar/Makefile ] || exit 0; \
27459 r=`${PWD_COMMAND}`; export r; \
27460 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27461 $(HOST_EXPORTS) \
27462 for flag in $(EXTRA_HOST_FLAGS) ; do \
27463 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27464 done; \
27465 echo "Doing pdf in tar" ; \
27466 (cd $(HOST_SUBDIR)/tar && \
27467 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27468 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27469 "RANLIB=$${RANLIB}" \
27470 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
27471 pdf) \
27472 || exit 1
27473
27474@endif tar
27475
f87a2b2e
MS
27476.PHONY: maybe-html-tar html-tar
27477maybe-html-tar:
27478@if tar
27479maybe-html-tar: html-tar
27480
27481html-tar: \
05750653 27482 configure-tar
f41d6665 27483 @: $(MAKE); $(unstage)
f87a2b2e
MS
27484 @[ -f ./tar/Makefile ] || exit 0; \
27485 r=`${PWD_COMMAND}`; export r; \
27486 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
27487 $(HOST_EXPORTS) \
27488 for flag in $(EXTRA_HOST_FLAGS) ; do \
27489 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27490 done; \
27491 echo "Doing html in tar" ; \
215c351a 27492 (cd $(HOST_SUBDIR)/tar && \
f87a2b2e
MS
27493 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27494 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27495 "RANLIB=$${RANLIB}" \
27496 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
27497 html) \
27498 || exit 1
27499
27500@endif tar
27501
d32ab992
PB
27502.PHONY: maybe-TAGS-tar TAGS-tar
27503maybe-TAGS-tar:
27504@if tar
27505maybe-TAGS-tar: TAGS-tar
295f4e42 27506
d32ab992 27507TAGS-tar: \
05750653 27508 configure-tar
f41d6665 27509 @: $(MAKE); $(unstage)
d32ab992 27510 @[ -f ./tar/Makefile ] || exit 0; \
295f4e42 27511 r=`${PWD_COMMAND}`; export r; \
8c90b13a 27512 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27513 $(HOST_EXPORTS) \
d32ab992 27514 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27515 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27516 done; \
d32ab992 27517 echo "Doing TAGS in tar" ; \
215c351a 27518 (cd $(HOST_SUBDIR)/tar && \
295f4e42
NN
27519 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27520 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27521 "RANLIB=$${RANLIB}" \
27522 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27523 TAGS) \
295f4e42 27524 || exit 1
4977bab6 27525
d32ab992 27526@endif tar
4977bab6 27527
d32ab992
PB
27528.PHONY: maybe-install-info-tar install-info-tar
27529maybe-install-info-tar:
27530@if tar
27531maybe-install-info-tar: install-info-tar
295f4e42 27532
d32ab992
PB
27533install-info-tar: \
27534 configure-tar \
05750653 27535 info-tar
f41d6665 27536 @: $(MAKE); $(unstage)
d32ab992 27537 @[ -f ./tar/Makefile ] || exit 0; \
295f4e42 27538 r=`${PWD_COMMAND}`; export r; \
8c90b13a 27539 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27540 $(HOST_EXPORTS) \
d32ab992 27541 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27542 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27543 done; \
d32ab992 27544 echo "Doing install-info in tar" ; \
215c351a 27545 (cd $(HOST_SUBDIR)/tar && \
d32ab992 27546 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
295f4e42
NN
27547 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27548 "RANLIB=$${RANLIB}" \
27549 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27550 install-info) \
295f4e42 27551 || exit 1
4977bab6 27552
d32ab992 27553@endif tar
4977bab6 27554
65d6e994
CD
27555.PHONY: maybe-install-html-tar install-html-tar
27556maybe-install-html-tar:
27557@if tar
27558maybe-install-html-tar: install-html-tar
27559
27560install-html-tar: \
27561 configure-tar \
27562 html-tar
27563 @: $(MAKE); $(unstage)
27564 @[ -f ./tar/Makefile ] || exit 0; \
27565 r=`${PWD_COMMAND}`; export r; \
27566 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27567 $(HOST_EXPORTS) \
27568 for flag in $(EXTRA_HOST_FLAGS) ; do \
27569 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27570 done; \
27571 echo "Doing install-html in tar" ; \
27572 (cd $(HOST_SUBDIR)/tar && \
27573 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27574 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27575 "RANLIB=$${RANLIB}" \
27576 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
27577 install-html) \
27578 || exit 1
27579
27580@endif tar
27581
d32ab992
PB
27582.PHONY: maybe-installcheck-tar installcheck-tar
27583maybe-installcheck-tar:
27584@if tar
27585maybe-installcheck-tar: installcheck-tar
295f4e42 27586
d32ab992 27587installcheck-tar: \
05750653 27588 configure-tar
f41d6665 27589 @: $(MAKE); $(unstage)
d32ab992 27590 @[ -f ./tar/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 installcheck in tar" ; \
215c351a 27598 (cd $(HOST_SUBDIR)/tar && \
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 installcheck) \
295f4e42
NN
27604 || exit 1
27605
d32ab992 27606@endif tar
295f4e42 27607
d32ab992
PB
27608.PHONY: maybe-mostlyclean-tar mostlyclean-tar
27609maybe-mostlyclean-tar:
27610@if tar
27611maybe-mostlyclean-tar: mostlyclean-tar
295f4e42 27612
05750653 27613mostlyclean-tar:
f41d6665 27614 @: $(MAKE); $(unstage)
d32ab992 27615 @[ -f ./tar/Makefile ] || exit 0; \
295f4e42
NN
27616 r=`${PWD_COMMAND}`; export r; \
27617 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27618 $(HOST_EXPORTS) \
d32ab992 27619 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27620 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27621 done; \
d32ab992 27622 echo "Doing mostlyclean in tar" ; \
215c351a 27623 (cd $(HOST_SUBDIR)/tar && \
295f4e42
NN
27624 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27625 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27626 "RANLIB=$${RANLIB}" \
27627 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27628 mostlyclean) \
295f4e42
NN
27629 || exit 1
27630
d32ab992 27631@endif tar
295f4e42 27632
d32ab992
PB
27633.PHONY: maybe-clean-tar clean-tar
27634maybe-clean-tar:
27635@if tar
27636maybe-clean-tar: clean-tar
295f4e42 27637
05750653 27638clean-tar:
f41d6665 27639 @: $(MAKE); $(unstage)
d32ab992 27640 @[ -f ./tar/Makefile ] || exit 0; \
295f4e42
NN
27641 r=`${PWD_COMMAND}`; export r; \
27642 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27643 $(HOST_EXPORTS) \
d32ab992 27644 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27645 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27646 done; \
d32ab992 27647 echo "Doing clean in tar" ; \
215c351a 27648 (cd $(HOST_SUBDIR)/tar && \
295f4e42
NN
27649 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27650 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27651 "RANLIB=$${RANLIB}" \
27652 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27653 clean) \
295f4e42
NN
27654 || exit 1
27655
d32ab992 27656@endif tar
295f4e42 27657
d32ab992
PB
27658.PHONY: maybe-distclean-tar distclean-tar
27659maybe-distclean-tar:
27660@if tar
27661maybe-distclean-tar: distclean-tar
295f4e42 27662
05750653 27663distclean-tar:
f41d6665 27664 @: $(MAKE); $(unstage)
d32ab992 27665 @[ -f ./tar/Makefile ] || exit 0; \
295f4e42
NN
27666 r=`${PWD_COMMAND}`; export r; \
27667 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27668 $(HOST_EXPORTS) \
d32ab992 27669 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27670 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27671 done; \
d32ab992 27672 echo "Doing distclean in tar" ; \
215c351a 27673 (cd $(HOST_SUBDIR)/tar && \
295f4e42
NN
27674 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27675 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27676 "RANLIB=$${RANLIB}" \
27677 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27678 distclean) \
295f4e42
NN
27679 || exit 1
27680
d32ab992 27681@endif tar
295f4e42 27682
d32ab992
PB
27683.PHONY: maybe-maintainer-clean-tar maintainer-clean-tar
27684maybe-maintainer-clean-tar:
27685@if tar
27686maybe-maintainer-clean-tar: maintainer-clean-tar
7e2dbcef 27687
05750653 27688maintainer-clean-tar:
f41d6665 27689 @: $(MAKE); $(unstage)
d32ab992 27690 @[ -f ./tar/Makefile ] || exit 0; \
295f4e42 27691 r=`${PWD_COMMAND}`; export r; \
8c90b13a 27692 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27693 $(HOST_EXPORTS) \
d32ab992 27694 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27695 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27696 done; \
d32ab992 27697 echo "Doing maintainer-clean in tar" ; \
215c351a 27698 (cd $(HOST_SUBDIR)/tar && \
295f4e42
NN
27699 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27700 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27701 "RANLIB=$${RANLIB}" \
27702 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27703 maintainer-clean) \
295f4e42 27704 || exit 1
4977bab6 27705
d32ab992 27706@endif tar
4977bab6 27707
295f4e42 27708
25b42232 27709
d32ab992
PB
27710.PHONY: configure-texinfo maybe-configure-texinfo
27711maybe-configure-texinfo:
3ff3adad
PB
27712@if gcc-bootstrap
27713configure-texinfo: stage_current
27714@endif gcc-bootstrap
d32ab992
PB
27715@if texinfo
27716maybe-configure-texinfo: configure-texinfo
cc11cc9b 27717configure-texinfo:
f41d6665 27718 @: $(MAKE); $(unstage)
cc11cc9b 27719 @r=`${PWD_COMMAND}`; export r; \
4fc4dd12 27720 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
27721 test ! -f $(HOST_SUBDIR)/texinfo/Makefile || exit 0; \
27722 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/texinfo ; \
4fc4dd12 27723 $(HOST_EXPORTS) \
25b42232
PB
27724 echo Configuring in $(HOST_SUBDIR)/texinfo; \
27725 cd "$(HOST_SUBDIR)/texinfo" || exit 1; \
4977bab6 27726 case $(srcdir) in \
215c351a
PB
27727 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
27728 *) topdir=`echo $(HOST_SUBDIR)/texinfo/ | \
27729 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 27730 esac; \
215c351a
PB
27731 srcdiroption="--srcdir=$${topdir}/texinfo"; \
27732 libsrcdir="$$s/texinfo"; \
4977bab6 27733 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 27734 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 27735 || exit 1
d32ab992 27736@endif texinfo
4977bab6 27737
25b42232
PB
27738
27739
ce406537
PB
27740
27741
d32ab992
PB
27742.PHONY: all-texinfo maybe-all-texinfo
27743maybe-all-texinfo:
3ff3adad
PB
27744@if gcc-bootstrap
27745all-texinfo: stage_current
27746@endif gcc-bootstrap
d32ab992 27747@if texinfo
7e0b5752 27748TARGET-texinfo=all
d32ab992
PB
27749maybe-all-texinfo: all-texinfo
27750all-texinfo: configure-texinfo
f41d6665 27751 @: $(MAKE); $(unstage)
8c90b13a
L
27752 @r=`${PWD_COMMAND}`; export r; \
27753 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27754 $(HOST_EXPORTS) \
215c351a
PB
27755 (cd $(HOST_SUBDIR)/texinfo && \
27756 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-texinfo))
d32ab992 27757@endif texinfo
4977bab6 27758
25b42232 27759
ce406537
PB
27760
27761
d32ab992
PB
27762.PHONY: check-texinfo maybe-check-texinfo
27763maybe-check-texinfo:
27764@if texinfo
27765maybe-check-texinfo: check-texinfo
4977bab6 27766
d32ab992 27767check-texinfo:
f41d6665 27768 @: $(MAKE); $(unstage)
295f4e42
NN
27769 @r=`${PWD_COMMAND}`; export r; \
27770 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27771 $(HOST_EXPORTS) \
215c351a
PB
27772 (cd $(HOST_SUBDIR)/texinfo && \
27773 $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6 27774
d32ab992 27775@endif texinfo
4977bab6 27776
d32ab992
PB
27777.PHONY: install-texinfo maybe-install-texinfo
27778maybe-install-texinfo:
27779@if texinfo
27780maybe-install-texinfo: install-texinfo
7e2dbcef 27781
d32ab992 27782install-texinfo:
295f4e42 27783
d32ab992 27784@endif texinfo
295f4e42 27785
b5422ad7 27786# Other targets (info, dvi, pdf, etc.)
295f4e42 27787
d32ab992
PB
27788.PHONY: maybe-info-texinfo info-texinfo
27789maybe-info-texinfo:
27790@if texinfo
27791maybe-info-texinfo: info-texinfo
295f4e42 27792
d32ab992 27793info-texinfo: \
05750653 27794 configure-texinfo
f41d6665 27795 @: $(MAKE); $(unstage)
d32ab992 27796 @[ -f ./texinfo/Makefile ] || exit 0; \
295f4e42
NN
27797 r=`${PWD_COMMAND}`; export r; \
27798 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27799 $(HOST_EXPORTS) \
d32ab992 27800 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27801 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27802 done; \
d32ab992 27803 echo "Doing info in texinfo" ; \
215c351a 27804 (cd $(HOST_SUBDIR)/texinfo && \
295f4e42
NN
27805 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27806 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27807 "RANLIB=$${RANLIB}" \
27808 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27809 info) \
295f4e42
NN
27810 || exit 1
27811
d32ab992 27812@endif texinfo
295f4e42 27813
d32ab992
PB
27814.PHONY: maybe-dvi-texinfo dvi-texinfo
27815maybe-dvi-texinfo:
27816@if texinfo
27817maybe-dvi-texinfo: dvi-texinfo
295f4e42 27818
d32ab992 27819dvi-texinfo: \
05750653 27820 configure-texinfo
f41d6665 27821 @: $(MAKE); $(unstage)
d32ab992 27822 @[ -f ./texinfo/Makefile ] || exit 0; \
295f4e42
NN
27823 r=`${PWD_COMMAND}`; export r; \
27824 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27825 $(HOST_EXPORTS) \
d32ab992 27826 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27827 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27828 done; \
d32ab992 27829 echo "Doing dvi in texinfo" ; \
215c351a 27830 (cd $(HOST_SUBDIR)/texinfo && \
295f4e42
NN
27831 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27832 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27833 "RANLIB=$${RANLIB}" \
27834 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27835 dvi) \
295f4e42
NN
27836 || exit 1
27837
d32ab992 27838@endif texinfo
295f4e42 27839
b5422ad7
BM
27840.PHONY: maybe-pdf-texinfo pdf-texinfo
27841maybe-pdf-texinfo:
27842@if texinfo
27843maybe-pdf-texinfo: pdf-texinfo
27844
27845pdf-texinfo: \
27846 configure-texinfo
27847 @: $(MAKE); $(unstage)
27848 @[ -f ./texinfo/Makefile ] || exit 0; \
27849 r=`${PWD_COMMAND}`; export r; \
27850 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27851 $(HOST_EXPORTS) \
27852 for flag in $(EXTRA_HOST_FLAGS) ; do \
27853 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27854 done; \
27855 echo "Doing pdf in texinfo" ; \
27856 (cd $(HOST_SUBDIR)/texinfo && \
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}" \
27861 pdf) \
27862 || exit 1
27863
27864@endif texinfo
27865
f87a2b2e
MS
27866.PHONY: maybe-html-texinfo html-texinfo
27867maybe-html-texinfo:
27868@if texinfo
27869maybe-html-texinfo: html-texinfo
27870
27871html-texinfo: \
05750653 27872 configure-texinfo
f41d6665 27873 @: $(MAKE); $(unstage)
f87a2b2e
MS
27874 @[ -f ./texinfo/Makefile ] || exit 0; \
27875 r=`${PWD_COMMAND}`; export r; \
27876 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
27877 $(HOST_EXPORTS) \
27878 for flag in $(EXTRA_HOST_FLAGS) ; do \
27879 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27880 done; \
27881 echo "Doing html in texinfo" ; \
215c351a 27882 (cd $(HOST_SUBDIR)/texinfo && \
f87a2b2e
MS
27883 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27884 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27885 "RANLIB=$${RANLIB}" \
27886 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
27887 html) \
27888 || exit 1
27889
27890@endif texinfo
27891
d32ab992
PB
27892.PHONY: maybe-TAGS-texinfo TAGS-texinfo
27893maybe-TAGS-texinfo:
27894@if texinfo
27895maybe-TAGS-texinfo: TAGS-texinfo
295f4e42 27896
d32ab992 27897TAGS-texinfo: \
05750653 27898 configure-texinfo
f41d6665 27899 @: $(MAKE); $(unstage)
d32ab992 27900 @[ -f ./texinfo/Makefile ] || exit 0; \
295f4e42
NN
27901 r=`${PWD_COMMAND}`; export r; \
27902 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27903 $(HOST_EXPORTS) \
d32ab992 27904 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27905 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27906 done; \
d32ab992 27907 echo "Doing TAGS in texinfo" ; \
215c351a 27908 (cd $(HOST_SUBDIR)/texinfo && \
295f4e42
NN
27909 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27910 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27911 "RANLIB=$${RANLIB}" \
27912 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27913 TAGS) \
295f4e42
NN
27914 || exit 1
27915
d32ab992 27916@endif texinfo
295f4e42 27917
d32ab992
PB
27918.PHONY: maybe-install-info-texinfo install-info-texinfo
27919maybe-install-info-texinfo:
27920@if texinfo
27921maybe-install-info-texinfo: install-info-texinfo
295f4e42 27922
d32ab992
PB
27923install-info-texinfo: \
27924 configure-texinfo \
05750653 27925 info-texinfo
f41d6665 27926 @: $(MAKE); $(unstage)
d32ab992 27927 @[ -f ./texinfo/Makefile ] || exit 0; \
295f4e42
NN
27928 r=`${PWD_COMMAND}`; export r; \
27929 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27930 $(HOST_EXPORTS) \
d32ab992 27931 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27932 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27933 done; \
d32ab992 27934 echo "Doing install-info in texinfo" ; \
215c351a 27935 (cd $(HOST_SUBDIR)/texinfo && \
295f4e42
NN
27936 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27937 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27938 "RANLIB=$${RANLIB}" \
27939 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27940 install-info) \
295f4e42
NN
27941 || exit 1
27942
d32ab992 27943@endif texinfo
295f4e42 27944
65d6e994
CD
27945.PHONY: maybe-install-html-texinfo install-html-texinfo
27946maybe-install-html-texinfo:
27947@if texinfo
27948maybe-install-html-texinfo: install-html-texinfo
27949
27950install-html-texinfo: \
27951 configure-texinfo \
27952 html-texinfo
27953 @: $(MAKE); $(unstage)
27954 @[ -f ./texinfo/Makefile ] || exit 0; \
27955 r=`${PWD_COMMAND}`; export r; \
27956 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
27957 $(HOST_EXPORTS) \
27958 for flag in $(EXTRA_HOST_FLAGS) ; do \
27959 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27960 done; \
27961 echo "Doing install-html in texinfo" ; \
27962 (cd $(HOST_SUBDIR)/texinfo && \
27963 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27964 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27965 "RANLIB=$${RANLIB}" \
27966 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
27967 install-html) \
27968 || exit 1
27969
27970@endif texinfo
27971
d32ab992
PB
27972.PHONY: maybe-installcheck-texinfo installcheck-texinfo
27973maybe-installcheck-texinfo:
27974@if texinfo
27975maybe-installcheck-texinfo: installcheck-texinfo
295f4e42 27976
d32ab992 27977installcheck-texinfo: \
05750653 27978 configure-texinfo
f41d6665 27979 @: $(MAKE); $(unstage)
d32ab992 27980 @[ -f ./texinfo/Makefile ] || exit 0; \
295f4e42
NN
27981 r=`${PWD_COMMAND}`; export r; \
27982 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 27983 $(HOST_EXPORTS) \
d32ab992 27984 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
27985 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
27986 done; \
d32ab992 27987 echo "Doing installcheck in texinfo" ; \
215c351a 27988 (cd $(HOST_SUBDIR)/texinfo && \
295f4e42
NN
27989 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
27990 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
27991 "RANLIB=$${RANLIB}" \
27992 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 27993 installcheck) \
295f4e42
NN
27994 || exit 1
27995
d32ab992 27996@endif texinfo
295f4e42 27997
d32ab992
PB
27998.PHONY: maybe-mostlyclean-texinfo mostlyclean-texinfo
27999maybe-mostlyclean-texinfo:
28000@if texinfo
28001maybe-mostlyclean-texinfo: mostlyclean-texinfo
295f4e42 28002
05750653 28003mostlyclean-texinfo:
f41d6665 28004 @: $(MAKE); $(unstage)
d32ab992 28005 @[ -f ./texinfo/Makefile ] || exit 0; \
295f4e42
NN
28006 r=`${PWD_COMMAND}`; export r; \
28007 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28008 $(HOST_EXPORTS) \
d32ab992 28009 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
28010 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28011 done; \
d32ab992 28012 echo "Doing mostlyclean in texinfo" ; \
215c351a 28013 (cd $(HOST_SUBDIR)/texinfo && \
295f4e42
NN
28014 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28015 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28016 "RANLIB=$${RANLIB}" \
28017 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 28018 mostlyclean) \
295f4e42
NN
28019 || exit 1
28020
d32ab992 28021@endif texinfo
295f4e42 28022
d32ab992
PB
28023.PHONY: maybe-clean-texinfo clean-texinfo
28024maybe-clean-texinfo:
28025@if texinfo
28026maybe-clean-texinfo: clean-texinfo
295f4e42 28027
05750653 28028clean-texinfo:
f41d6665 28029 @: $(MAKE); $(unstage)
d32ab992 28030 @[ -f ./texinfo/Makefile ] || exit 0; \
295f4e42
NN
28031 r=`${PWD_COMMAND}`; export r; \
28032 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28033 $(HOST_EXPORTS) \
d32ab992 28034 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
28035 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28036 done; \
d32ab992 28037 echo "Doing clean in texinfo" ; \
215c351a 28038 (cd $(HOST_SUBDIR)/texinfo && \
295f4e42
NN
28039 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28040 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28041 "RANLIB=$${RANLIB}" \
28042 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 28043 clean) \
295f4e42
NN
28044 || exit 1
28045
d32ab992 28046@endif texinfo
295f4e42 28047
d32ab992
PB
28048.PHONY: maybe-distclean-texinfo distclean-texinfo
28049maybe-distclean-texinfo:
28050@if texinfo
28051maybe-distclean-texinfo: distclean-texinfo
295f4e42 28052
05750653 28053distclean-texinfo:
f41d6665 28054 @: $(MAKE); $(unstage)
d32ab992 28055 @[ -f ./texinfo/Makefile ] || exit 0; \
295f4e42
NN
28056 r=`${PWD_COMMAND}`; export r; \
28057 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28058 $(HOST_EXPORTS) \
d32ab992 28059 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
28060 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28061 done; \
d32ab992 28062 echo "Doing distclean in texinfo" ; \
215c351a 28063 (cd $(HOST_SUBDIR)/texinfo && \
295f4e42
NN
28064 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28065 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28066 "RANLIB=$${RANLIB}" \
28067 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 28068 distclean) \
295f4e42
NN
28069 || exit 1
28070
d32ab992 28071@endif texinfo
295f4e42 28072
d32ab992
PB
28073.PHONY: maybe-maintainer-clean-texinfo maintainer-clean-texinfo
28074maybe-maintainer-clean-texinfo:
28075@if texinfo
28076maybe-maintainer-clean-texinfo: maintainer-clean-texinfo
295f4e42 28077
05750653 28078maintainer-clean-texinfo:
f41d6665 28079 @: $(MAKE); $(unstage)
d32ab992 28080 @[ -f ./texinfo/Makefile ] || exit 0; \
295f4e42
NN
28081 r=`${PWD_COMMAND}`; export r; \
28082 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28083 $(HOST_EXPORTS) \
d32ab992 28084 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
28085 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28086 done; \
d32ab992 28087 echo "Doing maintainer-clean in texinfo" ; \
215c351a 28088 (cd $(HOST_SUBDIR)/texinfo && \
295f4e42
NN
28089 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28090 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28091 "RANLIB=$${RANLIB}" \
28092 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 28093 maintainer-clean) \
295f4e42 28094 || exit 1
4977bab6 28095
d32ab992 28096@endif texinfo
4977bab6 28097
295f4e42 28098
25b42232 28099
d32ab992
PB
28100.PHONY: configure-textutils maybe-configure-textutils
28101maybe-configure-textutils:
3ff3adad
PB
28102@if gcc-bootstrap
28103configure-textutils: stage_current
28104@endif gcc-bootstrap
d32ab992
PB
28105@if textutils
28106maybe-configure-textutils: configure-textutils
cc11cc9b 28107configure-textutils:
f41d6665 28108 @: $(MAKE); $(unstage)
cc11cc9b 28109 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 28110 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
28111 test ! -f $(HOST_SUBDIR)/textutils/Makefile || exit 0; \
28112 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/textutils ; \
4fc4dd12 28113 $(HOST_EXPORTS) \
25b42232
PB
28114 echo Configuring in $(HOST_SUBDIR)/textutils; \
28115 cd "$(HOST_SUBDIR)/textutils" || exit 1; \
4977bab6 28116 case $(srcdir) in \
215c351a
PB
28117 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
28118 *) topdir=`echo $(HOST_SUBDIR)/textutils/ | \
28119 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 28120 esac; \
215c351a
PB
28121 srcdiroption="--srcdir=$${topdir}/textutils"; \
28122 libsrcdir="$$s/textutils"; \
4977bab6 28123 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 28124 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 28125 || exit 1
d32ab992 28126@endif textutils
4977bab6 28127
25b42232
PB
28128
28129
ce406537
PB
28130
28131
d32ab992
PB
28132.PHONY: all-textutils maybe-all-textutils
28133maybe-all-textutils:
3ff3adad
PB
28134@if gcc-bootstrap
28135all-textutils: stage_current
28136@endif gcc-bootstrap
d32ab992 28137@if textutils
7e0b5752 28138TARGET-textutils=all
d32ab992
PB
28139maybe-all-textutils: all-textutils
28140all-textutils: configure-textutils
f41d6665 28141 @: $(MAKE); $(unstage)
8c90b13a
L
28142 @r=`${PWD_COMMAND}`; export r; \
28143 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28144 $(HOST_EXPORTS) \
215c351a
PB
28145 (cd $(HOST_SUBDIR)/textutils && \
28146 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-textutils))
d32ab992 28147@endif textutils
4977bab6 28148
25b42232 28149
ce406537
PB
28150
28151
d32ab992
PB
28152.PHONY: check-textutils maybe-check-textutils
28153maybe-check-textutils:
28154@if textutils
28155maybe-check-textutils: check-textutils
4977bab6 28156
d32ab992 28157check-textutils:
f41d6665 28158 @: $(MAKE); $(unstage)
8c90b13a
L
28159 @r=`${PWD_COMMAND}`; export r; \
28160 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28161 $(HOST_EXPORTS) \
215c351a
PB
28162 (cd $(HOST_SUBDIR)/textutils && \
28163 $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6 28164
d32ab992 28165@endif textutils
4977bab6 28166
d32ab992
PB
28167.PHONY: install-textutils maybe-install-textutils
28168maybe-install-textutils:
28169@if textutils
28170maybe-install-textutils: install-textutils
295f4e42 28171
d32ab992 28172install-textutils: installdirs
f41d6665 28173 @: $(MAKE); $(unstage)
295f4e42
NN
28174 @r=`${PWD_COMMAND}`; export r; \
28175 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28176 $(HOST_EXPORTS) \
215c351a 28177 (cd $(HOST_SUBDIR)/textutils && \
ace9ac7b 28178 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 28179
d32ab992 28180@endif textutils
295f4e42 28181
b5422ad7 28182# Other targets (info, dvi, pdf, etc.)
295f4e42 28183
d32ab992
PB
28184.PHONY: maybe-info-textutils info-textutils
28185maybe-info-textutils:
28186@if textutils
28187maybe-info-textutils: info-textutils
295f4e42 28188
d32ab992 28189info-textutils: \
05750653 28190 configure-textutils
f41d6665 28191 @: $(MAKE); $(unstage)
d32ab992 28192 @[ -f ./textutils/Makefile ] || exit 0; \
295f4e42
NN
28193 r=`${PWD_COMMAND}`; export r; \
28194 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28195 $(HOST_EXPORTS) \
d32ab992 28196 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
28197 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28198 done; \
d32ab992 28199 echo "Doing info in textutils" ; \
215c351a 28200 (cd $(HOST_SUBDIR)/textutils && \
295f4e42
NN
28201 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28202 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28203 "RANLIB=$${RANLIB}" \
28204 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 28205 info) \
295f4e42
NN
28206 || exit 1
28207
d32ab992 28208@endif textutils
295f4e42 28209
d32ab992
PB
28210.PHONY: maybe-dvi-textutils dvi-textutils
28211maybe-dvi-textutils:
28212@if textutils
28213maybe-dvi-textutils: dvi-textutils
295f4e42 28214
d32ab992 28215dvi-textutils: \
05750653 28216 configure-textutils
f41d6665 28217 @: $(MAKE); $(unstage)
d32ab992 28218 @[ -f ./textutils/Makefile ] || exit 0; \
295f4e42
NN
28219 r=`${PWD_COMMAND}`; export r; \
28220 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28221 $(HOST_EXPORTS) \
d32ab992 28222 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
28223 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28224 done; \
d32ab992 28225 echo "Doing dvi in textutils" ; \
215c351a 28226 (cd $(HOST_SUBDIR)/textutils && \
295f4e42
NN
28227 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28228 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28229 "RANLIB=$${RANLIB}" \
28230 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 28231 dvi) \
295f4e42
NN
28232 || exit 1
28233
d32ab992 28234@endif textutils
295f4e42 28235
b5422ad7
BM
28236.PHONY: maybe-pdf-textutils pdf-textutils
28237maybe-pdf-textutils:
28238@if textutils
28239maybe-pdf-textutils: pdf-textutils
28240
28241pdf-textutils: \
28242 configure-textutils
28243 @: $(MAKE); $(unstage)
28244 @[ -f ./textutils/Makefile ] || exit 0; \
28245 r=`${PWD_COMMAND}`; export r; \
28246 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28247 $(HOST_EXPORTS) \
28248 for flag in $(EXTRA_HOST_FLAGS) ; do \
28249 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28250 done; \
28251 echo "Doing pdf in textutils" ; \
28252 (cd $(HOST_SUBDIR)/textutils && \
28253 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28254 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28255 "RANLIB=$${RANLIB}" \
28256 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
28257 pdf) \
28258 || exit 1
28259
28260@endif textutils
28261
f87a2b2e
MS
28262.PHONY: maybe-html-textutils html-textutils
28263maybe-html-textutils:
28264@if textutils
28265maybe-html-textutils: html-textutils
28266
28267html-textutils: \
05750653 28268 configure-textutils
f41d6665 28269 @: $(MAKE); $(unstage)
f87a2b2e
MS
28270 @[ -f ./textutils/Makefile ] || exit 0; \
28271 r=`${PWD_COMMAND}`; export r; \
28272 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
28273 $(HOST_EXPORTS) \
28274 for flag in $(EXTRA_HOST_FLAGS) ; do \
28275 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28276 done; \
28277 echo "Doing html in textutils" ; \
215c351a 28278 (cd $(HOST_SUBDIR)/textutils && \
f87a2b2e
MS
28279 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28280 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28281 "RANLIB=$${RANLIB}" \
28282 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
28283 html) \
28284 || exit 1
28285
28286@endif textutils
28287
d32ab992
PB
28288.PHONY: maybe-TAGS-textutils TAGS-textutils
28289maybe-TAGS-textutils:
28290@if textutils
28291maybe-TAGS-textutils: TAGS-textutils
295f4e42 28292
d32ab992 28293TAGS-textutils: \
05750653 28294 configure-textutils
f41d6665 28295 @: $(MAKE); $(unstage)
d32ab992 28296 @[ -f ./textutils/Makefile ] || exit 0; \
295f4e42
NN
28297 r=`${PWD_COMMAND}`; export r; \
28298 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28299 $(HOST_EXPORTS) \
d32ab992 28300 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
28301 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28302 done; \
d32ab992 28303 echo "Doing TAGS in textutils" ; \
215c351a 28304 (cd $(HOST_SUBDIR)/textutils && \
295f4e42
NN
28305 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28306 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28307 "RANLIB=$${RANLIB}" \
28308 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 28309 TAGS) \
295f4e42
NN
28310 || exit 1
28311
d32ab992 28312@endif textutils
295f4e42 28313
d32ab992
PB
28314.PHONY: maybe-install-info-textutils install-info-textutils
28315maybe-install-info-textutils:
28316@if textutils
28317maybe-install-info-textutils: install-info-textutils
295f4e42 28318
d32ab992
PB
28319install-info-textutils: \
28320 configure-textutils \
05750653 28321 info-textutils
f41d6665 28322 @: $(MAKE); $(unstage)
d32ab992 28323 @[ -f ./textutils/Makefile ] || exit 0; \
295f4e42
NN
28324 r=`${PWD_COMMAND}`; export r; \
28325 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28326 $(HOST_EXPORTS) \
d32ab992 28327 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
28328 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28329 done; \
d32ab992 28330 echo "Doing install-info in textutils" ; \
215c351a 28331 (cd $(HOST_SUBDIR)/textutils && \
295f4e42
NN
28332 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28333 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28334 "RANLIB=$${RANLIB}" \
28335 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 28336 install-info) \
295f4e42
NN
28337 || exit 1
28338
d32ab992 28339@endif textutils
295f4e42 28340
65d6e994
CD
28341.PHONY: maybe-install-html-textutils install-html-textutils
28342maybe-install-html-textutils:
28343@if textutils
28344maybe-install-html-textutils: install-html-textutils
28345
28346install-html-textutils: \
28347 configure-textutils \
28348 html-textutils
28349 @: $(MAKE); $(unstage)
28350 @[ -f ./textutils/Makefile ] || exit 0; \
28351 r=`${PWD_COMMAND}`; export r; \
28352 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28353 $(HOST_EXPORTS) \
28354 for flag in $(EXTRA_HOST_FLAGS) ; do \
28355 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28356 done; \
28357 echo "Doing install-html in textutils" ; \
28358 (cd $(HOST_SUBDIR)/textutils && \
28359 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28360 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28361 "RANLIB=$${RANLIB}" \
28362 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
28363 install-html) \
28364 || exit 1
28365
28366@endif textutils
28367
d32ab992
PB
28368.PHONY: maybe-installcheck-textutils installcheck-textutils
28369maybe-installcheck-textutils:
28370@if textutils
28371maybe-installcheck-textutils: installcheck-textutils
295f4e42 28372
d32ab992 28373installcheck-textutils: \
05750653 28374 configure-textutils
f41d6665 28375 @: $(MAKE); $(unstage)
d32ab992 28376 @[ -f ./textutils/Makefile ] || exit 0; \
295f4e42
NN
28377 r=`${PWD_COMMAND}`; export r; \
28378 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28379 $(HOST_EXPORTS) \
d32ab992 28380 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
28381 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28382 done; \
d32ab992 28383 echo "Doing installcheck in textutils" ; \
215c351a 28384 (cd $(HOST_SUBDIR)/textutils && \
295f4e42
NN
28385 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28386 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28387 "RANLIB=$${RANLIB}" \
28388 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 28389 installcheck) \
295f4e42
NN
28390 || exit 1
28391
d32ab992 28392@endif textutils
295f4e42 28393
d32ab992
PB
28394.PHONY: maybe-mostlyclean-textutils mostlyclean-textutils
28395maybe-mostlyclean-textutils:
28396@if textutils
28397maybe-mostlyclean-textutils: mostlyclean-textutils
295f4e42 28398
05750653 28399mostlyclean-textutils:
f41d6665 28400 @: $(MAKE); $(unstage)
d32ab992 28401 @[ -f ./textutils/Makefile ] || exit 0; \
295f4e42
NN
28402 r=`${PWD_COMMAND}`; export r; \
28403 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28404 $(HOST_EXPORTS) \
d32ab992 28405 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
28406 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28407 done; \
d32ab992 28408 echo "Doing mostlyclean in textutils" ; \
215c351a 28409 (cd $(HOST_SUBDIR)/textutils && \
295f4e42
NN
28410 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28411 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28412 "RANLIB=$${RANLIB}" \
28413 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 28414 mostlyclean) \
295f4e42
NN
28415 || exit 1
28416
d32ab992 28417@endif textutils
295f4e42 28418
d32ab992
PB
28419.PHONY: maybe-clean-textutils clean-textutils
28420maybe-clean-textutils:
28421@if textutils
28422maybe-clean-textutils: clean-textutils
295f4e42 28423
05750653 28424clean-textutils:
f41d6665 28425 @: $(MAKE); $(unstage)
d32ab992 28426 @[ -f ./textutils/Makefile ] || exit 0; \
295f4e42
NN
28427 r=`${PWD_COMMAND}`; export r; \
28428 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28429 $(HOST_EXPORTS) \
d32ab992 28430 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
28431 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28432 done; \
d32ab992 28433 echo "Doing clean in textutils" ; \
215c351a 28434 (cd $(HOST_SUBDIR)/textutils && \
295f4e42
NN
28435 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28436 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28437 "RANLIB=$${RANLIB}" \
28438 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 28439 clean) \
295f4e42
NN
28440 || exit 1
28441
d32ab992 28442@endif textutils
295f4e42 28443
d32ab992
PB
28444.PHONY: maybe-distclean-textutils distclean-textutils
28445maybe-distclean-textutils:
28446@if textutils
28447maybe-distclean-textutils: distclean-textutils
295f4e42 28448
05750653 28449distclean-textutils:
f41d6665 28450 @: $(MAKE); $(unstage)
d32ab992 28451 @[ -f ./textutils/Makefile ] || exit 0; \
295f4e42
NN
28452 r=`${PWD_COMMAND}`; export r; \
28453 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28454 $(HOST_EXPORTS) \
d32ab992 28455 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
28456 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28457 done; \
d32ab992 28458 echo "Doing distclean in textutils" ; \
215c351a 28459 (cd $(HOST_SUBDIR)/textutils && \
295f4e42
NN
28460 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28461 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28462 "RANLIB=$${RANLIB}" \
28463 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 28464 distclean) \
295f4e42
NN
28465 || exit 1
28466
d32ab992 28467@endif textutils
295f4e42 28468
d32ab992
PB
28469.PHONY: maybe-maintainer-clean-textutils maintainer-clean-textutils
28470maybe-maintainer-clean-textutils:
28471@if textutils
28472maybe-maintainer-clean-textutils: maintainer-clean-textutils
295f4e42 28473
05750653 28474maintainer-clean-textutils:
f41d6665 28475 @: $(MAKE); $(unstage)
d32ab992 28476 @[ -f ./textutils/Makefile ] || exit 0; \
295f4e42
NN
28477 r=`${PWD_COMMAND}`; export r; \
28478 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28479 $(HOST_EXPORTS) \
d32ab992 28480 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
28481 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28482 done; \
d32ab992 28483 echo "Doing maintainer-clean in textutils" ; \
215c351a 28484 (cd $(HOST_SUBDIR)/textutils && \
295f4e42
NN
28485 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28486 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28487 "RANLIB=$${RANLIB}" \
28488 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 28489 maintainer-clean) \
295f4e42 28490 || exit 1
7e2dbcef 28491
d32ab992 28492@endif textutils
4977bab6
ZW
28493
28494
25b42232 28495
d32ab992
PB
28496.PHONY: configure-time maybe-configure-time
28497maybe-configure-time:
3ff3adad
PB
28498@if gcc-bootstrap
28499configure-time: stage_current
28500@endif gcc-bootstrap
d32ab992
PB
28501@if time
28502maybe-configure-time: configure-time
cc11cc9b 28503configure-time:
f41d6665 28504 @: $(MAKE); $(unstage)
cc11cc9b 28505 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 28506 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
28507 test ! -f $(HOST_SUBDIR)/time/Makefile || exit 0; \
28508 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/time ; \
4fc4dd12 28509 $(HOST_EXPORTS) \
25b42232
PB
28510 echo Configuring in $(HOST_SUBDIR)/time; \
28511 cd "$(HOST_SUBDIR)/time" || exit 1; \
4977bab6 28512 case $(srcdir) in \
215c351a
PB
28513 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
28514 *) topdir=`echo $(HOST_SUBDIR)/time/ | \
28515 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 28516 esac; \
215c351a
PB
28517 srcdiroption="--srcdir=$${topdir}/time"; \
28518 libsrcdir="$$s/time"; \
4977bab6 28519 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 28520 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 28521 || exit 1
d32ab992 28522@endif time
4977bab6 28523
25b42232
PB
28524
28525
ce406537
PB
28526
28527
d32ab992
PB
28528.PHONY: all-time maybe-all-time
28529maybe-all-time:
3ff3adad
PB
28530@if gcc-bootstrap
28531all-time: stage_current
28532@endif gcc-bootstrap
d32ab992 28533@if time
7e0b5752 28534TARGET-time=all
d32ab992
PB
28535maybe-all-time: all-time
28536all-time: configure-time
f41d6665 28537 @: $(MAKE); $(unstage)
8c90b13a
L
28538 @r=`${PWD_COMMAND}`; export r; \
28539 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28540 $(HOST_EXPORTS) \
215c351a
PB
28541 (cd $(HOST_SUBDIR)/time && \
28542 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-time))
d32ab992 28543@endif time
4977bab6 28544
25b42232 28545
ce406537
PB
28546
28547
d32ab992
PB
28548.PHONY: check-time maybe-check-time
28549maybe-check-time:
28550@if time
28551maybe-check-time: check-time
4977bab6 28552
d32ab992 28553check-time:
f41d6665 28554 @: $(MAKE); $(unstage)
8c90b13a
L
28555 @r=`${PWD_COMMAND}`; export r; \
28556 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28557 $(HOST_EXPORTS) \
215c351a
PB
28558 (cd $(HOST_SUBDIR)/time && \
28559 $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6 28560
d32ab992 28561@endif time
4977bab6 28562
d32ab992
PB
28563.PHONY: install-time maybe-install-time
28564maybe-install-time:
28565@if time
28566maybe-install-time: install-time
7e2dbcef 28567
d32ab992 28568install-time: installdirs
f41d6665 28569 @: $(MAKE); $(unstage)
8c90b13a
L
28570 @r=`${PWD_COMMAND}`; export r; \
28571 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28572 $(HOST_EXPORTS) \
215c351a 28573 (cd $(HOST_SUBDIR)/time && \
ace9ac7b 28574 $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6 28575
d32ab992 28576@endif time
4977bab6 28577
b5422ad7 28578# Other targets (info, dvi, pdf, etc.)
295f4e42 28579
d32ab992
PB
28580.PHONY: maybe-info-time info-time
28581maybe-info-time:
28582@if time
28583maybe-info-time: info-time
295f4e42 28584
d32ab992 28585info-time: \
05750653 28586 configure-time
f41d6665 28587 @: $(MAKE); $(unstage)
d32ab992 28588 @[ -f ./time/Makefile ] || exit 0; \
295f4e42
NN
28589 r=`${PWD_COMMAND}`; export r; \
28590 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28591 $(HOST_EXPORTS) \
d32ab992 28592 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
28593 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28594 done; \
d32ab992 28595 echo "Doing info in time" ; \
215c351a 28596 (cd $(HOST_SUBDIR)/time && \
295f4e42
NN
28597 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28598 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28599 "RANLIB=$${RANLIB}" \
28600 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 28601 info) \
295f4e42
NN
28602 || exit 1
28603
d32ab992 28604@endif time
295f4e42 28605
d32ab992
PB
28606.PHONY: maybe-dvi-time dvi-time
28607maybe-dvi-time:
28608@if time
28609maybe-dvi-time: dvi-time
295f4e42 28610
d32ab992 28611dvi-time: \
05750653 28612 configure-time
f41d6665 28613 @: $(MAKE); $(unstage)
d32ab992 28614 @[ -f ./time/Makefile ] || exit 0; \
295f4e42
NN
28615 r=`${PWD_COMMAND}`; export r; \
28616 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28617 $(HOST_EXPORTS) \
d32ab992 28618 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
28619 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28620 done; \
d32ab992 28621 echo "Doing dvi in time" ; \
215c351a 28622 (cd $(HOST_SUBDIR)/time && \
295f4e42
NN
28623 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28624 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28625 "RANLIB=$${RANLIB}" \
28626 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 28627 dvi) \
295f4e42
NN
28628 || exit 1
28629
d32ab992 28630@endif time
295f4e42 28631
b5422ad7
BM
28632.PHONY: maybe-pdf-time pdf-time
28633maybe-pdf-time:
28634@if time
28635maybe-pdf-time: pdf-time
28636
28637pdf-time: \
28638 configure-time
28639 @: $(MAKE); $(unstage)
28640 @[ -f ./time/Makefile ] || exit 0; \
28641 r=`${PWD_COMMAND}`; export r; \
28642 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28643 $(HOST_EXPORTS) \
28644 for flag in $(EXTRA_HOST_FLAGS) ; do \
28645 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28646 done; \
28647 echo "Doing pdf in time" ; \
28648 (cd $(HOST_SUBDIR)/time && \
28649 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28650 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28651 "RANLIB=$${RANLIB}" \
28652 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
28653 pdf) \
28654 || exit 1
28655
28656@endif time
28657
f87a2b2e
MS
28658.PHONY: maybe-html-time html-time
28659maybe-html-time:
28660@if time
28661maybe-html-time: html-time
28662
28663html-time: \
05750653 28664 configure-time
f41d6665 28665 @: $(MAKE); $(unstage)
f87a2b2e
MS
28666 @[ -f ./time/Makefile ] || exit 0; \
28667 r=`${PWD_COMMAND}`; export r; \
28668 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
28669 $(HOST_EXPORTS) \
28670 for flag in $(EXTRA_HOST_FLAGS) ; do \
28671 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28672 done; \
28673 echo "Doing html in time" ; \
215c351a 28674 (cd $(HOST_SUBDIR)/time && \
f87a2b2e
MS
28675 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28676 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28677 "RANLIB=$${RANLIB}" \
28678 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
28679 html) \
28680 || exit 1
28681
28682@endif time
28683
d32ab992
PB
28684.PHONY: maybe-TAGS-time TAGS-time
28685maybe-TAGS-time:
28686@if time
28687maybe-TAGS-time: TAGS-time
295f4e42 28688
d32ab992 28689TAGS-time: \
05750653 28690 configure-time
f41d6665 28691 @: $(MAKE); $(unstage)
d32ab992 28692 @[ -f ./time/Makefile ] || exit 0; \
295f4e42
NN
28693 r=`${PWD_COMMAND}`; export r; \
28694 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28695 $(HOST_EXPORTS) \
d32ab992 28696 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
28697 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28698 done; \
d32ab992 28699 echo "Doing TAGS in time" ; \
215c351a 28700 (cd $(HOST_SUBDIR)/time && \
295f4e42
NN
28701 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28702 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28703 "RANLIB=$${RANLIB}" \
28704 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 28705 TAGS) \
295f4e42
NN
28706 || exit 1
28707
d32ab992 28708@endif time
295f4e42 28709
d32ab992
PB
28710.PHONY: maybe-install-info-time install-info-time
28711maybe-install-info-time:
28712@if time
28713maybe-install-info-time: install-info-time
295f4e42 28714
d32ab992
PB
28715install-info-time: \
28716 configure-time \
05750653 28717 info-time
f41d6665 28718 @: $(MAKE); $(unstage)
d32ab992 28719 @[ -f ./time/Makefile ] || exit 0; \
295f4e42
NN
28720 r=`${PWD_COMMAND}`; export r; \
28721 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28722 $(HOST_EXPORTS) \
d32ab992 28723 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
28724 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28725 done; \
d32ab992 28726 echo "Doing install-info in time" ; \
215c351a 28727 (cd $(HOST_SUBDIR)/time && \
295f4e42
NN
28728 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28729 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28730 "RANLIB=$${RANLIB}" \
28731 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 28732 install-info) \
295f4e42
NN
28733 || exit 1
28734
d32ab992 28735@endif time
295f4e42 28736
65d6e994
CD
28737.PHONY: maybe-install-html-time install-html-time
28738maybe-install-html-time:
28739@if time
28740maybe-install-html-time: install-html-time
28741
28742install-html-time: \
28743 configure-time \
28744 html-time
28745 @: $(MAKE); $(unstage)
28746 @[ -f ./time/Makefile ] || exit 0; \
28747 r=`${PWD_COMMAND}`; export r; \
28748 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
28749 $(HOST_EXPORTS) \
28750 for flag in $(EXTRA_HOST_FLAGS) ; do \
28751 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28752 done; \
28753 echo "Doing install-html in time" ; \
28754 (cd $(HOST_SUBDIR)/time && \
28755 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28756 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28757 "RANLIB=$${RANLIB}" \
28758 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
28759 install-html) \
28760 || exit 1
28761
28762@endif time
28763
d32ab992
PB
28764.PHONY: maybe-installcheck-time installcheck-time
28765maybe-installcheck-time:
28766@if time
28767maybe-installcheck-time: installcheck-time
295f4e42 28768
d32ab992 28769installcheck-time: \
05750653 28770 configure-time
f41d6665 28771 @: $(MAKE); $(unstage)
d32ab992 28772 @[ -f ./time/Makefile ] || exit 0; \
295f4e42
NN
28773 r=`${PWD_COMMAND}`; export r; \
28774 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28775 $(HOST_EXPORTS) \
d32ab992 28776 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
28777 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28778 done; \
d32ab992 28779 echo "Doing installcheck in time" ; \
215c351a 28780 (cd $(HOST_SUBDIR)/time && \
295f4e42
NN
28781 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28782 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28783 "RANLIB=$${RANLIB}" \
28784 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 28785 installcheck) \
295f4e42
NN
28786 || exit 1
28787
d32ab992 28788@endif time
295f4e42 28789
d32ab992
PB
28790.PHONY: maybe-mostlyclean-time mostlyclean-time
28791maybe-mostlyclean-time:
28792@if time
28793maybe-mostlyclean-time: mostlyclean-time
295f4e42 28794
05750653 28795mostlyclean-time:
f41d6665 28796 @: $(MAKE); $(unstage)
d32ab992 28797 @[ -f ./time/Makefile ] || exit 0; \
295f4e42
NN
28798 r=`${PWD_COMMAND}`; export r; \
28799 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28800 $(HOST_EXPORTS) \
d32ab992 28801 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
28802 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28803 done; \
d32ab992 28804 echo "Doing mostlyclean in time" ; \
215c351a 28805 (cd $(HOST_SUBDIR)/time && \
295f4e42
NN
28806 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28807 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28808 "RANLIB=$${RANLIB}" \
28809 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 28810 mostlyclean) \
295f4e42
NN
28811 || exit 1
28812
d32ab992 28813@endif time
295f4e42 28814
d32ab992
PB
28815.PHONY: maybe-clean-time clean-time
28816maybe-clean-time:
28817@if time
28818maybe-clean-time: clean-time
295f4e42 28819
05750653 28820clean-time:
f41d6665 28821 @: $(MAKE); $(unstage)
d32ab992 28822 @[ -f ./time/Makefile ] || exit 0; \
295f4e42
NN
28823 r=`${PWD_COMMAND}`; export r; \
28824 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28825 $(HOST_EXPORTS) \
d32ab992 28826 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
28827 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28828 done; \
d32ab992 28829 echo "Doing clean in time" ; \
215c351a 28830 (cd $(HOST_SUBDIR)/time && \
295f4e42
NN
28831 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28832 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28833 "RANLIB=$${RANLIB}" \
28834 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 28835 clean) \
295f4e42
NN
28836 || exit 1
28837
d32ab992 28838@endif time
295f4e42 28839
d32ab992
PB
28840.PHONY: maybe-distclean-time distclean-time
28841maybe-distclean-time:
28842@if time
28843maybe-distclean-time: distclean-time
295f4e42 28844
05750653 28845distclean-time:
f41d6665 28846 @: $(MAKE); $(unstage)
d32ab992 28847 @[ -f ./time/Makefile ] || exit 0; \
295f4e42
NN
28848 r=`${PWD_COMMAND}`; export r; \
28849 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28850 $(HOST_EXPORTS) \
d32ab992 28851 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
28852 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28853 done; \
d32ab992 28854 echo "Doing distclean in time" ; \
215c351a 28855 (cd $(HOST_SUBDIR)/time && \
295f4e42
NN
28856 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28857 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28858 "RANLIB=$${RANLIB}" \
28859 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 28860 distclean) \
295f4e42
NN
28861 || exit 1
28862
d32ab992 28863@endif time
295f4e42 28864
d32ab992
PB
28865.PHONY: maybe-maintainer-clean-time maintainer-clean-time
28866maybe-maintainer-clean-time:
28867@if time
28868maybe-maintainer-clean-time: maintainer-clean-time
295f4e42 28869
05750653 28870maintainer-clean-time:
f41d6665 28871 @: $(MAKE); $(unstage)
d32ab992 28872 @[ -f ./time/Makefile ] || exit 0; \
295f4e42
NN
28873 r=`${PWD_COMMAND}`; export r; \
28874 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28875 $(HOST_EXPORTS) \
d32ab992 28876 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
28877 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28878 done; \
d32ab992 28879 echo "Doing maintainer-clean in time" ; \
215c351a 28880 (cd $(HOST_SUBDIR)/time && \
295f4e42
NN
28881 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28882 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28883 "RANLIB=$${RANLIB}" \
28884 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 28885 maintainer-clean) \
295f4e42
NN
28886 || exit 1
28887
d32ab992 28888@endif time
295f4e42
NN
28889
28890
25b42232 28891
d32ab992
PB
28892.PHONY: configure-uudecode maybe-configure-uudecode
28893maybe-configure-uudecode:
3ff3adad
PB
28894@if gcc-bootstrap
28895configure-uudecode: stage_current
28896@endif gcc-bootstrap
d32ab992
PB
28897@if uudecode
28898maybe-configure-uudecode: configure-uudecode
cc11cc9b 28899configure-uudecode:
f41d6665 28900 @: $(MAKE); $(unstage)
cc11cc9b 28901 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 28902 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
28903 test ! -f $(HOST_SUBDIR)/uudecode/Makefile || exit 0; \
28904 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/uudecode ; \
4fc4dd12 28905 $(HOST_EXPORTS) \
25b42232
PB
28906 echo Configuring in $(HOST_SUBDIR)/uudecode; \
28907 cd "$(HOST_SUBDIR)/uudecode" || exit 1; \
4977bab6 28908 case $(srcdir) in \
215c351a
PB
28909 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
28910 *) topdir=`echo $(HOST_SUBDIR)/uudecode/ | \
28911 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 28912 esac; \
215c351a
PB
28913 srcdiroption="--srcdir=$${topdir}/uudecode"; \
28914 libsrcdir="$$s/uudecode"; \
4977bab6 28915 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 28916 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 28917 || exit 1
d32ab992 28918@endif uudecode
4977bab6 28919
25b42232
PB
28920
28921
ce406537
PB
28922
28923
d32ab992
PB
28924.PHONY: all-uudecode maybe-all-uudecode
28925maybe-all-uudecode:
3ff3adad
PB
28926@if gcc-bootstrap
28927all-uudecode: stage_current
28928@endif gcc-bootstrap
d32ab992 28929@if uudecode
7e0b5752 28930TARGET-uudecode=all
d32ab992
PB
28931maybe-all-uudecode: all-uudecode
28932all-uudecode: configure-uudecode
f41d6665 28933 @: $(MAKE); $(unstage)
8c90b13a
L
28934 @r=`${PWD_COMMAND}`; export r; \
28935 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28936 $(HOST_EXPORTS) \
215c351a
PB
28937 (cd $(HOST_SUBDIR)/uudecode && \
28938 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-uudecode))
d32ab992 28939@endif uudecode
4977bab6 28940
25b42232 28941
ce406537
PB
28942
28943
d32ab992
PB
28944.PHONY: check-uudecode maybe-check-uudecode
28945maybe-check-uudecode:
28946@if uudecode
28947maybe-check-uudecode: check-uudecode
4977bab6 28948
d32ab992 28949check-uudecode:
f41d6665 28950 @: $(MAKE); $(unstage)
8c90b13a
L
28951 @r=`${PWD_COMMAND}`; export r; \
28952 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28953 $(HOST_EXPORTS) \
215c351a
PB
28954 (cd $(HOST_SUBDIR)/uudecode && \
28955 $(MAKE) $(FLAGS_TO_PASS) check)
4977bab6 28956
d32ab992 28957@endif uudecode
4977bab6 28958
d32ab992
PB
28959.PHONY: install-uudecode maybe-install-uudecode
28960maybe-install-uudecode:
28961@if uudecode
28962maybe-install-uudecode: install-uudecode
7e2dbcef 28963
d32ab992 28964install-uudecode: installdirs
f41d6665 28965 @: $(MAKE); $(unstage)
8c90b13a
L
28966 @r=`${PWD_COMMAND}`; export r; \
28967 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28968 $(HOST_EXPORTS) \
215c351a 28969 (cd $(HOST_SUBDIR)/uudecode && \
ace9ac7b 28970 $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6 28971
d32ab992 28972@endif uudecode
4977bab6 28973
b5422ad7 28974# Other targets (info, dvi, pdf, etc.)
295f4e42 28975
d32ab992
PB
28976.PHONY: maybe-info-uudecode info-uudecode
28977maybe-info-uudecode:
28978@if uudecode
28979maybe-info-uudecode: info-uudecode
295f4e42 28980
d32ab992 28981info-uudecode: \
05750653 28982 configure-uudecode
f41d6665 28983 @: $(MAKE); $(unstage)
d32ab992 28984 @[ -f ./uudecode/Makefile ] || exit 0; \
8c90b13a
L
28985 r=`${PWD_COMMAND}`; export r; \
28986 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 28987 $(HOST_EXPORTS) \
d32ab992 28988 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
28989 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
28990 done; \
d32ab992 28991 echo "Doing info in uudecode" ; \
215c351a 28992 (cd $(HOST_SUBDIR)/uudecode && \
295f4e42
NN
28993 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
28994 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
28995 "RANLIB=$${RANLIB}" \
28996 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 28997 info) \
4977bab6
ZW
28998 || exit 1
28999
d32ab992 29000@endif uudecode
295f4e42 29001
d32ab992
PB
29002.PHONY: maybe-dvi-uudecode dvi-uudecode
29003maybe-dvi-uudecode:
29004@if uudecode
29005maybe-dvi-uudecode: dvi-uudecode
295f4e42 29006
d32ab992 29007dvi-uudecode: \
05750653 29008 configure-uudecode
f41d6665 29009 @: $(MAKE); $(unstage)
d32ab992 29010 @[ -f ./uudecode/Makefile ] || exit 0; \
295f4e42 29011 r=`${PWD_COMMAND}`; export r; \
8c90b13a 29012 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29013 $(HOST_EXPORTS) \
d32ab992 29014 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
29015 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29016 done; \
d32ab992 29017 echo "Doing dvi in uudecode" ; \
215c351a 29018 (cd $(HOST_SUBDIR)/uudecode && \
295f4e42
NN
29019 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29020 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29021 "RANLIB=$${RANLIB}" \
29022 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29023 dvi) \
295f4e42 29024 || exit 1
4977bab6 29025
d32ab992 29026@endif uudecode
4977bab6 29027
b5422ad7
BM
29028.PHONY: maybe-pdf-uudecode pdf-uudecode
29029maybe-pdf-uudecode:
29030@if uudecode
29031maybe-pdf-uudecode: pdf-uudecode
29032
29033pdf-uudecode: \
29034 configure-uudecode
29035 @: $(MAKE); $(unstage)
29036 @[ -f ./uudecode/Makefile ] || exit 0; \
29037 r=`${PWD_COMMAND}`; export r; \
29038 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29039 $(HOST_EXPORTS) \
29040 for flag in $(EXTRA_HOST_FLAGS) ; do \
29041 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29042 done; \
29043 echo "Doing pdf in uudecode" ; \
29044 (cd $(HOST_SUBDIR)/uudecode && \
29045 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29046 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29047 "RANLIB=$${RANLIB}" \
29048 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
29049 pdf) \
29050 || exit 1
29051
29052@endif uudecode
29053
f87a2b2e
MS
29054.PHONY: maybe-html-uudecode html-uudecode
29055maybe-html-uudecode:
29056@if uudecode
29057maybe-html-uudecode: html-uudecode
29058
29059html-uudecode: \
05750653 29060 configure-uudecode
f41d6665 29061 @: $(MAKE); $(unstage)
f87a2b2e
MS
29062 @[ -f ./uudecode/Makefile ] || exit 0; \
29063 r=`${PWD_COMMAND}`; export r; \
29064 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
29065 $(HOST_EXPORTS) \
29066 for flag in $(EXTRA_HOST_FLAGS) ; do \
29067 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29068 done; \
29069 echo "Doing html in uudecode" ; \
215c351a 29070 (cd $(HOST_SUBDIR)/uudecode && \
f87a2b2e
MS
29071 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29072 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29073 "RANLIB=$${RANLIB}" \
29074 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
29075 html) \
29076 || exit 1
29077
29078@endif uudecode
29079
d32ab992
PB
29080.PHONY: maybe-TAGS-uudecode TAGS-uudecode
29081maybe-TAGS-uudecode:
29082@if uudecode
29083maybe-TAGS-uudecode: TAGS-uudecode
295f4e42 29084
d32ab992 29085TAGS-uudecode: \
05750653 29086 configure-uudecode
f41d6665 29087 @: $(MAKE); $(unstage)
d32ab992
PB
29088 @[ -f ./uudecode/Makefile ] || exit 0; \
29089 r=`${PWD_COMMAND}`; export r; \
8c90b13a 29090 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29091 $(HOST_EXPORTS) \
d32ab992 29092 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
29093 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29094 done; \
d32ab992 29095 echo "Doing TAGS in uudecode" ; \
215c351a 29096 (cd $(HOST_SUBDIR)/uudecode && \
295f4e42
NN
29097 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29098 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29099 "RANLIB=$${RANLIB}" \
29100 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29101 TAGS) \
295f4e42 29102 || exit 1
4977bab6 29103
d32ab992 29104@endif uudecode
4977bab6 29105
d32ab992
PB
29106.PHONY: maybe-install-info-uudecode install-info-uudecode
29107maybe-install-info-uudecode:
29108@if uudecode
29109maybe-install-info-uudecode: install-info-uudecode
7e2dbcef 29110
d32ab992
PB
29111install-info-uudecode: \
29112 configure-uudecode \
05750653 29113 info-uudecode
f41d6665 29114 @: $(MAKE); $(unstage)
d32ab992 29115 @[ -f ./uudecode/Makefile ] || exit 0; \
295f4e42
NN
29116 r=`${PWD_COMMAND}`; export r; \
29117 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29118 $(HOST_EXPORTS) \
d32ab992 29119 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
29120 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29121 done; \
d32ab992 29122 echo "Doing install-info in uudecode" ; \
215c351a 29123 (cd $(HOST_SUBDIR)/uudecode && \
295f4e42
NN
29124 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29125 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29126 "RANLIB=$${RANLIB}" \
29127 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29128 install-info) \
295f4e42
NN
29129 || exit 1
29130
d32ab992 29131@endif uudecode
295f4e42 29132
65d6e994
CD
29133.PHONY: maybe-install-html-uudecode install-html-uudecode
29134maybe-install-html-uudecode:
29135@if uudecode
29136maybe-install-html-uudecode: install-html-uudecode
29137
29138install-html-uudecode: \
29139 configure-uudecode \
29140 html-uudecode
29141 @: $(MAKE); $(unstage)
29142 @[ -f ./uudecode/Makefile ] || exit 0; \
29143 r=`${PWD_COMMAND}`; export r; \
29144 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29145 $(HOST_EXPORTS) \
29146 for flag in $(EXTRA_HOST_FLAGS) ; do \
29147 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29148 done; \
29149 echo "Doing install-html in uudecode" ; \
29150 (cd $(HOST_SUBDIR)/uudecode && \
29151 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29152 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29153 "RANLIB=$${RANLIB}" \
29154 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
29155 install-html) \
29156 || exit 1
29157
29158@endif uudecode
29159
d32ab992
PB
29160.PHONY: maybe-installcheck-uudecode installcheck-uudecode
29161maybe-installcheck-uudecode:
29162@if uudecode
29163maybe-installcheck-uudecode: installcheck-uudecode
295f4e42 29164
d32ab992 29165installcheck-uudecode: \
05750653 29166 configure-uudecode
f41d6665 29167 @: $(MAKE); $(unstage)
d32ab992 29168 @[ -f ./uudecode/Makefile ] || exit 0; \
295f4e42
NN
29169 r=`${PWD_COMMAND}`; export r; \
29170 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29171 $(HOST_EXPORTS) \
d32ab992 29172 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
29173 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29174 done; \
d32ab992 29175 echo "Doing installcheck in uudecode" ; \
215c351a 29176 (cd $(HOST_SUBDIR)/uudecode && \
295f4e42
NN
29177 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29178 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29179 "RANLIB=$${RANLIB}" \
29180 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29181 installcheck) \
295f4e42
NN
29182 || exit 1
29183
d32ab992 29184@endif uudecode
295f4e42 29185
d32ab992
PB
29186.PHONY: maybe-mostlyclean-uudecode mostlyclean-uudecode
29187maybe-mostlyclean-uudecode:
29188@if uudecode
29189maybe-mostlyclean-uudecode: mostlyclean-uudecode
295f4e42 29190
05750653 29191mostlyclean-uudecode:
f41d6665 29192 @: $(MAKE); $(unstage)
d32ab992 29193 @[ -f ./uudecode/Makefile ] || exit 0; \
295f4e42
NN
29194 r=`${PWD_COMMAND}`; export r; \
29195 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29196 $(HOST_EXPORTS) \
d32ab992 29197 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
29198 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29199 done; \
d32ab992 29200 echo "Doing mostlyclean in uudecode" ; \
215c351a 29201 (cd $(HOST_SUBDIR)/uudecode && \
295f4e42
NN
29202 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29203 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29204 "RANLIB=$${RANLIB}" \
29205 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29206 mostlyclean) \
295f4e42
NN
29207 || exit 1
29208
d32ab992 29209@endif uudecode
295f4e42 29210
d32ab992
PB
29211.PHONY: maybe-clean-uudecode clean-uudecode
29212maybe-clean-uudecode:
29213@if uudecode
29214maybe-clean-uudecode: clean-uudecode
295f4e42 29215
05750653 29216clean-uudecode:
f41d6665 29217 @: $(MAKE); $(unstage)
d32ab992 29218 @[ -f ./uudecode/Makefile ] || exit 0; \
295f4e42
NN
29219 r=`${PWD_COMMAND}`; export r; \
29220 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29221 $(HOST_EXPORTS) \
d32ab992 29222 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
29223 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29224 done; \
d32ab992 29225 echo "Doing clean in uudecode" ; \
215c351a 29226 (cd $(HOST_SUBDIR)/uudecode && \
295f4e42
NN
29227 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29228 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29229 "RANLIB=$${RANLIB}" \
29230 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29231 clean) \
295f4e42
NN
29232 || exit 1
29233
d32ab992 29234@endif uudecode
295f4e42 29235
d32ab992
PB
29236.PHONY: maybe-distclean-uudecode distclean-uudecode
29237maybe-distclean-uudecode:
29238@if uudecode
29239maybe-distclean-uudecode: distclean-uudecode
295f4e42 29240
05750653 29241distclean-uudecode:
f41d6665 29242 @: $(MAKE); $(unstage)
d32ab992 29243 @[ -f ./uudecode/Makefile ] || exit 0; \
295f4e42
NN
29244 r=`${PWD_COMMAND}`; export r; \
29245 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29246 $(HOST_EXPORTS) \
d32ab992 29247 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
29248 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29249 done; \
d32ab992 29250 echo "Doing distclean in uudecode" ; \
215c351a 29251 (cd $(HOST_SUBDIR)/uudecode && \
295f4e42
NN
29252 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29253 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29254 "RANLIB=$${RANLIB}" \
29255 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29256 distclean) \
295f4e42
NN
29257 || exit 1
29258
d32ab992 29259@endif uudecode
295f4e42 29260
d32ab992
PB
29261.PHONY: maybe-maintainer-clean-uudecode maintainer-clean-uudecode
29262maybe-maintainer-clean-uudecode:
29263@if uudecode
29264maybe-maintainer-clean-uudecode: maintainer-clean-uudecode
295f4e42 29265
05750653 29266maintainer-clean-uudecode:
f41d6665 29267 @: $(MAKE); $(unstage)
d32ab992 29268 @[ -f ./uudecode/Makefile ] || exit 0; \
295f4e42 29269 r=`${PWD_COMMAND}`; export r; \
8c90b13a 29270 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29271 $(HOST_EXPORTS) \
d32ab992 29272 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
29273 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29274 done; \
d32ab992 29275 echo "Doing maintainer-clean in uudecode" ; \
215c351a 29276 (cd $(HOST_SUBDIR)/uudecode && \
295f4e42
NN
29277 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29278 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29279 "RANLIB=$${RANLIB}" \
29280 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29281 maintainer-clean) \
295f4e42 29282 || exit 1
4977bab6 29283
d32ab992 29284@endif uudecode
4977bab6 29285
295f4e42 29286
25b42232 29287
d32ab992
PB
29288.PHONY: configure-wdiff maybe-configure-wdiff
29289maybe-configure-wdiff:
3ff3adad
PB
29290@if gcc-bootstrap
29291configure-wdiff: stage_current
29292@endif gcc-bootstrap
d32ab992
PB
29293@if wdiff
29294maybe-configure-wdiff: configure-wdiff
cc11cc9b 29295configure-wdiff:
f41d6665 29296 @: $(MAKE); $(unstage)
cc11cc9b 29297 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 29298 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
29299 test ! -f $(HOST_SUBDIR)/wdiff/Makefile || exit 0; \
29300 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/wdiff ; \
4fc4dd12 29301 $(HOST_EXPORTS) \
25b42232
PB
29302 echo Configuring in $(HOST_SUBDIR)/wdiff; \
29303 cd "$(HOST_SUBDIR)/wdiff" || exit 1; \
4977bab6 29304 case $(srcdir) in \
215c351a
PB
29305 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
29306 *) topdir=`echo $(HOST_SUBDIR)/wdiff/ | \
29307 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 29308 esac; \
215c351a
PB
29309 srcdiroption="--srcdir=$${topdir}/wdiff"; \
29310 libsrcdir="$$s/wdiff"; \
4977bab6 29311 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 29312 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 29313 || exit 1
d32ab992 29314@endif wdiff
4977bab6 29315
25b42232
PB
29316
29317
ce406537
PB
29318
29319
d32ab992
PB
29320.PHONY: all-wdiff maybe-all-wdiff
29321maybe-all-wdiff:
3ff3adad
PB
29322@if gcc-bootstrap
29323all-wdiff: stage_current
29324@endif gcc-bootstrap
d32ab992 29325@if wdiff
7e0b5752 29326TARGET-wdiff=all
d32ab992
PB
29327maybe-all-wdiff: all-wdiff
29328all-wdiff: configure-wdiff
f41d6665 29329 @: $(MAKE); $(unstage)
8c90b13a
L
29330 @r=`${PWD_COMMAND}`; export r; \
29331 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29332 $(HOST_EXPORTS) \
215c351a
PB
29333 (cd $(HOST_SUBDIR)/wdiff && \
29334 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-wdiff))
d32ab992 29335@endif wdiff
4977bab6 29336
25b42232 29337
ce406537
PB
29338
29339
d32ab992
PB
29340.PHONY: check-wdiff maybe-check-wdiff
29341maybe-check-wdiff:
29342@if wdiff
29343maybe-check-wdiff: check-wdiff
4977bab6 29344
d32ab992 29345check-wdiff:
f41d6665 29346 @: $(MAKE); $(unstage)
d32ab992
PB
29347 @r=`${PWD_COMMAND}`; export r; \
29348 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d32ab992 29349 $(HOST_EXPORTS) \
215c351a
PB
29350 (cd $(HOST_SUBDIR)/wdiff && \
29351 $(MAKE) $(FLAGS_TO_PASS) check)
295f4e42 29352
d32ab992 29353@endif wdiff
295f4e42 29354
d32ab992
PB
29355.PHONY: install-wdiff maybe-install-wdiff
29356maybe-install-wdiff:
29357@if wdiff
29358maybe-install-wdiff: install-wdiff
295f4e42 29359
d32ab992 29360install-wdiff: installdirs
f41d6665 29361 @: $(MAKE); $(unstage)
8c90b13a
L
29362 @r=`${PWD_COMMAND}`; export r; \
29363 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29364 $(HOST_EXPORTS) \
215c351a 29365 (cd $(HOST_SUBDIR)/wdiff && \
ace9ac7b 29366 $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6 29367
d32ab992 29368@endif wdiff
4977bab6 29369
b5422ad7 29370# Other targets (info, dvi, pdf, etc.)
295f4e42 29371
d32ab992
PB
29372.PHONY: maybe-info-wdiff info-wdiff
29373maybe-info-wdiff:
29374@if wdiff
29375maybe-info-wdiff: info-wdiff
295f4e42 29376
d32ab992 29377info-wdiff: \
05750653 29378 configure-wdiff
f41d6665 29379 @: $(MAKE); $(unstage)
d32ab992 29380 @[ -f ./wdiff/Makefile ] || exit 0; \
295f4e42
NN
29381 r=`${PWD_COMMAND}`; export r; \
29382 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29383 $(HOST_EXPORTS) \
d32ab992 29384 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
29385 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29386 done; \
d32ab992 29387 echo "Doing info in wdiff" ; \
215c351a 29388 (cd $(HOST_SUBDIR)/wdiff && \
295f4e42
NN
29389 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29390 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29391 "RANLIB=$${RANLIB}" \
29392 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29393 info) \
295f4e42
NN
29394 || exit 1
29395
d32ab992 29396@endif wdiff
295f4e42 29397
d32ab992
PB
29398.PHONY: maybe-dvi-wdiff dvi-wdiff
29399maybe-dvi-wdiff:
29400@if wdiff
29401maybe-dvi-wdiff: dvi-wdiff
295f4e42 29402
d32ab992 29403dvi-wdiff: \
05750653 29404 configure-wdiff
f41d6665 29405 @: $(MAKE); $(unstage)
d32ab992 29406 @[ -f ./wdiff/Makefile ] || exit 0; \
295f4e42
NN
29407 r=`${PWD_COMMAND}`; export r; \
29408 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29409 $(HOST_EXPORTS) \
d32ab992 29410 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
29411 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29412 done; \
d32ab992 29413 echo "Doing dvi in wdiff" ; \
215c351a 29414 (cd $(HOST_SUBDIR)/wdiff && \
295f4e42
NN
29415 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29416 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29417 "RANLIB=$${RANLIB}" \
29418 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29419 dvi) \
295f4e42
NN
29420 || exit 1
29421
d32ab992 29422@endif wdiff
295f4e42 29423
b5422ad7
BM
29424.PHONY: maybe-pdf-wdiff pdf-wdiff
29425maybe-pdf-wdiff:
29426@if wdiff
29427maybe-pdf-wdiff: pdf-wdiff
29428
29429pdf-wdiff: \
29430 configure-wdiff
29431 @: $(MAKE); $(unstage)
29432 @[ -f ./wdiff/Makefile ] || exit 0; \
29433 r=`${PWD_COMMAND}`; export r; \
29434 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29435 $(HOST_EXPORTS) \
29436 for flag in $(EXTRA_HOST_FLAGS) ; do \
29437 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29438 done; \
29439 echo "Doing pdf in wdiff" ; \
29440 (cd $(HOST_SUBDIR)/wdiff && \
29441 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29442 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29443 "RANLIB=$${RANLIB}" \
29444 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
29445 pdf) \
29446 || exit 1
29447
29448@endif wdiff
29449
f87a2b2e
MS
29450.PHONY: maybe-html-wdiff html-wdiff
29451maybe-html-wdiff:
29452@if wdiff
29453maybe-html-wdiff: html-wdiff
29454
29455html-wdiff: \
05750653 29456 configure-wdiff
f41d6665 29457 @: $(MAKE); $(unstage)
f87a2b2e
MS
29458 @[ -f ./wdiff/Makefile ] || exit 0; \
29459 r=`${PWD_COMMAND}`; export r; \
29460 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
29461 $(HOST_EXPORTS) \
29462 for flag in $(EXTRA_HOST_FLAGS) ; do \
29463 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29464 done; \
29465 echo "Doing html in wdiff" ; \
215c351a 29466 (cd $(HOST_SUBDIR)/wdiff && \
f87a2b2e
MS
29467 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29468 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29469 "RANLIB=$${RANLIB}" \
29470 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
29471 html) \
29472 || exit 1
29473
29474@endif wdiff
29475
d32ab992
PB
29476.PHONY: maybe-TAGS-wdiff TAGS-wdiff
29477maybe-TAGS-wdiff:
29478@if wdiff
29479maybe-TAGS-wdiff: TAGS-wdiff
295f4e42 29480
d32ab992 29481TAGS-wdiff: \
05750653 29482 configure-wdiff
f41d6665 29483 @: $(MAKE); $(unstage)
d32ab992 29484 @[ -f ./wdiff/Makefile ] || exit 0; \
295f4e42
NN
29485 r=`${PWD_COMMAND}`; export r; \
29486 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29487 $(HOST_EXPORTS) \
d32ab992 29488 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
29489 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29490 done; \
d32ab992 29491 echo "Doing TAGS in wdiff" ; \
215c351a 29492 (cd $(HOST_SUBDIR)/wdiff && \
295f4e42
NN
29493 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29494 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29495 "RANLIB=$${RANLIB}" \
29496 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29497 TAGS) \
295f4e42
NN
29498 || exit 1
29499
d32ab992 29500@endif wdiff
295f4e42 29501
d32ab992
PB
29502.PHONY: maybe-install-info-wdiff install-info-wdiff
29503maybe-install-info-wdiff:
29504@if wdiff
29505maybe-install-info-wdiff: install-info-wdiff
295f4e42 29506
d32ab992
PB
29507install-info-wdiff: \
29508 configure-wdiff \
05750653 29509 info-wdiff
f41d6665 29510 @: $(MAKE); $(unstage)
d32ab992 29511 @[ -f ./wdiff/Makefile ] || exit 0; \
295f4e42
NN
29512 r=`${PWD_COMMAND}`; export r; \
29513 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29514 $(HOST_EXPORTS) \
d32ab992 29515 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
29516 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29517 done; \
d32ab992 29518 echo "Doing install-info in wdiff" ; \
215c351a 29519 (cd $(HOST_SUBDIR)/wdiff && \
295f4e42
NN
29520 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29521 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29522 "RANLIB=$${RANLIB}" \
29523 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29524 install-info) \
295f4e42
NN
29525 || exit 1
29526
d32ab992 29527@endif wdiff
295f4e42 29528
65d6e994
CD
29529.PHONY: maybe-install-html-wdiff install-html-wdiff
29530maybe-install-html-wdiff:
29531@if wdiff
29532maybe-install-html-wdiff: install-html-wdiff
29533
29534install-html-wdiff: \
29535 configure-wdiff \
29536 html-wdiff
29537 @: $(MAKE); $(unstage)
29538 @[ -f ./wdiff/Makefile ] || exit 0; \
29539 r=`${PWD_COMMAND}`; export r; \
29540 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29541 $(HOST_EXPORTS) \
29542 for flag in $(EXTRA_HOST_FLAGS) ; do \
29543 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29544 done; \
29545 echo "Doing install-html in wdiff" ; \
29546 (cd $(HOST_SUBDIR)/wdiff && \
29547 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29548 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29549 "RANLIB=$${RANLIB}" \
29550 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
29551 install-html) \
29552 || exit 1
29553
29554@endif wdiff
29555
d32ab992
PB
29556.PHONY: maybe-installcheck-wdiff installcheck-wdiff
29557maybe-installcheck-wdiff:
29558@if wdiff
29559maybe-installcheck-wdiff: installcheck-wdiff
295f4e42 29560
d32ab992 29561installcheck-wdiff: \
05750653 29562 configure-wdiff
f41d6665 29563 @: $(MAKE); $(unstage)
d32ab992 29564 @[ -f ./wdiff/Makefile ] || exit 0; \
295f4e42
NN
29565 r=`${PWD_COMMAND}`; export r; \
29566 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29567 $(HOST_EXPORTS) \
d32ab992 29568 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
29569 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29570 done; \
d32ab992 29571 echo "Doing installcheck in wdiff" ; \
215c351a 29572 (cd $(HOST_SUBDIR)/wdiff && \
295f4e42
NN
29573 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29574 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29575 "RANLIB=$${RANLIB}" \
29576 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29577 installcheck) \
295f4e42
NN
29578 || exit 1
29579
d32ab992 29580@endif wdiff
295f4e42 29581
d32ab992
PB
29582.PHONY: maybe-mostlyclean-wdiff mostlyclean-wdiff
29583maybe-mostlyclean-wdiff:
29584@if wdiff
29585maybe-mostlyclean-wdiff: mostlyclean-wdiff
295f4e42 29586
05750653 29587mostlyclean-wdiff:
f41d6665 29588 @: $(MAKE); $(unstage)
d32ab992 29589 @[ -f ./wdiff/Makefile ] || exit 0; \
295f4e42
NN
29590 r=`${PWD_COMMAND}`; export r; \
29591 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29592 $(HOST_EXPORTS) \
d32ab992 29593 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
29594 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29595 done; \
d32ab992 29596 echo "Doing mostlyclean in wdiff" ; \
215c351a 29597 (cd $(HOST_SUBDIR)/wdiff && \
295f4e42
NN
29598 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29599 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29600 "RANLIB=$${RANLIB}" \
29601 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29602 mostlyclean) \
295f4e42
NN
29603 || exit 1
29604
d32ab992 29605@endif wdiff
295f4e42 29606
d32ab992
PB
29607.PHONY: maybe-clean-wdiff clean-wdiff
29608maybe-clean-wdiff:
29609@if wdiff
29610maybe-clean-wdiff: clean-wdiff
295f4e42 29611
05750653 29612clean-wdiff:
f41d6665 29613 @: $(MAKE); $(unstage)
d32ab992 29614 @[ -f ./wdiff/Makefile ] || exit 0; \
295f4e42
NN
29615 r=`${PWD_COMMAND}`; export r; \
29616 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29617 $(HOST_EXPORTS) \
d32ab992 29618 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
29619 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29620 done; \
d32ab992 29621 echo "Doing clean in wdiff" ; \
215c351a 29622 (cd $(HOST_SUBDIR)/wdiff && \
295f4e42
NN
29623 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29624 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29625 "RANLIB=$${RANLIB}" \
29626 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29627 clean) \
295f4e42
NN
29628 || exit 1
29629
d32ab992 29630@endif wdiff
295f4e42 29631
d32ab992
PB
29632.PHONY: maybe-distclean-wdiff distclean-wdiff
29633maybe-distclean-wdiff:
29634@if wdiff
29635maybe-distclean-wdiff: distclean-wdiff
295f4e42 29636
05750653 29637distclean-wdiff:
f41d6665 29638 @: $(MAKE); $(unstage)
d32ab992 29639 @[ -f ./wdiff/Makefile ] || exit 0; \
295f4e42
NN
29640 r=`${PWD_COMMAND}`; export r; \
29641 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29642 $(HOST_EXPORTS) \
d32ab992 29643 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
29644 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29645 done; \
d32ab992 29646 echo "Doing distclean in wdiff" ; \
215c351a 29647 (cd $(HOST_SUBDIR)/wdiff && \
295f4e42
NN
29648 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29649 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29650 "RANLIB=$${RANLIB}" \
29651 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29652 distclean) \
295f4e42
NN
29653 || exit 1
29654
d32ab992 29655@endif wdiff
295f4e42 29656
d32ab992
PB
29657.PHONY: maybe-maintainer-clean-wdiff maintainer-clean-wdiff
29658maybe-maintainer-clean-wdiff:
29659@if wdiff
29660maybe-maintainer-clean-wdiff: maintainer-clean-wdiff
295f4e42 29661
05750653 29662maintainer-clean-wdiff:
f41d6665 29663 @: $(MAKE); $(unstage)
d32ab992 29664 @[ -f ./wdiff/Makefile ] || exit 0; \
295f4e42
NN
29665 r=`${PWD_COMMAND}`; export r; \
29666 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29667 $(HOST_EXPORTS) \
d32ab992 29668 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
29669 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29670 done; \
d32ab992 29671 echo "Doing maintainer-clean in wdiff" ; \
215c351a 29672 (cd $(HOST_SUBDIR)/wdiff && \
295f4e42
NN
29673 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29674 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29675 "RANLIB=$${RANLIB}" \
29676 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29677 maintainer-clean) \
295f4e42 29678 || exit 1
7e2dbcef 29679
d32ab992 29680@endif wdiff
4977bab6
ZW
29681
29682
25b42232 29683
d32ab992
PB
29684.PHONY: configure-zip maybe-configure-zip
29685maybe-configure-zip:
3ff3adad
PB
29686@if gcc-bootstrap
29687configure-zip: stage_current
29688@endif gcc-bootstrap
d32ab992
PB
29689@if zip
29690maybe-configure-zip: configure-zip
cc11cc9b 29691configure-zip:
f41d6665 29692 @: $(MAKE); $(unstage)
cc11cc9b 29693 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 29694 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
29695 test ! -f $(HOST_SUBDIR)/zip/Makefile || exit 0; \
29696 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zip ; \
4fc4dd12 29697 $(HOST_EXPORTS) \
25b42232
PB
29698 echo Configuring in $(HOST_SUBDIR)/zip; \
29699 cd "$(HOST_SUBDIR)/zip" || exit 1; \
4977bab6 29700 case $(srcdir) in \
215c351a
PB
29701 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
29702 *) topdir=`echo $(HOST_SUBDIR)/zip/ | \
29703 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 29704 esac; \
215c351a
PB
29705 srcdiroption="--srcdir=$${topdir}/zip"; \
29706 libsrcdir="$$s/zip"; \
4977bab6 29707 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 29708 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 29709 || exit 1
d32ab992 29710@endif zip
4977bab6 29711
25b42232
PB
29712
29713
ce406537
PB
29714
29715
d32ab992
PB
29716.PHONY: all-zip maybe-all-zip
29717maybe-all-zip:
3ff3adad
PB
29718@if gcc-bootstrap
29719all-zip: stage_current
29720@endif gcc-bootstrap
d32ab992 29721@if zip
7e0b5752 29722TARGET-zip=all
d32ab992
PB
29723maybe-all-zip: all-zip
29724all-zip: configure-zip
f41d6665 29725 @: $(MAKE); $(unstage)
8c90b13a
L
29726 @r=`${PWD_COMMAND}`; export r; \
29727 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29728 $(HOST_EXPORTS) \
215c351a
PB
29729 (cd $(HOST_SUBDIR)/zip && \
29730 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-zip))
d32ab992 29731@endif zip
4977bab6 29732
25b42232 29733
ce406537
PB
29734
29735
d32ab992
PB
29736.PHONY: check-zip maybe-check-zip
29737maybe-check-zip:
29738@if zip
29739maybe-check-zip: check-zip
4977bab6 29740
d32ab992
PB
29741# This module is only tested in a native toolchain.
29742check-zip:
f41d6665 29743 @: $(MAKE); $(unstage)
d32ab992
PB
29744 @if [ '$(host)' = '$(target)' ] ; then \
29745 r=`${PWD_COMMAND}`; export r; \
29746 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d32ab992 29747 $(HOST_EXPORTS) \
215c351a 29748 (cd $(HOST_SUBDIR)/zip && \
ef6e9bc0 29749 $(MAKE) $(FLAGS_TO_PASS) check); \
d32ab992 29750 fi
295f4e42 29751
d32ab992 29752@endif zip
295f4e42 29753
d32ab992
PB
29754.PHONY: install-zip maybe-install-zip
29755maybe-install-zip:
29756@if zip
29757maybe-install-zip: install-zip
295f4e42 29758
d32ab992 29759install-zip: installdirs
f41d6665 29760 @: $(MAKE); $(unstage)
d32ab992
PB
29761 @r=`${PWD_COMMAND}`; export r; \
29762 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d32ab992 29763 $(HOST_EXPORTS) \
215c351a 29764 (cd $(HOST_SUBDIR)/zip && \
ace9ac7b 29765 $(MAKE) $(FLAGS_TO_PASS) install)
295f4e42 29766
d32ab992 29767@endif zip
295f4e42 29768
b5422ad7 29769# Other targets (info, dvi, pdf, etc.)
295f4e42 29770
d32ab992
PB
29771.PHONY: maybe-info-zip info-zip
29772maybe-info-zip:
29773@if zip
29774maybe-info-zip: info-zip
295f4e42 29775
d32ab992 29776info-zip: \
05750653 29777 configure-zip
f41d6665 29778 @: $(MAKE); $(unstage)
d32ab992 29779 @[ -f ./zip/Makefile ] || exit 0; \
295f4e42 29780 r=`${PWD_COMMAND}`; export r; \
8c90b13a 29781 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29782 $(HOST_EXPORTS) \
d32ab992 29783 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
29784 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29785 done; \
d32ab992 29786 echo "Doing info in zip" ; \
215c351a 29787 (cd $(HOST_SUBDIR)/zip && \
295f4e42
NN
29788 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29789 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29790 "RANLIB=$${RANLIB}" \
29791 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29792 info) \
295f4e42 29793 || exit 1
4977bab6 29794
d32ab992 29795@endif zip
4977bab6 29796
d32ab992
PB
29797.PHONY: maybe-dvi-zip dvi-zip
29798maybe-dvi-zip:
29799@if zip
29800maybe-dvi-zip: dvi-zip
7e2dbcef 29801
d32ab992 29802dvi-zip: \
05750653 29803 configure-zip
f41d6665 29804 @: $(MAKE); $(unstage)
d32ab992 29805 @[ -f ./zip/Makefile ] || exit 0; \
295f4e42 29806 r=`${PWD_COMMAND}`; export r; \
8c90b13a 29807 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29808 $(HOST_EXPORTS) \
d32ab992 29809 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
29810 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29811 done; \
d32ab992 29812 echo "Doing dvi in zip" ; \
215c351a 29813 (cd $(HOST_SUBDIR)/zip && \
295f4e42
NN
29814 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29815 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29816 "RANLIB=$${RANLIB}" \
29817 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29818 dvi) \
295f4e42 29819 || exit 1
4977bab6 29820
d32ab992 29821@endif zip
4977bab6 29822
b5422ad7
BM
29823.PHONY: maybe-pdf-zip pdf-zip
29824maybe-pdf-zip:
29825@if zip
29826maybe-pdf-zip: pdf-zip
29827
29828pdf-zip: \
29829 configure-zip
29830 @: $(MAKE); $(unstage)
29831 @[ -f ./zip/Makefile ] || exit 0; \
29832 r=`${PWD_COMMAND}`; export r; \
29833 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29834 $(HOST_EXPORTS) \
29835 for flag in $(EXTRA_HOST_FLAGS) ; do \
29836 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29837 done; \
29838 echo "Doing pdf in zip" ; \
29839 (cd $(HOST_SUBDIR)/zip && \
29840 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29841 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29842 "RANLIB=$${RANLIB}" \
29843 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
29844 pdf) \
29845 || exit 1
29846
29847@endif zip
29848
f87a2b2e
MS
29849.PHONY: maybe-html-zip html-zip
29850maybe-html-zip:
29851@if zip
29852maybe-html-zip: html-zip
29853
29854html-zip: \
05750653 29855 configure-zip
f41d6665 29856 @: $(MAKE); $(unstage)
f87a2b2e
MS
29857 @[ -f ./zip/Makefile ] || exit 0; \
29858 r=`${PWD_COMMAND}`; export r; \
29859 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
29860 $(HOST_EXPORTS) \
29861 for flag in $(EXTRA_HOST_FLAGS) ; do \
29862 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29863 done; \
29864 echo "Doing html in zip" ; \
215c351a 29865 (cd $(HOST_SUBDIR)/zip && \
f87a2b2e
MS
29866 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29867 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29868 "RANLIB=$${RANLIB}" \
29869 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
29870 html) \
29871 || exit 1
29872
29873@endif zip
29874
d32ab992
PB
29875.PHONY: maybe-TAGS-zip TAGS-zip
29876maybe-TAGS-zip:
29877@if zip
29878maybe-TAGS-zip: TAGS-zip
295f4e42 29879
d32ab992 29880TAGS-zip: \
05750653 29881 configure-zip
f41d6665 29882 @: $(MAKE); $(unstage)
d32ab992 29883 @[ -f ./zip/Makefile ] || exit 0; \
295f4e42
NN
29884 r=`${PWD_COMMAND}`; export r; \
29885 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29886 $(HOST_EXPORTS) \
d32ab992 29887 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
29888 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29889 done; \
d32ab992 29890 echo "Doing TAGS in zip" ; \
215c351a 29891 (cd $(HOST_SUBDIR)/zip && \
295f4e42
NN
29892 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29893 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29894 "RANLIB=$${RANLIB}" \
29895 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29896 TAGS) \
295f4e42
NN
29897 || exit 1
29898
d32ab992 29899@endif zip
295f4e42 29900
d32ab992
PB
29901.PHONY: maybe-install-info-zip install-info-zip
29902maybe-install-info-zip:
29903@if zip
29904maybe-install-info-zip: install-info-zip
295f4e42 29905
d32ab992
PB
29906install-info-zip: \
29907 configure-zip \
05750653 29908 info-zip
f41d6665 29909 @: $(MAKE); $(unstage)
d32ab992 29910 @[ -f ./zip/Makefile ] || exit 0; \
295f4e42
NN
29911 r=`${PWD_COMMAND}`; export r; \
29912 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29913 $(HOST_EXPORTS) \
d32ab992 29914 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
29915 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29916 done; \
d32ab992 29917 echo "Doing install-info in zip" ; \
215c351a 29918 (cd $(HOST_SUBDIR)/zip && \
295f4e42
NN
29919 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29920 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29921 "RANLIB=$${RANLIB}" \
29922 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29923 install-info) \
295f4e42
NN
29924 || exit 1
29925
d32ab992 29926@endif zip
295f4e42 29927
65d6e994
CD
29928.PHONY: maybe-install-html-zip install-html-zip
29929maybe-install-html-zip:
29930@if zip
29931maybe-install-html-zip: install-html-zip
29932
29933install-html-zip: \
29934 configure-zip \
29935 html-zip
29936 @: $(MAKE); $(unstage)
29937 @[ -f ./zip/Makefile ] || exit 0; \
29938 r=`${PWD_COMMAND}`; export r; \
29939 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
29940 $(HOST_EXPORTS) \
29941 for flag in $(EXTRA_HOST_FLAGS) ; do \
29942 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29943 done; \
29944 echo "Doing install-html in zip" ; \
29945 (cd $(HOST_SUBDIR)/zip && \
29946 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29947 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29948 "RANLIB=$${RANLIB}" \
29949 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
29950 install-html) \
29951 || exit 1
29952
29953@endif zip
29954
d32ab992
PB
29955.PHONY: maybe-installcheck-zip installcheck-zip
29956maybe-installcheck-zip:
29957@if zip
29958maybe-installcheck-zip: installcheck-zip
295f4e42 29959
d32ab992 29960installcheck-zip: \
05750653 29961 configure-zip
f41d6665 29962 @: $(MAKE); $(unstage)
d32ab992 29963 @[ -f ./zip/Makefile ] || exit 0; \
295f4e42
NN
29964 r=`${PWD_COMMAND}`; export r; \
29965 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29966 $(HOST_EXPORTS) \
d32ab992 29967 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
29968 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29969 done; \
d32ab992 29970 echo "Doing installcheck in zip" ; \
215c351a 29971 (cd $(HOST_SUBDIR)/zip && \
295f4e42
NN
29972 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29973 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29974 "RANLIB=$${RANLIB}" \
29975 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 29976 installcheck) \
295f4e42
NN
29977 || exit 1
29978
d32ab992 29979@endif zip
295f4e42 29980
d32ab992
PB
29981.PHONY: maybe-mostlyclean-zip mostlyclean-zip
29982maybe-mostlyclean-zip:
29983@if zip
29984maybe-mostlyclean-zip: mostlyclean-zip
295f4e42 29985
05750653 29986mostlyclean-zip:
f41d6665 29987 @: $(MAKE); $(unstage)
d32ab992 29988 @[ -f ./zip/Makefile ] || exit 0; \
295f4e42
NN
29989 r=`${PWD_COMMAND}`; export r; \
29990 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 29991 $(HOST_EXPORTS) \
d32ab992 29992 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
29993 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
29994 done; \
d32ab992 29995 echo "Doing mostlyclean in zip" ; \
215c351a 29996 (cd $(HOST_SUBDIR)/zip && \
295f4e42
NN
29997 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
29998 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
29999 "RANLIB=$${RANLIB}" \
30000 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 30001 mostlyclean) \
295f4e42
NN
30002 || exit 1
30003
d32ab992 30004@endif zip
295f4e42 30005
d32ab992
PB
30006.PHONY: maybe-clean-zip clean-zip
30007maybe-clean-zip:
30008@if zip
30009maybe-clean-zip: clean-zip
295f4e42 30010
05750653 30011clean-zip:
f41d6665 30012 @: $(MAKE); $(unstage)
d32ab992 30013 @[ -f ./zip/Makefile ] || exit 0; \
295f4e42
NN
30014 r=`${PWD_COMMAND}`; export r; \
30015 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30016 $(HOST_EXPORTS) \
d32ab992 30017 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
30018 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30019 done; \
d32ab992 30020 echo "Doing clean in zip" ; \
215c351a 30021 (cd $(HOST_SUBDIR)/zip && \
295f4e42
NN
30022 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30023 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30024 "RANLIB=$${RANLIB}" \
30025 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 30026 clean) \
295f4e42
NN
30027 || exit 1
30028
d32ab992 30029@endif zip
295f4e42 30030
d32ab992
PB
30031.PHONY: maybe-distclean-zip distclean-zip
30032maybe-distclean-zip:
30033@if zip
30034maybe-distclean-zip: distclean-zip
295f4e42 30035
05750653 30036distclean-zip:
f41d6665 30037 @: $(MAKE); $(unstage)
d32ab992 30038 @[ -f ./zip/Makefile ] || exit 0; \
295f4e42
NN
30039 r=`${PWD_COMMAND}`; export r; \
30040 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30041 $(HOST_EXPORTS) \
d32ab992 30042 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
30043 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30044 done; \
d32ab992 30045 echo "Doing distclean in zip" ; \
215c351a 30046 (cd $(HOST_SUBDIR)/zip && \
295f4e42
NN
30047 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30048 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30049 "RANLIB=$${RANLIB}" \
30050 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 30051 distclean) \
295f4e42
NN
30052 || exit 1
30053
d32ab992 30054@endif zip
295f4e42 30055
d32ab992
PB
30056.PHONY: maybe-maintainer-clean-zip maintainer-clean-zip
30057maybe-maintainer-clean-zip:
30058@if zip
30059maybe-maintainer-clean-zip: maintainer-clean-zip
295f4e42 30060
05750653 30061maintainer-clean-zip:
f41d6665 30062 @: $(MAKE); $(unstage)
d32ab992 30063 @[ -f ./zip/Makefile ] || exit 0; \
295f4e42
NN
30064 r=`${PWD_COMMAND}`; export r; \
30065 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30066 $(HOST_EXPORTS) \
d32ab992 30067 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
30068 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30069 done; \
d32ab992 30070 echo "Doing maintainer-clean in zip" ; \
215c351a 30071 (cd $(HOST_SUBDIR)/zip && \
295f4e42
NN
30072 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30073 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30074 "RANLIB=$${RANLIB}" \
30075 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 30076 maintainer-clean) \
295f4e42
NN
30077 || exit 1
30078
d32ab992 30079@endif zip
295f4e42
NN
30080
30081
25b42232 30082
d32ab992
PB
30083.PHONY: configure-zlib maybe-configure-zlib
30084maybe-configure-zlib:
3ff3adad
PB
30085@if gcc-bootstrap
30086configure-zlib: stage_current
30087@endif gcc-bootstrap
d32ab992
PB
30088@if zlib
30089maybe-configure-zlib: configure-zlib
cc11cc9b 30090configure-zlib:
cc11cc9b
PB
30091 @r=`${PWD_COMMAND}`; export r; \
30092 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
215c351a
PB
30093 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
30094 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
4fc4dd12 30095 $(HOST_EXPORTS) \
25b42232
PB
30096 echo Configuring in $(HOST_SUBDIR)/zlib; \
30097 cd "$(HOST_SUBDIR)/zlib" || exit 1; \
4977bab6 30098 case $(srcdir) in \
215c351a
PB
30099 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
30100 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
30101 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 30102 esac; \
215c351a
PB
30103 srcdiroption="--srcdir=$${topdir}/zlib"; \
30104 libsrcdir="$$s/zlib"; \
4977bab6 30105 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 30106 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 30107 || exit 1
d32ab992 30108@endif zlib
4977bab6 30109
25b42232
PB
30110
30111
ce406537
PB
30112.PHONY: configure-stage1-zlib maybe-configure-stage1-zlib
30113maybe-configure-stage1-zlib:
30114@if zlib-bootstrap
30115maybe-configure-stage1-zlib: configure-stage1-zlib
f41d6665 30116configure-stage1-zlib:
cc11cc9b 30117 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
f41d6665 30118 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
cc11cc9b
PB
30119 @r=`${PWD_COMMAND}`; export r; \
30120 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 30121 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
ce406537
PB
30122 $(HOST_EXPORTS) \
30123 echo Configuring stage 1 in $(HOST_SUBDIR)/zlib ; \
f41d6665 30124 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
ce406537
PB
30125 cd $(HOST_SUBDIR)/zlib || exit 1; \
30126 case $(srcdir) in \
30127 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
30128 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
30129 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
30130 esac; \
30131 srcdiroption="--srcdir=$${topdir}/zlib"; \
30132 libsrcdir="$$s/zlib"; \
30133 $(SHELL) $${libsrcdir}/configure \
30134 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 30135 \
8efea775 30136 --disable-intermodule $(STAGE1_CHECKING) --disable-coverage --enable-languages="$(STAGE1_LANGUAGES)"
ce406537
PB
30137@endif zlib-bootstrap
30138
30139.PHONY: configure-stage2-zlib maybe-configure-stage2-zlib
30140maybe-configure-stage2-zlib:
30141@if zlib-bootstrap
30142maybe-configure-stage2-zlib: configure-stage2-zlib
f41d6665 30143configure-stage2-zlib:
cc11cc9b 30144 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
f41d6665 30145 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
cc11cc9b
PB
30146 @r=`${PWD_COMMAND}`; export r; \
30147 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 30148 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
ce406537
PB
30149 $(HOST_EXPORTS) \
30150 $(POSTSTAGE1_HOST_EXPORTS) \
30151 echo Configuring stage 2 in $(HOST_SUBDIR)/zlib ; \
f41d6665 30152 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
ce406537
PB
30153 cd $(HOST_SUBDIR)/zlib || exit 1; \
30154 case $(srcdir) in \
30155 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
30156 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
30157 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
30158 esac; \
30159 srcdiroption="--srcdir=$${topdir}/zlib"; \
30160 libsrcdir="$$s/zlib"; \
30161 $(SHELL) $${libsrcdir}/configure \
30162 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 30163 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
30164 @stage2_werror_flag@
30165@endif zlib-bootstrap
30166
30167.PHONY: configure-stage3-zlib maybe-configure-stage3-zlib
30168maybe-configure-stage3-zlib:
30169@if zlib-bootstrap
30170maybe-configure-stage3-zlib: configure-stage3-zlib
f41d6665 30171configure-stage3-zlib:
cc11cc9b 30172 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
f41d6665 30173 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
cc11cc9b
PB
30174 @r=`${PWD_COMMAND}`; export r; \
30175 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 30176 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
ce406537
PB
30177 $(HOST_EXPORTS) \
30178 $(POSTSTAGE1_HOST_EXPORTS) \
30179 echo Configuring stage 3 in $(HOST_SUBDIR)/zlib ; \
f41d6665 30180 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
ce406537
PB
30181 cd $(HOST_SUBDIR)/zlib || exit 1; \
30182 case $(srcdir) in \
30183 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
30184 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
30185 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
30186 esac; \
30187 srcdiroption="--srcdir=$${topdir}/zlib"; \
30188 libsrcdir="$$s/zlib"; \
30189 $(SHELL) $${libsrcdir}/configure \
30190 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 30191 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
30192 @stage2_werror_flag@
30193@endif zlib-bootstrap
30194
30195.PHONY: configure-stage4-zlib maybe-configure-stage4-zlib
30196maybe-configure-stage4-zlib:
30197@if zlib-bootstrap
30198maybe-configure-stage4-zlib: configure-stage4-zlib
f41d6665 30199configure-stage4-zlib:
cc11cc9b 30200 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
f41d6665 30201 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
cc11cc9b
PB
30202 @r=`${PWD_COMMAND}`; export r; \
30203 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 30204 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
ce406537
PB
30205 $(HOST_EXPORTS) \
30206 $(POSTSTAGE1_HOST_EXPORTS) \
30207 echo Configuring stage 4 in $(HOST_SUBDIR)/zlib ; \
f41d6665 30208 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
ce406537
PB
30209 cd $(HOST_SUBDIR)/zlib || exit 1; \
30210 case $(srcdir) in \
30211 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
30212 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
30213 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
30214 esac; \
30215 srcdiroption="--srcdir=$${topdir}/zlib"; \
30216 libsrcdir="$$s/zlib"; \
30217 $(SHELL) $${libsrcdir}/configure \
30218 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 30219 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
30220 @stage2_werror_flag@
30221@endif zlib-bootstrap
30222
30223.PHONY: configure-stageprofile-zlib maybe-configure-stageprofile-zlib
30224maybe-configure-stageprofile-zlib:
30225@if zlib-bootstrap
30226maybe-configure-stageprofile-zlib: configure-stageprofile-zlib
f41d6665 30227configure-stageprofile-zlib:
cc11cc9b 30228 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
f41d6665 30229 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
cc11cc9b
PB
30230 @r=`${PWD_COMMAND}`; export r; \
30231 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 30232 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
ce406537
PB
30233 $(HOST_EXPORTS) \
30234 $(POSTSTAGE1_HOST_EXPORTS) \
30235 echo Configuring stage profile in $(HOST_SUBDIR)/zlib ; \
f41d6665 30236 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
ce406537
PB
30237 cd $(HOST_SUBDIR)/zlib || exit 1; \
30238 case $(srcdir) in \
30239 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
30240 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
30241 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
30242 esac; \
30243 srcdiroption="--srcdir=$${topdir}/zlib"; \
30244 libsrcdir="$$s/zlib"; \
30245 $(SHELL) $${libsrcdir}/configure \
30246 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 30247 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
30248 @stage2_werror_flag@
30249@endif zlib-bootstrap
30250
30251.PHONY: configure-stagefeedback-zlib maybe-configure-stagefeedback-zlib
30252maybe-configure-stagefeedback-zlib:
30253@if zlib-bootstrap
30254maybe-configure-stagefeedback-zlib: configure-stagefeedback-zlib
f41d6665 30255configure-stagefeedback-zlib:
cc11cc9b 30256 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
f41d6665 30257 @$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib
cc11cc9b
PB
30258 @r=`${PWD_COMMAND}`; export r; \
30259 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f41d6665 30260 test ! -f $(HOST_SUBDIR)/zlib/Makefile || exit 0; \
ce406537
PB
30261 $(HOST_EXPORTS) \
30262 $(POSTSTAGE1_HOST_EXPORTS) \
30263 echo Configuring stage feedback in $(HOST_SUBDIR)/zlib ; \
f41d6665 30264 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/zlib ; \
ce406537
PB
30265 cd $(HOST_SUBDIR)/zlib || exit 1; \
30266 case $(srcdir) in \
30267 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
30268 *) topdir=`echo $(HOST_SUBDIR)/zlib/ | \
30269 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
30270 esac; \
30271 srcdiroption="--srcdir=$${topdir}/zlib"; \
30272 libsrcdir="$$s/zlib"; \
30273 $(SHELL) $${libsrcdir}/configure \
30274 $(HOST_CONFIGARGS) $${srcdiroption} \
57255173 30275 --with-build-libsubdir=$(HOST_SUBDIR) \
ce406537
PB
30276 @stage2_werror_flag@
30277@endif zlib-bootstrap
30278
30279
30280
30281
30282
d32ab992
PB
30283.PHONY: all-zlib maybe-all-zlib
30284maybe-all-zlib:
3ff3adad
PB
30285@if gcc-bootstrap
30286all-zlib: stage_current
30287@endif gcc-bootstrap
d32ab992 30288@if zlib
7e0b5752 30289TARGET-zlib=all
d32ab992
PB
30290maybe-all-zlib: all-zlib
30291all-zlib: configure-zlib
cc11cc9b 30292 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 30293 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30294 $(HOST_EXPORTS) \
215c351a
PB
30295 (cd $(HOST_SUBDIR)/zlib && \
30296 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-zlib))
d32ab992 30297@endif zlib
4977bab6 30298
25b42232 30299
ce406537
PB
30300
30301.PHONY: all-stage1-zlib maybe-all-stage1-zlib
30302.PHONY: clean-stage1-zlib maybe-clean-stage1-zlib
30303maybe-all-stage1-zlib:
30304maybe-clean-stage1-zlib:
30305@if zlib-bootstrap
30306maybe-all-stage1-zlib: all-stage1-zlib
30307all-stage1: all-stage1-zlib
1061f99e 30308TARGET-stage1-zlib = $(TARGET-zlib)
ce406537 30309all-stage1-zlib: configure-stage1-zlib
cc11cc9b 30310 @[ $(current_stage) = stage1 ] || $(MAKE) stage1-start
ce406537
PB
30311 @r=`${PWD_COMMAND}`; export r; \
30312 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30313 $(HOST_EXPORTS) \
30314 cd $(HOST_SUBDIR)/zlib && \
cc11cc9b 30315 $(MAKE) $(FLAGS_TO_PASS) CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" \
1061f99e 30316 $(TARGET-stage1-zlib)
ce406537
PB
30317
30318maybe-clean-stage1-zlib: clean-stage1-zlib
30319clean-stage1: clean-stage1-zlib
30320clean-stage1-zlib:
995a5697
PB
30321 @if [ $(current_stage) = stage1 ]; then \
30322 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
30323 else \
30324 [ -f $(HOST_SUBDIR)/stage1-zlib/Makefile ] || exit 0; \
30325 $(MAKE) stage1-start; \
30326 fi; \
ce406537
PB
30327 cd $(HOST_SUBDIR)/zlib && \
30328 $(MAKE) $(FLAGS_TO_PASS) \
cc11cc9b 30329 CFLAGS="$(STAGE1_CFLAGS)" LIBCFLAGS="$(STAGE1_CFLAGS)" clean
ce406537
PB
30330@endif zlib-bootstrap
30331
30332
30333.PHONY: all-stage2-zlib maybe-all-stage2-zlib
30334.PHONY: clean-stage2-zlib maybe-clean-stage2-zlib
30335maybe-all-stage2-zlib:
30336maybe-clean-stage2-zlib:
30337@if zlib-bootstrap
30338maybe-all-stage2-zlib: all-stage2-zlib
30339all-stage2: all-stage2-zlib
1061f99e 30340TARGET-stage2-zlib = $(TARGET-zlib)
ce406537 30341all-stage2-zlib: configure-stage2-zlib
cc11cc9b 30342 @[ $(current_stage) = stage2 ] || $(MAKE) stage2-start
ce406537
PB
30343 @r=`${PWD_COMMAND}`; export r; \
30344 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30345 $(HOST_EXPORTS) \
30346 $(POSTSTAGE1_HOST_EXPORTS) \
30347 cd $(HOST_SUBDIR)/zlib && \
1061f99e
PB
30348 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
30349 $(TARGET-stage2-zlib)
ce406537
PB
30350
30351maybe-clean-stage2-zlib: clean-stage2-zlib
30352clean-stage2: clean-stage2-zlib
30353clean-stage2-zlib:
995a5697
PB
30354 @if [ $(current_stage) = stage2 ]; then \
30355 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
30356 else \
30357 [ -f $(HOST_SUBDIR)/stage2-zlib/Makefile ] || exit 0; \
30358 $(MAKE) stage2-start; \
30359 fi; \
ce406537
PB
30360 cd $(HOST_SUBDIR)/zlib && \
30361 $(MAKE) $(FLAGS_TO_PASS) \
30362 $(POSTSTAGE1_FLAGS_TO_PASS) \
30363 clean
30364@endif zlib-bootstrap
30365
30366
30367.PHONY: all-stage3-zlib maybe-all-stage3-zlib
30368.PHONY: clean-stage3-zlib maybe-clean-stage3-zlib
30369maybe-all-stage3-zlib:
30370maybe-clean-stage3-zlib:
30371@if zlib-bootstrap
30372maybe-all-stage3-zlib: all-stage3-zlib
30373all-stage3: all-stage3-zlib
1061f99e 30374TARGET-stage3-zlib = $(TARGET-zlib)
ce406537 30375all-stage3-zlib: configure-stage3-zlib
cc11cc9b 30376 @[ $(current_stage) = stage3 ] || $(MAKE) stage3-start
ce406537
PB
30377 @r=`${PWD_COMMAND}`; export r; \
30378 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30379 $(HOST_EXPORTS) \
30380 $(POSTSTAGE1_HOST_EXPORTS) \
30381 cd $(HOST_SUBDIR)/zlib && \
1061f99e
PB
30382 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
30383 $(TARGET-stage3-zlib)
ce406537
PB
30384
30385maybe-clean-stage3-zlib: clean-stage3-zlib
30386clean-stage3: clean-stage3-zlib
30387clean-stage3-zlib:
995a5697
PB
30388 @if [ $(current_stage) = stage3 ]; then \
30389 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
30390 else \
30391 [ -f $(HOST_SUBDIR)/stage3-zlib/Makefile ] || exit 0; \
30392 $(MAKE) stage3-start; \
30393 fi; \
ce406537
PB
30394 cd $(HOST_SUBDIR)/zlib && \
30395 $(MAKE) $(FLAGS_TO_PASS) \
30396 $(POSTSTAGE1_FLAGS_TO_PASS) \
30397 clean
30398@endif zlib-bootstrap
30399
30400
30401.PHONY: all-stage4-zlib maybe-all-stage4-zlib
30402.PHONY: clean-stage4-zlib maybe-clean-stage4-zlib
30403maybe-all-stage4-zlib:
30404maybe-clean-stage4-zlib:
30405@if zlib-bootstrap
30406maybe-all-stage4-zlib: all-stage4-zlib
30407all-stage4: all-stage4-zlib
1061f99e 30408TARGET-stage4-zlib = $(TARGET-zlib)
ce406537 30409all-stage4-zlib: configure-stage4-zlib
cc11cc9b 30410 @[ $(current_stage) = stage4 ] || $(MAKE) stage4-start
ce406537
PB
30411 @r=`${PWD_COMMAND}`; export r; \
30412 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30413 $(HOST_EXPORTS) \
30414 $(POSTSTAGE1_HOST_EXPORTS) \
30415 cd $(HOST_SUBDIR)/zlib && \
1061f99e
PB
30416 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) \
30417 $(TARGET-stage4-zlib)
ce406537
PB
30418
30419maybe-clean-stage4-zlib: clean-stage4-zlib
30420clean-stage4: clean-stage4-zlib
30421clean-stage4-zlib:
995a5697
PB
30422 @if [ $(current_stage) = stage4 ]; then \
30423 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
30424 else \
30425 [ -f $(HOST_SUBDIR)/stage4-zlib/Makefile ] || exit 0; \
30426 $(MAKE) stage4-start; \
30427 fi; \
ce406537
PB
30428 cd $(HOST_SUBDIR)/zlib && \
30429 $(MAKE) $(FLAGS_TO_PASS) \
30430 $(POSTSTAGE1_FLAGS_TO_PASS) \
30431 clean
30432@endif zlib-bootstrap
30433
30434
30435.PHONY: all-stageprofile-zlib maybe-all-stageprofile-zlib
30436.PHONY: clean-stageprofile-zlib maybe-clean-stageprofile-zlib
30437maybe-all-stageprofile-zlib:
30438maybe-clean-stageprofile-zlib:
30439@if zlib-bootstrap
30440maybe-all-stageprofile-zlib: all-stageprofile-zlib
30441all-stageprofile: all-stageprofile-zlib
1061f99e 30442TARGET-stageprofile-zlib = $(TARGET-zlib)
ce406537 30443all-stageprofile-zlib: configure-stageprofile-zlib
cc11cc9b 30444 @[ $(current_stage) = stageprofile ] || $(MAKE) stageprofile-start
ce406537
PB
30445 @r=`${PWD_COMMAND}`; export r; \
30446 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30447 $(HOST_EXPORTS) \
30448 $(POSTSTAGE1_HOST_EXPORTS) \
30449 cd $(HOST_SUBDIR)/zlib && \
1061f99e
PB
30450 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" \
30451 $(TARGET-stageprofile-zlib)
ce406537
PB
30452
30453maybe-clean-stageprofile-zlib: clean-stageprofile-zlib
30454clean-stageprofile: clean-stageprofile-zlib
30455clean-stageprofile-zlib:
995a5697
PB
30456 @if [ $(current_stage) = stageprofile ]; then \
30457 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
30458 else \
30459 [ -f $(HOST_SUBDIR)/stageprofile-zlib/Makefile ] || exit 0; \
30460 $(MAKE) stageprofile-start; \
30461 fi; \
ce406537
PB
30462 cd $(HOST_SUBDIR)/zlib && \
30463 $(MAKE) $(FLAGS_TO_PASS) \
30464 $(POSTSTAGE1_FLAGS_TO_PASS) \
30465 CFLAGS="$(BOOT_CFLAGS) -fprofile-generate" clean
30466@endif zlib-bootstrap
30467
30468
30469.PHONY: all-stagefeedback-zlib maybe-all-stagefeedback-zlib
30470.PHONY: clean-stagefeedback-zlib maybe-clean-stagefeedback-zlib
30471maybe-all-stagefeedback-zlib:
30472maybe-clean-stagefeedback-zlib:
30473@if zlib-bootstrap
30474maybe-all-stagefeedback-zlib: all-stagefeedback-zlib
30475all-stagefeedback: all-stagefeedback-zlib
1061f99e 30476TARGET-stagefeedback-zlib = $(TARGET-zlib)
ce406537 30477all-stagefeedback-zlib: configure-stagefeedback-zlib
cc11cc9b 30478 @[ $(current_stage) = stagefeedback ] || $(MAKE) stagefeedback-start
ce406537
PB
30479 @r=`${PWD_COMMAND}`; export r; \
30480 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30481 $(HOST_EXPORTS) \
30482 $(POSTSTAGE1_HOST_EXPORTS) \
30483 cd $(HOST_SUBDIR)/zlib && \
1061f99e
PB
30484 $(MAKE) $(FLAGS_TO_PASS) $(POSTSTAGE1_FLAGS_TO_PASS) CFLAGS="$(BOOT_CFLAGS) -fprofile-use" \
30485 $(TARGET-stagefeedback-zlib)
ce406537
PB
30486
30487maybe-clean-stagefeedback-zlib: clean-stagefeedback-zlib
30488clean-stagefeedback: clean-stagefeedback-zlib
30489clean-stagefeedback-zlib:
995a5697
PB
30490 @if [ $(current_stage) = stagefeedback ]; then \
30491 [ -f $(HOST_SUBDIR)/zlib/Makefile ] || exit 0; \
30492 else \
30493 [ -f $(HOST_SUBDIR)/stagefeedback-zlib/Makefile ] || exit 0; \
30494 $(MAKE) stagefeedback-start; \
30495 fi; \
ce406537
PB
30496 cd $(HOST_SUBDIR)/zlib && \
30497 $(MAKE) $(FLAGS_TO_PASS) \
30498 $(POSTSTAGE1_FLAGS_TO_PASS) \
30499 CFLAGS="$(BOOT_CFLAGS) -fprofile-use" clean
30500@endif zlib-bootstrap
30501
30502
30503
30504
30505
d32ab992
PB
30506.PHONY: check-zlib maybe-check-zlib
30507maybe-check-zlib:
30508@if zlib
30509maybe-check-zlib: check-zlib
4977bab6 30510
d32ab992 30511check-zlib:
4977bab6 30512
d32ab992 30513@endif zlib
4977bab6 30514
d32ab992
PB
30515.PHONY: install-zlib maybe-install-zlib
30516maybe-install-zlib:
30517@if zlib
30518maybe-install-zlib: install-zlib
7e2dbcef 30519
d32ab992 30520install-zlib:
4977bab6 30521
d32ab992 30522@endif zlib
4977bab6 30523
b5422ad7 30524# Other targets (info, dvi, pdf, etc.)
295f4e42 30525
d32ab992
PB
30526.PHONY: maybe-info-zlib info-zlib
30527maybe-info-zlib:
30528@if zlib
30529maybe-info-zlib: info-zlib
295f4e42 30530
f87a2b2e 30531info-zlib: \
05750653 30532 configure-zlib
f87a2b2e
MS
30533 @[ -f ./zlib/Makefile ] || exit 0; \
30534 r=`${PWD_COMMAND}`; export r; \
30535 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
30536 $(HOST_EXPORTS) \
30537 for flag in $(EXTRA_HOST_FLAGS) ; do \
30538 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30539 done; \
30540 echo "Doing info in zlib" ; \
215c351a 30541 (cd $(HOST_SUBDIR)/zlib && \
f87a2b2e
MS
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}" \
30546 info) \
30547 || exit 1
30548
30549@endif zlib
30550
30551.PHONY: maybe-dvi-zlib dvi-zlib
30552maybe-dvi-zlib:
30553@if zlib
30554maybe-dvi-zlib: dvi-zlib
30555
30556dvi-zlib: \
05750653 30557 configure-zlib
d32ab992 30558 @[ -f ./zlib/Makefile ] || exit 0; \
8c90b13a
L
30559 r=`${PWD_COMMAND}`; export r; \
30560 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30561 $(HOST_EXPORTS) \
d32ab992 30562 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
30563 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30564 done; \
f87a2b2e 30565 echo "Doing dvi in zlib" ; \
215c351a 30566 (cd $(HOST_SUBDIR)/zlib && \
295f4e42
NN
30567 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30568 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30569 "RANLIB=$${RANLIB}" \
30570 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
f87a2b2e 30571 dvi) \
4977bab6
ZW
30572 || exit 1
30573
d32ab992 30574@endif zlib
295f4e42 30575
b5422ad7
BM
30576.PHONY: maybe-pdf-zlib pdf-zlib
30577maybe-pdf-zlib:
30578@if zlib
30579maybe-pdf-zlib: pdf-zlib
30580
30581pdf-zlib: \
30582 configure-zlib
30583 @[ -f ./zlib/Makefile ] || exit 0; \
30584 r=`${PWD_COMMAND}`; export r; \
30585 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30586 $(HOST_EXPORTS) \
30587 for flag in $(EXTRA_HOST_FLAGS) ; do \
30588 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30589 done; \
30590 echo "Doing pdf in zlib" ; \
30591 (cd $(HOST_SUBDIR)/zlib && \
30592 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30593 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30594 "RANLIB=$${RANLIB}" \
30595 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
30596 pdf) \
30597 || exit 1
30598
30599@endif zlib
30600
f87a2b2e
MS
30601.PHONY: maybe-html-zlib html-zlib
30602maybe-html-zlib:
d32ab992 30603@if zlib
f87a2b2e 30604maybe-html-zlib: html-zlib
295f4e42 30605
f87a2b2e 30606html-zlib: \
05750653 30607 configure-zlib
d32ab992 30608 @[ -f ./zlib/Makefile ] || exit 0; \
295f4e42 30609 r=`${PWD_COMMAND}`; export r; \
8c90b13a 30610 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30611 $(HOST_EXPORTS) \
d32ab992 30612 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
30613 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30614 done; \
f87a2b2e 30615 echo "Doing html in zlib" ; \
215c351a 30616 (cd $(HOST_SUBDIR)/zlib && \
295f4e42
NN
30617 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30618 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30619 "RANLIB=$${RANLIB}" \
30620 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
f87a2b2e 30621 html) \
295f4e42 30622 || exit 1
4977bab6 30623
d32ab992 30624@endif zlib
4977bab6 30625
d32ab992
PB
30626.PHONY: maybe-TAGS-zlib TAGS-zlib
30627maybe-TAGS-zlib:
30628@if zlib
30629maybe-TAGS-zlib: TAGS-zlib
295f4e42 30630
d32ab992 30631TAGS-zlib: \
05750653 30632 configure-zlib
d32ab992 30633 @[ -f ./zlib/Makefile ] || exit 0; \
295f4e42 30634 r=`${PWD_COMMAND}`; export r; \
8c90b13a 30635 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30636 $(HOST_EXPORTS) \
d32ab992 30637 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
30638 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30639 done; \
d32ab992 30640 echo "Doing TAGS in zlib" ; \
215c351a 30641 (cd $(HOST_SUBDIR)/zlib && \
295f4e42
NN
30642 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30643 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30644 "RANLIB=$${RANLIB}" \
30645 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 30646 TAGS) \
295f4e42 30647 || exit 1
4977bab6 30648
d32ab992 30649@endif zlib
4977bab6 30650
d32ab992
PB
30651.PHONY: maybe-install-info-zlib install-info-zlib
30652maybe-install-info-zlib:
30653@if zlib
30654maybe-install-info-zlib: install-info-zlib
7e2dbcef 30655
d32ab992
PB
30656install-info-zlib: \
30657 configure-zlib \
05750653 30658 info-zlib
d32ab992 30659 @[ -f ./zlib/Makefile ] || exit 0; \
295f4e42
NN
30660 r=`${PWD_COMMAND}`; export r; \
30661 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30662 $(HOST_EXPORTS) \
d32ab992 30663 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
30664 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30665 done; \
d32ab992 30666 echo "Doing install-info in zlib" ; \
215c351a 30667 (cd $(HOST_SUBDIR)/zlib && \
295f4e42
NN
30668 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30669 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30670 "RANLIB=$${RANLIB}" \
30671 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 30672 install-info) \
295f4e42
NN
30673 || exit 1
30674
d32ab992 30675@endif zlib
295f4e42 30676
65d6e994
CD
30677.PHONY: maybe-install-html-zlib install-html-zlib
30678maybe-install-html-zlib:
30679@if zlib
30680maybe-install-html-zlib: install-html-zlib
30681
30682install-html-zlib: \
30683 configure-zlib \
30684 html-zlib
30685 @[ -f ./zlib/Makefile ] || exit 0; \
30686 r=`${PWD_COMMAND}`; export r; \
30687 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30688 $(HOST_EXPORTS) \
30689 for flag in $(EXTRA_HOST_FLAGS) ; do \
30690 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30691 done; \
30692 echo "Doing install-html in zlib" ; \
30693 (cd $(HOST_SUBDIR)/zlib && \
30694 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30695 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30696 "RANLIB=$${RANLIB}" \
30697 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
30698 install-html) \
30699 || exit 1
30700
30701@endif zlib
30702
d32ab992
PB
30703.PHONY: maybe-installcheck-zlib installcheck-zlib
30704maybe-installcheck-zlib:
30705@if zlib
30706maybe-installcheck-zlib: installcheck-zlib
295f4e42 30707
d32ab992 30708installcheck-zlib: \
05750653 30709 configure-zlib
d32ab992 30710 @[ -f ./zlib/Makefile ] || exit 0; \
295f4e42
NN
30711 r=`${PWD_COMMAND}`; export r; \
30712 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30713 $(HOST_EXPORTS) \
d32ab992 30714 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
30715 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30716 done; \
d32ab992 30717 echo "Doing installcheck in zlib" ; \
215c351a 30718 (cd $(HOST_SUBDIR)/zlib && \
295f4e42
NN
30719 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30720 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30721 "RANLIB=$${RANLIB}" \
30722 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 30723 installcheck) \
295f4e42
NN
30724 || exit 1
30725
d32ab992 30726@endif zlib
295f4e42 30727
d32ab992
PB
30728.PHONY: maybe-mostlyclean-zlib mostlyclean-zlib
30729maybe-mostlyclean-zlib:
30730@if zlib
30731maybe-mostlyclean-zlib: mostlyclean-zlib
295f4e42 30732
05750653 30733mostlyclean-zlib:
d32ab992 30734 @[ -f ./zlib/Makefile ] || exit 0; \
295f4e42
NN
30735 r=`${PWD_COMMAND}`; export r; \
30736 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30737 $(HOST_EXPORTS) \
d32ab992 30738 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
30739 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30740 done; \
d32ab992 30741 echo "Doing mostlyclean in zlib" ; \
215c351a 30742 (cd $(HOST_SUBDIR)/zlib && \
295f4e42
NN
30743 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30744 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30745 "RANLIB=$${RANLIB}" \
30746 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 30747 mostlyclean) \
295f4e42
NN
30748 || exit 1
30749
d32ab992 30750@endif zlib
295f4e42 30751
d32ab992
PB
30752.PHONY: maybe-clean-zlib clean-zlib
30753maybe-clean-zlib:
30754@if zlib
30755maybe-clean-zlib: clean-zlib
295f4e42 30756
05750653 30757clean-zlib:
d32ab992 30758 @[ -f ./zlib/Makefile ] || exit 0; \
295f4e42
NN
30759 r=`${PWD_COMMAND}`; export r; \
30760 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30761 $(HOST_EXPORTS) \
d32ab992 30762 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
30763 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30764 done; \
d32ab992 30765 echo "Doing clean in zlib" ; \
215c351a 30766 (cd $(HOST_SUBDIR)/zlib && \
295f4e42
NN
30767 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30768 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30769 "RANLIB=$${RANLIB}" \
30770 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 30771 clean) \
295f4e42
NN
30772 || exit 1
30773
d32ab992 30774@endif zlib
295f4e42 30775
d32ab992
PB
30776.PHONY: maybe-distclean-zlib distclean-zlib
30777maybe-distclean-zlib:
30778@if zlib
30779maybe-distclean-zlib: distclean-zlib
295f4e42 30780
05750653 30781distclean-zlib:
d32ab992 30782 @[ -f ./zlib/Makefile ] || exit 0; \
295f4e42
NN
30783 r=`${PWD_COMMAND}`; export r; \
30784 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30785 $(HOST_EXPORTS) \
d32ab992 30786 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
30787 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30788 done; \
d32ab992 30789 echo "Doing distclean in zlib" ; \
215c351a 30790 (cd $(HOST_SUBDIR)/zlib && \
295f4e42
NN
30791 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30792 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30793 "RANLIB=$${RANLIB}" \
30794 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 30795 distclean) \
295f4e42
NN
30796 || exit 1
30797
d32ab992 30798@endif zlib
295f4e42 30799
d32ab992
PB
30800.PHONY: maybe-maintainer-clean-zlib maintainer-clean-zlib
30801maybe-maintainer-clean-zlib:
30802@if zlib
30803maybe-maintainer-clean-zlib: maintainer-clean-zlib
295f4e42 30804
05750653 30805maintainer-clean-zlib:
d32ab992 30806 @[ -f ./zlib/Makefile ] || exit 0; \
295f4e42 30807 r=`${PWD_COMMAND}`; export r; \
8c90b13a 30808 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30809 $(HOST_EXPORTS) \
d32ab992 30810 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
30811 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30812 done; \
d32ab992 30813 echo "Doing maintainer-clean in zlib" ; \
215c351a 30814 (cd $(HOST_SUBDIR)/zlib && \
295f4e42
NN
30815 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30816 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30817 "RANLIB=$${RANLIB}" \
30818 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 30819 maintainer-clean) \
295f4e42 30820 || exit 1
4977bab6 30821
d32ab992 30822@endif zlib
4977bab6 30823
295f4e42 30824
25b42232 30825
d32ab992
PB
30826.PHONY: configure-gdb maybe-configure-gdb
30827maybe-configure-gdb:
3ff3adad
PB
30828@if gcc-bootstrap
30829configure-gdb: stage_current
30830@endif gcc-bootstrap
d32ab992
PB
30831@if gdb
30832maybe-configure-gdb: configure-gdb
cc11cc9b 30833configure-gdb:
f41d6665 30834 @: $(MAKE); $(unstage)
cc11cc9b 30835 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 30836 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
30837 test ! -f $(HOST_SUBDIR)/gdb/Makefile || exit 0; \
30838 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gdb ; \
4fc4dd12 30839 $(HOST_EXPORTS) \
25b42232
PB
30840 echo Configuring in $(HOST_SUBDIR)/gdb; \
30841 cd "$(HOST_SUBDIR)/gdb" || exit 1; \
4977bab6 30842 case $(srcdir) in \
215c351a
PB
30843 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
30844 *) topdir=`echo $(HOST_SUBDIR)/gdb/ | \
30845 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 30846 esac; \
215c351a
PB
30847 srcdiroption="--srcdir=$${topdir}/gdb"; \
30848 libsrcdir="$$s/gdb"; \
4977bab6 30849 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 30850 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 30851 || exit 1
d32ab992 30852@endif gdb
4977bab6 30853
25b42232
PB
30854
30855
ce406537
PB
30856
30857
d32ab992
PB
30858.PHONY: all-gdb maybe-all-gdb
30859maybe-all-gdb:
3ff3adad
PB
30860@if gcc-bootstrap
30861all-gdb: stage_current
30862@endif gcc-bootstrap
d32ab992 30863@if gdb
7e0b5752 30864TARGET-gdb=all
d32ab992
PB
30865maybe-all-gdb: all-gdb
30866all-gdb: configure-gdb
f41d6665 30867 @: $(MAKE); $(unstage)
8c90b13a
L
30868 @r=`${PWD_COMMAND}`; export r; \
30869 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30870 $(HOST_EXPORTS) \
215c351a
PB
30871 (cd $(HOST_SUBDIR)/gdb && \
30872 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) $(TARGET-gdb))
d32ab992 30873@endif gdb
4977bab6 30874
25b42232 30875
ce406537
PB
30876
30877
d32ab992
PB
30878.PHONY: check-gdb maybe-check-gdb
30879maybe-check-gdb:
30880@if gdb
30881maybe-check-gdb: check-gdb
4977bab6 30882
d32ab992 30883check-gdb:
f41d6665 30884 @: $(MAKE); $(unstage)
8c90b13a
L
30885 @r=`${PWD_COMMAND}`; export r; \
30886 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30887 $(HOST_EXPORTS) \
215c351a
PB
30888 (cd $(HOST_SUBDIR)/gdb && \
30889 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
4977bab6 30890
d32ab992 30891@endif gdb
4977bab6 30892
d32ab992
PB
30893.PHONY: install-gdb maybe-install-gdb
30894maybe-install-gdb:
30895@if gdb
30896maybe-install-gdb: install-gdb
295f4e42 30897
d32ab992 30898install-gdb: installdirs
f41d6665 30899 @: $(MAKE); $(unstage)
295f4e42
NN
30900 @r=`${PWD_COMMAND}`; export r; \
30901 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30902 $(HOST_EXPORTS) \
215c351a 30903 (cd $(HOST_SUBDIR)/gdb && \
ace9ac7b 30904 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
295f4e42 30905
d32ab992 30906@endif gdb
295f4e42 30907
b5422ad7 30908# Other targets (info, dvi, pdf, etc.)
295f4e42 30909
d32ab992
PB
30910.PHONY: maybe-info-gdb info-gdb
30911maybe-info-gdb:
30912@if gdb
30913maybe-info-gdb: info-gdb
295f4e42 30914
d32ab992 30915info-gdb: \
05750653 30916 configure-gdb
f41d6665 30917 @: $(MAKE); $(unstage)
d32ab992 30918 @[ -f ./gdb/Makefile ] || exit 0; \
295f4e42
NN
30919 r=`${PWD_COMMAND}`; export r; \
30920 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30921 $(HOST_EXPORTS) \
7c27e184 30922 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
30923 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30924 done; \
d32ab992 30925 echo "Doing info in gdb" ; \
215c351a 30926 (cd $(HOST_SUBDIR)/gdb && \
295f4e42
NN
30927 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30928 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30929 "RANLIB=$${RANLIB}" \
30930 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 30931 info) \
295f4e42
NN
30932 || exit 1
30933
d32ab992 30934@endif gdb
295f4e42 30935
d32ab992
PB
30936.PHONY: maybe-dvi-gdb dvi-gdb
30937maybe-dvi-gdb:
30938@if gdb
30939maybe-dvi-gdb: dvi-gdb
295f4e42 30940
d32ab992 30941dvi-gdb: \
05750653 30942 configure-gdb
f41d6665 30943 @: $(MAKE); $(unstage)
d32ab992 30944 @[ -f ./gdb/Makefile ] || exit 0; \
295f4e42
NN
30945 r=`${PWD_COMMAND}`; export r; \
30946 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 30947 $(HOST_EXPORTS) \
7c27e184 30948 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
30949 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30950 done; \
d32ab992 30951 echo "Doing dvi in gdb" ; \
215c351a 30952 (cd $(HOST_SUBDIR)/gdb && \
295f4e42
NN
30953 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30954 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30955 "RANLIB=$${RANLIB}" \
30956 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 30957 dvi) \
295f4e42
NN
30958 || exit 1
30959
d32ab992 30960@endif gdb
295f4e42 30961
b5422ad7
BM
30962.PHONY: maybe-pdf-gdb pdf-gdb
30963maybe-pdf-gdb:
30964@if gdb
30965maybe-pdf-gdb: pdf-gdb
30966
30967pdf-gdb: \
30968 configure-gdb
30969 @: $(MAKE); $(unstage)
30970 @[ -f ./gdb/Makefile ] || exit 0; \
30971 r=`${PWD_COMMAND}`; export r; \
30972 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
30973 $(HOST_EXPORTS) \
30974 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
30975 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
30976 done; \
30977 echo "Doing pdf in gdb" ; \
30978 (cd $(HOST_SUBDIR)/gdb && \
30979 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
30980 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
30981 "RANLIB=$${RANLIB}" \
30982 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
30983 pdf) \
30984 || exit 1
30985
30986@endif gdb
30987
f87a2b2e
MS
30988.PHONY: maybe-html-gdb html-gdb
30989maybe-html-gdb:
30990@if gdb
30991maybe-html-gdb: html-gdb
30992
30993html-gdb: \
05750653 30994 configure-gdb
f41d6665 30995 @: $(MAKE); $(unstage)
f87a2b2e
MS
30996 @[ -f ./gdb/Makefile ] || exit 0; \
30997 r=`${PWD_COMMAND}`; export r; \
30998 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
30999 $(HOST_EXPORTS) \
31000 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
31001 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31002 done; \
31003 echo "Doing html in gdb" ; \
215c351a 31004 (cd $(HOST_SUBDIR)/gdb && \
f87a2b2e
MS
31005 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31006 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31007 "RANLIB=$${RANLIB}" \
31008 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
31009 html) \
31010 || exit 1
31011
31012@endif gdb
31013
d32ab992
PB
31014.PHONY: maybe-TAGS-gdb TAGS-gdb
31015maybe-TAGS-gdb:
31016@if gdb
31017maybe-TAGS-gdb: TAGS-gdb
295f4e42 31018
d32ab992 31019TAGS-gdb: \
05750653 31020 configure-gdb
f41d6665 31021 @: $(MAKE); $(unstage)
d32ab992 31022 @[ -f ./gdb/Makefile ] || exit 0; \
295f4e42
NN
31023 r=`${PWD_COMMAND}`; export r; \
31024 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31025 $(HOST_EXPORTS) \
7c27e184 31026 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
31027 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31028 done; \
d32ab992 31029 echo "Doing TAGS in gdb" ; \
215c351a 31030 (cd $(HOST_SUBDIR)/gdb && \
295f4e42
NN
31031 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31032 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31033 "RANLIB=$${RANLIB}" \
31034 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 31035 TAGS) \
295f4e42
NN
31036 || exit 1
31037
d32ab992 31038@endif gdb
295f4e42 31039
d32ab992
PB
31040.PHONY: maybe-install-info-gdb install-info-gdb
31041maybe-install-info-gdb:
31042@if gdb
31043maybe-install-info-gdb: install-info-gdb
295f4e42 31044
d32ab992
PB
31045install-info-gdb: \
31046 configure-gdb \
05750653 31047 info-gdb
f41d6665 31048 @: $(MAKE); $(unstage)
d32ab992 31049 @[ -f ./gdb/Makefile ] || exit 0; \
295f4e42
NN
31050 r=`${PWD_COMMAND}`; export r; \
31051 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31052 $(HOST_EXPORTS) \
7c27e184 31053 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
31054 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31055 done; \
d32ab992 31056 echo "Doing install-info in gdb" ; \
215c351a 31057 (cd $(HOST_SUBDIR)/gdb && \
295f4e42
NN
31058 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31059 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31060 "RANLIB=$${RANLIB}" \
31061 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 31062 install-info) \
295f4e42
NN
31063 || exit 1
31064
d32ab992 31065@endif gdb
295f4e42 31066
65d6e994
CD
31067.PHONY: maybe-install-html-gdb install-html-gdb
31068maybe-install-html-gdb:
31069@if gdb
31070maybe-install-html-gdb: install-html-gdb
31071
31072install-html-gdb: \
31073 configure-gdb \
31074 html-gdb
31075 @: $(MAKE); $(unstage)
31076 @[ -f ./gdb/Makefile ] || exit 0; \
31077 r=`${PWD_COMMAND}`; export r; \
31078 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31079 $(HOST_EXPORTS) \
31080 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
31081 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31082 done; \
31083 echo "Doing install-html in gdb" ; \
31084 (cd $(HOST_SUBDIR)/gdb && \
31085 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31086 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31087 "RANLIB=$${RANLIB}" \
31088 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
31089 install-html) \
31090 || exit 1
31091
31092@endif gdb
31093
d32ab992
PB
31094.PHONY: maybe-installcheck-gdb installcheck-gdb
31095maybe-installcheck-gdb:
31096@if gdb
31097maybe-installcheck-gdb: installcheck-gdb
295f4e42 31098
d32ab992 31099installcheck-gdb: \
05750653 31100 configure-gdb
f41d6665 31101 @: $(MAKE); $(unstage)
d32ab992 31102 @[ -f ./gdb/Makefile ] || exit 0; \
295f4e42
NN
31103 r=`${PWD_COMMAND}`; export r; \
31104 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31105 $(HOST_EXPORTS) \
7c27e184 31106 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
31107 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31108 done; \
d32ab992 31109 echo "Doing installcheck in gdb" ; \
215c351a 31110 (cd $(HOST_SUBDIR)/gdb && \
295f4e42
NN
31111 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31112 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31113 "RANLIB=$${RANLIB}" \
31114 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 31115 installcheck) \
295f4e42
NN
31116 || exit 1
31117
d32ab992 31118@endif gdb
295f4e42 31119
d32ab992
PB
31120.PHONY: maybe-mostlyclean-gdb mostlyclean-gdb
31121maybe-mostlyclean-gdb:
31122@if gdb
31123maybe-mostlyclean-gdb: mostlyclean-gdb
295f4e42 31124
05750653 31125mostlyclean-gdb:
f41d6665 31126 @: $(MAKE); $(unstage)
d32ab992 31127 @[ -f ./gdb/Makefile ] || exit 0; \
295f4e42
NN
31128 r=`${PWD_COMMAND}`; export r; \
31129 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31130 $(HOST_EXPORTS) \
7c27e184 31131 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
31132 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31133 done; \
d32ab992 31134 echo "Doing mostlyclean in gdb" ; \
215c351a 31135 (cd $(HOST_SUBDIR)/gdb && \
295f4e42
NN
31136 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31137 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31138 "RANLIB=$${RANLIB}" \
31139 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 31140 mostlyclean) \
295f4e42
NN
31141 || exit 1
31142
d32ab992 31143@endif gdb
295f4e42 31144
d32ab992
PB
31145.PHONY: maybe-clean-gdb clean-gdb
31146maybe-clean-gdb:
31147@if gdb
31148maybe-clean-gdb: clean-gdb
295f4e42 31149
05750653 31150clean-gdb:
f41d6665 31151 @: $(MAKE); $(unstage)
d32ab992 31152 @[ -f ./gdb/Makefile ] || exit 0; \
295f4e42
NN
31153 r=`${PWD_COMMAND}`; export r; \
31154 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31155 $(HOST_EXPORTS) \
7c27e184 31156 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
31157 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31158 done; \
d32ab992 31159 echo "Doing clean in gdb" ; \
215c351a 31160 (cd $(HOST_SUBDIR)/gdb && \
295f4e42
NN
31161 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31162 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31163 "RANLIB=$${RANLIB}" \
31164 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 31165 clean) \
295f4e42
NN
31166 || exit 1
31167
d32ab992 31168@endif gdb
295f4e42 31169
d32ab992
PB
31170.PHONY: maybe-distclean-gdb distclean-gdb
31171maybe-distclean-gdb:
31172@if gdb
31173maybe-distclean-gdb: distclean-gdb
295f4e42 31174
05750653 31175distclean-gdb:
f41d6665 31176 @: $(MAKE); $(unstage)
d32ab992 31177 @[ -f ./gdb/Makefile ] || exit 0; \
295f4e42
NN
31178 r=`${PWD_COMMAND}`; export r; \
31179 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31180 $(HOST_EXPORTS) \
7c27e184 31181 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
31182 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31183 done; \
d32ab992 31184 echo "Doing distclean in gdb" ; \
215c351a 31185 (cd $(HOST_SUBDIR)/gdb && \
295f4e42
NN
31186 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31187 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31188 "RANLIB=$${RANLIB}" \
31189 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 31190 distclean) \
295f4e42
NN
31191 || exit 1
31192
d32ab992 31193@endif gdb
295f4e42 31194
d32ab992
PB
31195.PHONY: maybe-maintainer-clean-gdb maintainer-clean-gdb
31196maybe-maintainer-clean-gdb:
31197@if gdb
31198maybe-maintainer-clean-gdb: maintainer-clean-gdb
295f4e42 31199
05750653 31200maintainer-clean-gdb:
f41d6665 31201 @: $(MAKE); $(unstage)
d32ab992 31202 @[ -f ./gdb/Makefile ] || exit 0; \
295f4e42
NN
31203 r=`${PWD_COMMAND}`; export r; \
31204 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31205 $(HOST_EXPORTS) \
7c27e184 31206 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
31207 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31208 done; \
d32ab992 31209 echo "Doing maintainer-clean in gdb" ; \
215c351a 31210 (cd $(HOST_SUBDIR)/gdb && \
295f4e42
NN
31211 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31212 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31213 "RANLIB=$${RANLIB}" \
31214 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 31215 maintainer-clean) \
295f4e42 31216 || exit 1
7e2dbcef 31217
d32ab992 31218@endif gdb
4977bab6
ZW
31219
31220
25b42232 31221
d32ab992
PB
31222.PHONY: configure-expect maybe-configure-expect
31223maybe-configure-expect:
3ff3adad
PB
31224@if gcc-bootstrap
31225configure-expect: stage_current
31226@endif gcc-bootstrap
d32ab992
PB
31227@if expect
31228maybe-configure-expect: configure-expect
cc11cc9b 31229configure-expect:
f41d6665 31230 @: $(MAKE); $(unstage)
cc11cc9b 31231 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 31232 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
31233 test ! -f $(HOST_SUBDIR)/expect/Makefile || exit 0; \
31234 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/expect ; \
4fc4dd12 31235 $(HOST_EXPORTS) \
25b42232
PB
31236 echo Configuring in $(HOST_SUBDIR)/expect; \
31237 cd "$(HOST_SUBDIR)/expect" || exit 1; \
4977bab6 31238 case $(srcdir) in \
215c351a
PB
31239 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31240 *) topdir=`echo $(HOST_SUBDIR)/expect/ | \
31241 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 31242 esac; \
215c351a
PB
31243 srcdiroption="--srcdir=$${topdir}/expect"; \
31244 libsrcdir="$$s/expect"; \
4977bab6 31245 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 31246 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 31247 || exit 1
d32ab992 31248@endif expect
4977bab6 31249
25b42232
PB
31250
31251
ce406537
PB
31252
31253
d32ab992
PB
31254.PHONY: all-expect maybe-all-expect
31255maybe-all-expect:
3ff3adad
PB
31256@if gcc-bootstrap
31257all-expect: stage_current
31258@endif gcc-bootstrap
d32ab992 31259@if expect
7e0b5752 31260TARGET-expect=all
d32ab992
PB
31261maybe-all-expect: all-expect
31262all-expect: configure-expect
f41d6665 31263 @: $(MAKE); $(unstage)
8c90b13a
L
31264 @r=`${PWD_COMMAND}`; export r; \
31265 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31266 $(HOST_EXPORTS) \
215c351a
PB
31267 (cd $(HOST_SUBDIR)/expect && \
31268 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) $(TARGET-expect))
d32ab992 31269@endif expect
4977bab6 31270
25b42232 31271
ce406537
PB
31272
31273
d32ab992
PB
31274.PHONY: check-expect maybe-check-expect
31275maybe-check-expect:
31276@if expect
31277maybe-check-expect: check-expect
4977bab6 31278
d32ab992 31279check-expect:
f41d6665 31280 @: $(MAKE); $(unstage)
8c90b13a
L
31281 @r=`${PWD_COMMAND}`; export r; \
31282 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31283 $(HOST_EXPORTS) \
215c351a
PB
31284 (cd $(HOST_SUBDIR)/expect && \
31285 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
4977bab6 31286
d32ab992 31287@endif expect
4977bab6 31288
d32ab992
PB
31289.PHONY: install-expect maybe-install-expect
31290maybe-install-expect:
31291@if expect
31292maybe-install-expect: install-expect
7e2dbcef 31293
d32ab992 31294install-expect: installdirs
f41d6665 31295 @: $(MAKE); $(unstage)
8c90b13a
L
31296 @r=`${PWD_COMMAND}`; export r; \
31297 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31298 $(HOST_EXPORTS) \
215c351a 31299 (cd $(HOST_SUBDIR)/expect && \
ace9ac7b 31300 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
4977bab6 31301
d32ab992 31302@endif expect
4977bab6 31303
b5422ad7 31304# Other targets (info, dvi, pdf, etc.)
295f4e42 31305
d32ab992
PB
31306.PHONY: maybe-info-expect info-expect
31307maybe-info-expect:
31308@if expect
31309maybe-info-expect: info-expect
295f4e42 31310
d32ab992 31311info-expect: \
05750653 31312 configure-expect
f41d6665 31313 @: $(MAKE); $(unstage)
d32ab992 31314 @[ -f ./expect/Makefile ] || exit 0; \
295f4e42
NN
31315 r=`${PWD_COMMAND}`; export r; \
31316 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31317 $(HOST_EXPORTS) \
7c27e184 31318 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
31319 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31320 done; \
d32ab992 31321 echo "Doing info in expect" ; \
215c351a 31322 (cd $(HOST_SUBDIR)/expect && \
295f4e42
NN
31323 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31324 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31325 "RANLIB=$${RANLIB}" \
31326 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 31327 info) \
295f4e42
NN
31328 || exit 1
31329
d32ab992 31330@endif expect
295f4e42 31331
d32ab992
PB
31332.PHONY: maybe-dvi-expect dvi-expect
31333maybe-dvi-expect:
31334@if expect
31335maybe-dvi-expect: dvi-expect
295f4e42 31336
d32ab992 31337dvi-expect: \
05750653 31338 configure-expect
f41d6665 31339 @: $(MAKE); $(unstage)
d32ab992 31340 @[ -f ./expect/Makefile ] || exit 0; \
295f4e42
NN
31341 r=`${PWD_COMMAND}`; export r; \
31342 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31343 $(HOST_EXPORTS) \
7c27e184 31344 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
31345 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31346 done; \
d32ab992 31347 echo "Doing dvi in expect" ; \
215c351a 31348 (cd $(HOST_SUBDIR)/expect && \
295f4e42
NN
31349 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31350 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31351 "RANLIB=$${RANLIB}" \
31352 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 31353 dvi) \
295f4e42
NN
31354 || exit 1
31355
d32ab992 31356@endif expect
295f4e42 31357
b5422ad7
BM
31358.PHONY: maybe-pdf-expect pdf-expect
31359maybe-pdf-expect:
31360@if expect
31361maybe-pdf-expect: pdf-expect
31362
31363pdf-expect: \
31364 configure-expect
31365 @: $(MAKE); $(unstage)
31366 @[ -f ./expect/Makefile ] || exit 0; \
31367 r=`${PWD_COMMAND}`; export r; \
31368 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31369 $(HOST_EXPORTS) \
31370 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
31371 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31372 done; \
31373 echo "Doing pdf in expect" ; \
31374 (cd $(HOST_SUBDIR)/expect && \
31375 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31376 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31377 "RANLIB=$${RANLIB}" \
31378 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
31379 pdf) \
31380 || exit 1
31381
31382@endif expect
31383
f87a2b2e
MS
31384.PHONY: maybe-html-expect html-expect
31385maybe-html-expect:
31386@if expect
31387maybe-html-expect: html-expect
31388
31389html-expect: \
05750653 31390 configure-expect
f41d6665 31391 @: $(MAKE); $(unstage)
f87a2b2e
MS
31392 @[ -f ./expect/Makefile ] || exit 0; \
31393 r=`${PWD_COMMAND}`; export r; \
31394 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
31395 $(HOST_EXPORTS) \
31396 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
31397 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31398 done; \
31399 echo "Doing html in expect" ; \
215c351a 31400 (cd $(HOST_SUBDIR)/expect && \
f87a2b2e
MS
31401 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31402 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31403 "RANLIB=$${RANLIB}" \
31404 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
31405 html) \
31406 || exit 1
31407
31408@endif expect
31409
d32ab992
PB
31410.PHONY: maybe-TAGS-expect TAGS-expect
31411maybe-TAGS-expect:
31412@if expect
31413maybe-TAGS-expect: TAGS-expect
295f4e42 31414
d32ab992 31415TAGS-expect: \
05750653 31416 configure-expect
f41d6665 31417 @: $(MAKE); $(unstage)
d32ab992 31418 @[ -f ./expect/Makefile ] || exit 0; \
295f4e42
NN
31419 r=`${PWD_COMMAND}`; export r; \
31420 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31421 $(HOST_EXPORTS) \
7c27e184 31422 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
31423 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31424 done; \
d32ab992 31425 echo "Doing TAGS in expect" ; \
215c351a 31426 (cd $(HOST_SUBDIR)/expect && \
295f4e42
NN
31427 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31428 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31429 "RANLIB=$${RANLIB}" \
31430 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 31431 TAGS) \
295f4e42
NN
31432 || exit 1
31433
d32ab992 31434@endif expect
295f4e42 31435
d32ab992
PB
31436.PHONY: maybe-install-info-expect install-info-expect
31437maybe-install-info-expect:
31438@if expect
31439maybe-install-info-expect: install-info-expect
295f4e42 31440
d32ab992
PB
31441install-info-expect: \
31442 configure-expect \
05750653 31443 info-expect
f41d6665 31444 @: $(MAKE); $(unstage)
d32ab992 31445 @[ -f ./expect/Makefile ] || exit 0; \
295f4e42
NN
31446 r=`${PWD_COMMAND}`; export r; \
31447 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31448 $(HOST_EXPORTS) \
7c27e184 31449 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
31450 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31451 done; \
d32ab992 31452 echo "Doing install-info in expect" ; \
215c351a 31453 (cd $(HOST_SUBDIR)/expect && \
295f4e42
NN
31454 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31455 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31456 "RANLIB=$${RANLIB}" \
31457 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 31458 install-info) \
295f4e42
NN
31459 || exit 1
31460
d32ab992 31461@endif expect
295f4e42 31462
65d6e994
CD
31463.PHONY: maybe-install-html-expect install-html-expect
31464maybe-install-html-expect:
31465@if expect
31466maybe-install-html-expect: install-html-expect
31467
31468install-html-expect: \
31469 configure-expect \
31470 html-expect
31471 @: $(MAKE); $(unstage)
31472 @[ -f ./expect/Makefile ] || exit 0; \
31473 r=`${PWD_COMMAND}`; export r; \
31474 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31475 $(HOST_EXPORTS) \
31476 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
31477 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31478 done; \
31479 echo "Doing install-html in expect" ; \
31480 (cd $(HOST_SUBDIR)/expect && \
31481 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31482 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31483 "RANLIB=$${RANLIB}" \
31484 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
31485 install-html) \
31486 || exit 1
31487
31488@endif expect
31489
d32ab992
PB
31490.PHONY: maybe-installcheck-expect installcheck-expect
31491maybe-installcheck-expect:
31492@if expect
31493maybe-installcheck-expect: installcheck-expect
295f4e42 31494
d32ab992 31495installcheck-expect: \
05750653 31496 configure-expect
f41d6665 31497 @: $(MAKE); $(unstage)
d32ab992 31498 @[ -f ./expect/Makefile ] || exit 0; \
295f4e42
NN
31499 r=`${PWD_COMMAND}`; export r; \
31500 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31501 $(HOST_EXPORTS) \
7c27e184 31502 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
31503 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31504 done; \
d32ab992 31505 echo "Doing installcheck in expect" ; \
215c351a 31506 (cd $(HOST_SUBDIR)/expect && \
295f4e42
NN
31507 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31508 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31509 "RANLIB=$${RANLIB}" \
31510 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 31511 installcheck) \
295f4e42
NN
31512 || exit 1
31513
d32ab992 31514@endif expect
295f4e42 31515
d32ab992
PB
31516.PHONY: maybe-mostlyclean-expect mostlyclean-expect
31517maybe-mostlyclean-expect:
31518@if expect
31519maybe-mostlyclean-expect: mostlyclean-expect
295f4e42 31520
05750653 31521mostlyclean-expect:
f41d6665 31522 @: $(MAKE); $(unstage)
d32ab992 31523 @[ -f ./expect/Makefile ] || exit 0; \
295f4e42
NN
31524 r=`${PWD_COMMAND}`; export r; \
31525 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31526 $(HOST_EXPORTS) \
7c27e184 31527 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
31528 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31529 done; \
d32ab992 31530 echo "Doing mostlyclean in expect" ; \
215c351a 31531 (cd $(HOST_SUBDIR)/expect && \
295f4e42
NN
31532 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31533 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31534 "RANLIB=$${RANLIB}" \
31535 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 31536 mostlyclean) \
295f4e42
NN
31537 || exit 1
31538
d32ab992 31539@endif expect
295f4e42 31540
d32ab992
PB
31541.PHONY: maybe-clean-expect clean-expect
31542maybe-clean-expect:
31543@if expect
31544maybe-clean-expect: clean-expect
295f4e42 31545
05750653 31546clean-expect:
f41d6665 31547 @: $(MAKE); $(unstage)
d32ab992 31548 @[ -f ./expect/Makefile ] || exit 0; \
295f4e42
NN
31549 r=`${PWD_COMMAND}`; export r; \
31550 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31551 $(HOST_EXPORTS) \
7c27e184 31552 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
31553 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31554 done; \
d32ab992 31555 echo "Doing clean in expect" ; \
215c351a 31556 (cd $(HOST_SUBDIR)/expect && \
295f4e42
NN
31557 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31558 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31559 "RANLIB=$${RANLIB}" \
31560 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 31561 clean) \
295f4e42
NN
31562 || exit 1
31563
d32ab992 31564@endif expect
295f4e42 31565
d32ab992
PB
31566.PHONY: maybe-distclean-expect distclean-expect
31567maybe-distclean-expect:
31568@if expect
31569maybe-distclean-expect: distclean-expect
295f4e42 31570
05750653 31571distclean-expect:
f41d6665 31572 @: $(MAKE); $(unstage)
d32ab992 31573 @[ -f ./expect/Makefile ] || exit 0; \
295f4e42
NN
31574 r=`${PWD_COMMAND}`; export r; \
31575 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31576 $(HOST_EXPORTS) \
7c27e184 31577 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
31578 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31579 done; \
d32ab992 31580 echo "Doing distclean in expect" ; \
215c351a 31581 (cd $(HOST_SUBDIR)/expect && \
295f4e42
NN
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}" \
d32ab992 31586 distclean) \
295f4e42
NN
31587 || exit 1
31588
d32ab992 31589@endif expect
295f4e42 31590
d32ab992
PB
31591.PHONY: maybe-maintainer-clean-expect maintainer-clean-expect
31592maybe-maintainer-clean-expect:
31593@if expect
31594maybe-maintainer-clean-expect: maintainer-clean-expect
295f4e42 31595
05750653 31596maintainer-clean-expect:
f41d6665 31597 @: $(MAKE); $(unstage)
d32ab992 31598 @[ -f ./expect/Makefile ] || exit 0; \
295f4e42
NN
31599 r=`${PWD_COMMAND}`; export r; \
31600 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31601 $(HOST_EXPORTS) \
7c27e184 31602 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
31603 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31604 done; \
d32ab992 31605 echo "Doing maintainer-clean in expect" ; \
215c351a 31606 (cd $(HOST_SUBDIR)/expect && \
295f4e42
NN
31607 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31608 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31609 "RANLIB=$${RANLIB}" \
31610 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 31611 maintainer-clean) \
295f4e42
NN
31612 || exit 1
31613
d32ab992 31614@endif expect
295f4e42
NN
31615
31616
25b42232 31617
d32ab992
PB
31618.PHONY: configure-guile maybe-configure-guile
31619maybe-configure-guile:
3ff3adad
PB
31620@if gcc-bootstrap
31621configure-guile: stage_current
31622@endif gcc-bootstrap
d32ab992
PB
31623@if guile
31624maybe-configure-guile: configure-guile
cc11cc9b 31625configure-guile:
f41d6665 31626 @: $(MAKE); $(unstage)
cc11cc9b 31627 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 31628 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
31629 test ! -f $(HOST_SUBDIR)/guile/Makefile || exit 0; \
31630 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/guile ; \
4fc4dd12 31631 $(HOST_EXPORTS) \
25b42232
PB
31632 echo Configuring in $(HOST_SUBDIR)/guile; \
31633 cd "$(HOST_SUBDIR)/guile" || exit 1; \
4977bab6 31634 case $(srcdir) in \
215c351a
PB
31635 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
31636 *) topdir=`echo $(HOST_SUBDIR)/guile/ | \
31637 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 31638 esac; \
215c351a
PB
31639 srcdiroption="--srcdir=$${topdir}/guile"; \
31640 libsrcdir="$$s/guile"; \
4977bab6 31641 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 31642 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 31643 || exit 1
d32ab992 31644@endif guile
4977bab6 31645
25b42232
PB
31646
31647
ce406537
PB
31648
31649
d32ab992
PB
31650.PHONY: all-guile maybe-all-guile
31651maybe-all-guile:
3ff3adad
PB
31652@if gcc-bootstrap
31653all-guile: stage_current
31654@endif gcc-bootstrap
d32ab992 31655@if guile
7e0b5752 31656TARGET-guile=all
d32ab992
PB
31657maybe-all-guile: all-guile
31658all-guile: configure-guile
f41d6665 31659 @: $(MAKE); $(unstage)
8c90b13a
L
31660 @r=`${PWD_COMMAND}`; export r; \
31661 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31662 $(HOST_EXPORTS) \
215c351a
PB
31663 (cd $(HOST_SUBDIR)/guile && \
31664 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) $(TARGET-guile))
d32ab992 31665@endif guile
4977bab6 31666
25b42232 31667
ce406537
PB
31668
31669
d32ab992
PB
31670.PHONY: check-guile maybe-check-guile
31671maybe-check-guile:
31672@if guile
31673maybe-check-guile: check-guile
4977bab6 31674
d32ab992 31675check-guile:
f41d6665 31676 @: $(MAKE); $(unstage)
8c90b13a
L
31677 @r=`${PWD_COMMAND}`; export r; \
31678 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31679 $(HOST_EXPORTS) \
215c351a
PB
31680 (cd $(HOST_SUBDIR)/guile && \
31681 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
4977bab6 31682
d32ab992 31683@endif guile
7e2dbcef 31684
d32ab992
PB
31685.PHONY: install-guile maybe-install-guile
31686maybe-install-guile:
31687@if guile
31688maybe-install-guile: install-guile
31689
31690install-guile: installdirs
f41d6665 31691 @: $(MAKE); $(unstage)
8c90b13a
L
31692 @r=`${PWD_COMMAND}`; export r; \
31693 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31694 $(HOST_EXPORTS) \
215c351a 31695 (cd $(HOST_SUBDIR)/guile && \
ace9ac7b 31696 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
4977bab6 31697
d32ab992 31698@endif guile
4977bab6 31699
b5422ad7 31700# Other targets (info, dvi, pdf, etc.)
295f4e42 31701
d32ab992
PB
31702.PHONY: maybe-info-guile info-guile
31703maybe-info-guile:
31704@if guile
31705maybe-info-guile: info-guile
295f4e42 31706
d32ab992 31707info-guile: \
05750653 31708 configure-guile
f41d6665 31709 @: $(MAKE); $(unstage)
d32ab992 31710 @[ -f ./guile/Makefile ] || exit 0; \
8c90b13a
L
31711 r=`${PWD_COMMAND}`; export r; \
31712 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31713 $(HOST_EXPORTS) \
7c27e184 31714 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
31715 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31716 done; \
d32ab992 31717 echo "Doing info in guile" ; \
215c351a 31718 (cd $(HOST_SUBDIR)/guile && \
295f4e42
NN
31719 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31720 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31721 "RANLIB=$${RANLIB}" \
31722 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 31723 info) \
4977bab6
ZW
31724 || exit 1
31725
d32ab992 31726@endif guile
295f4e42 31727
d32ab992
PB
31728.PHONY: maybe-dvi-guile dvi-guile
31729maybe-dvi-guile:
31730@if guile
31731maybe-dvi-guile: dvi-guile
295f4e42 31732
d32ab992 31733dvi-guile: \
05750653 31734 configure-guile
f41d6665 31735 @: $(MAKE); $(unstage)
d32ab992 31736 @[ -f ./guile/Makefile ] || exit 0; \
295f4e42 31737 r=`${PWD_COMMAND}`; export r; \
8c90b13a 31738 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31739 $(HOST_EXPORTS) \
7c27e184 31740 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
31741 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31742 done; \
d32ab992 31743 echo "Doing dvi in guile" ; \
215c351a 31744 (cd $(HOST_SUBDIR)/guile && \
295f4e42
NN
31745 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31746 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31747 "RANLIB=$${RANLIB}" \
31748 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 31749 dvi) \
295f4e42 31750 || exit 1
4977bab6 31751
d32ab992 31752@endif guile
4977bab6 31753
b5422ad7
BM
31754.PHONY: maybe-pdf-guile pdf-guile
31755maybe-pdf-guile:
31756@if guile
31757maybe-pdf-guile: pdf-guile
31758
31759pdf-guile: \
31760 configure-guile
31761 @: $(MAKE); $(unstage)
31762 @[ -f ./guile/Makefile ] || exit 0; \
31763 r=`${PWD_COMMAND}`; export r; \
31764 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31765 $(HOST_EXPORTS) \
31766 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
31767 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31768 done; \
31769 echo "Doing pdf in guile" ; \
31770 (cd $(HOST_SUBDIR)/guile && \
31771 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31772 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31773 "RANLIB=$${RANLIB}" \
31774 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
31775 pdf) \
31776 || exit 1
31777
31778@endif guile
31779
f87a2b2e
MS
31780.PHONY: maybe-html-guile html-guile
31781maybe-html-guile:
31782@if guile
31783maybe-html-guile: html-guile
31784
31785html-guile: \
05750653 31786 configure-guile
f41d6665 31787 @: $(MAKE); $(unstage)
f87a2b2e
MS
31788 @[ -f ./guile/Makefile ] || exit 0; \
31789 r=`${PWD_COMMAND}`; export r; \
31790 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
31791 $(HOST_EXPORTS) \
31792 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
31793 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31794 done; \
31795 echo "Doing html in guile" ; \
215c351a 31796 (cd $(HOST_SUBDIR)/guile && \
f87a2b2e
MS
31797 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31798 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31799 "RANLIB=$${RANLIB}" \
31800 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
31801 html) \
31802 || exit 1
31803
31804@endif guile
31805
d32ab992
PB
31806.PHONY: maybe-TAGS-guile TAGS-guile
31807maybe-TAGS-guile:
31808@if guile
31809maybe-TAGS-guile: TAGS-guile
295f4e42 31810
d32ab992 31811TAGS-guile: \
05750653 31812 configure-guile
f41d6665 31813 @: $(MAKE); $(unstage)
d32ab992 31814 @[ -f ./guile/Makefile ] || exit 0; \
295f4e42 31815 r=`${PWD_COMMAND}`; export r; \
8c90b13a 31816 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31817 $(HOST_EXPORTS) \
7c27e184 31818 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
31819 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31820 done; \
d32ab992 31821 echo "Doing TAGS in guile" ; \
215c351a 31822 (cd $(HOST_SUBDIR)/guile && \
295f4e42
NN
31823 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31824 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31825 "RANLIB=$${RANLIB}" \
31826 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 31827 TAGS) \
295f4e42 31828 || exit 1
4977bab6 31829
d32ab992 31830@endif guile
4977bab6 31831
d32ab992
PB
31832.PHONY: maybe-install-info-guile install-info-guile
31833maybe-install-info-guile:
31834@if guile
31835maybe-install-info-guile: install-info-guile
7e2dbcef 31836
d32ab992
PB
31837install-info-guile: \
31838 configure-guile \
05750653 31839 info-guile
f41d6665 31840 @: $(MAKE); $(unstage)
d32ab992 31841 @[ -f ./guile/Makefile ] || exit 0; \
295f4e42
NN
31842 r=`${PWD_COMMAND}`; export r; \
31843 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31844 $(HOST_EXPORTS) \
7c27e184 31845 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
31846 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31847 done; \
d32ab992 31848 echo "Doing install-info in guile" ; \
215c351a 31849 (cd $(HOST_SUBDIR)/guile && \
295f4e42
NN
31850 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31851 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31852 "RANLIB=$${RANLIB}" \
31853 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 31854 install-info) \
295f4e42
NN
31855 || exit 1
31856
d32ab992 31857@endif guile
295f4e42 31858
65d6e994
CD
31859.PHONY: maybe-install-html-guile install-html-guile
31860maybe-install-html-guile:
31861@if guile
31862maybe-install-html-guile: install-html-guile
31863
31864install-html-guile: \
31865 configure-guile \
31866 html-guile
31867 @: $(MAKE); $(unstage)
31868 @[ -f ./guile/Makefile ] || exit 0; \
31869 r=`${PWD_COMMAND}`; export r; \
31870 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
31871 $(HOST_EXPORTS) \
31872 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
31873 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31874 done; \
31875 echo "Doing install-html in guile" ; \
31876 (cd $(HOST_SUBDIR)/guile && \
31877 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31878 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31879 "RANLIB=$${RANLIB}" \
31880 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
31881 install-html) \
31882 || exit 1
31883
31884@endif guile
31885
d32ab992
PB
31886.PHONY: maybe-installcheck-guile installcheck-guile
31887maybe-installcheck-guile:
31888@if guile
31889maybe-installcheck-guile: installcheck-guile
295f4e42 31890
d32ab992 31891installcheck-guile: \
05750653 31892 configure-guile
f41d6665 31893 @: $(MAKE); $(unstage)
d32ab992 31894 @[ -f ./guile/Makefile ] || exit 0; \
295f4e42
NN
31895 r=`${PWD_COMMAND}`; export r; \
31896 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31897 $(HOST_EXPORTS) \
7c27e184 31898 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
31899 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31900 done; \
d32ab992 31901 echo "Doing installcheck in guile" ; \
215c351a 31902 (cd $(HOST_SUBDIR)/guile && \
295f4e42
NN
31903 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31904 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31905 "RANLIB=$${RANLIB}" \
31906 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 31907 installcheck) \
295f4e42
NN
31908 || exit 1
31909
d32ab992 31910@endif guile
295f4e42 31911
d32ab992
PB
31912.PHONY: maybe-mostlyclean-guile mostlyclean-guile
31913maybe-mostlyclean-guile:
31914@if guile
31915maybe-mostlyclean-guile: mostlyclean-guile
295f4e42 31916
05750653 31917mostlyclean-guile:
f41d6665 31918 @: $(MAKE); $(unstage)
d32ab992 31919 @[ -f ./guile/Makefile ] || exit 0; \
295f4e42
NN
31920 r=`${PWD_COMMAND}`; export r; \
31921 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31922 $(HOST_EXPORTS) \
7c27e184 31923 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
31924 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31925 done; \
d32ab992 31926 echo "Doing mostlyclean in guile" ; \
215c351a 31927 (cd $(HOST_SUBDIR)/guile && \
295f4e42
NN
31928 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31929 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31930 "RANLIB=$${RANLIB}" \
31931 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 31932 mostlyclean) \
295f4e42
NN
31933 || exit 1
31934
d32ab992 31935@endif guile
295f4e42 31936
d32ab992
PB
31937.PHONY: maybe-clean-guile clean-guile
31938maybe-clean-guile:
31939@if guile
31940maybe-clean-guile: clean-guile
295f4e42 31941
05750653 31942clean-guile:
f41d6665 31943 @: $(MAKE); $(unstage)
d32ab992 31944 @[ -f ./guile/Makefile ] || exit 0; \
295f4e42
NN
31945 r=`${PWD_COMMAND}`; export r; \
31946 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31947 $(HOST_EXPORTS) \
7c27e184 31948 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
31949 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31950 done; \
d32ab992 31951 echo "Doing clean in guile" ; \
215c351a 31952 (cd $(HOST_SUBDIR)/guile && \
295f4e42
NN
31953 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31954 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31955 "RANLIB=$${RANLIB}" \
31956 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 31957 clean) \
295f4e42
NN
31958 || exit 1
31959
d32ab992 31960@endif guile
295f4e42 31961
d32ab992
PB
31962.PHONY: maybe-distclean-guile distclean-guile
31963maybe-distclean-guile:
31964@if guile
31965maybe-distclean-guile: distclean-guile
295f4e42 31966
05750653 31967distclean-guile:
f41d6665 31968 @: $(MAKE); $(unstage)
d32ab992 31969 @[ -f ./guile/Makefile ] || exit 0; \
295f4e42
NN
31970 r=`${PWD_COMMAND}`; export r; \
31971 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31972 $(HOST_EXPORTS) \
7c27e184 31973 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
31974 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
31975 done; \
d32ab992 31976 echo "Doing distclean in guile" ; \
215c351a 31977 (cd $(HOST_SUBDIR)/guile && \
295f4e42
NN
31978 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
31979 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
31980 "RANLIB=$${RANLIB}" \
31981 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 31982 distclean) \
295f4e42
NN
31983 || exit 1
31984
d32ab992 31985@endif guile
295f4e42 31986
d32ab992
PB
31987.PHONY: maybe-maintainer-clean-guile maintainer-clean-guile
31988maybe-maintainer-clean-guile:
31989@if guile
31990maybe-maintainer-clean-guile: maintainer-clean-guile
295f4e42 31991
05750653 31992maintainer-clean-guile:
f41d6665 31993 @: $(MAKE); $(unstage)
d32ab992 31994 @[ -f ./guile/Makefile ] || exit 0; \
295f4e42 31995 r=`${PWD_COMMAND}`; export r; \
8c90b13a 31996 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 31997 $(HOST_EXPORTS) \
7c27e184 31998 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
31999 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32000 done; \
d32ab992 32001 echo "Doing maintainer-clean in guile" ; \
215c351a 32002 (cd $(HOST_SUBDIR)/guile && \
295f4e42
NN
32003 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32004 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32005 "RANLIB=$${RANLIB}" \
32006 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 32007 maintainer-clean) \
295f4e42 32008 || exit 1
4977bab6 32009
d32ab992 32010@endif guile
4977bab6 32011
295f4e42 32012
25b42232 32013
d32ab992
PB
32014.PHONY: configure-tk maybe-configure-tk
32015maybe-configure-tk:
3ff3adad
PB
32016@if gcc-bootstrap
32017configure-tk: stage_current
32018@endif gcc-bootstrap
d32ab992
PB
32019@if tk
32020maybe-configure-tk: configure-tk
cc11cc9b 32021configure-tk:
f41d6665 32022 @: $(MAKE); $(unstage)
cc11cc9b 32023 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 32024 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
32025 test ! -f $(HOST_SUBDIR)/tk/Makefile || exit 0; \
32026 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/tk ; \
4fc4dd12 32027 $(HOST_EXPORTS) \
25b42232
PB
32028 echo Configuring in $(HOST_SUBDIR)/tk; \
32029 cd "$(HOST_SUBDIR)/tk" || exit 1; \
4977bab6 32030 case $(srcdir) in \
215c351a
PB
32031 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32032 *) topdir=`echo $(HOST_SUBDIR)/tk/ | \
32033 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 32034 esac; \
215c351a
PB
32035 srcdiroption="--srcdir=$${topdir}/tk"; \
32036 libsrcdir="$$s/tk"; \
4977bab6 32037 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 32038 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 32039 || exit 1
d32ab992 32040@endif tk
4977bab6 32041
25b42232
PB
32042
32043
ce406537
PB
32044
32045
d32ab992
PB
32046.PHONY: all-tk maybe-all-tk
32047maybe-all-tk:
3ff3adad
PB
32048@if gcc-bootstrap
32049all-tk: stage_current
32050@endif gcc-bootstrap
d32ab992 32051@if tk
7e0b5752 32052TARGET-tk=all
d32ab992
PB
32053maybe-all-tk: all-tk
32054all-tk: configure-tk
f41d6665 32055 @: $(MAKE); $(unstage)
8c90b13a
L
32056 @r=`${PWD_COMMAND}`; export r; \
32057 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 32058 $(HOST_EXPORTS) \
215c351a
PB
32059 (cd $(HOST_SUBDIR)/tk && \
32060 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) $(TARGET-tk))
d32ab992 32061@endif tk
4977bab6 32062
25b42232 32063
ce406537
PB
32064
32065
d32ab992
PB
32066.PHONY: check-tk maybe-check-tk
32067maybe-check-tk:
32068@if tk
32069maybe-check-tk: check-tk
4977bab6 32070
d32ab992 32071check-tk:
f41d6665 32072 @: $(MAKE); $(unstage)
8c90b13a
L
32073 @r=`${PWD_COMMAND}`; export r; \
32074 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 32075 $(HOST_EXPORTS) \
215c351a
PB
32076 (cd $(HOST_SUBDIR)/tk && \
32077 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) check)
4977bab6 32078
d32ab992 32079@endif tk
4977bab6 32080
d32ab992
PB
32081.PHONY: install-tk maybe-install-tk
32082maybe-install-tk:
32083@if tk
32084maybe-install-tk: install-tk
7e2dbcef 32085
d32ab992 32086install-tk: installdirs
f41d6665 32087 @: $(MAKE); $(unstage)
8c90b13a
L
32088 @r=`${PWD_COMMAND}`; export r; \
32089 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 32090 $(HOST_EXPORTS) \
215c351a 32091 (cd $(HOST_SUBDIR)/tk && \
ace9ac7b 32092 $(MAKE) $(FLAGS_TO_PASS) $(X11_FLAGS_TO_PASS) install)
295f4e42 32093
d32ab992 32094@endif tk
295f4e42 32095
b5422ad7 32096# Other targets (info, dvi, pdf, etc.)
295f4e42 32097
d32ab992
PB
32098.PHONY: maybe-info-tk info-tk
32099maybe-info-tk:
32100@if tk
32101maybe-info-tk: info-tk
295f4e42 32102
d32ab992 32103info-tk: \
05750653 32104 configure-tk
f41d6665 32105 @: $(MAKE); $(unstage)
d32ab992 32106 @[ -f ./tk/Makefile ] || exit 0; \
295f4e42
NN
32107 r=`${PWD_COMMAND}`; export r; \
32108 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 32109 $(HOST_EXPORTS) \
7c27e184 32110 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
32111 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32112 done; \
d32ab992 32113 echo "Doing info in tk" ; \
215c351a 32114 (cd $(HOST_SUBDIR)/tk && \
295f4e42
NN
32115 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32116 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32117 "RANLIB=$${RANLIB}" \
32118 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 32119 info) \
295f4e42
NN
32120 || exit 1
32121
d32ab992 32122@endif tk
295f4e42 32123
d32ab992
PB
32124.PHONY: maybe-dvi-tk dvi-tk
32125maybe-dvi-tk:
32126@if tk
32127maybe-dvi-tk: dvi-tk
295f4e42 32128
d32ab992 32129dvi-tk: \
05750653 32130 configure-tk
f41d6665 32131 @: $(MAKE); $(unstage)
d32ab992 32132 @[ -f ./tk/Makefile ] || exit 0; \
295f4e42
NN
32133 r=`${PWD_COMMAND}`; export r; \
32134 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 32135 $(HOST_EXPORTS) \
7c27e184 32136 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
32137 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32138 done; \
d32ab992 32139 echo "Doing dvi in tk" ; \
215c351a 32140 (cd $(HOST_SUBDIR)/tk && \
295f4e42
NN
32141 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32142 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32143 "RANLIB=$${RANLIB}" \
32144 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 32145 dvi) \
295f4e42
NN
32146 || exit 1
32147
d32ab992 32148@endif tk
295f4e42 32149
b5422ad7
BM
32150.PHONY: maybe-pdf-tk pdf-tk
32151maybe-pdf-tk:
32152@if tk
32153maybe-pdf-tk: pdf-tk
32154
32155pdf-tk: \
32156 configure-tk
32157 @: $(MAKE); $(unstage)
32158 @[ -f ./tk/Makefile ] || exit 0; \
32159 r=`${PWD_COMMAND}`; export r; \
32160 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32161 $(HOST_EXPORTS) \
32162 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
32163 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32164 done; \
32165 echo "Doing pdf in tk" ; \
32166 (cd $(HOST_SUBDIR)/tk && \
32167 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32168 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32169 "RANLIB=$${RANLIB}" \
32170 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
32171 pdf) \
32172 || exit 1
32173
32174@endif tk
32175
f87a2b2e
MS
32176.PHONY: maybe-html-tk html-tk
32177maybe-html-tk:
32178@if tk
32179maybe-html-tk: html-tk
32180
32181html-tk: \
05750653 32182 configure-tk
f41d6665 32183 @: $(MAKE); $(unstage)
f87a2b2e
MS
32184 @[ -f ./tk/Makefile ] || exit 0; \
32185 r=`${PWD_COMMAND}`; export r; \
32186 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
32187 $(HOST_EXPORTS) \
32188 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
32189 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32190 done; \
32191 echo "Doing html in tk" ; \
215c351a 32192 (cd $(HOST_SUBDIR)/tk && \
f87a2b2e
MS
32193 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32194 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32195 "RANLIB=$${RANLIB}" \
32196 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
32197 html) \
32198 || exit 1
32199
32200@endif tk
32201
d32ab992
PB
32202.PHONY: maybe-TAGS-tk TAGS-tk
32203maybe-TAGS-tk:
32204@if tk
32205maybe-TAGS-tk: TAGS-tk
295f4e42 32206
d32ab992 32207TAGS-tk: \
05750653 32208 configure-tk
f41d6665 32209 @: $(MAKE); $(unstage)
d32ab992 32210 @[ -f ./tk/Makefile ] || exit 0; \
295f4e42
NN
32211 r=`${PWD_COMMAND}`; export r; \
32212 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 32213 $(HOST_EXPORTS) \
7c27e184 32214 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
32215 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32216 done; \
d32ab992 32217 echo "Doing TAGS in tk" ; \
215c351a 32218 (cd $(HOST_SUBDIR)/tk && \
295f4e42
NN
32219 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32220 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32221 "RANLIB=$${RANLIB}" \
32222 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 32223 TAGS) \
295f4e42
NN
32224 || exit 1
32225
d32ab992 32226@endif tk
295f4e42 32227
d32ab992
PB
32228.PHONY: maybe-install-info-tk install-info-tk
32229maybe-install-info-tk:
32230@if tk
32231maybe-install-info-tk: install-info-tk
295f4e42 32232
d32ab992
PB
32233install-info-tk: \
32234 configure-tk \
05750653 32235 info-tk
f41d6665 32236 @: $(MAKE); $(unstage)
d32ab992 32237 @[ -f ./tk/Makefile ] || exit 0; \
295f4e42
NN
32238 r=`${PWD_COMMAND}`; export r; \
32239 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 32240 $(HOST_EXPORTS) \
7c27e184 32241 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
32242 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32243 done; \
d32ab992 32244 echo "Doing install-info in tk" ; \
215c351a 32245 (cd $(HOST_SUBDIR)/tk && \
295f4e42
NN
32246 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32247 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32248 "RANLIB=$${RANLIB}" \
32249 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 32250 install-info) \
295f4e42
NN
32251 || exit 1
32252
d32ab992 32253@endif tk
295f4e42 32254
65d6e994
CD
32255.PHONY: maybe-install-html-tk install-html-tk
32256maybe-install-html-tk:
32257@if tk
32258maybe-install-html-tk: install-html-tk
32259
32260install-html-tk: \
32261 configure-tk \
32262 html-tk
32263 @: $(MAKE); $(unstage)
32264 @[ -f ./tk/Makefile ] || exit 0; \
32265 r=`${PWD_COMMAND}`; export r; \
32266 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32267 $(HOST_EXPORTS) \
32268 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
32269 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32270 done; \
32271 echo "Doing install-html in tk" ; \
32272 (cd $(HOST_SUBDIR)/tk && \
32273 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32274 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32275 "RANLIB=$${RANLIB}" \
32276 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
32277 install-html) \
32278 || exit 1
32279
32280@endif tk
32281
d32ab992
PB
32282.PHONY: maybe-installcheck-tk installcheck-tk
32283maybe-installcheck-tk:
32284@if tk
32285maybe-installcheck-tk: installcheck-tk
295f4e42 32286
d32ab992 32287installcheck-tk: \
05750653 32288 configure-tk
f41d6665 32289 @: $(MAKE); $(unstage)
d32ab992 32290 @[ -f ./tk/Makefile ] || exit 0; \
295f4e42
NN
32291 r=`${PWD_COMMAND}`; export r; \
32292 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 32293 $(HOST_EXPORTS) \
7c27e184 32294 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
32295 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32296 done; \
d32ab992 32297 echo "Doing installcheck in tk" ; \
215c351a 32298 (cd $(HOST_SUBDIR)/tk && \
295f4e42
NN
32299 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32300 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32301 "RANLIB=$${RANLIB}" \
32302 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 32303 installcheck) \
295f4e42
NN
32304 || exit 1
32305
d32ab992 32306@endif tk
295f4e42 32307
d32ab992
PB
32308.PHONY: maybe-mostlyclean-tk mostlyclean-tk
32309maybe-mostlyclean-tk:
32310@if tk
32311maybe-mostlyclean-tk: mostlyclean-tk
295f4e42 32312
05750653 32313mostlyclean-tk:
f41d6665 32314 @: $(MAKE); $(unstage)
d32ab992 32315 @[ -f ./tk/Makefile ] || exit 0; \
295f4e42
NN
32316 r=`${PWD_COMMAND}`; export r; \
32317 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 32318 $(HOST_EXPORTS) \
7c27e184 32319 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
32320 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32321 done; \
d32ab992 32322 echo "Doing mostlyclean in tk" ; \
215c351a 32323 (cd $(HOST_SUBDIR)/tk && \
295f4e42
NN
32324 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32325 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32326 "RANLIB=$${RANLIB}" \
32327 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 32328 mostlyclean) \
295f4e42
NN
32329 || exit 1
32330
d32ab992 32331@endif tk
295f4e42 32332
d32ab992
PB
32333.PHONY: maybe-clean-tk clean-tk
32334maybe-clean-tk:
32335@if tk
32336maybe-clean-tk: clean-tk
295f4e42 32337
05750653 32338clean-tk:
f41d6665 32339 @: $(MAKE); $(unstage)
d32ab992 32340 @[ -f ./tk/Makefile ] || exit 0; \
295f4e42
NN
32341 r=`${PWD_COMMAND}`; export r; \
32342 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 32343 $(HOST_EXPORTS) \
7c27e184 32344 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
32345 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32346 done; \
d32ab992 32347 echo "Doing clean in tk" ; \
215c351a 32348 (cd $(HOST_SUBDIR)/tk && \
295f4e42
NN
32349 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32350 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32351 "RANLIB=$${RANLIB}" \
32352 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 32353 clean) \
295f4e42
NN
32354 || exit 1
32355
d32ab992 32356@endif tk
295f4e42 32357
d32ab992
PB
32358.PHONY: maybe-distclean-tk distclean-tk
32359maybe-distclean-tk:
32360@if tk
32361maybe-distclean-tk: distclean-tk
295f4e42 32362
05750653 32363distclean-tk:
f41d6665 32364 @: $(MAKE); $(unstage)
d32ab992 32365 @[ -f ./tk/Makefile ] || exit 0; \
295f4e42
NN
32366 r=`${PWD_COMMAND}`; export r; \
32367 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 32368 $(HOST_EXPORTS) \
7c27e184 32369 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
32370 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32371 done; \
d32ab992 32372 echo "Doing distclean in tk" ; \
215c351a 32373 (cd $(HOST_SUBDIR)/tk && \
295f4e42
NN
32374 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32375 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32376 "RANLIB=$${RANLIB}" \
32377 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 32378 distclean) \
295f4e42
NN
32379 || exit 1
32380
d32ab992 32381@endif tk
295f4e42 32382
d32ab992
PB
32383.PHONY: maybe-maintainer-clean-tk maintainer-clean-tk
32384maybe-maintainer-clean-tk:
32385@if tk
32386maybe-maintainer-clean-tk: maintainer-clean-tk
295f4e42 32387
05750653 32388maintainer-clean-tk:
f41d6665 32389 @: $(MAKE); $(unstage)
d32ab992 32390 @[ -f ./tk/Makefile ] || exit 0; \
295f4e42
NN
32391 r=`${PWD_COMMAND}`; export r; \
32392 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 32393 $(HOST_EXPORTS) \
7c27e184 32394 for flag in $(EXTRA_HOST_FLAGS) $(X11_FLAGS_TO_PASS); do \
295f4e42
NN
32395 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32396 done; \
d32ab992 32397 echo "Doing maintainer-clean in tk" ; \
215c351a 32398 (cd $(HOST_SUBDIR)/tk && \
295f4e42
NN
32399 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32400 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32401 "RANLIB=$${RANLIB}" \
32402 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 32403 maintainer-clean) \
295f4e42
NN
32404 || exit 1
32405
d32ab992 32406@endif tk
4977bab6
ZW
32407
32408
25b42232 32409
d32ab992
PB
32410.PHONY: configure-libtermcap maybe-configure-libtermcap
32411maybe-configure-libtermcap:
3ff3adad
PB
32412@if gcc-bootstrap
32413configure-libtermcap: stage_current
32414@endif gcc-bootstrap
d32ab992
PB
32415@if libtermcap
32416maybe-configure-libtermcap: configure-libtermcap
cc11cc9b 32417configure-libtermcap:
f41d6665 32418 @: $(MAKE); $(unstage)
cc11cc9b 32419 @r=`${PWD_COMMAND}`; export r; \
d32ab992 32420 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
32421 test ! -f $(HOST_SUBDIR)/libtermcap/Makefile || exit 0; \
32422 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libtermcap ; \
d32ab992 32423 $(HOST_EXPORTS) \
25b42232
PB
32424 echo Configuring in $(HOST_SUBDIR)/libtermcap; \
32425 cd "$(HOST_SUBDIR)/libtermcap" || exit 1; \
d32ab992 32426 case $(srcdir) in \
215c351a
PB
32427 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32428 *) topdir=`echo $(HOST_SUBDIR)/libtermcap/ | \
32429 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
d32ab992 32430 esac; \
215c351a
PB
32431 srcdiroption="--srcdir=$${topdir}/libtermcap"; \
32432 libsrcdir="$$s/libtermcap"; \
d32ab992
PB
32433 $(SHELL) $${libsrcdir}/configure \
32434 $(HOST_CONFIGARGS) $${srcdiroption} \
32435 || exit 1
32436@endif libtermcap
32437
25b42232
PB
32438
32439
ce406537
PB
32440
32441
d32ab992
PB
32442.PHONY: all-libtermcap maybe-all-libtermcap
32443maybe-all-libtermcap:
3ff3adad
PB
32444@if gcc-bootstrap
32445all-libtermcap: stage_current
32446@endif gcc-bootstrap
d32ab992 32447@if libtermcap
7e0b5752 32448TARGET-libtermcap=all
d32ab992
PB
32449maybe-all-libtermcap: all-libtermcap
32450all-libtermcap: configure-libtermcap
f41d6665 32451 @: $(MAKE); $(unstage)
d32ab992
PB
32452 @r=`${PWD_COMMAND}`; export r; \
32453 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
d32ab992 32454 $(HOST_EXPORTS) \
215c351a
PB
32455 (cd $(HOST_SUBDIR)/libtermcap && \
32456 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-libtermcap))
d32ab992
PB
32457@endif libtermcap
32458
25b42232 32459
ce406537
PB
32460
32461
d32ab992
PB
32462.PHONY: check-libtermcap maybe-check-libtermcap
32463maybe-check-libtermcap:
32464@if libtermcap
32465maybe-check-libtermcap: check-libtermcap
32466
32467check-libtermcap:
4977bab6 32468
60975492 32469@endif libtermcap
4977bab6 32470
295f4e42
NN
32471.PHONY: install-libtermcap maybe-install-libtermcap
32472maybe-install-libtermcap:
60975492
PB
32473@if libtermcap
32474maybe-install-libtermcap: install-libtermcap
7e2dbcef 32475
295f4e42 32476install-libtermcap: installdirs
f41d6665 32477 @: $(MAKE); $(unstage)
8c90b13a
L
32478 @r=`${PWD_COMMAND}`; export r; \
32479 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 32480 $(HOST_EXPORTS) \
215c351a 32481 (cd $(HOST_SUBDIR)/libtermcap && \
ace9ac7b 32482 $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6 32483
60975492 32484@endif libtermcap
4977bab6 32485
b5422ad7 32486# Other targets (info, dvi, pdf, etc.)
295f4e42
NN
32487
32488.PHONY: maybe-info-libtermcap info-libtermcap
32489maybe-info-libtermcap:
60975492
PB
32490@if libtermcap
32491maybe-info-libtermcap: info-libtermcap
295f4e42
NN
32492
32493info-libtermcap: \
05750653 32494 configure-libtermcap
f41d6665 32495 @: $(MAKE); $(unstage)
295f4e42 32496 @[ -f ./libtermcap/Makefile ] || exit 0; \
8c90b13a
L
32497 r=`${PWD_COMMAND}`; export r; \
32498 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 32499 $(HOST_EXPORTS) \
d32ab992 32500 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
32501 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32502 done; \
32503 echo "Doing info in libtermcap" ; \
215c351a 32504 (cd $(HOST_SUBDIR)/libtermcap && \
295f4e42
NN
32505 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32506 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32507 "RANLIB=$${RANLIB}" \
32508 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 32509 info) \
4977bab6
ZW
32510 || exit 1
32511
60975492 32512@endif libtermcap
4977bab6 32513
295f4e42
NN
32514.PHONY: maybe-dvi-libtermcap dvi-libtermcap
32515maybe-dvi-libtermcap:
60975492
PB
32516@if libtermcap
32517maybe-dvi-libtermcap: dvi-libtermcap
4977bab6 32518
295f4e42 32519dvi-libtermcap: \
05750653 32520 configure-libtermcap
f41d6665 32521 @: $(MAKE); $(unstage)
295f4e42
NN
32522 @[ -f ./libtermcap/Makefile ] || exit 0; \
32523 r=`${PWD_COMMAND}`; export r; \
8c90b13a 32524 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 32525 $(HOST_EXPORTS) \
d32ab992 32526 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
32527 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32528 done; \
32529 echo "Doing dvi in libtermcap" ; \
215c351a 32530 (cd $(HOST_SUBDIR)/libtermcap && \
295f4e42
NN
32531 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32532 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32533 "RANLIB=$${RANLIB}" \
32534 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 32535 dvi) \
295f4e42 32536 || exit 1
4977bab6 32537
60975492 32538@endif libtermcap
4977bab6 32539
b5422ad7
BM
32540.PHONY: maybe-pdf-libtermcap pdf-libtermcap
32541maybe-pdf-libtermcap:
32542@if libtermcap
32543maybe-pdf-libtermcap: pdf-libtermcap
32544
32545pdf-libtermcap: \
32546 configure-libtermcap
32547 @: $(MAKE); $(unstage)
32548 @[ -f ./libtermcap/Makefile ] || exit 0; \
32549 r=`${PWD_COMMAND}`; export r; \
32550 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32551 $(HOST_EXPORTS) \
32552 for flag in $(EXTRA_HOST_FLAGS) ; do \
32553 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32554 done; \
32555 echo "Doing pdf in libtermcap" ; \
32556 (cd $(HOST_SUBDIR)/libtermcap && \
32557 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32558 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32559 "RANLIB=$${RANLIB}" \
32560 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
32561 pdf) \
32562 || exit 1
32563
32564@endif libtermcap
32565
f87a2b2e
MS
32566.PHONY: maybe-html-libtermcap html-libtermcap
32567maybe-html-libtermcap:
32568@if libtermcap
32569maybe-html-libtermcap: html-libtermcap
32570
32571html-libtermcap: \
05750653 32572 configure-libtermcap
f41d6665 32573 @: $(MAKE); $(unstage)
f87a2b2e
MS
32574 @[ -f ./libtermcap/Makefile ] || exit 0; \
32575 r=`${PWD_COMMAND}`; export r; \
32576 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
32577 $(HOST_EXPORTS) \
32578 for flag in $(EXTRA_HOST_FLAGS) ; do \
32579 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32580 done; \
32581 echo "Doing html in libtermcap" ; \
215c351a 32582 (cd $(HOST_SUBDIR)/libtermcap && \
f87a2b2e
MS
32583 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32584 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32585 "RANLIB=$${RANLIB}" \
32586 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
32587 html) \
32588 || exit 1
32589
32590@endif libtermcap
32591
295f4e42
NN
32592.PHONY: maybe-TAGS-libtermcap TAGS-libtermcap
32593maybe-TAGS-libtermcap:
60975492
PB
32594@if libtermcap
32595maybe-TAGS-libtermcap: TAGS-libtermcap
7e2dbcef 32596
295f4e42 32597TAGS-libtermcap: \
05750653 32598 configure-libtermcap
f41d6665 32599 @: $(MAKE); $(unstage)
295f4e42
NN
32600 @[ -f ./libtermcap/Makefile ] || exit 0; \
32601 r=`${PWD_COMMAND}`; export r; \
8c90b13a 32602 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 32603 $(HOST_EXPORTS) \
d32ab992 32604 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
32605 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32606 done; \
32607 echo "Doing TAGS in libtermcap" ; \
215c351a 32608 (cd $(HOST_SUBDIR)/libtermcap && \
295f4e42
NN
32609 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32610 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32611 "RANLIB=$${RANLIB}" \
32612 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 32613 TAGS) \
295f4e42 32614 || exit 1
4977bab6 32615
60975492 32616@endif libtermcap
4977bab6 32617
295f4e42
NN
32618.PHONY: maybe-install-info-libtermcap install-info-libtermcap
32619maybe-install-info-libtermcap:
60975492
PB
32620@if libtermcap
32621maybe-install-info-libtermcap: install-info-libtermcap
295f4e42
NN
32622
32623install-info-libtermcap: \
32624 configure-libtermcap \
05750653 32625 info-libtermcap
f41d6665 32626 @: $(MAKE); $(unstage)
295f4e42 32627 @[ -f ./libtermcap/Makefile ] || exit 0; \
8c90b13a
L
32628 r=`${PWD_COMMAND}`; export r; \
32629 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 32630 $(HOST_EXPORTS) \
d32ab992 32631 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
32632 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32633 done; \
32634 echo "Doing install-info in libtermcap" ; \
215c351a 32635 (cd $(HOST_SUBDIR)/libtermcap && \
295f4e42
NN
32636 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32637 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32638 "RANLIB=$${RANLIB}" \
32639 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 32640 install-info) \
4977bab6
ZW
32641 || exit 1
32642
60975492 32643@endif libtermcap
4977bab6 32644
65d6e994
CD
32645.PHONY: maybe-install-html-libtermcap install-html-libtermcap
32646maybe-install-html-libtermcap:
32647@if libtermcap
32648maybe-install-html-libtermcap: install-html-libtermcap
32649
32650install-html-libtermcap: \
32651 configure-libtermcap \
32652 html-libtermcap
32653 @: $(MAKE); $(unstage)
32654 @[ -f ./libtermcap/Makefile ] || exit 0; \
32655 r=`${PWD_COMMAND}`; export r; \
32656 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32657 $(HOST_EXPORTS) \
32658 for flag in $(EXTRA_HOST_FLAGS) ; do \
32659 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32660 done; \
32661 echo "Doing install-html in libtermcap" ; \
32662 (cd $(HOST_SUBDIR)/libtermcap && \
32663 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32664 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32665 "RANLIB=$${RANLIB}" \
32666 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
32667 install-html) \
32668 || exit 1
32669
32670@endif libtermcap
32671
295f4e42
NN
32672.PHONY: maybe-installcheck-libtermcap installcheck-libtermcap
32673maybe-installcheck-libtermcap:
60975492
PB
32674@if libtermcap
32675maybe-installcheck-libtermcap: installcheck-libtermcap
4977bab6 32676
295f4e42 32677installcheck-libtermcap: \
05750653 32678 configure-libtermcap
f41d6665 32679 @: $(MAKE); $(unstage)
295f4e42
NN
32680 @[ -f ./libtermcap/Makefile ] || exit 0; \
32681 r=`${PWD_COMMAND}`; export r; \
8c90b13a 32682 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 32683 $(HOST_EXPORTS) \
d32ab992 32684 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
32685 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32686 done; \
32687 echo "Doing installcheck in libtermcap" ; \
215c351a 32688 (cd $(HOST_SUBDIR)/libtermcap && \
295f4e42
NN
32689 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32690 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32691 "RANLIB=$${RANLIB}" \
32692 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 32693 installcheck) \
295f4e42
NN
32694 || exit 1
32695
60975492 32696@endif libtermcap
295f4e42
NN
32697
32698.PHONY: maybe-mostlyclean-libtermcap mostlyclean-libtermcap
32699maybe-mostlyclean-libtermcap:
60975492
PB
32700@if libtermcap
32701maybe-mostlyclean-libtermcap: mostlyclean-libtermcap
295f4e42
NN
32702
32703# libtermcap doesn't support mostlyclean.
32704mostlyclean-libtermcap:
32705
60975492 32706@endif libtermcap
295f4e42
NN
32707
32708.PHONY: maybe-clean-libtermcap clean-libtermcap
32709maybe-clean-libtermcap:
60975492
PB
32710@if libtermcap
32711maybe-clean-libtermcap: clean-libtermcap
295f4e42
NN
32712
32713# libtermcap doesn't support clean.
32714clean-libtermcap:
32715
60975492 32716@endif libtermcap
295f4e42
NN
32717
32718.PHONY: maybe-distclean-libtermcap distclean-libtermcap
32719maybe-distclean-libtermcap:
60975492
PB
32720@if libtermcap
32721maybe-distclean-libtermcap: distclean-libtermcap
295f4e42
NN
32722
32723# libtermcap doesn't support distclean.
32724distclean-libtermcap:
32725
60975492 32726@endif libtermcap
4977bab6 32727
295f4e42
NN
32728.PHONY: maybe-maintainer-clean-libtermcap maintainer-clean-libtermcap
32729maybe-maintainer-clean-libtermcap:
60975492
PB
32730@if libtermcap
32731maybe-maintainer-clean-libtermcap: maintainer-clean-libtermcap
4977bab6 32732
295f4e42
NN
32733# libtermcap doesn't support maintainer-clean.
32734maintainer-clean-libtermcap:
7e2dbcef 32735
60975492 32736@endif libtermcap
4977bab6
ZW
32737
32738
25b42232 32739
295f4e42
NN
32740.PHONY: configure-utils maybe-configure-utils
32741maybe-configure-utils:
3ff3adad
PB
32742@if gcc-bootstrap
32743configure-utils: stage_current
32744@endif gcc-bootstrap
60975492
PB
32745@if utils
32746maybe-configure-utils: configure-utils
cc11cc9b 32747configure-utils:
f41d6665 32748 @: $(MAKE); $(unstage)
cc11cc9b 32749 @r=`${PWD_COMMAND}`; export r; \
8c90b13a 32750 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
32751 test ! -f $(HOST_SUBDIR)/utils/Makefile || exit 0; \
32752 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/utils ; \
4fc4dd12 32753 $(HOST_EXPORTS) \
25b42232
PB
32754 echo Configuring in $(HOST_SUBDIR)/utils; \
32755 cd "$(HOST_SUBDIR)/utils" || exit 1; \
4977bab6 32756 case $(srcdir) in \
215c351a
PB
32757 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
32758 *) topdir=`echo $(HOST_SUBDIR)/utils/ | \
32759 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 32760 esac; \
215c351a
PB
32761 srcdiroption="--srcdir=$${topdir}/utils"; \
32762 libsrcdir="$$s/utils"; \
4977bab6 32763 $(SHELL) $${libsrcdir}/configure \
a52a0a7f 32764 $(HOST_CONFIGARGS) $${srcdiroption} \
4977bab6 32765 || exit 1
60975492 32766@endif utils
4977bab6 32767
25b42232
PB
32768
32769
ce406537
PB
32770
32771
295f4e42
NN
32772.PHONY: all-utils maybe-all-utils
32773maybe-all-utils:
3ff3adad
PB
32774@if gcc-bootstrap
32775all-utils: stage_current
32776@endif gcc-bootstrap
60975492 32777@if utils
7e0b5752 32778TARGET-utils=all
60975492 32779maybe-all-utils: all-utils
295f4e42 32780all-utils: configure-utils
f41d6665 32781 @: $(MAKE); $(unstage)
8c90b13a
L
32782 @r=`${PWD_COMMAND}`; export r; \
32783 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 32784 $(HOST_EXPORTS) \
215c351a
PB
32785 (cd $(HOST_SUBDIR)/utils && \
32786 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-utils))
60975492 32787@endif utils
4977bab6 32788
25b42232 32789
ce406537
PB
32790
32791
295f4e42
NN
32792.PHONY: check-utils maybe-check-utils
32793maybe-check-utils:
60975492
PB
32794@if utils
32795maybe-check-utils: check-utils
4977bab6 32796
295f4e42
NN
32797check-utils:
32798
60975492 32799@endif utils
295f4e42
NN
32800
32801.PHONY: install-utils maybe-install-utils
32802maybe-install-utils:
60975492
PB
32803@if utils
32804maybe-install-utils: install-utils
295f4e42
NN
32805
32806install-utils: installdirs
f41d6665 32807 @: $(MAKE); $(unstage)
8c90b13a
L
32808 @r=`${PWD_COMMAND}`; export r; \
32809 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 32810 $(HOST_EXPORTS) \
215c351a 32811 (cd $(HOST_SUBDIR)/utils && \
ace9ac7b 32812 $(MAKE) $(FLAGS_TO_PASS) install)
4977bab6 32813
60975492 32814@endif utils
4977bab6 32815
b5422ad7 32816# Other targets (info, dvi, pdf, etc.)
7e2dbcef 32817
295f4e42
NN
32818.PHONY: maybe-info-utils info-utils
32819maybe-info-utils:
60975492
PB
32820@if utils
32821maybe-info-utils: info-utils
295f4e42
NN
32822
32823info-utils: \
05750653 32824 configure-utils
f41d6665 32825 @: $(MAKE); $(unstage)
295f4e42
NN
32826 @[ -f ./utils/Makefile ] || exit 0; \
32827 r=`${PWD_COMMAND}`; export r; \
8c90b13a 32828 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 32829 $(HOST_EXPORTS) \
d32ab992 32830 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
32831 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32832 done; \
32833 echo "Doing info in utils" ; \
215c351a 32834 (cd $(HOST_SUBDIR)/utils && \
295f4e42
NN
32835 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32836 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32837 "RANLIB=$${RANLIB}" \
32838 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 32839 info) \
295f4e42 32840 || exit 1
4977bab6 32841
60975492 32842@endif utils
4977bab6 32843
295f4e42
NN
32844.PHONY: maybe-dvi-utils dvi-utils
32845maybe-dvi-utils:
60975492
PB
32846@if utils
32847maybe-dvi-utils: dvi-utils
295f4e42
NN
32848
32849dvi-utils: \
05750653 32850 configure-utils
f41d6665 32851 @: $(MAKE); $(unstage)
295f4e42 32852 @[ -f ./utils/Makefile ] || exit 0; \
8c90b13a
L
32853 r=`${PWD_COMMAND}`; export r; \
32854 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 32855 $(HOST_EXPORTS) \
d32ab992 32856 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
32857 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32858 done; \
32859 echo "Doing dvi in utils" ; \
215c351a 32860 (cd $(HOST_SUBDIR)/utils && \
295f4e42
NN
32861 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32862 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32863 "RANLIB=$${RANLIB}" \
32864 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 32865 dvi) \
4977bab6
ZW
32866 || exit 1
32867
60975492 32868@endif utils
295f4e42 32869
b5422ad7
BM
32870.PHONY: maybe-pdf-utils pdf-utils
32871maybe-pdf-utils:
32872@if utils
32873maybe-pdf-utils: pdf-utils
32874
32875pdf-utils: \
32876 configure-utils
32877 @: $(MAKE); $(unstage)
32878 @[ -f ./utils/Makefile ] || exit 0; \
32879 r=`${PWD_COMMAND}`; export r; \
32880 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32881 $(HOST_EXPORTS) \
32882 for flag in $(EXTRA_HOST_FLAGS) ; do \
32883 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32884 done; \
32885 echo "Doing pdf in utils" ; \
32886 (cd $(HOST_SUBDIR)/utils && \
32887 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32888 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32889 "RANLIB=$${RANLIB}" \
32890 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
32891 pdf) \
32892 || exit 1
32893
32894@endif utils
32895
f87a2b2e
MS
32896.PHONY: maybe-html-utils html-utils
32897maybe-html-utils:
32898@if utils
32899maybe-html-utils: html-utils
32900
32901html-utils: \
05750653 32902 configure-utils
f41d6665 32903 @: $(MAKE); $(unstage)
f87a2b2e
MS
32904 @[ -f ./utils/Makefile ] || exit 0; \
32905 r=`${PWD_COMMAND}`; export r; \
32906 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
32907 $(HOST_EXPORTS) \
32908 for flag in $(EXTRA_HOST_FLAGS) ; do \
32909 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32910 done; \
32911 echo "Doing html in utils" ; \
215c351a 32912 (cd $(HOST_SUBDIR)/utils && \
f87a2b2e
MS
32913 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32914 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32915 "RANLIB=$${RANLIB}" \
32916 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
32917 html) \
32918 || exit 1
32919
32920@endif utils
32921
295f4e42
NN
32922.PHONY: maybe-TAGS-utils TAGS-utils
32923maybe-TAGS-utils:
60975492
PB
32924@if utils
32925maybe-TAGS-utils: TAGS-utils
295f4e42
NN
32926
32927TAGS-utils: \
05750653 32928 configure-utils
f41d6665 32929 @: $(MAKE); $(unstage)
295f4e42
NN
32930 @[ -f ./utils/Makefile ] || exit 0; \
32931 r=`${PWD_COMMAND}`; export r; \
8c90b13a 32932 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 32933 $(HOST_EXPORTS) \
d32ab992 32934 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
32935 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32936 done; \
32937 echo "Doing TAGS in utils" ; \
215c351a 32938 (cd $(HOST_SUBDIR)/utils && \
295f4e42
NN
32939 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32940 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32941 "RANLIB=$${RANLIB}" \
32942 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 32943 TAGS) \
295f4e42 32944 || exit 1
4977bab6 32945
60975492 32946@endif utils
4977bab6 32947
295f4e42
NN
32948.PHONY: maybe-install-info-utils install-info-utils
32949maybe-install-info-utils:
60975492
PB
32950@if utils
32951maybe-install-info-utils: install-info-utils
295f4e42
NN
32952
32953install-info-utils: \
32954 configure-utils \
05750653 32955 info-utils
f41d6665 32956 @: $(MAKE); $(unstage)
295f4e42
NN
32957 @[ -f ./utils/Makefile ] || exit 0; \
32958 r=`${PWD_COMMAND}`; export r; \
32959 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 32960 $(HOST_EXPORTS) \
d32ab992 32961 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
32962 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32963 done; \
32964 echo "Doing install-info in utils" ; \
215c351a 32965 (cd $(HOST_SUBDIR)/utils && \
295f4e42
NN
32966 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32967 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32968 "RANLIB=$${RANLIB}" \
32969 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 32970 install-info) \
295f4e42 32971 || exit 1
4977bab6 32972
60975492 32973@endif utils
4977bab6 32974
65d6e994
CD
32975.PHONY: maybe-install-html-utils install-html-utils
32976maybe-install-html-utils:
32977@if utils
32978maybe-install-html-utils: install-html-utils
32979
32980install-html-utils: \
32981 configure-utils \
32982 html-utils
32983 @: $(MAKE); $(unstage)
32984 @[ -f ./utils/Makefile ] || exit 0; \
32985 r=`${PWD_COMMAND}`; export r; \
32986 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
32987 $(HOST_EXPORTS) \
32988 for flag in $(EXTRA_HOST_FLAGS) ; do \
32989 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
32990 done; \
32991 echo "Doing install-html in utils" ; \
32992 (cd $(HOST_SUBDIR)/utils && \
32993 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
32994 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
32995 "RANLIB=$${RANLIB}" \
32996 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
32997 install-html) \
32998 || exit 1
32999
33000@endif utils
33001
295f4e42
NN
33002.PHONY: maybe-installcheck-utils installcheck-utils
33003maybe-installcheck-utils:
60975492
PB
33004@if utils
33005maybe-installcheck-utils: installcheck-utils
7e2dbcef 33006
295f4e42 33007installcheck-utils: \
05750653 33008 configure-utils
f41d6665 33009 @: $(MAKE); $(unstage)
295f4e42
NN
33010 @[ -f ./utils/Makefile ] || exit 0; \
33011 r=`${PWD_COMMAND}`; export r; \
8c90b13a 33012 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33013 $(HOST_EXPORTS) \
d32ab992 33014 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
33015 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33016 done; \
33017 echo "Doing installcheck in utils" ; \
215c351a 33018 (cd $(HOST_SUBDIR)/utils && \
295f4e42
NN
33019 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33020 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33021 "RANLIB=$${RANLIB}" \
33022 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 33023 installcheck) \
295f4e42 33024 || exit 1
4977bab6 33025
60975492 33026@endif utils
4977bab6 33027
295f4e42
NN
33028.PHONY: maybe-mostlyclean-utils mostlyclean-utils
33029maybe-mostlyclean-utils:
60975492
PB
33030@if utils
33031maybe-mostlyclean-utils: mostlyclean-utils
295f4e42 33032
05750653 33033mostlyclean-utils:
f41d6665 33034 @: $(MAKE); $(unstage)
295f4e42 33035 @[ -f ./utils/Makefile ] || exit 0; \
8c90b13a
L
33036 r=`${PWD_COMMAND}`; export r; \
33037 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33038 $(HOST_EXPORTS) \
d32ab992 33039 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
33040 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33041 done; \
33042 echo "Doing mostlyclean in utils" ; \
215c351a 33043 (cd $(HOST_SUBDIR)/utils && \
295f4e42
NN
33044 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33045 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33046 "RANLIB=$${RANLIB}" \
33047 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 33048 mostlyclean) \
4977bab6
ZW
33049 || exit 1
33050
60975492 33051@endif utils
295f4e42
NN
33052
33053.PHONY: maybe-clean-utils clean-utils
33054maybe-clean-utils:
60975492
PB
33055@if utils
33056maybe-clean-utils: clean-utils
295f4e42 33057
05750653 33058clean-utils:
f41d6665 33059 @: $(MAKE); $(unstage)
295f4e42
NN
33060 @[ -f ./utils/Makefile ] || exit 0; \
33061 r=`${PWD_COMMAND}`; export r; \
8c90b13a 33062 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33063 $(HOST_EXPORTS) \
d32ab992 33064 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
33065 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33066 done; \
33067 echo "Doing clean in utils" ; \
215c351a 33068 (cd $(HOST_SUBDIR)/utils && \
295f4e42
NN
33069 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33070 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33071 "RANLIB=$${RANLIB}" \
33072 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 33073 clean) \
295f4e42 33074 || exit 1
4977bab6 33075
60975492 33076@endif utils
4977bab6 33077
295f4e42
NN
33078.PHONY: maybe-distclean-utils distclean-utils
33079maybe-distclean-utils:
60975492
PB
33080@if utils
33081maybe-distclean-utils: distclean-utils
295f4e42 33082
05750653 33083distclean-utils:
f41d6665 33084 @: $(MAKE); $(unstage)
295f4e42
NN
33085 @[ -f ./utils/Makefile ] || exit 0; \
33086 r=`${PWD_COMMAND}`; export r; \
8c90b13a 33087 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33088 $(HOST_EXPORTS) \
d32ab992 33089 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
33090 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33091 done; \
33092 echo "Doing distclean in utils" ; \
215c351a 33093 (cd $(HOST_SUBDIR)/utils && \
295f4e42
NN
33094 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33095 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33096 "RANLIB=$${RANLIB}" \
33097 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 33098 distclean) \
295f4e42 33099 || exit 1
4977bab6 33100
60975492 33101@endif utils
4977bab6 33102
295f4e42
NN
33103.PHONY: maybe-maintainer-clean-utils maintainer-clean-utils
33104maybe-maintainer-clean-utils:
60975492
PB
33105@if utils
33106maybe-maintainer-clean-utils: maintainer-clean-utils
7e2dbcef 33107
05750653 33108maintainer-clean-utils:
f41d6665 33109 @: $(MAKE); $(unstage)
295f4e42
NN
33110 @[ -f ./utils/Makefile ] || exit 0; \
33111 r=`${PWD_COMMAND}`; export r; \
8c90b13a 33112 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33113 $(HOST_EXPORTS) \
d32ab992 33114 for flag in $(EXTRA_HOST_FLAGS) ; do \
295f4e42
NN
33115 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33116 done; \
33117 echo "Doing maintainer-clean in utils" ; \
215c351a 33118 (cd $(HOST_SUBDIR)/utils && \
295f4e42
NN
33119 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33120 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33121 "RANLIB=$${RANLIB}" \
33122 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
d32ab992 33123 maintainer-clean) \
295f4e42 33124 || exit 1
4977bab6 33125
60975492 33126@endif utils
4977bab6 33127
295f4e42 33128
25b42232 33129
5395b47b
NN
33130.PHONY: configure-gnattools maybe-configure-gnattools
33131maybe-configure-gnattools:
3ff3adad
PB
33132@if gcc-bootstrap
33133configure-gnattools: stage_current
33134@endif gcc-bootstrap
5395b47b
NN
33135@if gnattools
33136maybe-configure-gnattools: configure-gnattools
cc11cc9b 33137configure-gnattools:
f41d6665 33138 @: $(MAKE); $(unstage)
cc11cc9b 33139 @r=`${PWD_COMMAND}`; export r; \
5395b47b 33140 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
cc11cc9b
PB
33141 test ! -f $(HOST_SUBDIR)/gnattools/Makefile || exit 0; \
33142 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/gnattools ; \
5395b47b 33143 $(HOST_EXPORTS) \
25b42232
PB
33144 echo Configuring in $(HOST_SUBDIR)/gnattools; \
33145 cd "$(HOST_SUBDIR)/gnattools" || exit 1; \
5395b47b 33146 case $(srcdir) in \
c9db9354
PB
33147 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33148 *) topdir=`echo $(HOST_SUBDIR)/gnattools/ | \
33149 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
5395b47b 33150 esac; \
c9db9354
PB
33151 srcdiroption="--srcdir=$${topdir}/gnattools"; \
33152 libsrcdir="$$s/gnattools"; \
5395b47b
NN
33153 $(SHELL) $${libsrcdir}/configure \
33154 $(HOST_CONFIGARGS) $${srcdiroption} \
33155 || exit 1
33156@endif gnattools
33157
25b42232
PB
33158
33159
ce406537
PB
33160
33161
5395b47b
NN
33162.PHONY: all-gnattools maybe-all-gnattools
33163maybe-all-gnattools:
3ff3adad
PB
33164@if gcc-bootstrap
33165all-gnattools: stage_current
33166@endif gcc-bootstrap
5395b47b
NN
33167@if gnattools
33168TARGET-gnattools=all
33169maybe-all-gnattools: all-gnattools
33170all-gnattools: configure-gnattools
f41d6665 33171 @: $(MAKE); $(unstage)
5395b47b
NN
33172 @r=`${PWD_COMMAND}`; export r; \
33173 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5395b47b 33174 $(HOST_EXPORTS) \
c9db9354
PB
33175 (cd $(HOST_SUBDIR)/gnattools && \
33176 $(MAKE) $(FLAGS_TO_PASS) $(TARGET-gnattools))
5395b47b
NN
33177@endif gnattools
33178
25b42232 33179
ce406537
PB
33180
33181
5395b47b
NN
33182.PHONY: check-gnattools maybe-check-gnattools
33183maybe-check-gnattools:
33184@if gnattools
33185maybe-check-gnattools: check-gnattools
33186
33187check-gnattools:
f41d6665 33188 @: $(MAKE); $(unstage)
5395b47b
NN
33189 @r=`${PWD_COMMAND}`; export r; \
33190 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5395b47b 33191 $(HOST_EXPORTS) \
c9db9354
PB
33192 (cd $(HOST_SUBDIR)/gnattools && \
33193 $(MAKE) $(FLAGS_TO_PASS) check)
5395b47b
NN
33194
33195@endif gnattools
33196
33197.PHONY: install-gnattools maybe-install-gnattools
33198maybe-install-gnattools:
33199@if gnattools
33200maybe-install-gnattools: install-gnattools
33201
33202install-gnattools: installdirs
f41d6665 33203 @: $(MAKE); $(unstage)
5395b47b
NN
33204 @r=`${PWD_COMMAND}`; export r; \
33205 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5395b47b 33206 $(HOST_EXPORTS) \
c9db9354 33207 (cd $(HOST_SUBDIR)/gnattools && \
ace9ac7b 33208 $(MAKE) $(FLAGS_TO_PASS) install)
5395b47b
NN
33209
33210@endif gnattools
33211
b5422ad7 33212# Other targets (info, dvi, pdf, etc.)
5395b47b
NN
33213
33214.PHONY: maybe-info-gnattools info-gnattools
33215maybe-info-gnattools:
33216@if gnattools
33217maybe-info-gnattools: info-gnattools
33218
33219info-gnattools: \
33220 configure-gnattools
f41d6665 33221 @: $(MAKE); $(unstage)
5395b47b
NN
33222 @[ -f ./gnattools/Makefile ] || exit 0; \
33223 r=`${PWD_COMMAND}`; export r; \
33224 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5395b47b
NN
33225 $(HOST_EXPORTS) \
33226 for flag in $(EXTRA_HOST_FLAGS) ; do \
33227 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33228 done; \
33229 echo "Doing info in gnattools" ; \
c9db9354 33230 (cd $(HOST_SUBDIR)/gnattools && \
5395b47b
NN
33231 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33232 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33233 "RANLIB=$${RANLIB}" \
33234 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
33235 info) \
33236 || exit 1
33237
33238@endif gnattools
33239
33240.PHONY: maybe-dvi-gnattools dvi-gnattools
33241maybe-dvi-gnattools:
33242@if gnattools
33243maybe-dvi-gnattools: dvi-gnattools
33244
33245dvi-gnattools: \
33246 configure-gnattools
f41d6665 33247 @: $(MAKE); $(unstage)
5395b47b
NN
33248 @[ -f ./gnattools/Makefile ] || exit 0; \
33249 r=`${PWD_COMMAND}`; export r; \
33250 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5395b47b
NN
33251 $(HOST_EXPORTS) \
33252 for flag in $(EXTRA_HOST_FLAGS) ; do \
33253 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33254 done; \
33255 echo "Doing dvi in gnattools" ; \
c9db9354 33256 (cd $(HOST_SUBDIR)/gnattools && \
5395b47b
NN
33257 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33258 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33259 "RANLIB=$${RANLIB}" \
33260 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
33261 dvi) \
33262 || exit 1
33263
33264@endif gnattools
33265
b5422ad7
BM
33266.PHONY: maybe-pdf-gnattools pdf-gnattools
33267maybe-pdf-gnattools:
33268@if gnattools
33269maybe-pdf-gnattools: pdf-gnattools
33270
33271pdf-gnattools: \
33272 configure-gnattools
33273 @: $(MAKE); $(unstage)
33274 @[ -f ./gnattools/Makefile ] || exit 0; \
33275 r=`${PWD_COMMAND}`; export r; \
33276 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33277 $(HOST_EXPORTS) \
33278 for flag in $(EXTRA_HOST_FLAGS) ; do \
33279 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33280 done; \
33281 echo "Doing pdf in gnattools" ; \
33282 (cd $(HOST_SUBDIR)/gnattools && \
33283 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33284 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33285 "RANLIB=$${RANLIB}" \
33286 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
33287 pdf) \
33288 || exit 1
33289
33290@endif gnattools
33291
5395b47b
NN
33292.PHONY: maybe-html-gnattools html-gnattools
33293maybe-html-gnattools:
33294@if gnattools
33295maybe-html-gnattools: html-gnattools
33296
33297html-gnattools: \
33298 configure-gnattools
f41d6665 33299 @: $(MAKE); $(unstage)
5395b47b
NN
33300 @[ -f ./gnattools/Makefile ] || exit 0; \
33301 r=`${PWD_COMMAND}`; export r; \
33302 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5395b47b
NN
33303 $(HOST_EXPORTS) \
33304 for flag in $(EXTRA_HOST_FLAGS) ; do \
33305 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33306 done; \
33307 echo "Doing html in gnattools" ; \
c9db9354 33308 (cd $(HOST_SUBDIR)/gnattools && \
5395b47b
NN
33309 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33310 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33311 "RANLIB=$${RANLIB}" \
33312 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
33313 html) \
33314 || exit 1
33315
33316@endif gnattools
33317
33318.PHONY: maybe-TAGS-gnattools TAGS-gnattools
33319maybe-TAGS-gnattools:
33320@if gnattools
33321maybe-TAGS-gnattools: TAGS-gnattools
33322
33323TAGS-gnattools: \
33324 configure-gnattools
f41d6665 33325 @: $(MAKE); $(unstage)
5395b47b
NN
33326 @[ -f ./gnattools/Makefile ] || exit 0; \
33327 r=`${PWD_COMMAND}`; export r; \
33328 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5395b47b
NN
33329 $(HOST_EXPORTS) \
33330 for flag in $(EXTRA_HOST_FLAGS) ; do \
33331 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33332 done; \
33333 echo "Doing TAGS in gnattools" ; \
c9db9354 33334 (cd $(HOST_SUBDIR)/gnattools && \
5395b47b
NN
33335 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33336 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33337 "RANLIB=$${RANLIB}" \
33338 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
33339 TAGS) \
33340 || exit 1
33341
33342@endif gnattools
33343
33344.PHONY: maybe-install-info-gnattools install-info-gnattools
33345maybe-install-info-gnattools:
33346@if gnattools
33347maybe-install-info-gnattools: install-info-gnattools
33348
33349install-info-gnattools: \
33350 configure-gnattools \
33351 info-gnattools
f41d6665 33352 @: $(MAKE); $(unstage)
5395b47b
NN
33353 @[ -f ./gnattools/Makefile ] || exit 0; \
33354 r=`${PWD_COMMAND}`; export r; \
33355 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5395b47b
NN
33356 $(HOST_EXPORTS) \
33357 for flag in $(EXTRA_HOST_FLAGS) ; do \
33358 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33359 done; \
33360 echo "Doing install-info in gnattools" ; \
c9db9354 33361 (cd $(HOST_SUBDIR)/gnattools && \
5395b47b
NN
33362 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33363 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33364 "RANLIB=$${RANLIB}" \
33365 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
33366 install-info) \
33367 || exit 1
33368
33369@endif gnattools
33370
65d6e994
CD
33371.PHONY: maybe-install-html-gnattools install-html-gnattools
33372maybe-install-html-gnattools:
33373@if gnattools
33374maybe-install-html-gnattools: install-html-gnattools
33375
33376install-html-gnattools: \
33377 configure-gnattools \
33378 html-gnattools
33379 @: $(MAKE); $(unstage)
33380 @[ -f ./gnattools/Makefile ] || exit 0; \
33381 r=`${PWD_COMMAND}`; export r; \
33382 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33383 $(HOST_EXPORTS) \
33384 for flag in $(EXTRA_HOST_FLAGS) ; do \
33385 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33386 done; \
33387 echo "Doing install-html in gnattools" ; \
33388 (cd $(HOST_SUBDIR)/gnattools && \
33389 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33390 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33391 "RANLIB=$${RANLIB}" \
33392 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
33393 install-html) \
33394 || exit 1
33395
33396@endif gnattools
33397
5395b47b
NN
33398.PHONY: maybe-installcheck-gnattools installcheck-gnattools
33399maybe-installcheck-gnattools:
33400@if gnattools
33401maybe-installcheck-gnattools: installcheck-gnattools
33402
33403installcheck-gnattools: \
33404 configure-gnattools
f41d6665 33405 @: $(MAKE); $(unstage)
5395b47b
NN
33406 @[ -f ./gnattools/Makefile ] || exit 0; \
33407 r=`${PWD_COMMAND}`; export r; \
33408 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5395b47b
NN
33409 $(HOST_EXPORTS) \
33410 for flag in $(EXTRA_HOST_FLAGS) ; do \
33411 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33412 done; \
33413 echo "Doing installcheck in gnattools" ; \
c9db9354 33414 (cd $(HOST_SUBDIR)/gnattools && \
5395b47b
NN
33415 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33416 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33417 "RANLIB=$${RANLIB}" \
33418 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
33419 installcheck) \
33420 || exit 1
33421
33422@endif gnattools
33423
33424.PHONY: maybe-mostlyclean-gnattools mostlyclean-gnattools
33425maybe-mostlyclean-gnattools:
33426@if gnattools
33427maybe-mostlyclean-gnattools: mostlyclean-gnattools
33428
33429mostlyclean-gnattools:
f41d6665 33430 @: $(MAKE); $(unstage)
5395b47b
NN
33431 @[ -f ./gnattools/Makefile ] || exit 0; \
33432 r=`${PWD_COMMAND}`; export r; \
33433 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5395b47b
NN
33434 $(HOST_EXPORTS) \
33435 for flag in $(EXTRA_HOST_FLAGS) ; do \
33436 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33437 done; \
33438 echo "Doing mostlyclean in gnattools" ; \
c9db9354 33439 (cd $(HOST_SUBDIR)/gnattools && \
5395b47b
NN
33440 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33441 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33442 "RANLIB=$${RANLIB}" \
33443 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
33444 mostlyclean) \
33445 || exit 1
33446
33447@endif gnattools
33448
33449.PHONY: maybe-clean-gnattools clean-gnattools
33450maybe-clean-gnattools:
33451@if gnattools
33452maybe-clean-gnattools: clean-gnattools
33453
33454clean-gnattools:
f41d6665 33455 @: $(MAKE); $(unstage)
5395b47b
NN
33456 @[ -f ./gnattools/Makefile ] || exit 0; \
33457 r=`${PWD_COMMAND}`; export r; \
33458 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5395b47b
NN
33459 $(HOST_EXPORTS) \
33460 for flag in $(EXTRA_HOST_FLAGS) ; do \
33461 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33462 done; \
33463 echo "Doing clean in gnattools" ; \
c9db9354 33464 (cd $(HOST_SUBDIR)/gnattools && \
5395b47b
NN
33465 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33466 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33467 "RANLIB=$${RANLIB}" \
33468 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
33469 clean) \
33470 || exit 1
33471
33472@endif gnattools
33473
33474.PHONY: maybe-distclean-gnattools distclean-gnattools
33475maybe-distclean-gnattools:
33476@if gnattools
33477maybe-distclean-gnattools: distclean-gnattools
33478
33479distclean-gnattools:
f41d6665 33480 @: $(MAKE); $(unstage)
5395b47b
NN
33481 @[ -f ./gnattools/Makefile ] || exit 0; \
33482 r=`${PWD_COMMAND}`; export r; \
33483 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5395b47b
NN
33484 $(HOST_EXPORTS) \
33485 for flag in $(EXTRA_HOST_FLAGS) ; do \
33486 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33487 done; \
33488 echo "Doing distclean in gnattools" ; \
c9db9354 33489 (cd $(HOST_SUBDIR)/gnattools && \
5395b47b
NN
33490 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33491 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33492 "RANLIB=$${RANLIB}" \
33493 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
33494 distclean) \
33495 || exit 1
33496
33497@endif gnattools
33498
33499.PHONY: maybe-maintainer-clean-gnattools maintainer-clean-gnattools
33500maybe-maintainer-clean-gnattools:
33501@if gnattools
33502maybe-maintainer-clean-gnattools: maintainer-clean-gnattools
33503
33504maintainer-clean-gnattools:
f41d6665 33505 @: $(MAKE); $(unstage)
5395b47b
NN
33506 @[ -f ./gnattools/Makefile ] || exit 0; \
33507 r=`${PWD_COMMAND}`; export r; \
33508 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
5395b47b
NN
33509 $(HOST_EXPORTS) \
33510 for flag in $(EXTRA_HOST_FLAGS) ; do \
33511 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33512 done; \
33513 echo "Doing maintainer-clean in gnattools" ; \
c9db9354 33514 (cd $(HOST_SUBDIR)/gnattools && \
5395b47b
NN
33515 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33516 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33517 "RANLIB=$${RANLIB}" \
33518 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
33519 maintainer-clean) \
33520 || exit 1
33521
33522@endif gnattools
33523
33524
295f4e42
NN
33525
33526# ---------------------------------------
33527# Modules which run on the target machine
33528# ---------------------------------------
33529
295f4e42 33530
25b42232
PB
33531
33532
33533.PHONY: configure-target-libstdc++-v3 maybe-configure-target-libstdc++-v3
33534maybe-configure-target-libstdc++-v3:
3ff3adad
PB
33535@if gcc-bootstrap
33536configure-target-libstdc++-v3: stage_current
33537@endif gcc-bootstrap
25b42232
PB
33538@if target-libstdc++-v3
33539maybe-configure-target-libstdc++-v3: configure-target-libstdc++-v3
cc11cc9b 33540configure-target-libstdc++-v3:
f41d6665
DJ
33541 @: $(MAKE); $(unstage)
33542 @r=`${PWD_COMMAND}`; export r; \
33543 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33544 echo "Checking multilib configuration for libstdc++-v3..."; \
33545 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
33546 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp 2> /dev/null ; \
33547 if test -r $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
33548 if cmp -s $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; then \
33549 rm -f $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp; \
33550 else \
33551 rm -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile; \
33552 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
33553 fi; \
33554 else \
33555 mv $(TARGET_SUBDIR)/libstdc++-v3/multilib.tmp $(TARGET_SUBDIR)/libstdc++-v3/multilib.out; \
cc11cc9b
PB
33556 fi; \
33557 test ! -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile || exit 0; \
295f4e42 33558 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libstdc++-v3 ; \
4fc4dd12 33559 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
33560 echo Configuring in $(TARGET_SUBDIR)/libstdc++-v3; \
33561 cd "$(TARGET_SUBDIR)/libstdc++-v3" || exit 1; \
4977bab6 33562 case $(srcdir) in \
215c351a
PB
33563 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33564 *) topdir=`echo $(TARGET_SUBDIR)/libstdc++-v3/ | \
33565 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 33566 esac; \
215c351a
PB
33567 srcdiroption="--srcdir=$${topdir}/libstdc++-v3"; \
33568 libsrcdir="$$s/libstdc++-v3"; \
295f4e42
NN
33569 rm -f no-such-file || : ; \
33570 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 33571 $(TARGET_CONFIGARGS) $${srcdiroption} \
4977bab6 33572 || exit 1
60975492 33573@endif target-libstdc++-v3
4977bab6 33574
25b42232
PB
33575
33576
ce406537
PB
33577
33578
295f4e42
NN
33579.PHONY: all-target-libstdc++-v3 maybe-all-target-libstdc++-v3
33580maybe-all-target-libstdc++-v3:
3ff3adad
PB
33581@if gcc-bootstrap
33582all-target-libstdc++-v3: stage_current
33583@endif gcc-bootstrap
60975492 33584@if target-libstdc++-v3
7c27e184 33585TARGET-target-libstdc++-v3=all
60975492 33586maybe-all-target-libstdc++-v3: all-target-libstdc++-v3
295f4e42 33587all-target-libstdc++-v3: configure-target-libstdc++-v3
f41d6665 33588 @: $(MAKE); $(unstage)
8c90b13a
L
33589 @r=`${PWD_COMMAND}`; export r; \
33590 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33591 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42 33592 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
25b42232 33593 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' $(TARGET-target-libstdc++-v3))
60975492 33594@endif target-libstdc++-v3
4977bab6 33595
25b42232
PB
33596
33597
ce406537
PB
33598
33599
295f4e42
NN
33600.PHONY: check-target-libstdc++-v3 maybe-check-target-libstdc++-v3
33601maybe-check-target-libstdc++-v3:
60975492
PB
33602@if target-libstdc++-v3
33603maybe-check-target-libstdc++-v3: check-target-libstdc++-v3
4977bab6 33604
295f4e42 33605check-target-libstdc++-v3:
f41d6665 33606 @: $(MAKE); $(unstage)
8c90b13a
L
33607 @r=`${PWD_COMMAND}`; export r; \
33608 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33609 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42 33610 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
a52a0a7f 33611 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
4977bab6 33612
60975492 33613@endif target-libstdc++-v3
4977bab6 33614
295f4e42
NN
33615.PHONY: install-target-libstdc++-v3 maybe-install-target-libstdc++-v3
33616maybe-install-target-libstdc++-v3:
60975492
PB
33617@if target-libstdc++-v3
33618maybe-install-target-libstdc++-v3: install-target-libstdc++-v3
7e2dbcef 33619
295f4e42 33620install-target-libstdc++-v3: installdirs
f41d6665 33621 @: $(MAKE); $(unstage)
8c90b13a
L
33622 @r=`${PWD_COMMAND}`; export r; \
33623 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33624 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42 33625 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
a52a0a7f 33626 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4977bab6 33627
60975492 33628@endif target-libstdc++-v3
4977bab6 33629
b5422ad7 33630# Other targets (info, dvi, pdf, etc.)
295f4e42
NN
33631
33632.PHONY: maybe-info-target-libstdc++-v3 info-target-libstdc++-v3
33633maybe-info-target-libstdc++-v3:
60975492
PB
33634@if target-libstdc++-v3
33635maybe-info-target-libstdc++-v3: info-target-libstdc++-v3
295f4e42
NN
33636
33637info-target-libstdc++-v3: \
05750653 33638 configure-target-libstdc++-v3
f41d6665 33639 @: $(MAKE); $(unstage)
295f4e42 33640 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
8c90b13a
L
33641 r=`${PWD_COMMAND}`; export r; \
33642 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33643 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
33644 echo "Doing info in $(TARGET_SUBDIR)/libstdc++-v3" ; \
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)/libstdc++-v3 && \
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}" \
a52a0a7f 33653 info) \
4977bab6
ZW
33654 || exit 1
33655
60975492 33656@endif target-libstdc++-v3
295f4e42
NN
33657
33658.PHONY: maybe-dvi-target-libstdc++-v3 dvi-target-libstdc++-v3
33659maybe-dvi-target-libstdc++-v3:
60975492
PB
33660@if target-libstdc++-v3
33661maybe-dvi-target-libstdc++-v3: dvi-target-libstdc++-v3
295f4e42
NN
33662
33663dvi-target-libstdc++-v3: \
05750653 33664 configure-target-libstdc++-v3
f41d6665 33665 @: $(MAKE); $(unstage)
295f4e42
NN
33666 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
33667 r=`${PWD_COMMAND}`; export r; \
8c90b13a 33668 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33669 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
33670 echo "Doing dvi in $(TARGET_SUBDIR)/libstdc++-v3" ; \
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)/libstdc++-v3 && \
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 dvi) \
295f4e42 33680 || exit 1
4977bab6 33681
60975492 33682@endif target-libstdc++-v3
4977bab6 33683
b5422ad7
BM
33684.PHONY: maybe-pdf-target-libstdc++-v3 pdf-target-libstdc++-v3
33685maybe-pdf-target-libstdc++-v3:
33686@if target-libstdc++-v3
33687maybe-pdf-target-libstdc++-v3: pdf-target-libstdc++-v3
33688
33689pdf-target-libstdc++-v3: \
33690 configure-target-libstdc++-v3
33691 @: $(MAKE); $(unstage)
33692 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
33693 r=`${PWD_COMMAND}`; export r; \
33694 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33695 $(RAW_CXX_TARGET_EXPORTS) \
33696 echo "Doing pdf in $(TARGET_SUBDIR)/libstdc++-v3" ; \
33697 for flag in $(EXTRA_TARGET_FLAGS); do \
33698 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33699 done; \
33700 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33701 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33702 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33703 "RANLIB=$${RANLIB}" \
33704 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
33705 pdf) \
33706 || exit 1
33707
33708@endif target-libstdc++-v3
33709
f87a2b2e
MS
33710.PHONY: maybe-html-target-libstdc++-v3 html-target-libstdc++-v3
33711maybe-html-target-libstdc++-v3:
33712@if target-libstdc++-v3
33713maybe-html-target-libstdc++-v3: html-target-libstdc++-v3
33714
33715html-target-libstdc++-v3: \
05750653 33716 configure-target-libstdc++-v3
f41d6665 33717 @: $(MAKE); $(unstage)
f87a2b2e
MS
33718 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
33719 r=`${PWD_COMMAND}`; export r; \
33720 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
33721 $(RAW_CXX_TARGET_EXPORTS) \
33722 echo "Doing html in $(TARGET_SUBDIR)/libstdc++-v3" ; \
33723 for flag in $(EXTRA_TARGET_FLAGS); do \
33724 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33725 done; \
33726 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33727 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33728 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33729 "RANLIB=$${RANLIB}" \
33730 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
33731 html) \
33732 || exit 1
33733
33734@endif target-libstdc++-v3
33735
295f4e42
NN
33736.PHONY: maybe-TAGS-target-libstdc++-v3 TAGS-target-libstdc++-v3
33737maybe-TAGS-target-libstdc++-v3:
60975492
PB
33738@if target-libstdc++-v3
33739maybe-TAGS-target-libstdc++-v3: TAGS-target-libstdc++-v3
295f4e42
NN
33740
33741TAGS-target-libstdc++-v3: \
05750653 33742 configure-target-libstdc++-v3
f41d6665 33743 @: $(MAKE); $(unstage)
295f4e42
NN
33744 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
33745 r=`${PWD_COMMAND}`; export r; \
8c90b13a 33746 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33747 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
33748 echo "Doing TAGS in $(TARGET_SUBDIR)/libstdc++-v3" ; \
33749 for flag in $(EXTRA_TARGET_FLAGS); do \
33750 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33751 done; \
33752 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33753 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33754 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33755 "RANLIB=$${RANLIB}" \
33756 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 33757 TAGS) \
295f4e42 33758 || exit 1
4977bab6 33759
60975492 33760@endif target-libstdc++-v3
4977bab6 33761
295f4e42
NN
33762.PHONY: maybe-install-info-target-libstdc++-v3 install-info-target-libstdc++-v3
33763maybe-install-info-target-libstdc++-v3:
60975492
PB
33764@if target-libstdc++-v3
33765maybe-install-info-target-libstdc++-v3: install-info-target-libstdc++-v3
7e2dbcef 33766
295f4e42
NN
33767install-info-target-libstdc++-v3: \
33768 configure-target-libstdc++-v3 \
05750653 33769 info-target-libstdc++-v3
f41d6665 33770 @: $(MAKE); $(unstage)
295f4e42
NN
33771 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
33772 r=`${PWD_COMMAND}`; export r; \
8c90b13a 33773 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33774 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
33775 echo "Doing install-info in $(TARGET_SUBDIR)/libstdc++-v3" ; \
33776 for flag in $(EXTRA_TARGET_FLAGS); do \
33777 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33778 done; \
33779 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33780 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33781 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33782 "RANLIB=$${RANLIB}" \
33783 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 33784 install-info) \
295f4e42 33785 || exit 1
4977bab6 33786
60975492 33787@endif target-libstdc++-v3
4977bab6 33788
65d6e994
CD
33789.PHONY: maybe-install-html-target-libstdc++-v3 install-html-target-libstdc++-v3
33790maybe-install-html-target-libstdc++-v3:
33791@if target-libstdc++-v3
33792maybe-install-html-target-libstdc++-v3: install-html-target-libstdc++-v3
33793
33794install-html-target-libstdc++-v3: \
33795 configure-target-libstdc++-v3 \
33796 html-target-libstdc++-v3
33797 @: $(MAKE); $(unstage)
33798 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
33799 r=`${PWD_COMMAND}`; export r; \
33800 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33801 $(RAW_CXX_TARGET_EXPORTS) \
33802 echo "Doing install-html in $(TARGET_SUBDIR)/libstdc++-v3" ; \
33803 for flag in $(EXTRA_TARGET_FLAGS); do \
33804 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33805 done; \
33806 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33807 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33808 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33809 "RANLIB=$${RANLIB}" \
33810 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
33811 install-html) \
33812 || exit 1
33813
33814@endif target-libstdc++-v3
33815
295f4e42
NN
33816.PHONY: maybe-installcheck-target-libstdc++-v3 installcheck-target-libstdc++-v3
33817maybe-installcheck-target-libstdc++-v3:
60975492
PB
33818@if target-libstdc++-v3
33819maybe-installcheck-target-libstdc++-v3: installcheck-target-libstdc++-v3
295f4e42
NN
33820
33821installcheck-target-libstdc++-v3: \
05750653 33822 configure-target-libstdc++-v3
f41d6665 33823 @: $(MAKE); $(unstage)
295f4e42 33824 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
8c90b13a
L
33825 r=`${PWD_COMMAND}`; export r; \
33826 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33827 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
33828 echo "Doing installcheck in $(TARGET_SUBDIR)/libstdc++-v3" ; \
33829 for flag in $(EXTRA_TARGET_FLAGS); do \
33830 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33831 done; \
33832 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33833 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33834 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33835 "RANLIB=$${RANLIB}" \
33836 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 33837 installcheck) \
4977bab6
ZW
33838 || exit 1
33839
60975492 33840@endif target-libstdc++-v3
4977bab6 33841
295f4e42
NN
33842.PHONY: maybe-mostlyclean-target-libstdc++-v3 mostlyclean-target-libstdc++-v3
33843maybe-mostlyclean-target-libstdc++-v3:
60975492
PB
33844@if target-libstdc++-v3
33845maybe-mostlyclean-target-libstdc++-v3: mostlyclean-target-libstdc++-v3
4977bab6 33846
05750653 33847mostlyclean-target-libstdc++-v3:
f41d6665 33848 @: $(MAKE); $(unstage)
295f4e42
NN
33849 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
33850 r=`${PWD_COMMAND}`; export r; \
8c90b13a 33851 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33852 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
33853 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libstdc++-v3" ; \
33854 for flag in $(EXTRA_TARGET_FLAGS); do \
33855 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33856 done; \
33857 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33858 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33859 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33860 "RANLIB=$${RANLIB}" \
33861 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 33862 mostlyclean) \
295f4e42 33863 || exit 1
4977bab6 33864
60975492 33865@endif target-libstdc++-v3
4977bab6 33866
295f4e42
NN
33867.PHONY: maybe-clean-target-libstdc++-v3 clean-target-libstdc++-v3
33868maybe-clean-target-libstdc++-v3:
60975492
PB
33869@if target-libstdc++-v3
33870maybe-clean-target-libstdc++-v3: clean-target-libstdc++-v3
7e2dbcef 33871
05750653 33872clean-target-libstdc++-v3:
f41d6665 33873 @: $(MAKE); $(unstage)
295f4e42
NN
33874 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
33875 r=`${PWD_COMMAND}`; export r; \
8c90b13a 33876 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33877 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
33878 echo "Doing clean in $(TARGET_SUBDIR)/libstdc++-v3" ; \
33879 for flag in $(EXTRA_TARGET_FLAGS); do \
33880 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33881 done; \
33882 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33883 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33884 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33885 "RANLIB=$${RANLIB}" \
33886 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 33887 clean) \
295f4e42 33888 || exit 1
4977bab6 33889
60975492 33890@endif target-libstdc++-v3
4977bab6 33891
295f4e42
NN
33892.PHONY: maybe-distclean-target-libstdc++-v3 distclean-target-libstdc++-v3
33893maybe-distclean-target-libstdc++-v3:
60975492
PB
33894@if target-libstdc++-v3
33895maybe-distclean-target-libstdc++-v3: distclean-target-libstdc++-v3
295f4e42 33896
05750653 33897distclean-target-libstdc++-v3:
f41d6665 33898 @: $(MAKE); $(unstage)
295f4e42 33899 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
8c90b13a
L
33900 r=`${PWD_COMMAND}`; export r; \
33901 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33902 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
33903 echo "Doing distclean in $(TARGET_SUBDIR)/libstdc++-v3" ; \
33904 for flag in $(EXTRA_TARGET_FLAGS); do \
33905 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33906 done; \
33907 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33908 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33909 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33910 "RANLIB=$${RANLIB}" \
33911 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 33912 distclean) \
4977bab6
ZW
33913 || exit 1
33914
60975492 33915@endif target-libstdc++-v3
4977bab6 33916
295f4e42
NN
33917.PHONY: maybe-maintainer-clean-target-libstdc++-v3 maintainer-clean-target-libstdc++-v3
33918maybe-maintainer-clean-target-libstdc++-v3:
60975492
PB
33919@if target-libstdc++-v3
33920maybe-maintainer-clean-target-libstdc++-v3: maintainer-clean-target-libstdc++-v3
4977bab6 33921
05750653 33922maintainer-clean-target-libstdc++-v3:
f41d6665 33923 @: $(MAKE); $(unstage)
295f4e42
NN
33924 @[ -f $(TARGET_SUBDIR)/libstdc++-v3/Makefile ] || exit 0 ; \
33925 r=`${PWD_COMMAND}`; export r; \
8c90b13a 33926 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 33927 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
33928 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libstdc++-v3" ; \
33929 for flag in $(EXTRA_TARGET_FLAGS); do \
33930 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
33931 done; \
33932 (cd $(TARGET_SUBDIR)/libstdc++-v3 && \
33933 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
33934 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
33935 "RANLIB=$${RANLIB}" \
33936 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 33937 maintainer-clean) \
295f4e42 33938 || exit 1
4977bab6 33939
60975492 33940@endif target-libstdc++-v3
4977bab6 33941
7e2dbcef 33942
4977bab6 33943
25b42232
PB
33944
33945
33946.PHONY: configure-target-libmudflap maybe-configure-target-libmudflap
33947maybe-configure-target-libmudflap:
3ff3adad
PB
33948@if gcc-bootstrap
33949configure-target-libmudflap: stage_current
33950@endif gcc-bootstrap
25b42232
PB
33951@if target-libmudflap
33952maybe-configure-target-libmudflap: configure-target-libmudflap
cc11cc9b 33953configure-target-libmudflap:
f41d6665
DJ
33954 @: $(MAKE); $(unstage)
33955 @r=`${PWD_COMMAND}`; export r; \
33956 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
33957 echo "Checking multilib configuration for libmudflap..."; \
33958 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmudflap ; \
33959 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libmudflap/multilib.tmp 2> /dev/null ; \
33960 if test -r $(TARGET_SUBDIR)/libmudflap/multilib.out; then \
33961 if cmp -s $(TARGET_SUBDIR)/libmudflap/multilib.tmp $(TARGET_SUBDIR)/libmudflap/multilib.out; then \
33962 rm -f $(TARGET_SUBDIR)/libmudflap/multilib.tmp; \
33963 else \
33964 rm -f $(TARGET_SUBDIR)/libmudflap/Makefile; \
33965 mv $(TARGET_SUBDIR)/libmudflap/multilib.tmp $(TARGET_SUBDIR)/libmudflap/multilib.out; \
33966 fi; \
33967 else \
33968 mv $(TARGET_SUBDIR)/libmudflap/multilib.tmp $(TARGET_SUBDIR)/libmudflap/multilib.out; \
cc11cc9b
PB
33969 fi; \
33970 test ! -f $(TARGET_SUBDIR)/libmudflap/Makefile || exit 0; \
6de9cd9a 33971 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libmudflap ; \
4fc4dd12 33972 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
33973 echo Configuring in $(TARGET_SUBDIR)/libmudflap; \
33974 cd "$(TARGET_SUBDIR)/libmudflap" || exit 1; \
4977bab6 33975 case $(srcdir) in \
215c351a
PB
33976 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
33977 *) topdir=`echo $(TARGET_SUBDIR)/libmudflap/ | \
33978 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 33979 esac; \
215c351a
PB
33980 srcdiroption="--srcdir=$${topdir}/libmudflap"; \
33981 libsrcdir="$$s/libmudflap"; \
295f4e42
NN
33982 rm -f no-such-file || : ; \
33983 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 33984 $(TARGET_CONFIGARGS) $${srcdiroption} \
4977bab6 33985 || exit 1
60975492 33986@endif target-libmudflap
4977bab6 33987
25b42232
PB
33988
33989
ce406537
PB
33990
33991
6de9cd9a
DN
33992.PHONY: all-target-libmudflap maybe-all-target-libmudflap
33993maybe-all-target-libmudflap:
3ff3adad
PB
33994@if gcc-bootstrap
33995all-target-libmudflap: stage_current
33996@endif gcc-bootstrap
60975492 33997@if target-libmudflap
7c27e184 33998TARGET-target-libmudflap=all
60975492 33999maybe-all-target-libmudflap: all-target-libmudflap
6de9cd9a 34000all-target-libmudflap: configure-target-libmudflap
f41d6665 34001 @: $(MAKE); $(unstage)
8c90b13a
L
34002 @r=`${PWD_COMMAND}`; export r; \
34003 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34004 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a 34005 (cd $(TARGET_SUBDIR)/libmudflap && \
25b42232 34006 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libmudflap))
60975492 34007@endif target-libmudflap
4977bab6 34008
25b42232
PB
34009
34010
ce406537
PB
34011
34012
6de9cd9a
DN
34013.PHONY: check-target-libmudflap maybe-check-target-libmudflap
34014maybe-check-target-libmudflap:
60975492
PB
34015@if target-libmudflap
34016maybe-check-target-libmudflap: check-target-libmudflap
4977bab6 34017
6de9cd9a 34018check-target-libmudflap:
f41d6665 34019 @: $(MAKE); $(unstage)
6de9cd9a
DN
34020 @r=`${PWD_COMMAND}`; export r; \
34021 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34022 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a 34023 (cd $(TARGET_SUBDIR)/libmudflap && \
a52a0a7f 34024 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
6de9cd9a 34025
60975492 34026@endif target-libmudflap
6de9cd9a
DN
34027
34028.PHONY: install-target-libmudflap maybe-install-target-libmudflap
34029maybe-install-target-libmudflap:
60975492
PB
34030@if target-libmudflap
34031maybe-install-target-libmudflap: install-target-libmudflap
6de9cd9a
DN
34032
34033install-target-libmudflap: installdirs
f41d6665 34034 @: $(MAKE); $(unstage)
6de9cd9a
DN
34035 @r=`${PWD_COMMAND}`; export r; \
34036 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34037 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a 34038 (cd $(TARGET_SUBDIR)/libmudflap && \
a52a0a7f 34039 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6de9cd9a 34040
60975492 34041@endif target-libmudflap
6de9cd9a 34042
b5422ad7 34043# Other targets (info, dvi, pdf, etc.)
6de9cd9a
DN
34044
34045.PHONY: maybe-info-target-libmudflap info-target-libmudflap
34046maybe-info-target-libmudflap:
60975492
PB
34047@if target-libmudflap
34048maybe-info-target-libmudflap: info-target-libmudflap
6de9cd9a
DN
34049
34050info-target-libmudflap: \
05750653 34051 configure-target-libmudflap
f41d6665 34052 @: $(MAKE); $(unstage)
6de9cd9a
DN
34053 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
34054 r=`${PWD_COMMAND}`; export r; \
34055 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34056 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
34057 echo "Doing info in $(TARGET_SUBDIR)/libmudflap" ; \
34058 for flag in $(EXTRA_TARGET_FLAGS); do \
34059 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34060 done; \
34061 (cd $(TARGET_SUBDIR)/libmudflap && \
34062 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34063 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34064 "RANLIB=$${RANLIB}" \
34065 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 34066 info) \
6de9cd9a
DN
34067 || exit 1
34068
60975492 34069@endif target-libmudflap
6de9cd9a
DN
34070
34071.PHONY: maybe-dvi-target-libmudflap dvi-target-libmudflap
34072maybe-dvi-target-libmudflap:
60975492
PB
34073@if target-libmudflap
34074maybe-dvi-target-libmudflap: dvi-target-libmudflap
6de9cd9a
DN
34075
34076dvi-target-libmudflap: \
05750653 34077 configure-target-libmudflap
f41d6665 34078 @: $(MAKE); $(unstage)
6de9cd9a
DN
34079 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
34080 r=`${PWD_COMMAND}`; export r; \
34081 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34082 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
34083 echo "Doing dvi in $(TARGET_SUBDIR)/libmudflap" ; \
34084 for flag in $(EXTRA_TARGET_FLAGS); do \
34085 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34086 done; \
34087 (cd $(TARGET_SUBDIR)/libmudflap && \
34088 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34089 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34090 "RANLIB=$${RANLIB}" \
34091 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 34092 dvi) \
6de9cd9a
DN
34093 || exit 1
34094
60975492 34095@endif target-libmudflap
6de9cd9a 34096
b5422ad7
BM
34097.PHONY: maybe-pdf-target-libmudflap pdf-target-libmudflap
34098maybe-pdf-target-libmudflap:
34099@if target-libmudflap
34100maybe-pdf-target-libmudflap: pdf-target-libmudflap
34101
34102pdf-target-libmudflap: \
34103 configure-target-libmudflap
34104 @: $(MAKE); $(unstage)
34105 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
34106 r=`${PWD_COMMAND}`; export r; \
34107 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34108 $(NORMAL_TARGET_EXPORTS) \
34109 echo "Doing pdf in $(TARGET_SUBDIR)/libmudflap" ; \
34110 for flag in $(EXTRA_TARGET_FLAGS); do \
34111 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34112 done; \
34113 (cd $(TARGET_SUBDIR)/libmudflap && \
34114 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34115 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34116 "RANLIB=$${RANLIB}" \
34117 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
34118 pdf) \
34119 || exit 1
34120
34121@endif target-libmudflap
34122
f87a2b2e
MS
34123.PHONY: maybe-html-target-libmudflap html-target-libmudflap
34124maybe-html-target-libmudflap:
34125@if target-libmudflap
34126maybe-html-target-libmudflap: html-target-libmudflap
34127
34128html-target-libmudflap: \
05750653 34129 configure-target-libmudflap
f41d6665 34130 @: $(MAKE); $(unstage)
f87a2b2e
MS
34131 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
34132 r=`${PWD_COMMAND}`; export r; \
34133 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
34134 $(NORMAL_TARGET_EXPORTS) \
34135 echo "Doing html in $(TARGET_SUBDIR)/libmudflap" ; \
34136 for flag in $(EXTRA_TARGET_FLAGS); do \
34137 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34138 done; \
34139 (cd $(TARGET_SUBDIR)/libmudflap && \
34140 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34141 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34142 "RANLIB=$${RANLIB}" \
34143 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
34144 html) \
34145 || exit 1
34146
34147@endif target-libmudflap
34148
6de9cd9a
DN
34149.PHONY: maybe-TAGS-target-libmudflap TAGS-target-libmudflap
34150maybe-TAGS-target-libmudflap:
60975492
PB
34151@if target-libmudflap
34152maybe-TAGS-target-libmudflap: TAGS-target-libmudflap
6de9cd9a
DN
34153
34154TAGS-target-libmudflap: \
05750653 34155 configure-target-libmudflap
f41d6665 34156 @: $(MAKE); $(unstage)
6de9cd9a
DN
34157 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
34158 r=`${PWD_COMMAND}`; export r; \
34159 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34160 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
34161 echo "Doing TAGS in $(TARGET_SUBDIR)/libmudflap" ; \
34162 for flag in $(EXTRA_TARGET_FLAGS); do \
34163 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34164 done; \
34165 (cd $(TARGET_SUBDIR)/libmudflap && \
34166 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34167 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34168 "RANLIB=$${RANLIB}" \
34169 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 34170 TAGS) \
6de9cd9a
DN
34171 || exit 1
34172
60975492 34173@endif target-libmudflap
6de9cd9a
DN
34174
34175.PHONY: maybe-install-info-target-libmudflap install-info-target-libmudflap
34176maybe-install-info-target-libmudflap:
60975492
PB
34177@if target-libmudflap
34178maybe-install-info-target-libmudflap: install-info-target-libmudflap
6de9cd9a
DN
34179
34180install-info-target-libmudflap: \
34181 configure-target-libmudflap \
05750653 34182 info-target-libmudflap
f41d6665 34183 @: $(MAKE); $(unstage)
6de9cd9a
DN
34184 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
34185 r=`${PWD_COMMAND}`; export r; \
34186 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34187 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
34188 echo "Doing install-info in $(TARGET_SUBDIR)/libmudflap" ; \
34189 for flag in $(EXTRA_TARGET_FLAGS); do \
34190 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34191 done; \
34192 (cd $(TARGET_SUBDIR)/libmudflap && \
34193 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34194 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34195 "RANLIB=$${RANLIB}" \
34196 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 34197 install-info) \
6de9cd9a
DN
34198 || exit 1
34199
60975492 34200@endif target-libmudflap
6de9cd9a 34201
65d6e994
CD
34202.PHONY: maybe-install-html-target-libmudflap install-html-target-libmudflap
34203maybe-install-html-target-libmudflap:
34204@if target-libmudflap
34205maybe-install-html-target-libmudflap: install-html-target-libmudflap
34206
34207install-html-target-libmudflap: \
34208 configure-target-libmudflap \
34209 html-target-libmudflap
34210 @: $(MAKE); $(unstage)
34211 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
34212 r=`${PWD_COMMAND}`; export r; \
34213 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34214 $(NORMAL_TARGET_EXPORTS) \
34215 echo "Doing install-html in $(TARGET_SUBDIR)/libmudflap" ; \
34216 for flag in $(EXTRA_TARGET_FLAGS); do \
34217 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34218 done; \
34219 (cd $(TARGET_SUBDIR)/libmudflap && \
34220 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34221 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34222 "RANLIB=$${RANLIB}" \
34223 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
34224 install-html) \
34225 || exit 1
34226
34227@endif target-libmudflap
34228
6de9cd9a
DN
34229.PHONY: maybe-installcheck-target-libmudflap installcheck-target-libmudflap
34230maybe-installcheck-target-libmudflap:
60975492
PB
34231@if target-libmudflap
34232maybe-installcheck-target-libmudflap: installcheck-target-libmudflap
6de9cd9a
DN
34233
34234installcheck-target-libmudflap: \
05750653 34235 configure-target-libmudflap
f41d6665 34236 @: $(MAKE); $(unstage)
6de9cd9a
DN
34237 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
34238 r=`${PWD_COMMAND}`; export r; \
34239 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34240 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
34241 echo "Doing installcheck in $(TARGET_SUBDIR)/libmudflap" ; \
34242 for flag in $(EXTRA_TARGET_FLAGS); do \
34243 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34244 done; \
34245 (cd $(TARGET_SUBDIR)/libmudflap && \
34246 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34247 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34248 "RANLIB=$${RANLIB}" \
34249 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 34250 installcheck) \
6de9cd9a
DN
34251 || exit 1
34252
60975492 34253@endif target-libmudflap
6de9cd9a
DN
34254
34255.PHONY: maybe-mostlyclean-target-libmudflap mostlyclean-target-libmudflap
34256maybe-mostlyclean-target-libmudflap:
60975492
PB
34257@if target-libmudflap
34258maybe-mostlyclean-target-libmudflap: mostlyclean-target-libmudflap
6de9cd9a 34259
05750653 34260mostlyclean-target-libmudflap:
f41d6665 34261 @: $(MAKE); $(unstage)
6de9cd9a
DN
34262 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
34263 r=`${PWD_COMMAND}`; export r; \
34264 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34265 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
34266 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libmudflap" ; \
34267 for flag in $(EXTRA_TARGET_FLAGS); do \
34268 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34269 done; \
34270 (cd $(TARGET_SUBDIR)/libmudflap && \
34271 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34272 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34273 "RANLIB=$${RANLIB}" \
34274 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 34275 mostlyclean) \
6de9cd9a
DN
34276 || exit 1
34277
60975492 34278@endif target-libmudflap
6de9cd9a
DN
34279
34280.PHONY: maybe-clean-target-libmudflap clean-target-libmudflap
34281maybe-clean-target-libmudflap:
60975492
PB
34282@if target-libmudflap
34283maybe-clean-target-libmudflap: clean-target-libmudflap
6de9cd9a 34284
05750653 34285clean-target-libmudflap:
f41d6665 34286 @: $(MAKE); $(unstage)
6de9cd9a
DN
34287 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
34288 r=`${PWD_COMMAND}`; export r; \
34289 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34290 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
34291 echo "Doing clean in $(TARGET_SUBDIR)/libmudflap" ; \
34292 for flag in $(EXTRA_TARGET_FLAGS); do \
34293 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34294 done; \
34295 (cd $(TARGET_SUBDIR)/libmudflap && \
34296 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34297 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34298 "RANLIB=$${RANLIB}" \
34299 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 34300 clean) \
6de9cd9a
DN
34301 || exit 1
34302
60975492 34303@endif target-libmudflap
6de9cd9a
DN
34304
34305.PHONY: maybe-distclean-target-libmudflap distclean-target-libmudflap
34306maybe-distclean-target-libmudflap:
60975492
PB
34307@if target-libmudflap
34308maybe-distclean-target-libmudflap: distclean-target-libmudflap
6de9cd9a 34309
05750653 34310distclean-target-libmudflap:
f41d6665 34311 @: $(MAKE); $(unstage)
6de9cd9a
DN
34312 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
34313 r=`${PWD_COMMAND}`; export r; \
34314 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34315 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
34316 echo "Doing distclean in $(TARGET_SUBDIR)/libmudflap" ; \
34317 for flag in $(EXTRA_TARGET_FLAGS); do \
34318 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34319 done; \
34320 (cd $(TARGET_SUBDIR)/libmudflap && \
34321 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34322 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34323 "RANLIB=$${RANLIB}" \
34324 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 34325 distclean) \
6de9cd9a
DN
34326 || exit 1
34327
60975492 34328@endif target-libmudflap
6de9cd9a
DN
34329
34330.PHONY: maybe-maintainer-clean-target-libmudflap maintainer-clean-target-libmudflap
34331maybe-maintainer-clean-target-libmudflap:
60975492
PB
34332@if target-libmudflap
34333maybe-maintainer-clean-target-libmudflap: maintainer-clean-target-libmudflap
6de9cd9a 34334
05750653 34335maintainer-clean-target-libmudflap:
f41d6665 34336 @: $(MAKE); $(unstage)
6de9cd9a
DN
34337 @[ -f $(TARGET_SUBDIR)/libmudflap/Makefile ] || exit 0 ; \
34338 r=`${PWD_COMMAND}`; export r; \
34339 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34340 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
34341 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libmudflap" ; \
34342 for flag in $(EXTRA_TARGET_FLAGS); do \
34343 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34344 done; \
34345 (cd $(TARGET_SUBDIR)/libmudflap && \
34346 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34347 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34348 "RANLIB=$${RANLIB}" \
34349 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 34350 maintainer-clean) \
6de9cd9a
DN
34351 || exit 1
34352
60975492 34353@endif target-libmudflap
6de9cd9a
DN
34354
34355
6de9cd9a 34356
77008252
JJ
34357
34358
34359.PHONY: configure-target-libssp maybe-configure-target-libssp
34360maybe-configure-target-libssp:
3ff3adad
PB
34361@if gcc-bootstrap
34362configure-target-libssp: stage_current
34363@endif gcc-bootstrap
77008252
JJ
34364@if target-libssp
34365maybe-configure-target-libssp: configure-target-libssp
cc11cc9b 34366configure-target-libssp:
f41d6665
DJ
34367 @: $(MAKE); $(unstage)
34368 @r=`${PWD_COMMAND}`; export r; \
34369 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34370 echo "Checking multilib configuration for libssp..."; \
34371 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libssp ; \
34372 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libssp/multilib.tmp 2> /dev/null ; \
34373 if test -r $(TARGET_SUBDIR)/libssp/multilib.out; then \
34374 if cmp -s $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; then \
34375 rm -f $(TARGET_SUBDIR)/libssp/multilib.tmp; \
34376 else \
34377 rm -f $(TARGET_SUBDIR)/libssp/Makefile; \
34378 mv $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; \
34379 fi; \
34380 else \
34381 mv $(TARGET_SUBDIR)/libssp/multilib.tmp $(TARGET_SUBDIR)/libssp/multilib.out; \
cc11cc9b
PB
34382 fi; \
34383 test ! -f $(TARGET_SUBDIR)/libssp/Makefile || exit 0; \
77008252 34384 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libssp ; \
77008252
JJ
34385 $(NORMAL_TARGET_EXPORTS) \
34386 echo Configuring in $(TARGET_SUBDIR)/libssp; \
34387 cd "$(TARGET_SUBDIR)/libssp" || exit 1; \
34388 case $(srcdir) in \
34389 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34390 *) topdir=`echo $(TARGET_SUBDIR)/libssp/ | \
34391 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
34392 esac; \
34393 srcdiroption="--srcdir=$${topdir}/libssp"; \
34394 libsrcdir="$$s/libssp"; \
34395 rm -f no-such-file || : ; \
34396 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
34397 $(TARGET_CONFIGARGS) $${srcdiroption} \
34398 || exit 1
34399@endif target-libssp
34400
34401
34402
34403
34404
34405.PHONY: all-target-libssp maybe-all-target-libssp
34406maybe-all-target-libssp:
3ff3adad
PB
34407@if gcc-bootstrap
34408all-target-libssp: stage_current
34409@endif gcc-bootstrap
77008252
JJ
34410@if target-libssp
34411TARGET-target-libssp=all
34412maybe-all-target-libssp: all-target-libssp
34413all-target-libssp: configure-target-libssp
f41d6665 34414 @: $(MAKE); $(unstage)
77008252
JJ
34415 @r=`${PWD_COMMAND}`; export r; \
34416 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34417 $(NORMAL_TARGET_EXPORTS) \
34418 (cd $(TARGET_SUBDIR)/libssp && \
34419 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libssp))
34420@endif target-libssp
34421
34422
34423
34424
34425
34426.PHONY: check-target-libssp maybe-check-target-libssp
34427maybe-check-target-libssp:
34428@if target-libssp
34429maybe-check-target-libssp: check-target-libssp
34430
34431check-target-libssp:
f41d6665 34432 @: $(MAKE); $(unstage)
77008252
JJ
34433 @r=`${PWD_COMMAND}`; export r; \
34434 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34435 $(NORMAL_TARGET_EXPORTS) \
34436 (cd $(TARGET_SUBDIR)/libssp && \
34437 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
34438
34439@endif target-libssp
34440
34441.PHONY: install-target-libssp maybe-install-target-libssp
34442maybe-install-target-libssp:
34443@if target-libssp
34444maybe-install-target-libssp: install-target-libssp
34445
34446install-target-libssp: installdirs
f41d6665 34447 @: $(MAKE); $(unstage)
77008252
JJ
34448 @r=`${PWD_COMMAND}`; export r; \
34449 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34450 $(NORMAL_TARGET_EXPORTS) \
34451 (cd $(TARGET_SUBDIR)/libssp && \
34452 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
34453
34454@endif target-libssp
34455
b5422ad7 34456# Other targets (info, dvi, pdf, etc.)
77008252
JJ
34457
34458.PHONY: maybe-info-target-libssp info-target-libssp
34459maybe-info-target-libssp:
34460@if target-libssp
34461maybe-info-target-libssp: info-target-libssp
34462
34463info-target-libssp: \
34464 configure-target-libssp
f41d6665 34465 @: $(MAKE); $(unstage)
77008252
JJ
34466 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
34467 r=`${PWD_COMMAND}`; export r; \
34468 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34469 $(NORMAL_TARGET_EXPORTS) \
34470 echo "Doing info in $(TARGET_SUBDIR)/libssp" ; \
34471 for flag in $(EXTRA_TARGET_FLAGS); do \
34472 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34473 done; \
34474 (cd $(TARGET_SUBDIR)/libssp && \
34475 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34476 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34477 "RANLIB=$${RANLIB}" \
34478 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
34479 info) \
34480 || exit 1
34481
34482@endif target-libssp
34483
34484.PHONY: maybe-dvi-target-libssp dvi-target-libssp
34485maybe-dvi-target-libssp:
34486@if target-libssp
34487maybe-dvi-target-libssp: dvi-target-libssp
34488
34489dvi-target-libssp: \
34490 configure-target-libssp
f41d6665 34491 @: $(MAKE); $(unstage)
77008252
JJ
34492 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
34493 r=`${PWD_COMMAND}`; export r; \
34494 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34495 $(NORMAL_TARGET_EXPORTS) \
34496 echo "Doing dvi in $(TARGET_SUBDIR)/libssp" ; \
34497 for flag in $(EXTRA_TARGET_FLAGS); do \
34498 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34499 done; \
34500 (cd $(TARGET_SUBDIR)/libssp && \
34501 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34502 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34503 "RANLIB=$${RANLIB}" \
34504 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
34505 dvi) \
34506 || exit 1
34507
34508@endif target-libssp
34509
b5422ad7
BM
34510.PHONY: maybe-pdf-target-libssp pdf-target-libssp
34511maybe-pdf-target-libssp:
34512@if target-libssp
34513maybe-pdf-target-libssp: pdf-target-libssp
34514
34515pdf-target-libssp: \
34516 configure-target-libssp
34517 @: $(MAKE); $(unstage)
34518 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
34519 r=`${PWD_COMMAND}`; export r; \
34520 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34521 $(NORMAL_TARGET_EXPORTS) \
34522 echo "Doing pdf in $(TARGET_SUBDIR)/libssp" ; \
34523 for flag in $(EXTRA_TARGET_FLAGS); do \
34524 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34525 done; \
34526 (cd $(TARGET_SUBDIR)/libssp && \
34527 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34528 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34529 "RANLIB=$${RANLIB}" \
34530 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
34531 pdf) \
34532 || exit 1
34533
34534@endif target-libssp
34535
77008252
JJ
34536.PHONY: maybe-html-target-libssp html-target-libssp
34537maybe-html-target-libssp:
34538@if target-libssp
34539maybe-html-target-libssp: html-target-libssp
34540
34541html-target-libssp: \
34542 configure-target-libssp
f41d6665 34543 @: $(MAKE); $(unstage)
77008252
JJ
34544 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
34545 r=`${PWD_COMMAND}`; export r; \
34546 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34547 $(NORMAL_TARGET_EXPORTS) \
34548 echo "Doing html in $(TARGET_SUBDIR)/libssp" ; \
34549 for flag in $(EXTRA_TARGET_FLAGS); do \
34550 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34551 done; \
34552 (cd $(TARGET_SUBDIR)/libssp && \
34553 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34554 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34555 "RANLIB=$${RANLIB}" \
34556 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
34557 html) \
34558 || exit 1
34559
34560@endif target-libssp
34561
34562.PHONY: maybe-TAGS-target-libssp TAGS-target-libssp
34563maybe-TAGS-target-libssp:
34564@if target-libssp
34565maybe-TAGS-target-libssp: TAGS-target-libssp
34566
34567TAGS-target-libssp: \
34568 configure-target-libssp
f41d6665 34569 @: $(MAKE); $(unstage)
77008252
JJ
34570 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
34571 r=`${PWD_COMMAND}`; export r; \
34572 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34573 $(NORMAL_TARGET_EXPORTS) \
34574 echo "Doing TAGS in $(TARGET_SUBDIR)/libssp" ; \
34575 for flag in $(EXTRA_TARGET_FLAGS); do \
34576 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34577 done; \
34578 (cd $(TARGET_SUBDIR)/libssp && \
34579 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34580 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34581 "RANLIB=$${RANLIB}" \
34582 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
34583 TAGS) \
34584 || exit 1
34585
34586@endif target-libssp
34587
34588.PHONY: maybe-install-info-target-libssp install-info-target-libssp
34589maybe-install-info-target-libssp:
34590@if target-libssp
34591maybe-install-info-target-libssp: install-info-target-libssp
34592
34593install-info-target-libssp: \
34594 configure-target-libssp \
34595 info-target-libssp
f41d6665 34596 @: $(MAKE); $(unstage)
77008252
JJ
34597 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
34598 r=`${PWD_COMMAND}`; export r; \
34599 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34600 $(NORMAL_TARGET_EXPORTS) \
34601 echo "Doing install-info in $(TARGET_SUBDIR)/libssp" ; \
34602 for flag in $(EXTRA_TARGET_FLAGS); do \
34603 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34604 done; \
34605 (cd $(TARGET_SUBDIR)/libssp && \
34606 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34607 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34608 "RANLIB=$${RANLIB}" \
34609 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
34610 install-info) \
34611 || exit 1
34612
34613@endif target-libssp
34614
65d6e994
CD
34615.PHONY: maybe-install-html-target-libssp install-html-target-libssp
34616maybe-install-html-target-libssp:
34617@if target-libssp
34618maybe-install-html-target-libssp: install-html-target-libssp
34619
34620install-html-target-libssp: \
34621 configure-target-libssp \
34622 html-target-libssp
34623 @: $(MAKE); $(unstage)
34624 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
34625 r=`${PWD_COMMAND}`; export r; \
34626 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34627 $(NORMAL_TARGET_EXPORTS) \
34628 echo "Doing install-html in $(TARGET_SUBDIR)/libssp" ; \
34629 for flag in $(EXTRA_TARGET_FLAGS); do \
34630 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34631 done; \
34632 (cd $(TARGET_SUBDIR)/libssp && \
34633 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34634 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34635 "RANLIB=$${RANLIB}" \
34636 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
34637 install-html) \
34638 || exit 1
34639
34640@endif target-libssp
34641
77008252
JJ
34642.PHONY: maybe-installcheck-target-libssp installcheck-target-libssp
34643maybe-installcheck-target-libssp:
34644@if target-libssp
34645maybe-installcheck-target-libssp: installcheck-target-libssp
34646
34647installcheck-target-libssp: \
34648 configure-target-libssp
f41d6665 34649 @: $(MAKE); $(unstage)
77008252
JJ
34650 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
34651 r=`${PWD_COMMAND}`; export r; \
34652 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34653 $(NORMAL_TARGET_EXPORTS) \
34654 echo "Doing installcheck in $(TARGET_SUBDIR)/libssp" ; \
34655 for flag in $(EXTRA_TARGET_FLAGS); do \
34656 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34657 done; \
34658 (cd $(TARGET_SUBDIR)/libssp && \
34659 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34660 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34661 "RANLIB=$${RANLIB}" \
34662 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
34663 installcheck) \
34664 || exit 1
34665
34666@endif target-libssp
34667
34668.PHONY: maybe-mostlyclean-target-libssp mostlyclean-target-libssp
34669maybe-mostlyclean-target-libssp:
34670@if target-libssp
34671maybe-mostlyclean-target-libssp: mostlyclean-target-libssp
34672
34673mostlyclean-target-libssp:
f41d6665 34674 @: $(MAKE); $(unstage)
77008252
JJ
34675 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
34676 r=`${PWD_COMMAND}`; export r; \
34677 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34678 $(NORMAL_TARGET_EXPORTS) \
34679 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libssp" ; \
34680 for flag in $(EXTRA_TARGET_FLAGS); do \
34681 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34682 done; \
34683 (cd $(TARGET_SUBDIR)/libssp && \
34684 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34685 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34686 "RANLIB=$${RANLIB}" \
34687 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
34688 mostlyclean) \
34689 || exit 1
34690
34691@endif target-libssp
34692
34693.PHONY: maybe-clean-target-libssp clean-target-libssp
34694maybe-clean-target-libssp:
34695@if target-libssp
34696maybe-clean-target-libssp: clean-target-libssp
34697
34698clean-target-libssp:
f41d6665 34699 @: $(MAKE); $(unstage)
77008252
JJ
34700 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
34701 r=`${PWD_COMMAND}`; export r; \
34702 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34703 $(NORMAL_TARGET_EXPORTS) \
34704 echo "Doing clean in $(TARGET_SUBDIR)/libssp" ; \
34705 for flag in $(EXTRA_TARGET_FLAGS); do \
34706 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34707 done; \
34708 (cd $(TARGET_SUBDIR)/libssp && \
34709 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34710 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34711 "RANLIB=$${RANLIB}" \
34712 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
34713 clean) \
34714 || exit 1
34715
34716@endif target-libssp
34717
34718.PHONY: maybe-distclean-target-libssp distclean-target-libssp
34719maybe-distclean-target-libssp:
34720@if target-libssp
34721maybe-distclean-target-libssp: distclean-target-libssp
34722
34723distclean-target-libssp:
f41d6665 34724 @: $(MAKE); $(unstage)
77008252
JJ
34725 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
34726 r=`${PWD_COMMAND}`; export r; \
34727 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34728 $(NORMAL_TARGET_EXPORTS) \
34729 echo "Doing distclean in $(TARGET_SUBDIR)/libssp" ; \
34730 for flag in $(EXTRA_TARGET_FLAGS); do \
34731 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34732 done; \
34733 (cd $(TARGET_SUBDIR)/libssp && \
34734 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34735 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34736 "RANLIB=$${RANLIB}" \
34737 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
34738 distclean) \
34739 || exit 1
34740
34741@endif target-libssp
34742
34743.PHONY: maybe-maintainer-clean-target-libssp maintainer-clean-target-libssp
34744maybe-maintainer-clean-target-libssp:
34745@if target-libssp
34746maybe-maintainer-clean-target-libssp: maintainer-clean-target-libssp
34747
34748maintainer-clean-target-libssp:
f41d6665 34749 @: $(MAKE); $(unstage)
77008252
JJ
34750 @[ -f $(TARGET_SUBDIR)/libssp/Makefile ] || exit 0 ; \
34751 r=`${PWD_COMMAND}`; export r; \
34752 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34753 $(NORMAL_TARGET_EXPORTS) \
34754 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libssp" ; \
34755 for flag in $(EXTRA_TARGET_FLAGS); do \
34756 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34757 done; \
34758 (cd $(TARGET_SUBDIR)/libssp && \
34759 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34760 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34761 "RANLIB=$${RANLIB}" \
34762 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
34763 maintainer-clean) \
34764 || exit 1
34765
34766@endif target-libssp
34767
34768
34769
25b42232 34770
6de9cd9a 34771
25b42232
PB
34772.PHONY: configure-target-newlib maybe-configure-target-newlib
34773maybe-configure-target-newlib:
3ff3adad
PB
34774@if gcc-bootstrap
34775configure-target-newlib: stage_current
34776@endif gcc-bootstrap
25b42232
PB
34777@if target-newlib
34778maybe-configure-target-newlib: configure-target-newlib
cc11cc9b 34779configure-target-newlib:
f41d6665
DJ
34780 @: $(MAKE); $(unstage)
34781 @r=`${PWD_COMMAND}`; export r; \
34782 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34783 echo "Checking multilib configuration for newlib..."; \
34784 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/newlib ; \
34785 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/newlib/multilib.tmp 2> /dev/null ; \
34786 if test -r $(TARGET_SUBDIR)/newlib/multilib.out; then \
34787 if cmp -s $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; then \
34788 rm -f $(TARGET_SUBDIR)/newlib/multilib.tmp; \
34789 else \
34790 rm -f $(TARGET_SUBDIR)/newlib/Makefile; \
34791 mv $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; \
34792 fi; \
34793 else \
34794 mv $(TARGET_SUBDIR)/newlib/multilib.tmp $(TARGET_SUBDIR)/newlib/multilib.out; \
cc11cc9b
PB
34795 fi; \
34796 test ! -f $(TARGET_SUBDIR)/newlib/Makefile || exit 0; \
6de9cd9a 34797 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/newlib ; \
4fc4dd12 34798 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
34799 echo Configuring in $(TARGET_SUBDIR)/newlib; \
34800 cd "$(TARGET_SUBDIR)/newlib" || exit 1; \
34801 case $(srcdir) in \
215c351a
PB
34802 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
34803 *) topdir=`echo $(TARGET_SUBDIR)/newlib/ | \
34804 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6de9cd9a 34805 esac; \
215c351a
PB
34806 srcdiroption="--srcdir=$${topdir}/newlib"; \
34807 libsrcdir="$$s/newlib"; \
6de9cd9a
DN
34808 rm -f no-such-file || : ; \
34809 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 34810 $(TARGET_CONFIGARGS) $${srcdiroption} \
6de9cd9a 34811 || exit 1
60975492 34812@endif target-newlib
6de9cd9a 34813
25b42232
PB
34814
34815
ce406537
PB
34816
34817
6de9cd9a
DN
34818.PHONY: all-target-newlib maybe-all-target-newlib
34819maybe-all-target-newlib:
3ff3adad
PB
34820@if gcc-bootstrap
34821all-target-newlib: stage_current
34822@endif gcc-bootstrap
60975492 34823@if target-newlib
7c27e184 34824TARGET-target-newlib=all
60975492 34825maybe-all-target-newlib: all-target-newlib
6de9cd9a 34826all-target-newlib: configure-target-newlib
f41d6665 34827 @: $(MAKE); $(unstage)
6de9cd9a
DN
34828 @r=`${PWD_COMMAND}`; export r; \
34829 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34830 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a 34831 (cd $(TARGET_SUBDIR)/newlib && \
25b42232 34832 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-newlib))
60975492 34833@endif target-newlib
6de9cd9a 34834
25b42232
PB
34835
34836
ce406537
PB
34837
34838
6de9cd9a
DN
34839.PHONY: check-target-newlib maybe-check-target-newlib
34840maybe-check-target-newlib:
60975492
PB
34841@if target-newlib
34842maybe-check-target-newlib: check-target-newlib
6de9cd9a
DN
34843
34844check-target-newlib:
f41d6665 34845 @: $(MAKE); $(unstage)
295f4e42
NN
34846 @r=`${PWD_COMMAND}`; export r; \
34847 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34848 $(NORMAL_TARGET_EXPORTS) \
295f4e42 34849 (cd $(TARGET_SUBDIR)/newlib && \
a52a0a7f 34850 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4977bab6 34851
60975492 34852@endif target-newlib
4977bab6 34853
295f4e42
NN
34854.PHONY: install-target-newlib maybe-install-target-newlib
34855maybe-install-target-newlib:
60975492
PB
34856@if target-newlib
34857maybe-install-target-newlib: install-target-newlib
7e2dbcef 34858
295f4e42 34859install-target-newlib: installdirs
f41d6665 34860 @: $(MAKE); $(unstage)
295f4e42
NN
34861 @r=`${PWD_COMMAND}`; export r; \
34862 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34863 $(NORMAL_TARGET_EXPORTS) \
295f4e42 34864 (cd $(TARGET_SUBDIR)/newlib && \
a52a0a7f 34865 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4977bab6 34866
60975492 34867@endif target-newlib
4977bab6 34868
b5422ad7 34869# Other targets (info, dvi, pdf, etc.)
295f4e42
NN
34870
34871.PHONY: maybe-info-target-newlib info-target-newlib
34872maybe-info-target-newlib:
60975492
PB
34873@if target-newlib
34874maybe-info-target-newlib: info-target-newlib
295f4e42
NN
34875
34876info-target-newlib: \
05750653 34877 configure-target-newlib
f41d6665 34878 @: $(MAKE); $(unstage)
295f4e42 34879 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
8c90b13a
L
34880 r=`${PWD_COMMAND}`; export r; \
34881 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34882 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
34883 echo "Doing info in $(TARGET_SUBDIR)/newlib" ; \
34884 for flag in $(EXTRA_TARGET_FLAGS); do \
34885 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34886 done; \
34887 (cd $(TARGET_SUBDIR)/newlib && \
34888 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34889 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34890 "RANLIB=$${RANLIB}" \
34891 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 34892 info) \
4977bab6
ZW
34893 || exit 1
34894
60975492 34895@endif target-newlib
4977bab6 34896
295f4e42
NN
34897.PHONY: maybe-dvi-target-newlib dvi-target-newlib
34898maybe-dvi-target-newlib:
60975492
PB
34899@if target-newlib
34900maybe-dvi-target-newlib: dvi-target-newlib
4977bab6 34901
295f4e42 34902dvi-target-newlib: \
05750653 34903 configure-target-newlib
f41d6665 34904 @: $(MAKE); $(unstage)
295f4e42
NN
34905 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
34906 r=`${PWD_COMMAND}`; export r; \
8c90b13a 34907 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34908 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
34909 echo "Doing dvi in $(TARGET_SUBDIR)/newlib" ; \
34910 for flag in $(EXTRA_TARGET_FLAGS); do \
34911 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34912 done; \
34913 (cd $(TARGET_SUBDIR)/newlib && \
34914 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34915 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34916 "RANLIB=$${RANLIB}" \
34917 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 34918 dvi) \
295f4e42 34919 || exit 1
4977bab6 34920
60975492 34921@endif target-newlib
4977bab6 34922
b5422ad7
BM
34923.PHONY: maybe-pdf-target-newlib pdf-target-newlib
34924maybe-pdf-target-newlib:
34925@if target-newlib
34926maybe-pdf-target-newlib: pdf-target-newlib
34927
34928pdf-target-newlib: \
34929 configure-target-newlib
34930 @: $(MAKE); $(unstage)
34931 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
34932 r=`${PWD_COMMAND}`; export r; \
34933 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
34934 $(NORMAL_TARGET_EXPORTS) \
34935 echo "Doing pdf in $(TARGET_SUBDIR)/newlib" ; \
34936 for flag in $(EXTRA_TARGET_FLAGS); do \
34937 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34938 done; \
34939 (cd $(TARGET_SUBDIR)/newlib && \
34940 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34941 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34942 "RANLIB=$${RANLIB}" \
34943 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
34944 pdf) \
34945 || exit 1
34946
34947@endif target-newlib
34948
f87a2b2e
MS
34949.PHONY: maybe-html-target-newlib html-target-newlib
34950maybe-html-target-newlib:
34951@if target-newlib
34952maybe-html-target-newlib: html-target-newlib
34953
34954html-target-newlib: \
05750653 34955 configure-target-newlib
f41d6665 34956 @: $(MAKE); $(unstage)
f87a2b2e
MS
34957 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
34958 r=`${PWD_COMMAND}`; export r; \
34959 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
34960 $(NORMAL_TARGET_EXPORTS) \
34961 echo "Doing html in $(TARGET_SUBDIR)/newlib" ; \
34962 for flag in $(EXTRA_TARGET_FLAGS); do \
34963 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34964 done; \
34965 (cd $(TARGET_SUBDIR)/newlib && \
34966 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34967 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34968 "RANLIB=$${RANLIB}" \
34969 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
34970 html) \
34971 || exit 1
34972
34973@endif target-newlib
34974
295f4e42
NN
34975.PHONY: maybe-TAGS-target-newlib TAGS-target-newlib
34976maybe-TAGS-target-newlib:
60975492
PB
34977@if target-newlib
34978maybe-TAGS-target-newlib: TAGS-target-newlib
7e2dbcef 34979
295f4e42 34980TAGS-target-newlib: \
05750653 34981 configure-target-newlib
f41d6665 34982 @: $(MAKE); $(unstage)
295f4e42
NN
34983 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
34984 r=`${PWD_COMMAND}`; export r; \
8c90b13a 34985 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 34986 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
34987 echo "Doing TAGS in $(TARGET_SUBDIR)/newlib" ; \
34988 for flag in $(EXTRA_TARGET_FLAGS); do \
34989 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
34990 done; \
34991 (cd $(TARGET_SUBDIR)/newlib && \
34992 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
34993 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
34994 "RANLIB=$${RANLIB}" \
34995 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 34996 TAGS) \
295f4e42 34997 || exit 1
4977bab6 34998
60975492 34999@endif target-newlib
4977bab6 35000
295f4e42
NN
35001.PHONY: maybe-install-info-target-newlib install-info-target-newlib
35002maybe-install-info-target-newlib:
60975492
PB
35003@if target-newlib
35004maybe-install-info-target-newlib: install-info-target-newlib
295f4e42
NN
35005
35006install-info-target-newlib: \
35007 configure-target-newlib \
05750653 35008 info-target-newlib
f41d6665 35009 @: $(MAKE); $(unstage)
295f4e42 35010 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
8c90b13a
L
35011 r=`${PWD_COMMAND}`; export r; \
35012 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35013 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35014 echo "Doing install-info in $(TARGET_SUBDIR)/newlib" ; \
35015 for flag in $(EXTRA_TARGET_FLAGS); do \
35016 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35017 done; \
35018 (cd $(TARGET_SUBDIR)/newlib && \
35019 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35020 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35021 "RANLIB=$${RANLIB}" \
35022 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35023 install-info) \
4977bab6
ZW
35024 || exit 1
35025
60975492 35026@endif target-newlib
295f4e42 35027
65d6e994
CD
35028.PHONY: maybe-install-html-target-newlib install-html-target-newlib
35029maybe-install-html-target-newlib:
35030@if target-newlib
35031maybe-install-html-target-newlib: install-html-target-newlib
35032
35033install-html-target-newlib: \
35034 configure-target-newlib \
35035 html-target-newlib
35036 @: $(MAKE); $(unstage)
35037 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
35038 r=`${PWD_COMMAND}`; export r; \
35039 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35040 $(NORMAL_TARGET_EXPORTS) \
35041 echo "Doing install-html in $(TARGET_SUBDIR)/newlib" ; \
35042 for flag in $(EXTRA_TARGET_FLAGS); do \
35043 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35044 done; \
35045 (cd $(TARGET_SUBDIR)/newlib && \
35046 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35047 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35048 "RANLIB=$${RANLIB}" \
35049 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
35050 install-html) \
35051 || exit 1
35052
35053@endif target-newlib
35054
295f4e42
NN
35055.PHONY: maybe-installcheck-target-newlib installcheck-target-newlib
35056maybe-installcheck-target-newlib:
60975492
PB
35057@if target-newlib
35058maybe-installcheck-target-newlib: installcheck-target-newlib
295f4e42
NN
35059
35060installcheck-target-newlib: \
05750653 35061 configure-target-newlib
f41d6665 35062 @: $(MAKE); $(unstage)
295f4e42
NN
35063 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
35064 r=`${PWD_COMMAND}`; export r; \
8c90b13a 35065 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35066 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35067 echo "Doing installcheck in $(TARGET_SUBDIR)/newlib" ; \
35068 for flag in $(EXTRA_TARGET_FLAGS); do \
35069 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35070 done; \
35071 (cd $(TARGET_SUBDIR)/newlib && \
35072 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35073 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35074 "RANLIB=$${RANLIB}" \
35075 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35076 installcheck) \
295f4e42 35077 || exit 1
4977bab6 35078
60975492 35079@endif target-newlib
4977bab6 35080
295f4e42
NN
35081.PHONY: maybe-mostlyclean-target-newlib mostlyclean-target-newlib
35082maybe-mostlyclean-target-newlib:
60975492
PB
35083@if target-newlib
35084maybe-mostlyclean-target-newlib: mostlyclean-target-newlib
295f4e42 35085
05750653 35086mostlyclean-target-newlib:
f41d6665 35087 @: $(MAKE); $(unstage)
295f4e42
NN
35088 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
35089 r=`${PWD_COMMAND}`; export r; \
8c90b13a 35090 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35091 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35092 echo "Doing mostlyclean in $(TARGET_SUBDIR)/newlib" ; \
35093 for flag in $(EXTRA_TARGET_FLAGS); do \
35094 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35095 done; \
35096 (cd $(TARGET_SUBDIR)/newlib && \
35097 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35098 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35099 "RANLIB=$${RANLIB}" \
35100 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35101 mostlyclean) \
295f4e42 35102 || exit 1
4977bab6 35103
60975492 35104@endif target-newlib
4977bab6 35105
295f4e42
NN
35106.PHONY: maybe-clean-target-newlib clean-target-newlib
35107maybe-clean-target-newlib:
60975492
PB
35108@if target-newlib
35109maybe-clean-target-newlib: clean-target-newlib
7e2dbcef 35110
05750653 35111clean-target-newlib:
f41d6665 35112 @: $(MAKE); $(unstage)
295f4e42
NN
35113 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
35114 r=`${PWD_COMMAND}`; export r; \
8c90b13a 35115 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35116 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35117 echo "Doing clean in $(TARGET_SUBDIR)/newlib" ; \
35118 for flag in $(EXTRA_TARGET_FLAGS); do \
35119 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35120 done; \
35121 (cd $(TARGET_SUBDIR)/newlib && \
35122 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35123 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35124 "RANLIB=$${RANLIB}" \
35125 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35126 clean) \
295f4e42 35127 || exit 1
4977bab6 35128
60975492 35129@endif target-newlib
4977bab6 35130
295f4e42
NN
35131.PHONY: maybe-distclean-target-newlib distclean-target-newlib
35132maybe-distclean-target-newlib:
60975492
PB
35133@if target-newlib
35134maybe-distclean-target-newlib: distclean-target-newlib
295f4e42 35135
05750653 35136distclean-target-newlib:
f41d6665 35137 @: $(MAKE); $(unstage)
295f4e42 35138 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
8c90b13a
L
35139 r=`${PWD_COMMAND}`; export r; \
35140 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35141 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35142 echo "Doing distclean in $(TARGET_SUBDIR)/newlib" ; \
35143 for flag in $(EXTRA_TARGET_FLAGS); do \
35144 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35145 done; \
35146 (cd $(TARGET_SUBDIR)/newlib && \
35147 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35148 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35149 "RANLIB=$${RANLIB}" \
35150 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35151 distclean) \
4977bab6
ZW
35152 || exit 1
35153
60975492 35154@endif target-newlib
4977bab6 35155
295f4e42
NN
35156.PHONY: maybe-maintainer-clean-target-newlib maintainer-clean-target-newlib
35157maybe-maintainer-clean-target-newlib:
60975492
PB
35158@if target-newlib
35159maybe-maintainer-clean-target-newlib: maintainer-clean-target-newlib
4977bab6 35160
05750653 35161maintainer-clean-target-newlib:
f41d6665 35162 @: $(MAKE); $(unstage)
295f4e42
NN
35163 @[ -f $(TARGET_SUBDIR)/newlib/Makefile ] || exit 0 ; \
35164 r=`${PWD_COMMAND}`; export r; \
8c90b13a 35165 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35166 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35167 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/newlib" ; \
35168 for flag in $(EXTRA_TARGET_FLAGS); do \
35169 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35170 done; \
35171 (cd $(TARGET_SUBDIR)/newlib && \
35172 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35173 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35174 "RANLIB=$${RANLIB}" \
35175 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35176 maintainer-clean) \
295f4e42 35177 || exit 1
4977bab6 35178
60975492 35179@endif target-newlib
4977bab6 35180
7e2dbcef 35181
6de9cd9a 35182
25b42232 35183
6de9cd9a 35184
25b42232
PB
35185.PHONY: configure-target-libgfortran maybe-configure-target-libgfortran
35186maybe-configure-target-libgfortran:
3ff3adad
PB
35187@if gcc-bootstrap
35188configure-target-libgfortran: stage_current
35189@endif gcc-bootstrap
25b42232
PB
35190@if target-libgfortran
35191maybe-configure-target-libgfortran: configure-target-libgfortran
cc11cc9b 35192configure-target-libgfortran:
f41d6665
DJ
35193 @: $(MAKE); $(unstage)
35194 @r=`${PWD_COMMAND}`; export r; \
35195 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35196 echo "Checking multilib configuration for libgfortran..."; \
35197 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgfortran ; \
35198 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgfortran/multilib.tmp 2> /dev/null ; \
35199 if test -r $(TARGET_SUBDIR)/libgfortran/multilib.out; then \
35200 if cmp -s $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; then \
35201 rm -f $(TARGET_SUBDIR)/libgfortran/multilib.tmp; \
35202 else \
35203 rm -f $(TARGET_SUBDIR)/libgfortran/Makefile; \
35204 mv $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; \
35205 fi; \
35206 else \
35207 mv $(TARGET_SUBDIR)/libgfortran/multilib.tmp $(TARGET_SUBDIR)/libgfortran/multilib.out; \
cc11cc9b
PB
35208 fi; \
35209 test ! -f $(TARGET_SUBDIR)/libgfortran/Makefile || exit 0; \
6de9cd9a 35210 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgfortran ; \
4fc4dd12 35211 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
35212 echo Configuring in $(TARGET_SUBDIR)/libgfortran; \
35213 cd "$(TARGET_SUBDIR)/libgfortran" || exit 1; \
35214 case $(srcdir) in \
215c351a
PB
35215 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35216 *) topdir=`echo $(TARGET_SUBDIR)/libgfortran/ | \
35217 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
6de9cd9a 35218 esac; \
215c351a
PB
35219 srcdiroption="--srcdir=$${topdir}/libgfortran"; \
35220 libsrcdir="$$s/libgfortran"; \
6de9cd9a
DN
35221 rm -f no-such-file || : ; \
35222 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 35223 $(TARGET_CONFIGARGS) $${srcdiroption} \
6de9cd9a 35224 || exit 1
60975492 35225@endif target-libgfortran
6de9cd9a 35226
25b42232
PB
35227
35228
ce406537
PB
35229
35230
6de9cd9a
DN
35231.PHONY: all-target-libgfortran maybe-all-target-libgfortran
35232maybe-all-target-libgfortran:
3ff3adad
PB
35233@if gcc-bootstrap
35234all-target-libgfortran: stage_current
35235@endif gcc-bootstrap
60975492 35236@if target-libgfortran
7c27e184 35237TARGET-target-libgfortran=all
60975492 35238maybe-all-target-libgfortran: all-target-libgfortran
6de9cd9a 35239all-target-libgfortran: configure-target-libgfortran
f41d6665 35240 @: $(MAKE); $(unstage)
6de9cd9a
DN
35241 @r=`${PWD_COMMAND}`; export r; \
35242 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35243 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a 35244 (cd $(TARGET_SUBDIR)/libgfortran && \
25b42232 35245 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libgfortran))
60975492 35246@endif target-libgfortran
6de9cd9a 35247
25b42232
PB
35248
35249
ce406537
PB
35250
35251
6de9cd9a
DN
35252.PHONY: check-target-libgfortran maybe-check-target-libgfortran
35253maybe-check-target-libgfortran:
60975492
PB
35254@if target-libgfortran
35255maybe-check-target-libgfortran: check-target-libgfortran
6de9cd9a
DN
35256
35257check-target-libgfortran:
f41d6665 35258 @: $(MAKE); $(unstage)
6de9cd9a
DN
35259 @r=`${PWD_COMMAND}`; export r; \
35260 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35261 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a 35262 (cd $(TARGET_SUBDIR)/libgfortran && \
a52a0a7f 35263 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
6de9cd9a 35264
60975492 35265@endif target-libgfortran
6de9cd9a
DN
35266
35267.PHONY: install-target-libgfortran maybe-install-target-libgfortran
35268maybe-install-target-libgfortran:
60975492
PB
35269@if target-libgfortran
35270maybe-install-target-libgfortran: install-target-libgfortran
6de9cd9a
DN
35271
35272install-target-libgfortran: installdirs
f41d6665 35273 @: $(MAKE); $(unstage)
6de9cd9a
DN
35274 @r=`${PWD_COMMAND}`; export r; \
35275 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35276 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a 35277 (cd $(TARGET_SUBDIR)/libgfortran && \
a52a0a7f 35278 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6de9cd9a 35279
60975492 35280@endif target-libgfortran
6de9cd9a 35281
b5422ad7 35282# Other targets (info, dvi, pdf, etc.)
6de9cd9a
DN
35283
35284.PHONY: maybe-info-target-libgfortran info-target-libgfortran
35285maybe-info-target-libgfortran:
60975492
PB
35286@if target-libgfortran
35287maybe-info-target-libgfortran: info-target-libgfortran
6de9cd9a
DN
35288
35289info-target-libgfortran: \
05750653 35290 configure-target-libgfortran
f41d6665 35291 @: $(MAKE); $(unstage)
6de9cd9a
DN
35292 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
35293 r=`${PWD_COMMAND}`; export r; \
35294 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35295 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
35296 echo "Doing info in $(TARGET_SUBDIR)/libgfortran" ; \
35297 for flag in $(EXTRA_TARGET_FLAGS); do \
35298 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35299 done; \
35300 (cd $(TARGET_SUBDIR)/libgfortran && \
35301 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35302 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35303 "RANLIB=$${RANLIB}" \
35304 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35305 info) \
6de9cd9a
DN
35306 || exit 1
35307
60975492 35308@endif target-libgfortran
6de9cd9a
DN
35309
35310.PHONY: maybe-dvi-target-libgfortran dvi-target-libgfortran
35311maybe-dvi-target-libgfortran:
60975492
PB
35312@if target-libgfortran
35313maybe-dvi-target-libgfortran: dvi-target-libgfortran
6de9cd9a
DN
35314
35315dvi-target-libgfortran: \
05750653 35316 configure-target-libgfortran
f41d6665 35317 @: $(MAKE); $(unstage)
6de9cd9a
DN
35318 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
35319 r=`${PWD_COMMAND}`; export r; \
35320 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35321 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
35322 echo "Doing dvi in $(TARGET_SUBDIR)/libgfortran" ; \
35323 for flag in $(EXTRA_TARGET_FLAGS); do \
35324 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35325 done; \
35326 (cd $(TARGET_SUBDIR)/libgfortran && \
35327 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35328 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35329 "RANLIB=$${RANLIB}" \
35330 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35331 dvi) \
6de9cd9a
DN
35332 || exit 1
35333
60975492 35334@endif target-libgfortran
6de9cd9a 35335
b5422ad7
BM
35336.PHONY: maybe-pdf-target-libgfortran pdf-target-libgfortran
35337maybe-pdf-target-libgfortran:
35338@if target-libgfortran
35339maybe-pdf-target-libgfortran: pdf-target-libgfortran
35340
35341pdf-target-libgfortran: \
35342 configure-target-libgfortran
35343 @: $(MAKE); $(unstage)
35344 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
35345 r=`${PWD_COMMAND}`; export r; \
35346 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35347 $(NORMAL_TARGET_EXPORTS) \
35348 echo "Doing pdf in $(TARGET_SUBDIR)/libgfortran" ; \
35349 for flag in $(EXTRA_TARGET_FLAGS); do \
35350 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35351 done; \
35352 (cd $(TARGET_SUBDIR)/libgfortran && \
35353 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35354 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35355 "RANLIB=$${RANLIB}" \
35356 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
35357 pdf) \
35358 || exit 1
35359
35360@endif target-libgfortran
35361
f87a2b2e
MS
35362.PHONY: maybe-html-target-libgfortran html-target-libgfortran
35363maybe-html-target-libgfortran:
35364@if target-libgfortran
35365maybe-html-target-libgfortran: html-target-libgfortran
35366
35367html-target-libgfortran: \
05750653 35368 configure-target-libgfortran
f41d6665 35369 @: $(MAKE); $(unstage)
f87a2b2e
MS
35370 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
35371 r=`${PWD_COMMAND}`; export r; \
35372 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
35373 $(NORMAL_TARGET_EXPORTS) \
35374 echo "Doing html in $(TARGET_SUBDIR)/libgfortran" ; \
35375 for flag in $(EXTRA_TARGET_FLAGS); do \
35376 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35377 done; \
35378 (cd $(TARGET_SUBDIR)/libgfortran && \
35379 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35380 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35381 "RANLIB=$${RANLIB}" \
35382 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
35383 html) \
35384 || exit 1
35385
35386@endif target-libgfortran
35387
6de9cd9a
DN
35388.PHONY: maybe-TAGS-target-libgfortran TAGS-target-libgfortran
35389maybe-TAGS-target-libgfortran:
60975492
PB
35390@if target-libgfortran
35391maybe-TAGS-target-libgfortran: TAGS-target-libgfortran
6de9cd9a
DN
35392
35393TAGS-target-libgfortran: \
05750653 35394 configure-target-libgfortran
f41d6665 35395 @: $(MAKE); $(unstage)
6de9cd9a
DN
35396 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
35397 r=`${PWD_COMMAND}`; export r; \
35398 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35399 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
35400 echo "Doing TAGS in $(TARGET_SUBDIR)/libgfortran" ; \
35401 for flag in $(EXTRA_TARGET_FLAGS); do \
35402 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35403 done; \
35404 (cd $(TARGET_SUBDIR)/libgfortran && \
35405 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35406 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35407 "RANLIB=$${RANLIB}" \
35408 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35409 TAGS) \
6de9cd9a
DN
35410 || exit 1
35411
60975492 35412@endif target-libgfortran
6de9cd9a
DN
35413
35414.PHONY: maybe-install-info-target-libgfortran install-info-target-libgfortran
35415maybe-install-info-target-libgfortran:
60975492
PB
35416@if target-libgfortran
35417maybe-install-info-target-libgfortran: install-info-target-libgfortran
6de9cd9a
DN
35418
35419install-info-target-libgfortran: \
35420 configure-target-libgfortran \
05750653 35421 info-target-libgfortran
f41d6665 35422 @: $(MAKE); $(unstage)
6de9cd9a
DN
35423 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
35424 r=`${PWD_COMMAND}`; export r; \
35425 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35426 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
35427 echo "Doing install-info in $(TARGET_SUBDIR)/libgfortran" ; \
35428 for flag in $(EXTRA_TARGET_FLAGS); do \
35429 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35430 done; \
35431 (cd $(TARGET_SUBDIR)/libgfortran && \
35432 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35433 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35434 "RANLIB=$${RANLIB}" \
35435 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35436 install-info) \
6de9cd9a
DN
35437 || exit 1
35438
60975492 35439@endif target-libgfortran
6de9cd9a 35440
65d6e994
CD
35441.PHONY: maybe-install-html-target-libgfortran install-html-target-libgfortran
35442maybe-install-html-target-libgfortran:
35443@if target-libgfortran
35444maybe-install-html-target-libgfortran: install-html-target-libgfortran
35445
35446install-html-target-libgfortran: \
35447 configure-target-libgfortran \
35448 html-target-libgfortran
35449 @: $(MAKE); $(unstage)
35450 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
35451 r=`${PWD_COMMAND}`; export r; \
35452 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35453 $(NORMAL_TARGET_EXPORTS) \
35454 echo "Doing install-html in $(TARGET_SUBDIR)/libgfortran" ; \
35455 for flag in $(EXTRA_TARGET_FLAGS); do \
35456 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35457 done; \
35458 (cd $(TARGET_SUBDIR)/libgfortran && \
35459 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35460 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35461 "RANLIB=$${RANLIB}" \
35462 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
35463 install-html) \
35464 || exit 1
35465
35466@endif target-libgfortran
35467
6de9cd9a
DN
35468.PHONY: maybe-installcheck-target-libgfortran installcheck-target-libgfortran
35469maybe-installcheck-target-libgfortran:
60975492
PB
35470@if target-libgfortran
35471maybe-installcheck-target-libgfortran: installcheck-target-libgfortran
6de9cd9a
DN
35472
35473installcheck-target-libgfortran: \
05750653 35474 configure-target-libgfortran
f41d6665 35475 @: $(MAKE); $(unstage)
6de9cd9a
DN
35476 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
35477 r=`${PWD_COMMAND}`; export r; \
35478 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35479 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
35480 echo "Doing installcheck in $(TARGET_SUBDIR)/libgfortran" ; \
35481 for flag in $(EXTRA_TARGET_FLAGS); do \
35482 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35483 done; \
35484 (cd $(TARGET_SUBDIR)/libgfortran && \
35485 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35486 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35487 "RANLIB=$${RANLIB}" \
35488 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35489 installcheck) \
6de9cd9a
DN
35490 || exit 1
35491
60975492 35492@endif target-libgfortran
6de9cd9a
DN
35493
35494.PHONY: maybe-mostlyclean-target-libgfortran mostlyclean-target-libgfortran
35495maybe-mostlyclean-target-libgfortran:
60975492
PB
35496@if target-libgfortran
35497maybe-mostlyclean-target-libgfortran: mostlyclean-target-libgfortran
6de9cd9a 35498
05750653 35499mostlyclean-target-libgfortran:
f41d6665 35500 @: $(MAKE); $(unstage)
6de9cd9a
DN
35501 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
35502 r=`${PWD_COMMAND}`; export r; \
35503 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35504 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
35505 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgfortran" ; \
35506 for flag in $(EXTRA_TARGET_FLAGS); do \
35507 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35508 done; \
35509 (cd $(TARGET_SUBDIR)/libgfortran && \
35510 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35511 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35512 "RANLIB=$${RANLIB}" \
35513 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35514 mostlyclean) \
6de9cd9a
DN
35515 || exit 1
35516
60975492 35517@endif target-libgfortran
6de9cd9a
DN
35518
35519.PHONY: maybe-clean-target-libgfortran clean-target-libgfortran
35520maybe-clean-target-libgfortran:
60975492
PB
35521@if target-libgfortran
35522maybe-clean-target-libgfortran: clean-target-libgfortran
6de9cd9a 35523
05750653 35524clean-target-libgfortran:
f41d6665 35525 @: $(MAKE); $(unstage)
6de9cd9a
DN
35526 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
35527 r=`${PWD_COMMAND}`; export r; \
35528 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35529 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
35530 echo "Doing clean in $(TARGET_SUBDIR)/libgfortran" ; \
35531 for flag in $(EXTRA_TARGET_FLAGS); do \
35532 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35533 done; \
35534 (cd $(TARGET_SUBDIR)/libgfortran && \
35535 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35536 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35537 "RANLIB=$${RANLIB}" \
35538 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35539 clean) \
6de9cd9a
DN
35540 || exit 1
35541
60975492 35542@endif target-libgfortran
6de9cd9a
DN
35543
35544.PHONY: maybe-distclean-target-libgfortran distclean-target-libgfortran
35545maybe-distclean-target-libgfortran:
60975492
PB
35546@if target-libgfortran
35547maybe-distclean-target-libgfortran: distclean-target-libgfortran
6de9cd9a 35548
05750653 35549distclean-target-libgfortran:
f41d6665 35550 @: $(MAKE); $(unstage)
6de9cd9a
DN
35551 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
35552 r=`${PWD_COMMAND}`; export r; \
35553 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35554 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
35555 echo "Doing distclean in $(TARGET_SUBDIR)/libgfortran" ; \
35556 for flag in $(EXTRA_TARGET_FLAGS); do \
35557 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35558 done; \
35559 (cd $(TARGET_SUBDIR)/libgfortran && \
35560 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35561 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35562 "RANLIB=$${RANLIB}" \
35563 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35564 distclean) \
6de9cd9a
DN
35565 || exit 1
35566
60975492 35567@endif target-libgfortran
6de9cd9a
DN
35568
35569.PHONY: maybe-maintainer-clean-target-libgfortran maintainer-clean-target-libgfortran
35570maybe-maintainer-clean-target-libgfortran:
60975492
PB
35571@if target-libgfortran
35572maybe-maintainer-clean-target-libgfortran: maintainer-clean-target-libgfortran
6de9cd9a 35573
05750653 35574maintainer-clean-target-libgfortran:
f41d6665 35575 @: $(MAKE); $(unstage)
6de9cd9a
DN
35576 @[ -f $(TARGET_SUBDIR)/libgfortran/Makefile ] || exit 0 ; \
35577 r=`${PWD_COMMAND}`; export r; \
35578 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35579 $(NORMAL_TARGET_EXPORTS) \
6de9cd9a
DN
35580 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgfortran" ; \
35581 for flag in $(EXTRA_TARGET_FLAGS); do \
35582 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35583 done; \
35584 (cd $(TARGET_SUBDIR)/libgfortran && \
35585 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35586 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35587 "RANLIB=$${RANLIB}" \
35588 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35589 maintainer-clean) \
6de9cd9a
DN
35590 || exit 1
35591
60975492 35592@endif target-libgfortran
6de9cd9a
DN
35593
35594
4977bab6 35595
25b42232 35596
4977bab6 35597
25b42232
PB
35598.PHONY: configure-target-libobjc maybe-configure-target-libobjc
35599maybe-configure-target-libobjc:
3ff3adad
PB
35600@if gcc-bootstrap
35601configure-target-libobjc: stage_current
35602@endif gcc-bootstrap
25b42232
PB
35603@if target-libobjc
35604maybe-configure-target-libobjc: configure-target-libobjc
cc11cc9b 35605configure-target-libobjc:
f41d6665
DJ
35606 @: $(MAKE); $(unstage)
35607 @r=`${PWD_COMMAND}`; export r; \
35608 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35609 echo "Checking multilib configuration for libobjc..."; \
35610 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libobjc ; \
35611 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libobjc/multilib.tmp 2> /dev/null ; \
35612 if test -r $(TARGET_SUBDIR)/libobjc/multilib.out; then \
35613 if cmp -s $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; then \
35614 rm -f $(TARGET_SUBDIR)/libobjc/multilib.tmp; \
35615 else \
35616 rm -f $(TARGET_SUBDIR)/libobjc/Makefile; \
35617 mv $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; \
35618 fi; \
35619 else \
35620 mv $(TARGET_SUBDIR)/libobjc/multilib.tmp $(TARGET_SUBDIR)/libobjc/multilib.out; \
cc11cc9b
PB
35621 fi; \
35622 test ! -f $(TARGET_SUBDIR)/libobjc/Makefile || exit 0; \
295f4e42 35623 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libobjc ; \
4fc4dd12 35624 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35625 echo Configuring in $(TARGET_SUBDIR)/libobjc; \
35626 cd "$(TARGET_SUBDIR)/libobjc" || exit 1; \
4977bab6 35627 case $(srcdir) in \
215c351a
PB
35628 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
35629 *) topdir=`echo $(TARGET_SUBDIR)/libobjc/ | \
35630 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 35631 esac; \
215c351a
PB
35632 srcdiroption="--srcdir=$${topdir}/libobjc"; \
35633 libsrcdir="$$s/libobjc"; \
295f4e42
NN
35634 rm -f no-such-file || : ; \
35635 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 35636 $(TARGET_CONFIGARGS) $${srcdiroption} \
4977bab6 35637 || exit 1
60975492 35638@endif target-libobjc
4977bab6 35639
25b42232
PB
35640
35641
ce406537
PB
35642
35643
295f4e42
NN
35644.PHONY: all-target-libobjc maybe-all-target-libobjc
35645maybe-all-target-libobjc:
3ff3adad
PB
35646@if gcc-bootstrap
35647all-target-libobjc: stage_current
35648@endif gcc-bootstrap
60975492 35649@if target-libobjc
7c27e184 35650TARGET-target-libobjc=all
60975492 35651maybe-all-target-libobjc: all-target-libobjc
295f4e42 35652all-target-libobjc: configure-target-libobjc
f41d6665 35653 @: $(MAKE); $(unstage)
8c90b13a
L
35654 @r=`${PWD_COMMAND}`; export r; \
35655 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35656 $(NORMAL_TARGET_EXPORTS) \
295f4e42 35657 (cd $(TARGET_SUBDIR)/libobjc && \
25b42232 35658 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libobjc))
60975492 35659@endif target-libobjc
4977bab6 35660
25b42232
PB
35661
35662
ce406537
PB
35663
35664
295f4e42
NN
35665.PHONY: check-target-libobjc maybe-check-target-libobjc
35666maybe-check-target-libobjc:
60975492
PB
35667@if target-libobjc
35668maybe-check-target-libobjc: check-target-libobjc
4977bab6 35669
295f4e42 35670check-target-libobjc:
f41d6665 35671 @: $(MAKE); $(unstage)
8c90b13a
L
35672 @r=`${PWD_COMMAND}`; export r; \
35673 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35674 $(NORMAL_TARGET_EXPORTS) \
295f4e42 35675 (cd $(TARGET_SUBDIR)/libobjc && \
a52a0a7f 35676 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4977bab6 35677
60975492 35678@endif target-libobjc
4977bab6 35679
295f4e42
NN
35680.PHONY: install-target-libobjc maybe-install-target-libobjc
35681maybe-install-target-libobjc:
60975492
PB
35682@if target-libobjc
35683maybe-install-target-libobjc: install-target-libobjc
4977bab6 35684
295f4e42 35685install-target-libobjc: installdirs
f41d6665 35686 @: $(MAKE); $(unstage)
8c90b13a
L
35687 @r=`${PWD_COMMAND}`; export r; \
35688 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35689 $(NORMAL_TARGET_EXPORTS) \
295f4e42 35690 (cd $(TARGET_SUBDIR)/libobjc && \
a52a0a7f 35691 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4977bab6 35692
60975492 35693@endif target-libobjc
4977bab6 35694
b5422ad7 35695# Other targets (info, dvi, pdf, etc.)
295f4e42
NN
35696
35697.PHONY: maybe-info-target-libobjc info-target-libobjc
35698maybe-info-target-libobjc:
60975492
PB
35699@if target-libobjc
35700maybe-info-target-libobjc: info-target-libobjc
295f4e42
NN
35701
35702info-target-libobjc: \
05750653 35703 configure-target-libobjc
f41d6665 35704 @: $(MAKE); $(unstage)
295f4e42
NN
35705 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
35706 r=`${PWD_COMMAND}`; export r; \
8c90b13a 35707 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35708 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35709 echo "Doing info in $(TARGET_SUBDIR)/libobjc" ; \
35710 for flag in $(EXTRA_TARGET_FLAGS); do \
35711 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35712 done; \
35713 (cd $(TARGET_SUBDIR)/libobjc && \
35714 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35715 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35716 "RANLIB=$${RANLIB}" \
35717 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35718 info) \
295f4e42 35719 || exit 1
4977bab6 35720
60975492 35721@endif target-libobjc
4977bab6 35722
295f4e42
NN
35723.PHONY: maybe-dvi-target-libobjc dvi-target-libobjc
35724maybe-dvi-target-libobjc:
60975492
PB
35725@if target-libobjc
35726maybe-dvi-target-libobjc: dvi-target-libobjc
7e2dbcef 35727
295f4e42 35728dvi-target-libobjc: \
05750653 35729 configure-target-libobjc
f41d6665 35730 @: $(MAKE); $(unstage)
295f4e42
NN
35731 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
35732 r=`${PWD_COMMAND}`; export r; \
8c90b13a 35733 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35734 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35735 echo "Doing dvi in $(TARGET_SUBDIR)/libobjc" ; \
35736 for flag in $(EXTRA_TARGET_FLAGS); do \
35737 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35738 done; \
35739 (cd $(TARGET_SUBDIR)/libobjc && \
35740 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35741 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35742 "RANLIB=$${RANLIB}" \
35743 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35744 dvi) \
295f4e42 35745 || exit 1
4977bab6 35746
60975492 35747@endif target-libobjc
4977bab6 35748
b5422ad7
BM
35749.PHONY: maybe-pdf-target-libobjc pdf-target-libobjc
35750maybe-pdf-target-libobjc:
35751@if target-libobjc
35752maybe-pdf-target-libobjc: pdf-target-libobjc
35753
35754pdf-target-libobjc: \
35755 configure-target-libobjc
35756 @: $(MAKE); $(unstage)
35757 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
35758 r=`${PWD_COMMAND}`; export r; \
35759 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35760 $(NORMAL_TARGET_EXPORTS) \
35761 echo "Doing pdf in $(TARGET_SUBDIR)/libobjc" ; \
35762 for flag in $(EXTRA_TARGET_FLAGS); do \
35763 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35764 done; \
35765 (cd $(TARGET_SUBDIR)/libobjc && \
35766 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35767 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35768 "RANLIB=$${RANLIB}" \
35769 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
35770 pdf) \
35771 || exit 1
35772
35773@endif target-libobjc
35774
f87a2b2e
MS
35775.PHONY: maybe-html-target-libobjc html-target-libobjc
35776maybe-html-target-libobjc:
35777@if target-libobjc
35778maybe-html-target-libobjc: html-target-libobjc
35779
35780html-target-libobjc: \
05750653 35781 configure-target-libobjc
f41d6665 35782 @: $(MAKE); $(unstage)
f87a2b2e
MS
35783 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
35784 r=`${PWD_COMMAND}`; export r; \
35785 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
35786 $(NORMAL_TARGET_EXPORTS) \
35787 echo "Doing html in $(TARGET_SUBDIR)/libobjc" ; \
35788 for flag in $(EXTRA_TARGET_FLAGS); do \
35789 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35790 done; \
35791 (cd $(TARGET_SUBDIR)/libobjc && \
35792 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35793 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35794 "RANLIB=$${RANLIB}" \
35795 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
35796 html) \
35797 || exit 1
35798
35799@endif target-libobjc
35800
295f4e42
NN
35801.PHONY: maybe-TAGS-target-libobjc TAGS-target-libobjc
35802maybe-TAGS-target-libobjc:
60975492
PB
35803@if target-libobjc
35804maybe-TAGS-target-libobjc: TAGS-target-libobjc
295f4e42
NN
35805
35806TAGS-target-libobjc: \
05750653 35807 configure-target-libobjc
f41d6665 35808 @: $(MAKE); $(unstage)
295f4e42 35809 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
8c90b13a
L
35810 r=`${PWD_COMMAND}`; export r; \
35811 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35812 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35813 echo "Doing TAGS in $(TARGET_SUBDIR)/libobjc" ; \
35814 for flag in $(EXTRA_TARGET_FLAGS); do \
35815 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35816 done; \
35817 (cd $(TARGET_SUBDIR)/libobjc && \
35818 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35819 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35820 "RANLIB=$${RANLIB}" \
35821 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35822 TAGS) \
4977bab6
ZW
35823 || exit 1
35824
60975492 35825@endif target-libobjc
295f4e42
NN
35826
35827.PHONY: maybe-install-info-target-libobjc install-info-target-libobjc
35828maybe-install-info-target-libobjc:
60975492
PB
35829@if target-libobjc
35830maybe-install-info-target-libobjc: install-info-target-libobjc
295f4e42
NN
35831
35832install-info-target-libobjc: \
35833 configure-target-libobjc \
05750653 35834 info-target-libobjc
f41d6665 35835 @: $(MAKE); $(unstage)
295f4e42
NN
35836 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
35837 r=`${PWD_COMMAND}`; export r; \
8c90b13a 35838 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35839 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35840 echo "Doing install-info in $(TARGET_SUBDIR)/libobjc" ; \
35841 for flag in $(EXTRA_TARGET_FLAGS); do \
35842 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35843 done; \
35844 (cd $(TARGET_SUBDIR)/libobjc && \
35845 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35846 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35847 "RANLIB=$${RANLIB}" \
35848 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35849 install-info) \
295f4e42 35850 || exit 1
4977bab6 35851
60975492 35852@endif target-libobjc
4977bab6 35853
65d6e994
CD
35854.PHONY: maybe-install-html-target-libobjc install-html-target-libobjc
35855maybe-install-html-target-libobjc:
35856@if target-libobjc
35857maybe-install-html-target-libobjc: install-html-target-libobjc
35858
35859install-html-target-libobjc: \
35860 configure-target-libobjc \
35861 html-target-libobjc
35862 @: $(MAKE); $(unstage)
35863 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
35864 r=`${PWD_COMMAND}`; export r; \
35865 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
35866 $(NORMAL_TARGET_EXPORTS) \
35867 echo "Doing install-html in $(TARGET_SUBDIR)/libobjc" ; \
35868 for flag in $(EXTRA_TARGET_FLAGS); do \
35869 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35870 done; \
35871 (cd $(TARGET_SUBDIR)/libobjc && \
35872 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35873 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35874 "RANLIB=$${RANLIB}" \
35875 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
35876 install-html) \
35877 || exit 1
35878
35879@endif target-libobjc
35880
295f4e42
NN
35881.PHONY: maybe-installcheck-target-libobjc installcheck-target-libobjc
35882maybe-installcheck-target-libobjc:
60975492
PB
35883@if target-libobjc
35884maybe-installcheck-target-libobjc: installcheck-target-libobjc
295f4e42
NN
35885
35886installcheck-target-libobjc: \
05750653 35887 configure-target-libobjc
f41d6665 35888 @: $(MAKE); $(unstage)
295f4e42
NN
35889 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
35890 r=`${PWD_COMMAND}`; export r; \
8c90b13a 35891 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35892 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35893 echo "Doing installcheck in $(TARGET_SUBDIR)/libobjc" ; \
35894 for flag in $(EXTRA_TARGET_FLAGS); do \
35895 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35896 done; \
35897 (cd $(TARGET_SUBDIR)/libobjc && \
35898 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35899 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35900 "RANLIB=$${RANLIB}" \
35901 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35902 installcheck) \
295f4e42 35903 || exit 1
4977bab6 35904
60975492 35905@endif target-libobjc
4977bab6 35906
295f4e42
NN
35907.PHONY: maybe-mostlyclean-target-libobjc mostlyclean-target-libobjc
35908maybe-mostlyclean-target-libobjc:
60975492
PB
35909@if target-libobjc
35910maybe-mostlyclean-target-libobjc: mostlyclean-target-libobjc
7e2dbcef 35911
05750653 35912mostlyclean-target-libobjc:
f41d6665 35913 @: $(MAKE); $(unstage)
295f4e42
NN
35914 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
35915 r=`${PWD_COMMAND}`; export r; \
8c90b13a 35916 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35917 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35918 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libobjc" ; \
35919 for flag in $(EXTRA_TARGET_FLAGS); do \
35920 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35921 done; \
35922 (cd $(TARGET_SUBDIR)/libobjc && \
35923 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35924 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35925 "RANLIB=$${RANLIB}" \
35926 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35927 mostlyclean) \
295f4e42 35928 || exit 1
4977bab6 35929
60975492 35930@endif target-libobjc
4977bab6 35931
295f4e42
NN
35932.PHONY: maybe-clean-target-libobjc clean-target-libobjc
35933maybe-clean-target-libobjc:
60975492
PB
35934@if target-libobjc
35935maybe-clean-target-libobjc: clean-target-libobjc
295f4e42 35936
05750653 35937clean-target-libobjc:
f41d6665 35938 @: $(MAKE); $(unstage)
295f4e42 35939 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
8c90b13a
L
35940 r=`${PWD_COMMAND}`; export r; \
35941 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35942 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35943 echo "Doing clean in $(TARGET_SUBDIR)/libobjc" ; \
35944 for flag in $(EXTRA_TARGET_FLAGS); do \
35945 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35946 done; \
35947 (cd $(TARGET_SUBDIR)/libobjc && \
35948 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35949 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35950 "RANLIB=$${RANLIB}" \
35951 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35952 clean) \
4977bab6
ZW
35953 || exit 1
35954
60975492 35955@endif target-libobjc
4977bab6 35956
295f4e42
NN
35957.PHONY: maybe-distclean-target-libobjc distclean-target-libobjc
35958maybe-distclean-target-libobjc:
60975492
PB
35959@if target-libobjc
35960maybe-distclean-target-libobjc: distclean-target-libobjc
4977bab6 35961
05750653 35962distclean-target-libobjc:
f41d6665 35963 @: $(MAKE); $(unstage)
295f4e42
NN
35964 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
35965 r=`${PWD_COMMAND}`; export r; \
8c90b13a 35966 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35967 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35968 echo "Doing distclean in $(TARGET_SUBDIR)/libobjc" ; \
35969 for flag in $(EXTRA_TARGET_FLAGS); do \
35970 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35971 done; \
35972 (cd $(TARGET_SUBDIR)/libobjc && \
35973 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35974 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
35975 "RANLIB=$${RANLIB}" \
35976 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 35977 distclean) \
295f4e42 35978 || exit 1
4977bab6 35979
60975492 35980@endif target-libobjc
4977bab6 35981
295f4e42
NN
35982.PHONY: maybe-maintainer-clean-target-libobjc maintainer-clean-target-libobjc
35983maybe-maintainer-clean-target-libobjc:
60975492
PB
35984@if target-libobjc
35985maybe-maintainer-clean-target-libobjc: maintainer-clean-target-libobjc
7e2dbcef 35986
05750653 35987maintainer-clean-target-libobjc:
f41d6665 35988 @: $(MAKE); $(unstage)
295f4e42
NN
35989 @[ -f $(TARGET_SUBDIR)/libobjc/Makefile ] || exit 0 ; \
35990 r=`${PWD_COMMAND}`; export r; \
8c90b13a 35991 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 35992 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
35993 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libobjc" ; \
35994 for flag in $(EXTRA_TARGET_FLAGS); do \
35995 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
35996 done; \
35997 (cd $(TARGET_SUBDIR)/libobjc && \
35998 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
35999 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36000 "RANLIB=$${RANLIB}" \
36001 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 36002 maintainer-clean) \
295f4e42 36003 || exit 1
4977bab6 36004
60975492 36005@endif target-libobjc
4977bab6 36006
295f4e42 36007
295f4e42 36008
25b42232 36009
295f4e42 36010
25b42232
PB
36011.PHONY: configure-target-libtermcap maybe-configure-target-libtermcap
36012maybe-configure-target-libtermcap:
3ff3adad
PB
36013@if gcc-bootstrap
36014configure-target-libtermcap: stage_current
36015@endif gcc-bootstrap
25b42232
PB
36016@if target-libtermcap
36017maybe-configure-target-libtermcap: configure-target-libtermcap
cc11cc9b 36018configure-target-libtermcap:
f41d6665
DJ
36019 @: $(MAKE); $(unstage)
36020 @r=`${PWD_COMMAND}`; export r; \
36021 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36022 echo "Checking multilib configuration for libtermcap..."; \
36023 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libtermcap ; \
36024 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libtermcap/multilib.tmp 2> /dev/null ; \
36025 if test -r $(TARGET_SUBDIR)/libtermcap/multilib.out; then \
36026 if cmp -s $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; then \
36027 rm -f $(TARGET_SUBDIR)/libtermcap/multilib.tmp; \
36028 else \
36029 rm -f $(TARGET_SUBDIR)/libtermcap/Makefile; \
36030 mv $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; \
36031 fi; \
36032 else \
36033 mv $(TARGET_SUBDIR)/libtermcap/multilib.tmp $(TARGET_SUBDIR)/libtermcap/multilib.out; \
cc11cc9b
PB
36034 fi; \
36035 test ! -f $(TARGET_SUBDIR)/libtermcap/Makefile || exit 0; \
295f4e42 36036 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libtermcap ; \
4fc4dd12 36037 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
36038 echo Configuring in $(TARGET_SUBDIR)/libtermcap; \
36039 cd "$(TARGET_SUBDIR)/libtermcap" || exit 1; \
4977bab6 36040 case $(srcdir) in \
215c351a
PB
36041 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
36042 *) topdir=`echo $(TARGET_SUBDIR)/libtermcap/ | \
36043 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 36044 esac; \
215c351a
PB
36045 srcdiroption="--srcdir=$${topdir}/libtermcap"; \
36046 libsrcdir="$$s/libtermcap"; \
295f4e42
NN
36047 rm -f no-such-file || : ; \
36048 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 36049 $(TARGET_CONFIGARGS) $${srcdiroption} \
4977bab6 36050 || exit 1
60975492 36051@endif target-libtermcap
4977bab6 36052
25b42232
PB
36053
36054
ce406537
PB
36055
36056
295f4e42
NN
36057.PHONY: all-target-libtermcap maybe-all-target-libtermcap
36058maybe-all-target-libtermcap:
3ff3adad
PB
36059@if gcc-bootstrap
36060all-target-libtermcap: stage_current
36061@endif gcc-bootstrap
60975492 36062@if target-libtermcap
7c27e184 36063TARGET-target-libtermcap=all
60975492 36064maybe-all-target-libtermcap: all-target-libtermcap
295f4e42 36065all-target-libtermcap: configure-target-libtermcap
f41d6665 36066 @: $(MAKE); $(unstage)
8c90b13a
L
36067 @r=`${PWD_COMMAND}`; export r; \
36068 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36069 $(NORMAL_TARGET_EXPORTS) \
295f4e42 36070 (cd $(TARGET_SUBDIR)/libtermcap && \
25b42232 36071 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libtermcap))
60975492 36072@endif target-libtermcap
4977bab6 36073
25b42232
PB
36074
36075
ce406537
PB
36076
36077
295f4e42
NN
36078.PHONY: check-target-libtermcap maybe-check-target-libtermcap
36079maybe-check-target-libtermcap:
60975492
PB
36080@if target-libtermcap
36081maybe-check-target-libtermcap: check-target-libtermcap
4977bab6 36082
295f4e42
NN
36083# Dummy target for uncheckable module.
36084check-target-libtermcap:
36085
60975492 36086@endif target-libtermcap
295f4e42
NN
36087
36088.PHONY: install-target-libtermcap maybe-install-target-libtermcap
36089maybe-install-target-libtermcap:
60975492
PB
36090@if target-libtermcap
36091maybe-install-target-libtermcap: install-target-libtermcap
295f4e42
NN
36092
36093install-target-libtermcap: installdirs
f41d6665 36094 @: $(MAKE); $(unstage)
8c90b13a
L
36095 @r=`${PWD_COMMAND}`; export r; \
36096 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36097 $(NORMAL_TARGET_EXPORTS) \
295f4e42 36098 (cd $(TARGET_SUBDIR)/libtermcap && \
a52a0a7f 36099 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4977bab6 36100
60975492 36101@endif target-libtermcap
4977bab6 36102
b5422ad7 36103# Other targets (info, dvi, pdf, etc.)
7e2dbcef 36104
295f4e42
NN
36105.PHONY: maybe-info-target-libtermcap info-target-libtermcap
36106maybe-info-target-libtermcap:
60975492 36107@if target-libtermcap
f87a2b2e
MS
36108maybe-info-target-libtermcap: info-target-libtermcap
36109
36110info-target-libtermcap: \
05750653 36111 configure-target-libtermcap
f41d6665 36112 @: $(MAKE); $(unstage)
f87a2b2e
MS
36113 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
36114 r=`${PWD_COMMAND}`; export r; \
36115 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
36116 $(NORMAL_TARGET_EXPORTS) \
36117 echo "Doing info in $(TARGET_SUBDIR)/libtermcap" ; \
36118 for flag in $(EXTRA_TARGET_FLAGS); do \
36119 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36120 done; \
36121 (cd $(TARGET_SUBDIR)/libtermcap && \
36122 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36123 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36124 "RANLIB=$${RANLIB}" \
36125 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
36126 info) \
36127 || exit 1
36128
36129@endif target-libtermcap
36130
36131.PHONY: maybe-dvi-target-libtermcap dvi-target-libtermcap
36132maybe-dvi-target-libtermcap:
36133@if target-libtermcap
36134maybe-dvi-target-libtermcap: dvi-target-libtermcap
295f4e42 36135
f87a2b2e 36136dvi-target-libtermcap: \
05750653 36137 configure-target-libtermcap
f41d6665 36138 @: $(MAKE); $(unstage)
295f4e42
NN
36139 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
36140 r=`${PWD_COMMAND}`; export r; \
8c90b13a 36141 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36142 $(NORMAL_TARGET_EXPORTS) \
f87a2b2e 36143 echo "Doing dvi in $(TARGET_SUBDIR)/libtermcap" ; \
295f4e42
NN
36144 for flag in $(EXTRA_TARGET_FLAGS); do \
36145 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36146 done; \
36147 (cd $(TARGET_SUBDIR)/libtermcap && \
36148 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36149 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36150 "RANLIB=$${RANLIB}" \
36151 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
f87a2b2e 36152 dvi) \
295f4e42 36153 || exit 1
4977bab6 36154
60975492 36155@endif target-libtermcap
4977bab6 36156
b5422ad7
BM
36157.PHONY: maybe-pdf-target-libtermcap pdf-target-libtermcap
36158maybe-pdf-target-libtermcap:
36159@if target-libtermcap
36160maybe-pdf-target-libtermcap: pdf-target-libtermcap
36161
36162pdf-target-libtermcap: \
36163 configure-target-libtermcap
36164 @: $(MAKE); $(unstage)
36165 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
36166 r=`${PWD_COMMAND}`; export r; \
36167 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36168 $(NORMAL_TARGET_EXPORTS) \
36169 echo "Doing pdf in $(TARGET_SUBDIR)/libtermcap" ; \
36170 for flag in $(EXTRA_TARGET_FLAGS); do \
36171 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36172 done; \
36173 (cd $(TARGET_SUBDIR)/libtermcap && \
36174 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36175 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36176 "RANLIB=$${RANLIB}" \
36177 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
36178 pdf) \
36179 || exit 1
36180
36181@endif target-libtermcap
36182
f87a2b2e
MS
36183.PHONY: maybe-html-target-libtermcap html-target-libtermcap
36184maybe-html-target-libtermcap:
60975492 36185@if target-libtermcap
f87a2b2e 36186maybe-html-target-libtermcap: html-target-libtermcap
295f4e42 36187
f87a2b2e 36188html-target-libtermcap: \
05750653 36189 configure-target-libtermcap
f41d6665 36190 @: $(MAKE); $(unstage)
295f4e42 36191 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
8c90b13a
L
36192 r=`${PWD_COMMAND}`; export r; \
36193 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36194 $(NORMAL_TARGET_EXPORTS) \
f87a2b2e 36195 echo "Doing html in $(TARGET_SUBDIR)/libtermcap" ; \
295f4e42
NN
36196 for flag in $(EXTRA_TARGET_FLAGS); do \
36197 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36198 done; \
36199 (cd $(TARGET_SUBDIR)/libtermcap && \
36200 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36201 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36202 "RANLIB=$${RANLIB}" \
36203 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
f87a2b2e 36204 html) \
4977bab6
ZW
36205 || exit 1
36206
60975492 36207@endif target-libtermcap
295f4e42
NN
36208
36209.PHONY: maybe-TAGS-target-libtermcap TAGS-target-libtermcap
36210maybe-TAGS-target-libtermcap:
60975492
PB
36211@if target-libtermcap
36212maybe-TAGS-target-libtermcap: TAGS-target-libtermcap
295f4e42
NN
36213
36214TAGS-target-libtermcap: \
05750653 36215 configure-target-libtermcap
f41d6665 36216 @: $(MAKE); $(unstage)
295f4e42
NN
36217 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
36218 r=`${PWD_COMMAND}`; export r; \
8c90b13a 36219 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36220 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
36221 echo "Doing TAGS in $(TARGET_SUBDIR)/libtermcap" ; \
36222 for flag in $(EXTRA_TARGET_FLAGS); do \
36223 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36224 done; \
36225 (cd $(TARGET_SUBDIR)/libtermcap && \
36226 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36227 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36228 "RANLIB=$${RANLIB}" \
36229 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 36230 TAGS) \
295f4e42 36231 || exit 1
4977bab6 36232
60975492 36233@endif target-libtermcap
4977bab6 36234
295f4e42
NN
36235.PHONY: maybe-install-info-target-libtermcap install-info-target-libtermcap
36236maybe-install-info-target-libtermcap:
60975492
PB
36237@if target-libtermcap
36238maybe-install-info-target-libtermcap: install-info-target-libtermcap
4977bab6 36239
295f4e42
NN
36240install-info-target-libtermcap: \
36241 configure-target-libtermcap \
05750653 36242 info-target-libtermcap
f41d6665 36243 @: $(MAKE); $(unstage)
295f4e42
NN
36244 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
36245 r=`${PWD_COMMAND}`; export r; \
36246 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36247 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
36248 echo "Doing install-info in $(TARGET_SUBDIR)/libtermcap" ; \
36249 for flag in $(EXTRA_TARGET_FLAGS); do \
36250 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36251 done; \
36252 (cd $(TARGET_SUBDIR)/libtermcap && \
36253 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36254 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36255 "RANLIB=$${RANLIB}" \
36256 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 36257 install-info) \
295f4e42 36258 || exit 1
4977bab6 36259
60975492 36260@endif target-libtermcap
7e2dbcef 36261
65d6e994
CD
36262.PHONY: maybe-install-html-target-libtermcap install-html-target-libtermcap
36263maybe-install-html-target-libtermcap:
36264@if target-libtermcap
36265maybe-install-html-target-libtermcap: install-html-target-libtermcap
36266
36267install-html-target-libtermcap: \
36268 configure-target-libtermcap \
36269 html-target-libtermcap
36270 @: $(MAKE); $(unstage)
36271 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
36272 r=`${PWD_COMMAND}`; export r; \
36273 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36274 $(NORMAL_TARGET_EXPORTS) \
36275 echo "Doing install-html in $(TARGET_SUBDIR)/libtermcap" ; \
36276 for flag in $(EXTRA_TARGET_FLAGS); do \
36277 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36278 done; \
36279 (cd $(TARGET_SUBDIR)/libtermcap && \
36280 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36281 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36282 "RANLIB=$${RANLIB}" \
36283 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
36284 install-html) \
36285 || exit 1
36286
36287@endif target-libtermcap
36288
295f4e42
NN
36289.PHONY: maybe-installcheck-target-libtermcap installcheck-target-libtermcap
36290maybe-installcheck-target-libtermcap:
60975492
PB
36291@if target-libtermcap
36292maybe-installcheck-target-libtermcap: installcheck-target-libtermcap
295f4e42
NN
36293
36294installcheck-target-libtermcap: \
05750653 36295 configure-target-libtermcap
f41d6665 36296 @: $(MAKE); $(unstage)
295f4e42
NN
36297 @[ -f $(TARGET_SUBDIR)/libtermcap/Makefile ] || exit 0 ; \
36298 r=`${PWD_COMMAND}`; export r; \
8c90b13a 36299 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36300 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
36301 echo "Doing installcheck in $(TARGET_SUBDIR)/libtermcap" ; \
36302 for flag in $(EXTRA_TARGET_FLAGS); do \
36303 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36304 done; \
36305 (cd $(TARGET_SUBDIR)/libtermcap && \
36306 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36307 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36308 "RANLIB=$${RANLIB}" \
36309 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 36310 installcheck) \
295f4e42 36311 || exit 1
4977bab6 36312
60975492 36313@endif target-libtermcap
4977bab6 36314
295f4e42
NN
36315.PHONY: maybe-mostlyclean-target-libtermcap mostlyclean-target-libtermcap
36316maybe-mostlyclean-target-libtermcap:
60975492
PB
36317@if target-libtermcap
36318maybe-mostlyclean-target-libtermcap: mostlyclean-target-libtermcap
295f4e42
NN
36319
36320# libtermcap doesn't support mostlyclean.
36321mostlyclean-target-libtermcap:
36322
60975492 36323@endif target-libtermcap
295f4e42
NN
36324
36325.PHONY: maybe-clean-target-libtermcap clean-target-libtermcap
36326maybe-clean-target-libtermcap:
60975492
PB
36327@if target-libtermcap
36328maybe-clean-target-libtermcap: clean-target-libtermcap
295f4e42
NN
36329
36330# libtermcap doesn't support clean.
36331clean-target-libtermcap:
36332
60975492 36333@endif target-libtermcap
295f4e42
NN
36334
36335.PHONY: maybe-distclean-target-libtermcap distclean-target-libtermcap
36336maybe-distclean-target-libtermcap:
60975492
PB
36337@if target-libtermcap
36338maybe-distclean-target-libtermcap: distclean-target-libtermcap
295f4e42
NN
36339
36340# libtermcap doesn't support distclean.
36341distclean-target-libtermcap:
36342
60975492 36343@endif target-libtermcap
295f4e42
NN
36344
36345.PHONY: maybe-maintainer-clean-target-libtermcap maintainer-clean-target-libtermcap
36346maybe-maintainer-clean-target-libtermcap:
60975492
PB
36347@if target-libtermcap
36348maybe-maintainer-clean-target-libtermcap: maintainer-clean-target-libtermcap
295f4e42
NN
36349
36350# libtermcap doesn't support maintainer-clean.
36351maintainer-clean-target-libtermcap:
36352
60975492 36353@endif target-libtermcap
295f4e42
NN
36354
36355
295f4e42 36356
295f4e42 36357
25b42232
PB
36358
36359.PHONY: configure-target-winsup maybe-configure-target-winsup
36360maybe-configure-target-winsup:
3ff3adad
PB
36361@if gcc-bootstrap
36362configure-target-winsup: stage_current
36363@endif gcc-bootstrap
25b42232
PB
36364@if target-winsup
36365maybe-configure-target-winsup: configure-target-winsup
cc11cc9b 36366configure-target-winsup:
f41d6665
DJ
36367 @: $(MAKE); $(unstage)
36368 @r=`${PWD_COMMAND}`; export r; \
36369 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36370 echo "Checking multilib configuration for winsup..."; \
36371 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/winsup ; \
36372 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/winsup/multilib.tmp 2> /dev/null ; \
36373 if test -r $(TARGET_SUBDIR)/winsup/multilib.out; then \
36374 if cmp -s $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; then \
36375 rm -f $(TARGET_SUBDIR)/winsup/multilib.tmp; \
36376 else \
36377 rm -f $(TARGET_SUBDIR)/winsup/Makefile; \
36378 mv $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; \
36379 fi; \
36380 else \
36381 mv $(TARGET_SUBDIR)/winsup/multilib.tmp $(TARGET_SUBDIR)/winsup/multilib.out; \
cc11cc9b
PB
36382 fi; \
36383 test ! -f $(TARGET_SUBDIR)/winsup/Makefile || exit 0; \
295f4e42 36384 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/winsup ; \
4fc4dd12 36385 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
36386 echo Configuring in $(TARGET_SUBDIR)/winsup; \
36387 cd "$(TARGET_SUBDIR)/winsup" || exit 1; \
4977bab6 36388 case $(srcdir) in \
215c351a
PB
36389 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
36390 *) topdir=`echo $(TARGET_SUBDIR)/winsup/ | \
36391 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 36392 esac; \
215c351a
PB
36393 srcdiroption="--srcdir=$${topdir}/winsup"; \
36394 libsrcdir="$$s/winsup"; \
295f4e42
NN
36395 rm -f no-such-file || : ; \
36396 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 36397 $(TARGET_CONFIGARGS) $${srcdiroption} \
4977bab6 36398 || exit 1
60975492 36399@endif target-winsup
4977bab6 36400
25b42232
PB
36401
36402
ce406537
PB
36403
36404
295f4e42
NN
36405.PHONY: all-target-winsup maybe-all-target-winsup
36406maybe-all-target-winsup:
3ff3adad
PB
36407@if gcc-bootstrap
36408all-target-winsup: stage_current
36409@endif gcc-bootstrap
60975492 36410@if target-winsup
7c27e184 36411TARGET-target-winsup=all
60975492 36412maybe-all-target-winsup: all-target-winsup
295f4e42 36413all-target-winsup: configure-target-winsup
f41d6665 36414 @: $(MAKE); $(unstage)
8c90b13a
L
36415 @r=`${PWD_COMMAND}`; export r; \
36416 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36417 $(NORMAL_TARGET_EXPORTS) \
295f4e42 36418 (cd $(TARGET_SUBDIR)/winsup && \
25b42232 36419 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-winsup))
60975492 36420@endif target-winsup
4977bab6 36421
25b42232
PB
36422
36423
ce406537
PB
36424
36425
295f4e42
NN
36426.PHONY: check-target-winsup maybe-check-target-winsup
36427maybe-check-target-winsup:
60975492
PB
36428@if target-winsup
36429maybe-check-target-winsup: check-target-winsup
4977bab6 36430
295f4e42 36431check-target-winsup:
f41d6665 36432 @: $(MAKE); $(unstage)
295f4e42
NN
36433 @r=`${PWD_COMMAND}`; export r; \
36434 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36435 $(NORMAL_TARGET_EXPORTS) \
295f4e42 36436 (cd $(TARGET_SUBDIR)/winsup && \
a52a0a7f 36437 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4977bab6 36438
60975492 36439@endif target-winsup
4977bab6 36440
295f4e42
NN
36441.PHONY: install-target-winsup maybe-install-target-winsup
36442maybe-install-target-winsup:
60975492
PB
36443@if target-winsup
36444maybe-install-target-winsup: install-target-winsup
7e2dbcef 36445
295f4e42 36446install-target-winsup: installdirs
f41d6665 36447 @: $(MAKE); $(unstage)
295f4e42
NN
36448 @r=`${PWD_COMMAND}`; export r; \
36449 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36450 $(NORMAL_TARGET_EXPORTS) \
295f4e42 36451 (cd $(TARGET_SUBDIR)/winsup && \
a52a0a7f 36452 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4977bab6 36453
60975492 36454@endif target-winsup
4977bab6 36455
b5422ad7 36456# Other targets (info, dvi, pdf, etc.)
295f4e42
NN
36457
36458.PHONY: maybe-info-target-winsup info-target-winsup
36459maybe-info-target-winsup:
60975492
PB
36460@if target-winsup
36461maybe-info-target-winsup: info-target-winsup
295f4e42
NN
36462
36463info-target-winsup: \
05750653 36464 configure-target-winsup
f41d6665 36465 @: $(MAKE); $(unstage)
295f4e42 36466 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
8c90b13a
L
36467 r=`${PWD_COMMAND}`; export r; \
36468 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36469 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
36470 echo "Doing info in $(TARGET_SUBDIR)/winsup" ; \
36471 for flag in $(EXTRA_TARGET_FLAGS); do \
36472 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36473 done; \
36474 (cd $(TARGET_SUBDIR)/winsup && \
36475 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36476 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36477 "RANLIB=$${RANLIB}" \
36478 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 36479 info) \
4977bab6
ZW
36480 || exit 1
36481
60975492 36482@endif target-winsup
4977bab6 36483
295f4e42
NN
36484.PHONY: maybe-dvi-target-winsup dvi-target-winsup
36485maybe-dvi-target-winsup:
60975492
PB
36486@if target-winsup
36487maybe-dvi-target-winsup: dvi-target-winsup
4977bab6 36488
295f4e42 36489dvi-target-winsup: \
05750653 36490 configure-target-winsup
f41d6665 36491 @: $(MAKE); $(unstage)
295f4e42
NN
36492 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
36493 r=`${PWD_COMMAND}`; export r; \
8c90b13a 36494 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36495 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
36496 echo "Doing dvi in $(TARGET_SUBDIR)/winsup" ; \
36497 for flag in $(EXTRA_TARGET_FLAGS); do \
36498 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36499 done; \
36500 (cd $(TARGET_SUBDIR)/winsup && \
36501 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36502 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36503 "RANLIB=$${RANLIB}" \
36504 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 36505 dvi) \
295f4e42 36506 || exit 1
4977bab6 36507
60975492 36508@endif target-winsup
4977bab6 36509
b5422ad7
BM
36510.PHONY: maybe-pdf-target-winsup pdf-target-winsup
36511maybe-pdf-target-winsup:
36512@if target-winsup
36513maybe-pdf-target-winsup: pdf-target-winsup
36514
36515pdf-target-winsup: \
36516 configure-target-winsup
36517 @: $(MAKE); $(unstage)
36518 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
36519 r=`${PWD_COMMAND}`; export r; \
36520 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36521 $(NORMAL_TARGET_EXPORTS) \
36522 echo "Doing pdf in $(TARGET_SUBDIR)/winsup" ; \
36523 for flag in $(EXTRA_TARGET_FLAGS); do \
36524 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36525 done; \
36526 (cd $(TARGET_SUBDIR)/winsup && \
36527 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36528 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36529 "RANLIB=$${RANLIB}" \
36530 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
36531 pdf) \
36532 || exit 1
36533
36534@endif target-winsup
36535
f87a2b2e
MS
36536.PHONY: maybe-html-target-winsup html-target-winsup
36537maybe-html-target-winsup:
36538@if target-winsup
36539maybe-html-target-winsup: html-target-winsup
36540
36541html-target-winsup: \
05750653 36542 configure-target-winsup
f41d6665 36543 @: $(MAKE); $(unstage)
f87a2b2e
MS
36544 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
36545 r=`${PWD_COMMAND}`; export r; \
36546 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
36547 $(NORMAL_TARGET_EXPORTS) \
36548 echo "Doing html in $(TARGET_SUBDIR)/winsup" ; \
36549 for flag in $(EXTRA_TARGET_FLAGS); do \
36550 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36551 done; \
36552 (cd $(TARGET_SUBDIR)/winsup && \
36553 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36554 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36555 "RANLIB=$${RANLIB}" \
36556 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
36557 html) \
36558 || exit 1
36559
36560@endif target-winsup
36561
295f4e42
NN
36562.PHONY: maybe-TAGS-target-winsup TAGS-target-winsup
36563maybe-TAGS-target-winsup:
60975492
PB
36564@if target-winsup
36565maybe-TAGS-target-winsup: TAGS-target-winsup
7e2dbcef 36566
295f4e42 36567TAGS-target-winsup: \
05750653 36568 configure-target-winsup
f41d6665 36569 @: $(MAKE); $(unstage)
295f4e42
NN
36570 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
36571 r=`${PWD_COMMAND}`; export r; \
8c90b13a 36572 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36573 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
36574 echo "Doing TAGS in $(TARGET_SUBDIR)/winsup" ; \
36575 for flag in $(EXTRA_TARGET_FLAGS); do \
36576 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36577 done; \
36578 (cd $(TARGET_SUBDIR)/winsup && \
36579 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36580 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36581 "RANLIB=$${RANLIB}" \
36582 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 36583 TAGS) \
295f4e42 36584 || exit 1
4977bab6 36585
60975492 36586@endif target-winsup
4977bab6 36587
295f4e42
NN
36588.PHONY: maybe-install-info-target-winsup install-info-target-winsup
36589maybe-install-info-target-winsup:
60975492
PB
36590@if target-winsup
36591maybe-install-info-target-winsup: install-info-target-winsup
295f4e42
NN
36592
36593install-info-target-winsup: \
36594 configure-target-winsup \
05750653 36595 info-target-winsup
f41d6665 36596 @: $(MAKE); $(unstage)
295f4e42 36597 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
8c90b13a
L
36598 r=`${PWD_COMMAND}`; export r; \
36599 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36600 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
36601 echo "Doing install-info in $(TARGET_SUBDIR)/winsup" ; \
36602 for flag in $(EXTRA_TARGET_FLAGS); do \
36603 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36604 done; \
36605 (cd $(TARGET_SUBDIR)/winsup && \
36606 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36607 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36608 "RANLIB=$${RANLIB}" \
36609 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 36610 install-info) \
4977bab6
ZW
36611 || exit 1
36612
60975492 36613@endif target-winsup
295f4e42 36614
65d6e994
CD
36615.PHONY: maybe-install-html-target-winsup install-html-target-winsup
36616maybe-install-html-target-winsup:
36617@if target-winsup
36618maybe-install-html-target-winsup: install-html-target-winsup
36619
36620install-html-target-winsup: \
36621 configure-target-winsup \
36622 html-target-winsup
36623 @: $(MAKE); $(unstage)
36624 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
36625 r=`${PWD_COMMAND}`; export r; \
36626 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36627 $(NORMAL_TARGET_EXPORTS) \
36628 echo "Doing install-html in $(TARGET_SUBDIR)/winsup" ; \
36629 for flag in $(EXTRA_TARGET_FLAGS); do \
36630 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36631 done; \
36632 (cd $(TARGET_SUBDIR)/winsup && \
36633 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36634 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36635 "RANLIB=$${RANLIB}" \
36636 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
36637 install-html) \
36638 || exit 1
36639
36640@endif target-winsup
36641
295f4e42
NN
36642.PHONY: maybe-installcheck-target-winsup installcheck-target-winsup
36643maybe-installcheck-target-winsup:
60975492
PB
36644@if target-winsup
36645maybe-installcheck-target-winsup: installcheck-target-winsup
295f4e42
NN
36646
36647installcheck-target-winsup: \
05750653 36648 configure-target-winsup
f41d6665 36649 @: $(MAKE); $(unstage)
295f4e42
NN
36650 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
36651 r=`${PWD_COMMAND}`; export r; \
8c90b13a 36652 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36653 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
36654 echo "Doing installcheck in $(TARGET_SUBDIR)/winsup" ; \
36655 for flag in $(EXTRA_TARGET_FLAGS); do \
36656 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36657 done; \
36658 (cd $(TARGET_SUBDIR)/winsup && \
36659 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36660 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36661 "RANLIB=$${RANLIB}" \
36662 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 36663 installcheck) \
295f4e42 36664 || exit 1
4977bab6 36665
60975492 36666@endif target-winsup
4977bab6 36667
295f4e42
NN
36668.PHONY: maybe-mostlyclean-target-winsup mostlyclean-target-winsup
36669maybe-mostlyclean-target-winsup:
60975492
PB
36670@if target-winsup
36671maybe-mostlyclean-target-winsup: mostlyclean-target-winsup
295f4e42 36672
05750653 36673mostlyclean-target-winsup:
f41d6665 36674 @: $(MAKE); $(unstage)
295f4e42
NN
36675 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
36676 r=`${PWD_COMMAND}`; export r; \
8c90b13a 36677 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36678 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
36679 echo "Doing mostlyclean in $(TARGET_SUBDIR)/winsup" ; \
36680 for flag in $(EXTRA_TARGET_FLAGS); do \
36681 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36682 done; \
36683 (cd $(TARGET_SUBDIR)/winsup && \
36684 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36685 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36686 "RANLIB=$${RANLIB}" \
36687 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 36688 mostlyclean) \
295f4e42 36689 || exit 1
4977bab6 36690
60975492 36691@endif target-winsup
4977bab6 36692
295f4e42
NN
36693.PHONY: maybe-clean-target-winsup clean-target-winsup
36694maybe-clean-target-winsup:
60975492
PB
36695@if target-winsup
36696maybe-clean-target-winsup: clean-target-winsup
7e2dbcef 36697
05750653 36698clean-target-winsup:
f41d6665 36699 @: $(MAKE); $(unstage)
295f4e42
NN
36700 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
36701 r=`${PWD_COMMAND}`; export r; \
8c90b13a 36702 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36703 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
36704 echo "Doing clean in $(TARGET_SUBDIR)/winsup" ; \
36705 for flag in $(EXTRA_TARGET_FLAGS); do \
36706 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36707 done; \
36708 (cd $(TARGET_SUBDIR)/winsup && \
36709 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36710 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36711 "RANLIB=$${RANLIB}" \
36712 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 36713 clean) \
295f4e42 36714 || exit 1
4977bab6 36715
60975492 36716@endif target-winsup
4977bab6 36717
295f4e42
NN
36718.PHONY: maybe-distclean-target-winsup distclean-target-winsup
36719maybe-distclean-target-winsup:
60975492
PB
36720@if target-winsup
36721maybe-distclean-target-winsup: distclean-target-winsup
295f4e42 36722
05750653 36723distclean-target-winsup:
f41d6665 36724 @: $(MAKE); $(unstage)
295f4e42 36725 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
8c90b13a
L
36726 r=`${PWD_COMMAND}`; export r; \
36727 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36728 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
36729 echo "Doing distclean in $(TARGET_SUBDIR)/winsup" ; \
36730 for flag in $(EXTRA_TARGET_FLAGS); do \
36731 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36732 done; \
36733 (cd $(TARGET_SUBDIR)/winsup && \
36734 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36735 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36736 "RANLIB=$${RANLIB}" \
36737 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 36738 distclean) \
4977bab6
ZW
36739 || exit 1
36740
60975492 36741@endif target-winsup
4977bab6 36742
295f4e42
NN
36743.PHONY: maybe-maintainer-clean-target-winsup maintainer-clean-target-winsup
36744maybe-maintainer-clean-target-winsup:
60975492
PB
36745@if target-winsup
36746maybe-maintainer-clean-target-winsup: maintainer-clean-target-winsup
4977bab6 36747
05750653 36748maintainer-clean-target-winsup:
f41d6665 36749 @: $(MAKE); $(unstage)
295f4e42
NN
36750 @[ -f $(TARGET_SUBDIR)/winsup/Makefile ] || exit 0 ; \
36751 r=`${PWD_COMMAND}`; export r; \
8c90b13a 36752 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36753 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
36754 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/winsup" ; \
36755 for flag in $(EXTRA_TARGET_FLAGS); do \
36756 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36757 done; \
36758 (cd $(TARGET_SUBDIR)/winsup && \
36759 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36760 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36761 "RANLIB=$${RANLIB}" \
36762 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 36763 maintainer-clean) \
295f4e42 36764 || exit 1
4977bab6 36765
60975492 36766@endif target-winsup
4977bab6 36767
7e2dbcef 36768
4977bab6
ZW
36769
36770
25b42232
PB
36771
36772.PHONY: configure-target-libgloss maybe-configure-target-libgloss
36773maybe-configure-target-libgloss:
3ff3adad
PB
36774@if gcc-bootstrap
36775configure-target-libgloss: stage_current
36776@endif gcc-bootstrap
25b42232
PB
36777@if target-libgloss
36778maybe-configure-target-libgloss: configure-target-libgloss
cc11cc9b 36779configure-target-libgloss:
f41d6665
DJ
36780 @: $(MAKE); $(unstage)
36781 @r=`${PWD_COMMAND}`; export r; \
36782 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36783 echo "Checking multilib configuration for libgloss..."; \
36784 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgloss ; \
36785 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgloss/multilib.tmp 2> /dev/null ; \
36786 if test -r $(TARGET_SUBDIR)/libgloss/multilib.out; then \
36787 if cmp -s $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; then \
36788 rm -f $(TARGET_SUBDIR)/libgloss/multilib.tmp; \
36789 else \
36790 rm -f $(TARGET_SUBDIR)/libgloss/Makefile; \
36791 mv $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; \
36792 fi; \
36793 else \
36794 mv $(TARGET_SUBDIR)/libgloss/multilib.tmp $(TARGET_SUBDIR)/libgloss/multilib.out; \
cc11cc9b
PB
36795 fi; \
36796 test ! -f $(TARGET_SUBDIR)/libgloss/Makefile || exit 0; \
295f4e42 36797 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgloss ; \
4fc4dd12 36798 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
36799 echo Configuring in $(TARGET_SUBDIR)/libgloss; \
36800 cd "$(TARGET_SUBDIR)/libgloss" || exit 1; \
4977bab6 36801 case $(srcdir) in \
215c351a
PB
36802 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
36803 *) topdir=`echo $(TARGET_SUBDIR)/libgloss/ | \
36804 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
4977bab6 36805 esac; \
215c351a
PB
36806 srcdiroption="--srcdir=$${topdir}/libgloss"; \
36807 libsrcdir="$$s/libgloss"; \
295f4e42
NN
36808 rm -f no-such-file || : ; \
36809 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 36810 $(TARGET_CONFIGARGS) $${srcdiroption} \
4977bab6 36811 || exit 1
60975492 36812@endif target-libgloss
4977bab6 36813
25b42232
PB
36814
36815
ce406537
PB
36816
36817
295f4e42
NN
36818.PHONY: all-target-libgloss maybe-all-target-libgloss
36819maybe-all-target-libgloss:
3ff3adad
PB
36820@if gcc-bootstrap
36821all-target-libgloss: stage_current
36822@endif gcc-bootstrap
60975492 36823@if target-libgloss
7c27e184 36824TARGET-target-libgloss=all
60975492 36825maybe-all-target-libgloss: all-target-libgloss
295f4e42 36826all-target-libgloss: configure-target-libgloss
f41d6665 36827 @: $(MAKE); $(unstage)
8c90b13a
L
36828 @r=`${PWD_COMMAND}`; export r; \
36829 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36830 $(NORMAL_TARGET_EXPORTS) \
295f4e42 36831 (cd $(TARGET_SUBDIR)/libgloss && \
25b42232 36832 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libgloss))
60975492 36833@endif target-libgloss
4977bab6 36834
25b42232
PB
36835
36836
ce406537
PB
36837
36838
295f4e42
NN
36839.PHONY: check-target-libgloss maybe-check-target-libgloss
36840maybe-check-target-libgloss:
60975492
PB
36841@if target-libgloss
36842maybe-check-target-libgloss: check-target-libgloss
4977bab6 36843
295f4e42
NN
36844# Dummy target for uncheckable module.
36845check-target-libgloss:
4977bab6 36846
60975492 36847@endif target-libgloss
4977bab6 36848
295f4e42
NN
36849.PHONY: install-target-libgloss maybe-install-target-libgloss
36850maybe-install-target-libgloss:
60975492
PB
36851@if target-libgloss
36852maybe-install-target-libgloss: install-target-libgloss
7e2dbcef 36853
295f4e42 36854install-target-libgloss: installdirs
f41d6665 36855 @: $(MAKE); $(unstage)
8c90b13a
L
36856 @r=`${PWD_COMMAND}`; export r; \
36857 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36858 $(NORMAL_TARGET_EXPORTS) \
295f4e42 36859 (cd $(TARGET_SUBDIR)/libgloss && \
a52a0a7f 36860 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4977bab6 36861
60975492 36862@endif target-libgloss
4977bab6 36863
b5422ad7 36864# Other targets (info, dvi, pdf, etc.)
295f4e42
NN
36865
36866.PHONY: maybe-info-target-libgloss info-target-libgloss
36867maybe-info-target-libgloss:
60975492
PB
36868@if target-libgloss
36869maybe-info-target-libgloss: info-target-libgloss
295f4e42
NN
36870
36871info-target-libgloss: \
05750653 36872 configure-target-libgloss
f41d6665 36873 @: $(MAKE); $(unstage)
295f4e42 36874 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
8c90b13a
L
36875 r=`${PWD_COMMAND}`; export r; \
36876 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36877 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
36878 echo "Doing info in $(TARGET_SUBDIR)/libgloss" ; \
36879 for flag in $(EXTRA_TARGET_FLAGS); do \
36880 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36881 done; \
36882 (cd $(TARGET_SUBDIR)/libgloss && \
36883 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36884 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36885 "RANLIB=$${RANLIB}" \
36886 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 36887 info) \
82c34dcb
MC
36888 || exit 1
36889
60975492 36890@endif target-libgloss
82c34dcb 36891
295f4e42
NN
36892.PHONY: maybe-dvi-target-libgloss dvi-target-libgloss
36893maybe-dvi-target-libgloss:
60975492
PB
36894@if target-libgloss
36895maybe-dvi-target-libgloss: dvi-target-libgloss
82c34dcb 36896
295f4e42 36897dvi-target-libgloss: \
05750653 36898 configure-target-libgloss
f41d6665 36899 @: $(MAKE); $(unstage)
295f4e42
NN
36900 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
36901 r=`${PWD_COMMAND}`; export r; \
8c90b13a 36902 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36903 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
36904 echo "Doing dvi in $(TARGET_SUBDIR)/libgloss" ; \
36905 for flag in $(EXTRA_TARGET_FLAGS); do \
36906 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36907 done; \
36908 (cd $(TARGET_SUBDIR)/libgloss && \
36909 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36910 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36911 "RANLIB=$${RANLIB}" \
36912 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 36913 dvi) \
295f4e42 36914 || exit 1
82c34dcb 36915
60975492 36916@endif target-libgloss
82c34dcb 36917
b5422ad7
BM
36918.PHONY: maybe-pdf-target-libgloss pdf-target-libgloss
36919maybe-pdf-target-libgloss:
36920@if target-libgloss
36921maybe-pdf-target-libgloss: pdf-target-libgloss
36922
36923pdf-target-libgloss: \
36924 configure-target-libgloss
36925 @: $(MAKE); $(unstage)
36926 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
36927 r=`${PWD_COMMAND}`; export r; \
36928 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
36929 $(NORMAL_TARGET_EXPORTS) \
36930 echo "Doing pdf in $(TARGET_SUBDIR)/libgloss" ; \
36931 for flag in $(EXTRA_TARGET_FLAGS); do \
36932 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36933 done; \
36934 (cd $(TARGET_SUBDIR)/libgloss && \
36935 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36936 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36937 "RANLIB=$${RANLIB}" \
36938 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
36939 pdf) \
36940 || exit 1
36941
36942@endif target-libgloss
36943
f87a2b2e
MS
36944.PHONY: maybe-html-target-libgloss html-target-libgloss
36945maybe-html-target-libgloss:
36946@if target-libgloss
36947maybe-html-target-libgloss: html-target-libgloss
36948
36949html-target-libgloss: \
05750653 36950 configure-target-libgloss
f41d6665 36951 @: $(MAKE); $(unstage)
f87a2b2e
MS
36952 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
36953 r=`${PWD_COMMAND}`; export r; \
36954 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
36955 $(NORMAL_TARGET_EXPORTS) \
36956 echo "Doing html in $(TARGET_SUBDIR)/libgloss" ; \
36957 for flag in $(EXTRA_TARGET_FLAGS); do \
36958 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36959 done; \
36960 (cd $(TARGET_SUBDIR)/libgloss && \
36961 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36962 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36963 "RANLIB=$${RANLIB}" \
36964 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
36965 html) \
36966 || exit 1
36967
36968@endif target-libgloss
36969
295f4e42
NN
36970.PHONY: maybe-TAGS-target-libgloss TAGS-target-libgloss
36971maybe-TAGS-target-libgloss:
60975492
PB
36972@if target-libgloss
36973maybe-TAGS-target-libgloss: TAGS-target-libgloss
7e2dbcef 36974
295f4e42 36975TAGS-target-libgloss: \
05750653 36976 configure-target-libgloss
f41d6665 36977 @: $(MAKE); $(unstage)
295f4e42
NN
36978 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
36979 r=`${PWD_COMMAND}`; export r; \
8c90b13a 36980 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 36981 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
36982 echo "Doing TAGS in $(TARGET_SUBDIR)/libgloss" ; \
36983 for flag in $(EXTRA_TARGET_FLAGS); do \
36984 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
36985 done; \
36986 (cd $(TARGET_SUBDIR)/libgloss && \
36987 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
36988 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
36989 "RANLIB=$${RANLIB}" \
36990 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 36991 TAGS) \
295f4e42 36992 || exit 1
82c34dcb 36993
60975492 36994@endif target-libgloss
82c34dcb 36995
295f4e42
NN
36996.PHONY: maybe-install-info-target-libgloss install-info-target-libgloss
36997maybe-install-info-target-libgloss:
60975492
PB
36998@if target-libgloss
36999maybe-install-info-target-libgloss: install-info-target-libgloss
295f4e42
NN
37000
37001install-info-target-libgloss: \
37002 configure-target-libgloss \
05750653 37003 info-target-libgloss
f41d6665 37004 @: $(MAKE); $(unstage)
295f4e42 37005 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
8c90b13a
L
37006 r=`${PWD_COMMAND}`; export r; \
37007 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37008 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37009 echo "Doing install-info in $(TARGET_SUBDIR)/libgloss" ; \
37010 for flag in $(EXTRA_TARGET_FLAGS); do \
37011 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37012 done; \
37013 (cd $(TARGET_SUBDIR)/libgloss && \
37014 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37015 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37016 "RANLIB=$${RANLIB}" \
37017 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37018 install-info) \
4977bab6
ZW
37019 || exit 1
37020
60975492 37021@endif target-libgloss
4977bab6 37022
65d6e994
CD
37023.PHONY: maybe-install-html-target-libgloss install-html-target-libgloss
37024maybe-install-html-target-libgloss:
37025@if target-libgloss
37026maybe-install-html-target-libgloss: install-html-target-libgloss
37027
37028install-html-target-libgloss: \
37029 configure-target-libgloss \
37030 html-target-libgloss
37031 @: $(MAKE); $(unstage)
37032 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
37033 r=`${PWD_COMMAND}`; export r; \
37034 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37035 $(NORMAL_TARGET_EXPORTS) \
37036 echo "Doing install-html in $(TARGET_SUBDIR)/libgloss" ; \
37037 for flag in $(EXTRA_TARGET_FLAGS); do \
37038 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37039 done; \
37040 (cd $(TARGET_SUBDIR)/libgloss && \
37041 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37042 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37043 "RANLIB=$${RANLIB}" \
37044 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
37045 install-html) \
37046 || exit 1
37047
37048@endif target-libgloss
37049
295f4e42
NN
37050.PHONY: maybe-installcheck-target-libgloss installcheck-target-libgloss
37051maybe-installcheck-target-libgloss:
60975492
PB
37052@if target-libgloss
37053maybe-installcheck-target-libgloss: installcheck-target-libgloss
4977bab6 37054
295f4e42 37055installcheck-target-libgloss: \
05750653 37056 configure-target-libgloss
f41d6665 37057 @: $(MAKE); $(unstage)
295f4e42
NN
37058 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
37059 r=`${PWD_COMMAND}`; export r; \
37060 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37061 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37062 echo "Doing installcheck in $(TARGET_SUBDIR)/libgloss" ; \
37063 for flag in $(EXTRA_TARGET_FLAGS); do \
37064 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37065 done; \
37066 (cd $(TARGET_SUBDIR)/libgloss && \
37067 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37068 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37069 "RANLIB=$${RANLIB}" \
37070 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37071 installcheck) \
295f4e42 37072 || exit 1
4977bab6 37073
60975492 37074@endif target-libgloss
4977bab6 37075
295f4e42
NN
37076.PHONY: maybe-mostlyclean-target-libgloss mostlyclean-target-libgloss
37077maybe-mostlyclean-target-libgloss:
60975492
PB
37078@if target-libgloss
37079maybe-mostlyclean-target-libgloss: mostlyclean-target-libgloss
7e2dbcef 37080
05750653 37081mostlyclean-target-libgloss:
f41d6665 37082 @: $(MAKE); $(unstage)
295f4e42
NN
37083 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
37084 r=`${PWD_COMMAND}`; export r; \
8c90b13a 37085 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37086 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37087 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgloss" ; \
37088 for flag in $(EXTRA_TARGET_FLAGS); do \
37089 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37090 done; \
37091 (cd $(TARGET_SUBDIR)/libgloss && \
37092 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37093 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37094 "RANLIB=$${RANLIB}" \
37095 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37096 mostlyclean) \
295f4e42 37097 || exit 1
4977bab6 37098
60975492 37099@endif target-libgloss
4977bab6 37100
295f4e42
NN
37101.PHONY: maybe-clean-target-libgloss clean-target-libgloss
37102maybe-clean-target-libgloss:
60975492
PB
37103@if target-libgloss
37104maybe-clean-target-libgloss: clean-target-libgloss
295f4e42 37105
05750653 37106clean-target-libgloss:
f41d6665 37107 @: $(MAKE); $(unstage)
295f4e42 37108 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
8c90b13a
L
37109 r=`${PWD_COMMAND}`; export r; \
37110 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37111 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37112 echo "Doing clean in $(TARGET_SUBDIR)/libgloss" ; \
37113 for flag in $(EXTRA_TARGET_FLAGS); do \
37114 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37115 done; \
37116 (cd $(TARGET_SUBDIR)/libgloss && \
37117 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37118 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37119 "RANLIB=$${RANLIB}" \
37120 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37121 clean) \
4977bab6
ZW
37122 || exit 1
37123
60975492 37124@endif target-libgloss
4977bab6 37125
295f4e42
NN
37126.PHONY: maybe-distclean-target-libgloss distclean-target-libgloss
37127maybe-distclean-target-libgloss:
60975492
PB
37128@if target-libgloss
37129maybe-distclean-target-libgloss: distclean-target-libgloss
4977bab6 37130
05750653 37131distclean-target-libgloss:
f41d6665 37132 @: $(MAKE); $(unstage)
295f4e42
NN
37133 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
37134 r=`${PWD_COMMAND}`; export r; \
37135 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37136 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37137 echo "Doing distclean in $(TARGET_SUBDIR)/libgloss" ; \
37138 for flag in $(EXTRA_TARGET_FLAGS); do \
37139 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37140 done; \
37141 (cd $(TARGET_SUBDIR)/libgloss && \
37142 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37143 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37144 "RANLIB=$${RANLIB}" \
37145 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37146 distclean) \
295f4e42 37147 || exit 1
4977bab6 37148
60975492 37149@endif target-libgloss
4977bab6 37150
295f4e42
NN
37151.PHONY: maybe-maintainer-clean-target-libgloss maintainer-clean-target-libgloss
37152maybe-maintainer-clean-target-libgloss:
60975492
PB
37153@if target-libgloss
37154maybe-maintainer-clean-target-libgloss: maintainer-clean-target-libgloss
7e2dbcef 37155
05750653 37156maintainer-clean-target-libgloss:
f41d6665 37157 @: $(MAKE); $(unstage)
295f4e42
NN
37158 @[ -f $(TARGET_SUBDIR)/libgloss/Makefile ] || exit 0 ; \
37159 r=`${PWD_COMMAND}`; export r; \
8c90b13a 37160 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37161 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37162 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgloss" ; \
37163 for flag in $(EXTRA_TARGET_FLAGS); do \
37164 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37165 done; \
37166 (cd $(TARGET_SUBDIR)/libgloss && \
37167 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37168 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37169 "RANLIB=$${RANLIB}" \
37170 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37171 maintainer-clean) \
295f4e42 37172 || exit 1
4977bab6 37173
60975492 37174@endif target-libgloss
4977bab6 37175
4977bab6 37176
4977bab6 37177
4977bab6 37178
25b42232
PB
37179
37180.PHONY: configure-target-libiberty maybe-configure-target-libiberty
37181maybe-configure-target-libiberty:
3ff3adad
PB
37182@if gcc-bootstrap
37183configure-target-libiberty: stage_current
37184@endif gcc-bootstrap
25b42232
PB
37185@if target-libiberty
37186maybe-configure-target-libiberty: configure-target-libiberty
cc11cc9b 37187configure-target-libiberty:
f41d6665
DJ
37188 @: $(MAKE); $(unstage)
37189 @r=`${PWD_COMMAND}`; export r; \
37190 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37191 echo "Checking multilib configuration for libiberty..."; \
37192 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libiberty ; \
37193 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libiberty/multilib.tmp 2> /dev/null ; \
37194 if test -r $(TARGET_SUBDIR)/libiberty/multilib.out; then \
37195 if cmp -s $(TARGET_SUBDIR)/libiberty/multilib.tmp $(TARGET_SUBDIR)/libiberty/multilib.out; then \
37196 rm -f $(TARGET_SUBDIR)/libiberty/multilib.tmp; \
37197 else \
37198 rm -f $(TARGET_SUBDIR)/libiberty/Makefile; \
37199 mv $(TARGET_SUBDIR)/libiberty/multilib.tmp $(TARGET_SUBDIR)/libiberty/multilib.out; \
37200 fi; \
37201 else \
37202 mv $(TARGET_SUBDIR)/libiberty/multilib.tmp $(TARGET_SUBDIR)/libiberty/multilib.out; \
cc11cc9b
PB
37203 fi; \
37204 test ! -f $(TARGET_SUBDIR)/libiberty/Makefile || exit 0; \
295f4e42 37205 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libiberty ; \
4fc4dd12 37206 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37207 echo Configuring in $(TARGET_SUBDIR)/libiberty; \
37208 cd "$(TARGET_SUBDIR)/libiberty" || exit 1; \
3aa83176 37209 case $(srcdir) in \
215c351a
PB
37210 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
37211 *) topdir=`echo $(TARGET_SUBDIR)/libiberty/ | \
37212 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3aa83176 37213 esac; \
215c351a
PB
37214 srcdiroption="--srcdir=$${topdir}/libiberty"; \
37215 libsrcdir="$$s/libiberty"; \
3aa83176
NN
37216 rm -f no-such-file || : ; \
37217 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 37218 $(TARGET_CONFIGARGS) $${srcdiroption} \
3aa83176 37219 || exit 1
60975492 37220@endif target-libiberty
4977bab6 37221
25b42232
PB
37222
37223
ce406537
PB
37224
37225
295f4e42
NN
37226.PHONY: all-target-libiberty maybe-all-target-libiberty
37227maybe-all-target-libiberty:
3ff3adad
PB
37228@if gcc-bootstrap
37229all-target-libiberty: stage_current
37230@endif gcc-bootstrap
60975492 37231@if target-libiberty
7c27e184 37232TARGET-target-libiberty=all
60975492 37233maybe-all-target-libiberty: all-target-libiberty
295f4e42 37234all-target-libiberty: configure-target-libiberty
f41d6665 37235 @: $(MAKE); $(unstage)
8c90b13a
L
37236 @r=`${PWD_COMMAND}`; export r; \
37237 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37238 $(NORMAL_TARGET_EXPORTS) \
295f4e42 37239 (cd $(TARGET_SUBDIR)/libiberty && \
25b42232 37240 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libiberty))
60975492 37241@endif target-libiberty
4977bab6 37242
25b42232
PB
37243
37244
ce406537
PB
37245
37246
295f4e42
NN
37247.PHONY: check-target-libiberty maybe-check-target-libiberty
37248maybe-check-target-libiberty:
60975492
PB
37249@if target-libiberty
37250maybe-check-target-libiberty: check-target-libiberty
7e2dbcef 37251
295f4e42 37252check-target-libiberty:
f41d6665 37253 @: $(MAKE); $(unstage)
8c90b13a
L
37254 @r=`${PWD_COMMAND}`; export r; \
37255 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37256 $(NORMAL_TARGET_EXPORTS) \
295f4e42 37257 (cd $(TARGET_SUBDIR)/libiberty && \
a52a0a7f 37258 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4977bab6 37259
60975492 37260@endif target-libiberty
4977bab6 37261
295f4e42
NN
37262.PHONY: install-target-libiberty maybe-install-target-libiberty
37263maybe-install-target-libiberty:
60975492
PB
37264@if target-libiberty
37265maybe-install-target-libiberty: install-target-libiberty
295f4e42
NN
37266
37267install-target-libiberty: installdirs
f41d6665 37268 @: $(MAKE); $(unstage)
295f4e42
NN
37269 @r=`${PWD_COMMAND}`; export r; \
37270 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37271 $(NORMAL_TARGET_EXPORTS) \
295f4e42 37272 (cd $(TARGET_SUBDIR)/libiberty && \
a52a0a7f 37273 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
295f4e42 37274
60975492 37275@endif target-libiberty
295f4e42 37276
b5422ad7 37277# Other targets (info, dvi, pdf, etc.)
295f4e42
NN
37278
37279.PHONY: maybe-info-target-libiberty info-target-libiberty
37280maybe-info-target-libiberty:
60975492
PB
37281@if target-libiberty
37282maybe-info-target-libiberty: info-target-libiberty
295f4e42
NN
37283
37284info-target-libiberty: \
05750653 37285 configure-target-libiberty
f41d6665 37286 @: $(MAKE); $(unstage)
295f4e42
NN
37287 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
37288 r=`${PWD_COMMAND}`; export r; \
37289 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37290 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37291 echo "Doing info in $(TARGET_SUBDIR)/libiberty" ; \
37292 for flag in $(EXTRA_TARGET_FLAGS); do \
37293 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37294 done; \
37295 (cd $(TARGET_SUBDIR)/libiberty && \
37296 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37297 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37298 "RANLIB=$${RANLIB}" \
37299 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37300 info) \
295f4e42
NN
37301 || exit 1
37302
60975492 37303@endif target-libiberty
295f4e42
NN
37304
37305.PHONY: maybe-dvi-target-libiberty dvi-target-libiberty
37306maybe-dvi-target-libiberty:
60975492
PB
37307@if target-libiberty
37308maybe-dvi-target-libiberty: dvi-target-libiberty
295f4e42
NN
37309
37310dvi-target-libiberty: \
05750653 37311 configure-target-libiberty
f41d6665 37312 @: $(MAKE); $(unstage)
295f4e42
NN
37313 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
37314 r=`${PWD_COMMAND}`; export r; \
37315 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37316 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37317 echo "Doing dvi in $(TARGET_SUBDIR)/libiberty" ; \
37318 for flag in $(EXTRA_TARGET_FLAGS); do \
37319 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37320 done; \
37321 (cd $(TARGET_SUBDIR)/libiberty && \
37322 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37323 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37324 "RANLIB=$${RANLIB}" \
37325 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37326 dvi) \
295f4e42
NN
37327 || exit 1
37328
60975492 37329@endif target-libiberty
295f4e42 37330
b5422ad7
BM
37331.PHONY: maybe-pdf-target-libiberty pdf-target-libiberty
37332maybe-pdf-target-libiberty:
37333@if target-libiberty
37334maybe-pdf-target-libiberty: pdf-target-libiberty
37335
37336pdf-target-libiberty: \
37337 configure-target-libiberty
37338 @: $(MAKE); $(unstage)
37339 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
37340 r=`${PWD_COMMAND}`; export r; \
37341 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37342 $(NORMAL_TARGET_EXPORTS) \
37343 echo "Doing pdf in $(TARGET_SUBDIR)/libiberty" ; \
37344 for flag in $(EXTRA_TARGET_FLAGS); do \
37345 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37346 done; \
37347 (cd $(TARGET_SUBDIR)/libiberty && \
37348 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37349 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37350 "RANLIB=$${RANLIB}" \
37351 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
37352 pdf) \
37353 || exit 1
37354
37355@endif target-libiberty
37356
f87a2b2e
MS
37357.PHONY: maybe-html-target-libiberty html-target-libiberty
37358maybe-html-target-libiberty:
37359@if target-libiberty
37360maybe-html-target-libiberty: html-target-libiberty
37361
37362html-target-libiberty: \
05750653 37363 configure-target-libiberty
f41d6665 37364 @: $(MAKE); $(unstage)
f87a2b2e
MS
37365 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
37366 r=`${PWD_COMMAND}`; export r; \
37367 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
37368 $(NORMAL_TARGET_EXPORTS) \
37369 echo "Doing html in $(TARGET_SUBDIR)/libiberty" ; \
37370 for flag in $(EXTRA_TARGET_FLAGS); do \
37371 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37372 done; \
37373 (cd $(TARGET_SUBDIR)/libiberty && \
37374 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37375 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37376 "RANLIB=$${RANLIB}" \
37377 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
37378 html) \
37379 || exit 1
37380
37381@endif target-libiberty
37382
295f4e42
NN
37383.PHONY: maybe-TAGS-target-libiberty TAGS-target-libiberty
37384maybe-TAGS-target-libiberty:
60975492
PB
37385@if target-libiberty
37386maybe-TAGS-target-libiberty: TAGS-target-libiberty
295f4e42
NN
37387
37388TAGS-target-libiberty: \
05750653 37389 configure-target-libiberty
f41d6665 37390 @: $(MAKE); $(unstage)
295f4e42
NN
37391 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
37392 r=`${PWD_COMMAND}`; export r; \
37393 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37394 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37395 echo "Doing TAGS in $(TARGET_SUBDIR)/libiberty" ; \
37396 for flag in $(EXTRA_TARGET_FLAGS); do \
37397 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37398 done; \
37399 (cd $(TARGET_SUBDIR)/libiberty && \
37400 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37401 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37402 "RANLIB=$${RANLIB}" \
37403 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37404 TAGS) \
295f4e42
NN
37405 || exit 1
37406
60975492 37407@endif target-libiberty
295f4e42
NN
37408
37409.PHONY: maybe-install-info-target-libiberty install-info-target-libiberty
37410maybe-install-info-target-libiberty:
60975492
PB
37411@if target-libiberty
37412maybe-install-info-target-libiberty: install-info-target-libiberty
295f4e42
NN
37413
37414install-info-target-libiberty: \
37415 configure-target-libiberty \
05750653 37416 info-target-libiberty
f41d6665 37417 @: $(MAKE); $(unstage)
295f4e42
NN
37418 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
37419 r=`${PWD_COMMAND}`; export r; \
37420 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37421 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37422 echo "Doing install-info in $(TARGET_SUBDIR)/libiberty" ; \
37423 for flag in $(EXTRA_TARGET_FLAGS); do \
37424 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37425 done; \
37426 (cd $(TARGET_SUBDIR)/libiberty && \
37427 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37428 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37429 "RANLIB=$${RANLIB}" \
37430 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37431 install-info) \
295f4e42
NN
37432 || exit 1
37433
60975492 37434@endif target-libiberty
295f4e42 37435
65d6e994
CD
37436.PHONY: maybe-install-html-target-libiberty install-html-target-libiberty
37437maybe-install-html-target-libiberty:
37438@if target-libiberty
37439maybe-install-html-target-libiberty: install-html-target-libiberty
37440
37441install-html-target-libiberty: \
37442 configure-target-libiberty \
37443 html-target-libiberty
37444 @: $(MAKE); $(unstage)
37445 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
37446 r=`${PWD_COMMAND}`; export r; \
37447 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37448 $(NORMAL_TARGET_EXPORTS) \
37449 echo "Doing install-html in $(TARGET_SUBDIR)/libiberty" ; \
37450 for flag in $(EXTRA_TARGET_FLAGS); do \
37451 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37452 done; \
37453 (cd $(TARGET_SUBDIR)/libiberty && \
37454 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37455 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37456 "RANLIB=$${RANLIB}" \
37457 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
37458 install-html) \
37459 || exit 1
37460
37461@endif target-libiberty
37462
295f4e42
NN
37463.PHONY: maybe-installcheck-target-libiberty installcheck-target-libiberty
37464maybe-installcheck-target-libiberty:
60975492
PB
37465@if target-libiberty
37466maybe-installcheck-target-libiberty: installcheck-target-libiberty
295f4e42
NN
37467
37468installcheck-target-libiberty: \
05750653 37469 configure-target-libiberty
f41d6665 37470 @: $(MAKE); $(unstage)
295f4e42
NN
37471 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
37472 r=`${PWD_COMMAND}`; export r; \
37473 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37474 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37475 echo "Doing installcheck in $(TARGET_SUBDIR)/libiberty" ; \
37476 for flag in $(EXTRA_TARGET_FLAGS); do \
37477 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37478 done; \
37479 (cd $(TARGET_SUBDIR)/libiberty && \
37480 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37481 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37482 "RANLIB=$${RANLIB}" \
37483 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37484 installcheck) \
295f4e42
NN
37485 || exit 1
37486
60975492 37487@endif target-libiberty
295f4e42
NN
37488
37489.PHONY: maybe-mostlyclean-target-libiberty mostlyclean-target-libiberty
37490maybe-mostlyclean-target-libiberty:
60975492
PB
37491@if target-libiberty
37492maybe-mostlyclean-target-libiberty: mostlyclean-target-libiberty
295f4e42 37493
05750653 37494mostlyclean-target-libiberty:
f41d6665 37495 @: $(MAKE); $(unstage)
295f4e42
NN
37496 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
37497 r=`${PWD_COMMAND}`; export r; \
37498 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37499 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37500 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libiberty" ; \
37501 for flag in $(EXTRA_TARGET_FLAGS); do \
37502 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37503 done; \
37504 (cd $(TARGET_SUBDIR)/libiberty && \
37505 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37506 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37507 "RANLIB=$${RANLIB}" \
37508 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37509 mostlyclean) \
295f4e42
NN
37510 || exit 1
37511
60975492 37512@endif target-libiberty
295f4e42
NN
37513
37514.PHONY: maybe-clean-target-libiberty clean-target-libiberty
37515maybe-clean-target-libiberty:
60975492
PB
37516@if target-libiberty
37517maybe-clean-target-libiberty: clean-target-libiberty
295f4e42 37518
05750653 37519clean-target-libiberty:
f41d6665 37520 @: $(MAKE); $(unstage)
295f4e42
NN
37521 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
37522 r=`${PWD_COMMAND}`; export r; \
37523 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37524 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37525 echo "Doing clean in $(TARGET_SUBDIR)/libiberty" ; \
37526 for flag in $(EXTRA_TARGET_FLAGS); do \
37527 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37528 done; \
37529 (cd $(TARGET_SUBDIR)/libiberty && \
37530 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37531 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37532 "RANLIB=$${RANLIB}" \
37533 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37534 clean) \
295f4e42
NN
37535 || exit 1
37536
60975492 37537@endif target-libiberty
295f4e42
NN
37538
37539.PHONY: maybe-distclean-target-libiberty distclean-target-libiberty
37540maybe-distclean-target-libiberty:
60975492
PB
37541@if target-libiberty
37542maybe-distclean-target-libiberty: distclean-target-libiberty
295f4e42 37543
05750653 37544distclean-target-libiberty:
f41d6665 37545 @: $(MAKE); $(unstage)
295f4e42
NN
37546 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
37547 r=`${PWD_COMMAND}`; export r; \
37548 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37549 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37550 echo "Doing distclean in $(TARGET_SUBDIR)/libiberty" ; \
37551 for flag in $(EXTRA_TARGET_FLAGS); do \
37552 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37553 done; \
37554 (cd $(TARGET_SUBDIR)/libiberty && \
37555 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37556 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37557 "RANLIB=$${RANLIB}" \
37558 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37559 distclean) \
295f4e42
NN
37560 || exit 1
37561
60975492 37562@endif target-libiberty
295f4e42
NN
37563
37564.PHONY: maybe-maintainer-clean-target-libiberty maintainer-clean-target-libiberty
37565maybe-maintainer-clean-target-libiberty:
60975492
PB
37566@if target-libiberty
37567maybe-maintainer-clean-target-libiberty: maintainer-clean-target-libiberty
295f4e42 37568
05750653 37569maintainer-clean-target-libiberty:
f41d6665 37570 @: $(MAKE); $(unstage)
295f4e42
NN
37571 @[ -f $(TARGET_SUBDIR)/libiberty/Makefile ] || exit 0 ; \
37572 r=`${PWD_COMMAND}`; export r; \
37573 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37574 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37575 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libiberty" ; \
37576 for flag in $(EXTRA_TARGET_FLAGS); do \
37577 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37578 done; \
37579 (cd $(TARGET_SUBDIR)/libiberty && \
37580 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37581 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37582 "RANLIB=$${RANLIB}" \
37583 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37584 maintainer-clean) \
295f4e42 37585 || exit 1
7e2dbcef 37586
60975492 37587@endif target-libiberty
4977bab6
ZW
37588
37589
4977bab6 37590
4977bab6 37591
25b42232
PB
37592
37593.PHONY: configure-target-gperf maybe-configure-target-gperf
37594maybe-configure-target-gperf:
3ff3adad
PB
37595@if gcc-bootstrap
37596configure-target-gperf: stage_current
37597@endif gcc-bootstrap
25b42232
PB
37598@if target-gperf
37599maybe-configure-target-gperf: configure-target-gperf
cc11cc9b 37600configure-target-gperf:
f41d6665
DJ
37601 @: $(MAKE); $(unstage)
37602 @r=`${PWD_COMMAND}`; export r; \
37603 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37604 echo "Checking multilib configuration for gperf..."; \
37605 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/gperf ; \
37606 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/gperf/multilib.tmp 2> /dev/null ; \
37607 if test -r $(TARGET_SUBDIR)/gperf/multilib.out; then \
37608 if cmp -s $(TARGET_SUBDIR)/gperf/multilib.tmp $(TARGET_SUBDIR)/gperf/multilib.out; then \
37609 rm -f $(TARGET_SUBDIR)/gperf/multilib.tmp; \
37610 else \
37611 rm -f $(TARGET_SUBDIR)/gperf/Makefile; \
37612 mv $(TARGET_SUBDIR)/gperf/multilib.tmp $(TARGET_SUBDIR)/gperf/multilib.out; \
37613 fi; \
37614 else \
37615 mv $(TARGET_SUBDIR)/gperf/multilib.tmp $(TARGET_SUBDIR)/gperf/multilib.out; \
cc11cc9b
PB
37616 fi; \
37617 test ! -f $(TARGET_SUBDIR)/gperf/Makefile || exit 0; \
295f4e42 37618 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/gperf ; \
4fc4dd12 37619 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37620 echo Configuring in $(TARGET_SUBDIR)/gperf; \
37621 cd "$(TARGET_SUBDIR)/gperf" || exit 1; \
3aa83176 37622 case $(srcdir) in \
215c351a
PB
37623 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
37624 *) topdir=`echo $(TARGET_SUBDIR)/gperf/ | \
37625 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3aa83176 37626 esac; \
215c351a
PB
37627 srcdiroption="--srcdir=$${topdir}/gperf"; \
37628 libsrcdir="$$s/gperf"; \
3aa83176
NN
37629 rm -f no-such-file || : ; \
37630 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 37631 $(TARGET_CONFIGARGS) $${srcdiroption} \
3aa83176 37632 || exit 1
60975492 37633@endif target-gperf
4977bab6 37634
25b42232
PB
37635
37636
ce406537
PB
37637
37638
295f4e42
NN
37639.PHONY: all-target-gperf maybe-all-target-gperf
37640maybe-all-target-gperf:
3ff3adad
PB
37641@if gcc-bootstrap
37642all-target-gperf: stage_current
37643@endif gcc-bootstrap
60975492 37644@if target-gperf
7c27e184 37645TARGET-target-gperf=all
60975492 37646maybe-all-target-gperf: all-target-gperf
295f4e42 37647all-target-gperf: configure-target-gperf
f41d6665 37648 @: $(MAKE); $(unstage)
8c90b13a
L
37649 @r=`${PWD_COMMAND}`; export r; \
37650 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37651 $(NORMAL_TARGET_EXPORTS) \
295f4e42 37652 (cd $(TARGET_SUBDIR)/gperf && \
25b42232 37653 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-gperf))
60975492 37654@endif target-gperf
4977bab6 37655
25b42232
PB
37656
37657
ce406537
PB
37658
37659
295f4e42
NN
37660.PHONY: check-target-gperf maybe-check-target-gperf
37661maybe-check-target-gperf:
60975492
PB
37662@if target-gperf
37663maybe-check-target-gperf: check-target-gperf
7e2dbcef 37664
295f4e42 37665check-target-gperf:
f41d6665 37666 @: $(MAKE); $(unstage)
8c90b13a
L
37667 @r=`${PWD_COMMAND}`; export r; \
37668 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37669 $(NORMAL_TARGET_EXPORTS) \
295f4e42 37670 (cd $(TARGET_SUBDIR)/gperf && \
a52a0a7f 37671 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4977bab6 37672
60975492 37673@endif target-gperf
4977bab6 37674
295f4e42
NN
37675.PHONY: install-target-gperf maybe-install-target-gperf
37676maybe-install-target-gperf:
60975492
PB
37677@if target-gperf
37678maybe-install-target-gperf: install-target-gperf
295f4e42
NN
37679
37680install-target-gperf: installdirs
f41d6665 37681 @: $(MAKE); $(unstage)
295f4e42
NN
37682 @r=`${PWD_COMMAND}`; export r; \
37683 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37684 $(NORMAL_TARGET_EXPORTS) \
295f4e42 37685 (cd $(TARGET_SUBDIR)/gperf && \
a52a0a7f 37686 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
295f4e42 37687
60975492 37688@endif target-gperf
295f4e42 37689
b5422ad7 37690# Other targets (info, dvi, pdf, etc.)
295f4e42
NN
37691
37692.PHONY: maybe-info-target-gperf info-target-gperf
37693maybe-info-target-gperf:
60975492
PB
37694@if target-gperf
37695maybe-info-target-gperf: info-target-gperf
295f4e42
NN
37696
37697info-target-gperf: \
05750653 37698 configure-target-gperf
f41d6665 37699 @: $(MAKE); $(unstage)
295f4e42
NN
37700 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
37701 r=`${PWD_COMMAND}`; export r; \
37702 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37703 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37704 echo "Doing info in $(TARGET_SUBDIR)/gperf" ; \
37705 for flag in $(EXTRA_TARGET_FLAGS); do \
37706 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37707 done; \
37708 (cd $(TARGET_SUBDIR)/gperf && \
37709 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37710 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37711 "RANLIB=$${RANLIB}" \
37712 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37713 info) \
295f4e42
NN
37714 || exit 1
37715
60975492 37716@endif target-gperf
295f4e42
NN
37717
37718.PHONY: maybe-dvi-target-gperf dvi-target-gperf
37719maybe-dvi-target-gperf:
60975492
PB
37720@if target-gperf
37721maybe-dvi-target-gperf: dvi-target-gperf
295f4e42
NN
37722
37723dvi-target-gperf: \
05750653 37724 configure-target-gperf
f41d6665 37725 @: $(MAKE); $(unstage)
295f4e42
NN
37726 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
37727 r=`${PWD_COMMAND}`; export r; \
37728 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37729 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37730 echo "Doing dvi in $(TARGET_SUBDIR)/gperf" ; \
37731 for flag in $(EXTRA_TARGET_FLAGS); do \
37732 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37733 done; \
37734 (cd $(TARGET_SUBDIR)/gperf && \
37735 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37736 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37737 "RANLIB=$${RANLIB}" \
37738 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37739 dvi) \
295f4e42
NN
37740 || exit 1
37741
60975492 37742@endif target-gperf
295f4e42 37743
b5422ad7
BM
37744.PHONY: maybe-pdf-target-gperf pdf-target-gperf
37745maybe-pdf-target-gperf:
37746@if target-gperf
37747maybe-pdf-target-gperf: pdf-target-gperf
37748
37749pdf-target-gperf: \
37750 configure-target-gperf
37751 @: $(MAKE); $(unstage)
37752 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
37753 r=`${PWD_COMMAND}`; export r; \
37754 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37755 $(NORMAL_TARGET_EXPORTS) \
37756 echo "Doing pdf in $(TARGET_SUBDIR)/gperf" ; \
37757 for flag in $(EXTRA_TARGET_FLAGS); do \
37758 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37759 done; \
37760 (cd $(TARGET_SUBDIR)/gperf && \
37761 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37762 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37763 "RANLIB=$${RANLIB}" \
37764 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
37765 pdf) \
37766 || exit 1
37767
37768@endif target-gperf
37769
f87a2b2e
MS
37770.PHONY: maybe-html-target-gperf html-target-gperf
37771maybe-html-target-gperf:
37772@if target-gperf
37773maybe-html-target-gperf: html-target-gperf
37774
37775html-target-gperf: \
05750653 37776 configure-target-gperf
f41d6665 37777 @: $(MAKE); $(unstage)
f87a2b2e
MS
37778 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
37779 r=`${PWD_COMMAND}`; export r; \
37780 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
37781 $(NORMAL_TARGET_EXPORTS) \
37782 echo "Doing html in $(TARGET_SUBDIR)/gperf" ; \
37783 for flag in $(EXTRA_TARGET_FLAGS); do \
37784 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37785 done; \
37786 (cd $(TARGET_SUBDIR)/gperf && \
37787 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37788 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37789 "RANLIB=$${RANLIB}" \
37790 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
37791 html) \
37792 || exit 1
37793
37794@endif target-gperf
37795
295f4e42
NN
37796.PHONY: maybe-TAGS-target-gperf TAGS-target-gperf
37797maybe-TAGS-target-gperf:
60975492
PB
37798@if target-gperf
37799maybe-TAGS-target-gperf: TAGS-target-gperf
295f4e42
NN
37800
37801TAGS-target-gperf: \
05750653 37802 configure-target-gperf
f41d6665 37803 @: $(MAKE); $(unstage)
295f4e42
NN
37804 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
37805 r=`${PWD_COMMAND}`; export r; \
37806 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37807 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37808 echo "Doing TAGS in $(TARGET_SUBDIR)/gperf" ; \
37809 for flag in $(EXTRA_TARGET_FLAGS); do \
37810 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37811 done; \
37812 (cd $(TARGET_SUBDIR)/gperf && \
37813 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37814 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37815 "RANLIB=$${RANLIB}" \
37816 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37817 TAGS) \
295f4e42
NN
37818 || exit 1
37819
60975492 37820@endif target-gperf
295f4e42
NN
37821
37822.PHONY: maybe-install-info-target-gperf install-info-target-gperf
37823maybe-install-info-target-gperf:
60975492
PB
37824@if target-gperf
37825maybe-install-info-target-gperf: install-info-target-gperf
295f4e42
NN
37826
37827install-info-target-gperf: \
37828 configure-target-gperf \
05750653 37829 info-target-gperf
f41d6665 37830 @: $(MAKE); $(unstage)
295f4e42
NN
37831 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
37832 r=`${PWD_COMMAND}`; export r; \
37833 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37834 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37835 echo "Doing install-info in $(TARGET_SUBDIR)/gperf" ; \
37836 for flag in $(EXTRA_TARGET_FLAGS); do \
37837 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37838 done; \
37839 (cd $(TARGET_SUBDIR)/gperf && \
37840 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37841 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37842 "RANLIB=$${RANLIB}" \
37843 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37844 install-info) \
295f4e42
NN
37845 || exit 1
37846
60975492 37847@endif target-gperf
295f4e42 37848
65d6e994
CD
37849.PHONY: maybe-install-html-target-gperf install-html-target-gperf
37850maybe-install-html-target-gperf:
37851@if target-gperf
37852maybe-install-html-target-gperf: install-html-target-gperf
37853
37854install-html-target-gperf: \
37855 configure-target-gperf \
37856 html-target-gperf
37857 @: $(MAKE); $(unstage)
37858 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
37859 r=`${PWD_COMMAND}`; export r; \
37860 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
37861 $(NORMAL_TARGET_EXPORTS) \
37862 echo "Doing install-html in $(TARGET_SUBDIR)/gperf" ; \
37863 for flag in $(EXTRA_TARGET_FLAGS); do \
37864 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37865 done; \
37866 (cd $(TARGET_SUBDIR)/gperf && \
37867 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37868 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37869 "RANLIB=$${RANLIB}" \
37870 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
37871 install-html) \
37872 || exit 1
37873
37874@endif target-gperf
37875
295f4e42
NN
37876.PHONY: maybe-installcheck-target-gperf installcheck-target-gperf
37877maybe-installcheck-target-gperf:
60975492
PB
37878@if target-gperf
37879maybe-installcheck-target-gperf: installcheck-target-gperf
295f4e42
NN
37880
37881installcheck-target-gperf: \
05750653 37882 configure-target-gperf
f41d6665 37883 @: $(MAKE); $(unstage)
295f4e42
NN
37884 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
37885 r=`${PWD_COMMAND}`; export r; \
37886 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37887 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37888 echo "Doing installcheck in $(TARGET_SUBDIR)/gperf" ; \
37889 for flag in $(EXTRA_TARGET_FLAGS); do \
37890 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37891 done; \
37892 (cd $(TARGET_SUBDIR)/gperf && \
37893 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37894 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37895 "RANLIB=$${RANLIB}" \
37896 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37897 installcheck) \
295f4e42
NN
37898 || exit 1
37899
60975492 37900@endif target-gperf
295f4e42
NN
37901
37902.PHONY: maybe-mostlyclean-target-gperf mostlyclean-target-gperf
37903maybe-mostlyclean-target-gperf:
60975492
PB
37904@if target-gperf
37905maybe-mostlyclean-target-gperf: mostlyclean-target-gperf
295f4e42 37906
05750653 37907mostlyclean-target-gperf:
f41d6665 37908 @: $(MAKE); $(unstage)
295f4e42
NN
37909 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
37910 r=`${PWD_COMMAND}`; export r; \
37911 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37912 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37913 echo "Doing mostlyclean in $(TARGET_SUBDIR)/gperf" ; \
37914 for flag in $(EXTRA_TARGET_FLAGS); do \
37915 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37916 done; \
37917 (cd $(TARGET_SUBDIR)/gperf && \
37918 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37919 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37920 "RANLIB=$${RANLIB}" \
37921 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37922 mostlyclean) \
295f4e42
NN
37923 || exit 1
37924
60975492 37925@endif target-gperf
295f4e42
NN
37926
37927.PHONY: maybe-clean-target-gperf clean-target-gperf
37928maybe-clean-target-gperf:
60975492
PB
37929@if target-gperf
37930maybe-clean-target-gperf: clean-target-gperf
295f4e42 37931
05750653 37932clean-target-gperf:
f41d6665 37933 @: $(MAKE); $(unstage)
295f4e42
NN
37934 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
37935 r=`${PWD_COMMAND}`; export r; \
37936 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37937 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37938 echo "Doing clean in $(TARGET_SUBDIR)/gperf" ; \
37939 for flag in $(EXTRA_TARGET_FLAGS); do \
37940 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37941 done; \
37942 (cd $(TARGET_SUBDIR)/gperf && \
37943 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37944 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37945 "RANLIB=$${RANLIB}" \
37946 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37947 clean) \
295f4e42
NN
37948 || exit 1
37949
60975492 37950@endif target-gperf
295f4e42
NN
37951
37952.PHONY: maybe-distclean-target-gperf distclean-target-gperf
37953maybe-distclean-target-gperf:
60975492
PB
37954@if target-gperf
37955maybe-distclean-target-gperf: distclean-target-gperf
295f4e42 37956
05750653 37957distclean-target-gperf:
f41d6665 37958 @: $(MAKE); $(unstage)
295f4e42
NN
37959 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
37960 r=`${PWD_COMMAND}`; export r; \
37961 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37962 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37963 echo "Doing distclean in $(TARGET_SUBDIR)/gperf" ; \
37964 for flag in $(EXTRA_TARGET_FLAGS); do \
37965 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37966 done; \
37967 (cd $(TARGET_SUBDIR)/gperf && \
37968 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37969 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37970 "RANLIB=$${RANLIB}" \
37971 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37972 distclean) \
295f4e42
NN
37973 || exit 1
37974
60975492 37975@endif target-gperf
295f4e42
NN
37976
37977.PHONY: maybe-maintainer-clean-target-gperf maintainer-clean-target-gperf
37978maybe-maintainer-clean-target-gperf:
60975492
PB
37979@if target-gperf
37980maybe-maintainer-clean-target-gperf: maintainer-clean-target-gperf
295f4e42 37981
05750653 37982maintainer-clean-target-gperf:
f41d6665 37983 @: $(MAKE); $(unstage)
295f4e42
NN
37984 @[ -f $(TARGET_SUBDIR)/gperf/Makefile ] || exit 0 ; \
37985 r=`${PWD_COMMAND}`; export r; \
37986 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 37987 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
37988 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/gperf" ; \
37989 for flag in $(EXTRA_TARGET_FLAGS); do \
37990 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
37991 done; \
37992 (cd $(TARGET_SUBDIR)/gperf && \
37993 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
37994 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
37995 "RANLIB=$${RANLIB}" \
37996 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 37997 maintainer-clean) \
295f4e42 37998 || exit 1
7e2dbcef 37999
60975492 38000@endif target-gperf
4977bab6
ZW
38001
38002
4977bab6 38003
25b42232
PB
38004
38005
38006.PHONY: configure-target-examples maybe-configure-target-examples
38007maybe-configure-target-examples:
3ff3adad
PB
38008@if gcc-bootstrap
38009configure-target-examples: stage_current
38010@endif gcc-bootstrap
25b42232
PB
38011@if target-examples
38012maybe-configure-target-examples: configure-target-examples
cc11cc9b 38013configure-target-examples:
f41d6665
DJ
38014 @: $(MAKE); $(unstage)
38015 @r=`${PWD_COMMAND}`; export r; \
38016 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38017 echo "Checking multilib configuration for examples..."; \
38018 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/examples ; \
38019 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/examples/multilib.tmp 2> /dev/null ; \
38020 if test -r $(TARGET_SUBDIR)/examples/multilib.out; then \
38021 if cmp -s $(TARGET_SUBDIR)/examples/multilib.tmp $(TARGET_SUBDIR)/examples/multilib.out; then \
38022 rm -f $(TARGET_SUBDIR)/examples/multilib.tmp; \
38023 else \
38024 rm -f $(TARGET_SUBDIR)/examples/Makefile; \
38025 mv $(TARGET_SUBDIR)/examples/multilib.tmp $(TARGET_SUBDIR)/examples/multilib.out; \
38026 fi; \
38027 else \
38028 mv $(TARGET_SUBDIR)/examples/multilib.tmp $(TARGET_SUBDIR)/examples/multilib.out; \
cc11cc9b
PB
38029 fi; \
38030 test ! -f $(TARGET_SUBDIR)/examples/Makefile || exit 0; \
295f4e42 38031 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/examples ; \
4fc4dd12 38032 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38033 echo Configuring in $(TARGET_SUBDIR)/examples; \
38034 cd "$(TARGET_SUBDIR)/examples" || exit 1; \
3aa83176 38035 case $(srcdir) in \
215c351a
PB
38036 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38037 *) topdir=`echo $(TARGET_SUBDIR)/examples/ | \
38038 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3aa83176 38039 esac; \
215c351a
PB
38040 srcdiroption="--srcdir=$${topdir}/examples"; \
38041 libsrcdir="$$s/examples"; \
3aa83176
NN
38042 rm -f no-such-file || : ; \
38043 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 38044 $(TARGET_CONFIGARGS) $${srcdiroption} \
3aa83176 38045 || exit 1
60975492 38046@endif target-examples
4977bab6 38047
25b42232
PB
38048
38049
ce406537
PB
38050
38051
295f4e42
NN
38052.PHONY: all-target-examples maybe-all-target-examples
38053maybe-all-target-examples:
3ff3adad
PB
38054@if gcc-bootstrap
38055all-target-examples: stage_current
38056@endif gcc-bootstrap
60975492 38057@if target-examples
7c27e184 38058TARGET-target-examples=all
60975492 38059maybe-all-target-examples: all-target-examples
295f4e42 38060all-target-examples: configure-target-examples
f41d6665 38061 @: $(MAKE); $(unstage)
8c90b13a
L
38062 @r=`${PWD_COMMAND}`; export r; \
38063 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38064 $(NORMAL_TARGET_EXPORTS) \
295f4e42 38065 (cd $(TARGET_SUBDIR)/examples && \
25b42232 38066 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-examples))
60975492 38067@endif target-examples
4977bab6 38068
25b42232
PB
38069
38070
ce406537
PB
38071
38072
295f4e42
NN
38073.PHONY: check-target-examples maybe-check-target-examples
38074maybe-check-target-examples:
60975492
PB
38075@if target-examples
38076maybe-check-target-examples: check-target-examples
7e2dbcef 38077
295f4e42
NN
38078# Dummy target for uncheckable module.
38079check-target-examples:
38080
60975492 38081@endif target-examples
295f4e42
NN
38082
38083.PHONY: install-target-examples maybe-install-target-examples
38084maybe-install-target-examples:
60975492
PB
38085@if target-examples
38086maybe-install-target-examples: install-target-examples
295f4e42
NN
38087
38088# Dummy target for uninstallable.
38089install-target-examples:
38090
60975492 38091@endif target-examples
295f4e42 38092
b5422ad7 38093# Other targets (info, dvi, pdf, etc.)
295f4e42
NN
38094
38095.PHONY: maybe-info-target-examples info-target-examples
38096maybe-info-target-examples:
60975492
PB
38097@if target-examples
38098maybe-info-target-examples: info-target-examples
295f4e42
NN
38099
38100info-target-examples: \
05750653 38101 configure-target-examples
f41d6665 38102 @: $(MAKE); $(unstage)
295f4e42
NN
38103 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
38104 r=`${PWD_COMMAND}`; export r; \
8c90b13a 38105 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38106 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38107 echo "Doing info in $(TARGET_SUBDIR)/examples" ; \
38108 for flag in $(EXTRA_TARGET_FLAGS); do \
38109 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38110 done; \
38111 (cd $(TARGET_SUBDIR)/examples && \
38112 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38113 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38114 "RANLIB=$${RANLIB}" \
38115 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 38116 info) \
295f4e42 38117 || exit 1
4977bab6 38118
60975492 38119@endif target-examples
4977bab6 38120
295f4e42
NN
38121.PHONY: maybe-dvi-target-examples dvi-target-examples
38122maybe-dvi-target-examples:
60975492
PB
38123@if target-examples
38124maybe-dvi-target-examples: dvi-target-examples
7e2dbcef 38125
295f4e42 38126dvi-target-examples: \
05750653 38127 configure-target-examples
f41d6665 38128 @: $(MAKE); $(unstage)
295f4e42
NN
38129 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
38130 r=`${PWD_COMMAND}`; export r; \
8c90b13a 38131 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38132 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38133 echo "Doing dvi in $(TARGET_SUBDIR)/examples" ; \
38134 for flag in $(EXTRA_TARGET_FLAGS); do \
38135 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38136 done; \
38137 (cd $(TARGET_SUBDIR)/examples && \
38138 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38139 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38140 "RANLIB=$${RANLIB}" \
38141 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 38142 dvi) \
295f4e42
NN
38143 || exit 1
38144
60975492 38145@endif target-examples
295f4e42 38146
b5422ad7
BM
38147.PHONY: maybe-pdf-target-examples pdf-target-examples
38148maybe-pdf-target-examples:
38149@if target-examples
38150maybe-pdf-target-examples: pdf-target-examples
38151
38152pdf-target-examples: \
38153 configure-target-examples
38154 @: $(MAKE); $(unstage)
38155 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
38156 r=`${PWD_COMMAND}`; export r; \
38157 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38158 $(NORMAL_TARGET_EXPORTS) \
38159 echo "Doing pdf in $(TARGET_SUBDIR)/examples" ; \
38160 for flag in $(EXTRA_TARGET_FLAGS); do \
38161 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38162 done; \
38163 (cd $(TARGET_SUBDIR)/examples && \
38164 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38165 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38166 "RANLIB=$${RANLIB}" \
38167 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
38168 pdf) \
38169 || exit 1
38170
38171@endif target-examples
38172
f87a2b2e
MS
38173.PHONY: maybe-html-target-examples html-target-examples
38174maybe-html-target-examples:
38175@if target-examples
38176maybe-html-target-examples: html-target-examples
38177
38178html-target-examples: \
05750653 38179 configure-target-examples
f41d6665 38180 @: $(MAKE); $(unstage)
f87a2b2e
MS
38181 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
38182 r=`${PWD_COMMAND}`; export r; \
38183 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
38184 $(NORMAL_TARGET_EXPORTS) \
38185 echo "Doing html in $(TARGET_SUBDIR)/examples" ; \
38186 for flag in $(EXTRA_TARGET_FLAGS); do \
38187 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38188 done; \
38189 (cd $(TARGET_SUBDIR)/examples && \
38190 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38191 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38192 "RANLIB=$${RANLIB}" \
38193 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
38194 html) \
38195 || exit 1
38196
38197@endif target-examples
38198
295f4e42
NN
38199.PHONY: maybe-TAGS-target-examples TAGS-target-examples
38200maybe-TAGS-target-examples:
60975492
PB
38201@if target-examples
38202maybe-TAGS-target-examples: TAGS-target-examples
295f4e42
NN
38203
38204TAGS-target-examples: \
05750653 38205 configure-target-examples
f41d6665 38206 @: $(MAKE); $(unstage)
295f4e42
NN
38207 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
38208 r=`${PWD_COMMAND}`; export r; \
38209 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38210 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38211 echo "Doing TAGS in $(TARGET_SUBDIR)/examples" ; \
38212 for flag in $(EXTRA_TARGET_FLAGS); do \
38213 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38214 done; \
38215 (cd $(TARGET_SUBDIR)/examples && \
38216 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38217 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38218 "RANLIB=$${RANLIB}" \
38219 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 38220 TAGS) \
295f4e42
NN
38221 || exit 1
38222
60975492 38223@endif target-examples
295f4e42
NN
38224
38225.PHONY: maybe-install-info-target-examples install-info-target-examples
38226maybe-install-info-target-examples:
60975492
PB
38227@if target-examples
38228maybe-install-info-target-examples: install-info-target-examples
295f4e42
NN
38229
38230install-info-target-examples: \
38231 configure-target-examples \
05750653 38232 info-target-examples
f41d6665 38233 @: $(MAKE); $(unstage)
295f4e42
NN
38234 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
38235 r=`${PWD_COMMAND}`; export r; \
38236 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38237 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38238 echo "Doing install-info in $(TARGET_SUBDIR)/examples" ; \
38239 for flag in $(EXTRA_TARGET_FLAGS); do \
38240 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38241 done; \
38242 (cd $(TARGET_SUBDIR)/examples && \
38243 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38244 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38245 "RANLIB=$${RANLIB}" \
38246 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 38247 install-info) \
295f4e42
NN
38248 || exit 1
38249
60975492 38250@endif target-examples
295f4e42 38251
65d6e994
CD
38252.PHONY: maybe-install-html-target-examples install-html-target-examples
38253maybe-install-html-target-examples:
38254@if target-examples
38255maybe-install-html-target-examples: install-html-target-examples
38256
38257install-html-target-examples: \
38258 configure-target-examples \
38259 html-target-examples
38260 @: $(MAKE); $(unstage)
38261 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
38262 r=`${PWD_COMMAND}`; export r; \
38263 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38264 $(NORMAL_TARGET_EXPORTS) \
38265 echo "Doing install-html in $(TARGET_SUBDIR)/examples" ; \
38266 for flag in $(EXTRA_TARGET_FLAGS); do \
38267 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38268 done; \
38269 (cd $(TARGET_SUBDIR)/examples && \
38270 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38271 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38272 "RANLIB=$${RANLIB}" \
38273 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
38274 install-html) \
38275 || exit 1
38276
38277@endif target-examples
38278
295f4e42
NN
38279.PHONY: maybe-installcheck-target-examples installcheck-target-examples
38280maybe-installcheck-target-examples:
60975492
PB
38281@if target-examples
38282maybe-installcheck-target-examples: installcheck-target-examples
295f4e42
NN
38283
38284installcheck-target-examples: \
05750653 38285 configure-target-examples
f41d6665 38286 @: $(MAKE); $(unstage)
295f4e42
NN
38287 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
38288 r=`${PWD_COMMAND}`; export r; \
38289 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38290 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38291 echo "Doing installcheck in $(TARGET_SUBDIR)/examples" ; \
38292 for flag in $(EXTRA_TARGET_FLAGS); do \
38293 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38294 done; \
38295 (cd $(TARGET_SUBDIR)/examples && \
38296 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38297 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38298 "RANLIB=$${RANLIB}" \
38299 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 38300 installcheck) \
295f4e42
NN
38301 || exit 1
38302
60975492 38303@endif target-examples
295f4e42
NN
38304
38305.PHONY: maybe-mostlyclean-target-examples mostlyclean-target-examples
38306maybe-mostlyclean-target-examples:
60975492
PB
38307@if target-examples
38308maybe-mostlyclean-target-examples: mostlyclean-target-examples
295f4e42 38309
05750653 38310mostlyclean-target-examples:
f41d6665 38311 @: $(MAKE); $(unstage)
295f4e42
NN
38312 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
38313 r=`${PWD_COMMAND}`; export r; \
38314 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38315 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38316 echo "Doing mostlyclean in $(TARGET_SUBDIR)/examples" ; \
38317 for flag in $(EXTRA_TARGET_FLAGS); do \
38318 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38319 done; \
38320 (cd $(TARGET_SUBDIR)/examples && \
38321 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38322 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38323 "RANLIB=$${RANLIB}" \
38324 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 38325 mostlyclean) \
295f4e42
NN
38326 || exit 1
38327
60975492 38328@endif target-examples
295f4e42
NN
38329
38330.PHONY: maybe-clean-target-examples clean-target-examples
38331maybe-clean-target-examples:
60975492
PB
38332@if target-examples
38333maybe-clean-target-examples: clean-target-examples
295f4e42 38334
05750653 38335clean-target-examples:
f41d6665 38336 @: $(MAKE); $(unstage)
295f4e42
NN
38337 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
38338 r=`${PWD_COMMAND}`; export r; \
38339 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38340 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38341 echo "Doing clean in $(TARGET_SUBDIR)/examples" ; \
38342 for flag in $(EXTRA_TARGET_FLAGS); do \
38343 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38344 done; \
38345 (cd $(TARGET_SUBDIR)/examples && \
38346 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38347 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38348 "RANLIB=$${RANLIB}" \
38349 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 38350 clean) \
295f4e42
NN
38351 || exit 1
38352
60975492 38353@endif target-examples
295f4e42
NN
38354
38355.PHONY: maybe-distclean-target-examples distclean-target-examples
38356maybe-distclean-target-examples:
60975492
PB
38357@if target-examples
38358maybe-distclean-target-examples: distclean-target-examples
295f4e42 38359
05750653 38360distclean-target-examples:
f41d6665 38361 @: $(MAKE); $(unstage)
295f4e42
NN
38362 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
38363 r=`${PWD_COMMAND}`; export r; \
38364 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38365 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38366 echo "Doing distclean in $(TARGET_SUBDIR)/examples" ; \
38367 for flag in $(EXTRA_TARGET_FLAGS); do \
38368 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38369 done; \
38370 (cd $(TARGET_SUBDIR)/examples && \
38371 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38372 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38373 "RANLIB=$${RANLIB}" \
38374 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 38375 distclean) \
295f4e42
NN
38376 || exit 1
38377
60975492 38378@endif target-examples
295f4e42
NN
38379
38380.PHONY: maybe-maintainer-clean-target-examples maintainer-clean-target-examples
38381maybe-maintainer-clean-target-examples:
60975492
PB
38382@if target-examples
38383maybe-maintainer-clean-target-examples: maintainer-clean-target-examples
295f4e42 38384
05750653 38385maintainer-clean-target-examples:
f41d6665 38386 @: $(MAKE); $(unstage)
295f4e42
NN
38387 @[ -f $(TARGET_SUBDIR)/examples/Makefile ] || exit 0 ; \
38388 r=`${PWD_COMMAND}`; export r; \
38389 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38390 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38391 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/examples" ; \
38392 for flag in $(EXTRA_TARGET_FLAGS); do \
38393 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38394 done; \
38395 (cd $(TARGET_SUBDIR)/examples && \
38396 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38397 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38398 "RANLIB=$${RANLIB}" \
38399 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 38400 maintainer-clean) \
295f4e42 38401 || exit 1
4977bab6 38402
60975492 38403@endif target-examples
4977bab6 38404
295f4e42 38405
4977bab6 38406
25b42232 38407
4977bab6 38408
25b42232
PB
38409.PHONY: configure-target-libffi maybe-configure-target-libffi
38410maybe-configure-target-libffi:
3ff3adad
PB
38411@if gcc-bootstrap
38412configure-target-libffi: stage_current
38413@endif gcc-bootstrap
25b42232
PB
38414@if target-libffi
38415maybe-configure-target-libffi: configure-target-libffi
cc11cc9b 38416configure-target-libffi:
f41d6665
DJ
38417 @: $(MAKE); $(unstage)
38418 @r=`${PWD_COMMAND}`; export r; \
38419 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38420 echo "Checking multilib configuration for libffi..."; \
38421 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libffi ; \
38422 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libffi/multilib.tmp 2> /dev/null ; \
38423 if test -r $(TARGET_SUBDIR)/libffi/multilib.out; then \
38424 if cmp -s $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; then \
38425 rm -f $(TARGET_SUBDIR)/libffi/multilib.tmp; \
38426 else \
38427 rm -f $(TARGET_SUBDIR)/libffi/Makefile; \
38428 mv $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; \
38429 fi; \
38430 else \
38431 mv $(TARGET_SUBDIR)/libffi/multilib.tmp $(TARGET_SUBDIR)/libffi/multilib.out; \
cc11cc9b
PB
38432 fi; \
38433 test ! -f $(TARGET_SUBDIR)/libffi/Makefile || exit 0; \
295f4e42 38434 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libffi ; \
4fc4dd12 38435 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38436 echo Configuring in $(TARGET_SUBDIR)/libffi; \
38437 cd "$(TARGET_SUBDIR)/libffi" || exit 1; \
3aa83176 38438 case $(srcdir) in \
215c351a
PB
38439 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38440 *) topdir=`echo $(TARGET_SUBDIR)/libffi/ | \
38441 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3aa83176 38442 esac; \
215c351a
PB
38443 srcdiroption="--srcdir=$${topdir}/libffi"; \
38444 libsrcdir="$$s/libffi"; \
3aa83176
NN
38445 rm -f no-such-file || : ; \
38446 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 38447 $(TARGET_CONFIGARGS) $${srcdiroption} \
3aa83176 38448 || exit 1
60975492 38449@endif target-libffi
4977bab6 38450
25b42232
PB
38451
38452
ce406537
PB
38453
38454
295f4e42
NN
38455.PHONY: all-target-libffi maybe-all-target-libffi
38456maybe-all-target-libffi:
3ff3adad
PB
38457@if gcc-bootstrap
38458all-target-libffi: stage_current
38459@endif gcc-bootstrap
60975492 38460@if target-libffi
7c27e184 38461TARGET-target-libffi=all
60975492 38462maybe-all-target-libffi: all-target-libffi
295f4e42 38463all-target-libffi: configure-target-libffi
f41d6665 38464 @: $(MAKE); $(unstage)
8c90b13a
L
38465 @r=`${PWD_COMMAND}`; export r; \
38466 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38467 $(NORMAL_TARGET_EXPORTS) \
295f4e42 38468 (cd $(TARGET_SUBDIR)/libffi && \
25b42232 38469 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libffi))
60975492 38470@endif target-libffi
4977bab6 38471
25b42232
PB
38472
38473
ce406537
PB
38474
38475
295f4e42
NN
38476.PHONY: check-target-libffi maybe-check-target-libffi
38477maybe-check-target-libffi:
60975492
PB
38478@if target-libffi
38479maybe-check-target-libffi: check-target-libffi
7e2dbcef 38480
295f4e42 38481check-target-libffi:
f41d6665 38482 @: $(MAKE); $(unstage)
8c90b13a
L
38483 @r=`${PWD_COMMAND}`; export r; \
38484 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38485 $(NORMAL_TARGET_EXPORTS) \
295f4e42 38486 (cd $(TARGET_SUBDIR)/libffi && \
a52a0a7f 38487 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4977bab6 38488
60975492 38489@endif target-libffi
4977bab6 38490
295f4e42
NN
38491.PHONY: install-target-libffi maybe-install-target-libffi
38492maybe-install-target-libffi:
60975492
PB
38493@if target-libffi
38494maybe-install-target-libffi: install-target-libffi
7e2dbcef 38495
295f4e42 38496install-target-libffi: installdirs
f41d6665 38497 @: $(MAKE); $(unstage)
8c90b13a
L
38498 @r=`${PWD_COMMAND}`; export r; \
38499 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38500 $(NORMAL_TARGET_EXPORTS) \
295f4e42 38501 (cd $(TARGET_SUBDIR)/libffi && \
a52a0a7f 38502 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4977bab6 38503
60975492 38504@endif target-libffi
4977bab6 38505
b5422ad7 38506# Other targets (info, dvi, pdf, etc.)
295f4e42
NN
38507
38508.PHONY: maybe-info-target-libffi info-target-libffi
38509maybe-info-target-libffi:
60975492
PB
38510@if target-libffi
38511maybe-info-target-libffi: info-target-libffi
295f4e42
NN
38512
38513info-target-libffi: \
05750653 38514 configure-target-libffi
f41d6665 38515 @: $(MAKE); $(unstage)
295f4e42
NN
38516 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
38517 r=`${PWD_COMMAND}`; export r; \
38518 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38519 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38520 echo "Doing info in $(TARGET_SUBDIR)/libffi" ; \
38521 for flag in $(EXTRA_TARGET_FLAGS); do \
38522 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38523 done; \
38524 (cd $(TARGET_SUBDIR)/libffi && \
38525 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38526 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38527 "RANLIB=$${RANLIB}" \
38528 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 38529 info) \
295f4e42
NN
38530 || exit 1
38531
60975492 38532@endif target-libffi
295f4e42
NN
38533
38534.PHONY: maybe-dvi-target-libffi dvi-target-libffi
38535maybe-dvi-target-libffi:
60975492
PB
38536@if target-libffi
38537maybe-dvi-target-libffi: dvi-target-libffi
295f4e42
NN
38538
38539dvi-target-libffi: \
05750653 38540 configure-target-libffi
f41d6665 38541 @: $(MAKE); $(unstage)
295f4e42
NN
38542 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
38543 r=`${PWD_COMMAND}`; export r; \
38544 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38545 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38546 echo "Doing dvi in $(TARGET_SUBDIR)/libffi" ; \
38547 for flag in $(EXTRA_TARGET_FLAGS); do \
38548 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38549 done; \
38550 (cd $(TARGET_SUBDIR)/libffi && \
38551 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38552 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38553 "RANLIB=$${RANLIB}" \
38554 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 38555 dvi) \
295f4e42
NN
38556 || exit 1
38557
60975492 38558@endif target-libffi
295f4e42 38559
b5422ad7
BM
38560.PHONY: maybe-pdf-target-libffi pdf-target-libffi
38561maybe-pdf-target-libffi:
38562@if target-libffi
38563maybe-pdf-target-libffi: pdf-target-libffi
38564
38565pdf-target-libffi: \
38566 configure-target-libffi
38567 @: $(MAKE); $(unstage)
38568 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
38569 r=`${PWD_COMMAND}`; export r; \
38570 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38571 $(NORMAL_TARGET_EXPORTS) \
38572 echo "Doing pdf in $(TARGET_SUBDIR)/libffi" ; \
38573 for flag in $(EXTRA_TARGET_FLAGS); do \
38574 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38575 done; \
38576 (cd $(TARGET_SUBDIR)/libffi && \
38577 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38578 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38579 "RANLIB=$${RANLIB}" \
38580 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
38581 pdf) \
38582 || exit 1
38583
38584@endif target-libffi
38585
f87a2b2e
MS
38586.PHONY: maybe-html-target-libffi html-target-libffi
38587maybe-html-target-libffi:
38588@if target-libffi
38589maybe-html-target-libffi: html-target-libffi
38590
38591html-target-libffi: \
05750653 38592 configure-target-libffi
f41d6665 38593 @: $(MAKE); $(unstage)
f87a2b2e
MS
38594 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
38595 r=`${PWD_COMMAND}`; export r; \
38596 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
38597 $(NORMAL_TARGET_EXPORTS) \
38598 echo "Doing html in $(TARGET_SUBDIR)/libffi" ; \
38599 for flag in $(EXTRA_TARGET_FLAGS); do \
38600 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38601 done; \
38602 (cd $(TARGET_SUBDIR)/libffi && \
38603 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38604 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38605 "RANLIB=$${RANLIB}" \
38606 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
38607 html) \
38608 || exit 1
38609
38610@endif target-libffi
38611
295f4e42
NN
38612.PHONY: maybe-TAGS-target-libffi TAGS-target-libffi
38613maybe-TAGS-target-libffi:
60975492
PB
38614@if target-libffi
38615maybe-TAGS-target-libffi: TAGS-target-libffi
295f4e42
NN
38616
38617TAGS-target-libffi: \
05750653 38618 configure-target-libffi
f41d6665 38619 @: $(MAKE); $(unstage)
295f4e42
NN
38620 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
38621 r=`${PWD_COMMAND}`; export r; \
38622 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38623 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38624 echo "Doing TAGS in $(TARGET_SUBDIR)/libffi" ; \
38625 for flag in $(EXTRA_TARGET_FLAGS); do \
38626 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38627 done; \
38628 (cd $(TARGET_SUBDIR)/libffi && \
38629 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38630 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38631 "RANLIB=$${RANLIB}" \
38632 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 38633 TAGS) \
295f4e42
NN
38634 || exit 1
38635
60975492 38636@endif target-libffi
295f4e42
NN
38637
38638.PHONY: maybe-install-info-target-libffi install-info-target-libffi
38639maybe-install-info-target-libffi:
60975492
PB
38640@if target-libffi
38641maybe-install-info-target-libffi: install-info-target-libffi
295f4e42
NN
38642
38643install-info-target-libffi: \
38644 configure-target-libffi \
05750653 38645 info-target-libffi
f41d6665 38646 @: $(MAKE); $(unstage)
295f4e42
NN
38647 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
38648 r=`${PWD_COMMAND}`; export r; \
38649 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38650 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38651 echo "Doing install-info in $(TARGET_SUBDIR)/libffi" ; \
38652 for flag in $(EXTRA_TARGET_FLAGS); do \
38653 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38654 done; \
38655 (cd $(TARGET_SUBDIR)/libffi && \
38656 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38657 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38658 "RANLIB=$${RANLIB}" \
38659 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 38660 install-info) \
295f4e42
NN
38661 || exit 1
38662
60975492 38663@endif target-libffi
295f4e42 38664
65d6e994
CD
38665.PHONY: maybe-install-html-target-libffi install-html-target-libffi
38666maybe-install-html-target-libffi:
38667@if target-libffi
38668maybe-install-html-target-libffi: install-html-target-libffi
38669
38670install-html-target-libffi: \
38671 configure-target-libffi \
38672 html-target-libffi
38673 @: $(MAKE); $(unstage)
38674 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
38675 r=`${PWD_COMMAND}`; export r; \
38676 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38677 $(NORMAL_TARGET_EXPORTS) \
38678 echo "Doing install-html in $(TARGET_SUBDIR)/libffi" ; \
38679 for flag in $(EXTRA_TARGET_FLAGS); do \
38680 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38681 done; \
38682 (cd $(TARGET_SUBDIR)/libffi && \
38683 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38684 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38685 "RANLIB=$${RANLIB}" \
38686 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
38687 install-html) \
38688 || exit 1
38689
38690@endif target-libffi
38691
295f4e42
NN
38692.PHONY: maybe-installcheck-target-libffi installcheck-target-libffi
38693maybe-installcheck-target-libffi:
60975492
PB
38694@if target-libffi
38695maybe-installcheck-target-libffi: installcheck-target-libffi
295f4e42
NN
38696
38697installcheck-target-libffi: \
05750653 38698 configure-target-libffi
f41d6665 38699 @: $(MAKE); $(unstage)
295f4e42
NN
38700 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
38701 r=`${PWD_COMMAND}`; export r; \
38702 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38703 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38704 echo "Doing installcheck in $(TARGET_SUBDIR)/libffi" ; \
38705 for flag in $(EXTRA_TARGET_FLAGS); do \
38706 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38707 done; \
38708 (cd $(TARGET_SUBDIR)/libffi && \
38709 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38710 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38711 "RANLIB=$${RANLIB}" \
38712 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 38713 installcheck) \
295f4e42
NN
38714 || exit 1
38715
60975492 38716@endif target-libffi
295f4e42
NN
38717
38718.PHONY: maybe-mostlyclean-target-libffi mostlyclean-target-libffi
38719maybe-mostlyclean-target-libffi:
60975492
PB
38720@if target-libffi
38721maybe-mostlyclean-target-libffi: mostlyclean-target-libffi
295f4e42 38722
05750653 38723mostlyclean-target-libffi:
f41d6665 38724 @: $(MAKE); $(unstage)
295f4e42
NN
38725 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
38726 r=`${PWD_COMMAND}`; export r; \
38727 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38728 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38729 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libffi" ; \
38730 for flag in $(EXTRA_TARGET_FLAGS); do \
38731 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38732 done; \
38733 (cd $(TARGET_SUBDIR)/libffi && \
38734 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38735 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38736 "RANLIB=$${RANLIB}" \
38737 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 38738 mostlyclean) \
295f4e42
NN
38739 || exit 1
38740
60975492 38741@endif target-libffi
295f4e42
NN
38742
38743.PHONY: maybe-clean-target-libffi clean-target-libffi
38744maybe-clean-target-libffi:
60975492
PB
38745@if target-libffi
38746maybe-clean-target-libffi: clean-target-libffi
295f4e42 38747
05750653 38748clean-target-libffi:
f41d6665 38749 @: $(MAKE); $(unstage)
295f4e42
NN
38750 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
38751 r=`${PWD_COMMAND}`; export r; \
38752 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38753 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38754 echo "Doing clean in $(TARGET_SUBDIR)/libffi" ; \
38755 for flag in $(EXTRA_TARGET_FLAGS); do \
38756 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38757 done; \
38758 (cd $(TARGET_SUBDIR)/libffi && \
38759 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38760 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38761 "RANLIB=$${RANLIB}" \
38762 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 38763 clean) \
295f4e42
NN
38764 || exit 1
38765
60975492 38766@endif target-libffi
295f4e42
NN
38767
38768.PHONY: maybe-distclean-target-libffi distclean-target-libffi
38769maybe-distclean-target-libffi:
60975492
PB
38770@if target-libffi
38771maybe-distclean-target-libffi: distclean-target-libffi
295f4e42 38772
05750653 38773distclean-target-libffi:
f41d6665 38774 @: $(MAKE); $(unstage)
295f4e42
NN
38775 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
38776 r=`${PWD_COMMAND}`; export r; \
38777 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38778 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38779 echo "Doing distclean in $(TARGET_SUBDIR)/libffi" ; \
38780 for flag in $(EXTRA_TARGET_FLAGS); do \
38781 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38782 done; \
38783 (cd $(TARGET_SUBDIR)/libffi && \
38784 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38785 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38786 "RANLIB=$${RANLIB}" \
38787 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 38788 distclean) \
295f4e42
NN
38789 || exit 1
38790
60975492 38791@endif target-libffi
295f4e42
NN
38792
38793.PHONY: maybe-maintainer-clean-target-libffi maintainer-clean-target-libffi
38794maybe-maintainer-clean-target-libffi:
60975492
PB
38795@if target-libffi
38796maybe-maintainer-clean-target-libffi: maintainer-clean-target-libffi
295f4e42 38797
05750653 38798maintainer-clean-target-libffi:
f41d6665 38799 @: $(MAKE); $(unstage)
295f4e42
NN
38800 @[ -f $(TARGET_SUBDIR)/libffi/Makefile ] || exit 0 ; \
38801 r=`${PWD_COMMAND}`; export r; \
38802 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38803 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
38804 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libffi" ; \
38805 for flag in $(EXTRA_TARGET_FLAGS); do \
38806 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38807 done; \
38808 (cd $(TARGET_SUBDIR)/libffi && \
38809 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38810 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38811 "RANLIB=$${RANLIB}" \
38812 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 38813 maintainer-clean) \
295f4e42
NN
38814 || exit 1
38815
60975492 38816@endif target-libffi
295f4e42
NN
38817
38818
4977bab6 38819
25b42232 38820
4977bab6 38821
25b42232
PB
38822.PHONY: configure-target-libjava maybe-configure-target-libjava
38823maybe-configure-target-libjava:
3ff3adad
PB
38824@if gcc-bootstrap
38825configure-target-libjava: stage_current
38826@endif gcc-bootstrap
25b42232
PB
38827@if target-libjava
38828maybe-configure-target-libjava: configure-target-libjava
cc11cc9b 38829configure-target-libjava:
f41d6665
DJ
38830 @: $(MAKE); $(unstage)
38831 @r=`${PWD_COMMAND}`; export r; \
38832 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38833 echo "Checking multilib configuration for libjava..."; \
38834 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libjava ; \
38835 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libjava/multilib.tmp 2> /dev/null ; \
38836 if test -r $(TARGET_SUBDIR)/libjava/multilib.out; then \
38837 if cmp -s $(TARGET_SUBDIR)/libjava/multilib.tmp $(TARGET_SUBDIR)/libjava/multilib.out; then \
38838 rm -f $(TARGET_SUBDIR)/libjava/multilib.tmp; \
38839 else \
38840 rm -f $(TARGET_SUBDIR)/libjava/Makefile; \
38841 mv $(TARGET_SUBDIR)/libjava/multilib.tmp $(TARGET_SUBDIR)/libjava/multilib.out; \
38842 fi; \
38843 else \
38844 mv $(TARGET_SUBDIR)/libjava/multilib.tmp $(TARGET_SUBDIR)/libjava/multilib.out; \
cc11cc9b
PB
38845 fi; \
38846 test ! -f $(TARGET_SUBDIR)/libjava/Makefile || exit 0; \
295f4e42 38847 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libjava ; \
4fc4dd12 38848 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
38849 echo Configuring in $(TARGET_SUBDIR)/libjava; \
38850 cd "$(TARGET_SUBDIR)/libjava" || exit 1; \
3aa83176 38851 case $(srcdir) in \
215c351a
PB
38852 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
38853 *) topdir=`echo $(TARGET_SUBDIR)/libjava/ | \
38854 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3aa83176 38855 esac; \
215c351a
PB
38856 srcdiroption="--srcdir=$${topdir}/libjava"; \
38857 libsrcdir="$$s/libjava"; \
3aa83176
NN
38858 rm -f no-such-file || : ; \
38859 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 38860 $(TARGET_CONFIGARGS) $${srcdiroption} \
3aa83176 38861 || exit 1
60975492 38862@endif target-libjava
4977bab6 38863
25b42232
PB
38864
38865
ce406537
PB
38866
38867
295f4e42
NN
38868.PHONY: all-target-libjava maybe-all-target-libjava
38869maybe-all-target-libjava:
3ff3adad
PB
38870@if gcc-bootstrap
38871all-target-libjava: stage_current
38872@endif gcc-bootstrap
60975492 38873@if target-libjava
7c27e184 38874TARGET-target-libjava=all
60975492 38875maybe-all-target-libjava: all-target-libjava
295f4e42 38876all-target-libjava: configure-target-libjava
f41d6665 38877 @: $(MAKE); $(unstage)
8c90b13a
L
38878 @r=`${PWD_COMMAND}`; export r; \
38879 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38880 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42 38881 (cd $(TARGET_SUBDIR)/libjava && \
25b42232 38882 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' $(TARGET-target-libjava))
60975492 38883@endif target-libjava
4977bab6 38884
25b42232
PB
38885
38886
ce406537
PB
38887
38888
295f4e42
NN
38889.PHONY: check-target-libjava maybe-check-target-libjava
38890maybe-check-target-libjava:
60975492
PB
38891@if target-libjava
38892maybe-check-target-libjava: check-target-libjava
7e2dbcef 38893
295f4e42 38894check-target-libjava:
f41d6665 38895 @: $(MAKE); $(unstage)
295f4e42
NN
38896 @r=`${PWD_COMMAND}`; export r; \
38897 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38898 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42 38899 (cd $(TARGET_SUBDIR)/libjava && \
a52a0a7f 38900 $(MAKE) $(TARGET_FLAGS_TO_PASS) 'CXX=$$(RAW_CXX_FOR_TARGET)' 'CXX_FOR_TARGET=$$(RAW_CXX_FOR_TARGET)' check)
4977bab6 38901
60975492 38902@endif target-libjava
4977bab6 38903
295f4e42
NN
38904.PHONY: install-target-libjava maybe-install-target-libjava
38905maybe-install-target-libjava:
60975492
PB
38906@if target-libjava
38907maybe-install-target-libjava: install-target-libjava
7e2dbcef 38908
295f4e42 38909install-target-libjava: installdirs
f41d6665 38910 @: $(MAKE); $(unstage)
8c90b13a
L
38911 @r=`${PWD_COMMAND}`; export r; \
38912 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38913 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42 38914 (cd $(TARGET_SUBDIR)/libjava && \
a52a0a7f 38915 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4977bab6 38916
60975492 38917@endif target-libjava
4977bab6 38918
b5422ad7 38919# Other targets (info, dvi, pdf, etc.)
4977bab6 38920
295f4e42
NN
38921.PHONY: maybe-info-target-libjava info-target-libjava
38922maybe-info-target-libjava:
60975492
PB
38923@if target-libjava
38924maybe-info-target-libjava: info-target-libjava
4977bab6 38925
295f4e42 38926info-target-libjava: \
05750653 38927 configure-target-libjava
f41d6665 38928 @: $(MAKE); $(unstage)
295f4e42 38929 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
8c90b13a
L
38930 r=`${PWD_COMMAND}`; export r; \
38931 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38932 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
38933 echo "Doing info in $(TARGET_SUBDIR)/libjava" ; \
38934 for flag in $(EXTRA_TARGET_FLAGS); do \
38935 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38936 done; \
38937 (cd $(TARGET_SUBDIR)/libjava && \
38938 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38939 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38940 "RANLIB=$${RANLIB}" \
38941 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 38942 info) \
3aa83176 38943 || exit 1
4977bab6 38944
60975492 38945@endif target-libjava
295f4e42
NN
38946
38947.PHONY: maybe-dvi-target-libjava dvi-target-libjava
38948maybe-dvi-target-libjava:
60975492
PB
38949@if target-libjava
38950maybe-dvi-target-libjava: dvi-target-libjava
295f4e42
NN
38951
38952dvi-target-libjava: \
05750653 38953 configure-target-libjava
f41d6665 38954 @: $(MAKE); $(unstage)
295f4e42
NN
38955 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
38956 r=`${PWD_COMMAND}`; export r; \
8c90b13a 38957 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 38958 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
38959 echo "Doing dvi in $(TARGET_SUBDIR)/libjava" ; \
38960 for flag in $(EXTRA_TARGET_FLAGS); do \
38961 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38962 done; \
38963 (cd $(TARGET_SUBDIR)/libjava && \
38964 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38965 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38966 "RANLIB=$${RANLIB}" \
38967 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 38968 dvi) \
295f4e42 38969 || exit 1
4977bab6 38970
60975492 38971@endif target-libjava
7e2dbcef 38972
b5422ad7
BM
38973.PHONY: maybe-pdf-target-libjava pdf-target-libjava
38974maybe-pdf-target-libjava:
38975@if target-libjava
38976maybe-pdf-target-libjava: pdf-target-libjava
38977
38978pdf-target-libjava: \
38979 configure-target-libjava
38980 @: $(MAKE); $(unstage)
38981 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
38982 r=`${PWD_COMMAND}`; export r; \
38983 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
38984 $(RAW_CXX_TARGET_EXPORTS) \
38985 echo "Doing pdf in $(TARGET_SUBDIR)/libjava" ; \
38986 for flag in $(EXTRA_TARGET_FLAGS); do \
38987 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
38988 done; \
38989 (cd $(TARGET_SUBDIR)/libjava && \
38990 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
38991 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
38992 "RANLIB=$${RANLIB}" \
38993 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
38994 pdf) \
38995 || exit 1
38996
38997@endif target-libjava
38998
f87a2b2e
MS
38999.PHONY: maybe-html-target-libjava html-target-libjava
39000maybe-html-target-libjava:
39001@if target-libjava
39002maybe-html-target-libjava: html-target-libjava
39003
39004html-target-libjava: \
05750653 39005 configure-target-libjava
f41d6665 39006 @: $(MAKE); $(unstage)
f87a2b2e
MS
39007 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
39008 r=`${PWD_COMMAND}`; export r; \
39009 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
39010 $(RAW_CXX_TARGET_EXPORTS) \
39011 echo "Doing html in $(TARGET_SUBDIR)/libjava" ; \
39012 for flag in $(EXTRA_TARGET_FLAGS); do \
39013 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39014 done; \
39015 (cd $(TARGET_SUBDIR)/libjava && \
39016 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39017 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39018 "RANLIB=$${RANLIB}" \
39019 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
39020 html) \
39021 || exit 1
39022
39023@endif target-libjava
39024
295f4e42
NN
39025.PHONY: maybe-TAGS-target-libjava TAGS-target-libjava
39026maybe-TAGS-target-libjava:
60975492
PB
39027@if target-libjava
39028maybe-TAGS-target-libjava: TAGS-target-libjava
295f4e42
NN
39029
39030TAGS-target-libjava: \
05750653 39031 configure-target-libjava
f41d6665 39032 @: $(MAKE); $(unstage)
295f4e42
NN
39033 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
39034 r=`${PWD_COMMAND}`; export r; \
8c90b13a 39035 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 39036 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
39037 echo "Doing TAGS in $(TARGET_SUBDIR)/libjava" ; \
39038 for flag in $(EXTRA_TARGET_FLAGS); do \
39039 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39040 done; \
39041 (cd $(TARGET_SUBDIR)/libjava && \
39042 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39043 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39044 "RANLIB=$${RANLIB}" \
39045 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 39046 TAGS) \
295f4e42 39047 || exit 1
4977bab6 39048
60975492 39049@endif target-libjava
4977bab6 39050
295f4e42
NN
39051.PHONY: maybe-install-info-target-libjava install-info-target-libjava
39052maybe-install-info-target-libjava:
60975492
PB
39053@if target-libjava
39054maybe-install-info-target-libjava: install-info-target-libjava
7e2dbcef 39055
295f4e42
NN
39056install-info-target-libjava: \
39057 configure-target-libjava \
05750653 39058 info-target-libjava
f41d6665 39059 @: $(MAKE); $(unstage)
295f4e42
NN
39060 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
39061 r=`${PWD_COMMAND}`; export r; \
8c90b13a 39062 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 39063 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
39064 echo "Doing install-info in $(TARGET_SUBDIR)/libjava" ; \
39065 for flag in $(EXTRA_TARGET_FLAGS); do \
39066 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39067 done; \
39068 (cd $(TARGET_SUBDIR)/libjava && \
39069 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39070 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39071 "RANLIB=$${RANLIB}" \
39072 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 39073 install-info) \
295f4e42 39074 || exit 1
4977bab6 39075
60975492 39076@endif target-libjava
4977bab6 39077
65d6e994
CD
39078.PHONY: maybe-install-html-target-libjava install-html-target-libjava
39079maybe-install-html-target-libjava:
39080@if target-libjava
39081maybe-install-html-target-libjava: install-html-target-libjava
39082
39083install-html-target-libjava: \
39084 configure-target-libjava \
39085 html-target-libjava
39086 @: $(MAKE); $(unstage)
39087 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
39088 r=`${PWD_COMMAND}`; export r; \
39089 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39090 $(RAW_CXX_TARGET_EXPORTS) \
39091 echo "Doing install-html in $(TARGET_SUBDIR)/libjava" ; \
39092 for flag in $(EXTRA_TARGET_FLAGS); do \
39093 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39094 done; \
39095 (cd $(TARGET_SUBDIR)/libjava && \
39096 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39097 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39098 "RANLIB=$${RANLIB}" \
39099 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
39100 install-html) \
39101 || exit 1
39102
39103@endif target-libjava
39104
295f4e42
NN
39105.PHONY: maybe-installcheck-target-libjava installcheck-target-libjava
39106maybe-installcheck-target-libjava:
60975492
PB
39107@if target-libjava
39108maybe-installcheck-target-libjava: installcheck-target-libjava
4977bab6 39109
295f4e42 39110installcheck-target-libjava: \
05750653 39111 configure-target-libjava
f41d6665 39112 @: $(MAKE); $(unstage)
295f4e42
NN
39113 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
39114 r=`${PWD_COMMAND}`; export r; \
39115 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 39116 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
39117 echo "Doing installcheck in $(TARGET_SUBDIR)/libjava" ; \
39118 for flag in $(EXTRA_TARGET_FLAGS); do \
39119 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39120 done; \
39121 (cd $(TARGET_SUBDIR)/libjava && \
39122 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39123 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39124 "RANLIB=$${RANLIB}" \
39125 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 39126 installcheck) \
295f4e42 39127 || exit 1
4977bab6 39128
60975492 39129@endif target-libjava
295f4e42
NN
39130
39131.PHONY: maybe-mostlyclean-target-libjava mostlyclean-target-libjava
39132maybe-mostlyclean-target-libjava:
60975492
PB
39133@if target-libjava
39134maybe-mostlyclean-target-libjava: mostlyclean-target-libjava
295f4e42 39135
05750653 39136mostlyclean-target-libjava:
f41d6665 39137 @: $(MAKE); $(unstage)
295f4e42
NN
39138 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
39139 r=`${PWD_COMMAND}`; export r; \
39140 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 39141 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
39142 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libjava" ; \
39143 for flag in $(EXTRA_TARGET_FLAGS); do \
39144 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39145 done; \
39146 (cd $(TARGET_SUBDIR)/libjava && \
39147 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39148 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39149 "RANLIB=$${RANLIB}" \
39150 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 39151 mostlyclean) \
295f4e42
NN
39152 || exit 1
39153
60975492 39154@endif target-libjava
295f4e42
NN
39155
39156.PHONY: maybe-clean-target-libjava clean-target-libjava
39157maybe-clean-target-libjava:
60975492
PB
39158@if target-libjava
39159maybe-clean-target-libjava: clean-target-libjava
295f4e42 39160
05750653 39161clean-target-libjava:
f41d6665 39162 @: $(MAKE); $(unstage)
295f4e42 39163 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
8c90b13a
L
39164 r=`${PWD_COMMAND}`; export r; \
39165 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 39166 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
39167 echo "Doing clean in $(TARGET_SUBDIR)/libjava" ; \
39168 for flag in $(EXTRA_TARGET_FLAGS); do \
39169 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39170 done; \
39171 (cd $(TARGET_SUBDIR)/libjava && \
39172 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39173 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39174 "RANLIB=$${RANLIB}" \
39175 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 39176 clean) \
3aa83176 39177 || exit 1
4977bab6 39178
60975492 39179@endif target-libjava
4977bab6 39180
295f4e42
NN
39181.PHONY: maybe-distclean-target-libjava distclean-target-libjava
39182maybe-distclean-target-libjava:
60975492
PB
39183@if target-libjava
39184maybe-distclean-target-libjava: distclean-target-libjava
7e2dbcef 39185
05750653 39186distclean-target-libjava:
f41d6665 39187 @: $(MAKE); $(unstage)
295f4e42
NN
39188 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
39189 r=`${PWD_COMMAND}`; export r; \
39190 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 39191 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
39192 echo "Doing distclean in $(TARGET_SUBDIR)/libjava" ; \
39193 for flag in $(EXTRA_TARGET_FLAGS); do \
39194 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39195 done; \
39196 (cd $(TARGET_SUBDIR)/libjava && \
39197 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39198 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39199 "RANLIB=$${RANLIB}" \
39200 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 39201 distclean) \
295f4e42 39202 || exit 1
4977bab6 39203
60975492 39204@endif target-libjava
4977bab6 39205
295f4e42
NN
39206.PHONY: maybe-maintainer-clean-target-libjava maintainer-clean-target-libjava
39207maybe-maintainer-clean-target-libjava:
60975492
PB
39208@if target-libjava
39209maybe-maintainer-clean-target-libjava: maintainer-clean-target-libjava
7e2dbcef 39210
05750653 39211maintainer-clean-target-libjava:
f41d6665 39212 @: $(MAKE); $(unstage)
295f4e42
NN
39213 @[ -f $(TARGET_SUBDIR)/libjava/Makefile ] || exit 0 ; \
39214 r=`${PWD_COMMAND}`; export r; \
8c90b13a 39215 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 39216 $(RAW_CXX_TARGET_EXPORTS) \
295f4e42
NN
39217 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libjava" ; \
39218 for flag in $(EXTRA_TARGET_FLAGS); do \
39219 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39220 done; \
39221 (cd $(TARGET_SUBDIR)/libjava && \
39222 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39223 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39224 "RANLIB=$${RANLIB}" \
39225 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 39226 maintainer-clean) \
295f4e42 39227 || exit 1
4977bab6 39228
60975492 39229@endif target-libjava
4977bab6 39230
295f4e42 39231
4977bab6 39232
25b42232 39233
4977bab6 39234
25b42232
PB
39235.PHONY: configure-target-zlib maybe-configure-target-zlib
39236maybe-configure-target-zlib:
3ff3adad
PB
39237@if gcc-bootstrap
39238configure-target-zlib: stage_current
39239@endif gcc-bootstrap
25b42232
PB
39240@if target-zlib
39241maybe-configure-target-zlib: configure-target-zlib
cc11cc9b 39242configure-target-zlib:
f41d6665
DJ
39243 @: $(MAKE); $(unstage)
39244 @r=`${PWD_COMMAND}`; export r; \
39245 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39246 echo "Checking multilib configuration for zlib..."; \
39247 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/zlib ; \
39248 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/zlib/multilib.tmp 2> /dev/null ; \
39249 if test -r $(TARGET_SUBDIR)/zlib/multilib.out; then \
39250 if cmp -s $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; then \
39251 rm -f $(TARGET_SUBDIR)/zlib/multilib.tmp; \
39252 else \
39253 rm -f $(TARGET_SUBDIR)/zlib/Makefile; \
39254 mv $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; \
39255 fi; \
39256 else \
39257 mv $(TARGET_SUBDIR)/zlib/multilib.tmp $(TARGET_SUBDIR)/zlib/multilib.out; \
cc11cc9b
PB
39258 fi; \
39259 test ! -f $(TARGET_SUBDIR)/zlib/Makefile || exit 0; \
295f4e42 39260 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/zlib ; \
4fc4dd12 39261 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
39262 echo Configuring in $(TARGET_SUBDIR)/zlib; \
39263 cd "$(TARGET_SUBDIR)/zlib" || exit 1; \
3aa83176 39264 case $(srcdir) in \
215c351a
PB
39265 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
39266 *) topdir=`echo $(TARGET_SUBDIR)/zlib/ | \
39267 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3aa83176 39268 esac; \
215c351a
PB
39269 srcdiroption="--srcdir=$${topdir}/zlib"; \
39270 libsrcdir="$$s/zlib"; \
3aa83176
NN
39271 rm -f no-such-file || : ; \
39272 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 39273 $(TARGET_CONFIGARGS) $${srcdiroption} \
3aa83176 39274 || exit 1
60975492 39275@endif target-zlib
4977bab6 39276
25b42232
PB
39277
39278
ce406537
PB
39279
39280
295f4e42
NN
39281.PHONY: all-target-zlib maybe-all-target-zlib
39282maybe-all-target-zlib:
3ff3adad
PB
39283@if gcc-bootstrap
39284all-target-zlib: stage_current
39285@endif gcc-bootstrap
60975492 39286@if target-zlib
7c27e184 39287TARGET-target-zlib=all
60975492 39288maybe-all-target-zlib: all-target-zlib
295f4e42 39289all-target-zlib: configure-target-zlib
f41d6665 39290 @: $(MAKE); $(unstage)
8c90b13a
L
39291 @r=`${PWD_COMMAND}`; export r; \
39292 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 39293 $(NORMAL_TARGET_EXPORTS) \
295f4e42 39294 (cd $(TARGET_SUBDIR)/zlib && \
25b42232 39295 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-zlib))
60975492 39296@endif target-zlib
4977bab6 39297
25b42232
PB
39298
39299
ce406537
PB
39300
39301
295f4e42
NN
39302.PHONY: check-target-zlib maybe-check-target-zlib
39303maybe-check-target-zlib:
60975492
PB
39304@if target-zlib
39305maybe-check-target-zlib: check-target-zlib
7e2dbcef 39306
295f4e42 39307check-target-zlib:
f41d6665 39308 @: $(MAKE); $(unstage)
8c90b13a
L
39309 @r=`${PWD_COMMAND}`; export r; \
39310 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 39311 $(NORMAL_TARGET_EXPORTS) \
295f4e42 39312 (cd $(TARGET_SUBDIR)/zlib && \
a52a0a7f 39313 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4977bab6 39314
60975492 39315@endif target-zlib
4977bab6 39316
295f4e42
NN
39317.PHONY: install-target-zlib maybe-install-target-zlib
39318maybe-install-target-zlib:
60975492
PB
39319@if target-zlib
39320maybe-install-target-zlib: install-target-zlib
7e2dbcef 39321
295f4e42 39322install-target-zlib: installdirs
f41d6665 39323 @: $(MAKE); $(unstage)
8c90b13a
L
39324 @r=`${PWD_COMMAND}`; export r; \
39325 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 39326 $(NORMAL_TARGET_EXPORTS) \
295f4e42 39327 (cd $(TARGET_SUBDIR)/zlib && \
a52a0a7f 39328 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4977bab6 39329
60975492 39330@endif target-zlib
4977bab6 39331
b5422ad7 39332# Other targets (info, dvi, pdf, etc.)
4977bab6 39333
295f4e42
NN
39334.PHONY: maybe-info-target-zlib info-target-zlib
39335maybe-info-target-zlib:
60975492
PB
39336@if target-zlib
39337maybe-info-target-zlib: info-target-zlib
4977bab6 39338
295f4e42 39339info-target-zlib: \
05750653 39340 configure-target-zlib
f41d6665 39341 @: $(MAKE); $(unstage)
295f4e42 39342 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
8c90b13a
L
39343 r=`${PWD_COMMAND}`; export r; \
39344 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 39345 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
39346 echo "Doing info in $(TARGET_SUBDIR)/zlib" ; \
39347 for flag in $(EXTRA_TARGET_FLAGS); do \
39348 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39349 done; \
39350 (cd $(TARGET_SUBDIR)/zlib && \
39351 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39352 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39353 "RANLIB=$${RANLIB}" \
39354 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 39355 info) \
3aa83176 39356 || exit 1
4977bab6 39357
60975492 39358@endif target-zlib
4977bab6 39359
295f4e42
NN
39360.PHONY: maybe-dvi-target-zlib dvi-target-zlib
39361maybe-dvi-target-zlib:
60975492
PB
39362@if target-zlib
39363maybe-dvi-target-zlib: dvi-target-zlib
7e2dbcef 39364
295f4e42 39365dvi-target-zlib: \
05750653 39366 configure-target-zlib
f41d6665 39367 @: $(MAKE); $(unstage)
295f4e42
NN
39368 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
39369 r=`${PWD_COMMAND}`; export r; \
8c90b13a 39370 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 39371 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
39372 echo "Doing dvi in $(TARGET_SUBDIR)/zlib" ; \
39373 for flag in $(EXTRA_TARGET_FLAGS); do \
39374 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39375 done; \
39376 (cd $(TARGET_SUBDIR)/zlib && \
39377 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39378 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39379 "RANLIB=$${RANLIB}" \
39380 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 39381 dvi) \
295f4e42 39382 || exit 1
4977bab6 39383
60975492 39384@endif target-zlib
4977bab6 39385
b5422ad7
BM
39386.PHONY: maybe-pdf-target-zlib pdf-target-zlib
39387maybe-pdf-target-zlib:
39388@if target-zlib
39389maybe-pdf-target-zlib: pdf-target-zlib
39390
39391pdf-target-zlib: \
39392 configure-target-zlib
39393 @: $(MAKE); $(unstage)
39394 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
39395 r=`${PWD_COMMAND}`; export r; \
39396 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39397 $(NORMAL_TARGET_EXPORTS) \
39398 echo "Doing pdf in $(TARGET_SUBDIR)/zlib" ; \
39399 for flag in $(EXTRA_TARGET_FLAGS); do \
39400 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39401 done; \
39402 (cd $(TARGET_SUBDIR)/zlib && \
39403 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39404 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39405 "RANLIB=$${RANLIB}" \
39406 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
39407 pdf) \
39408 || exit 1
39409
39410@endif target-zlib
39411
f87a2b2e
MS
39412.PHONY: maybe-html-target-zlib html-target-zlib
39413maybe-html-target-zlib:
39414@if target-zlib
39415maybe-html-target-zlib: html-target-zlib
39416
39417html-target-zlib: \
05750653 39418 configure-target-zlib
f41d6665 39419 @: $(MAKE); $(unstage)
f87a2b2e
MS
39420 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
39421 r=`${PWD_COMMAND}`; export r; \
39422 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
39423 $(NORMAL_TARGET_EXPORTS) \
39424 echo "Doing html in $(TARGET_SUBDIR)/zlib" ; \
39425 for flag in $(EXTRA_TARGET_FLAGS); do \
39426 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39427 done; \
39428 (cd $(TARGET_SUBDIR)/zlib && \
39429 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39430 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39431 "RANLIB=$${RANLIB}" \
39432 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
39433 html) \
39434 || exit 1
39435
39436@endif target-zlib
39437
295f4e42
NN
39438.PHONY: maybe-TAGS-target-zlib TAGS-target-zlib
39439maybe-TAGS-target-zlib:
60975492
PB
39440@if target-zlib
39441maybe-TAGS-target-zlib: TAGS-target-zlib
7e2dbcef 39442
295f4e42 39443TAGS-target-zlib: \
05750653 39444 configure-target-zlib
f41d6665 39445 @: $(MAKE); $(unstage)
295f4e42
NN
39446 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
39447 r=`${PWD_COMMAND}`; export r; \
8c90b13a 39448 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 39449 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
39450 echo "Doing TAGS in $(TARGET_SUBDIR)/zlib" ; \
39451 for flag in $(EXTRA_TARGET_FLAGS); do \
39452 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39453 done; \
39454 (cd $(TARGET_SUBDIR)/zlib && \
39455 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39456 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39457 "RANLIB=$${RANLIB}" \
39458 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 39459 TAGS) \
295f4e42 39460 || exit 1
4977bab6 39461
60975492 39462@endif target-zlib
4977bab6 39463
295f4e42
NN
39464.PHONY: maybe-install-info-target-zlib install-info-target-zlib
39465maybe-install-info-target-zlib:
60975492
PB
39466@if target-zlib
39467maybe-install-info-target-zlib: install-info-target-zlib
4977bab6 39468
295f4e42
NN
39469install-info-target-zlib: \
39470 configure-target-zlib \
05750653 39471 info-target-zlib
f41d6665 39472 @: $(MAKE); $(unstage)
295f4e42 39473 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
8c90b13a
L
39474 r=`${PWD_COMMAND}`; export r; \
39475 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 39476 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
39477 echo "Doing install-info in $(TARGET_SUBDIR)/zlib" ; \
39478 for flag in $(EXTRA_TARGET_FLAGS); do \
39479 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39480 done; \
39481 (cd $(TARGET_SUBDIR)/zlib && \
39482 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39483 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39484 "RANLIB=$${RANLIB}" \
39485 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 39486 install-info) \
3aa83176 39487 || exit 1
4977bab6 39488
60975492 39489@endif target-zlib
7e2dbcef 39490
65d6e994
CD
39491.PHONY: maybe-install-html-target-zlib install-html-target-zlib
39492maybe-install-html-target-zlib:
39493@if target-zlib
39494maybe-install-html-target-zlib: install-html-target-zlib
39495
39496install-html-target-zlib: \
39497 configure-target-zlib \
39498 html-target-zlib
39499 @: $(MAKE); $(unstage)
39500 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
39501 r=`${PWD_COMMAND}`; export r; \
39502 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39503 $(NORMAL_TARGET_EXPORTS) \
39504 echo "Doing install-html in $(TARGET_SUBDIR)/zlib" ; \
39505 for flag in $(EXTRA_TARGET_FLAGS); do \
39506 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39507 done; \
39508 (cd $(TARGET_SUBDIR)/zlib && \
39509 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39510 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39511 "RANLIB=$${RANLIB}" \
39512 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
39513 install-html) \
39514 || exit 1
39515
39516@endif target-zlib
39517
295f4e42
NN
39518.PHONY: maybe-installcheck-target-zlib installcheck-target-zlib
39519maybe-installcheck-target-zlib:
60975492
PB
39520@if target-zlib
39521maybe-installcheck-target-zlib: installcheck-target-zlib
4977bab6 39522
295f4e42 39523installcheck-target-zlib: \
05750653 39524 configure-target-zlib
f41d6665 39525 @: $(MAKE); $(unstage)
295f4e42
NN
39526 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
39527 r=`${PWD_COMMAND}`; export r; \
39528 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 39529 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
39530 echo "Doing installcheck in $(TARGET_SUBDIR)/zlib" ; \
39531 for flag in $(EXTRA_TARGET_FLAGS); do \
39532 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39533 done; \
39534 (cd $(TARGET_SUBDIR)/zlib && \
39535 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39536 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39537 "RANLIB=$${RANLIB}" \
39538 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 39539 installcheck) \
295f4e42 39540 || exit 1
4977bab6 39541
60975492 39542@endif target-zlib
7e2dbcef 39543
295f4e42
NN
39544.PHONY: maybe-mostlyclean-target-zlib mostlyclean-target-zlib
39545maybe-mostlyclean-target-zlib:
60975492
PB
39546@if target-zlib
39547maybe-mostlyclean-target-zlib: mostlyclean-target-zlib
4977bab6 39548
05750653 39549mostlyclean-target-zlib:
f41d6665 39550 @: $(MAKE); $(unstage)
295f4e42
NN
39551 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
39552 r=`${PWD_COMMAND}`; export r; \
39553 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 39554 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
39555 echo "Doing mostlyclean in $(TARGET_SUBDIR)/zlib" ; \
39556 for flag in $(EXTRA_TARGET_FLAGS); do \
39557 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39558 done; \
39559 (cd $(TARGET_SUBDIR)/zlib && \
39560 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39561 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39562 "RANLIB=$${RANLIB}" \
39563 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 39564 mostlyclean) \
295f4e42 39565 || exit 1
4977bab6 39566
60975492 39567@endif target-zlib
4977bab6 39568
295f4e42
NN
39569.PHONY: maybe-clean-target-zlib clean-target-zlib
39570maybe-clean-target-zlib:
60975492
PB
39571@if target-zlib
39572maybe-clean-target-zlib: clean-target-zlib
4977bab6 39573
05750653 39574clean-target-zlib:
f41d6665 39575 @: $(MAKE); $(unstage)
295f4e42 39576 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
8c90b13a
L
39577 r=`${PWD_COMMAND}`; export r; \
39578 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 39579 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
39580 echo "Doing clean in $(TARGET_SUBDIR)/zlib" ; \
39581 for flag in $(EXTRA_TARGET_FLAGS); do \
39582 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39583 done; \
39584 (cd $(TARGET_SUBDIR)/zlib && \
39585 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39586 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39587 "RANLIB=$${RANLIB}" \
39588 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 39589 clean) \
3aa83176 39590 || exit 1
4977bab6 39591
60975492 39592@endif target-zlib
4977bab6 39593
295f4e42
NN
39594.PHONY: maybe-distclean-target-zlib distclean-target-zlib
39595maybe-distclean-target-zlib:
60975492
PB
39596@if target-zlib
39597maybe-distclean-target-zlib: distclean-target-zlib
7e2dbcef 39598
05750653 39599distclean-target-zlib:
f41d6665 39600 @: $(MAKE); $(unstage)
295f4e42
NN
39601 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
39602 r=`${PWD_COMMAND}`; export r; \
8c90b13a 39603 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 39604 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
39605 echo "Doing distclean in $(TARGET_SUBDIR)/zlib" ; \
39606 for flag in $(EXTRA_TARGET_FLAGS); do \
39607 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39608 done; \
39609 (cd $(TARGET_SUBDIR)/zlib && \
39610 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39611 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39612 "RANLIB=$${RANLIB}" \
39613 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 39614 distclean) \
295f4e42 39615 || exit 1
4977bab6 39616
60975492 39617@endif target-zlib
4977bab6 39618
295f4e42
NN
39619.PHONY: maybe-maintainer-clean-target-zlib maintainer-clean-target-zlib
39620maybe-maintainer-clean-target-zlib:
60975492
PB
39621@if target-zlib
39622maybe-maintainer-clean-target-zlib: maintainer-clean-target-zlib
7e2dbcef 39623
05750653 39624maintainer-clean-target-zlib:
f41d6665 39625 @: $(MAKE); $(unstage)
295f4e42
NN
39626 @[ -f $(TARGET_SUBDIR)/zlib/Makefile ] || exit 0 ; \
39627 r=`${PWD_COMMAND}`; export r; \
8c90b13a 39628 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 39629 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
39630 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/zlib" ; \
39631 for flag in $(EXTRA_TARGET_FLAGS); do \
39632 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39633 done; \
39634 (cd $(TARGET_SUBDIR)/zlib && \
39635 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39636 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39637 "RANLIB=$${RANLIB}" \
39638 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 39639 maintainer-clean) \
295f4e42 39640 || exit 1
4977bab6 39641
60975492 39642@endif target-zlib
4977bab6 39643
4977bab6 39644
295f4e42 39645
25b42232 39646
4977bab6 39647
25b42232
PB
39648.PHONY: configure-target-boehm-gc maybe-configure-target-boehm-gc
39649maybe-configure-target-boehm-gc:
3ff3adad
PB
39650@if gcc-bootstrap
39651configure-target-boehm-gc: stage_current
39652@endif gcc-bootstrap
25b42232
PB
39653@if target-boehm-gc
39654maybe-configure-target-boehm-gc: configure-target-boehm-gc
cc11cc9b 39655configure-target-boehm-gc:
f41d6665
DJ
39656 @: $(MAKE); $(unstage)
39657 @r=`${PWD_COMMAND}`; export r; \
39658 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39659 echo "Checking multilib configuration for boehm-gc..."; \
39660 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/boehm-gc ; \
39661 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/boehm-gc/multilib.tmp 2> /dev/null ; \
39662 if test -r $(TARGET_SUBDIR)/boehm-gc/multilib.out; then \
39663 if cmp -s $(TARGET_SUBDIR)/boehm-gc/multilib.tmp $(TARGET_SUBDIR)/boehm-gc/multilib.out; then \
39664 rm -f $(TARGET_SUBDIR)/boehm-gc/multilib.tmp; \
39665 else \
39666 rm -f $(TARGET_SUBDIR)/boehm-gc/Makefile; \
39667 mv $(TARGET_SUBDIR)/boehm-gc/multilib.tmp $(TARGET_SUBDIR)/boehm-gc/multilib.out; \
39668 fi; \
39669 else \
39670 mv $(TARGET_SUBDIR)/boehm-gc/multilib.tmp $(TARGET_SUBDIR)/boehm-gc/multilib.out; \
cc11cc9b
PB
39671 fi; \
39672 test ! -f $(TARGET_SUBDIR)/boehm-gc/Makefile || exit 0; \
295f4e42 39673 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/boehm-gc ; \
4fc4dd12 39674 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
39675 echo Configuring in $(TARGET_SUBDIR)/boehm-gc; \
39676 cd "$(TARGET_SUBDIR)/boehm-gc" || exit 1; \
3aa83176 39677 case $(srcdir) in \
215c351a
PB
39678 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
39679 *) topdir=`echo $(TARGET_SUBDIR)/boehm-gc/ | \
39680 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3aa83176 39681 esac; \
215c351a
PB
39682 srcdiroption="--srcdir=$${topdir}/boehm-gc"; \
39683 libsrcdir="$$s/boehm-gc"; \
3aa83176
NN
39684 rm -f no-such-file || : ; \
39685 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 39686 $(TARGET_CONFIGARGS) $${srcdiroption} \
3aa83176 39687 || exit 1
60975492 39688@endif target-boehm-gc
4977bab6 39689
25b42232
PB
39690
39691
ce406537
PB
39692
39693
295f4e42
NN
39694.PHONY: all-target-boehm-gc maybe-all-target-boehm-gc
39695maybe-all-target-boehm-gc:
3ff3adad
PB
39696@if gcc-bootstrap
39697all-target-boehm-gc: stage_current
39698@endif gcc-bootstrap
60975492 39699@if target-boehm-gc
7c27e184 39700TARGET-target-boehm-gc=all
60975492 39701maybe-all-target-boehm-gc: all-target-boehm-gc
295f4e42 39702all-target-boehm-gc: configure-target-boehm-gc
f41d6665 39703 @: $(MAKE); $(unstage)
8c90b13a
L
39704 @r=`${PWD_COMMAND}`; export r; \
39705 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 39706 $(NORMAL_TARGET_EXPORTS) \
295f4e42 39707 (cd $(TARGET_SUBDIR)/boehm-gc && \
25b42232 39708 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-boehm-gc))
60975492 39709@endif target-boehm-gc
4977bab6 39710
25b42232
PB
39711
39712
ce406537
PB
39713
39714
295f4e42
NN
39715.PHONY: check-target-boehm-gc maybe-check-target-boehm-gc
39716maybe-check-target-boehm-gc:
60975492
PB
39717@if target-boehm-gc
39718maybe-check-target-boehm-gc: check-target-boehm-gc
7e2dbcef 39719
295f4e42 39720check-target-boehm-gc:
f41d6665 39721 @: $(MAKE); $(unstage)
8c90b13a
L
39722 @r=`${PWD_COMMAND}`; export r; \
39723 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 39724 $(NORMAL_TARGET_EXPORTS) \
295f4e42 39725 (cd $(TARGET_SUBDIR)/boehm-gc && \
a52a0a7f 39726 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4977bab6 39727
60975492 39728@endif target-boehm-gc
4977bab6 39729
295f4e42
NN
39730.PHONY: install-target-boehm-gc maybe-install-target-boehm-gc
39731maybe-install-target-boehm-gc:
60975492
PB
39732@if target-boehm-gc
39733maybe-install-target-boehm-gc: install-target-boehm-gc
7e2dbcef 39734
295f4e42 39735install-target-boehm-gc: installdirs
f41d6665 39736 @: $(MAKE); $(unstage)
8c90b13a
L
39737 @r=`${PWD_COMMAND}`; export r; \
39738 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 39739 $(NORMAL_TARGET_EXPORTS) \
295f4e42 39740 (cd $(TARGET_SUBDIR)/boehm-gc && \
a52a0a7f 39741 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
4977bab6 39742
60975492 39743@endif target-boehm-gc
4977bab6 39744
b5422ad7 39745# Other targets (info, dvi, pdf, etc.)
295f4e42
NN
39746
39747.PHONY: maybe-info-target-boehm-gc info-target-boehm-gc
39748maybe-info-target-boehm-gc:
60975492
PB
39749@if target-boehm-gc
39750maybe-info-target-boehm-gc: info-target-boehm-gc
295f4e42
NN
39751
39752info-target-boehm-gc: \
05750653 39753 configure-target-boehm-gc
f41d6665 39754 @: $(MAKE); $(unstage)
295f4e42
NN
39755 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
39756 r=`${PWD_COMMAND}`; export r; \
39757 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 39758 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
39759 echo "Doing info in $(TARGET_SUBDIR)/boehm-gc" ; \
39760 for flag in $(EXTRA_TARGET_FLAGS); do \
39761 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39762 done; \
39763 (cd $(TARGET_SUBDIR)/boehm-gc && \
39764 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39765 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39766 "RANLIB=$${RANLIB}" \
39767 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 39768 info) \
295f4e42
NN
39769 || exit 1
39770
60975492 39771@endif target-boehm-gc
295f4e42
NN
39772
39773.PHONY: maybe-dvi-target-boehm-gc dvi-target-boehm-gc
39774maybe-dvi-target-boehm-gc:
60975492
PB
39775@if target-boehm-gc
39776maybe-dvi-target-boehm-gc: dvi-target-boehm-gc
295f4e42
NN
39777
39778dvi-target-boehm-gc: \
05750653 39779 configure-target-boehm-gc
f41d6665 39780 @: $(MAKE); $(unstage)
295f4e42
NN
39781 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
39782 r=`${PWD_COMMAND}`; export r; \
39783 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 39784 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
39785 echo "Doing dvi in $(TARGET_SUBDIR)/boehm-gc" ; \
39786 for flag in $(EXTRA_TARGET_FLAGS); do \
39787 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39788 done; \
39789 (cd $(TARGET_SUBDIR)/boehm-gc && \
39790 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39791 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39792 "RANLIB=$${RANLIB}" \
39793 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 39794 dvi) \
295f4e42
NN
39795 || exit 1
39796
60975492 39797@endif target-boehm-gc
295f4e42 39798
b5422ad7
BM
39799.PHONY: maybe-pdf-target-boehm-gc pdf-target-boehm-gc
39800maybe-pdf-target-boehm-gc:
39801@if target-boehm-gc
39802maybe-pdf-target-boehm-gc: pdf-target-boehm-gc
39803
39804pdf-target-boehm-gc: \
39805 configure-target-boehm-gc
39806 @: $(MAKE); $(unstage)
39807 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
39808 r=`${PWD_COMMAND}`; export r; \
39809 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39810 $(NORMAL_TARGET_EXPORTS) \
39811 echo "Doing pdf in $(TARGET_SUBDIR)/boehm-gc" ; \
39812 for flag in $(EXTRA_TARGET_FLAGS); do \
39813 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39814 done; \
39815 (cd $(TARGET_SUBDIR)/boehm-gc && \
39816 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39817 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39818 "RANLIB=$${RANLIB}" \
39819 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
39820 pdf) \
39821 || exit 1
39822
39823@endif target-boehm-gc
39824
f87a2b2e
MS
39825.PHONY: maybe-html-target-boehm-gc html-target-boehm-gc
39826maybe-html-target-boehm-gc:
39827@if target-boehm-gc
39828maybe-html-target-boehm-gc: html-target-boehm-gc
39829
39830html-target-boehm-gc: \
05750653 39831 configure-target-boehm-gc
f41d6665 39832 @: $(MAKE); $(unstage)
f87a2b2e
MS
39833 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
39834 r=`${PWD_COMMAND}`; export r; \
39835 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
39836 $(NORMAL_TARGET_EXPORTS) \
39837 echo "Doing html in $(TARGET_SUBDIR)/boehm-gc" ; \
39838 for flag in $(EXTRA_TARGET_FLAGS); do \
39839 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39840 done; \
39841 (cd $(TARGET_SUBDIR)/boehm-gc && \
39842 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39843 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39844 "RANLIB=$${RANLIB}" \
39845 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
39846 html) \
39847 || exit 1
39848
39849@endif target-boehm-gc
39850
295f4e42
NN
39851.PHONY: maybe-TAGS-target-boehm-gc TAGS-target-boehm-gc
39852maybe-TAGS-target-boehm-gc:
60975492
PB
39853@if target-boehm-gc
39854maybe-TAGS-target-boehm-gc: TAGS-target-boehm-gc
295f4e42
NN
39855
39856TAGS-target-boehm-gc: \
05750653 39857 configure-target-boehm-gc
f41d6665 39858 @: $(MAKE); $(unstage)
295f4e42
NN
39859 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
39860 r=`${PWD_COMMAND}`; export r; \
39861 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 39862 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
39863 echo "Doing TAGS in $(TARGET_SUBDIR)/boehm-gc" ; \
39864 for flag in $(EXTRA_TARGET_FLAGS); do \
39865 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39866 done; \
39867 (cd $(TARGET_SUBDIR)/boehm-gc && \
39868 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39869 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39870 "RANLIB=$${RANLIB}" \
39871 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 39872 TAGS) \
295f4e42
NN
39873 || exit 1
39874
60975492 39875@endif target-boehm-gc
295f4e42
NN
39876
39877.PHONY: maybe-install-info-target-boehm-gc install-info-target-boehm-gc
39878maybe-install-info-target-boehm-gc:
60975492
PB
39879@if target-boehm-gc
39880maybe-install-info-target-boehm-gc: install-info-target-boehm-gc
295f4e42
NN
39881
39882install-info-target-boehm-gc: \
39883 configure-target-boehm-gc \
05750653 39884 info-target-boehm-gc
f41d6665 39885 @: $(MAKE); $(unstage)
295f4e42
NN
39886 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
39887 r=`${PWD_COMMAND}`; export r; \
39888 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 39889 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
39890 echo "Doing install-info in $(TARGET_SUBDIR)/boehm-gc" ; \
39891 for flag in $(EXTRA_TARGET_FLAGS); do \
39892 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39893 done; \
39894 (cd $(TARGET_SUBDIR)/boehm-gc && \
39895 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39896 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39897 "RANLIB=$${RANLIB}" \
39898 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 39899 install-info) \
295f4e42
NN
39900 || exit 1
39901
60975492 39902@endif target-boehm-gc
295f4e42 39903
65d6e994
CD
39904.PHONY: maybe-install-html-target-boehm-gc install-html-target-boehm-gc
39905maybe-install-html-target-boehm-gc:
39906@if target-boehm-gc
39907maybe-install-html-target-boehm-gc: install-html-target-boehm-gc
39908
39909install-html-target-boehm-gc: \
39910 configure-target-boehm-gc \
39911 html-target-boehm-gc
39912 @: $(MAKE); $(unstage)
39913 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
39914 r=`${PWD_COMMAND}`; export r; \
39915 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
39916 $(NORMAL_TARGET_EXPORTS) \
39917 echo "Doing install-html in $(TARGET_SUBDIR)/boehm-gc" ; \
39918 for flag in $(EXTRA_TARGET_FLAGS); do \
39919 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39920 done; \
39921 (cd $(TARGET_SUBDIR)/boehm-gc && \
39922 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39923 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39924 "RANLIB=$${RANLIB}" \
39925 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
39926 install-html) \
39927 || exit 1
39928
39929@endif target-boehm-gc
39930
295f4e42
NN
39931.PHONY: maybe-installcheck-target-boehm-gc installcheck-target-boehm-gc
39932maybe-installcheck-target-boehm-gc:
60975492
PB
39933@if target-boehm-gc
39934maybe-installcheck-target-boehm-gc: installcheck-target-boehm-gc
295f4e42
NN
39935
39936installcheck-target-boehm-gc: \
05750653 39937 configure-target-boehm-gc
f41d6665 39938 @: $(MAKE); $(unstage)
295f4e42
NN
39939 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
39940 r=`${PWD_COMMAND}`; export r; \
39941 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 39942 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
39943 echo "Doing installcheck in $(TARGET_SUBDIR)/boehm-gc" ; \
39944 for flag in $(EXTRA_TARGET_FLAGS); do \
39945 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39946 done; \
39947 (cd $(TARGET_SUBDIR)/boehm-gc && \
39948 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39949 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39950 "RANLIB=$${RANLIB}" \
39951 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 39952 installcheck) \
295f4e42
NN
39953 || exit 1
39954
60975492 39955@endif target-boehm-gc
295f4e42
NN
39956
39957.PHONY: maybe-mostlyclean-target-boehm-gc mostlyclean-target-boehm-gc
39958maybe-mostlyclean-target-boehm-gc:
60975492
PB
39959@if target-boehm-gc
39960maybe-mostlyclean-target-boehm-gc: mostlyclean-target-boehm-gc
295f4e42 39961
05750653 39962mostlyclean-target-boehm-gc:
f41d6665 39963 @: $(MAKE); $(unstage)
295f4e42
NN
39964 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
39965 r=`${PWD_COMMAND}`; export r; \
39966 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 39967 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
39968 echo "Doing mostlyclean in $(TARGET_SUBDIR)/boehm-gc" ; \
39969 for flag in $(EXTRA_TARGET_FLAGS); do \
39970 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39971 done; \
39972 (cd $(TARGET_SUBDIR)/boehm-gc && \
39973 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39974 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
39975 "RANLIB=$${RANLIB}" \
39976 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 39977 mostlyclean) \
295f4e42
NN
39978 || exit 1
39979
60975492 39980@endif target-boehm-gc
295f4e42
NN
39981
39982.PHONY: maybe-clean-target-boehm-gc clean-target-boehm-gc
39983maybe-clean-target-boehm-gc:
60975492
PB
39984@if target-boehm-gc
39985maybe-clean-target-boehm-gc: clean-target-boehm-gc
295f4e42 39986
05750653 39987clean-target-boehm-gc:
f41d6665 39988 @: $(MAKE); $(unstage)
295f4e42
NN
39989 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
39990 r=`${PWD_COMMAND}`; export r; \
39991 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 39992 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
39993 echo "Doing clean in $(TARGET_SUBDIR)/boehm-gc" ; \
39994 for flag in $(EXTRA_TARGET_FLAGS); do \
39995 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
39996 done; \
39997 (cd $(TARGET_SUBDIR)/boehm-gc && \
39998 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
39999 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40000 "RANLIB=$${RANLIB}" \
40001 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 40002 clean) \
295f4e42
NN
40003 || exit 1
40004
60975492 40005@endif target-boehm-gc
295f4e42
NN
40006
40007.PHONY: maybe-distclean-target-boehm-gc distclean-target-boehm-gc
40008maybe-distclean-target-boehm-gc:
60975492
PB
40009@if target-boehm-gc
40010maybe-distclean-target-boehm-gc: distclean-target-boehm-gc
295f4e42 40011
05750653 40012distclean-target-boehm-gc:
f41d6665 40013 @: $(MAKE); $(unstage)
295f4e42
NN
40014 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
40015 r=`${PWD_COMMAND}`; export r; \
40016 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 40017 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
40018 echo "Doing distclean in $(TARGET_SUBDIR)/boehm-gc" ; \
40019 for flag in $(EXTRA_TARGET_FLAGS); do \
40020 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40021 done; \
40022 (cd $(TARGET_SUBDIR)/boehm-gc && \
40023 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40024 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40025 "RANLIB=$${RANLIB}" \
40026 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 40027 distclean) \
295f4e42
NN
40028 || exit 1
40029
60975492 40030@endif target-boehm-gc
295f4e42
NN
40031
40032.PHONY: maybe-maintainer-clean-target-boehm-gc maintainer-clean-target-boehm-gc
40033maybe-maintainer-clean-target-boehm-gc:
60975492
PB
40034@if target-boehm-gc
40035maybe-maintainer-clean-target-boehm-gc: maintainer-clean-target-boehm-gc
295f4e42 40036
05750653 40037maintainer-clean-target-boehm-gc:
f41d6665 40038 @: $(MAKE); $(unstage)
295f4e42
NN
40039 @[ -f $(TARGET_SUBDIR)/boehm-gc/Makefile ] || exit 0 ; \
40040 r=`${PWD_COMMAND}`; export r; \
40041 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 40042 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
40043 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/boehm-gc" ; \
40044 for flag in $(EXTRA_TARGET_FLAGS); do \
40045 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40046 done; \
40047 (cd $(TARGET_SUBDIR)/boehm-gc && \
40048 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40049 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40050 "RANLIB=$${RANLIB}" \
40051 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 40052 maintainer-clean) \
295f4e42
NN
40053 || exit 1
40054
60975492 40055@endif target-boehm-gc
295f4e42
NN
40056
40057
4977bab6 40058
4977bab6 40059
25b42232
PB
40060
40061.PHONY: configure-target-qthreads maybe-configure-target-qthreads
40062maybe-configure-target-qthreads:
3ff3adad
PB
40063@if gcc-bootstrap
40064configure-target-qthreads: stage_current
40065@endif gcc-bootstrap
25b42232
PB
40066@if target-qthreads
40067maybe-configure-target-qthreads: configure-target-qthreads
cc11cc9b 40068configure-target-qthreads:
f41d6665
DJ
40069 @: $(MAKE); $(unstage)
40070 @r=`${PWD_COMMAND}`; export r; \
40071 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40072 echo "Checking multilib configuration for qthreads..."; \
40073 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/qthreads ; \
40074 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/qthreads/multilib.tmp 2> /dev/null ; \
40075 if test -r $(TARGET_SUBDIR)/qthreads/multilib.out; then \
40076 if cmp -s $(TARGET_SUBDIR)/qthreads/multilib.tmp $(TARGET_SUBDIR)/qthreads/multilib.out; then \
40077 rm -f $(TARGET_SUBDIR)/qthreads/multilib.tmp; \
40078 else \
40079 rm -f $(TARGET_SUBDIR)/qthreads/Makefile; \
40080 mv $(TARGET_SUBDIR)/qthreads/multilib.tmp $(TARGET_SUBDIR)/qthreads/multilib.out; \
40081 fi; \
40082 else \
40083 mv $(TARGET_SUBDIR)/qthreads/multilib.tmp $(TARGET_SUBDIR)/qthreads/multilib.out; \
cc11cc9b
PB
40084 fi; \
40085 test ! -f $(TARGET_SUBDIR)/qthreads/Makefile || exit 0; \
295f4e42 40086 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/qthreads ; \
4fc4dd12 40087 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
40088 echo Configuring in $(TARGET_SUBDIR)/qthreads; \
40089 cd "$(TARGET_SUBDIR)/qthreads" || exit 1; \
3aa83176 40090 case $(srcdir) in \
215c351a
PB
40091 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
40092 *) topdir=`echo $(TARGET_SUBDIR)/qthreads/ | \
40093 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3aa83176 40094 esac; \
215c351a
PB
40095 srcdiroption="--srcdir=$${topdir}/qthreads"; \
40096 libsrcdir="$$s/qthreads"; \
3aa83176
NN
40097 rm -f no-such-file || : ; \
40098 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 40099 $(TARGET_CONFIGARGS) $${srcdiroption} \
3aa83176 40100 || exit 1
60975492 40101@endif target-qthreads
4977bab6 40102
25b42232
PB
40103
40104
ce406537
PB
40105
40106
295f4e42
NN
40107.PHONY: all-target-qthreads maybe-all-target-qthreads
40108maybe-all-target-qthreads:
3ff3adad
PB
40109@if gcc-bootstrap
40110all-target-qthreads: stage_current
40111@endif gcc-bootstrap
60975492 40112@if target-qthreads
7c27e184 40113TARGET-target-qthreads=all
60975492 40114maybe-all-target-qthreads: all-target-qthreads
295f4e42 40115all-target-qthreads: configure-target-qthreads
f41d6665 40116 @: $(MAKE); $(unstage)
8c90b13a
L
40117 @r=`${PWD_COMMAND}`; export r; \
40118 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 40119 $(NORMAL_TARGET_EXPORTS) \
295f4e42 40120 (cd $(TARGET_SUBDIR)/qthreads && \
25b42232 40121 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-qthreads))
60975492 40122@endif target-qthreads
4977bab6 40123
25b42232
PB
40124
40125
ce406537
PB
40126
40127
295f4e42
NN
40128.PHONY: check-target-qthreads maybe-check-target-qthreads
40129maybe-check-target-qthreads:
60975492
PB
40130@if target-qthreads
40131maybe-check-target-qthreads: check-target-qthreads
7e2dbcef 40132
295f4e42 40133check-target-qthreads:
f41d6665 40134 @: $(MAKE); $(unstage)
8c90b13a
L
40135 @r=`${PWD_COMMAND}`; export r; \
40136 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 40137 $(NORMAL_TARGET_EXPORTS) \
295f4e42 40138 (cd $(TARGET_SUBDIR)/qthreads && \
a52a0a7f 40139 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
4977bab6 40140
60975492 40141@endif target-qthreads
4977bab6 40142
295f4e42
NN
40143.PHONY: install-target-qthreads maybe-install-target-qthreads
40144maybe-install-target-qthreads:
60975492
PB
40145@if target-qthreads
40146maybe-install-target-qthreads: install-target-qthreads
295f4e42
NN
40147
40148install-target-qthreads: installdirs
f41d6665 40149 @: $(MAKE); $(unstage)
295f4e42
NN
40150 @r=`${PWD_COMMAND}`; export r; \
40151 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 40152 $(NORMAL_TARGET_EXPORTS) \
295f4e42 40153 (cd $(TARGET_SUBDIR)/qthreads && \
a52a0a7f 40154 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
295f4e42 40155
60975492 40156@endif target-qthreads
295f4e42 40157
b5422ad7 40158# Other targets (info, dvi, pdf, etc.)
295f4e42
NN
40159
40160.PHONY: maybe-info-target-qthreads info-target-qthreads
40161maybe-info-target-qthreads:
60975492
PB
40162@if target-qthreads
40163maybe-info-target-qthreads: info-target-qthreads
295f4e42
NN
40164
40165info-target-qthreads: \
05750653 40166 configure-target-qthreads
f41d6665 40167 @: $(MAKE); $(unstage)
295f4e42
NN
40168 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
40169 r=`${PWD_COMMAND}`; export r; \
40170 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 40171 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
40172 echo "Doing info in $(TARGET_SUBDIR)/qthreads" ; \
40173 for flag in $(EXTRA_TARGET_FLAGS); do \
40174 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40175 done; \
40176 (cd $(TARGET_SUBDIR)/qthreads && \
40177 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40178 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40179 "RANLIB=$${RANLIB}" \
40180 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 40181 info) \
295f4e42
NN
40182 || exit 1
40183
60975492 40184@endif target-qthreads
295f4e42
NN
40185
40186.PHONY: maybe-dvi-target-qthreads dvi-target-qthreads
40187maybe-dvi-target-qthreads:
60975492
PB
40188@if target-qthreads
40189maybe-dvi-target-qthreads: dvi-target-qthreads
295f4e42
NN
40190
40191dvi-target-qthreads: \
05750653 40192 configure-target-qthreads
f41d6665 40193 @: $(MAKE); $(unstage)
295f4e42
NN
40194 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
40195 r=`${PWD_COMMAND}`; export r; \
40196 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 40197 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
40198 echo "Doing dvi in $(TARGET_SUBDIR)/qthreads" ; \
40199 for flag in $(EXTRA_TARGET_FLAGS); do \
40200 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40201 done; \
40202 (cd $(TARGET_SUBDIR)/qthreads && \
40203 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40204 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40205 "RANLIB=$${RANLIB}" \
40206 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 40207 dvi) \
295f4e42
NN
40208 || exit 1
40209
60975492 40210@endif target-qthreads
295f4e42 40211
b5422ad7
BM
40212.PHONY: maybe-pdf-target-qthreads pdf-target-qthreads
40213maybe-pdf-target-qthreads:
40214@if target-qthreads
40215maybe-pdf-target-qthreads: pdf-target-qthreads
40216
40217pdf-target-qthreads: \
40218 configure-target-qthreads
40219 @: $(MAKE); $(unstage)
40220 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
40221 r=`${PWD_COMMAND}`; export r; \
40222 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40223 $(NORMAL_TARGET_EXPORTS) \
40224 echo "Doing pdf in $(TARGET_SUBDIR)/qthreads" ; \
40225 for flag in $(EXTRA_TARGET_FLAGS); do \
40226 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40227 done; \
40228 (cd $(TARGET_SUBDIR)/qthreads && \
40229 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40230 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40231 "RANLIB=$${RANLIB}" \
40232 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
40233 pdf) \
40234 || exit 1
40235
40236@endif target-qthreads
40237
f87a2b2e
MS
40238.PHONY: maybe-html-target-qthreads html-target-qthreads
40239maybe-html-target-qthreads:
40240@if target-qthreads
40241maybe-html-target-qthreads: html-target-qthreads
40242
40243html-target-qthreads: \
05750653 40244 configure-target-qthreads
f41d6665 40245 @: $(MAKE); $(unstage)
f87a2b2e
MS
40246 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
40247 r=`${PWD_COMMAND}`; export r; \
40248 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
40249 $(NORMAL_TARGET_EXPORTS) \
40250 echo "Doing html in $(TARGET_SUBDIR)/qthreads" ; \
40251 for flag in $(EXTRA_TARGET_FLAGS); do \
40252 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40253 done; \
40254 (cd $(TARGET_SUBDIR)/qthreads && \
40255 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40256 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40257 "RANLIB=$${RANLIB}" \
40258 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
40259 html) \
40260 || exit 1
40261
40262@endif target-qthreads
40263
295f4e42
NN
40264.PHONY: maybe-TAGS-target-qthreads TAGS-target-qthreads
40265maybe-TAGS-target-qthreads:
60975492
PB
40266@if target-qthreads
40267maybe-TAGS-target-qthreads: TAGS-target-qthreads
295f4e42
NN
40268
40269TAGS-target-qthreads: \
05750653 40270 configure-target-qthreads
f41d6665 40271 @: $(MAKE); $(unstage)
295f4e42
NN
40272 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
40273 r=`${PWD_COMMAND}`; export r; \
40274 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 40275 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
40276 echo "Doing TAGS in $(TARGET_SUBDIR)/qthreads" ; \
40277 for flag in $(EXTRA_TARGET_FLAGS); do \
40278 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40279 done; \
40280 (cd $(TARGET_SUBDIR)/qthreads && \
40281 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40282 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40283 "RANLIB=$${RANLIB}" \
40284 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 40285 TAGS) \
295f4e42
NN
40286 || exit 1
40287
60975492 40288@endif target-qthreads
295f4e42
NN
40289
40290.PHONY: maybe-install-info-target-qthreads install-info-target-qthreads
40291maybe-install-info-target-qthreads:
60975492
PB
40292@if target-qthreads
40293maybe-install-info-target-qthreads: install-info-target-qthreads
295f4e42
NN
40294
40295install-info-target-qthreads: \
40296 configure-target-qthreads \
05750653 40297 info-target-qthreads
f41d6665 40298 @: $(MAKE); $(unstage)
295f4e42
NN
40299 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
40300 r=`${PWD_COMMAND}`; export r; \
40301 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 40302 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
40303 echo "Doing install-info in $(TARGET_SUBDIR)/qthreads" ; \
40304 for flag in $(EXTRA_TARGET_FLAGS); do \
40305 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40306 done; \
40307 (cd $(TARGET_SUBDIR)/qthreads && \
40308 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40309 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40310 "RANLIB=$${RANLIB}" \
40311 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 40312 install-info) \
295f4e42
NN
40313 || exit 1
40314
60975492 40315@endif target-qthreads
295f4e42 40316
65d6e994
CD
40317.PHONY: maybe-install-html-target-qthreads install-html-target-qthreads
40318maybe-install-html-target-qthreads:
40319@if target-qthreads
40320maybe-install-html-target-qthreads: install-html-target-qthreads
40321
40322install-html-target-qthreads: \
40323 configure-target-qthreads \
40324 html-target-qthreads
40325 @: $(MAKE); $(unstage)
40326 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
40327 r=`${PWD_COMMAND}`; export r; \
40328 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40329 $(NORMAL_TARGET_EXPORTS) \
40330 echo "Doing install-html in $(TARGET_SUBDIR)/qthreads" ; \
40331 for flag in $(EXTRA_TARGET_FLAGS); do \
40332 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40333 done; \
40334 (cd $(TARGET_SUBDIR)/qthreads && \
40335 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40336 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40337 "RANLIB=$${RANLIB}" \
40338 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
40339 install-html) \
40340 || exit 1
40341
40342@endif target-qthreads
40343
295f4e42
NN
40344.PHONY: maybe-installcheck-target-qthreads installcheck-target-qthreads
40345maybe-installcheck-target-qthreads:
60975492
PB
40346@if target-qthreads
40347maybe-installcheck-target-qthreads: installcheck-target-qthreads
295f4e42
NN
40348
40349installcheck-target-qthreads: \
05750653 40350 configure-target-qthreads
f41d6665 40351 @: $(MAKE); $(unstage)
295f4e42
NN
40352 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
40353 r=`${PWD_COMMAND}`; export r; \
40354 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 40355 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
40356 echo "Doing installcheck in $(TARGET_SUBDIR)/qthreads" ; \
40357 for flag in $(EXTRA_TARGET_FLAGS); do \
40358 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40359 done; \
40360 (cd $(TARGET_SUBDIR)/qthreads && \
40361 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40362 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40363 "RANLIB=$${RANLIB}" \
40364 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 40365 installcheck) \
295f4e42
NN
40366 || exit 1
40367
60975492 40368@endif target-qthreads
295f4e42
NN
40369
40370.PHONY: maybe-mostlyclean-target-qthreads mostlyclean-target-qthreads
40371maybe-mostlyclean-target-qthreads:
60975492
PB
40372@if target-qthreads
40373maybe-mostlyclean-target-qthreads: mostlyclean-target-qthreads
295f4e42 40374
05750653 40375mostlyclean-target-qthreads:
f41d6665 40376 @: $(MAKE); $(unstage)
295f4e42
NN
40377 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
40378 r=`${PWD_COMMAND}`; export r; \
40379 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 40380 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
40381 echo "Doing mostlyclean in $(TARGET_SUBDIR)/qthreads" ; \
40382 for flag in $(EXTRA_TARGET_FLAGS); do \
40383 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40384 done; \
40385 (cd $(TARGET_SUBDIR)/qthreads && \
40386 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40387 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40388 "RANLIB=$${RANLIB}" \
40389 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 40390 mostlyclean) \
295f4e42
NN
40391 || exit 1
40392
60975492 40393@endif target-qthreads
295f4e42
NN
40394
40395.PHONY: maybe-clean-target-qthreads clean-target-qthreads
40396maybe-clean-target-qthreads:
60975492
PB
40397@if target-qthreads
40398maybe-clean-target-qthreads: clean-target-qthreads
295f4e42 40399
05750653 40400clean-target-qthreads:
f41d6665 40401 @: $(MAKE); $(unstage)
295f4e42
NN
40402 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
40403 r=`${PWD_COMMAND}`; export r; \
40404 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 40405 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
40406 echo "Doing clean in $(TARGET_SUBDIR)/qthreads" ; \
40407 for flag in $(EXTRA_TARGET_FLAGS); do \
40408 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40409 done; \
40410 (cd $(TARGET_SUBDIR)/qthreads && \
40411 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40412 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40413 "RANLIB=$${RANLIB}" \
40414 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 40415 clean) \
295f4e42
NN
40416 || exit 1
40417
60975492 40418@endif target-qthreads
295f4e42
NN
40419
40420.PHONY: maybe-distclean-target-qthreads distclean-target-qthreads
40421maybe-distclean-target-qthreads:
60975492
PB
40422@if target-qthreads
40423maybe-distclean-target-qthreads: distclean-target-qthreads
295f4e42 40424
05750653 40425distclean-target-qthreads:
f41d6665 40426 @: $(MAKE); $(unstage)
295f4e42
NN
40427 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
40428 r=`${PWD_COMMAND}`; export r; \
40429 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 40430 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
40431 echo "Doing distclean in $(TARGET_SUBDIR)/qthreads" ; \
40432 for flag in $(EXTRA_TARGET_FLAGS); do \
40433 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40434 done; \
40435 (cd $(TARGET_SUBDIR)/qthreads && \
40436 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40437 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40438 "RANLIB=$${RANLIB}" \
40439 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 40440 distclean) \
295f4e42
NN
40441 || exit 1
40442
60975492 40443@endif target-qthreads
295f4e42
NN
40444
40445.PHONY: maybe-maintainer-clean-target-qthreads maintainer-clean-target-qthreads
40446maybe-maintainer-clean-target-qthreads:
60975492
PB
40447@if target-qthreads
40448maybe-maintainer-clean-target-qthreads: maintainer-clean-target-qthreads
295f4e42 40449
05750653 40450maintainer-clean-target-qthreads:
f41d6665 40451 @: $(MAKE); $(unstage)
295f4e42
NN
40452 @[ -f $(TARGET_SUBDIR)/qthreads/Makefile ] || exit 0 ; \
40453 r=`${PWD_COMMAND}`; export r; \
40454 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 40455 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
40456 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/qthreads" ; \
40457 for flag in $(EXTRA_TARGET_FLAGS); do \
40458 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40459 done; \
40460 (cd $(TARGET_SUBDIR)/qthreads && \
40461 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40462 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40463 "RANLIB=$${RANLIB}" \
40464 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 40465 maintainer-clean) \
295f4e42 40466 || exit 1
7e2dbcef 40467
60975492 40468@endif target-qthreads
4977bab6
ZW
40469
40470
4977bab6 40471
4977bab6 40472
25b42232
PB
40473
40474.PHONY: configure-target-rda maybe-configure-target-rda
40475maybe-configure-target-rda:
3ff3adad
PB
40476@if gcc-bootstrap
40477configure-target-rda: stage_current
40478@endif gcc-bootstrap
25b42232
PB
40479@if target-rda
40480maybe-configure-target-rda: configure-target-rda
cc11cc9b 40481configure-target-rda:
f41d6665
DJ
40482 @: $(MAKE); $(unstage)
40483 @r=`${PWD_COMMAND}`; export r; \
40484 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40485 echo "Checking multilib configuration for rda..."; \
40486 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/rda ; \
40487 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/rda/multilib.tmp 2> /dev/null ; \
40488 if test -r $(TARGET_SUBDIR)/rda/multilib.out; then \
40489 if cmp -s $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; then \
40490 rm -f $(TARGET_SUBDIR)/rda/multilib.tmp; \
40491 else \
40492 rm -f $(TARGET_SUBDIR)/rda/Makefile; \
40493 mv $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; \
40494 fi; \
40495 else \
40496 mv $(TARGET_SUBDIR)/rda/multilib.tmp $(TARGET_SUBDIR)/rda/multilib.out; \
cc11cc9b
PB
40497 fi; \
40498 test ! -f $(TARGET_SUBDIR)/rda/Makefile || exit 0; \
295f4e42 40499 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/rda ; \
4fc4dd12 40500 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
40501 echo Configuring in $(TARGET_SUBDIR)/rda; \
40502 cd "$(TARGET_SUBDIR)/rda" || exit 1; \
3aa83176 40503 case $(srcdir) in \
215c351a
PB
40504 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
40505 *) topdir=`echo $(TARGET_SUBDIR)/rda/ | \
40506 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3aa83176 40507 esac; \
215c351a
PB
40508 srcdiroption="--srcdir=$${topdir}/rda"; \
40509 libsrcdir="$$s/rda"; \
3aa83176
NN
40510 rm -f no-such-file || : ; \
40511 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 40512 $(TARGET_CONFIGARGS) $${srcdiroption} \
3aa83176 40513 || exit 1
60975492 40514@endif target-rda
4977bab6 40515
25b42232
PB
40516
40517
ce406537
PB
40518
40519
295f4e42
NN
40520.PHONY: all-target-rda maybe-all-target-rda
40521maybe-all-target-rda:
3ff3adad
PB
40522@if gcc-bootstrap
40523all-target-rda: stage_current
40524@endif gcc-bootstrap
60975492 40525@if target-rda
7c27e184 40526TARGET-target-rda=all
60975492 40527maybe-all-target-rda: all-target-rda
295f4e42 40528all-target-rda: configure-target-rda
f41d6665 40529 @: $(MAKE); $(unstage)
8c90b13a
L
40530 @r=`${PWD_COMMAND}`; export r; \
40531 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 40532 $(NORMAL_TARGET_EXPORTS) \
295f4e42 40533 (cd $(TARGET_SUBDIR)/rda && \
25b42232 40534 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-rda))
60975492 40535@endif target-rda
4977bab6 40536
25b42232
PB
40537
40538
ce406537
PB
40539
40540
295f4e42
NN
40541.PHONY: check-target-rda maybe-check-target-rda
40542maybe-check-target-rda:
60975492
PB
40543@if target-rda
40544maybe-check-target-rda: check-target-rda
7e2dbcef 40545
295f4e42 40546check-target-rda:
f41d6665 40547 @: $(MAKE); $(unstage)
8c90b13a
L
40548 @r=`${PWD_COMMAND}`; export r; \
40549 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 40550 $(NORMAL_TARGET_EXPORTS) \
295f4e42 40551 (cd $(TARGET_SUBDIR)/rda && \
a52a0a7f 40552 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
6599da04 40553
60975492 40554@endif target-rda
4977bab6 40555
295f4e42
NN
40556.PHONY: install-target-rda maybe-install-target-rda
40557maybe-install-target-rda:
60975492
PB
40558@if target-rda
40559maybe-install-target-rda: install-target-rda
7e2dbcef 40560
295f4e42 40561install-target-rda: installdirs
f41d6665 40562 @: $(MAKE); $(unstage)
8c90b13a
L
40563 @r=`${PWD_COMMAND}`; export r; \
40564 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 40565 $(NORMAL_TARGET_EXPORTS) \
295f4e42 40566 (cd $(TARGET_SUBDIR)/rda && \
a52a0a7f 40567 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
e490616e 40568
60975492 40569@endif target-rda
4977bab6 40570
b5422ad7 40571# Other targets (info, dvi, pdf, etc.)
295f4e42
NN
40572
40573.PHONY: maybe-info-target-rda info-target-rda
40574maybe-info-target-rda:
60975492
PB
40575@if target-rda
40576maybe-info-target-rda: info-target-rda
295f4e42
NN
40577
40578info-target-rda: \
05750653 40579 configure-target-rda
f41d6665 40580 @: $(MAKE); $(unstage)
295f4e42
NN
40581 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
40582 r=`${PWD_COMMAND}`; export r; \
40583 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 40584 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
40585 echo "Doing info in $(TARGET_SUBDIR)/rda" ; \
40586 for flag in $(EXTRA_TARGET_FLAGS); do \
40587 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40588 done; \
40589 (cd $(TARGET_SUBDIR)/rda && \
40590 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40591 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40592 "RANLIB=$${RANLIB}" \
40593 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 40594 info) \
295f4e42
NN
40595 || exit 1
40596
60975492 40597@endif target-rda
295f4e42
NN
40598
40599.PHONY: maybe-dvi-target-rda dvi-target-rda
40600maybe-dvi-target-rda:
60975492
PB
40601@if target-rda
40602maybe-dvi-target-rda: dvi-target-rda
295f4e42
NN
40603
40604dvi-target-rda: \
05750653 40605 configure-target-rda
f41d6665 40606 @: $(MAKE); $(unstage)
295f4e42
NN
40607 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
40608 r=`${PWD_COMMAND}`; export r; \
40609 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 40610 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
40611 echo "Doing dvi in $(TARGET_SUBDIR)/rda" ; \
40612 for flag in $(EXTRA_TARGET_FLAGS); do \
40613 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40614 done; \
40615 (cd $(TARGET_SUBDIR)/rda && \
40616 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40617 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40618 "RANLIB=$${RANLIB}" \
40619 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 40620 dvi) \
295f4e42
NN
40621 || exit 1
40622
60975492 40623@endif target-rda
295f4e42 40624
b5422ad7
BM
40625.PHONY: maybe-pdf-target-rda pdf-target-rda
40626maybe-pdf-target-rda:
40627@if target-rda
40628maybe-pdf-target-rda: pdf-target-rda
40629
40630pdf-target-rda: \
40631 configure-target-rda
40632 @: $(MAKE); $(unstage)
40633 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
40634 r=`${PWD_COMMAND}`; export r; \
40635 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40636 $(NORMAL_TARGET_EXPORTS) \
40637 echo "Doing pdf in $(TARGET_SUBDIR)/rda" ; \
40638 for flag in $(EXTRA_TARGET_FLAGS); do \
40639 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40640 done; \
40641 (cd $(TARGET_SUBDIR)/rda && \
40642 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40643 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40644 "RANLIB=$${RANLIB}" \
40645 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
40646 pdf) \
40647 || exit 1
40648
40649@endif target-rda
40650
f87a2b2e
MS
40651.PHONY: maybe-html-target-rda html-target-rda
40652maybe-html-target-rda:
40653@if target-rda
40654maybe-html-target-rda: html-target-rda
40655
40656html-target-rda: \
05750653 40657 configure-target-rda
f41d6665 40658 @: $(MAKE); $(unstage)
f87a2b2e
MS
40659 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
40660 r=`${PWD_COMMAND}`; export r; \
40661 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
40662 $(NORMAL_TARGET_EXPORTS) \
40663 echo "Doing html in $(TARGET_SUBDIR)/rda" ; \
40664 for flag in $(EXTRA_TARGET_FLAGS); do \
40665 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40666 done; \
40667 (cd $(TARGET_SUBDIR)/rda && \
40668 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40669 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40670 "RANLIB=$${RANLIB}" \
40671 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
40672 html) \
40673 || exit 1
40674
40675@endif target-rda
40676
295f4e42
NN
40677.PHONY: maybe-TAGS-target-rda TAGS-target-rda
40678maybe-TAGS-target-rda:
60975492
PB
40679@if target-rda
40680maybe-TAGS-target-rda: TAGS-target-rda
295f4e42
NN
40681
40682TAGS-target-rda: \
05750653 40683 configure-target-rda
f41d6665 40684 @: $(MAKE); $(unstage)
295f4e42
NN
40685 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
40686 r=`${PWD_COMMAND}`; export r; \
40687 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 40688 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
40689 echo "Doing TAGS in $(TARGET_SUBDIR)/rda" ; \
40690 for flag in $(EXTRA_TARGET_FLAGS); do \
40691 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40692 done; \
40693 (cd $(TARGET_SUBDIR)/rda && \
40694 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40695 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40696 "RANLIB=$${RANLIB}" \
40697 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 40698 TAGS) \
295f4e42
NN
40699 || exit 1
40700
60975492 40701@endif target-rda
295f4e42
NN
40702
40703.PHONY: maybe-install-info-target-rda install-info-target-rda
40704maybe-install-info-target-rda:
60975492
PB
40705@if target-rda
40706maybe-install-info-target-rda: install-info-target-rda
295f4e42
NN
40707
40708install-info-target-rda: \
40709 configure-target-rda \
05750653 40710 info-target-rda
f41d6665 40711 @: $(MAKE); $(unstage)
295f4e42
NN
40712 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
40713 r=`${PWD_COMMAND}`; export r; \
40714 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 40715 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
40716 echo "Doing install-info in $(TARGET_SUBDIR)/rda" ; \
40717 for flag in $(EXTRA_TARGET_FLAGS); do \
40718 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40719 done; \
40720 (cd $(TARGET_SUBDIR)/rda && \
40721 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40722 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40723 "RANLIB=$${RANLIB}" \
40724 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 40725 install-info) \
295f4e42
NN
40726 || exit 1
40727
60975492 40728@endif target-rda
295f4e42 40729
65d6e994
CD
40730.PHONY: maybe-install-html-target-rda install-html-target-rda
40731maybe-install-html-target-rda:
40732@if target-rda
40733maybe-install-html-target-rda: install-html-target-rda
40734
40735install-html-target-rda: \
40736 configure-target-rda \
40737 html-target-rda
40738 @: $(MAKE); $(unstage)
40739 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
40740 r=`${PWD_COMMAND}`; export r; \
40741 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40742 $(NORMAL_TARGET_EXPORTS) \
40743 echo "Doing install-html in $(TARGET_SUBDIR)/rda" ; \
40744 for flag in $(EXTRA_TARGET_FLAGS); do \
40745 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40746 done; \
40747 (cd $(TARGET_SUBDIR)/rda && \
40748 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40749 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40750 "RANLIB=$${RANLIB}" \
40751 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
40752 install-html) \
40753 || exit 1
40754
40755@endif target-rda
40756
295f4e42
NN
40757.PHONY: maybe-installcheck-target-rda installcheck-target-rda
40758maybe-installcheck-target-rda:
60975492
PB
40759@if target-rda
40760maybe-installcheck-target-rda: installcheck-target-rda
295f4e42
NN
40761
40762installcheck-target-rda: \
05750653 40763 configure-target-rda
f41d6665 40764 @: $(MAKE); $(unstage)
295f4e42
NN
40765 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
40766 r=`${PWD_COMMAND}`; export r; \
40767 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 40768 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
40769 echo "Doing installcheck in $(TARGET_SUBDIR)/rda" ; \
40770 for flag in $(EXTRA_TARGET_FLAGS); do \
40771 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40772 done; \
40773 (cd $(TARGET_SUBDIR)/rda && \
40774 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40775 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40776 "RANLIB=$${RANLIB}" \
40777 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 40778 installcheck) \
295f4e42
NN
40779 || exit 1
40780
60975492 40781@endif target-rda
295f4e42
NN
40782
40783.PHONY: maybe-mostlyclean-target-rda mostlyclean-target-rda
40784maybe-mostlyclean-target-rda:
60975492
PB
40785@if target-rda
40786maybe-mostlyclean-target-rda: mostlyclean-target-rda
295f4e42 40787
05750653 40788mostlyclean-target-rda:
f41d6665 40789 @: $(MAKE); $(unstage)
295f4e42
NN
40790 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
40791 r=`${PWD_COMMAND}`; export r; \
40792 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 40793 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
40794 echo "Doing mostlyclean in $(TARGET_SUBDIR)/rda" ; \
40795 for flag in $(EXTRA_TARGET_FLAGS); do \
40796 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40797 done; \
40798 (cd $(TARGET_SUBDIR)/rda && \
40799 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40800 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40801 "RANLIB=$${RANLIB}" \
40802 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 40803 mostlyclean) \
295f4e42
NN
40804 || exit 1
40805
60975492 40806@endif target-rda
295f4e42
NN
40807
40808.PHONY: maybe-clean-target-rda clean-target-rda
40809maybe-clean-target-rda:
60975492
PB
40810@if target-rda
40811maybe-clean-target-rda: clean-target-rda
295f4e42 40812
05750653 40813clean-target-rda:
f41d6665 40814 @: $(MAKE); $(unstage)
295f4e42
NN
40815 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
40816 r=`${PWD_COMMAND}`; export r; \
40817 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 40818 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
40819 echo "Doing clean in $(TARGET_SUBDIR)/rda" ; \
40820 for flag in $(EXTRA_TARGET_FLAGS); do \
40821 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40822 done; \
40823 (cd $(TARGET_SUBDIR)/rda && \
40824 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40825 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40826 "RANLIB=$${RANLIB}" \
40827 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 40828 clean) \
295f4e42
NN
40829 || exit 1
40830
60975492 40831@endif target-rda
295f4e42
NN
40832
40833.PHONY: maybe-distclean-target-rda distclean-target-rda
40834maybe-distclean-target-rda:
60975492
PB
40835@if target-rda
40836maybe-distclean-target-rda: distclean-target-rda
295f4e42 40837
05750653 40838distclean-target-rda:
f41d6665 40839 @: $(MAKE); $(unstage)
295f4e42
NN
40840 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
40841 r=`${PWD_COMMAND}`; export r; \
40842 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 40843 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
40844 echo "Doing distclean in $(TARGET_SUBDIR)/rda" ; \
40845 for flag in $(EXTRA_TARGET_FLAGS); do \
40846 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40847 done; \
40848 (cd $(TARGET_SUBDIR)/rda && \
40849 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40850 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40851 "RANLIB=$${RANLIB}" \
40852 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 40853 distclean) \
295f4e42
NN
40854 || exit 1
40855
60975492 40856@endif target-rda
295f4e42
NN
40857
40858.PHONY: maybe-maintainer-clean-target-rda maintainer-clean-target-rda
40859maybe-maintainer-clean-target-rda:
60975492
PB
40860@if target-rda
40861maybe-maintainer-clean-target-rda: maintainer-clean-target-rda
295f4e42 40862
05750653 40863maintainer-clean-target-rda:
f41d6665 40864 @: $(MAKE); $(unstage)
295f4e42
NN
40865 @[ -f $(TARGET_SUBDIR)/rda/Makefile ] || exit 0 ; \
40866 r=`${PWD_COMMAND}`; export r; \
40867 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 40868 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
40869 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/rda" ; \
40870 for flag in $(EXTRA_TARGET_FLAGS); do \
40871 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
40872 done; \
40873 (cd $(TARGET_SUBDIR)/rda && \
40874 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
40875 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
40876 "RANLIB=$${RANLIB}" \
40877 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 40878 maintainer-clean) \
295f4e42
NN
40879 || exit 1
40880
60975492 40881@endif target-rda
295f4e42
NN
40882
40883
4977bab6 40884
25b42232
PB
40885
40886
40887.PHONY: configure-target-libada maybe-configure-target-libada
40888maybe-configure-target-libada:
3ff3adad
PB
40889@if gcc-bootstrap
40890configure-target-libada: stage_current
40891@endif gcc-bootstrap
25b42232
PB
40892@if target-libada
40893maybe-configure-target-libada: configure-target-libada
cc11cc9b 40894configure-target-libada:
f41d6665
DJ
40895 @: $(MAKE); $(unstage)
40896 @r=`${PWD_COMMAND}`; export r; \
40897 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
40898 echo "Checking multilib configuration for libada..."; \
40899 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libada ; \
40900 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libada/multilib.tmp 2> /dev/null ; \
40901 if test -r $(TARGET_SUBDIR)/libada/multilib.out; then \
40902 if cmp -s $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; then \
40903 rm -f $(TARGET_SUBDIR)/libada/multilib.tmp; \
40904 else \
40905 rm -f $(TARGET_SUBDIR)/libada/Makefile; \
40906 mv $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; \
40907 fi; \
40908 else \
40909 mv $(TARGET_SUBDIR)/libada/multilib.tmp $(TARGET_SUBDIR)/libada/multilib.out; \
cc11cc9b
PB
40910 fi; \
40911 test ! -f $(TARGET_SUBDIR)/libada/Makefile || exit 0; \
295f4e42 40912 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libada ; \
4fc4dd12 40913 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
40914 echo Configuring in $(TARGET_SUBDIR)/libada; \
40915 cd "$(TARGET_SUBDIR)/libada" || exit 1; \
3aa83176 40916 case $(srcdir) in \
215c351a
PB
40917 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
40918 *) topdir=`echo $(TARGET_SUBDIR)/libada/ | \
40919 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
3aa83176 40920 esac; \
215c351a
PB
40921 srcdiroption="--srcdir=$${topdir}/libada"; \
40922 libsrcdir="$$s/libada"; \
3aa83176
NN
40923 rm -f no-such-file || : ; \
40924 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
25b42232 40925 $(TARGET_CONFIGARGS) $${srcdiroption} \
3aa83176 40926 || exit 1
60975492 40927@endif target-libada
4977bab6 40928
25b42232
PB
40929
40930
ce406537
PB
40931
40932
295f4e42
NN
40933.PHONY: all-target-libada maybe-all-target-libada
40934maybe-all-target-libada:
3ff3adad
PB
40935@if gcc-bootstrap
40936all-target-libada: stage_current
40937@endif gcc-bootstrap
60975492 40938@if target-libada
7c27e184 40939TARGET-target-libada=all
60975492 40940maybe-all-target-libada: all-target-libada
295f4e42 40941all-target-libada: configure-target-libada
f41d6665 40942 @: $(MAKE); $(unstage)
8c90b13a
L
40943 @r=`${PWD_COMMAND}`; export r; \
40944 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 40945 $(NORMAL_TARGET_EXPORTS) \
295f4e42 40946 (cd $(TARGET_SUBDIR)/libada && \
25b42232 40947 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libada))
60975492 40948@endif target-libada
6599da04 40949
25b42232
PB
40950
40951
ce406537
PB
40952
40953
295f4e42
NN
40954.PHONY: check-target-libada maybe-check-target-libada
40955maybe-check-target-libada:
60975492
PB
40956@if target-libada
40957maybe-check-target-libada: check-target-libada
7e2dbcef 40958
295f4e42 40959check-target-libada:
f41d6665 40960 @: $(MAKE); $(unstage)
8c90b13a
L
40961 @r=`${PWD_COMMAND}`; export r; \
40962 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 40963 $(NORMAL_TARGET_EXPORTS) \
295f4e42 40964 (cd $(TARGET_SUBDIR)/libada && \
a52a0a7f 40965 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
6599da04 40966
60975492 40967@endif target-libada
4977bab6 40968
295f4e42
NN
40969.PHONY: install-target-libada maybe-install-target-libada
40970maybe-install-target-libada:
60975492
PB
40971@if target-libada
40972maybe-install-target-libada: install-target-libada
7e2dbcef 40973
295f4e42 40974install-target-libada: installdirs
f41d6665 40975 @: $(MAKE); $(unstage)
8c90b13a
L
40976 @r=`${PWD_COMMAND}`; export r; \
40977 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 40978 $(NORMAL_TARGET_EXPORTS) \
295f4e42 40979 (cd $(TARGET_SUBDIR)/libada && \
a52a0a7f 40980 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
6599da04 40981
60975492 40982@endif target-libada
4977bab6 40983
b5422ad7 40984# Other targets (info, dvi, pdf, etc.)
4977bab6 40985
295f4e42
NN
40986.PHONY: maybe-info-target-libada info-target-libada
40987maybe-info-target-libada:
60975492
PB
40988@if target-libada
40989maybe-info-target-libada: info-target-libada
4977bab6 40990
295f4e42 40991info-target-libada: \
05750653 40992 configure-target-libada
f41d6665 40993 @: $(MAKE); $(unstage)
295f4e42 40994 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
8c90b13a
L
40995 r=`${PWD_COMMAND}`; export r; \
40996 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 40997 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
40998 echo "Doing info in $(TARGET_SUBDIR)/libada" ; \
40999 for flag in $(EXTRA_TARGET_FLAGS); do \
41000 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41001 done; \
41002 (cd $(TARGET_SUBDIR)/libada && \
41003 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41004 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41005 "RANLIB=$${RANLIB}" \
41006 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 41007 info) \
3aa83176 41008 || exit 1
4977bab6 41009
60975492 41010@endif target-libada
295f4e42
NN
41011
41012.PHONY: maybe-dvi-target-libada dvi-target-libada
41013maybe-dvi-target-libada:
60975492
PB
41014@if target-libada
41015maybe-dvi-target-libada: dvi-target-libada
295f4e42
NN
41016
41017dvi-target-libada: \
05750653 41018 configure-target-libada
f41d6665 41019 @: $(MAKE); $(unstage)
295f4e42
NN
41020 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
41021 r=`${PWD_COMMAND}`; export r; \
8c90b13a 41022 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 41023 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
41024 echo "Doing dvi in $(TARGET_SUBDIR)/libada" ; \
41025 for flag in $(EXTRA_TARGET_FLAGS); do \
41026 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41027 done; \
41028 (cd $(TARGET_SUBDIR)/libada && \
41029 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41030 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41031 "RANLIB=$${RANLIB}" \
41032 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 41033 dvi) \
295f4e42 41034 || exit 1
6599da04 41035
60975492 41036@endif target-libada
7e2dbcef 41037
b5422ad7
BM
41038.PHONY: maybe-pdf-target-libada pdf-target-libada
41039maybe-pdf-target-libada:
41040@if target-libada
41041maybe-pdf-target-libada: pdf-target-libada
41042
41043pdf-target-libada: \
41044 configure-target-libada
41045 @: $(MAKE); $(unstage)
41046 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
41047 r=`${PWD_COMMAND}`; export r; \
41048 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41049 $(NORMAL_TARGET_EXPORTS) \
41050 echo "Doing pdf in $(TARGET_SUBDIR)/libada" ; \
41051 for flag in $(EXTRA_TARGET_FLAGS); do \
41052 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41053 done; \
41054 (cd $(TARGET_SUBDIR)/libada && \
41055 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41056 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41057 "RANLIB=$${RANLIB}" \
41058 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
41059 pdf) \
41060 || exit 1
41061
41062@endif target-libada
41063
f87a2b2e
MS
41064.PHONY: maybe-html-target-libada html-target-libada
41065maybe-html-target-libada:
41066@if target-libada
41067maybe-html-target-libada: html-target-libada
41068
41069html-target-libada: \
05750653 41070 configure-target-libada
f41d6665 41071 @: $(MAKE); $(unstage)
f87a2b2e
MS
41072 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
41073 r=`${PWD_COMMAND}`; export r; \
41074 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
f87a2b2e
MS
41075 $(NORMAL_TARGET_EXPORTS) \
41076 echo "Doing html in $(TARGET_SUBDIR)/libada" ; \
41077 for flag in $(EXTRA_TARGET_FLAGS); do \
41078 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41079 done; \
41080 (cd $(TARGET_SUBDIR)/libada && \
41081 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41082 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41083 "RANLIB=$${RANLIB}" \
41084 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
41085 html) \
41086 || exit 1
41087
41088@endif target-libada
41089
295f4e42
NN
41090.PHONY: maybe-TAGS-target-libada TAGS-target-libada
41091maybe-TAGS-target-libada:
60975492
PB
41092@if target-libada
41093maybe-TAGS-target-libada: TAGS-target-libada
295f4e42
NN
41094
41095TAGS-target-libada: \
05750653 41096 configure-target-libada
f41d6665 41097 @: $(MAKE); $(unstage)
295f4e42
NN
41098 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
41099 r=`${PWD_COMMAND}`; export r; \
8c90b13a 41100 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 41101 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
41102 echo "Doing TAGS in $(TARGET_SUBDIR)/libada" ; \
41103 for flag in $(EXTRA_TARGET_FLAGS); do \
41104 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41105 done; \
41106 (cd $(TARGET_SUBDIR)/libada && \
41107 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41108 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41109 "RANLIB=$${RANLIB}" \
41110 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 41111 TAGS) \
295f4e42 41112 || exit 1
6599da04 41113
60975492 41114@endif target-libada
6599da04 41115
295f4e42
NN
41116.PHONY: maybe-install-info-target-libada install-info-target-libada
41117maybe-install-info-target-libada:
60975492
PB
41118@if target-libada
41119maybe-install-info-target-libada: install-info-target-libada
7e2dbcef 41120
295f4e42
NN
41121install-info-target-libada: \
41122 configure-target-libada \
05750653 41123 info-target-libada
f41d6665 41124 @: $(MAKE); $(unstage)
295f4e42
NN
41125 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
41126 r=`${PWD_COMMAND}`; export r; \
8c90b13a 41127 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 41128 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
41129 echo "Doing install-info in $(TARGET_SUBDIR)/libada" ; \
41130 for flag in $(EXTRA_TARGET_FLAGS); do \
41131 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41132 done; \
41133 (cd $(TARGET_SUBDIR)/libada && \
41134 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41135 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41136 "RANLIB=$${RANLIB}" \
41137 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 41138 install-info) \
295f4e42 41139 || exit 1
6599da04 41140
60975492 41141@endif target-libada
6599da04 41142
65d6e994
CD
41143.PHONY: maybe-install-html-target-libada install-html-target-libada
41144maybe-install-html-target-libada:
41145@if target-libada
41146maybe-install-html-target-libada: install-html-target-libada
41147
41148install-html-target-libada: \
41149 configure-target-libada \
41150 html-target-libada
41151 @: $(MAKE); $(unstage)
41152 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
41153 r=`${PWD_COMMAND}`; export r; \
41154 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41155 $(NORMAL_TARGET_EXPORTS) \
41156 echo "Doing install-html in $(TARGET_SUBDIR)/libada" ; \
41157 for flag in $(EXTRA_TARGET_FLAGS); do \
41158 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41159 done; \
41160 (cd $(TARGET_SUBDIR)/libada && \
41161 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41162 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41163 "RANLIB=$${RANLIB}" \
41164 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
41165 install-html) \
41166 || exit 1
41167
41168@endif target-libada
41169
295f4e42
NN
41170.PHONY: maybe-installcheck-target-libada installcheck-target-libada
41171maybe-installcheck-target-libada:
60975492
PB
41172@if target-libada
41173maybe-installcheck-target-libada: installcheck-target-libada
d9cdb878 41174
295f4e42 41175installcheck-target-libada: \
05750653 41176 configure-target-libada
f41d6665 41177 @: $(MAKE); $(unstage)
295f4e42
NN
41178 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
41179 r=`${PWD_COMMAND}`; export r; \
41180 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 41181 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
41182 echo "Doing installcheck in $(TARGET_SUBDIR)/libada" ; \
41183 for flag in $(EXTRA_TARGET_FLAGS); do \
41184 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41185 done; \
41186 (cd $(TARGET_SUBDIR)/libada && \
41187 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41188 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41189 "RANLIB=$${RANLIB}" \
41190 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 41191 installcheck) \
295f4e42 41192 || exit 1
d9cdb878 41193
60975492 41194@endif target-libada
295f4e42
NN
41195
41196.PHONY: maybe-mostlyclean-target-libada mostlyclean-target-libada
41197maybe-mostlyclean-target-libada:
60975492
PB
41198@if target-libada
41199maybe-mostlyclean-target-libada: mostlyclean-target-libada
295f4e42 41200
05750653 41201mostlyclean-target-libada:
f41d6665 41202 @: $(MAKE); $(unstage)
295f4e42 41203 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
d9cdb878
AC
41204 r=`${PWD_COMMAND}`; export r; \
41205 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 41206 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
41207 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libada" ; \
41208 for flag in $(EXTRA_TARGET_FLAGS); do \
41209 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41210 done; \
41211 (cd $(TARGET_SUBDIR)/libada && \
41212 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41213 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41214 "RANLIB=$${RANLIB}" \
41215 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 41216 mostlyclean) \
d9cdb878
AC
41217 || exit 1
41218
60975492 41219@endif target-libada
295f4e42
NN
41220
41221.PHONY: maybe-clean-target-libada clean-target-libada
41222maybe-clean-target-libada:
60975492
PB
41223@if target-libada
41224maybe-clean-target-libada: clean-target-libada
295f4e42 41225
05750653 41226clean-target-libada:
f41d6665 41227 @: $(MAKE); $(unstage)
295f4e42
NN
41228 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
41229 r=`${PWD_COMMAND}`; export r; \
d9cdb878 41230 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 41231 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
41232 echo "Doing clean in $(TARGET_SUBDIR)/libada" ; \
41233 for flag in $(EXTRA_TARGET_FLAGS); do \
41234 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41235 done; \
d9cdb878 41236 (cd $(TARGET_SUBDIR)/libada && \
295f4e42
NN
41237 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41238 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41239 "RANLIB=$${RANLIB}" \
41240 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 41241 clean) \
295f4e42 41242 || exit 1
d9cdb878 41243
60975492 41244@endif target-libada
d9cdb878 41245
295f4e42
NN
41246.PHONY: maybe-distclean-target-libada distclean-target-libada
41247maybe-distclean-target-libada:
60975492
PB
41248@if target-libada
41249maybe-distclean-target-libada: distclean-target-libada
295f4e42 41250
05750653 41251distclean-target-libada:
f41d6665 41252 @: $(MAKE); $(unstage)
295f4e42
NN
41253 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
41254 r=`${PWD_COMMAND}`; export r; \
d9cdb878 41255 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 41256 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
41257 echo "Doing distclean in $(TARGET_SUBDIR)/libada" ; \
41258 for flag in $(EXTRA_TARGET_FLAGS); do \
41259 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41260 done; \
d9cdb878 41261 (cd $(TARGET_SUBDIR)/libada && \
295f4e42
NN
41262 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41263 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41264 "RANLIB=$${RANLIB}" \
41265 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 41266 distclean) \
295f4e42 41267 || exit 1
d9cdb878 41268
60975492 41269@endif target-libada
d9cdb878 41270
295f4e42
NN
41271.PHONY: maybe-maintainer-clean-target-libada maintainer-clean-target-libada
41272maybe-maintainer-clean-target-libada:
60975492
PB
41273@if target-libada
41274maybe-maintainer-clean-target-libada: maintainer-clean-target-libada
d9cdb878 41275
05750653 41276maintainer-clean-target-libada:
f41d6665 41277 @: $(MAKE); $(unstage)
295f4e42
NN
41278 @[ -f $(TARGET_SUBDIR)/libada/Makefile ] || exit 0 ; \
41279 r=`${PWD_COMMAND}`; export r; \
d9cdb878 41280 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4fc4dd12 41281 $(NORMAL_TARGET_EXPORTS) \
295f4e42
NN
41282 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libada" ; \
41283 for flag in $(EXTRA_TARGET_FLAGS); do \
41284 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41285 done; \
d9cdb878 41286 (cd $(TARGET_SUBDIR)/libada && \
295f4e42
NN
41287 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41288 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41289 "RANLIB=$${RANLIB}" \
41290 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
a52a0a7f 41291 maintainer-clean) \
295f4e42
NN
41292 || exit 1
41293
60975492 41294@endif target-libada
d9cdb878
AC
41295
41296
4977bab6 41297
953ff289
DN
41298
41299
41300.PHONY: configure-target-libgomp maybe-configure-target-libgomp
41301maybe-configure-target-libgomp:
3ff3adad
PB
41302@if gcc-bootstrap
41303configure-target-libgomp: stage_current
41304@endif gcc-bootstrap
953ff289
DN
41305@if target-libgomp
41306maybe-configure-target-libgomp: configure-target-libgomp
cc11cc9b 41307configure-target-libgomp:
953ff289
DN
41308 @: $(MAKE); $(unstage)
41309 @r=`${PWD_COMMAND}`; export r; \
41310 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41311 echo "Checking multilib configuration for libgomp..."; \
41312 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp ; \
41313 $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/libgomp/multilib.tmp 2> /dev/null ; \
41314 if test -r $(TARGET_SUBDIR)/libgomp/multilib.out; then \
41315 if cmp -s $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; then \
41316 rm -f $(TARGET_SUBDIR)/libgomp/multilib.tmp; \
41317 else \
41318 rm -f $(TARGET_SUBDIR)/libgomp/Makefile; \
41319 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
41320 fi; \
41321 else \
41322 mv $(TARGET_SUBDIR)/libgomp/multilib.tmp $(TARGET_SUBDIR)/libgomp/multilib.out; \
cc11cc9b
PB
41323 fi; \
41324 test ! -f $(TARGET_SUBDIR)/libgomp/Makefile || exit 0; \
953ff289 41325 $(SHELL) $(srcdir)/mkinstalldirs $(TARGET_SUBDIR)/libgomp ; \
953ff289
DN
41326 $(NORMAL_TARGET_EXPORTS) \
41327 echo Configuring in $(TARGET_SUBDIR)/libgomp; \
41328 cd "$(TARGET_SUBDIR)/libgomp" || exit 1; \
41329 case $(srcdir) in \
41330 /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
41331 *) topdir=`echo $(TARGET_SUBDIR)/libgomp/ | \
41332 sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
41333 esac; \
41334 srcdiroption="--srcdir=$${topdir}/libgomp"; \
41335 libsrcdir="$$s/libgomp"; \
41336 rm -f no-such-file || : ; \
41337 CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
41338 $(TARGET_CONFIGARGS) $${srcdiroption} \
41339 || exit 1
41340@endif target-libgomp
41341
41342
41343
41344
41345
41346.PHONY: all-target-libgomp maybe-all-target-libgomp
41347maybe-all-target-libgomp:
3ff3adad
PB
41348@if gcc-bootstrap
41349all-target-libgomp: stage_current
41350@endif gcc-bootstrap
953ff289
DN
41351@if target-libgomp
41352TARGET-target-libgomp=all
41353maybe-all-target-libgomp: all-target-libgomp
41354all-target-libgomp: configure-target-libgomp
41355 @: $(MAKE); $(unstage)
41356 @r=`${PWD_COMMAND}`; export r; \
41357 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41358 $(NORMAL_TARGET_EXPORTS) \
41359 (cd $(TARGET_SUBDIR)/libgomp && \
41360 $(MAKE) $(TARGET_FLAGS_TO_PASS) $(TARGET-target-libgomp))
41361@endif target-libgomp
41362
41363
41364
41365
41366
41367.PHONY: check-target-libgomp maybe-check-target-libgomp
41368maybe-check-target-libgomp:
41369@if target-libgomp
41370maybe-check-target-libgomp: check-target-libgomp
41371
41372check-target-libgomp:
41373 @: $(MAKE); $(unstage)
41374 @r=`${PWD_COMMAND}`; export r; \
41375 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41376 $(NORMAL_TARGET_EXPORTS) \
41377 (cd $(TARGET_SUBDIR)/libgomp && \
41378 $(MAKE) $(TARGET_FLAGS_TO_PASS) check)
41379
41380@endif target-libgomp
41381
41382.PHONY: install-target-libgomp maybe-install-target-libgomp
41383maybe-install-target-libgomp:
41384@if target-libgomp
41385maybe-install-target-libgomp: install-target-libgomp
41386
41387install-target-libgomp: installdirs
41388 @: $(MAKE); $(unstage)
41389 @r=`${PWD_COMMAND}`; export r; \
41390 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41391 $(NORMAL_TARGET_EXPORTS) \
41392 (cd $(TARGET_SUBDIR)/libgomp && \
41393 $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
41394
41395@endif target-libgomp
41396
b5422ad7 41397# Other targets (info, dvi, pdf, etc.)
953ff289
DN
41398
41399.PHONY: maybe-info-target-libgomp info-target-libgomp
41400maybe-info-target-libgomp:
41401@if target-libgomp
41402maybe-info-target-libgomp: info-target-libgomp
41403
41404info-target-libgomp: \
41405 configure-target-libgomp
41406 @: $(MAKE); $(unstage)
41407 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
41408 r=`${PWD_COMMAND}`; export r; \
41409 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41410 $(NORMAL_TARGET_EXPORTS) \
41411 echo "Doing info in $(TARGET_SUBDIR)/libgomp" ; \
41412 for flag in $(EXTRA_TARGET_FLAGS); do \
41413 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41414 done; \
41415 (cd $(TARGET_SUBDIR)/libgomp && \
41416 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41417 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41418 "RANLIB=$${RANLIB}" \
41419 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
41420 info) \
41421 || exit 1
41422
41423@endif target-libgomp
41424
41425.PHONY: maybe-dvi-target-libgomp dvi-target-libgomp
41426maybe-dvi-target-libgomp:
41427@if target-libgomp
41428maybe-dvi-target-libgomp: dvi-target-libgomp
41429
41430dvi-target-libgomp: \
41431 configure-target-libgomp
41432 @: $(MAKE); $(unstage)
41433 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
41434 r=`${PWD_COMMAND}`; export r; \
41435 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41436 $(NORMAL_TARGET_EXPORTS) \
41437 echo "Doing dvi in $(TARGET_SUBDIR)/libgomp" ; \
41438 for flag in $(EXTRA_TARGET_FLAGS); do \
41439 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41440 done; \
41441 (cd $(TARGET_SUBDIR)/libgomp && \
41442 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41443 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41444 "RANLIB=$${RANLIB}" \
41445 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
41446 dvi) \
41447 || exit 1
41448
41449@endif target-libgomp
41450
b5422ad7
BM
41451.PHONY: maybe-pdf-target-libgomp pdf-target-libgomp
41452maybe-pdf-target-libgomp:
41453@if target-libgomp
41454maybe-pdf-target-libgomp: pdf-target-libgomp
41455
41456pdf-target-libgomp: \
41457 configure-target-libgomp
41458 @: $(MAKE); $(unstage)
41459 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
41460 r=`${PWD_COMMAND}`; export r; \
41461 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41462 $(NORMAL_TARGET_EXPORTS) \
41463 echo "Doing pdf in $(TARGET_SUBDIR)/libgomp" ; \
41464 for flag in $(EXTRA_TARGET_FLAGS); do \
41465 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41466 done; \
41467 (cd $(TARGET_SUBDIR)/libgomp && \
41468 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41469 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41470 "RANLIB=$${RANLIB}" \
41471 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
41472 pdf) \
41473 || exit 1
41474
41475@endif target-libgomp
41476
953ff289
DN
41477.PHONY: maybe-html-target-libgomp html-target-libgomp
41478maybe-html-target-libgomp:
41479@if target-libgomp
41480maybe-html-target-libgomp: html-target-libgomp
41481
41482html-target-libgomp: \
41483 configure-target-libgomp
41484 @: $(MAKE); $(unstage)
41485 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
41486 r=`${PWD_COMMAND}`; export r; \
41487 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41488 $(NORMAL_TARGET_EXPORTS) \
41489 echo "Doing html in $(TARGET_SUBDIR)/libgomp" ; \
41490 for flag in $(EXTRA_TARGET_FLAGS); do \
41491 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41492 done; \
41493 (cd $(TARGET_SUBDIR)/libgomp && \
41494 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41495 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41496 "RANLIB=$${RANLIB}" \
41497 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
41498 html) \
41499 || exit 1
41500
41501@endif target-libgomp
41502
41503.PHONY: maybe-TAGS-target-libgomp TAGS-target-libgomp
41504maybe-TAGS-target-libgomp:
41505@if target-libgomp
41506maybe-TAGS-target-libgomp: TAGS-target-libgomp
41507
41508TAGS-target-libgomp: \
41509 configure-target-libgomp
41510 @: $(MAKE); $(unstage)
41511 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
41512 r=`${PWD_COMMAND}`; export r; \
41513 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41514 $(NORMAL_TARGET_EXPORTS) \
41515 echo "Doing TAGS in $(TARGET_SUBDIR)/libgomp" ; \
41516 for flag in $(EXTRA_TARGET_FLAGS); do \
41517 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41518 done; \
41519 (cd $(TARGET_SUBDIR)/libgomp && \
41520 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41521 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41522 "RANLIB=$${RANLIB}" \
41523 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
41524 TAGS) \
41525 || exit 1
41526
41527@endif target-libgomp
41528
41529.PHONY: maybe-install-info-target-libgomp install-info-target-libgomp
41530maybe-install-info-target-libgomp:
41531@if target-libgomp
41532maybe-install-info-target-libgomp: install-info-target-libgomp
41533
41534install-info-target-libgomp: \
41535 configure-target-libgomp \
41536 info-target-libgomp
41537 @: $(MAKE); $(unstage)
41538 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
41539 r=`${PWD_COMMAND}`; export r; \
41540 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41541 $(NORMAL_TARGET_EXPORTS) \
41542 echo "Doing install-info in $(TARGET_SUBDIR)/libgomp" ; \
41543 for flag in $(EXTRA_TARGET_FLAGS); do \
41544 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41545 done; \
41546 (cd $(TARGET_SUBDIR)/libgomp && \
41547 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41548 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41549 "RANLIB=$${RANLIB}" \
41550 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
41551 install-info) \
41552 || exit 1
41553
41554@endif target-libgomp
41555
65d6e994
CD
41556.PHONY: maybe-install-html-target-libgomp install-html-target-libgomp
41557maybe-install-html-target-libgomp:
41558@if target-libgomp
41559maybe-install-html-target-libgomp: install-html-target-libgomp
41560
41561install-html-target-libgomp: \
41562 configure-target-libgomp \
41563 html-target-libgomp
41564 @: $(MAKE); $(unstage)
41565 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
41566 r=`${PWD_COMMAND}`; export r; \
41567 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41568 $(NORMAL_TARGET_EXPORTS) \
41569 echo "Doing install-html in $(TARGET_SUBDIR)/libgomp" ; \
41570 for flag in $(EXTRA_TARGET_FLAGS); do \
41571 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41572 done; \
41573 (cd $(TARGET_SUBDIR)/libgomp && \
41574 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41575 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41576 "RANLIB=$${RANLIB}" \
41577 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
41578 install-html) \
41579 || exit 1
41580
41581@endif target-libgomp
41582
953ff289
DN
41583.PHONY: maybe-installcheck-target-libgomp installcheck-target-libgomp
41584maybe-installcheck-target-libgomp:
41585@if target-libgomp
41586maybe-installcheck-target-libgomp: installcheck-target-libgomp
41587
41588installcheck-target-libgomp: \
41589 configure-target-libgomp
41590 @: $(MAKE); $(unstage)
41591 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
41592 r=`${PWD_COMMAND}`; export r; \
41593 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41594 $(NORMAL_TARGET_EXPORTS) \
41595 echo "Doing installcheck in $(TARGET_SUBDIR)/libgomp" ; \
41596 for flag in $(EXTRA_TARGET_FLAGS); do \
41597 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41598 done; \
41599 (cd $(TARGET_SUBDIR)/libgomp && \
41600 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41601 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41602 "RANLIB=$${RANLIB}" \
41603 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
41604 installcheck) \
41605 || exit 1
41606
41607@endif target-libgomp
41608
41609.PHONY: maybe-mostlyclean-target-libgomp mostlyclean-target-libgomp
41610maybe-mostlyclean-target-libgomp:
41611@if target-libgomp
41612maybe-mostlyclean-target-libgomp: mostlyclean-target-libgomp
41613
41614mostlyclean-target-libgomp:
41615 @: $(MAKE); $(unstage)
41616 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
41617 r=`${PWD_COMMAND}`; export r; \
41618 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41619 $(NORMAL_TARGET_EXPORTS) \
41620 echo "Doing mostlyclean in $(TARGET_SUBDIR)/libgomp" ; \
41621 for flag in $(EXTRA_TARGET_FLAGS); do \
41622 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41623 done; \
41624 (cd $(TARGET_SUBDIR)/libgomp && \
41625 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41626 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41627 "RANLIB=$${RANLIB}" \
41628 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
41629 mostlyclean) \
41630 || exit 1
41631
41632@endif target-libgomp
41633
41634.PHONY: maybe-clean-target-libgomp clean-target-libgomp
41635maybe-clean-target-libgomp:
41636@if target-libgomp
41637maybe-clean-target-libgomp: clean-target-libgomp
41638
41639clean-target-libgomp:
41640 @: $(MAKE); $(unstage)
41641 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
41642 r=`${PWD_COMMAND}`; export r; \
41643 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41644 $(NORMAL_TARGET_EXPORTS) \
41645 echo "Doing clean in $(TARGET_SUBDIR)/libgomp" ; \
41646 for flag in $(EXTRA_TARGET_FLAGS); do \
41647 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41648 done; \
41649 (cd $(TARGET_SUBDIR)/libgomp && \
41650 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41651 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41652 "RANLIB=$${RANLIB}" \
41653 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
41654 clean) \
41655 || exit 1
41656
41657@endif target-libgomp
41658
41659.PHONY: maybe-distclean-target-libgomp distclean-target-libgomp
41660maybe-distclean-target-libgomp:
41661@if target-libgomp
41662maybe-distclean-target-libgomp: distclean-target-libgomp
41663
41664distclean-target-libgomp:
41665 @: $(MAKE); $(unstage)
41666 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
41667 r=`${PWD_COMMAND}`; export r; \
41668 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41669 $(NORMAL_TARGET_EXPORTS) \
41670 echo "Doing distclean in $(TARGET_SUBDIR)/libgomp" ; \
41671 for flag in $(EXTRA_TARGET_FLAGS); do \
41672 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41673 done; \
41674 (cd $(TARGET_SUBDIR)/libgomp && \
41675 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41676 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41677 "RANLIB=$${RANLIB}" \
41678 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
41679 distclean) \
41680 || exit 1
41681
41682@endif target-libgomp
41683
41684.PHONY: maybe-maintainer-clean-target-libgomp maintainer-clean-target-libgomp
41685maybe-maintainer-clean-target-libgomp:
41686@if target-libgomp
41687maybe-maintainer-clean-target-libgomp: maintainer-clean-target-libgomp
41688
41689maintainer-clean-target-libgomp:
41690 @: $(MAKE); $(unstage)
41691 @[ -f $(TARGET_SUBDIR)/libgomp/Makefile ] || exit 0 ; \
41692 r=`${PWD_COMMAND}`; export r; \
41693 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41694 $(NORMAL_TARGET_EXPORTS) \
41695 echo "Doing maintainer-clean in $(TARGET_SUBDIR)/libgomp" ; \
41696 for flag in $(EXTRA_TARGET_FLAGS); do \
41697 eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
41698 done; \
41699 (cd $(TARGET_SUBDIR)/libgomp && \
41700 $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
41701 "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
41702 "RANLIB=$${RANLIB}" \
41703 "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
41704 maintainer-clean) \
41705 || exit 1
41706
41707@endif target-libgomp
41708
41709
41710
4977bab6
ZW
41711# ----------
41712# GCC module
41713# ----------
41714
f516a7da 41715@if gcc-no-bootstrap
09f97c1e 41716.PHONY: cross
7c27e184 41717cross: all-build all-gas all-ld
8c90b13a
L
41718 @r=`${PWD_COMMAND}`; export r; \
41719 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a52a0a7f 41720 $(HOST_EXPORTS) \
09f97c1e 41721 echo "Building the C and C++ compiler"; \
3a4fee66 41722 cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) LANGUAGES="c c++"
8c90b13a
L
41723 @r=`${PWD_COMMAND}`; export r; \
41724 s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \
f6b58262 41725 echo "Building runtime libraries"; \
ad6717df 41726 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LANGUAGES="c c++" all
f516a7da 41727@endif gcc-no-bootstrap
09f97c1e 41728
60975492 41729@if gcc
0edcfdcb
JM
41730.PHONY: check-gcc-c++
41731check-gcc-c++:
f04885d3 41732 @if [ -f ./gcc/Makefile ] ; then \
8c90b13a
L
41733 r=`${PWD_COMMAND}`; export r; \
41734 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
a52a0a7f 41735 $(HOST_EXPORTS) \
88b5521b 41736 (cd gcc && $(MAKE) $(GCC_FLAGS_TO_PASS) check-c++); \
f04885d3
BK
41737 else \
41738 true; \
0edcfdcb
JM
41739 fi
41740
41741.PHONY: check-c++
333a28b4 41742check-c++: check-target-libstdc++-v3 check-gcc-c++
6599da04 41743
4977bab6
ZW
41744# Install the gcc headers files, but not the fixed include files,
41745# which Cygnus is not allowed to distribute. This rule is very
41746# dependent on the workings of the gcc Makefile.in.
41747.PHONY: gcc-no-fixedincludes
41748gcc-no-fixedincludes:
41749 @if [ -f ./gcc/Makefile ]; then \
41750 rm -rf gcc/tmp-include; \
41751 mv gcc/include gcc/tmp-include 2>/dev/null; \
41752 mkdir gcc/include; \
41753 cp $(srcdir)/gcc/gsyslimits.h gcc/include/syslimits.h; \
41754 touch gcc/stmp-fixinc gcc/include/fixed; \
41755 rm -f gcc/stmp-headers gcc/stmp-int-hdrs; \
8c90b13a
L
41756 r=`${PWD_COMMAND}`; export r; \
41757 s=`cd $(srcdir); ${PWD_COMMAND}` ; export s; \
a52a0a7f 41758 $(HOST_EXPORTS) \
88b5521b 41759 (cd ./gcc && \
4977bab6
ZW
41760 $(MAKE) $(GCC_FLAGS_TO_PASS) install); \
41761 rm -rf gcc/include; \
41762 mv gcc/tmp-include gcc/include 2>/dev/null; \
41763 else true; fi
60975492 41764@endif gcc
295f4e42 41765
d32ab992
PB
41766# ---------------------
41767# GCC bootstrap support
41768# ---------------------
295f4e42 41769
d32ab992
PB
41770# We track the current stage (the one in 'gcc') in the stage_current file.
41771# stage_last instead tracks the stage that was built last. These targets
41772# are dummy when toplevel bootstrap is not active.
295f4e42 41773
1061f99e 41774# While making host and target tools, symlinks to the final stage must be
f41d6665
DJ
41775# there, so $(unstage) should be run at various points. To avoid excessive
41776# recursive invocations of make, we "inline" them using a variable. These
41777# must be referenced as ": $(MAKE) ; $(unstage)" rather than "$(unstage)"
41778# to avoid warnings from the GNU Make job server.
1061f99e
PB
41779
41780unstage = :
41781stage = :
cc11cc9b 41782current_stage = ""
1061f99e 41783
d32ab992 41784@if gcc-bootstrap
9bd6112c 41785unstage = if [ -f stage_last ]; then [ -f stage_current ] || $(MAKE) `cat stage_last`-start || exit 1; else :; fi
d19bca38 41786stage = if [ -f stage_current ]; then $(MAKE) `cat stage_current`-end || exit 1; else :; fi
cc11cc9b 41787current_stage = "`cat stage_current 2> /dev/null`"
d32ab992 41788@endif gcc-bootstrap
295f4e42 41789
1061f99e
PB
41790.PHONY: unstage stage
41791unstage:
f41d6665 41792 @: $(MAKE); $(unstage)
d32ab992 41793stage:
f41d6665 41794 @: $(MAKE); $(stage)
2805b53a 41795
2d309510
PB
41796# Disable commands for lean bootstrap.
41797LEAN = false
41798
148907ea
PB
41799# We name the build directories for the various stages "stage1-gcc",
41800# "stage2-gcc","stage3-gcc", etc.
41801
41802# Since the 'compare' process will fail (on debugging information) if any
41803# directory names are different, we need to link the gcc directory for
f41d6665 41804# the previous stage to a constant name ('prev-gcc'), and to make the name of
148907ea
PB
41805# the build directories constant as well. For the latter, we use naked names
41806# like 'gcc', because the scripts in that directory assume it. We use
41807# mv on platforms where symlinks to directories do not work or are not
41808# reliable.
41809
2805b53a 41810# 'touch' doesn't work right on some platforms.
05750653 41811STAMP = echo timestamp >
2805b53a 41812
148907ea
PB
41813# We only want to compare .o files, so set this!
41814objext = .o
41815
148907ea 41816
f516a7da 41817.PHONY: stage1-start stage1-end
148907ea 41818
ad6717df 41819stage1-start::
f41d6665 41820 @: $(MAKE); $(stage); \
d32ab992 41821 echo stage1 > stage_current ; \
215c351a 41822 echo stage1 > stage_last; \
f41d6665 41823 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
7c27e184 41824@if bfd
215c351a
PB
41825 @cd $(HOST_SUBDIR); [ -d stage1-bfd ] || \
41826 mkdir stage1-bfd; \
2d309510 41827 mv stage1-bfd bfd
7c27e184
PB
41828@endif bfd
41829@if opcodes
215c351a
PB
41830 @cd $(HOST_SUBDIR); [ -d stage1-opcodes ] || \
41831 mkdir stage1-opcodes; \
2d309510 41832 mv stage1-opcodes opcodes
7c27e184
PB
41833@endif opcodes
41834@if binutils
215c351a
PB
41835 @cd $(HOST_SUBDIR); [ -d stage1-binutils ] || \
41836 mkdir stage1-binutils; \
2d309510 41837 mv stage1-binutils binutils
7c27e184
PB
41838@endif binutils
41839@if gas
215c351a
PB
41840 @cd $(HOST_SUBDIR); [ -d stage1-gas ] || \
41841 mkdir stage1-gas; \
2d309510 41842 mv stage1-gas gas
7c27e184
PB
41843@endif gas
41844@if gcc
215c351a
PB
41845 @cd $(HOST_SUBDIR); [ -d stage1-gcc ] || \
41846 mkdir stage1-gcc; \
2d309510 41847 mv stage1-gcc gcc
7c27e184
PB
41848@endif gcc
41849@if intl
215c351a
PB
41850 @cd $(HOST_SUBDIR); [ -d stage1-intl ] || \
41851 mkdir stage1-intl; \
2d309510 41852 mv stage1-intl intl
7c27e184
PB
41853@endif intl
41854@if ld
215c351a
PB
41855 @cd $(HOST_SUBDIR); [ -d stage1-ld ] || \
41856 mkdir stage1-ld; \
2d309510 41857 mv stage1-ld ld
7c27e184
PB
41858@endif ld
41859@if libcpp
215c351a
PB
41860 @cd $(HOST_SUBDIR); [ -d stage1-libcpp ] || \
41861 mkdir stage1-libcpp; \
2d309510 41862 mv stage1-libcpp libcpp
7c27e184 41863@endif libcpp
a4b6c45a
BE
41864@if libdecnumber
41865 @cd $(HOST_SUBDIR); [ -d stage1-libdecnumber ] || \
41866 mkdir stage1-libdecnumber; \
2d309510 41867 mv stage1-libdecnumber libdecnumber
a4b6c45a 41868@endif libdecnumber
7c27e184 41869@if libiberty
215c351a
PB
41870 @cd $(HOST_SUBDIR); [ -d stage1-libiberty ] || \
41871 mkdir stage1-libiberty; \
2d309510 41872 mv stage1-libiberty libiberty
7c27e184
PB
41873@endif libiberty
41874@if zlib
215c351a
PB
41875 @cd $(HOST_SUBDIR); [ -d stage1-zlib ] || \
41876 mkdir stage1-zlib; \
2d309510 41877 mv stage1-zlib zlib
7c27e184 41878@endif zlib
f41d6665
DJ
41879 @[ -d stage1-$(TARGET_SUBDIR) ] || \
41880 mkdir stage1-$(TARGET_SUBDIR); \
2d309510 41881 mv stage1-$(TARGET_SUBDIR) $(TARGET_SUBDIR)
148907ea 41882
2d309510 41883stage1-end::
7c27e184 41884@if bfd
2d309510
PB
41885 @if test -d $(HOST_SUBDIR)/bfd ; then \
41886 cd $(HOST_SUBDIR); mv bfd stage1-bfd ; \
f41d6665 41887 fi
7c27e184
PB
41888@endif bfd
41889@if opcodes
2d309510
PB
41890 @if test -d $(HOST_SUBDIR)/opcodes ; then \
41891 cd $(HOST_SUBDIR); mv opcodes stage1-opcodes ; \
f41d6665 41892 fi
7c27e184
PB
41893@endif opcodes
41894@if binutils
2d309510
PB
41895 @if test -d $(HOST_SUBDIR)/binutils ; then \
41896 cd $(HOST_SUBDIR); mv binutils stage1-binutils ; \
f41d6665 41897 fi
7c27e184
PB
41898@endif binutils
41899@if gas
2d309510
PB
41900 @if test -d $(HOST_SUBDIR)/gas ; then \
41901 cd $(HOST_SUBDIR); mv gas stage1-gas ; \
f41d6665 41902 fi
7c27e184
PB
41903@endif gas
41904@if gcc
2d309510
PB
41905 @if test -d $(HOST_SUBDIR)/gcc ; then \
41906 cd $(HOST_SUBDIR); mv gcc stage1-gcc ; \
f41d6665 41907 fi
7c27e184
PB
41908@endif gcc
41909@if intl
2d309510
PB
41910 @if test -d $(HOST_SUBDIR)/intl ; then \
41911 cd $(HOST_SUBDIR); mv intl stage1-intl ; \
f41d6665 41912 fi
7c27e184
PB
41913@endif intl
41914@if ld
2d309510
PB
41915 @if test -d $(HOST_SUBDIR)/ld ; then \
41916 cd $(HOST_SUBDIR); mv ld stage1-ld ; \
f41d6665 41917 fi
7c27e184
PB
41918@endif ld
41919@if libcpp
2d309510
PB
41920 @if test -d $(HOST_SUBDIR)/libcpp ; then \
41921 cd $(HOST_SUBDIR); mv libcpp stage1-libcpp ; \
f41d6665 41922 fi
7c27e184 41923@endif libcpp
a4b6c45a 41924@if libdecnumber
2d309510
PB
41925 @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
41926 cd $(HOST_SUBDIR); mv libdecnumber stage1-libdecnumber ; \
f41d6665 41927 fi
a4b6c45a 41928@endif libdecnumber
7c27e184 41929@if libiberty
2d309510
PB
41930 @if test -d $(HOST_SUBDIR)/libiberty ; then \
41931 cd $(HOST_SUBDIR); mv libiberty stage1-libiberty ; \
f41d6665 41932 fi
7c27e184
PB
41933@endif libiberty
41934@if zlib
2d309510
PB
41935 @if test -d $(HOST_SUBDIR)/zlib ; then \
41936 cd $(HOST_SUBDIR); mv zlib stage1-zlib ; \
f41d6665 41937 fi
7c27e184 41938@endif zlib
f41d6665 41939 @if test -d $(TARGET_SUBDIR) ; then \
2d309510 41940 mv $(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR) ; \
f41d6665 41941 fi
2d309510 41942 rm -f stage_current
148907ea 41943
f41d6665
DJ
41944# Bubble a bugfix through all the stages up to stage 1. They are
41945# remade, but not reconfigured. The next stage (if any) will not be
41946# reconfigured as well.
f516a7da 41947.PHONY: stage1-bubble
05750653 41948stage1-bubble::
e7c84bf8
PB
41949 @r=`${PWD_COMMAND}`; export r; \
41950 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
41951 if test -f stage1-lean ; then \
ce521a9c
PB
41952 echo Skipping rebuild of stage1 ; \
41953 else \
1061f99e
PB
41954 $(MAKE) stage1-start; \
41955 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage1; \
ce521a9c 41956 fi
7c27e184 41957
45f366ab 41958.PHONY: all-stage1 clean-stage1
45f366ab 41959do-clean: clean-stage1
45f366ab 41960
7c27e184
PB
41961# FIXME: Will not need to be conditional when toplevel bootstrap is the
41962# only possibility, but now it conflicts with no-bootstrap rules
41963@if gcc-bootstrap
41964
41965
41966
41967
45f366ab 41968# Rules to wipe a stage and all the following ones, also used for cleanstrap
7c27e184 41969
45f366ab 41970.PHONY: distclean-stage1
7c27e184 41971distclean-stage1::
f41d6665 41972 @: $(MAKE); $(stage)
05750653 41973 rm -rf stage1-*
7c27e184
PB
41974
41975
41976@endif gcc-bootstrap
41977
41978
41979.PHONY: stage2-start stage2-end
41980
41981stage2-start::
f41d6665 41982 @: $(MAKE); $(stage); \
7c27e184 41983 echo stage2 > stage_current ; \
215c351a 41984 echo stage2 > stage_last; \
f41d6665 41985 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
7c27e184 41986@if bfd
215c351a
PB
41987 @cd $(HOST_SUBDIR); [ -d stage2-bfd ] || \
41988 mkdir stage2-bfd; \
2d309510
PB
41989 mv stage2-bfd bfd ; \
41990 mv stage1-bfd prev-bfd || test -f stage1-lean
7c27e184
PB
41991@endif bfd
41992@if opcodes
215c351a
PB
41993 @cd $(HOST_SUBDIR); [ -d stage2-opcodes ] || \
41994 mkdir stage2-opcodes; \
2d309510
PB
41995 mv stage2-opcodes opcodes ; \
41996 mv stage1-opcodes prev-opcodes || test -f stage1-lean
7c27e184
PB
41997@endif opcodes
41998@if binutils
215c351a
PB
41999 @cd $(HOST_SUBDIR); [ -d stage2-binutils ] || \
42000 mkdir stage2-binutils; \
2d309510
PB
42001 mv stage2-binutils binutils ; \
42002 mv stage1-binutils prev-binutils || test -f stage1-lean
7c27e184
PB
42003@endif binutils
42004@if gas
215c351a
PB
42005 @cd $(HOST_SUBDIR); [ -d stage2-gas ] || \
42006 mkdir stage2-gas; \
2d309510
PB
42007 mv stage2-gas gas ; \
42008 mv stage1-gas prev-gas || test -f stage1-lean
7c27e184
PB
42009@endif gas
42010@if gcc
215c351a
PB
42011 @cd $(HOST_SUBDIR); [ -d stage2-gcc ] || \
42012 mkdir stage2-gcc; \
2d309510
PB
42013 mv stage2-gcc gcc ; \
42014 mv stage1-gcc prev-gcc || test -f stage1-lean
7c27e184
PB
42015@endif gcc
42016@if intl
215c351a
PB
42017 @cd $(HOST_SUBDIR); [ -d stage2-intl ] || \
42018 mkdir stage2-intl; \
2d309510
PB
42019 mv stage2-intl intl ; \
42020 mv stage1-intl prev-intl || test -f stage1-lean
7c27e184
PB
42021@endif intl
42022@if ld
215c351a
PB
42023 @cd $(HOST_SUBDIR); [ -d stage2-ld ] || \
42024 mkdir stage2-ld; \
2d309510
PB
42025 mv stage2-ld ld ; \
42026 mv stage1-ld prev-ld || test -f stage1-lean
7c27e184
PB
42027@endif ld
42028@if libcpp
215c351a
PB
42029 @cd $(HOST_SUBDIR); [ -d stage2-libcpp ] || \
42030 mkdir stage2-libcpp; \
2d309510
PB
42031 mv stage2-libcpp libcpp ; \
42032 mv stage1-libcpp prev-libcpp || test -f stage1-lean
7c27e184 42033@endif libcpp
a4b6c45a
BE
42034@if libdecnumber
42035 @cd $(HOST_SUBDIR); [ -d stage2-libdecnumber ] || \
42036 mkdir stage2-libdecnumber; \
2d309510
PB
42037 mv stage2-libdecnumber libdecnumber ; \
42038 mv stage1-libdecnumber prev-libdecnumber || test -f stage1-lean
a4b6c45a 42039@endif libdecnumber
7c27e184 42040@if libiberty
215c351a
PB
42041 @cd $(HOST_SUBDIR); [ -d stage2-libiberty ] || \
42042 mkdir stage2-libiberty; \
2d309510
PB
42043 mv stage2-libiberty libiberty ; \
42044 mv stage1-libiberty prev-libiberty || test -f stage1-lean
7c27e184
PB
42045@endif libiberty
42046@if zlib
215c351a
PB
42047 @cd $(HOST_SUBDIR); [ -d stage2-zlib ] || \
42048 mkdir stage2-zlib; \
2d309510
PB
42049 mv stage2-zlib zlib ; \
42050 mv stage1-zlib prev-zlib || test -f stage1-lean
7c27e184 42051@endif zlib
f41d6665
DJ
42052 @[ -d stage2-$(TARGET_SUBDIR) ] || \
42053 mkdir stage2-$(TARGET_SUBDIR); \
2d309510
PB
42054 mv stage2-$(TARGET_SUBDIR) $(TARGET_SUBDIR) ; \
42055 mv stage1-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage1-lean
7c27e184 42056
2d309510 42057stage2-end::
7c27e184 42058@if bfd
2d309510
PB
42059 @if test -d $(HOST_SUBDIR)/bfd ; then \
42060 cd $(HOST_SUBDIR); mv bfd stage2-bfd ; \
42061 mv prev-bfd stage1-bfd ; : ; \
f41d6665 42062 fi
7c27e184
PB
42063@endif bfd
42064@if opcodes
2d309510
PB
42065 @if test -d $(HOST_SUBDIR)/opcodes ; then \
42066 cd $(HOST_SUBDIR); mv opcodes stage2-opcodes ; \
42067 mv prev-opcodes stage1-opcodes ; : ; \
f41d6665 42068 fi
7c27e184
PB
42069@endif opcodes
42070@if binutils
2d309510
PB
42071 @if test -d $(HOST_SUBDIR)/binutils ; then \
42072 cd $(HOST_SUBDIR); mv binutils stage2-binutils ; \
42073 mv prev-binutils stage1-binutils ; : ; \
f41d6665 42074 fi
7c27e184
PB
42075@endif binutils
42076@if gas
2d309510
PB
42077 @if test -d $(HOST_SUBDIR)/gas ; then \
42078 cd $(HOST_SUBDIR); mv gas stage2-gas ; \
42079 mv prev-gas stage1-gas ; : ; \
f41d6665 42080 fi
7c27e184
PB
42081@endif gas
42082@if gcc
2d309510
PB
42083 @if test -d $(HOST_SUBDIR)/gcc ; then \
42084 cd $(HOST_SUBDIR); mv gcc stage2-gcc ; \
42085 mv prev-gcc stage1-gcc ; : ; \
f41d6665 42086 fi
7c27e184
PB
42087@endif gcc
42088@if intl
2d309510
PB
42089 @if test -d $(HOST_SUBDIR)/intl ; then \
42090 cd $(HOST_SUBDIR); mv intl stage2-intl ; \
42091 mv prev-intl stage1-intl ; : ; \
f41d6665 42092 fi
7c27e184
PB
42093@endif intl
42094@if ld
2d309510
PB
42095 @if test -d $(HOST_SUBDIR)/ld ; then \
42096 cd $(HOST_SUBDIR); mv ld stage2-ld ; \
42097 mv prev-ld stage1-ld ; : ; \
f41d6665 42098 fi
7c27e184
PB
42099@endif ld
42100@if libcpp
2d309510
PB
42101 @if test -d $(HOST_SUBDIR)/libcpp ; then \
42102 cd $(HOST_SUBDIR); mv libcpp stage2-libcpp ; \
42103 mv prev-libcpp stage1-libcpp ; : ; \
f41d6665 42104 fi
7c27e184 42105@endif libcpp
a4b6c45a 42106@if libdecnumber
2d309510
PB
42107 @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
42108 cd $(HOST_SUBDIR); mv libdecnumber stage2-libdecnumber ; \
42109 mv prev-libdecnumber stage1-libdecnumber ; : ; \
f41d6665 42110 fi
a4b6c45a 42111@endif libdecnumber
7c27e184 42112@if libiberty
2d309510
PB
42113 @if test -d $(HOST_SUBDIR)/libiberty ; then \
42114 cd $(HOST_SUBDIR); mv libiberty stage2-libiberty ; \
42115 mv prev-libiberty stage1-libiberty ; : ; \
f41d6665 42116 fi
7c27e184
PB
42117@endif libiberty
42118@if zlib
2d309510
PB
42119 @if test -d $(HOST_SUBDIR)/zlib ; then \
42120 cd $(HOST_SUBDIR); mv zlib stage2-zlib ; \
42121 mv prev-zlib stage1-zlib ; : ; \
f41d6665 42122 fi
7c27e184 42123@endif zlib
f41d6665 42124 @if test -d $(TARGET_SUBDIR) ; then \
2d309510
PB
42125 mv $(TARGET_SUBDIR) stage2-$(TARGET_SUBDIR) ; \
42126 mv prev-$(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR) ; : ; \
f41d6665 42127 fi
2d309510 42128 rm -f stage_current
7c27e184 42129
f41d6665
DJ
42130# Bubble a bugfix through all the stages up to stage 2. They are
42131# remade, but not reconfigured. The next stage (if any) will not be
42132# reconfigured as well.
7c27e184
PB
42133.PHONY: stage2-bubble
42134stage2-bubble:: stage1-bubble
e7c84bf8
PB
42135 @r=`${PWD_COMMAND}`; export r; \
42136 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42137 if test -f stage2-lean || test -f stage1-lean ; then \
ce521a9c
PB
42138 echo Skipping rebuild of stage2 ; \
42139 else \
1061f99e
PB
42140 $(MAKE) stage2-start; \
42141 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage2; \
ce521a9c 42142 fi
7c27e184 42143
45f366ab 42144.PHONY: all-stage2 clean-stage2
45f366ab 42145do-clean: clean-stage2
45f366ab 42146
7c27e184
PB
42147# FIXME: Will not need to be conditional when toplevel bootstrap is the
42148# only possibility, but now it conflicts with no-bootstrap rules
42149@if gcc-bootstrap
42150
42151
42152
2d309510 42153.PHONY: bootstrap2 bootstrap2-lean
2abefe3d
PB
42154bootstrap2:
42155 echo stage2 > stage_final
42156 @r=`${PWD_COMMAND}`; export r; \
42157 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42158 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage2-bubble
f41d6665 42159 @: $(MAKE); $(unstage)
2abefe3d
PB
42160 @r=`${PWD_COMMAND}`; export r; \
42161 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42162 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
7c27e184 42163
2d309510
PB
42164bootstrap2-lean:
42165 echo stage2 > stage_final
42166 @r=`${PWD_COMMAND}`; export r; \
42167 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42168 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage2-bubble
42169 @: $(MAKE); $(unstage)
42170 @r=`${PWD_COMMAND}`; export r; \
42171 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42172 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
42173
7c27e184 42174
45f366ab 42175# Rules to wipe a stage and all the following ones, also used for cleanstrap
05750653 42176distclean-stage1:: distclean-stage2
45f366ab 42177.PHONY: distclean-stage2
7c27e184 42178distclean-stage2::
f41d6665 42179 @: $(MAKE); $(stage)
05750653 42180 rm -rf stage2-*
7c27e184
PB
42181
42182
42183@endif gcc-bootstrap
42184
42185
42186.PHONY: stage3-start stage3-end
42187
42188stage3-start::
f41d6665 42189 @: $(MAKE); $(stage); \
7c27e184 42190 echo stage3 > stage_current ; \
215c351a 42191 echo stage3 > stage_last; \
f41d6665 42192 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
7c27e184 42193@if bfd
215c351a
PB
42194 @cd $(HOST_SUBDIR); [ -d stage3-bfd ] || \
42195 mkdir stage3-bfd; \
2d309510
PB
42196 mv stage3-bfd bfd ; \
42197 mv stage2-bfd prev-bfd || test -f stage2-lean
7c27e184
PB
42198@endif bfd
42199@if opcodes
215c351a
PB
42200 @cd $(HOST_SUBDIR); [ -d stage3-opcodes ] || \
42201 mkdir stage3-opcodes; \
2d309510
PB
42202 mv stage3-opcodes opcodes ; \
42203 mv stage2-opcodes prev-opcodes || test -f stage2-lean
7c27e184
PB
42204@endif opcodes
42205@if binutils
215c351a
PB
42206 @cd $(HOST_SUBDIR); [ -d stage3-binutils ] || \
42207 mkdir stage3-binutils; \
2d309510
PB
42208 mv stage3-binutils binutils ; \
42209 mv stage2-binutils prev-binutils || test -f stage2-lean
7c27e184
PB
42210@endif binutils
42211@if gas
215c351a
PB
42212 @cd $(HOST_SUBDIR); [ -d stage3-gas ] || \
42213 mkdir stage3-gas; \
2d309510
PB
42214 mv stage3-gas gas ; \
42215 mv stage2-gas prev-gas || test -f stage2-lean
7c27e184
PB
42216@endif gas
42217@if gcc
215c351a
PB
42218 @cd $(HOST_SUBDIR); [ -d stage3-gcc ] || \
42219 mkdir stage3-gcc; \
2d309510
PB
42220 mv stage3-gcc gcc ; \
42221 mv stage2-gcc prev-gcc || test -f stage2-lean
7c27e184
PB
42222@endif gcc
42223@if intl
215c351a
PB
42224 @cd $(HOST_SUBDIR); [ -d stage3-intl ] || \
42225 mkdir stage3-intl; \
2d309510
PB
42226 mv stage3-intl intl ; \
42227 mv stage2-intl prev-intl || test -f stage2-lean
7c27e184
PB
42228@endif intl
42229@if ld
215c351a
PB
42230 @cd $(HOST_SUBDIR); [ -d stage3-ld ] || \
42231 mkdir stage3-ld; \
2d309510
PB
42232 mv stage3-ld ld ; \
42233 mv stage2-ld prev-ld || test -f stage2-lean
7c27e184
PB
42234@endif ld
42235@if libcpp
215c351a
PB
42236 @cd $(HOST_SUBDIR); [ -d stage3-libcpp ] || \
42237 mkdir stage3-libcpp; \
2d309510
PB
42238 mv stage3-libcpp libcpp ; \
42239 mv stage2-libcpp prev-libcpp || test -f stage2-lean
7c27e184 42240@endif libcpp
a4b6c45a
BE
42241@if libdecnumber
42242 @cd $(HOST_SUBDIR); [ -d stage3-libdecnumber ] || \
42243 mkdir stage3-libdecnumber; \
2d309510
PB
42244 mv stage3-libdecnumber libdecnumber ; \
42245 mv stage2-libdecnumber prev-libdecnumber || test -f stage2-lean
a4b6c45a 42246@endif libdecnumber
7c27e184 42247@if libiberty
215c351a
PB
42248 @cd $(HOST_SUBDIR); [ -d stage3-libiberty ] || \
42249 mkdir stage3-libiberty; \
2d309510
PB
42250 mv stage3-libiberty libiberty ; \
42251 mv stage2-libiberty prev-libiberty || test -f stage2-lean
7c27e184
PB
42252@endif libiberty
42253@if zlib
215c351a
PB
42254 @cd $(HOST_SUBDIR); [ -d stage3-zlib ] || \
42255 mkdir stage3-zlib; \
2d309510
PB
42256 mv stage3-zlib zlib ; \
42257 mv stage2-zlib prev-zlib || test -f stage2-lean
7c27e184 42258@endif zlib
f41d6665
DJ
42259 @[ -d stage3-$(TARGET_SUBDIR) ] || \
42260 mkdir stage3-$(TARGET_SUBDIR); \
2d309510
PB
42261 mv stage3-$(TARGET_SUBDIR) $(TARGET_SUBDIR) ; \
42262 mv stage2-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage2-lean
7c27e184 42263
2d309510 42264stage3-end::
7c27e184 42265@if bfd
2d309510
PB
42266 @if test -d $(HOST_SUBDIR)/bfd ; then \
42267 cd $(HOST_SUBDIR); mv bfd stage3-bfd ; \
42268 mv prev-bfd stage2-bfd ; : ; \
f41d6665 42269 fi
7c27e184
PB
42270@endif bfd
42271@if opcodes
2d309510
PB
42272 @if test -d $(HOST_SUBDIR)/opcodes ; then \
42273 cd $(HOST_SUBDIR); mv opcodes stage3-opcodes ; \
42274 mv prev-opcodes stage2-opcodes ; : ; \
f41d6665 42275 fi
7c27e184
PB
42276@endif opcodes
42277@if binutils
2d309510
PB
42278 @if test -d $(HOST_SUBDIR)/binutils ; then \
42279 cd $(HOST_SUBDIR); mv binutils stage3-binutils ; \
42280 mv prev-binutils stage2-binutils ; : ; \
f41d6665 42281 fi
7c27e184
PB
42282@endif binutils
42283@if gas
2d309510
PB
42284 @if test -d $(HOST_SUBDIR)/gas ; then \
42285 cd $(HOST_SUBDIR); mv gas stage3-gas ; \
42286 mv prev-gas stage2-gas ; : ; \
f41d6665 42287 fi
7c27e184
PB
42288@endif gas
42289@if gcc
2d309510
PB
42290 @if test -d $(HOST_SUBDIR)/gcc ; then \
42291 cd $(HOST_SUBDIR); mv gcc stage3-gcc ; \
42292 mv prev-gcc stage2-gcc ; : ; \
f41d6665 42293 fi
7c27e184
PB
42294@endif gcc
42295@if intl
2d309510
PB
42296 @if test -d $(HOST_SUBDIR)/intl ; then \
42297 cd $(HOST_SUBDIR); mv intl stage3-intl ; \
42298 mv prev-intl stage2-intl ; : ; \
f41d6665 42299 fi
7c27e184
PB
42300@endif intl
42301@if ld
2d309510
PB
42302 @if test -d $(HOST_SUBDIR)/ld ; then \
42303 cd $(HOST_SUBDIR); mv ld stage3-ld ; \
42304 mv prev-ld stage2-ld ; : ; \
f41d6665 42305 fi
7c27e184
PB
42306@endif ld
42307@if libcpp
2d309510
PB
42308 @if test -d $(HOST_SUBDIR)/libcpp ; then \
42309 cd $(HOST_SUBDIR); mv libcpp stage3-libcpp ; \
42310 mv prev-libcpp stage2-libcpp ; : ; \
f41d6665 42311 fi
7c27e184 42312@endif libcpp
a4b6c45a 42313@if libdecnumber
2d309510
PB
42314 @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
42315 cd $(HOST_SUBDIR); mv libdecnumber stage3-libdecnumber ; \
42316 mv prev-libdecnumber stage2-libdecnumber ; : ; \
f41d6665 42317 fi
a4b6c45a 42318@endif libdecnumber
7c27e184 42319@if libiberty
2d309510
PB
42320 @if test -d $(HOST_SUBDIR)/libiberty ; then \
42321 cd $(HOST_SUBDIR); mv libiberty stage3-libiberty ; \
42322 mv prev-libiberty stage2-libiberty ; : ; \
f41d6665 42323 fi
7c27e184
PB
42324@endif libiberty
42325@if zlib
2d309510
PB
42326 @if test -d $(HOST_SUBDIR)/zlib ; then \
42327 cd $(HOST_SUBDIR); mv zlib stage3-zlib ; \
42328 mv prev-zlib stage2-zlib ; : ; \
f41d6665 42329 fi
7c27e184 42330@endif zlib
f41d6665 42331 @if test -d $(TARGET_SUBDIR) ; then \
2d309510
PB
42332 mv $(TARGET_SUBDIR) stage3-$(TARGET_SUBDIR) ; \
42333 mv prev-$(TARGET_SUBDIR) stage2-$(TARGET_SUBDIR) ; : ; \
f41d6665 42334 fi
2d309510 42335 rm -f stage_current
7c27e184 42336
f41d6665
DJ
42337# Bubble a bugfix through all the stages up to stage 3. They are
42338# remade, but not reconfigured. The next stage (if any) will not be
42339# reconfigured as well.
7c27e184
PB
42340.PHONY: stage3-bubble
42341stage3-bubble:: stage2-bubble
e7c84bf8
PB
42342 @r=`${PWD_COMMAND}`; export r; \
42343 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42344 if test -f stage3-lean || test -f stage2-lean ; then \
ce521a9c
PB
42345 echo Skipping rebuild of stage3 ; \
42346 else \
1061f99e 42347 $(MAKE) stage3-start; \
2d309510
PB
42348 if $(LEAN); then \
42349 rm -rf stage1-* ; \
42350 $(STAMP) stage1-lean ; \
42351 fi; \
1061f99e 42352 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage3; \
ce521a9c 42353 fi
d19bca38 42354 $(MAKE) $(RECURSE_FLAGS_TO_PASS) compare
7c27e184 42355
45f366ab 42356.PHONY: all-stage3 clean-stage3
45f366ab 42357do-clean: clean-stage3
45f366ab 42358
ce406537
PB
42359# FIXME: Will not need to be conditional when toplevel bootstrap is the
42360# only possibility, but now it conflicts with no-bootstrap rules
42361@if gcc-bootstrap
7c27e184 42362
ce406537 42363compare:
e7c84bf8
PB
42364 @r=`${PWD_COMMAND}`; export r; \
42365 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42366 if test -f stage2-lean; then \
ce406537
PB
42367 echo Cannot compare object files as stage 2 was deleted. ; \
42368 exit 0 ; \
42369 fi; \
f41d6665 42370 : $(MAKE); $(stage); \
ce406537 42371 rm -f .bad_compare ; \
cc11cc9b 42372 echo Comparing stages 2 and 3 ; \
ce406537
PB
42373 cd stage3-gcc; \
42374 files=`find . -name "*$(objext)" -print` ; \
42375 cd .. ; \
42376 for file in $${files} ; do \
42377 f1=$$r/stage2-gcc/$$file; f2=$$r/stage3-gcc/$$file; \
42378 @do_compare@ > /dev/null 2>&1; \
1061f99e
PB
42379 if test $$? -eq 1; then \
42380 case $$file in \
42381 ./cc*-checksum$(objext) | ./libgcc/* ) \
42382 echo warning: $$file differs ;; \
42383 *) \
42384 echo $$file differs >> .bad_compare ;; \
42385 esac ; \
42386 fi ; \
ce406537
PB
42387 done ; \
42388 if [ -f .bad_compare ]; then \
42389 echo "Bootstrap comparison failure!"; \
42390 cat .bad_compare; \
42391 exit 1; \
42392 else \
cc11cc9b 42393 echo Comparison successful.; \
ce406537
PB
42394 fi ; \
42395 $(STAMP) compare
2d309510
PB
42396 if $(LEAN); then \
42397 rm -rf stage2-*; \
42398 $(STAMP) stage2-lean; \
42399 fi
ce521a9c 42400
7c27e184 42401
7c27e184 42402
2d309510 42403.PHONY: bootstrap bootstrap-lean
2abefe3d
PB
42404bootstrap:
42405 echo stage3 > stage_final
42406 @r=`${PWD_COMMAND}`; export r; \
42407 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42408 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage3-bubble
f41d6665 42409 @: $(MAKE); $(unstage)
2abefe3d
PB
42410 @r=`${PWD_COMMAND}`; export r; \
42411 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42412 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
45f366ab 42413
2d309510
PB
42414bootstrap-lean:
42415 echo stage3 > stage_final
42416 @r=`${PWD_COMMAND}`; export r; \
42417 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42418 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage3-bubble
42419 @: $(MAKE); $(unstage)
42420 @r=`${PWD_COMMAND}`; export r; \
42421 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42422 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
42423
7c27e184 42424
ce406537
PB
42425# Rules to wipe a stage and all the following ones, also used for cleanstrap
42426distclean-stage2:: distclean-stage3
42427.PHONY: distclean-stage3
42428distclean-stage3::
f41d6665 42429 @: $(MAKE); $(stage)
ce406537 42430 rm -rf stage3-* compare
45f366ab 42431
ce521a9c 42432
ce406537
PB
42433.PHONY: cleanstrap
42434cleanstrap: distclean bootstrap
7c27e184
PB
42435
42436@endif gcc-bootstrap
42437
42438
42439.PHONY: stage4-start stage4-end
42440
42441stage4-start::
f41d6665 42442 @: $(MAKE); $(stage); \
7c27e184 42443 echo stage4 > stage_current ; \
215c351a 42444 echo stage4 > stage_last; \
f41d6665 42445 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
7c27e184 42446@if bfd
215c351a
PB
42447 @cd $(HOST_SUBDIR); [ -d stage4-bfd ] || \
42448 mkdir stage4-bfd; \
2d309510
PB
42449 mv stage4-bfd bfd ; \
42450 mv stage3-bfd prev-bfd || test -f stage3-lean
7c27e184
PB
42451@endif bfd
42452@if opcodes
215c351a
PB
42453 @cd $(HOST_SUBDIR); [ -d stage4-opcodes ] || \
42454 mkdir stage4-opcodes; \
2d309510
PB
42455 mv stage4-opcodes opcodes ; \
42456 mv stage3-opcodes prev-opcodes || test -f stage3-lean
7c27e184
PB
42457@endif opcodes
42458@if binutils
215c351a
PB
42459 @cd $(HOST_SUBDIR); [ -d stage4-binutils ] || \
42460 mkdir stage4-binutils; \
2d309510
PB
42461 mv stage4-binutils binutils ; \
42462 mv stage3-binutils prev-binutils || test -f stage3-lean
7c27e184
PB
42463@endif binutils
42464@if gas
215c351a
PB
42465 @cd $(HOST_SUBDIR); [ -d stage4-gas ] || \
42466 mkdir stage4-gas; \
2d309510
PB
42467 mv stage4-gas gas ; \
42468 mv stage3-gas prev-gas || test -f stage3-lean
7c27e184
PB
42469@endif gas
42470@if gcc
215c351a
PB
42471 @cd $(HOST_SUBDIR); [ -d stage4-gcc ] || \
42472 mkdir stage4-gcc; \
2d309510
PB
42473 mv stage4-gcc gcc ; \
42474 mv stage3-gcc prev-gcc || test -f stage3-lean
7c27e184
PB
42475@endif gcc
42476@if intl
215c351a
PB
42477 @cd $(HOST_SUBDIR); [ -d stage4-intl ] || \
42478 mkdir stage4-intl; \
2d309510
PB
42479 mv stage4-intl intl ; \
42480 mv stage3-intl prev-intl || test -f stage3-lean
7c27e184
PB
42481@endif intl
42482@if ld
215c351a
PB
42483 @cd $(HOST_SUBDIR); [ -d stage4-ld ] || \
42484 mkdir stage4-ld; \
2d309510
PB
42485 mv stage4-ld ld ; \
42486 mv stage3-ld prev-ld || test -f stage3-lean
7c27e184
PB
42487@endif ld
42488@if libcpp
215c351a
PB
42489 @cd $(HOST_SUBDIR); [ -d stage4-libcpp ] || \
42490 mkdir stage4-libcpp; \
2d309510
PB
42491 mv stage4-libcpp libcpp ; \
42492 mv stage3-libcpp prev-libcpp || test -f stage3-lean
7c27e184 42493@endif libcpp
a4b6c45a
BE
42494@if libdecnumber
42495 @cd $(HOST_SUBDIR); [ -d stage4-libdecnumber ] || \
42496 mkdir stage4-libdecnumber; \
2d309510
PB
42497 mv stage4-libdecnumber libdecnumber ; \
42498 mv stage3-libdecnumber prev-libdecnumber || test -f stage3-lean
a4b6c45a 42499@endif libdecnumber
7c27e184 42500@if libiberty
215c351a
PB
42501 @cd $(HOST_SUBDIR); [ -d stage4-libiberty ] || \
42502 mkdir stage4-libiberty; \
2d309510
PB
42503 mv stage4-libiberty libiberty ; \
42504 mv stage3-libiberty prev-libiberty || test -f stage3-lean
7c27e184
PB
42505@endif libiberty
42506@if zlib
215c351a
PB
42507 @cd $(HOST_SUBDIR); [ -d stage4-zlib ] || \
42508 mkdir stage4-zlib; \
2d309510
PB
42509 mv stage4-zlib zlib ; \
42510 mv stage3-zlib prev-zlib || test -f stage3-lean
7c27e184 42511@endif zlib
f41d6665
DJ
42512 @[ -d stage4-$(TARGET_SUBDIR) ] || \
42513 mkdir stage4-$(TARGET_SUBDIR); \
2d309510
PB
42514 mv stage4-$(TARGET_SUBDIR) $(TARGET_SUBDIR) ; \
42515 mv stage3-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage3-lean
7c27e184 42516
2d309510 42517stage4-end::
7c27e184 42518@if bfd
2d309510
PB
42519 @if test -d $(HOST_SUBDIR)/bfd ; then \
42520 cd $(HOST_SUBDIR); mv bfd stage4-bfd ; \
42521 mv prev-bfd stage3-bfd ; : ; \
f41d6665 42522 fi
7c27e184
PB
42523@endif bfd
42524@if opcodes
2d309510
PB
42525 @if test -d $(HOST_SUBDIR)/opcodes ; then \
42526 cd $(HOST_SUBDIR); mv opcodes stage4-opcodes ; \
42527 mv prev-opcodes stage3-opcodes ; : ; \
f41d6665 42528 fi
7c27e184
PB
42529@endif opcodes
42530@if binutils
2d309510
PB
42531 @if test -d $(HOST_SUBDIR)/binutils ; then \
42532 cd $(HOST_SUBDIR); mv binutils stage4-binutils ; \
42533 mv prev-binutils stage3-binutils ; : ; \
f41d6665 42534 fi
7c27e184
PB
42535@endif binutils
42536@if gas
2d309510
PB
42537 @if test -d $(HOST_SUBDIR)/gas ; then \
42538 cd $(HOST_SUBDIR); mv gas stage4-gas ; \
42539 mv prev-gas stage3-gas ; : ; \
f41d6665 42540 fi
7c27e184
PB
42541@endif gas
42542@if gcc
2d309510
PB
42543 @if test -d $(HOST_SUBDIR)/gcc ; then \
42544 cd $(HOST_SUBDIR); mv gcc stage4-gcc ; \
42545 mv prev-gcc stage3-gcc ; : ; \
f41d6665 42546 fi
7c27e184
PB
42547@endif gcc
42548@if intl
2d309510
PB
42549 @if test -d $(HOST_SUBDIR)/intl ; then \
42550 cd $(HOST_SUBDIR); mv intl stage4-intl ; \
42551 mv prev-intl stage3-intl ; : ; \
f41d6665 42552 fi
7c27e184
PB
42553@endif intl
42554@if ld
2d309510
PB
42555 @if test -d $(HOST_SUBDIR)/ld ; then \
42556 cd $(HOST_SUBDIR); mv ld stage4-ld ; \
42557 mv prev-ld stage3-ld ; : ; \
f41d6665 42558 fi
7c27e184
PB
42559@endif ld
42560@if libcpp
2d309510
PB
42561 @if test -d $(HOST_SUBDIR)/libcpp ; then \
42562 cd $(HOST_SUBDIR); mv libcpp stage4-libcpp ; \
42563 mv prev-libcpp stage3-libcpp ; : ; \
f41d6665 42564 fi
7c27e184 42565@endif libcpp
a4b6c45a 42566@if libdecnumber
2d309510
PB
42567 @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
42568 cd $(HOST_SUBDIR); mv libdecnumber stage4-libdecnumber ; \
42569 mv prev-libdecnumber stage3-libdecnumber ; : ; \
f41d6665 42570 fi
a4b6c45a 42571@endif libdecnumber
7c27e184 42572@if libiberty
2d309510
PB
42573 @if test -d $(HOST_SUBDIR)/libiberty ; then \
42574 cd $(HOST_SUBDIR); mv libiberty stage4-libiberty ; \
42575 mv prev-libiberty stage3-libiberty ; : ; \
f41d6665 42576 fi
7c27e184
PB
42577@endif libiberty
42578@if zlib
2d309510
PB
42579 @if test -d $(HOST_SUBDIR)/zlib ; then \
42580 cd $(HOST_SUBDIR); mv zlib stage4-zlib ; \
42581 mv prev-zlib stage3-zlib ; : ; \
f41d6665 42582 fi
7c27e184 42583@endif zlib
f41d6665 42584 @if test -d $(TARGET_SUBDIR) ; then \
2d309510
PB
42585 mv $(TARGET_SUBDIR) stage4-$(TARGET_SUBDIR) ; \
42586 mv prev-$(TARGET_SUBDIR) stage3-$(TARGET_SUBDIR) ; : ; \
f41d6665 42587 fi
2d309510 42588 rm -f stage_current
7c27e184 42589
f41d6665
DJ
42590# Bubble a bugfix through all the stages up to stage 4. They are
42591# remade, but not reconfigured. The next stage (if any) will not be
42592# reconfigured as well.
7c27e184
PB
42593.PHONY: stage4-bubble
42594stage4-bubble:: stage3-bubble
e7c84bf8
PB
42595 @r=`${PWD_COMMAND}`; export r; \
42596 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42597 if test -f stage4-lean || test -f stage3-lean ; then \
ce521a9c
PB
42598 echo Skipping rebuild of stage4 ; \
42599 else \
1061f99e 42600 $(MAKE) stage4-start; \
2d309510
PB
42601 if $(LEAN); then \
42602 rm -rf stage2-* ; \
42603 $(STAMP) stage2-lean ; \
42604 fi; \
1061f99e 42605 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stage4; \
ce521a9c 42606 fi
d19bca38 42607 $(MAKE) $(RECURSE_FLAGS_TO_PASS) compare3
7c27e184 42608
45f366ab 42609.PHONY: all-stage4 clean-stage4
45f366ab 42610do-clean: clean-stage4
45f366ab 42611
ce406537
PB
42612# FIXME: Will not need to be conditional when toplevel bootstrap is the
42613# only possibility, but now it conflicts with no-bootstrap rules
42614@if gcc-bootstrap
7c27e184 42615
ce406537 42616compare3:
e7c84bf8
PB
42617 @r=`${PWD_COMMAND}`; export r; \
42618 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42619 if test -f stage3-lean; then \
ce406537
PB
42620 echo Cannot compare object files as stage 3 was deleted. ; \
42621 exit 0 ; \
42622 fi; \
f41d6665 42623 : $(MAKE); $(stage); \
ce406537 42624 rm -f .bad_compare ; \
cc11cc9b 42625 echo Comparing stages 3 and 4 ; \
ce406537
PB
42626 cd stage4-gcc; \
42627 files=`find . -name "*$(objext)" -print` ; \
42628 cd .. ; \
42629 for file in $${files} ; do \
42630 f1=$$r/stage3-gcc/$$file; f2=$$r/stage4-gcc/$$file; \
42631 @do_compare@ > /dev/null 2>&1; \
1061f99e
PB
42632 if test $$? -eq 1; then \
42633 case $$file in \
42634 ./cc*-checksum$(objext) | ./libgcc/* ) \
42635 echo warning: $$file differs ;; \
42636 *) \
42637 echo $$file differs >> .bad_compare ;; \
42638 esac ; \
42639 fi ; \
ce406537
PB
42640 done ; \
42641 if [ -f .bad_compare ]; then \
42642 echo "Bootstrap comparison failure!"; \
42643 cat .bad_compare; \
42644 exit 1; \
42645 else \
cc11cc9b 42646 echo Comparison successful.; \
ce406537
PB
42647 fi ; \
42648 $(STAMP) compare3
2d309510
PB
42649 if $(LEAN); then \
42650 rm -rf stage3-*; \
42651 $(STAMP) stage3-lean; \
42652 fi
ce521a9c 42653
7c27e184 42654
7c27e184 42655
2d309510 42656.PHONY: bootstrap4 bootstrap4-lean
2abefe3d
PB
42657bootstrap4:
42658 echo stage4 > stage_final
42659 @r=`${PWD_COMMAND}`; export r; \
42660 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42661 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage4-bubble
f41d6665 42662 @: $(MAKE); $(unstage)
2abefe3d
PB
42663 @r=`${PWD_COMMAND}`; export r; \
42664 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42665 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
45f366ab 42666
2d309510
PB
42667bootstrap4-lean:
42668 echo stage4 > stage_final
42669 @r=`${PWD_COMMAND}`; export r; \
42670 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42671 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stage4-bubble
42672 @: $(MAKE); $(unstage)
42673 @r=`${PWD_COMMAND}`; export r; \
42674 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42675 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
42676
7c27e184 42677
ce406537
PB
42678# Rules to wipe a stage and all the following ones, also used for cleanstrap
42679distclean-stage3:: distclean-stage4
42680.PHONY: distclean-stage4
42681distclean-stage4::
f41d6665 42682 @: $(MAKE); $(stage)
ce406537 42683 rm -rf stage4-* compare3
45f366ab 42684
ce521a9c 42685
ce406537 42686@endif gcc-bootstrap
7c27e184
PB
42687
42688
42689.PHONY: stageprofile-start stageprofile-end
42690
42691stageprofile-start::
f41d6665 42692 @: $(MAKE); $(stage); \
7c27e184 42693 echo stageprofile > stage_current ; \
215c351a 42694 echo stageprofile > stage_last; \
f41d6665 42695 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
7c27e184 42696@if bfd
215c351a
PB
42697 @cd $(HOST_SUBDIR); [ -d stageprofile-bfd ] || \
42698 mkdir stageprofile-bfd; \
2d309510
PB
42699 mv stageprofile-bfd bfd ; \
42700 mv stage1-bfd prev-bfd || test -f stage1-lean
7c27e184
PB
42701@endif bfd
42702@if opcodes
215c351a
PB
42703 @cd $(HOST_SUBDIR); [ -d stageprofile-opcodes ] || \
42704 mkdir stageprofile-opcodes; \
2d309510
PB
42705 mv stageprofile-opcodes opcodes ; \
42706 mv stage1-opcodes prev-opcodes || test -f stage1-lean
7c27e184
PB
42707@endif opcodes
42708@if binutils
215c351a
PB
42709 @cd $(HOST_SUBDIR); [ -d stageprofile-binutils ] || \
42710 mkdir stageprofile-binutils; \
2d309510
PB
42711 mv stageprofile-binutils binutils ; \
42712 mv stage1-binutils prev-binutils || test -f stage1-lean
7c27e184
PB
42713@endif binutils
42714@if gas
215c351a
PB
42715 @cd $(HOST_SUBDIR); [ -d stageprofile-gas ] || \
42716 mkdir stageprofile-gas; \
2d309510
PB
42717 mv stageprofile-gas gas ; \
42718 mv stage1-gas prev-gas || test -f stage1-lean
7c27e184
PB
42719@endif gas
42720@if gcc
215c351a
PB
42721 @cd $(HOST_SUBDIR); [ -d stageprofile-gcc ] || \
42722 mkdir stageprofile-gcc; \
2d309510
PB
42723 mv stageprofile-gcc gcc ; \
42724 mv stage1-gcc prev-gcc || test -f stage1-lean
7c27e184
PB
42725@endif gcc
42726@if intl
215c351a
PB
42727 @cd $(HOST_SUBDIR); [ -d stageprofile-intl ] || \
42728 mkdir stageprofile-intl; \
2d309510
PB
42729 mv stageprofile-intl intl ; \
42730 mv stage1-intl prev-intl || test -f stage1-lean
7c27e184
PB
42731@endif intl
42732@if ld
215c351a
PB
42733 @cd $(HOST_SUBDIR); [ -d stageprofile-ld ] || \
42734 mkdir stageprofile-ld; \
2d309510
PB
42735 mv stageprofile-ld ld ; \
42736 mv stage1-ld prev-ld || test -f stage1-lean
7c27e184
PB
42737@endif ld
42738@if libcpp
215c351a
PB
42739 @cd $(HOST_SUBDIR); [ -d stageprofile-libcpp ] || \
42740 mkdir stageprofile-libcpp; \
2d309510
PB
42741 mv stageprofile-libcpp libcpp ; \
42742 mv stage1-libcpp prev-libcpp || test -f stage1-lean
7c27e184 42743@endif libcpp
a4b6c45a
BE
42744@if libdecnumber
42745 @cd $(HOST_SUBDIR); [ -d stageprofile-libdecnumber ] || \
42746 mkdir stageprofile-libdecnumber; \
2d309510
PB
42747 mv stageprofile-libdecnumber libdecnumber ; \
42748 mv stage1-libdecnumber prev-libdecnumber || test -f stage1-lean
a4b6c45a 42749@endif libdecnumber
7c27e184 42750@if libiberty
215c351a
PB
42751 @cd $(HOST_SUBDIR); [ -d stageprofile-libiberty ] || \
42752 mkdir stageprofile-libiberty; \
2d309510
PB
42753 mv stageprofile-libiberty libiberty ; \
42754 mv stage1-libiberty prev-libiberty || test -f stage1-lean
7c27e184
PB
42755@endif libiberty
42756@if zlib
ce406537
PB
42757 @cd $(HOST_SUBDIR); [ -d stageprofile-zlib ] || \
42758 mkdir stageprofile-zlib; \
2d309510
PB
42759 mv stageprofile-zlib zlib ; \
42760 mv stage1-zlib prev-zlib || test -f stage1-lean
ce406537 42761@endif zlib
f41d6665
DJ
42762 @[ -d stageprofile-$(TARGET_SUBDIR) ] || \
42763 mkdir stageprofile-$(TARGET_SUBDIR); \
2d309510
PB
42764 mv stageprofile-$(TARGET_SUBDIR) $(TARGET_SUBDIR) ; \
42765 mv stage1-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stage1-lean
45f366ab 42766
2d309510 42767stageprofile-end::
ce406537 42768@if bfd
2d309510
PB
42769 @if test -d $(HOST_SUBDIR)/bfd ; then \
42770 cd $(HOST_SUBDIR); mv bfd stageprofile-bfd ; \
42771 mv prev-bfd stage1-bfd ; : ; \
f41d6665 42772 fi
ce406537
PB
42773@endif bfd
42774@if opcodes
2d309510
PB
42775 @if test -d $(HOST_SUBDIR)/opcodes ; then \
42776 cd $(HOST_SUBDIR); mv opcodes stageprofile-opcodes ; \
42777 mv prev-opcodes stage1-opcodes ; : ; \
f41d6665 42778 fi
ce406537
PB
42779@endif opcodes
42780@if binutils
2d309510
PB
42781 @if test -d $(HOST_SUBDIR)/binutils ; then \
42782 cd $(HOST_SUBDIR); mv binutils stageprofile-binutils ; \
42783 mv prev-binutils stage1-binutils ; : ; \
f41d6665 42784 fi
ce406537
PB
42785@endif binutils
42786@if gas
2d309510
PB
42787 @if test -d $(HOST_SUBDIR)/gas ; then \
42788 cd $(HOST_SUBDIR); mv gas stageprofile-gas ; \
42789 mv prev-gas stage1-gas ; : ; \
f41d6665 42790 fi
ce406537
PB
42791@endif gas
42792@if gcc
2d309510
PB
42793 @if test -d $(HOST_SUBDIR)/gcc ; then \
42794 cd $(HOST_SUBDIR); mv gcc stageprofile-gcc ; \
42795 mv prev-gcc stage1-gcc ; : ; \
f41d6665 42796 fi
ce406537
PB
42797@endif gcc
42798@if intl
2d309510
PB
42799 @if test -d $(HOST_SUBDIR)/intl ; then \
42800 cd $(HOST_SUBDIR); mv intl stageprofile-intl ; \
42801 mv prev-intl stage1-intl ; : ; \
f41d6665 42802 fi
ce406537
PB
42803@endif intl
42804@if ld
2d309510
PB
42805 @if test -d $(HOST_SUBDIR)/ld ; then \
42806 cd $(HOST_SUBDIR); mv ld stageprofile-ld ; \
42807 mv prev-ld stage1-ld ; : ; \
f41d6665 42808 fi
ce406537
PB
42809@endif ld
42810@if libcpp
2d309510
PB
42811 @if test -d $(HOST_SUBDIR)/libcpp ; then \
42812 cd $(HOST_SUBDIR); mv libcpp stageprofile-libcpp ; \
42813 mv prev-libcpp stage1-libcpp ; : ; \
f41d6665 42814 fi
ce406537 42815@endif libcpp
a4b6c45a 42816@if libdecnumber
2d309510
PB
42817 @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
42818 cd $(HOST_SUBDIR); mv libdecnumber stageprofile-libdecnumber ; \
42819 mv prev-libdecnumber stage1-libdecnumber ; : ; \
f41d6665 42820 fi
a4b6c45a 42821@endif libdecnumber
ce406537 42822@if libiberty
2d309510
PB
42823 @if test -d $(HOST_SUBDIR)/libiberty ; then \
42824 cd $(HOST_SUBDIR); mv libiberty stageprofile-libiberty ; \
42825 mv prev-libiberty stage1-libiberty ; : ; \
f41d6665 42826 fi
ce406537
PB
42827@endif libiberty
42828@if zlib
2d309510
PB
42829 @if test -d $(HOST_SUBDIR)/zlib ; then \
42830 cd $(HOST_SUBDIR); mv zlib stageprofile-zlib ; \
42831 mv prev-zlib stage1-zlib ; : ; \
f41d6665 42832 fi
ce406537 42833@endif zlib
f41d6665 42834 @if test -d $(TARGET_SUBDIR) ; then \
2d309510
PB
42835 mv $(TARGET_SUBDIR) stageprofile-$(TARGET_SUBDIR) ; \
42836 mv prev-$(TARGET_SUBDIR) stage1-$(TARGET_SUBDIR) ; : ; \
f41d6665 42837 fi
2d309510 42838 rm -f stage_current
7c27e184 42839
f41d6665
DJ
42840# Bubble a bugfix through all the stages up to stage profile. They are
42841# remade, but not reconfigured. The next stage (if any) will not be
42842# reconfigured as well.
ce406537
PB
42843.PHONY: stageprofile-bubble
42844stageprofile-bubble:: stage1-bubble
e7c84bf8
PB
42845 @r=`${PWD_COMMAND}`; export r; \
42846 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
42847 if test -f stageprofile-lean || test -f stage1-lean ; then \
ce406537
PB
42848 echo Skipping rebuild of stageprofile ; \
42849 else \
1061f99e
PB
42850 $(MAKE) stageprofile-start; \
42851 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stageprofile; \
ce406537 42852 fi
7c27e184 42853
ce406537
PB
42854.PHONY: all-stageprofile clean-stageprofile
42855do-clean: clean-stageprofile
45f366ab 42856
7c27e184
PB
42857# FIXME: Will not need to be conditional when toplevel bootstrap is the
42858# only possibility, but now it conflicts with no-bootstrap rules
42859@if gcc-bootstrap
42860
42861
42862
42863
45f366ab 42864# Rules to wipe a stage and all the following ones, also used for cleanstrap
05750653 42865distclean-stage1:: distclean-stageprofile
45f366ab 42866.PHONY: distclean-stageprofile
7c27e184 42867distclean-stageprofile::
f41d6665 42868 @: $(MAKE); $(stage)
05750653 42869 rm -rf stageprofile-*
148907ea
PB
42870
42871
7c27e184 42872@endif gcc-bootstrap
148907ea
PB
42873
42874
7c27e184 42875.PHONY: stagefeedback-start stagefeedback-end
148907ea 42876
7c27e184 42877stagefeedback-start::
f41d6665 42878 @: $(MAKE); $(stage); \
7c27e184 42879 echo stagefeedback > stage_current ; \
215c351a 42880 echo stagefeedback > stage_last; \
f41d6665 42881 $(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)
7c27e184 42882@if bfd
215c351a
PB
42883 @cd $(HOST_SUBDIR); [ -d stagefeedback-bfd ] || \
42884 mkdir stagefeedback-bfd; \
2d309510
PB
42885 mv stagefeedback-bfd bfd ; \
42886 mv stageprofile-bfd prev-bfd || test -f stageprofile-lean
7c27e184
PB
42887@endif bfd
42888@if opcodes
215c351a
PB
42889 @cd $(HOST_SUBDIR); [ -d stagefeedback-opcodes ] || \
42890 mkdir stagefeedback-opcodes; \
2d309510
PB
42891 mv stagefeedback-opcodes opcodes ; \
42892 mv stageprofile-opcodes prev-opcodes || test -f stageprofile-lean
7c27e184
PB
42893@endif opcodes
42894@if binutils
215c351a
PB
42895 @cd $(HOST_SUBDIR); [ -d stagefeedback-binutils ] || \
42896 mkdir stagefeedback-binutils; \
2d309510
PB
42897 mv stagefeedback-binutils binutils ; \
42898 mv stageprofile-binutils prev-binutils || test -f stageprofile-lean
7c27e184
PB
42899@endif binutils
42900@if gas
215c351a
PB
42901 @cd $(HOST_SUBDIR); [ -d stagefeedback-gas ] || \
42902 mkdir stagefeedback-gas; \
2d309510
PB
42903 mv stagefeedback-gas gas ; \
42904 mv stageprofile-gas prev-gas || test -f stageprofile-lean
7c27e184
PB
42905@endif gas
42906@if gcc
215c351a
PB
42907 @cd $(HOST_SUBDIR); [ -d stagefeedback-gcc ] || \
42908 mkdir stagefeedback-gcc; \
2d309510
PB
42909 mv stagefeedback-gcc gcc ; \
42910 mv stageprofile-gcc prev-gcc || test -f stageprofile-lean
7c27e184
PB
42911@endif gcc
42912@if intl
215c351a
PB
42913 @cd $(HOST_SUBDIR); [ -d stagefeedback-intl ] || \
42914 mkdir stagefeedback-intl; \
2d309510
PB
42915 mv stagefeedback-intl intl ; \
42916 mv stageprofile-intl prev-intl || test -f stageprofile-lean
7c27e184
PB
42917@endif intl
42918@if ld
215c351a
PB
42919 @cd $(HOST_SUBDIR); [ -d stagefeedback-ld ] || \
42920 mkdir stagefeedback-ld; \
2d309510
PB
42921 mv stagefeedback-ld ld ; \
42922 mv stageprofile-ld prev-ld || test -f stageprofile-lean
7c27e184
PB
42923@endif ld
42924@if libcpp
215c351a
PB
42925 @cd $(HOST_SUBDIR); [ -d stagefeedback-libcpp ] || \
42926 mkdir stagefeedback-libcpp; \
2d309510
PB
42927 mv stagefeedback-libcpp libcpp ; \
42928 mv stageprofile-libcpp prev-libcpp || test -f stageprofile-lean
7c27e184 42929@endif libcpp
a4b6c45a
BE
42930@if libdecnumber
42931 @cd $(HOST_SUBDIR); [ -d stagefeedback-libdecnumber ] || \
42932 mkdir stagefeedback-libdecnumber; \
2d309510
PB
42933 mv stagefeedback-libdecnumber libdecnumber ; \
42934 mv stageprofile-libdecnumber prev-libdecnumber || test -f stageprofile-lean
a4b6c45a 42935@endif libdecnumber
7c27e184 42936@if libiberty
215c351a
PB
42937 @cd $(HOST_SUBDIR); [ -d stagefeedback-libiberty ] || \
42938 mkdir stagefeedback-libiberty; \
2d309510
PB
42939 mv stagefeedback-libiberty libiberty ; \
42940 mv stageprofile-libiberty prev-libiberty || test -f stageprofile-lean
7c27e184
PB
42941@endif libiberty
42942@if zlib
215c351a
PB
42943 @cd $(HOST_SUBDIR); [ -d stagefeedback-zlib ] || \
42944 mkdir stagefeedback-zlib; \
2d309510
PB
42945 mv stagefeedback-zlib zlib ; \
42946 mv stageprofile-zlib prev-zlib || test -f stageprofile-lean
7c27e184 42947@endif zlib
f41d6665
DJ
42948 @[ -d stagefeedback-$(TARGET_SUBDIR) ] || \
42949 mkdir stagefeedback-$(TARGET_SUBDIR); \
2d309510
PB
42950 mv stagefeedback-$(TARGET_SUBDIR) $(TARGET_SUBDIR) ; \
42951 mv stageprofile-$(TARGET_SUBDIR) prev-$(TARGET_SUBDIR) || test -f stageprofile-lean
148907ea 42952
2d309510 42953stagefeedback-end::
7c27e184 42954@if bfd
2d309510
PB
42955 @if test -d $(HOST_SUBDIR)/bfd ; then \
42956 cd $(HOST_SUBDIR); mv bfd stagefeedback-bfd ; \
42957 mv prev-bfd stageprofile-bfd ; : ; \
f41d6665 42958 fi
7c27e184
PB
42959@endif bfd
42960@if opcodes
2d309510
PB
42961 @if test -d $(HOST_SUBDIR)/opcodes ; then \
42962 cd $(HOST_SUBDIR); mv opcodes stagefeedback-opcodes ; \
42963 mv prev-opcodes stageprofile-opcodes ; : ; \
f41d6665 42964 fi
7c27e184
PB
42965@endif opcodes
42966@if binutils
2d309510
PB
42967 @if test -d $(HOST_SUBDIR)/binutils ; then \
42968 cd $(HOST_SUBDIR); mv binutils stagefeedback-binutils ; \
42969 mv prev-binutils stageprofile-binutils ; : ; \
f41d6665 42970 fi
7c27e184
PB
42971@endif binutils
42972@if gas
2d309510
PB
42973 @if test -d $(HOST_SUBDIR)/gas ; then \
42974 cd $(HOST_SUBDIR); mv gas stagefeedback-gas ; \
42975 mv prev-gas stageprofile-gas ; : ; \
f41d6665 42976 fi
7c27e184
PB
42977@endif gas
42978@if gcc
2d309510
PB
42979 @if test -d $(HOST_SUBDIR)/gcc ; then \
42980 cd $(HOST_SUBDIR); mv gcc stagefeedback-gcc ; \
42981 mv prev-gcc stageprofile-gcc ; : ; \
f41d6665 42982 fi
7c27e184
PB
42983@endif gcc
42984@if intl
2d309510
PB
42985 @if test -d $(HOST_SUBDIR)/intl ; then \
42986 cd $(HOST_SUBDIR); mv intl stagefeedback-intl ; \
42987 mv prev-intl stageprofile-intl ; : ; \
f41d6665 42988 fi
7c27e184
PB
42989@endif intl
42990@if ld
2d309510
PB
42991 @if test -d $(HOST_SUBDIR)/ld ; then \
42992 cd $(HOST_SUBDIR); mv ld stagefeedback-ld ; \
42993 mv prev-ld stageprofile-ld ; : ; \
f41d6665 42994 fi
7c27e184
PB
42995@endif ld
42996@if libcpp
2d309510
PB
42997 @if test -d $(HOST_SUBDIR)/libcpp ; then \
42998 cd $(HOST_SUBDIR); mv libcpp stagefeedback-libcpp ; \
42999 mv prev-libcpp stageprofile-libcpp ; : ; \
f41d6665 43000 fi
7c27e184 43001@endif libcpp
a4b6c45a 43002@if libdecnumber
2d309510
PB
43003 @if test -d $(HOST_SUBDIR)/libdecnumber ; then \
43004 cd $(HOST_SUBDIR); mv libdecnumber stagefeedback-libdecnumber ; \
43005 mv prev-libdecnumber stageprofile-libdecnumber ; : ; \
f41d6665 43006 fi
a4b6c45a 43007@endif libdecnumber
7c27e184 43008@if libiberty
2d309510
PB
43009 @if test -d $(HOST_SUBDIR)/libiberty ; then \
43010 cd $(HOST_SUBDIR); mv libiberty stagefeedback-libiberty ; \
43011 mv prev-libiberty stageprofile-libiberty ; : ; \
f41d6665 43012 fi
7c27e184
PB
43013@endif libiberty
43014@if zlib
2d309510
PB
43015 @if test -d $(HOST_SUBDIR)/zlib ; then \
43016 cd $(HOST_SUBDIR); mv zlib stagefeedback-zlib ; \
43017 mv prev-zlib stageprofile-zlib ; : ; \
f41d6665 43018 fi
7c27e184 43019@endif zlib
f41d6665 43020 @if test -d $(TARGET_SUBDIR) ; then \
2d309510
PB
43021 mv $(TARGET_SUBDIR) stagefeedback-$(TARGET_SUBDIR) ; \
43022 mv prev-$(TARGET_SUBDIR) stageprofile-$(TARGET_SUBDIR) ; : ; \
f41d6665 43023 fi
2d309510 43024 rm -f stage_current
148907ea 43025
f41d6665
DJ
43026# Bubble a bugfix through all the stages up to stage feedback. They are
43027# remade, but not reconfigured. The next stage (if any) will not be
43028# reconfigured as well.
7c27e184 43029.PHONY: stagefeedback-bubble
c7870f5d 43030stagefeedback-bubble:: stageprofile-bubble
e7c84bf8
PB
43031 @r=`${PWD_COMMAND}`; export r; \
43032 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43033 if test -f stagefeedback-lean || test -f stageprofile-lean ; then \
ce521a9c
PB
43034 echo Skipping rebuild of stagefeedback ; \
43035 else \
1061f99e
PB
43036 $(MAKE) stagefeedback-start; \
43037 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-stagefeedback; \
ce521a9c 43038 fi
7c27e184 43039
45f366ab 43040.PHONY: all-stagefeedback clean-stagefeedback
45f366ab 43041do-clean: clean-stagefeedback
45f366ab 43042
7c27e184
PB
43043# FIXME: Will not need to be conditional when toplevel bootstrap is the
43044# only possibility, but now it conflicts with no-bootstrap rules
43045@if gcc-bootstrap
ad6717df
PB
43046
43047
43048
2d309510 43049.PHONY: profiledbootstrap profiledbootstrap-lean
2abefe3d
PB
43050profiledbootstrap:
43051 echo stagefeedback > stage_final
43052 @r=`${PWD_COMMAND}`; export r; \
43053 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43054 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stagefeedback-bubble
f41d6665 43055 @: $(MAKE); $(unstage)
2abefe3d
PB
43056 @r=`${PWD_COMMAND}`; export r; \
43057 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43058 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
c7870f5d 43059
2d309510
PB
43060profiledbootstrap-lean:
43061 echo stagefeedback > stage_final
43062 @r=`${PWD_COMMAND}`; export r; \
43063 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43064 $(MAKE) $(RECURSE_FLAGS_TO_PASS) LEAN=: stagefeedback-bubble
43065 @: $(MAKE); $(unstage)
43066 @r=`${PWD_COMMAND}`; export r; \
43067 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
43068 $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target
43069
ad6717df 43070
45f366ab 43071# Rules to wipe a stage and all the following ones, also used for cleanstrap
c7870f5d 43072distclean-stageprofile:: distclean-stagefeedback
45f366ab 43073.PHONY: distclean-stagefeedback
ad6717df 43074distclean-stagefeedback::
f41d6665 43075 @: $(MAKE); $(stage)
05750653 43076 rm -rf stagefeedback-*
ad6717df
PB
43077
43078
7c27e184 43079@endif gcc-bootstrap
ad6717df
PB
43080
43081
43082
c7870f5d
PB
43083stageprofile-end::
43084 $(MAKE) distclean-stagefeedback
ad6717df 43085
c7870f5d 43086stagefeedback-start::
ad6717df
PB
43087 @r=`${PWD_COMMAND}`; export r; \
43088 s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
c7870f5d
PB
43089 for i in prev-*; do \
43090 j=`echo $$i | sed s/^prev-//` ; \
43091 cd $$r/$$i && \
43092 { find . -type d | sort | sed 's,.*,$(SHELL) '"$$s"'/mkinstalldirs "../'$$j'/&",' | $(SHELL) ; } && \
43093 { find . -name '*.*da' | sed 's,.*,$(LN) -f "&" "../'$$j'/&",' | $(SHELL) ; } ; \
43094 done
03a91701 43095
45f366ab 43096@if gcc-bootstrap
45f366ab 43097do-distclean: distclean-stage1
cc11cc9b
PB
43098
43099# Provide a GCC build when we're building target libraries. This does
43100# not work as a dependency, just as the minimum necessary to avoid errors.
43101stage_last:
43102 $(MAKE) $(RECURSE_FLAGS_TO_PASS) stage1-bubble
45f366ab 43103
3ff3adad
PB
43104# Same as unstage, but not phony and defaulting to stage1-start. We place
43105# it in the dependency so that for example `make -j3 all-gcc' works.
43106stage_current:
43107 @if test -f stage_last; then $(unstage); else $(MAKE) stage1-start; fi
43108
cc11cc9b
PB
43109.PHONY: restrap
43110restrap:
43111 @: $(MAKE); $(stage)
e9a54b07 43112 rm -rf stage1-$(TARGET_SUBDIR) stage2-* stage3-* stage4-* stageprofile-* stagefeedback-*
cc11cc9b 43113 $(MAKE) $(RECURSE_FLAGS_TO_PASS) all
e9a54b07 43114@endif gcc-bootstrap
cc11cc9b 43115
4977bab6
ZW
43116# --------------------------------------
43117# Dependencies between different modules
43118# --------------------------------------
43119
3589b69e 43120# Generic dependencies for target modules on host stuff, especially gcc
cc11cc9b
PB
43121@if gcc-bootstrap
43122configure-target-libstdc++-v3: stage_last
43123configure-target-libmudflap: stage_last
43124configure-target-libssp: stage_last
cc11cc9b
PB
43125configure-target-newlib: stage_last
43126configure-target-libgfortran: stage_last
43127configure-target-libobjc: stage_last
43128configure-target-libtermcap: stage_last
43129configure-target-winsup: stage_last
43130configure-target-libgloss: stage_last
43131configure-target-libiberty: stage_last
43132configure-target-gperf: stage_last
43133configure-target-examples: stage_last
43134configure-target-libffi: stage_last
43135configure-target-libjava: stage_last
43136configure-target-zlib: stage_last
43137configure-target-boehm-gc: stage_last
43138configure-target-qthreads: stage_last
43139configure-target-rda: stage_last
43140configure-target-libada: stage_last
43141configure-target-libgomp: stage_last
43142@endif gcc-bootstrap
3589b69e 43143
cc11cc9b 43144@if gcc-no-bootstrap
3589b69e 43145configure-target-libstdc++-v3: maybe-all-gcc
3589b69e 43146configure-target-libmudflap: maybe-all-gcc
77008252 43147configure-target-libssp: maybe-all-gcc
3589b69e 43148configure-target-newlib: maybe-all-gcc
3589b69e 43149configure-target-libgfortran: maybe-all-gcc
3589b69e 43150configure-target-libobjc: maybe-all-gcc
3589b69e 43151configure-target-libtermcap: maybe-all-gcc
3589b69e 43152configure-target-winsup: maybe-all-gcc
3589b69e 43153configure-target-libgloss: maybe-all-gcc
3589b69e 43154configure-target-libiberty: maybe-all-gcc
3589b69e 43155configure-target-gperf: maybe-all-gcc
3589b69e 43156configure-target-examples: maybe-all-gcc
3589b69e 43157configure-target-libffi: maybe-all-gcc
3589b69e 43158configure-target-libjava: maybe-all-gcc
3589b69e 43159configure-target-zlib: maybe-all-gcc
3589b69e 43160configure-target-boehm-gc: maybe-all-gcc
3589b69e 43161configure-target-qthreads: maybe-all-gcc
3589b69e 43162configure-target-rda: maybe-all-gcc
3589b69e 43163configure-target-libada: maybe-all-gcc
953ff289 43164configure-target-libgomp: maybe-all-gcc
cc11cc9b 43165@endif gcc-no-bootstrap
953ff289 43166
3589b69e
PB
43167
43168
43169configure-target-boehm-gc: maybe-all-target-newlib maybe-all-target-libgloss
43170
43171configure-target-gperf: maybe-all-target-newlib maybe-all-target-libgloss
43172configure-target-gperf: maybe-all-target-libstdc++-v3
43173
43174configure-target-libada: maybe-all-target-newlib maybe-all-target-libgloss
43175
43176configure-target-libgfortran: maybe-all-target-newlib maybe-all-target-libgloss
43177
43178configure-target-libffi: maybe-all-target-newlib maybe-all-target-libgloss
43179
43180configure-target-libjava: maybe-all-target-newlib maybe-all-target-libgloss
43181configure-target-libjava: maybe-all-target-libstdc++-v3
43182
4a9c436f
JW
43183configure-target-libmudflap: maybe-all-target-newlib maybe-all-target-libgloss
43184
3589b69e
PB
43185configure-target-libobjc: maybe-all-target-newlib maybe-all-target-libgloss
43186
b00d752c
RE
43187configure-target-libssp: maybe-all-target-newlib maybe-all-target-libgloss
43188
3589b69e
PB
43189configure-target-libstdc++-v3: maybe-all-target-newlib maybe-all-target-libgloss
43190
43191configure-target-zlib: maybe-all-target-newlib maybe-all-target-libgloss
43192
43193configure-target-examples: maybe-all-target-newlib maybe-all-target-libgloss
43194
43195configure-target-libtermcap: maybe-all-target-newlib maybe-all-target-libgloss
43196
43197configure-target-rda: maybe-all-target-newlib maybe-all-target-libgloss
43198
43199configure-target-winsup: maybe-all-target-newlib maybe-all-target-libgloss
43200
43201configure-target-qthreads: maybe-all-target-newlib maybe-all-target-libgloss
43202
43203
4977bab6
ZW
43204# There are two types of dependencies here: 'hard' dependencies, where one
43205# module simply won't build without the other; and 'soft' dependencies, where
43206# if the depended-on module is missing, the depending module will do without
43207# or find a substitute somewhere (perhaps installed). Soft dependencies
3589b69e 43208# are made here to depend on a 'maybe-' target. If you're not sure,
4977bab6
ZW
43209# it's safer to use a soft dependency.
43210
3589b69e
PB
43211
43212
43213
43214
2dfbef6d 43215
3589b69e
PB
43216# With all the machinery above in place, it is pretty easy to generate
43217# dependencies. Host dependencies are a bit more complex because we have
43218# to check for bootstrap/prebootstrap dependencies. To resolve
43219# prebootstrap dependencies, prebootstrap modules are gathered in
43220# a hash table.
23f6b2f9 43221all-build-bison: maybe-all-build-texinfo
3589b69e 43222all-build-byacc: maybe-all-build-texinfo
23f6b2f9 43223all-build-flex: maybe-all-build-texinfo
3589b69e
PB
43224all-build-flex: maybe-all-build-bison
43225all-build-flex: maybe-all-build-byacc
43226all-build-flex: maybe-all-build-m4
23f6b2f9 43227all-build-libiberty: maybe-all-build-texinfo
3589b69e 43228all-build-m4: maybe-all-build-texinfo
71b5d516 43229all-build-fixincludes: maybe-all-build-libiberty
3589b69e
PB
43230configure-gcc: maybe-configure-intl
43231
43232configure-stage1-gcc: maybe-configure-stage1-intl
43233configure-stage2-gcc: maybe-configure-stage2-intl
43234configure-stage3-gcc: maybe-configure-stage3-intl
43235configure-stage4-gcc: maybe-configure-stage4-intl
43236configure-stageprofile-gcc: maybe-configure-stageprofile-intl
43237configure-stagefeedback-gcc: maybe-configure-stagefeedback-intl
bcb28cf5
PB
43238configure-gcc: maybe-all-binutils
43239
43240configure-stage1-gcc: maybe-all-stage1-binutils
43241configure-stage2-gcc: maybe-all-stage2-binutils
43242configure-stage3-gcc: maybe-all-stage3-binutils
43243configure-stage4-gcc: maybe-all-stage4-binutils
43244configure-stageprofile-gcc: maybe-all-stageprofile-binutils
43245configure-stagefeedback-gcc: maybe-all-stagefeedback-binutils
43246configure-gcc: maybe-all-gas
43247
43248configure-stage1-gcc: maybe-all-stage1-gas
43249configure-stage2-gcc: maybe-all-stage2-gas
43250configure-stage3-gcc: maybe-all-stage3-gas
43251configure-stage4-gcc: maybe-all-stage4-gas
43252configure-stageprofile-gcc: maybe-all-stageprofile-gas
43253configure-stagefeedback-gcc: maybe-all-stagefeedback-gas
43254configure-gcc: maybe-all-ld
43255
43256configure-stage1-gcc: maybe-all-stage1-ld
43257configure-stage2-gcc: maybe-all-stage2-ld
43258configure-stage3-gcc: maybe-all-stage3-ld
43259configure-stage4-gcc: maybe-all-stage4-ld
43260configure-stageprofile-gcc: maybe-all-stageprofile-ld
43261configure-stagefeedback-gcc: maybe-all-stagefeedback-ld
3589b69e
PB
43262all-gcc: all-libiberty
43263
43264all-stage1-gcc: all-stage1-libiberty
43265all-stage2-gcc: all-stage2-libiberty
43266all-stage3-gcc: all-stage3-libiberty
43267all-stage4-gcc: all-stage4-libiberty
43268all-stageprofile-gcc: all-stageprofile-libiberty
43269all-stagefeedback-gcc: all-stagefeedback-libiberty
43270all-gcc: maybe-all-intl
43271
43272all-stage1-gcc: maybe-all-stage1-intl
43273all-stage2-gcc: maybe-all-stage2-intl
43274all-stage3-gcc: maybe-all-stage3-intl
43275all-stage4-gcc: maybe-all-stage4-intl
43276all-stageprofile-gcc: maybe-all-stageprofile-intl
43277all-stagefeedback-gcc: maybe-all-stagefeedback-intl
7c27e184
PB
43278all-gcc: maybe-all-build-texinfo
43279
43280all-stage1-gcc: maybe-all-build-texinfo
43281all-stage2-gcc: maybe-all-build-texinfo
43282all-stage3-gcc: maybe-all-build-texinfo
43283all-stage4-gcc: maybe-all-build-texinfo
43284all-stageprofile-gcc: maybe-all-build-texinfo
43285all-stagefeedback-gcc: maybe-all-build-texinfo
7c27e184
PB
43286all-gcc: maybe-all-build-bison
43287
43288all-stage1-gcc: maybe-all-build-bison
43289all-stage2-gcc: maybe-all-build-bison
43290all-stage3-gcc: maybe-all-build-bison
43291all-stage4-gcc: maybe-all-build-bison
43292all-stageprofile-gcc: maybe-all-build-bison
43293all-stagefeedback-gcc: maybe-all-build-bison
7c27e184
PB
43294all-gcc: maybe-all-build-byacc
43295
43296all-stage1-gcc: maybe-all-build-byacc
43297all-stage2-gcc: maybe-all-build-byacc
43298all-stage3-gcc: maybe-all-build-byacc
43299all-stage4-gcc: maybe-all-build-byacc
43300all-stageprofile-gcc: maybe-all-build-byacc
43301all-stagefeedback-gcc: maybe-all-build-byacc
7c27e184
PB
43302all-gcc: maybe-all-build-flex
43303
43304all-stage1-gcc: maybe-all-build-flex
43305all-stage2-gcc: maybe-all-build-flex
43306all-stage3-gcc: maybe-all-build-flex
43307all-stage4-gcc: maybe-all-build-flex
43308all-stageprofile-gcc: maybe-all-build-flex
43309all-stagefeedback-gcc: maybe-all-build-flex
71b5d516
PB
43310all-gcc: maybe-all-build-libiberty
43311
43312all-stage1-gcc: maybe-all-build-libiberty
43313all-stage2-gcc: maybe-all-build-libiberty
43314all-stage3-gcc: maybe-all-build-libiberty
43315all-stage4-gcc: maybe-all-build-libiberty
43316all-stageprofile-gcc: maybe-all-build-libiberty
43317all-stagefeedback-gcc: maybe-all-build-libiberty
71b5d516
PB
43318all-gcc: maybe-all-build-fixincludes
43319
43320all-stage1-gcc: maybe-all-build-fixincludes
43321all-stage2-gcc: maybe-all-build-fixincludes
43322all-stage3-gcc: maybe-all-build-fixincludes
43323all-stage4-gcc: maybe-all-build-fixincludes
43324all-stageprofile-gcc: maybe-all-build-fixincludes
43325all-stagefeedback-gcc: maybe-all-build-fixincludes
3589b69e
PB
43326all-gcc: maybe-all-zlib
43327
43328all-stage1-gcc: maybe-all-stage1-zlib
43329all-stage2-gcc: maybe-all-stage2-zlib
43330all-stage3-gcc: maybe-all-stage3-zlib
43331all-stage4-gcc: maybe-all-stage4-zlib
43332all-stageprofile-gcc: maybe-all-stageprofile-zlib
43333all-stagefeedback-gcc: maybe-all-stagefeedback-zlib
3589b69e
PB
43334all-gcc: all-libcpp
43335
43336all-stage1-gcc: all-stage1-libcpp
43337all-stage2-gcc: all-stage2-libcpp
43338all-stage3-gcc: all-stage3-libcpp
43339all-stage4-gcc: all-stage4-libcpp
43340all-stageprofile-gcc: all-stageprofile-libcpp
43341all-stagefeedback-gcc: all-stagefeedback-libcpp
a4b6c45a
BE
43342all-gcc: all-libdecnumber
43343
43344all-stage1-gcc: all-stage1-libdecnumber
43345all-stage2-gcc: all-stage2-libdecnumber
43346all-stage3-gcc: all-stage3-libdecnumber
43347all-stage4-gcc: all-stage4-libdecnumber
43348all-stageprofile-gcc: all-stageprofile-libdecnumber
43349all-stagefeedback-gcc: all-stagefeedback-libdecnumber
53c7ffe7
GK
43350all-gcc: maybe-all-libiberty
43351
43352all-stage1-gcc: maybe-all-stage1-libiberty
43353all-stage2-gcc: maybe-all-stage2-libiberty
43354all-stage3-gcc: maybe-all-stage3-libiberty
43355all-stage4-gcc: maybe-all-stage4-libiberty
43356all-stageprofile-gcc: maybe-all-stageprofile-libiberty
43357all-stagefeedback-gcc: maybe-all-stagefeedback-libiberty
43358all-gcc: maybe-all-fixincludes
848556c2 43359install-gcc: maybe-install-fixincludes
3589b69e
PB
43360configure-libcpp: configure-libiberty
43361
43362configure-stage1-libcpp: configure-stage1-libiberty
43363configure-stage2-libcpp: configure-stage2-libiberty
43364configure-stage3-libcpp: configure-stage3-libiberty
43365configure-stage4-libcpp: configure-stage4-libiberty
43366configure-stageprofile-libcpp: configure-stageprofile-libiberty
43367configure-stagefeedback-libcpp: configure-stagefeedback-libiberty
43368configure-libcpp: maybe-configure-intl
43369
43370configure-stage1-libcpp: maybe-configure-stage1-intl
43371configure-stage2-libcpp: maybe-configure-stage2-intl
43372configure-stage3-libcpp: maybe-configure-stage3-intl
43373configure-stage4-libcpp: maybe-configure-stage4-intl
43374configure-stageprofile-libcpp: maybe-configure-stageprofile-intl
43375configure-stagefeedback-libcpp: maybe-configure-stagefeedback-intl
43376all-libcpp: all-libiberty
43377
43378all-stage1-libcpp: all-stage1-libiberty
43379all-stage2-libcpp: all-stage2-libiberty
43380all-stage3-libcpp: all-stage3-libiberty
43381all-stage4-libcpp: all-stage4-libiberty
43382all-stageprofile-libcpp: all-stageprofile-libiberty
43383all-stagefeedback-libcpp: all-stagefeedback-libiberty
43384all-libcpp: maybe-all-intl
43385
43386all-stage1-libcpp: maybe-all-stage1-intl
43387all-stage2-libcpp: maybe-all-stage2-intl
43388all-stage3-libcpp: maybe-all-stage3-intl
43389all-stage4-libcpp: maybe-all-stage4-intl
43390all-stageprofile-libcpp: maybe-all-stageprofile-intl
43391all-stagefeedback-libcpp: maybe-all-stagefeedback-intl
53c7ffe7 43392all-fixincludes: maybe-all-libiberty
5395b47b 43393all-gnattools: maybe-all-target-libada
32845532 43394configure-gdb: maybe-configure-intl
3589b69e 43395configure-gdb: maybe-configure-sim
32845532 43396all-gdb: maybe-all-intl
3589b69e
PB
43397all-gdb: maybe-all-libiberty
43398all-gdb: maybe-all-opcodes
43399all-gdb: maybe-all-bfd
3589b69e 43400all-gdb: maybe-all-readline
7c27e184
PB
43401all-gdb: maybe-all-build-bison
43402all-gdb: maybe-all-build-byacc
3589b69e 43403all-gdb: maybe-all-sim
3589b69e
PB
43404configure-libgui: maybe-configure-tcl
43405configure-libgui: maybe-configure-tk
43406all-libgui: maybe-all-tcl
43407all-libgui: maybe-all-tk
43408all-libgui: maybe-all-itcl
4977bab6 43409configure-bfd: configure-libiberty
3589b69e
PB
43410
43411configure-stage1-bfd: configure-stage1-libiberty
43412configure-stage2-bfd: configure-stage2-libiberty
43413configure-stage3-bfd: configure-stage3-libiberty
43414configure-stage4-bfd: configure-stage4-libiberty
43415configure-stageprofile-bfd: configure-stageprofile-libiberty
43416configure-stagefeedback-bfd: configure-stagefeedback-libiberty
32845532
CD
43417configure-bfd: maybe-configure-intl
43418
43419configure-stage1-bfd: maybe-configure-stage1-intl
43420configure-stage2-bfd: maybe-configure-stage2-intl
43421configure-stage3-bfd: maybe-configure-stage3-intl
43422configure-stage4-bfd: maybe-configure-stage4-intl
43423configure-stageprofile-bfd: maybe-configure-stageprofile-intl
43424configure-stagefeedback-bfd: maybe-configure-stagefeedback-intl
3589b69e
PB
43425all-bfd: maybe-all-libiberty
43426
43427all-stage1-bfd: maybe-all-stage1-libiberty
43428all-stage2-bfd: maybe-all-stage2-libiberty
43429all-stage3-bfd: maybe-all-stage3-libiberty
43430all-stage4-bfd: maybe-all-stage4-libiberty
43431all-stageprofile-bfd: maybe-all-stageprofile-libiberty
43432all-stagefeedback-bfd: maybe-all-stagefeedback-libiberty
43433all-bfd: maybe-all-intl
43434
43435all-stage1-bfd: maybe-all-stage1-intl
43436all-stage2-bfd: maybe-all-stage2-intl
43437all-stage3-bfd: maybe-all-stage3-intl
43438all-stage4-bfd: maybe-all-stage4-intl
43439all-stageprofile-bfd: maybe-all-stageprofile-intl
43440all-stagefeedback-bfd: maybe-all-stagefeedback-intl
32845532
CD
43441configure-binutils: maybe-configure-intl
43442
43443configure-stage1-binutils: maybe-configure-stage1-intl
43444configure-stage2-binutils: maybe-configure-stage2-intl
43445configure-stage3-binutils: maybe-configure-stage3-intl
43446configure-stage4-binutils: maybe-configure-stage4-intl
43447configure-stageprofile-binutils: maybe-configure-stageprofile-intl
43448configure-stagefeedback-binutils: maybe-configure-stagefeedback-intl
3589b69e
PB
43449all-binutils: maybe-all-libiberty
43450
43451all-stage1-binutils: maybe-all-stage1-libiberty
43452all-stage2-binutils: maybe-all-stage2-libiberty
43453all-stage3-binutils: maybe-all-stage3-libiberty
43454all-stage4-binutils: maybe-all-stage4-libiberty
43455all-stageprofile-binutils: maybe-all-stageprofile-libiberty
43456all-stagefeedback-binutils: maybe-all-stagefeedback-libiberty
43457all-binutils: maybe-all-opcodes
43458
43459all-stage1-binutils: maybe-all-stage1-opcodes
43460all-stage2-binutils: maybe-all-stage2-opcodes
43461all-stage3-binutils: maybe-all-stage3-opcodes
43462all-stage4-binutils: maybe-all-stage4-opcodes
43463all-stageprofile-binutils: maybe-all-stageprofile-opcodes
43464all-stagefeedback-binutils: maybe-all-stagefeedback-opcodes
43465all-binutils: maybe-all-bfd
43466
43467all-stage1-binutils: maybe-all-stage1-bfd
43468all-stage2-binutils: maybe-all-stage2-bfd
43469all-stage3-binutils: maybe-all-stage3-bfd
43470all-stage4-binutils: maybe-all-stage4-bfd
43471all-stageprofile-binutils: maybe-all-stageprofile-bfd
43472all-stagefeedback-binutils: maybe-all-stagefeedback-bfd
7c27e184
PB
43473all-binutils: maybe-all-build-flex
43474
43475all-stage1-binutils: maybe-all-build-flex
43476all-stage2-binutils: maybe-all-build-flex
43477all-stage3-binutils: maybe-all-build-flex
43478all-stage4-binutils: maybe-all-build-flex
43479all-stageprofile-binutils: maybe-all-build-flex
43480all-stagefeedback-binutils: maybe-all-build-flex
7c27e184
PB
43481all-binutils: maybe-all-build-bison
43482
43483all-stage1-binutils: maybe-all-build-bison
43484all-stage2-binutils: maybe-all-build-bison
43485all-stage3-binutils: maybe-all-build-bison
43486all-stage4-binutils: maybe-all-build-bison
43487all-stageprofile-binutils: maybe-all-build-bison
43488all-stagefeedback-binutils: maybe-all-build-bison
7c27e184
PB
43489all-binutils: maybe-all-build-byacc
43490
43491all-stage1-binutils: maybe-all-build-byacc
43492all-stage2-binutils: maybe-all-build-byacc
43493all-stage3-binutils: maybe-all-build-byacc
43494all-stage4-binutils: maybe-all-build-byacc
43495all-stageprofile-binutils: maybe-all-build-byacc
43496all-stagefeedback-binutils: maybe-all-build-byacc
3589b69e
PB
43497all-binutils: maybe-all-intl
43498
43499all-stage1-binutils: maybe-all-stage1-intl
43500all-stage2-binutils: maybe-all-stage2-intl
43501all-stage3-binutils: maybe-all-stage3-intl
43502all-stage4-binutils: maybe-all-stage4-intl
43503all-stageprofile-binutils: maybe-all-stageprofile-intl
43504all-stagefeedback-binutils: maybe-all-stagefeedback-intl
4977bab6 43505install-binutils: maybe-install-opcodes
c3969745 43506install-opcodes: maybe-install-bfd
32845532
CD
43507configure-gas: maybe-configure-intl
43508
43509configure-stage1-gas: maybe-configure-stage1-intl
43510configure-stage2-gas: maybe-configure-stage2-intl
43511configure-stage3-gas: maybe-configure-stage3-intl
43512configure-stage4-gas: maybe-configure-stage4-intl
43513configure-stageprofile-gas: maybe-configure-stageprofile-intl
43514configure-stagefeedback-gas: maybe-configure-stagefeedback-intl
3589b69e
PB
43515all-gas: maybe-all-libiberty
43516
43517all-stage1-gas: maybe-all-stage1-libiberty
43518all-stage2-gas: maybe-all-stage2-libiberty
43519all-stage3-gas: maybe-all-stage3-libiberty
43520all-stage4-gas: maybe-all-stage4-libiberty
43521all-stageprofile-gas: maybe-all-stageprofile-libiberty
43522all-stagefeedback-gas: maybe-all-stagefeedback-libiberty
43523all-gas: maybe-all-opcodes
43524
43525all-stage1-gas: maybe-all-stage1-opcodes
43526all-stage2-gas: maybe-all-stage2-opcodes
43527all-stage3-gas: maybe-all-stage3-opcodes
43528all-stage4-gas: maybe-all-stage4-opcodes
43529all-stageprofile-gas: maybe-all-stageprofile-opcodes
43530all-stagefeedback-gas: maybe-all-stagefeedback-opcodes
43531all-gas: maybe-all-bfd
43532
43533all-stage1-gas: maybe-all-stage1-bfd
43534all-stage2-gas: maybe-all-stage2-bfd
43535all-stage3-gas: maybe-all-stage3-bfd
43536all-stage4-gas: maybe-all-stage4-bfd
43537all-stageprofile-gas: maybe-all-stageprofile-bfd
43538all-stagefeedback-gas: maybe-all-stagefeedback-bfd
43539all-gas: maybe-all-intl
43540
43541all-stage1-gas: maybe-all-stage1-intl
43542all-stage2-gas: maybe-all-stage2-intl
43543all-stage3-gas: maybe-all-stage3-intl
43544all-stage4-gas: maybe-all-stage4-intl
43545all-stageprofile-gas: maybe-all-stageprofile-intl
43546all-stagefeedback-gas: maybe-all-stagefeedback-intl
32845532 43547configure-gprof: maybe-configure-intl
3589b69e
PB
43548all-gprof: maybe-all-libiberty
43549all-gprof: maybe-all-bfd
43550all-gprof: maybe-all-opcodes
43551all-gprof: maybe-all-intl
32845532
CD
43552configure-ld: maybe-configure-intl
43553
43554configure-stage1-ld: maybe-configure-stage1-intl
43555configure-stage2-ld: maybe-configure-stage2-intl
43556configure-stage3-ld: maybe-configure-stage3-intl
43557configure-stage4-ld: maybe-configure-stage4-intl
43558configure-stageprofile-ld: maybe-configure-stageprofile-intl
43559configure-stagefeedback-ld: maybe-configure-stagefeedback-intl
3589b69e
PB
43560all-ld: maybe-all-libiberty
43561
43562all-stage1-ld: maybe-all-stage1-libiberty
43563all-stage2-ld: maybe-all-stage2-libiberty
43564all-stage3-ld: maybe-all-stage3-libiberty
43565all-stage4-ld: maybe-all-stage4-libiberty
43566all-stageprofile-ld: maybe-all-stageprofile-libiberty
43567all-stagefeedback-ld: maybe-all-stagefeedback-libiberty
43568all-ld: maybe-all-bfd
43569
43570all-stage1-ld: maybe-all-stage1-bfd
43571all-stage2-ld: maybe-all-stage2-bfd
43572all-stage3-ld: maybe-all-stage3-bfd
43573all-stage4-ld: maybe-all-stage4-bfd
43574all-stageprofile-ld: maybe-all-stageprofile-bfd
43575all-stagefeedback-ld: maybe-all-stagefeedback-bfd
43576all-ld: maybe-all-opcodes
43577
43578all-stage1-ld: maybe-all-stage1-opcodes
43579all-stage2-ld: maybe-all-stage2-opcodes
43580all-stage3-ld: maybe-all-stage3-opcodes
43581all-stage4-ld: maybe-all-stage4-opcodes
43582all-stageprofile-ld: maybe-all-stageprofile-opcodes
43583all-stagefeedback-ld: maybe-all-stagefeedback-opcodes
7c27e184
PB
43584all-ld: maybe-all-build-bison
43585
43586all-stage1-ld: maybe-all-build-bison
43587all-stage2-ld: maybe-all-build-bison
43588all-stage3-ld: maybe-all-build-bison
43589all-stage4-ld: maybe-all-build-bison
43590all-stageprofile-ld: maybe-all-build-bison
43591all-stagefeedback-ld: maybe-all-build-bison
7c27e184
PB
43592all-ld: maybe-all-build-byacc
43593
43594all-stage1-ld: maybe-all-build-byacc
43595all-stage2-ld: maybe-all-build-byacc
43596all-stage3-ld: maybe-all-build-byacc
43597all-stage4-ld: maybe-all-build-byacc
43598all-stageprofile-ld: maybe-all-build-byacc
43599all-stagefeedback-ld: maybe-all-build-byacc
7c27e184
PB
43600all-ld: maybe-all-build-flex
43601
43602all-stage1-ld: maybe-all-build-flex
43603all-stage2-ld: maybe-all-build-flex
43604all-stage3-ld: maybe-all-build-flex
43605all-stage4-ld: maybe-all-build-flex
43606all-stageprofile-ld: maybe-all-build-flex
43607all-stagefeedback-ld: maybe-all-build-flex
3589b69e
PB
43608all-ld: maybe-all-intl
43609
43610all-stage1-ld: maybe-all-stage1-intl
43611all-stage2-ld: maybe-all-stage2-intl
43612all-stage3-ld: maybe-all-stage3-intl
43613all-stage4-ld: maybe-all-stage4-intl
43614all-stageprofile-ld: maybe-all-stageprofile-intl
43615all-stagefeedback-ld: maybe-all-stagefeedback-intl
9fbe6585
JJ
43616configure-opcodes: maybe-configure-intl
43617
43618configure-stage1-opcodes: maybe-configure-stage1-intl
43619configure-stage2-opcodes: maybe-configure-stage2-intl
43620configure-stage3-opcodes: maybe-configure-stage3-intl
43621configure-stage4-opcodes: maybe-configure-stage4-intl
43622configure-stageprofile-opcodes: maybe-configure-stageprofile-intl
43623configure-stagefeedback-opcodes: maybe-configure-stagefeedback-intl
3589b69e
PB
43624all-opcodes: maybe-all-bfd
43625
43626all-stage1-opcodes: maybe-all-stage1-bfd
43627all-stage2-opcodes: maybe-all-stage2-bfd
43628all-stage3-opcodes: maybe-all-stage3-bfd
43629all-stage4-opcodes: maybe-all-stage4-bfd
43630all-stageprofile-opcodes: maybe-all-stageprofile-bfd
43631all-stagefeedback-opcodes: maybe-all-stagefeedback-bfd
43632all-opcodes: maybe-all-libiberty
43633
43634all-stage1-opcodes: maybe-all-stage1-libiberty
43635all-stage2-opcodes: maybe-all-stage2-libiberty
43636all-stage3-opcodes: maybe-all-stage3-libiberty
43637all-stage4-opcodes: maybe-all-stage4-libiberty
43638all-stageprofile-opcodes: maybe-all-stageprofile-libiberty
43639all-stagefeedback-opcodes: maybe-all-stagefeedback-libiberty
9fbe6585
JJ
43640all-opcodes: maybe-all-intl
43641
43642all-stage1-opcodes: maybe-all-stage1-intl
43643all-stage2-opcodes: maybe-all-stage2-intl
43644all-stage3-opcodes: maybe-all-stage3-intl
43645all-stage4-opcodes: maybe-all-stage4-intl
43646all-stageprofile-opcodes: maybe-all-stageprofile-intl
43647all-stagefeedback-opcodes: maybe-all-stagefeedback-intl
3589b69e
PB
43648all-dejagnu: maybe-all-tcl
43649all-dejagnu: maybe-all-expect
43650all-dejagnu: maybe-all-tk
43651configure-expect: maybe-configure-tcl
43652configure-expect: maybe-configure-tk
43653all-expect: maybe-all-tcl
43654all-expect: maybe-all-tk
43655configure-itcl: maybe-configure-tcl
43656configure-itcl: maybe-configure-tk
43657all-itcl: maybe-all-tcl
43658all-itcl: maybe-all-tk
4977bab6 43659install-itcl: maybe-install-tcl
4977bab6
ZW
43660configure-tk: maybe-configure-tcl
43661all-tk: maybe-all-tcl
3589b69e
PB
43662all-sid: maybe-all-libiberty
43663all-sid: maybe-all-bfd
43664all-sid: maybe-all-opcodes
43665all-sid: maybe-all-tcl
43666all-sid: maybe-all-tk
43667install-sid: maybe-install-tcl
43668install-sid: maybe-install-tk
32845532
CD
43669configure-sim: maybe-configure-intl
43670all-sim: maybe-all-intl
3589b69e
PB
43671all-sim: maybe-all-libiberty
43672all-sim: maybe-all-bfd
43673all-sim: maybe-all-opcodes
43674all-sim: maybe-all-readline
43675all-sim: maybe-configure-gdb
43676all-fastjar: maybe-all-zlib
7c27e184 43677all-fastjar: maybe-all-build-texinfo
3589b69e
PB
43678all-fastjar: maybe-all-libiberty
43679all-autoconf: maybe-all-m4
7c27e184 43680all-autoconf: maybe-all-build-texinfo
3589b69e 43681all-automake: maybe-all-m4
7c27e184 43682all-automake: maybe-all-build-texinfo
3589b69e
PB
43683all-automake: maybe-all-autoconf
43684all-bison: maybe-all-intl
7c27e184 43685all-bison: maybe-all-build-texinfo
3589b69e 43686all-diff: maybe-all-intl
7c27e184 43687all-diff: maybe-all-build-texinfo
3589b69e 43688all-fileutils: maybe-all-intl
7c27e184
PB
43689all-fileutils: maybe-all-build-texinfo
43690all-flex: maybe-all-build-bison
43691all-flex: maybe-all-build-byacc
3589b69e
PB
43692all-flex: maybe-all-intl
43693all-flex: maybe-all-m4
7c27e184 43694all-flex: maybe-all-build-texinfo
3589b69e
PB
43695all-gzip: maybe-all-intl
43696all-gzip: maybe-all-zlib
7c27e184 43697all-gzip: maybe-all-build-texinfo
3589b69e 43698all-hello: maybe-all-intl
7c27e184 43699all-hello: maybe-all-build-texinfo
3589b69e 43700all-m4: maybe-all-intl
7c27e184 43701all-m4: maybe-all-build-texinfo
3589b69e 43702all-make: maybe-all-intl
7c27e184
PB
43703all-make: maybe-all-build-texinfo
43704all-patch: maybe-all-build-texinfo
43705all-make: maybe-all-build-texinfo
4977bab6 43706all-prms: maybe-all-libiberty
7c27e184
PB
43707all-recode: maybe-all-build-texinfo
43708all-sed: maybe-all-build-texinfo
4977bab6 43709all-send-pr: maybe-all-prms
7c27e184
PB
43710all-tar: maybe-all-build-texinfo
43711all-uudecode: maybe-all-build-texinfo
3589b69e 43712configure-target-boehm-gc: maybe-configure-target-qthreads
4977bab6 43713configure-target-fastjar: maybe-configure-target-zlib
3589b69e
PB
43714all-target-fastjar: maybe-all-target-zlib
43715all-target-fastjar: maybe-all-target-libiberty
43716configure-target-libjava: maybe-configure-target-zlib
43717configure-target-libjava: maybe-configure-target-boehm-gc
43718configure-target-libjava: maybe-configure-target-qthreads
43719configure-target-libjava: maybe-configure-target-libffi
43720all-target-libjava: maybe-all-fastjar
43721all-target-libjava: maybe-all-target-zlib
43722all-target-libjava: maybe-all-target-boehm-gc
43723all-target-libjava: maybe-all-target-qthreads
43724all-target-libjava: maybe-all-target-libffi
7cd0cf9c 43725configure-target-libobjc: maybe-configure-target-boehm-gc
4977bab6 43726all-target-libobjc: maybe-all-target-libiberty
7cd0cf9c 43727all-target-libobjc: maybe-all-target-boehm-gc
4977bab6 43728all-target-libstdc++-v3: maybe-all-target-libiberty
5bdacbc7
MS
43729install-target-libssp: maybe-install-gcc
43730install-target-libgomp: maybe-install-gcc
4977bab6 43731all-target-libgloss: maybe-configure-target-newlib
3589b69e
PB
43732all-target-winsup: maybe-all-target-libiberty
43733all-target-winsup: maybe-all-target-libtermcap
43734
43735
ef9db8d5 43736CONFIGURE_GDB_TK = @CONFIGURE_GDB_TK@
3589b69e 43737GDB_TK = @GDB_TK@
ef9db8d5
DJ
43738INSTALL_GDB_TK = @INSTALL_GDB_TK@
43739configure-gdb: $(CONFIGURE_GDB_TK)
3589b69e 43740all-gdb: $(gdbnlmrequirements) $(GDB_TK)
ef9db8d5 43741install-gdb: $(INSTALL_GDB_TK)
6599da04 43742
4977bab6 43743# Serialization dependencies. Host configures don't work well in parallel to
05750653 43744# each other, due to contention over config.cache. Target configures and
4977bab6
ZW
43745# build configures are similar.
43746@serialization_dependencies@
6599da04 43747
4977bab6
ZW
43748# --------------------------------
43749# Regenerating top level configury
43750# --------------------------------
6599da04 43751
6f950405 43752# Rebuilding Makefile.in, using autogen.
e245b0ea 43753AUTOGEN = autogen
ee03dc5e 43754$(srcdir)/Makefile.in: @MAINT@ $(srcdir)/Makefile.tpl $(srcdir)/Makefile.def
e245b0ea 43755 cd $(srcdir) && $(AUTOGEN) Makefile.def
6f950405 43756
671aa708 43757# Rebuilding Makefile.
e245b0ea
AO
43758Makefile: $(srcdir)/Makefile.in config.status
43759 CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
43760
191dd2c9 43761config.status: configure
e75f9147 43762 CONFIG_SHELL="$(SHELL)" $(SHELL) ./config.status --recheck
6599da04 43763
671aa708 43764# Rebuilding configure.
e245b0ea 43765AUTOCONF = autoconf
ee03dc5e 43766$(srcdir)/configure: @MAINT@ $(srcdir)/configure.in $(srcdir)/config/acx.m4
e245b0ea 43767 cd $(srcdir) && $(AUTOCONF)
6599da04 43768
93c834b7
NN
43769# ------------------------------
43770# Special directives to GNU Make
43771# ------------------------------
43772
93c834b7
NN
43773# Don't pass command-line variables to submakes.
43774.NOEXPORT:
43775MAKEOVERRIDES=
43776
6599da04 43777# end of Makefile.in
This page took 7.303849 seconds and 5 git commands to generate.