2004-06-01 Paolo Bonzini <bonzini@gnu.org>
[gcc/gcc.git] / Makefile.in
1
2 # Makefile.in is generated from Makefile.tpl by 'autogen Makefile.def'.
3 #
4 # Makefile for directory with subdirs to build.
5 #   Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
6 #   1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation
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.
12
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.
17
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
20 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21 #
22
23 # -------------------------------
24 # Standard Autoconf-set variables
25 # -------------------------------
26 VPATH=@srcdir@
27
28 build_alias=@build_alias@
29 build=@build@
30 host_alias=@host_alias@
31 host=@host@
32 target_alias=@target_alias@
33 target=@target@
34
35 program_transform_name = @program_transform_name@
36
37 prefix = @prefix@
38 exec_prefix = @exec_prefix@
39
40 srcdir = @srcdir@
41
42 bindir = @bindir@
43 sbindir = @sbindir@
44 libexecdir = @libexecdir@
45 datadir = @datadir@
46 sysconfdir = @sysconfdir@
47 sharedstatedir = @sharedstatedir@
48 localstatedir = @localstatedir@
49 libdir = @libdir@
50 includedir = @includedir@
51 oldincludedir = @oldincludedir@
52 infodir = @infodir@
53 mandir = @mandir@
54 man1dir = $(mandir)/man1
55 man2dir = $(mandir)/man2
56 man3dir = $(mandir)/man3
57 man4dir = $(mandir)/man4
58 man5dir = $(mandir)/man5
59 man6dir = $(mandir)/man6
60 man7dir = $(mandir)/man7
61 man8dir = $(mandir)/man8
62 man9dir = $(mandir)/man9
63
64 INSTALL = @INSTALL@
65 INSTALL_PROGRAM = @INSTALL_PROGRAM@
66 INSTALL_SCRIPT = @INSTALL_SCRIPT@
67 INSTALL_DATA = @INSTALL_DATA@
68
69 # -------------------------------------------------
70 # Miscellaneous non-standard autoconf-set variables
71 # -------------------------------------------------
72
73 # The file containing GCC's version number.
74 gcc_version_trigger = @gcc_version_trigger@
75 gcc_version = @gcc_version@
76
77 # The gcc driver likes to know the arguments it was configured with.
78 TOPLEVEL_CONFIGURE_ARGUMENTS=@TOPLEVEL_CONFIGURE_ARGUMENTS@
79
80 gxx_include_dir = @gxx_include_dir@
81 libstdcxx_incdir = @libstdcxx_incdir@
82
83 tooldir = @tooldir@
84 build_tooldir = @build_tooldir@
85
86 # Directory in which the compiler finds executables, libraries, etc.
87 libsubdir = $(libdir)/gcc/$(target_alias)/$(gcc_version)
88 GDB_NLM_DEPS = 
89
90 # This is the name of the environment variable used for the path to
91 # the libraries.
92 RPATH_ENVVAR = @RPATH_ENVVAR@
93
94 # This is set by configure to REALLY_SET_LIB_PATH if --enable-shared
95 # was used.
96 SET_LIB_PATH = @SET_LIB_PATH@
97
98 # configure.in sets SET_LIB_PATH to this if --enable-shared was used.
99 # Some platforms don't like blank entries, so we remove duplicate,
100 # leading and trailing colons.
101 REALLY_SET_LIB_PATH = \
102   $(RPATH_ENVVAR)=`echo "$(HOST_LIB_PATH):$(TARGET_LIB_PATH):$$$(RPATH_ENVVAR)" | sed 's,::*,:,g;s,^:*,,;s,:*$$,,'`; export $(RPATH_ENVVAR);
103
104 # This is the list of directories to be built for the build system.
105 BUILD_CONFIGDIRS = libiberty libbanshee
106 # Build programs are put under this directory.
107 BUILD_SUBDIR = @build_subdir@
108 # This is set by the configure script to the arguments to use when configuring
109 # directories built for the build system.
110 BUILD_CONFIGARGS = @build_configargs@
111 # This is the list of variables to export in the environment when
112 # configuring subdirectories for the build system.  It must also be
113 # exported whenever recursing into a build directory in case that
114 # directory's Makefile re-runs configure.
115 BUILD_EXPORTS = \
116         AR="$(AR_FOR_BUILD)"; export AR; \
117         AS="$(AS_FOR_BUILD)"; export AS; \
118         CC="$(CC_FOR_BUILD)"; export CC; \
119         CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \
120         CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
121         CXX="$(CXX_FOR_BUILD)"; export CXX; \
122         CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \
123         GCJ="$(GCJ_FOR_BUILD)"; export GCJ; \
124         GFORTRAN="$(GFORTRAN_FOR_BUILD)"; export GFORTRAN; \
125         DLLTOOL="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL; \
126         LD="$(LD_FOR_BUILD)"; export LD; \
127         LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \
128         NM="$(NM_FOR_BUILD)"; export NM; \
129         RANLIB="$(RANLIB_FOR_BUILD)"; export RANLIB; \
130         WINDRES="$(WINDRES_FOR_BUILD)"; export WINDRES;
131
132 # This is the list of directories to built for the host system.
133 SUBDIRS = @configdirs@
134 # This is set by the configure script to the arguments to use when configuring
135 # directories built for the host system.
136 HOST_CONFIGARGS = @host_configargs@
137 # This is the list of variables to export in the environment when
138 # configuring subdirectories for the host system.  It must also be
139 # exported whenever recursing into a host directory in case that
140 # directory's Makefile re-runs configure.
141 HOST_EXPORTS = \
142         CC="$(CC)"; export CC; \
143         CFLAGS="$(CFLAGS)"; export CFLAGS; \
144         CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
145         CXX="$(CXX)"; export CXX; \
146         CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
147         AR="$(AR)"; export AR; \
148         AS="$(AS)"; export AS; \
149         CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
150         DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
151         LD="$(LD)"; export LD; \
152         LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
153         NM="$(NM)"; export NM; \
154         RANLIB="$(RANLIB)"; export RANLIB; \
155         WINDRES="$(WINDRES)"; export WINDRES; \
156         OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
157         OBJDUMP="$(OBJDUMP)"; export OBJDUMP;
158
159 # Similar, for the gcc directory.
160 GCC_HOST_EXPORTS = \
161         $(HOST_EXPORTS) \
162         TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
163         GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \
164         GMPINC="$(HOST_GMPINC)"; export GMPINC;
165
166 # Similar, for later GCC stages.
167 STAGE_HOST_EXPORTS = \
168         $(GCC_HOST_EXPORTS) \
169         CC="$(STAGE_CC_WRAPPER) $$r/prev-gcc/xgcc$(exeext) -B$$r/prev-gcc/ -B$(build_tooldir)/bin/"; export CC; \
170         CC_FOR_BUILD="$(STAGE_CC_WRAPPER) $$r/prev-gcc/xgcc$(exeext) -B$$r/prev-gcc/ -B$(build_tooldir)/bin/"; export CC_FOR_BUILD;
171
172 # This is set by the configure script to the list of directories which
173 # should be built using the target tools.
174 TARGET_CONFIGDIRS = @target_configdirs@
175 # Target libraries are put under this directory:
176 TARGET_SUBDIR = @target_subdir@
177 # This is set by the configure script to the arguments to use when configuring
178 # directories built for the target.
179 TARGET_CONFIGARGS = @target_configargs@
180 # This is the list of variables to export in the environment when
181 # configuring subdirectories for the host system.  It must also be
182 # exported whenever recursing into a host directory in case that
183 # directory's Makefile re-runs configure.
184 BASE_TARGET_EXPORTS = \
185         AR="$(AR_FOR_TARGET)"; export AR; \
186         AS="$(AS_FOR_TARGET)"; export AS; \
187         CC="$(CC_FOR_TARGET)"; export CC; \
188         CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
189         CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
190         CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
191         CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
192         GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
193         GFORTRAN="$(GFORTRAN_FOR_TARGET)"; export GFORTRAN; \
194         DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
195         LD="$(LD_FOR_TARGET)"; export LD; \
196         LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
197         NM="$(NM_FOR_TARGET)"; export NM; \
198         RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
199         WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES;
200
201 RAW_CXX_TARGET_EXPORTS = \
202         $(BASE_TARGET_EXPORTS) \
203         CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \
204         CXX="$(RAW_CXX_FOR_TARGET)"; export CXX;
205
206 NORMAL_TARGET_EXPORTS = \
207         $(BASE_TARGET_EXPORTS) \
208         CXX="$(CXX_FOR_TARGET)"; export CXX;
209
210 # Where to find GMP
211 HOST_GMPLIBS = @gmplibs@
212 HOST_GMPINC = @gmpinc@
213
214 # ----------------------------------------------
215 # Programs producing files for the BUILD machine
216 # ----------------------------------------------
217
218 SHELL = @config_shell@
219
220 # pwd command to use.  Allow user to override default by setting PWDCMD in
221 # the environment to account for automounters.  The make variable must not
222 # be called PWDCMD, otherwise the value set here is passed to make
223 # subprocesses and overrides the setting from the user's environment.
224 # Don't use PWD since it is a common shell environment variable and we
225 # don't want to corrupt it.
226 PWD_COMMAND = $${PWDCMD-pwd}
227
228 # compilers to use to create programs which must be run in the build
229 # environment.
230 CC_FOR_BUILD = @CC_FOR_BUILD@
231 CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
232
233 CXX_FOR_BUILD = $(CXX)
234
235 # Special variables passed down in EXTRA_GCC_FLAGS.  They are defined
236 # here so that they can be overridden by Makefile fragments.
237 BUILD_PREFIX = @BUILD_PREFIX@
238 BUILD_PREFIX_1 = @BUILD_PREFIX_1@
239
240 BISON=@BISON@
241 USUAL_BISON = `if [ -f $$r/bison/bison ] ; then \
242             echo $$r/bison/bison -L $$s/bison/ ; \
243          else \
244             echo bison ; \
245          fi`
246
247 DEFAULT_YACC = @DEFAULT_YACC@
248 YACC=@YACC@
249 USUAL_YACC = `if [ -f $$r/bison/bison ] ; then \
250             echo $$r/bison/bison -y -L $$s/bison/ ; \
251         elif [ -f $$r/byacc/byacc ] ; then \
252             echo $$r/byacc/byacc ; \
253         else \
254             echo ${DEFAULT_YACC} ; \
255         fi`
256
257 DEFAULT_LEX = @DEFAULT_LEX@
258 LEX=@LEX@
259 USUAL_LEX = `if [ -f $$r/flex/flex ] ; \
260         then echo $$r/flex/flex ; \
261         else echo ${DEFAULT_LEX} ; fi`
262
263 DEFAULT_M4 = @DEFAULT_M4@
264 M4 = `if [ -f $$r/m4/m4 ] ; \
265         then echo $$r/m4/m4 ; \
266         else echo ${DEFAULT_M4} ; fi`
267
268 # For an installed makeinfo, we require it to be from texinfo 4.2 or
269 # higher, else we use the "missing" dummy.
270 MAKEINFO=@MAKEINFO@
271 USUAL_MAKEINFO = `if [ -f $$r/texinfo/makeinfo/makeinfo ] ; \
272         then echo $$r/texinfo/makeinfo/makeinfo ; \
273         else if (makeinfo --version \
274           | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[2-9]|[5-9])') >/dev/null 2>&1; \
275         then echo makeinfo; else echo $$s/missing makeinfo; fi; fi`
276
277 # This just becomes part of the MAKEINFO definition passed down to
278 # sub-makes.  It lets flags be given on the command line while still
279 # using the makeinfo from the object tree.
280 # (Default to avoid splitting info files by setting the threshold high.)
281 MAKEINFOFLAGS = --split-size=5000000
282
283 EXPECT = `if [ -f $$r/expect/expect ] ; \
284         then echo $$r/expect/expect ; \
285         else echo expect ; fi`
286
287 RUNTEST = `if [ -f $$s/dejagnu/runtest ] ; \
288         then echo $$s/dejagnu/runtest ; \
289         else echo runtest ; fi`
290
291 # ---------------------------------------------
292 # Programs producing files for the HOST machine
293 # ---------------------------------------------
294
295 # This is the list of directories that may be needed in RPATH_ENVVAR
296 # so that programs built for the host machine work.
297 HOST_LIB_PATH = $$r/bfd:$$r/opcodes
298
299 AS = @AS@
300
301 AR = @AR@
302 AR_FLAGS = rc
303
304 CC = @CC@
305 CFLAGS = @CFLAGS@
306 LIBCFLAGS = $(CFLAGS)
307
308 CXX = @CXX@
309 CXXFLAGS = @CXXFLAGS@
310 LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
311
312 DLLTOOL = @DLLTOOL@
313
314 NM = @NM@
315
316 LD = @LD@
317 LDFLAGS = 
318
319 RANLIB = @RANLIB@
320
321 WINDRES = @WINDRES@
322
323 PICFLAG = 
324
325 # -----------------------------------------------
326 # Programs producing files for the TARGET machine
327 # -----------------------------------------------
328
329 # This is the list of directories that may be needed in RPATH_ENVVAR
330 # so that prorgams built for the target machine work.
331 TARGET_LIB_PATH = $$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs:$$r/$(TARGET_SUBDIR)/libmudflap/.libs
332
333 FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@
334
335 AR_FOR_TARGET=@AR_FOR_TARGET@
336 CONFIGURED_AR_FOR_TARGET=@CONFIGURED_AR_FOR_TARGET@
337 USUAL_AR_FOR_TARGET = ` \
338   if [ -f $$r/binutils/ar ] ; then \
339     echo $$r/binutils/ar ; \
340   else \
341     if [ '$(host)' = '$(target)' ] ; then \
342       echo $(AR); \
343     else \
344       echo $(CONFIGURED_AR_FOR_TARGET) ; \
345     fi; \
346   fi`
347
348 AS_FOR_TARGET=@AS_FOR_TARGET@
349 CONFIGURED_AS_FOR_TARGET=@CONFIGURED_AS_FOR_TARGET@
350 USUAL_AS_FOR_TARGET = ` \
351   if [ -f $$r/gas/as-new ] ; then \
352     echo $$r/gas/as-new ; \
353   elif [ -f $$r/gcc/xgcc ]; then \
354     $(CC_FOR_TARGET) -print-prog-name=as ; \
355   else \
356     if [ '$(host)' = '$(target)' ] ; then \
357       echo $(AS); \
358     else \
359       echo $(CONFIGURED_AS_FOR_TARGET) ; \
360     fi; \
361   fi`
362
363 CC_FOR_TARGET = @CC_FOR_TARGET@
364 # During gcc bootstrap, if we use some random cc for stage1 then
365 # CFLAGS will be just -g.  We want to ensure that TARGET libraries
366 # (which we know are built with gcc) are built with optimizations so
367 # prepend -O2 when setting CFLAGS_FOR_TARGET.
368 CFLAGS_FOR_TARGET = -O2 $(CFLAGS)
369 # If GCC_FOR_TARGET is not overriden on the command line, then this
370 # variable is passed down to the gcc Makefile, where it is used to
371 # build libgcc2.a.  We define it here so that it can itself be
372 # overridden on the command line.
373 GCC_FOR_TARGET=@GCC_FOR_TARGET@
374 USUAL_GCC_FOR_TARGET = $(STAGE_CC_WRAPPER) $$r/gcc/xgcc -B$$r/gcc/ $(FLAGS_FOR_TARGET)
375 LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
376
377 CXX_FOR_TARGET = @CXX_FOR_TARGET@
378 RAW_CXX_FOR_TARGET = @RAW_CXX_FOR_TARGET@
379 CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@
380 RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@
381 CXXFLAGS_FOR_TARGET = $(CXXFLAGS)
382 LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
383
384 DLLTOOL_FOR_TARGET=@DLLTOOL_FOR_TARGET@
385 CONFIGURED_DLLTOOL_FOR_TARGET=@CONFIGURED_DLLTOOL_FOR_TARGET@
386 USUAL_DLLTOOL_FOR_TARGET = ` \
387   if [ -f $$r/binutils/dlltool ] ; then \
388     echo $$r/binutils/dlltool ; \
389   else \
390     if [ '$(host)' = '$(target)' ] ; then \
391       echo $(DLLTOOL); \
392     else \
393       echo $(CONFIGURED_DLLTOOL_FOR_TARGET) ; \
394     fi; \
395   fi`
396
397 GCJ_FOR_TARGET = @GCJ_FOR_TARGET@
398 GFORTRAN_FOR_TARGET = @GFORTRAN_FOR_TARGET@
399
400 LD_FOR_TARGET=@LD_FOR_TARGET@
401 CONFIGURED_LD_FOR_TARGET=@CONFIGURED_LD_FOR_TARGET@
402 USUAL_LD_FOR_TARGET = ` \
403   if [ -f $$r/ld/ld-new ] ; then \
404     echo $$r/ld/ld-new ; \
405   elif [ -f $$r/gcc/xgcc ]; then \
406     $(CC_FOR_TARGET) -print-prog-name=ld ; \
407   else \
408     if [ '$(host)' = '$(target)' ] ; then \
409       echo $(LD); \
410     else \
411       echo $(CONFIGURED_LD_FOR_TARGET) ; \
412     fi; \
413   fi`
414
415 LDFLAGS_FOR_TARGET = 
416
417 NM_FOR_TARGET=@NM_FOR_TARGET@
418 CONFIGURED_NM_FOR_TARGET=@CONFIGURED_NM_FOR_TARGET@
419 USUAL_NM_FOR_TARGET = ` \
420   if [ -f $$r/binutils/nm-new ] ; then \
421     echo $$r/binutils/nm-new ; \
422   elif [ -f $$r/gcc/xgcc ]; then \
423     $(CC_FOR_TARGET) -print-prog-name=nm ; \
424   else \
425     if [ '$(host)' = '$(target)' ] ; then \
426       echo $(NM); \
427     else \
428       echo $(CONFIGURED_NM_FOR_TARGET) ; \
429     fi; \
430   fi`
431
432 RANLIB_FOR_TARGET=@RANLIB_FOR_TARGET@
433 CONFIGURED_RANLIB_FOR_TARGET=@CONFIGURED_RANLIB_FOR_TARGET@
434 USUAL_RANLIB_FOR_TARGET = ` \
435   if [ -f $$r/binutils/ranlib ] ; then \
436     echo $$r/binutils/ranlib ; \
437   else \
438     if [ '$(host)' = '$(target)' ] ; then \
439       if [ x'$(RANLIB)' != x ]; then \
440          echo $(RANLIB); \
441       else \
442          echo ranlib; \
443       fi; \
444     else \
445       echo $(CONFIGURED_RANLIB_FOR_TARGET) ; \
446     fi; \
447   fi`
448
449 WINDRES_FOR_TARGET=@WINDRES_FOR_TARGET@
450 CONFIGURED_WINDRES_FOR_TARGET=@CONFIGURED_WINDRES_FOR_TARGET@
451 USUAL_WINDRES_FOR_TARGET = ` \
452   if [ -f $$r/binutils/windres ] ; then \
453     echo $$r/binutils/windres ; \
454   else \
455     if [ '$(host)' = '$(target)' ] ; then \
456       echo $(WINDRES); \
457     else \
458       echo $(CONFIGURED_WINDRES_FOR_TARGET) ; \
459     fi; \
460   fi`
461
462 PICFLAG_FOR_TARGET = 
463
464 # ------------------------------------
465 # Miscellaneous targets and flag lists
466 # ------------------------------------
467
468 # The first rule in the file had better be this one.  Don't put any above it.
469 # This lives here to allow makefile fragments to contain dependencies.
470 @default_target@:
471
472 #### host and target specific makefile fragments come in here.
473 @target_makefile_frag@
474 @alphaieee_frag@
475 @ospace_frag@
476 @host_makefile_frag@
477 ###
478
479 # Flags to pass down to all sub-makes.
480 BASE_FLAGS_TO_PASS = \
481         "DESTDIR=$(DESTDIR)" \
482         "RPATH_ENVVAR=$(RPATH_ENVVAR)" \
483         "TARGET_SUBDIR=$(TARGET_SUBDIR)" \
484         "bindir=$(bindir)" \
485         "datadir=$(datadir)" \
486         "exec_prefix=$(exec_prefix)" \
487         "includedir=$(includedir)" \
488         "infodir=$(infodir)" \
489         "libdir=$(libdir)" \
490         "libexecdir=$(libexecdir)" \
491         "lispdir=$(lispdir)" \
492         "libstdcxx_incdir=$(libstdcxx_incdir)" \
493         "libsubdir=$(libsubdir)" \
494         "localstatedir=$(localstatedir)" \
495         "mandir=$(mandir)" \
496         "oldincludedir=$(oldincludedir)" \
497         "prefix=$(prefix)" \
498         "sbindir=$(sbindir)" \
499         "sharedstatedir=$(sharedstatedir)" \
500         "sysconfdir=$(sysconfdir)" \
501         "tooldir=$(tooldir)" \
502         "build_tooldir=$(build_tooldir)" \
503         "gxx_include_dir=$(gxx_include_dir)" \
504         "gcc_version=$(gcc_version)" \
505         "gcc_version_trigger=$(gcc_version_trigger)" \
506         "target_alias=$(target_alias)" \
507         "BISON=$(BISON)" \
508         "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
509         "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
510         "EXPECT=$(EXPECT)" \
511         "INSTALL=$(INSTALL)" \
512         "INSTALL_DATA=$(INSTALL_DATA)" \
513         "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
514         "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
515         "LEX=$(LEX)" \
516         "M4=$(M4)" \
517         "MAKE=$(MAKE)" \
518         "RUNTEST=$(RUNTEST)" \
519         "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
520         "SHELL=$(SHELL)" \
521         "YACC=$(YACC)" \
522         "AR_FLAGS=$(AR_FLAGS)" \
523         "CFLAGS=$(CFLAGS)" \
524         "CXXFLAGS=$(CXXFLAGS)" \
525         "LDFLAGS=$(LDFLAGS)" \
526         "LIBCFLAGS=$(LIBCFLAGS)" \
527         "LIBCXXFLAGS=$(LIBCXXFLAGS)" \
528         "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
529         "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
530         "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
531         "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
532         "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
533         "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
534         "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
535         "GCJ_FOR_TARGET=$(GCJ_FOR_TARGET)" \
536         "GFORTRAN_FOR_TARGET=$(GFORTRAN_FOR_TARGET)" \
537         "LD_FOR_TARGET=$(LD_FOR_TARGET)" \
538         "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
539         "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \
540         "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
541         "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
542         "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \
543         "CONFIG_SHELL=$(SHELL)" \
544         "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" 
545
546 # For any flags above that may contain shell code that varies from one
547 # target library to another.  When doing recursive invocations of the
548 # top-level Makefile, we don't want the outer make to evaluate them,
549 # so we pass these variables down unchanged.  They must not contain
550 # single nor double quotes.
551 RECURSE_FLAGS = \
552         CXX_FOR_TARGET='$(CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)' \
553         RAW_CXX_FOR_TARGET='$(RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)' \
554
555 # Flags to pass down to most sub-makes, in which we're building with
556 # the host environment.
557 EXTRA_HOST_FLAGS = \
558         'AR=$(AR)' \
559         'AS=$(AS)' \
560         'CC=$(CC)' \
561         'CXX=$(CXX)' \
562         'DLLTOOL=$(DLLTOOL)' \
563         'LD=$(LD)' \
564         'NM=$(NM)' \
565         'RANLIB=$(RANLIB)' \
566         'WINDRES=$(WINDRES)'
567
568 FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
569
570 # Flags that are concerned with the location of the X11 include files
571 # and library files
572 #
573 # NOTE: until the top-level is getting the values via autoconf, it only
574 # causes problems to have this top-level Makefile overriding the autoconf-set
575 # values in child directories.  Only variables that don't conflict with
576 # autoconf'ed ones should be passed by X11_FLAGS_TO_PASS for now.
577 #
578 X11_FLAGS_TO_PASS = \
579         'X11_EXTRA_CFLAGS=$(X11_EXTRA_CFLAGS)' \
580         'X11_EXTRA_LIBS=$(X11_EXTRA_LIBS)'
581
582 # Flags to pass down to makes which are built with the target environment.
583 # The double $ decreases the length of the command line; the variables
584 # are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them.
585 EXTRA_TARGET_FLAGS = \
586         'AR=$$(AR_FOR_TARGET)' \
587         'AS=$$(AS_FOR_TARGET)' \
588         'CC=$$(CC_FOR_TARGET)' \
589         'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
590         'CXX=$$(CXX_FOR_TARGET)' \
591         'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
592         'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
593         'LD=$$(LD_FOR_TARGET)' \
594         'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
595         'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
596         'NM=$$(NM_FOR_TARGET)' \
597         'RANLIB=$$(RANLIB_FOR_TARGET)' \
598         'WINDRES=$$(WINDRES_FOR_TARGET)'
599
600 TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
601
602 # Flags to pass down to gcc.  gcc builds a library, libgcc.a, so it
603 # unfortunately needs the native compiler and the target ar and
604 # ranlib.
605 # If any variables are added here, they must be added to do-*, below.
606 # The BUILD_* variables are a special case, which are used for the gcc
607 # cross-building scheme.
608 EXTRA_GCC_FLAGS = \
609         'BUILD_PREFIX=$(BUILD_PREFIX)' \
610         'BUILD_PREFIX_1=$(BUILD_PREFIX_1)' \
611         "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
612         "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
613         "`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
614         "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
615         "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
616         "`echo 'LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
617         "`echo 'LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
618         "`echo 'LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
619         "`echo 'STAGE1_CFLAGS=$(STAGE1_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
620         "`echo 'BOOT_CFLAGS=$(BOOT_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
621         "`echo 'BOOT_ADAFLAGS=$(BOOT_ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"
622
623 GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS)
624
625 .PHONY: configure-host
626 configure-host: maybe-configure-gcc  \
627     maybe-configure-ash \
628     maybe-configure-autoconf \
629     maybe-configure-automake \
630     maybe-configure-bash \
631     maybe-configure-bfd \
632     maybe-configure-opcodes \
633     maybe-configure-binutils \
634     maybe-configure-bison \
635     maybe-configure-byacc \
636     maybe-configure-bzip2 \
637     maybe-configure-dejagnu \
638     maybe-configure-diff \
639     maybe-configure-dosutils \
640     maybe-configure-etc \
641     maybe-configure-fastjar \
642     maybe-configure-fileutils \
643     maybe-configure-findutils \
644     maybe-configure-find \
645     maybe-configure-flex \
646     maybe-configure-gas \
647     maybe-configure-gawk \
648     maybe-configure-gettext \
649     maybe-configure-gnuserv \
650     maybe-configure-gprof \
651     maybe-configure-gzip \
652     maybe-configure-hello \
653     maybe-configure-indent \
654     maybe-configure-intl \
655     maybe-configure-tcl \
656     maybe-configure-itcl \
657     maybe-configure-ld \
658     maybe-configure-libcpp \
659     maybe-configure-libgui \
660     maybe-configure-libbanshee \
661     maybe-configure-libiberty \
662     maybe-configure-libtool \
663     maybe-configure-m4 \
664     maybe-configure-make \
665     maybe-configure-mmalloc \
666     maybe-configure-patch \
667     maybe-configure-perl \
668     maybe-configure-prms \
669     maybe-configure-rcs \
670     maybe-configure-readline \
671     maybe-configure-release \
672     maybe-configure-recode \
673     maybe-configure-sed \
674     maybe-configure-send-pr \
675     maybe-configure-shellutils \
676     maybe-configure-sid \
677     maybe-configure-sim \
678     maybe-configure-tar \
679     maybe-configure-texinfo \
680     maybe-configure-textutils \
681     maybe-configure-time \
682     maybe-configure-uudecode \
683     maybe-configure-wdiff \
684     maybe-configure-zip \
685     maybe-configure-zlib \
686     maybe-configure-gdb \
687     maybe-configure-expect \
688     maybe-configure-guile \
689     maybe-configure-tk \
690     maybe-configure-tix \
691     maybe-configure-libtermcap \
692     maybe-configure-utils
693 .PHONY: configure-target
694 configure-target:  \
695     maybe-configure-target-libstdc++-v3 \
696     maybe-configure-target-libmudflap \
697     maybe-configure-target-newlib \
698     maybe-configure-target-libgfortran \
699     maybe-configure-target-libobjc \
700     maybe-configure-target-libtermcap \
701     maybe-configure-target-winsup \
702     maybe-configure-target-libgloss \
703     maybe-configure-target-libiberty \
704     maybe-configure-target-gperf \
705     maybe-configure-target-examples \
706     maybe-configure-target-libffi \
707     maybe-configure-target-libjava \
708     maybe-configure-target-zlib \
709     maybe-configure-target-boehm-gc \
710     maybe-configure-target-qthreads \
711     maybe-configure-target-rda \
712     maybe-configure-target-libada
713
714 # The target built for a native non-bootstrap build.
715 .PHONY: all
716 all: @all_build_modules@ all-host all-target
717
718 .PHONY: all-host
719 all-host: maybe-all-gcc  \
720     maybe-all-ash \
721     maybe-all-autoconf \
722     maybe-all-automake \
723     maybe-all-bash \
724     maybe-all-bfd \
725     maybe-all-opcodes \
726     maybe-all-binutils \
727     maybe-all-bison \
728     maybe-all-byacc \
729     maybe-all-bzip2 \
730     maybe-all-dejagnu \
731     maybe-all-diff \
732     maybe-all-dosutils \
733     maybe-all-etc \
734     maybe-all-fastjar \
735     maybe-all-fileutils \
736     maybe-all-findutils \
737     maybe-all-find \
738     maybe-all-flex \
739     maybe-all-gas \
740     maybe-all-gawk \
741     maybe-all-gettext \
742     maybe-all-gnuserv \
743     maybe-all-gprof \
744     maybe-all-gzip \
745     maybe-all-hello \
746     maybe-all-indent \
747     maybe-all-intl \
748     maybe-all-tcl \
749     maybe-all-itcl \
750     maybe-all-ld \
751     maybe-all-libcpp \
752     maybe-all-libgui \
753     maybe-all-libbanshee \
754     maybe-all-libiberty \
755     maybe-all-libtool \
756     maybe-all-m4 \
757     maybe-all-make \
758     maybe-all-mmalloc \
759     maybe-all-patch \
760     maybe-all-perl \
761     maybe-all-prms \
762     maybe-all-rcs \
763     maybe-all-readline \
764     maybe-all-release \
765     maybe-all-recode \
766     maybe-all-sed \
767     maybe-all-send-pr \
768     maybe-all-shellutils \
769     maybe-all-sid \
770     maybe-all-sim \
771     maybe-all-tar \
772     maybe-all-texinfo \
773     maybe-all-textutils \
774     maybe-all-time \
775     maybe-all-uudecode \
776     maybe-all-wdiff \
777     maybe-all-zip \
778     maybe-all-zlib \
779     maybe-all-gdb \
780     maybe-all-expect \
781     maybe-all-guile \
782     maybe-all-tk \
783     maybe-all-tix \
784     maybe-all-libtermcap \
785     maybe-all-utils
786 .PHONY: all-target
787 all-target:  \
788     maybe-all-target-libstdc++-v3 \
789     maybe-all-target-libmudflap \
790     maybe-all-target-newlib \
791     maybe-all-target-libgfortran \
792     maybe-all-target-libobjc \
793     maybe-all-target-libtermcap \
794     maybe-all-target-winsup \
795     maybe-all-target-libgloss \
796     maybe-all-target-libiberty \
797     maybe-all-target-gperf \
798     maybe-all-target-examples \
799     maybe-all-target-libffi \
800     maybe-all-target-libjava \
801     maybe-all-target-zlib \
802     maybe-all-target-boehm-gc \
803     maybe-all-target-qthreads \
804     maybe-all-target-rda \
805     maybe-all-target-libada
806
807 # Do a target for all the subdirectories.  A ``make do-X'' will do a
808 # ``make X'' in all subdirectories (because, in general, there is a
809 # dependency (below) of X upon do-X, a ``make X'' will also do this,
810 # but it may do additional work as well).
811
812 .PHONY: do-info
813 do-info: info-host info-target
814
815 .PHONY: info-host
816 info-host: maybe-info-gcc  \
817     maybe-info-ash \
818     maybe-info-autoconf \
819     maybe-info-automake \
820     maybe-info-bash \
821     maybe-info-bfd \
822     maybe-info-opcodes \
823     maybe-info-binutils \
824     maybe-info-bison \
825     maybe-info-byacc \
826     maybe-info-bzip2 \
827     maybe-info-dejagnu \
828     maybe-info-diff \
829     maybe-info-dosutils \
830     maybe-info-etc \
831     maybe-info-fastjar \
832     maybe-info-fileutils \
833     maybe-info-findutils \
834     maybe-info-find \
835     maybe-info-flex \
836     maybe-info-gas \
837     maybe-info-gawk \
838     maybe-info-gettext \
839     maybe-info-gnuserv \
840     maybe-info-gprof \
841     maybe-info-gzip \
842     maybe-info-hello \
843     maybe-info-indent \
844     maybe-info-intl \
845     maybe-info-tcl \
846     maybe-info-itcl \
847     maybe-info-ld \
848     maybe-info-libcpp \
849     maybe-info-libgui \
850     maybe-info-libbanshee \
851     maybe-info-libiberty \
852     maybe-info-libtool \
853     maybe-info-m4 \
854     maybe-info-make \
855     maybe-info-mmalloc \
856     maybe-info-patch \
857     maybe-info-perl \
858     maybe-info-prms \
859     maybe-info-rcs \
860     maybe-info-readline \
861     maybe-info-release \
862     maybe-info-recode \
863     maybe-info-sed \
864     maybe-info-send-pr \
865     maybe-info-shellutils \
866     maybe-info-sid \
867     maybe-info-sim \
868     maybe-info-tar \
869     maybe-info-texinfo \
870     maybe-info-textutils \
871     maybe-info-time \
872     maybe-info-uudecode \
873     maybe-info-wdiff \
874     maybe-info-zip \
875     maybe-info-zlib \
876     maybe-info-gdb \
877     maybe-info-expect \
878     maybe-info-guile \
879     maybe-info-tk \
880     maybe-info-tix \
881     maybe-info-libtermcap \
882     maybe-info-utils
883
884 .PHONY: info-target
885 info-target:  \
886     maybe-info-target-libstdc++-v3 \
887     maybe-info-target-libmudflap \
888     maybe-info-target-newlib \
889     maybe-info-target-libgfortran \
890     maybe-info-target-libobjc \
891     maybe-info-target-libtermcap \
892     maybe-info-target-winsup \
893     maybe-info-target-libgloss \
894     maybe-info-target-libiberty \
895     maybe-info-target-gperf \
896     maybe-info-target-examples \
897     maybe-info-target-libffi \
898     maybe-info-target-libjava \
899     maybe-info-target-zlib \
900     maybe-info-target-boehm-gc \
901     maybe-info-target-qthreads \
902     maybe-info-target-rda \
903     maybe-info-target-libada
904
905 .PHONY: do-dvi
906 do-dvi: dvi-host dvi-target
907
908 .PHONY: dvi-host
909 dvi-host: maybe-dvi-gcc  \
910     maybe-dvi-ash \
911     maybe-dvi-autoconf \
912     maybe-dvi-automake \
913     maybe-dvi-bash \
914     maybe-dvi-bfd \
915     maybe-dvi-opcodes \
916     maybe-dvi-binutils \
917     maybe-dvi-bison \
918     maybe-dvi-byacc \
919     maybe-dvi-bzip2 \
920     maybe-dvi-dejagnu \
921     maybe-dvi-diff \
922     maybe-dvi-dosutils \
923     maybe-dvi-etc \
924     maybe-dvi-fastjar \
925     maybe-dvi-fileutils \
926     maybe-dvi-findutils \
927     maybe-dvi-find \
928     maybe-dvi-flex \
929     maybe-dvi-gas \
930     maybe-dvi-gawk \
931     maybe-dvi-gettext \
932     maybe-dvi-gnuserv \
933     maybe-dvi-gprof \
934     maybe-dvi-gzip \
935     maybe-dvi-hello \
936     maybe-dvi-indent \
937     maybe-dvi-intl \
938     maybe-dvi-tcl \
939     maybe-dvi-itcl \
940     maybe-dvi-ld \
941     maybe-dvi-libcpp \
942     maybe-dvi-libgui \
943     maybe-dvi-libbanshee \
944     maybe-dvi-libiberty \
945     maybe-dvi-libtool \
946     maybe-dvi-m4 \
947     maybe-dvi-make \
948     maybe-dvi-mmalloc \
949     maybe-dvi-patch \
950     maybe-dvi-perl \
951     maybe-dvi-prms \
952     maybe-dvi-rcs \
953     maybe-dvi-readline \
954     maybe-dvi-release \
955     maybe-dvi-recode \
956     maybe-dvi-sed \
957     maybe-dvi-send-pr \
958     maybe-dvi-shellutils \
959     maybe-dvi-sid \
960     maybe-dvi-sim \
961     maybe-dvi-tar \
962     maybe-dvi-texinfo \
963     maybe-dvi-textutils \
964     maybe-dvi-time \
965     maybe-dvi-uudecode \
966     maybe-dvi-wdiff \
967     maybe-dvi-zip \
968     maybe-dvi-zlib \
969     maybe-dvi-gdb \
970     maybe-dvi-expect \
971     maybe-dvi-guile \
972     maybe-dvi-tk \
973     maybe-dvi-tix \
974     maybe-dvi-libtermcap \
975     maybe-dvi-utils
976
977 .PHONY: dvi-target
978 dvi-target:  \
979     maybe-dvi-target-libstdc++-v3 \
980     maybe-dvi-target-libmudflap \
981     maybe-dvi-target-newlib \
982     maybe-dvi-target-libgfortran \
983     maybe-dvi-target-libobjc \
984     maybe-dvi-target-libtermcap \
985     maybe-dvi-target-winsup \
986     maybe-dvi-target-libgloss \
987     maybe-dvi-target-libiberty \
988     maybe-dvi-target-gperf \
989     maybe-dvi-target-examples \
990     maybe-dvi-target-libffi \
991     maybe-dvi-target-libjava \
992     maybe-dvi-target-zlib \
993     maybe-dvi-target-boehm-gc \
994     maybe-dvi-target-qthreads \
995     maybe-dvi-target-rda \
996     maybe-dvi-target-libada
997
998 .PHONY: do-TAGS
999 do-TAGS: TAGS-host TAGS-target
1000
1001 .PHONY: TAGS-host
1002 TAGS-host: maybe-TAGS-gcc  \
1003     maybe-TAGS-ash \
1004     maybe-TAGS-autoconf \
1005     maybe-TAGS-automake \
1006     maybe-TAGS-bash \
1007     maybe-TAGS-bfd \
1008     maybe-TAGS-opcodes \
1009     maybe-TAGS-binutils \
1010     maybe-TAGS-bison \
1011     maybe-TAGS-byacc \
1012     maybe-TAGS-bzip2 \
1013     maybe-TAGS-dejagnu \
1014     maybe-TAGS-diff \
1015     maybe-TAGS-dosutils \
1016     maybe-TAGS-etc \
1017     maybe-TAGS-fastjar \
1018     maybe-TAGS-fileutils \
1019     maybe-TAGS-findutils \
1020     maybe-TAGS-find \
1021     maybe-TAGS-flex \
1022     maybe-TAGS-gas \
1023     maybe-TAGS-gawk \
1024     maybe-TAGS-gettext \
1025     maybe-TAGS-gnuserv \
1026     maybe-TAGS-gprof \
1027     maybe-TAGS-gzip \
1028     maybe-TAGS-hello \
1029     maybe-TAGS-indent \
1030     maybe-TAGS-intl \
1031     maybe-TAGS-tcl \
1032     maybe-TAGS-itcl \
1033     maybe-TAGS-ld \
1034     maybe-TAGS-libcpp \
1035     maybe-TAGS-libgui \
1036     maybe-TAGS-libbanshee \
1037     maybe-TAGS-libiberty \
1038     maybe-TAGS-libtool \
1039     maybe-TAGS-m4 \
1040     maybe-TAGS-make \
1041     maybe-TAGS-mmalloc \
1042     maybe-TAGS-patch \
1043     maybe-TAGS-perl \
1044     maybe-TAGS-prms \
1045     maybe-TAGS-rcs \
1046     maybe-TAGS-readline \
1047     maybe-TAGS-release \
1048     maybe-TAGS-recode \
1049     maybe-TAGS-sed \
1050     maybe-TAGS-send-pr \
1051     maybe-TAGS-shellutils \
1052     maybe-TAGS-sid \
1053     maybe-TAGS-sim \
1054     maybe-TAGS-tar \
1055     maybe-TAGS-texinfo \
1056     maybe-TAGS-textutils \
1057     maybe-TAGS-time \
1058     maybe-TAGS-uudecode \
1059     maybe-TAGS-wdiff \
1060     maybe-TAGS-zip \
1061     maybe-TAGS-zlib \
1062     maybe-TAGS-gdb \
1063     maybe-TAGS-expect \
1064     maybe-TAGS-guile \
1065     maybe-TAGS-tk \
1066     maybe-TAGS-tix \
1067     maybe-TAGS-libtermcap \
1068     maybe-TAGS-utils
1069
1070 .PHONY: TAGS-target
1071 TAGS-target:  \
1072     maybe-TAGS-target-libstdc++-v3 \
1073     maybe-TAGS-target-libmudflap \
1074     maybe-TAGS-target-newlib \
1075     maybe-TAGS-target-libgfortran \
1076     maybe-TAGS-target-libobjc \
1077     maybe-TAGS-target-libtermcap \
1078     maybe-TAGS-target-winsup \
1079     maybe-TAGS-target-libgloss \
1080     maybe-TAGS-target-libiberty \
1081     maybe-TAGS-target-gperf \
1082     maybe-TAGS-target-examples \
1083     maybe-TAGS-target-libffi \
1084     maybe-TAGS-target-libjava \
1085     maybe-TAGS-target-zlib \
1086     maybe-TAGS-target-boehm-gc \
1087     maybe-TAGS-target-qthreads \
1088     maybe-TAGS-target-rda \
1089     maybe-TAGS-target-libada
1090
1091 .PHONY: do-install-info
1092 do-install-info: install-info-host install-info-target
1093
1094 .PHONY: install-info-host
1095 install-info-host: maybe-install-info-gcc  \
1096     maybe-install-info-ash \
1097     maybe-install-info-autoconf \
1098     maybe-install-info-automake \
1099     maybe-install-info-bash \
1100     maybe-install-info-bfd \
1101     maybe-install-info-opcodes \
1102     maybe-install-info-binutils \
1103     maybe-install-info-bison \
1104     maybe-install-info-byacc \
1105     maybe-install-info-bzip2 \
1106     maybe-install-info-dejagnu \
1107     maybe-install-info-diff \
1108     maybe-install-info-dosutils \
1109     maybe-install-info-etc \
1110     maybe-install-info-fastjar \
1111     maybe-install-info-fileutils \
1112     maybe-install-info-findutils \
1113     maybe-install-info-find \
1114     maybe-install-info-flex \
1115     maybe-install-info-gas \
1116     maybe-install-info-gawk \
1117     maybe-install-info-gettext \
1118     maybe-install-info-gnuserv \
1119     maybe-install-info-gprof \
1120     maybe-install-info-gzip \
1121     maybe-install-info-hello \
1122     maybe-install-info-indent \
1123     maybe-install-info-intl \
1124     maybe-install-info-tcl \
1125     maybe-install-info-itcl \
1126     maybe-install-info-ld \
1127     maybe-install-info-libcpp \
1128     maybe-install-info-libgui \
1129     maybe-install-info-libbanshee \
1130     maybe-install-info-libiberty \
1131     maybe-install-info-libtool \
1132     maybe-install-info-m4 \
1133     maybe-install-info-make \
1134     maybe-install-info-mmalloc \
1135     maybe-install-info-patch \
1136     maybe-install-info-perl \
1137     maybe-install-info-prms \
1138     maybe-install-info-rcs \
1139     maybe-install-info-readline \
1140     maybe-install-info-release \
1141     maybe-install-info-recode \
1142     maybe-install-info-sed \
1143     maybe-install-info-send-pr \
1144     maybe-install-info-shellutils \
1145     maybe-install-info-sid \
1146     maybe-install-info-sim \
1147     maybe-install-info-tar \
1148     maybe-install-info-texinfo \
1149     maybe-install-info-textutils \
1150     maybe-install-info-time \
1151     maybe-install-info-uudecode \
1152     maybe-install-info-wdiff \
1153     maybe-install-info-zip \
1154     maybe-install-info-zlib \
1155     maybe-install-info-gdb \
1156     maybe-install-info-expect \
1157     maybe-install-info-guile \
1158     maybe-install-info-tk \
1159     maybe-install-info-tix \
1160     maybe-install-info-libtermcap \
1161     maybe-install-info-utils
1162
1163 .PHONY: install-info-target
1164 install-info-target:  \
1165     maybe-install-info-target-libstdc++-v3 \
1166     maybe-install-info-target-libmudflap \
1167     maybe-install-info-target-newlib \
1168     maybe-install-info-target-libgfortran \
1169     maybe-install-info-target-libobjc \
1170     maybe-install-info-target-libtermcap \
1171     maybe-install-info-target-winsup \
1172     maybe-install-info-target-libgloss \
1173     maybe-install-info-target-libiberty \
1174     maybe-install-info-target-gperf \
1175     maybe-install-info-target-examples \
1176     maybe-install-info-target-libffi \
1177     maybe-install-info-target-libjava \
1178     maybe-install-info-target-zlib \
1179     maybe-install-info-target-boehm-gc \
1180     maybe-install-info-target-qthreads \
1181     maybe-install-info-target-rda \
1182     maybe-install-info-target-libada
1183
1184 .PHONY: do-installcheck
1185 do-installcheck: installcheck-host installcheck-target
1186
1187 .PHONY: installcheck-host
1188 installcheck-host: maybe-installcheck-gcc  \
1189     maybe-installcheck-ash \
1190     maybe-installcheck-autoconf \
1191     maybe-installcheck-automake \
1192     maybe-installcheck-bash \
1193     maybe-installcheck-bfd \
1194     maybe-installcheck-opcodes \
1195     maybe-installcheck-binutils \
1196     maybe-installcheck-bison \
1197     maybe-installcheck-byacc \
1198     maybe-installcheck-bzip2 \
1199     maybe-installcheck-dejagnu \
1200     maybe-installcheck-diff \
1201     maybe-installcheck-dosutils \
1202     maybe-installcheck-etc \
1203     maybe-installcheck-fastjar \
1204     maybe-installcheck-fileutils \
1205     maybe-installcheck-findutils \
1206     maybe-installcheck-find \
1207     maybe-installcheck-flex \
1208     maybe-installcheck-gas \
1209     maybe-installcheck-gawk \
1210     maybe-installcheck-gettext \
1211     maybe-installcheck-gnuserv \
1212     maybe-installcheck-gprof \
1213     maybe-installcheck-gzip \
1214     maybe-installcheck-hello \
1215     maybe-installcheck-indent \
1216     maybe-installcheck-intl \
1217     maybe-installcheck-tcl \
1218     maybe-installcheck-itcl \
1219     maybe-installcheck-ld \
1220     maybe-installcheck-libcpp \
1221     maybe-installcheck-libgui \
1222     maybe-installcheck-libbanshee \
1223     maybe-installcheck-libiberty \
1224     maybe-installcheck-libtool \
1225     maybe-installcheck-m4 \
1226     maybe-installcheck-make \
1227     maybe-installcheck-mmalloc \
1228     maybe-installcheck-patch \
1229     maybe-installcheck-perl \
1230     maybe-installcheck-prms \
1231     maybe-installcheck-rcs \
1232     maybe-installcheck-readline \
1233     maybe-installcheck-release \
1234     maybe-installcheck-recode \
1235     maybe-installcheck-sed \
1236     maybe-installcheck-send-pr \
1237     maybe-installcheck-shellutils \
1238     maybe-installcheck-sid \
1239     maybe-installcheck-sim \
1240     maybe-installcheck-tar \
1241     maybe-installcheck-texinfo \
1242     maybe-installcheck-textutils \
1243     maybe-installcheck-time \
1244     maybe-installcheck-uudecode \
1245     maybe-installcheck-wdiff \
1246     maybe-installcheck-zip \
1247     maybe-installcheck-zlib \
1248     maybe-installcheck-gdb \
1249     maybe-installcheck-expect \
1250     maybe-installcheck-guile \
1251     maybe-installcheck-tk \
1252     maybe-installcheck-tix \
1253     maybe-installcheck-libtermcap \
1254     maybe-installcheck-utils
1255
1256 .PHONY: installcheck-target
1257 installcheck-target:  \
1258     maybe-installcheck-target-libstdc++-v3 \
1259     maybe-installcheck-target-libmudflap \
1260     maybe-installcheck-target-newlib \
1261     maybe-installcheck-target-libgfortran \
1262     maybe-installcheck-target-libobjc \
1263     maybe-installcheck-target-libtermcap \
1264     maybe-installcheck-target-winsup \
1265     maybe-installcheck-target-libgloss \
1266     maybe-installcheck-target-libiberty \
1267     maybe-installcheck-target-gperf \
1268     maybe-installcheck-target-examples \
1269     maybe-installcheck-target-libffi \
1270     maybe-installcheck-target-libjava \
1271     maybe-installcheck-target-zlib \
1272     maybe-installcheck-target-boehm-gc \
1273     maybe-installcheck-target-qthreads \
1274     maybe-installcheck-target-rda \
1275     maybe-installcheck-target-libada
1276
1277 .PHONY: do-mostlyclean
1278 do-mostlyclean: mostlyclean-host mostlyclean-target
1279
1280 .PHONY: mostlyclean-host
1281 mostlyclean-host: maybe-mostlyclean-gcc  \
1282     maybe-mostlyclean-ash \
1283     maybe-mostlyclean-autoconf \
1284     maybe-mostlyclean-automake \
1285     maybe-mostlyclean-bash \
1286     maybe-mostlyclean-bfd \
1287     maybe-mostlyclean-opcodes \
1288     maybe-mostlyclean-binutils \
1289     maybe-mostlyclean-bison \
1290     maybe-mostlyclean-byacc \
1291     maybe-mostlyclean-bzip2 \
1292     maybe-mostlyclean-dejagnu \
1293     maybe-mostlyclean-diff \
1294     maybe-mostlyclean-dosutils \
1295     maybe-mostlyclean-etc \
1296     maybe-mostlyclean-fastjar \
1297     maybe-mostlyclean-fileutils \
1298     maybe-mostlyclean-findutils \
1299     maybe-mostlyclean-find \
1300     maybe-mostlyclean-flex \
1301     maybe-mostlyclean-gas \
1302     maybe-mostlyclean-gawk \
1303     maybe-mostlyclean-gettext \
1304     maybe-mostlyclean-gnuserv \
1305     maybe-mostlyclean-gprof \
1306     maybe-mostlyclean-gzip \
1307     maybe-mostlyclean-hello \
1308     maybe-mostlyclean-indent \
1309     maybe-mostlyclean-intl \
1310     maybe-mostlyclean-tcl \
1311     maybe-mostlyclean-itcl \
1312     maybe-mostlyclean-ld \
1313     maybe-mostlyclean-libcpp \
1314     maybe-mostlyclean-libgui \
1315     maybe-mostlyclean-libbanshee \
1316     maybe-mostlyclean-libiberty \
1317     maybe-mostlyclean-libtool \
1318     maybe-mostlyclean-m4 \
1319     maybe-mostlyclean-make \
1320     maybe-mostlyclean-mmalloc \
1321     maybe-mostlyclean-patch \
1322     maybe-mostlyclean-perl \
1323     maybe-mostlyclean-prms \
1324     maybe-mostlyclean-rcs \
1325     maybe-mostlyclean-readline \
1326     maybe-mostlyclean-release \
1327     maybe-mostlyclean-recode \
1328     maybe-mostlyclean-sed \
1329     maybe-mostlyclean-send-pr \
1330     maybe-mostlyclean-shellutils \
1331     maybe-mostlyclean-sid \
1332     maybe-mostlyclean-sim \
1333     maybe-mostlyclean-tar \
1334     maybe-mostlyclean-texinfo \
1335     maybe-mostlyclean-textutils \
1336     maybe-mostlyclean-time \
1337     maybe-mostlyclean-uudecode \
1338     maybe-mostlyclean-wdiff \
1339     maybe-mostlyclean-zip \
1340     maybe-mostlyclean-zlib \
1341     maybe-mostlyclean-gdb \
1342     maybe-mostlyclean-expect \
1343     maybe-mostlyclean-guile \
1344     maybe-mostlyclean-tk \
1345     maybe-mostlyclean-tix \
1346     maybe-mostlyclean-libtermcap \
1347     maybe-mostlyclean-utils
1348
1349 .PHONY: mostlyclean-target
1350 mostlyclean-target:  \
1351     maybe-mostlyclean-target-libstdc++-v3 \
1352     maybe-mostlyclean-target-libmudflap \
1353     maybe-mostlyclean-target-newlib \
1354     maybe-mostlyclean-target-libgfortran \
1355     maybe-mostlyclean-target-libobjc \
1356     maybe-mostlyclean-target-libtermcap \
1357     maybe-mostlyclean-target-winsup \
1358     maybe-mostlyclean-target-libgloss \
1359     maybe-mostlyclean-target-libiberty \
1360     maybe-mostlyclean-target-gperf \
1361     maybe-mostlyclean-target-examples \
1362     maybe-mostlyclean-target-libffi \
1363     maybe-mostlyclean-target-libjava \
1364     maybe-mostlyclean-target-zlib \
1365     maybe-mostlyclean-target-boehm-gc \
1366     maybe-mostlyclean-target-qthreads \
1367     maybe-mostlyclean-target-rda \
1368     maybe-mostlyclean-target-libada
1369
1370 .PHONY: do-clean
1371 do-clean: clean-host clean-target
1372
1373 .PHONY: clean-host
1374 clean-host: maybe-clean-gcc  \
1375     maybe-clean-ash \
1376     maybe-clean-autoconf \
1377     maybe-clean-automake \
1378     maybe-clean-bash \
1379     maybe-clean-bfd \
1380     maybe-clean-opcodes \
1381     maybe-clean-binutils \
1382     maybe-clean-bison \
1383     maybe-clean-byacc \
1384     maybe-clean-bzip2 \
1385     maybe-clean-dejagnu \
1386     maybe-clean-diff \
1387     maybe-clean-dosutils \
1388     maybe-clean-etc \
1389     maybe-clean-fastjar \
1390     maybe-clean-fileutils \
1391     maybe-clean-findutils \
1392     maybe-clean-find \
1393     maybe-clean-flex \
1394     maybe-clean-gas \
1395     maybe-clean-gawk \
1396     maybe-clean-gettext \
1397     maybe-clean-gnuserv \
1398     maybe-clean-gprof \
1399     maybe-clean-gzip \
1400     maybe-clean-hello \
1401     maybe-clean-indent \
1402     maybe-clean-intl \
1403     maybe-clean-tcl \
1404     maybe-clean-itcl \
1405     maybe-clean-ld \
1406     maybe-clean-libcpp \
1407     maybe-clean-libgui \
1408     maybe-clean-libbanshee \
1409     maybe-clean-libiberty \
1410     maybe-clean-libtool \
1411     maybe-clean-m4 \
1412     maybe-clean-make \
1413     maybe-clean-mmalloc \
1414     maybe-clean-patch \
1415     maybe-clean-perl \
1416     maybe-clean-prms \
1417     maybe-clean-rcs \
1418     maybe-clean-readline \
1419     maybe-clean-release \
1420     maybe-clean-recode \
1421     maybe-clean-sed \
1422     maybe-clean-send-pr \
1423     maybe-clean-shellutils \
1424     maybe-clean-sid \
1425     maybe-clean-sim \
1426     maybe-clean-tar \
1427     maybe-clean-texinfo \
1428     maybe-clean-textutils \
1429     maybe-clean-time \
1430     maybe-clean-uudecode \
1431     maybe-clean-wdiff \
1432     maybe-clean-zip \
1433     maybe-clean-zlib \
1434     maybe-clean-gdb \
1435     maybe-clean-expect \
1436     maybe-clean-guile \
1437     maybe-clean-tk \
1438     maybe-clean-tix \
1439     maybe-clean-libtermcap \
1440     maybe-clean-utils
1441
1442 .PHONY: clean-target
1443 clean-target:  \
1444     maybe-clean-target-libstdc++-v3 \
1445     maybe-clean-target-libmudflap \
1446     maybe-clean-target-newlib \
1447     maybe-clean-target-libgfortran \
1448     maybe-clean-target-libobjc \
1449     maybe-clean-target-libtermcap \
1450     maybe-clean-target-winsup \
1451     maybe-clean-target-libgloss \
1452     maybe-clean-target-libiberty \
1453     maybe-clean-target-gperf \
1454     maybe-clean-target-examples \
1455     maybe-clean-target-libffi \
1456     maybe-clean-target-libjava \
1457     maybe-clean-target-zlib \
1458     maybe-clean-target-boehm-gc \
1459     maybe-clean-target-qthreads \
1460     maybe-clean-target-rda \
1461     maybe-clean-target-libada
1462
1463 .PHONY: do-distclean
1464 do-distclean: distclean-host distclean-target
1465
1466 .PHONY: distclean-host
1467 distclean-host: maybe-distclean-gcc  \
1468     maybe-distclean-ash \
1469     maybe-distclean-autoconf \
1470     maybe-distclean-automake \
1471     maybe-distclean-bash \
1472     maybe-distclean-bfd \
1473     maybe-distclean-opcodes \
1474     maybe-distclean-binutils \
1475     maybe-distclean-bison \
1476     maybe-distclean-byacc \
1477     maybe-distclean-bzip2 \
1478     maybe-distclean-dejagnu \
1479     maybe-distclean-diff \
1480     maybe-distclean-dosutils \
1481     maybe-distclean-etc \
1482     maybe-distclean-fastjar \
1483     maybe-distclean-fileutils \
1484     maybe-distclean-findutils \
1485     maybe-distclean-find \
1486     maybe-distclean-flex \
1487     maybe-distclean-gas \
1488     maybe-distclean-gawk \
1489     maybe-distclean-gettext \
1490     maybe-distclean-gnuserv \
1491     maybe-distclean-gprof \
1492     maybe-distclean-gzip \
1493     maybe-distclean-hello \
1494     maybe-distclean-indent \
1495     maybe-distclean-intl \
1496     maybe-distclean-tcl \
1497     maybe-distclean-itcl \
1498     maybe-distclean-ld \
1499     maybe-distclean-libcpp \
1500     maybe-distclean-libgui \
1501     maybe-distclean-libbanshee \
1502     maybe-distclean-libiberty \
1503     maybe-distclean-libtool \
1504     maybe-distclean-m4 \
1505     maybe-distclean-make \
1506     maybe-distclean-mmalloc \
1507     maybe-distclean-patch \
1508     maybe-distclean-perl \
1509     maybe-distclean-prms \
1510     maybe-distclean-rcs \
1511     maybe-distclean-readline \
1512     maybe-distclean-release \
1513     maybe-distclean-recode \
1514     maybe-distclean-sed \
1515     maybe-distclean-send-pr \
1516     maybe-distclean-shellutils \
1517     maybe-distclean-sid \
1518     maybe-distclean-sim \
1519     maybe-distclean-tar \
1520     maybe-distclean-texinfo \
1521     maybe-distclean-textutils \
1522     maybe-distclean-time \
1523     maybe-distclean-uudecode \
1524     maybe-distclean-wdiff \
1525     maybe-distclean-zip \
1526     maybe-distclean-zlib \
1527     maybe-distclean-gdb \
1528     maybe-distclean-expect \
1529     maybe-distclean-guile \
1530     maybe-distclean-tk \
1531     maybe-distclean-tix \
1532     maybe-distclean-libtermcap \
1533     maybe-distclean-utils
1534
1535 .PHONY: distclean-target
1536 distclean-target:  \
1537     maybe-distclean-target-libstdc++-v3 \
1538     maybe-distclean-target-libmudflap \
1539     maybe-distclean-target-newlib \
1540     maybe-distclean-target-libgfortran \
1541     maybe-distclean-target-libobjc \
1542     maybe-distclean-target-libtermcap \
1543     maybe-distclean-target-winsup \
1544     maybe-distclean-target-libgloss \
1545     maybe-distclean-target-libiberty \
1546     maybe-distclean-target-gperf \
1547     maybe-distclean-target-examples \
1548     maybe-distclean-target-libffi \
1549     maybe-distclean-target-libjava \
1550     maybe-distclean-target-zlib \
1551     maybe-distclean-target-boehm-gc \
1552     maybe-distclean-target-qthreads \
1553     maybe-distclean-target-rda \
1554     maybe-distclean-target-libada
1555
1556 .PHONY: do-maintainer-clean
1557 do-maintainer-clean: maintainer-clean-host maintainer-clean-target
1558
1559 .PHONY: maintainer-clean-host
1560 maintainer-clean-host: maybe-maintainer-clean-gcc  \
1561     maybe-maintainer-clean-ash \
1562     maybe-maintainer-clean-autoconf \
1563     maybe-maintainer-clean-automake \
1564     maybe-maintainer-clean-bash \
1565     maybe-maintainer-clean-bfd \
1566     maybe-maintainer-clean-opcodes \
1567     maybe-maintainer-clean-binutils \
1568     maybe-maintainer-clean-bison \
1569     maybe-maintainer-clean-byacc \
1570     maybe-maintainer-clean-bzip2 \
1571     maybe-maintainer-clean-dejagnu \
1572     maybe-maintainer-clean-diff \
1573     maybe-maintainer-clean-dosutils \
1574     maybe-maintainer-clean-etc \
1575     maybe-maintainer-clean-fastjar \
1576     maybe-maintainer-clean-fileutils \
1577     maybe-maintainer-clean-findutils \
1578     maybe-maintainer-clean-find \
1579     maybe-maintainer-clean-flex \
1580     maybe-maintainer-clean-gas \
1581     maybe-maintainer-clean-gawk \
1582     maybe-maintainer-clean-gettext \
1583     maybe-maintainer-clean-gnuserv \
1584     maybe-maintainer-clean-gprof \
1585     maybe-maintainer-clean-gzip \
1586     maybe-maintainer-clean-hello \
1587     maybe-maintainer-clean-indent \
1588     maybe-maintainer-clean-intl \
1589     maybe-maintainer-clean-tcl \
1590     maybe-maintainer-clean-itcl \
1591     maybe-maintainer-clean-ld \
1592     maybe-maintainer-clean-libcpp \
1593     maybe-maintainer-clean-libgui \
1594     maybe-maintainer-clean-libbanshee \
1595     maybe-maintainer-clean-libiberty \
1596     maybe-maintainer-clean-libtool \
1597     maybe-maintainer-clean-m4 \
1598     maybe-maintainer-clean-make \
1599     maybe-maintainer-clean-mmalloc \
1600     maybe-maintainer-clean-patch \
1601     maybe-maintainer-clean-perl \
1602     maybe-maintainer-clean-prms \
1603     maybe-maintainer-clean-rcs \
1604     maybe-maintainer-clean-readline \
1605     maybe-maintainer-clean-release \
1606     maybe-maintainer-clean-recode \
1607     maybe-maintainer-clean-sed \
1608     maybe-maintainer-clean-send-pr \
1609     maybe-maintainer-clean-shellutils \
1610     maybe-maintainer-clean-sid \
1611     maybe-maintainer-clean-sim \
1612     maybe-maintainer-clean-tar \
1613     maybe-maintainer-clean-texinfo \
1614     maybe-maintainer-clean-textutils \
1615     maybe-maintainer-clean-time \
1616     maybe-maintainer-clean-uudecode \
1617     maybe-maintainer-clean-wdiff \
1618     maybe-maintainer-clean-zip \
1619     maybe-maintainer-clean-zlib \
1620     maybe-maintainer-clean-gdb \
1621     maybe-maintainer-clean-expect \
1622     maybe-maintainer-clean-guile \
1623     maybe-maintainer-clean-tk \
1624     maybe-maintainer-clean-tix \
1625     maybe-maintainer-clean-libtermcap \
1626     maybe-maintainer-clean-utils
1627
1628 .PHONY: maintainer-clean-target
1629 maintainer-clean-target:  \
1630     maybe-maintainer-clean-target-libstdc++-v3 \
1631     maybe-maintainer-clean-target-libmudflap \
1632     maybe-maintainer-clean-target-newlib \
1633     maybe-maintainer-clean-target-libgfortran \
1634     maybe-maintainer-clean-target-libobjc \
1635     maybe-maintainer-clean-target-libtermcap \
1636     maybe-maintainer-clean-target-winsup \
1637     maybe-maintainer-clean-target-libgloss \
1638     maybe-maintainer-clean-target-libiberty \
1639     maybe-maintainer-clean-target-gperf \
1640     maybe-maintainer-clean-target-examples \
1641     maybe-maintainer-clean-target-libffi \
1642     maybe-maintainer-clean-target-libjava \
1643     maybe-maintainer-clean-target-zlib \
1644     maybe-maintainer-clean-target-boehm-gc \
1645     maybe-maintainer-clean-target-qthreads \
1646     maybe-maintainer-clean-target-rda \
1647     maybe-maintainer-clean-target-libada
1648
1649
1650 # Here are the targets which correspond to the do-X targets.
1651
1652 .PHONY: info installcheck dvi install-info
1653 .PHONY: clean distclean mostlyclean maintainer-clean realclean
1654 .PHONY: local-clean local-distclean local-maintainer-clean
1655 info: do-info
1656 installcheck: do-installcheck
1657 dvi: do-dvi
1658
1659 # Make sure makeinfo is built before we do a `make info', if we're
1660 # in fact building texinfo.
1661 do-info: maybe-all-texinfo
1662
1663 install-info: do-install-info dir.info
1664         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1665         if [ -f dir.info ] ; then \
1666           $(INSTALL_DATA) dir.info $(DESTDIR)$(infodir)/dir.info ; \
1667         else true ; fi
1668
1669 local-clean:
1670         -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
1671
1672 local-distclean:
1673         -rm -f Makefile config.status config.cache mh-frag mt-frag
1674         -rm -f multilib.out multilib.tmp maybedep.tmp serdep.tmp
1675         -if [ "$(TARGET_SUBDIR)" != "." ]; then \
1676           rm -rf $(TARGET_SUBDIR); \
1677         else true; fi
1678         -rm -rf $(BUILD_SUBDIR)
1679         -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile
1680         -rm -f texinfo/doc/Makefile texinfo/po/POTFILES
1681         -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
1682         -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
1683         -rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null
1684
1685 local-maintainer-clean:
1686         @echo "This command is intended for maintainers to use;"
1687         @echo "it deletes files that may require special tools to rebuild."
1688
1689 clean: do-clean local-clean
1690 mostlyclean: do-mostlyclean local-clean
1691 distclean: do-distclean local-clean local-distclean
1692 maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean 
1693 maintainer-clean: local-distclean
1694 realclean: maintainer-clean
1695
1696 # Extra dependency for clean-target, owing to the mixed nature of gcc
1697 clean-target: clean-target-libgcc
1698 clean-target-libgcc:
1699         test ! -d gcc/libgcc || \
1700         (cd gcc/libgcc && find . -type d -print) | \
1701         while read d; do rm -f gcc/$$d/libgcc.a || : ; done
1702         -rm -rf gcc/libgcc
1703
1704 # Check target.
1705
1706 .PHONY: check do-check
1707 check: do-check
1708
1709 # Only include modules actually being configured and built.
1710 do-check: maybe-check-gcc  \
1711     maybe-check-ash \
1712     maybe-check-autoconf \
1713     maybe-check-automake \
1714     maybe-check-bash \
1715     maybe-check-bfd \
1716     maybe-check-opcodes \
1717     maybe-check-binutils \
1718     maybe-check-bison \
1719     maybe-check-byacc \
1720     maybe-check-bzip2 \
1721     maybe-check-dejagnu \
1722     maybe-check-diff \
1723     maybe-check-dosutils \
1724     maybe-check-etc \
1725     maybe-check-fastjar \
1726     maybe-check-fileutils \
1727     maybe-check-findutils \
1728     maybe-check-find \
1729     maybe-check-flex \
1730     maybe-check-gas \
1731     maybe-check-gawk \
1732     maybe-check-gettext \
1733     maybe-check-gnuserv \
1734     maybe-check-gprof \
1735     maybe-check-gzip \
1736     maybe-check-hello \
1737     maybe-check-indent \
1738     maybe-check-intl \
1739     maybe-check-tcl \
1740     maybe-check-itcl \
1741     maybe-check-ld \
1742     maybe-check-libcpp \
1743     maybe-check-libgui \
1744     maybe-check-libbanshee \
1745     maybe-check-libiberty \
1746     maybe-check-libtool \
1747     maybe-check-m4 \
1748     maybe-check-make \
1749     maybe-check-mmalloc \
1750     maybe-check-patch \
1751     maybe-check-perl \
1752     maybe-check-prms \
1753     maybe-check-rcs \
1754     maybe-check-readline \
1755     maybe-check-release \
1756     maybe-check-recode \
1757     maybe-check-sed \
1758     maybe-check-send-pr \
1759     maybe-check-shellutils \
1760     maybe-check-sid \
1761     maybe-check-sim \
1762     maybe-check-tar \
1763     maybe-check-texinfo \
1764     maybe-check-textutils \
1765     maybe-check-time \
1766     maybe-check-uudecode \
1767     maybe-check-wdiff \
1768     maybe-check-zip \
1769     maybe-check-zlib \
1770     maybe-check-gdb \
1771     maybe-check-expect \
1772     maybe-check-guile \
1773     maybe-check-tk \
1774     maybe-check-tix \
1775     maybe-check-libtermcap \
1776     maybe-check-utils \
1777     maybe-check-target-libstdc++-v3 \
1778     maybe-check-target-libmudflap \
1779     maybe-check-target-newlib \
1780     maybe-check-target-libgfortran \
1781     maybe-check-target-libobjc \
1782     maybe-check-target-libtermcap \
1783     maybe-check-target-winsup \
1784     maybe-check-target-libgloss \
1785     maybe-check-target-libiberty \
1786     maybe-check-target-gperf \
1787     maybe-check-target-examples \
1788     maybe-check-target-libffi \
1789     maybe-check-target-libjava \
1790     maybe-check-target-zlib \
1791     maybe-check-target-boehm-gc \
1792     maybe-check-target-qthreads \
1793     maybe-check-target-rda \
1794     maybe-check-target-libada
1795
1796 # Automated reporting of test results.
1797
1798 warning.log: build.log
1799         $(srcdir)/contrib/warn_summary build.log > $@
1800
1801 mail-report.log:
1802         if test x'$(BOOT_CFLAGS)' != x''; then \
1803             BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
1804         fi; \
1805         $(srcdir)/contrib/test_summary -t >$@
1806         chmod +x $@
1807         echo If you really want to send e-mail, run ./$@ now
1808
1809 mail-report-with-warnings.log: warning.log
1810         if test x'$(BOOT_CFLAGS)' != x''; then \
1811             BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
1812         fi; \
1813         $(srcdir)/contrib/test_summary -t -i warning.log >$@
1814         chmod +x $@
1815         echo If you really want to send e-mail, run ./$@ now
1816
1817 # Installation targets.
1818
1819 .PHONY: install uninstall
1820 install: installdirs install-host install-target
1821
1822 .PHONY: install-host-nogcc
1823 install-host-nogcc:  \
1824     maybe-install-ash \
1825     maybe-install-autoconf \
1826     maybe-install-automake \
1827     maybe-install-bash \
1828     maybe-install-bfd \
1829     maybe-install-opcodes \
1830     maybe-install-binutils \
1831     maybe-install-bison \
1832     maybe-install-byacc \
1833     maybe-install-bzip2 \
1834     maybe-install-dejagnu \
1835     maybe-install-diff \
1836     maybe-install-dosutils \
1837     maybe-install-etc \
1838     maybe-install-fastjar \
1839     maybe-install-fileutils \
1840     maybe-install-findutils \
1841     maybe-install-find \
1842     maybe-install-flex \
1843     maybe-install-gas \
1844     maybe-install-gawk \
1845     maybe-install-gettext \
1846     maybe-install-gnuserv \
1847     maybe-install-gprof \
1848     maybe-install-gzip \
1849     maybe-install-hello \
1850     maybe-install-indent \
1851     maybe-install-intl \
1852     maybe-install-tcl \
1853     maybe-install-itcl \
1854     maybe-install-ld \
1855     maybe-install-libcpp \
1856     maybe-install-libgui \
1857     maybe-install-libbanshee \
1858     maybe-install-libiberty \
1859     maybe-install-libtool \
1860     maybe-install-m4 \
1861     maybe-install-make \
1862     maybe-install-mmalloc \
1863     maybe-install-patch \
1864     maybe-install-perl \
1865     maybe-install-prms \
1866     maybe-install-rcs \
1867     maybe-install-readline \
1868     maybe-install-release \
1869     maybe-install-recode \
1870     maybe-install-sed \
1871     maybe-install-send-pr \
1872     maybe-install-shellutils \
1873     maybe-install-sid \
1874     maybe-install-sim \
1875     maybe-install-tar \
1876     maybe-install-texinfo \
1877     maybe-install-textutils \
1878     maybe-install-time \
1879     maybe-install-uudecode \
1880     maybe-install-wdiff \
1881     maybe-install-zip \
1882     maybe-install-zlib \
1883     maybe-install-gdb \
1884     maybe-install-expect \
1885     maybe-install-guile \
1886     maybe-install-tk \
1887     maybe-install-tix \
1888     maybe-install-libtermcap \
1889     maybe-install-utils
1890
1891 .PHONY: install-host
1892 install-host: maybe-install-gcc  \
1893     maybe-install-ash \
1894     maybe-install-autoconf \
1895     maybe-install-automake \
1896     maybe-install-bash \
1897     maybe-install-bfd \
1898     maybe-install-opcodes \
1899     maybe-install-binutils \
1900     maybe-install-bison \
1901     maybe-install-byacc \
1902     maybe-install-bzip2 \
1903     maybe-install-dejagnu \
1904     maybe-install-diff \
1905     maybe-install-dosutils \
1906     maybe-install-etc \
1907     maybe-install-fastjar \
1908     maybe-install-fileutils \
1909     maybe-install-findutils \
1910     maybe-install-find \
1911     maybe-install-flex \
1912     maybe-install-gas \
1913     maybe-install-gawk \
1914     maybe-install-gettext \
1915     maybe-install-gnuserv \
1916     maybe-install-gprof \
1917     maybe-install-gzip \
1918     maybe-install-hello \
1919     maybe-install-indent \
1920     maybe-install-intl \
1921     maybe-install-tcl \
1922     maybe-install-itcl \
1923     maybe-install-ld \
1924     maybe-install-libcpp \
1925     maybe-install-libgui \
1926     maybe-install-libbanshee \
1927     maybe-install-libiberty \
1928     maybe-install-libtool \
1929     maybe-install-m4 \
1930     maybe-install-make \
1931     maybe-install-mmalloc \
1932     maybe-install-patch \
1933     maybe-install-perl \
1934     maybe-install-prms \
1935     maybe-install-rcs \
1936     maybe-install-readline \
1937     maybe-install-release \
1938     maybe-install-recode \
1939     maybe-install-sed \
1940     maybe-install-send-pr \
1941     maybe-install-shellutils \
1942     maybe-install-sid \
1943     maybe-install-sim \
1944     maybe-install-tar \
1945     maybe-install-texinfo \
1946     maybe-install-textutils \
1947     maybe-install-time \
1948     maybe-install-uudecode \
1949     maybe-install-wdiff \
1950     maybe-install-zip \
1951     maybe-install-zlib \
1952     maybe-install-gdb \
1953     maybe-install-expect \
1954     maybe-install-guile \
1955     maybe-install-tk \
1956     maybe-install-tix \
1957     maybe-install-libtermcap \
1958     maybe-install-utils
1959
1960 .PHONY: install-target
1961 install-target:  \
1962     maybe-install-target-libstdc++-v3 \
1963     maybe-install-target-libmudflap \
1964     maybe-install-target-newlib \
1965     maybe-install-target-libgfortran \
1966     maybe-install-target-libobjc \
1967     maybe-install-target-libtermcap \
1968     maybe-install-target-winsup \
1969     maybe-install-target-libgloss \
1970     maybe-install-target-libiberty \
1971     maybe-install-target-gperf \
1972     maybe-install-target-examples \
1973     maybe-install-target-libffi \
1974     maybe-install-target-libjava \
1975     maybe-install-target-zlib \
1976     maybe-install-target-boehm-gc \
1977     maybe-install-target-qthreads \
1978     maybe-install-target-rda \
1979     maybe-install-target-libada
1980
1981 uninstall:
1982         @echo "the uninstall target is not supported in this tree"
1983
1984 .PHONY: install.all
1985 install.all: install-no-fixedincludes
1986         @if [ -f ./gcc/Makefile ] ; then \
1987                 r=`${PWD_COMMAND}` ; export r ; \
1988                 $(SET_LIB_PATH) \
1989                 $(GCC_HOST_EXPORTS) \
1990                 (cd ./gcc && \
1991                 $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \
1992         else \
1993                 true ; \
1994         fi
1995
1996 # install-no-fixedincludes is used because Cygnus can not distribute
1997 # the fixed header files.
1998 .PHONY: install-no-fixedincludes
1999 install-no-fixedincludes: installdirs install-host-nogcc \
2000         install-target gcc-no-fixedincludes
2001
2002 ### other supporting targets
2003
2004 MAKEDIRS= \
2005         $(DESTDIR)$(prefix) \
2006         $(DESTDIR)$(exec_prefix)
2007 .PHONY: installdirs
2008 installdirs: mkinstalldirs
2009         $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
2010
2011 dir.info: do-install-info
2012         if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \
2013           $(srcdir)/texinfo/gen-info-dir $(DESTDIR)$(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \
2014           mv -f dir.info.new dir.info ; \
2015         else true ; \
2016         fi
2017
2018 dist:
2019         @echo "Building a full distribution of this tree isn't done"
2020         @echo "via 'make dist'.  Check out the etc/ subdirectory" 
2021
2022 etags tags: TAGS
2023
2024 # Right now this just builds TAGS in each subdirectory.  emacs19 has the
2025 # ability to use several tags files at once, so there is probably no need
2026 # to combine them into one big TAGS file (like CVS 1.3 does).  We could
2027 # (if we felt like it) have this Makefile write a piece of elisp which
2028 # the user could load to tell emacs19 where all the TAGS files we just
2029 # built are.
2030 TAGS: do-TAGS
2031
2032 # --------------------------------------
2033 # Modules which run on the build machine
2034 # --------------------------------------
2035
2036 .PHONY: configure-build-libiberty maybe-configure-build-libiberty
2037 maybe-configure-build-libiberty:
2038 @if build-libiberty
2039 maybe-configure-build-libiberty: configure-build-libiberty
2040 configure-build-libiberty:
2041         @test ! -f $(BUILD_SUBDIR)/libiberty/Makefile || exit 0; \
2042         $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/libiberty ; \
2043         r=`${PWD_COMMAND}`; export r; \
2044         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2045         $(BUILD_EXPORTS) \
2046         echo Configuring in $(BUILD_SUBDIR)/libiberty; \
2047         cd "$(BUILD_SUBDIR)/libiberty" || exit 1; \
2048         case $(srcdir) in \
2049           /* | [A-Za-z]:[\\/]*) \
2050             topdir=$(srcdir) ;; \
2051           *) \
2052             case "$(BUILD_SUBDIR)" in \
2053               .) topdir="../$(srcdir)" ;; \
2054               *) topdir="../../$(srcdir)" ;; \
2055             esac ;; \
2056         esac; \
2057         if [ "$(srcdir)" = "." ] ; then \
2058           if [ "$(BUILD_SUBDIR)" != "." ] ; then \
2059             if $(SHELL) $$s/symlink-tree $${topdir}/libiberty "no-such-file" ; then \
2060               if [ -f Makefile ]; then \
2061                 if $(MAKE) distclean; then \
2062                   true; \
2063                 else \
2064                   exit 1; \
2065                 fi; \
2066               else \
2067                 true; \
2068               fi; \
2069             else \
2070               exit 1; \
2071             fi; \
2072           else \
2073             true; \
2074           fi; \
2075           srcdiroption="--srcdir=."; \
2076           libsrcdir="."; \
2077         else \
2078           srcdiroption="--srcdir=$${topdir}/libiberty"; \
2079           libsrcdir="$$s/libiberty"; \
2080         fi; \
2081         rm -f no-such-file || : ; \
2082         CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2083           $(BUILD_CONFIGARGS) $${srcdiroption} \
2084           --with-build-subdir="$(BUILD_SUBDIR)" \
2085           || exit 1
2086 @endif build-libiberty
2087
2088 .PHONY: all-build-libiberty maybe-all-build-libiberty
2089 maybe-all-build-libiberty:
2090 @if build-libiberty
2091 maybe-all-build-libiberty: all-build-libiberty
2092 all-build-libiberty: configure-build-libiberty
2093         @r=`${PWD_COMMAND}`; export r; \
2094         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2095         $(BUILD_EXPORTS) \
2096         (cd $(BUILD_SUBDIR)/libiberty && $(MAKE) all)
2097 @endif build-libiberty
2098
2099 .PHONY: configure-build-libbanshee maybe-configure-build-libbanshee
2100 maybe-configure-build-libbanshee:
2101 @if build-libbanshee
2102 maybe-configure-build-libbanshee: configure-build-libbanshee
2103 configure-build-libbanshee:
2104         @test ! -f $(BUILD_SUBDIR)/libbanshee/Makefile || exit 0; \
2105         $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/libbanshee ; \
2106         r=`${PWD_COMMAND}`; export r; \
2107         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2108         $(BUILD_EXPORTS) \
2109         echo Configuring in $(BUILD_SUBDIR)/libbanshee; \
2110         cd "$(BUILD_SUBDIR)/libbanshee" || exit 1; \
2111         case $(srcdir) in \
2112           /* | [A-Za-z]:[\\/]*) \
2113             topdir=$(srcdir) ;; \
2114           *) \
2115             case "$(BUILD_SUBDIR)" in \
2116               .) topdir="../$(srcdir)" ;; \
2117               *) topdir="../../$(srcdir)" ;; \
2118             esac ;; \
2119         esac; \
2120         if [ "$(srcdir)" = "." ] ; then \
2121           if [ "$(BUILD_SUBDIR)" != "." ] ; then \
2122             if $(SHELL) $$s/symlink-tree $${topdir}/libbanshee "no-such-file" ; then \
2123               if [ -f Makefile ]; then \
2124                 if $(MAKE) distclean; then \
2125                   true; \
2126                 else \
2127                   exit 1; \
2128                 fi; \
2129               else \
2130                 true; \
2131               fi; \
2132             else \
2133               exit 1; \
2134             fi; \
2135           else \
2136             true; \
2137           fi; \
2138           srcdiroption="--srcdir=."; \
2139           libsrcdir="."; \
2140         else \
2141           srcdiroption="--srcdir=$${topdir}/libbanshee"; \
2142           libsrcdir="$$s/libbanshee"; \
2143         fi; \
2144         rm -f no-such-file || : ; \
2145         CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2146           $(BUILD_CONFIGARGS) $${srcdiroption} \
2147           --with-build-subdir="$(BUILD_SUBDIR)" \
2148           || exit 1
2149 @endif build-libbanshee
2150
2151 .PHONY: all-build-libbanshee maybe-all-build-libbanshee
2152 maybe-all-build-libbanshee:
2153 @if build-libbanshee
2154 maybe-all-build-libbanshee: all-build-libbanshee
2155 all-build-libbanshee: configure-build-libbanshee
2156         @r=`${PWD_COMMAND}`; export r; \
2157         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2158         $(BUILD_EXPORTS) \
2159         (cd $(BUILD_SUBDIR)/libbanshee && $(MAKE) all)
2160 @endif build-libbanshee
2161
2162
2163 # --------------------------------------
2164 # Modules which run on the host machine
2165 # --------------------------------------
2166
2167 .PHONY: configure-ash maybe-configure-ash
2168 maybe-configure-ash:
2169 @if ash
2170 maybe-configure-ash: configure-ash
2171 configure-ash:
2172         @test ! -f ash/Makefile || exit 0; \
2173         [ -d ash ] || mkdir ash; \
2174         r=`${PWD_COMMAND}`; export r; \
2175         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2176         $(HOST_EXPORTS) \
2177         echo Configuring in ash; \
2178         cd ash || exit 1; \
2179         case $(srcdir) in \
2180           \.) \
2181             srcdiroption="--srcdir=."; \
2182             libsrcdir=".";; \
2183           /* | [A-Za-z]:[\\/]*) \
2184             srcdiroption="--srcdir=$(srcdir)/ash"; \
2185             libsrcdir="$$s/ash";; \
2186           *) \
2187             srcdiroption="--srcdir=../$(srcdir)/ash"; \
2188             libsrcdir="$$s/ash";; \
2189         esac; \
2190         $(SHELL) $${libsrcdir}/configure \
2191           $(HOST_CONFIGARGS) $${srcdiroption} \
2192           || exit 1
2193 @endif ash
2194
2195 .PHONY: all-ash maybe-all-ash
2196 maybe-all-ash:
2197 @if ash
2198 maybe-all-ash: all-ash
2199 all-ash: configure-ash
2200         @r=`${PWD_COMMAND}`; export r; \
2201         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2202         $(SET_LIB_PATH) \
2203         $(HOST_EXPORTS) \
2204         (cd ash && $(MAKE) $(FLAGS_TO_PASS) all)
2205 @endif ash
2206
2207 .PHONY: check-ash maybe-check-ash
2208 maybe-check-ash:
2209 @if ash
2210 maybe-check-ash: check-ash
2211
2212 check-ash:
2213         @r=`${PWD_COMMAND}`; export r; \
2214         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2215         $(SET_LIB_PATH) \
2216         $(HOST_EXPORTS) \
2217         (cd ash && $(MAKE) $(FLAGS_TO_PASS) check)
2218
2219 @endif ash
2220
2221 .PHONY: install-ash maybe-install-ash
2222 maybe-install-ash:
2223 @if ash
2224 maybe-install-ash: install-ash
2225
2226 install-ash: installdirs
2227         @r=`${PWD_COMMAND}`; export r; \
2228         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2229         $(SET_LIB_PATH) \
2230         $(HOST_EXPORTS) \
2231         (cd ash && $(MAKE) $(FLAGS_TO_PASS) install)
2232
2233 @endif ash
2234
2235 # Other targets (info, dvi, etc.)
2236
2237 .PHONY: maybe-info-ash info-ash
2238 maybe-info-ash:
2239 @if ash
2240 maybe-info-ash: info-ash
2241
2242 info-ash: \
2243     configure-ash 
2244         @[ -f ./ash/Makefile ] || exit 0; \
2245         r=`${PWD_COMMAND}`; export r; \
2246         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2247         $(SET_LIB_PATH) \
2248         $(HOST_EXPORTS) \
2249         for flag in $(EXTRA_HOST_FLAGS); do \
2250           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2251         done; \
2252         echo "Doing info in ash" ; \
2253         (cd ash && \
2254           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2255                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2256                   "RANLIB=$${RANLIB}" \
2257                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2258                   info) \
2259           || exit 1
2260
2261 @endif ash
2262
2263 .PHONY: maybe-dvi-ash dvi-ash
2264 maybe-dvi-ash:
2265 @if ash
2266 maybe-dvi-ash: dvi-ash
2267
2268 dvi-ash: \
2269     configure-ash 
2270         @[ -f ./ash/Makefile ] || exit 0; \
2271         r=`${PWD_COMMAND}`; export r; \
2272         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2273         $(SET_LIB_PATH) \
2274         $(HOST_EXPORTS) \
2275         for flag in $(EXTRA_HOST_FLAGS); do \
2276           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2277         done; \
2278         echo "Doing dvi in ash" ; \
2279         (cd ash && \
2280           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2281                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2282                   "RANLIB=$${RANLIB}" \
2283                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2284                   dvi) \
2285           || exit 1
2286
2287 @endif ash
2288
2289 .PHONY: maybe-TAGS-ash TAGS-ash
2290 maybe-TAGS-ash:
2291 @if ash
2292 maybe-TAGS-ash: TAGS-ash
2293
2294 TAGS-ash: \
2295     configure-ash 
2296         @[ -f ./ash/Makefile ] || exit 0; \
2297         r=`${PWD_COMMAND}`; export r; \
2298         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2299         $(SET_LIB_PATH) \
2300         $(HOST_EXPORTS) \
2301         for flag in $(EXTRA_HOST_FLAGS); do \
2302           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2303         done; \
2304         echo "Doing TAGS in ash" ; \
2305         (cd ash && \
2306           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2307                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2308                   "RANLIB=$${RANLIB}" \
2309                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2310                   TAGS) \
2311           || exit 1
2312
2313 @endif ash
2314
2315 .PHONY: maybe-install-info-ash install-info-ash
2316 maybe-install-info-ash:
2317 @if ash
2318 maybe-install-info-ash: install-info-ash
2319
2320 install-info-ash: \
2321     configure-ash \
2322     info-ash 
2323         @[ -f ./ash/Makefile ] || exit 0; \
2324         r=`${PWD_COMMAND}`; export r; \
2325         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2326         $(SET_LIB_PATH) \
2327         $(HOST_EXPORTS) \
2328         for flag in $(EXTRA_HOST_FLAGS); do \
2329           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2330         done; \
2331         echo "Doing install-info in ash" ; \
2332         (cd ash && \
2333           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2334                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2335                   "RANLIB=$${RANLIB}" \
2336                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2337                   install-info) \
2338           || exit 1
2339
2340 @endif ash
2341
2342 .PHONY: maybe-installcheck-ash installcheck-ash
2343 maybe-installcheck-ash:
2344 @if ash
2345 maybe-installcheck-ash: installcheck-ash
2346
2347 installcheck-ash: \
2348     configure-ash 
2349         @[ -f ./ash/Makefile ] || exit 0; \
2350         r=`${PWD_COMMAND}`; export r; \
2351         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2352         $(SET_LIB_PATH) \
2353         $(HOST_EXPORTS) \
2354         for flag in $(EXTRA_HOST_FLAGS); do \
2355           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2356         done; \
2357         echo "Doing installcheck in ash" ; \
2358         (cd ash && \
2359           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2360                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2361                   "RANLIB=$${RANLIB}" \
2362                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2363                   installcheck) \
2364           || exit 1
2365
2366 @endif ash
2367
2368 .PHONY: maybe-mostlyclean-ash mostlyclean-ash
2369 maybe-mostlyclean-ash:
2370 @if ash
2371 maybe-mostlyclean-ash: mostlyclean-ash
2372
2373 mostlyclean-ash: 
2374         @[ -f ./ash/Makefile ] || exit 0; \
2375         r=`${PWD_COMMAND}`; export r; \
2376         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2377         $(SET_LIB_PATH) \
2378         $(HOST_EXPORTS) \
2379         for flag in $(EXTRA_HOST_FLAGS); do \
2380           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2381         done; \
2382         echo "Doing mostlyclean in ash" ; \
2383         (cd ash && \
2384           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2385                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2386                   "RANLIB=$${RANLIB}" \
2387                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2388                   mostlyclean) \
2389           || exit 1
2390
2391 @endif ash
2392
2393 .PHONY: maybe-clean-ash clean-ash
2394 maybe-clean-ash:
2395 @if ash
2396 maybe-clean-ash: clean-ash
2397
2398 clean-ash: 
2399         @[ -f ./ash/Makefile ] || exit 0; \
2400         r=`${PWD_COMMAND}`; export r; \
2401         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2402         $(SET_LIB_PATH) \
2403         $(HOST_EXPORTS) \
2404         for flag in $(EXTRA_HOST_FLAGS); do \
2405           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2406         done; \
2407         echo "Doing clean in ash" ; \
2408         (cd ash && \
2409           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2410                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2411                   "RANLIB=$${RANLIB}" \
2412                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2413                   clean) \
2414           || exit 1
2415
2416 @endif ash
2417
2418 .PHONY: maybe-distclean-ash distclean-ash
2419 maybe-distclean-ash:
2420 @if ash
2421 maybe-distclean-ash: distclean-ash
2422
2423 distclean-ash: 
2424         @[ -f ./ash/Makefile ] || exit 0; \
2425         r=`${PWD_COMMAND}`; export r; \
2426         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2427         $(SET_LIB_PATH) \
2428         $(HOST_EXPORTS) \
2429         for flag in $(EXTRA_HOST_FLAGS); do \
2430           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2431         done; \
2432         echo "Doing distclean in ash" ; \
2433         (cd ash && \
2434           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2435                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2436                   "RANLIB=$${RANLIB}" \
2437                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2438                   distclean) \
2439           || exit 1
2440
2441 @endif ash
2442
2443 .PHONY: maybe-maintainer-clean-ash maintainer-clean-ash
2444 maybe-maintainer-clean-ash:
2445 @if ash
2446 maybe-maintainer-clean-ash: maintainer-clean-ash
2447
2448 maintainer-clean-ash: 
2449         @[ -f ./ash/Makefile ] || exit 0; \
2450         r=`${PWD_COMMAND}`; export r; \
2451         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2452         $(SET_LIB_PATH) \
2453         $(HOST_EXPORTS) \
2454         for flag in $(EXTRA_HOST_FLAGS); do \
2455           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2456         done; \
2457         echo "Doing maintainer-clean in ash" ; \
2458         (cd ash && \
2459           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2460                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2461                   "RANLIB=$${RANLIB}" \
2462                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2463                   maintainer-clean) \
2464           || exit 1
2465
2466 @endif ash
2467
2468
2469 .PHONY: configure-autoconf maybe-configure-autoconf
2470 maybe-configure-autoconf:
2471 @if autoconf
2472 maybe-configure-autoconf: configure-autoconf
2473 configure-autoconf:
2474         @test ! -f autoconf/Makefile || exit 0; \
2475         [ -d autoconf ] || mkdir autoconf; \
2476         r=`${PWD_COMMAND}`; export r; \
2477         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2478         $(HOST_EXPORTS) \
2479         echo Configuring in autoconf; \
2480         cd autoconf || exit 1; \
2481         case $(srcdir) in \
2482           \.) \
2483             srcdiroption="--srcdir=."; \
2484             libsrcdir=".";; \
2485           /* | [A-Za-z]:[\\/]*) \
2486             srcdiroption="--srcdir=$(srcdir)/autoconf"; \
2487             libsrcdir="$$s/autoconf";; \
2488           *) \
2489             srcdiroption="--srcdir=../$(srcdir)/autoconf"; \
2490             libsrcdir="$$s/autoconf";; \
2491         esac; \
2492         $(SHELL) $${libsrcdir}/configure \
2493           $(HOST_CONFIGARGS) $${srcdiroption} \
2494           || exit 1
2495 @endif autoconf
2496
2497 .PHONY: all-autoconf maybe-all-autoconf
2498 maybe-all-autoconf:
2499 @if autoconf
2500 maybe-all-autoconf: all-autoconf
2501 all-autoconf: configure-autoconf
2502         @r=`${PWD_COMMAND}`; export r; \
2503         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2504         $(SET_LIB_PATH) \
2505         $(HOST_EXPORTS) \
2506         (cd autoconf && $(MAKE) $(FLAGS_TO_PASS) all)
2507 @endif autoconf
2508
2509 .PHONY: check-autoconf maybe-check-autoconf
2510 maybe-check-autoconf:
2511 @if autoconf
2512 maybe-check-autoconf: check-autoconf
2513
2514 check-autoconf:
2515         @r=`${PWD_COMMAND}`; export r; \
2516         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2517         $(SET_LIB_PATH) \
2518         $(HOST_EXPORTS) \
2519         (cd autoconf && $(MAKE) $(FLAGS_TO_PASS) check)
2520
2521 @endif autoconf
2522
2523 .PHONY: install-autoconf maybe-install-autoconf
2524 maybe-install-autoconf:
2525 @if autoconf
2526 maybe-install-autoconf: install-autoconf
2527
2528 install-autoconf: installdirs
2529         @r=`${PWD_COMMAND}`; export r; \
2530         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2531         $(SET_LIB_PATH) \
2532         $(HOST_EXPORTS) \
2533         (cd autoconf && $(MAKE) $(FLAGS_TO_PASS) install)
2534
2535 @endif autoconf
2536
2537 # Other targets (info, dvi, etc.)
2538
2539 .PHONY: maybe-info-autoconf info-autoconf
2540 maybe-info-autoconf:
2541 @if autoconf
2542 maybe-info-autoconf: info-autoconf
2543
2544 info-autoconf: \
2545     configure-autoconf 
2546         @[ -f ./autoconf/Makefile ] || exit 0; \
2547         r=`${PWD_COMMAND}`; export r; \
2548         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2549         $(SET_LIB_PATH) \
2550         $(HOST_EXPORTS) \
2551         for flag in $(EXTRA_HOST_FLAGS); do \
2552           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2553         done; \
2554         echo "Doing info in autoconf" ; \
2555         (cd autoconf && \
2556           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2557                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2558                   "RANLIB=$${RANLIB}" \
2559                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2560                   info) \
2561           || exit 1
2562
2563 @endif autoconf
2564
2565 .PHONY: maybe-dvi-autoconf dvi-autoconf
2566 maybe-dvi-autoconf:
2567 @if autoconf
2568 maybe-dvi-autoconf: dvi-autoconf
2569
2570 dvi-autoconf: \
2571     configure-autoconf 
2572         @[ -f ./autoconf/Makefile ] || exit 0; \
2573         r=`${PWD_COMMAND}`; export r; \
2574         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2575         $(SET_LIB_PATH) \
2576         $(HOST_EXPORTS) \
2577         for flag in $(EXTRA_HOST_FLAGS); do \
2578           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2579         done; \
2580         echo "Doing dvi in autoconf" ; \
2581         (cd autoconf && \
2582           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2583                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2584                   "RANLIB=$${RANLIB}" \
2585                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2586                   dvi) \
2587           || exit 1
2588
2589 @endif autoconf
2590
2591 .PHONY: maybe-TAGS-autoconf TAGS-autoconf
2592 maybe-TAGS-autoconf:
2593 @if autoconf
2594 maybe-TAGS-autoconf: TAGS-autoconf
2595
2596 TAGS-autoconf: \
2597     configure-autoconf 
2598         @[ -f ./autoconf/Makefile ] || exit 0; \
2599         r=`${PWD_COMMAND}`; export r; \
2600         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2601         $(SET_LIB_PATH) \
2602         $(HOST_EXPORTS) \
2603         for flag in $(EXTRA_HOST_FLAGS); do \
2604           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2605         done; \
2606         echo "Doing TAGS in autoconf" ; \
2607         (cd autoconf && \
2608           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2609                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2610                   "RANLIB=$${RANLIB}" \
2611                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2612                   TAGS) \
2613           || exit 1
2614
2615 @endif autoconf
2616
2617 .PHONY: maybe-install-info-autoconf install-info-autoconf
2618 maybe-install-info-autoconf:
2619 @if autoconf
2620 maybe-install-info-autoconf: install-info-autoconf
2621
2622 install-info-autoconf: \
2623     configure-autoconf \
2624     info-autoconf 
2625         @[ -f ./autoconf/Makefile ] || exit 0; \
2626         r=`${PWD_COMMAND}`; export r; \
2627         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2628         $(SET_LIB_PATH) \
2629         $(HOST_EXPORTS) \
2630         for flag in $(EXTRA_HOST_FLAGS); do \
2631           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2632         done; \
2633         echo "Doing install-info in autoconf" ; \
2634         (cd autoconf && \
2635           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2636                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2637                   "RANLIB=$${RANLIB}" \
2638                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2639                   install-info) \
2640           || exit 1
2641
2642 @endif autoconf
2643
2644 .PHONY: maybe-installcheck-autoconf installcheck-autoconf
2645 maybe-installcheck-autoconf:
2646 @if autoconf
2647 maybe-installcheck-autoconf: installcheck-autoconf
2648
2649 installcheck-autoconf: \
2650     configure-autoconf 
2651         @[ -f ./autoconf/Makefile ] || exit 0; \
2652         r=`${PWD_COMMAND}`; export r; \
2653         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2654         $(SET_LIB_PATH) \
2655         $(HOST_EXPORTS) \
2656         for flag in $(EXTRA_HOST_FLAGS); do \
2657           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2658         done; \
2659         echo "Doing installcheck in autoconf" ; \
2660         (cd autoconf && \
2661           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2662                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2663                   "RANLIB=$${RANLIB}" \
2664                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2665                   installcheck) \
2666           || exit 1
2667
2668 @endif autoconf
2669
2670 .PHONY: maybe-mostlyclean-autoconf mostlyclean-autoconf
2671 maybe-mostlyclean-autoconf:
2672 @if autoconf
2673 maybe-mostlyclean-autoconf: mostlyclean-autoconf
2674
2675 mostlyclean-autoconf: 
2676         @[ -f ./autoconf/Makefile ] || exit 0; \
2677         r=`${PWD_COMMAND}`; export r; \
2678         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2679         $(SET_LIB_PATH) \
2680         $(HOST_EXPORTS) \
2681         for flag in $(EXTRA_HOST_FLAGS); do \
2682           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2683         done; \
2684         echo "Doing mostlyclean in autoconf" ; \
2685         (cd autoconf && \
2686           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2687                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2688                   "RANLIB=$${RANLIB}" \
2689                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2690                   mostlyclean) \
2691           || exit 1
2692
2693 @endif autoconf
2694
2695 .PHONY: maybe-clean-autoconf clean-autoconf
2696 maybe-clean-autoconf:
2697 @if autoconf
2698 maybe-clean-autoconf: clean-autoconf
2699
2700 clean-autoconf: 
2701         @[ -f ./autoconf/Makefile ] || exit 0; \
2702         r=`${PWD_COMMAND}`; export r; \
2703         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2704         $(SET_LIB_PATH) \
2705         $(HOST_EXPORTS) \
2706         for flag in $(EXTRA_HOST_FLAGS); do \
2707           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2708         done; \
2709         echo "Doing clean in autoconf" ; \
2710         (cd autoconf && \
2711           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2712                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2713                   "RANLIB=$${RANLIB}" \
2714                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2715                   clean) \
2716           || exit 1
2717
2718 @endif autoconf
2719
2720 .PHONY: maybe-distclean-autoconf distclean-autoconf
2721 maybe-distclean-autoconf:
2722 @if autoconf
2723 maybe-distclean-autoconf: distclean-autoconf
2724
2725 distclean-autoconf: 
2726         @[ -f ./autoconf/Makefile ] || exit 0; \
2727         r=`${PWD_COMMAND}`; export r; \
2728         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2729         $(SET_LIB_PATH) \
2730         $(HOST_EXPORTS) \
2731         for flag in $(EXTRA_HOST_FLAGS); do \
2732           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2733         done; \
2734         echo "Doing distclean in autoconf" ; \
2735         (cd autoconf && \
2736           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2737                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2738                   "RANLIB=$${RANLIB}" \
2739                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2740                   distclean) \
2741           || exit 1
2742
2743 @endif autoconf
2744
2745 .PHONY: maybe-maintainer-clean-autoconf maintainer-clean-autoconf
2746 maybe-maintainer-clean-autoconf:
2747 @if autoconf
2748 maybe-maintainer-clean-autoconf: maintainer-clean-autoconf
2749
2750 maintainer-clean-autoconf: 
2751         @[ -f ./autoconf/Makefile ] || exit 0; \
2752         r=`${PWD_COMMAND}`; export r; \
2753         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2754         $(SET_LIB_PATH) \
2755         $(HOST_EXPORTS) \
2756         for flag in $(EXTRA_HOST_FLAGS); do \
2757           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2758         done; \
2759         echo "Doing maintainer-clean in autoconf" ; \
2760         (cd autoconf && \
2761           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2762                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2763                   "RANLIB=$${RANLIB}" \
2764                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2765                   maintainer-clean) \
2766           || exit 1
2767
2768 @endif autoconf
2769
2770
2771 .PHONY: configure-automake maybe-configure-automake
2772 maybe-configure-automake:
2773 @if automake
2774 maybe-configure-automake: configure-automake
2775 configure-automake:
2776         @test ! -f automake/Makefile || exit 0; \
2777         [ -d automake ] || mkdir automake; \
2778         r=`${PWD_COMMAND}`; export r; \
2779         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2780         $(HOST_EXPORTS) \
2781         echo Configuring in automake; \
2782         cd automake || exit 1; \
2783         case $(srcdir) in \
2784           \.) \
2785             srcdiroption="--srcdir=."; \
2786             libsrcdir=".";; \
2787           /* | [A-Za-z]:[\\/]*) \
2788             srcdiroption="--srcdir=$(srcdir)/automake"; \
2789             libsrcdir="$$s/automake";; \
2790           *) \
2791             srcdiroption="--srcdir=../$(srcdir)/automake"; \
2792             libsrcdir="$$s/automake";; \
2793         esac; \
2794         $(SHELL) $${libsrcdir}/configure \
2795           $(HOST_CONFIGARGS) $${srcdiroption} \
2796           || exit 1
2797 @endif automake
2798
2799 .PHONY: all-automake maybe-all-automake
2800 maybe-all-automake:
2801 @if automake
2802 maybe-all-automake: all-automake
2803 all-automake: configure-automake
2804         @r=`${PWD_COMMAND}`; export r; \
2805         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2806         $(SET_LIB_PATH) \
2807         $(HOST_EXPORTS) \
2808         (cd automake && $(MAKE) $(FLAGS_TO_PASS) all)
2809 @endif automake
2810
2811 .PHONY: check-automake maybe-check-automake
2812 maybe-check-automake:
2813 @if automake
2814 maybe-check-automake: check-automake
2815
2816 check-automake:
2817         @r=`${PWD_COMMAND}`; export r; \
2818         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2819         $(SET_LIB_PATH) \
2820         $(HOST_EXPORTS) \
2821         (cd automake && $(MAKE) $(FLAGS_TO_PASS) check)
2822
2823 @endif automake
2824
2825 .PHONY: install-automake maybe-install-automake
2826 maybe-install-automake:
2827 @if automake
2828 maybe-install-automake: install-automake
2829
2830 install-automake: installdirs
2831         @r=`${PWD_COMMAND}`; export r; \
2832         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2833         $(SET_LIB_PATH) \
2834         $(HOST_EXPORTS) \
2835         (cd automake && $(MAKE) $(FLAGS_TO_PASS) install)
2836
2837 @endif automake
2838
2839 # Other targets (info, dvi, etc.)
2840
2841 .PHONY: maybe-info-automake info-automake
2842 maybe-info-automake:
2843 @if automake
2844 maybe-info-automake: info-automake
2845
2846 info-automake: \
2847     configure-automake 
2848         @[ -f ./automake/Makefile ] || exit 0; \
2849         r=`${PWD_COMMAND}`; export r; \
2850         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2851         $(SET_LIB_PATH) \
2852         $(HOST_EXPORTS) \
2853         for flag in $(EXTRA_HOST_FLAGS); do \
2854           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2855         done; \
2856         echo "Doing info in automake" ; \
2857         (cd automake && \
2858           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2859                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2860                   "RANLIB=$${RANLIB}" \
2861                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2862                   info) \
2863           || exit 1
2864
2865 @endif automake
2866
2867 .PHONY: maybe-dvi-automake dvi-automake
2868 maybe-dvi-automake:
2869 @if automake
2870 maybe-dvi-automake: dvi-automake
2871
2872 dvi-automake: \
2873     configure-automake 
2874         @[ -f ./automake/Makefile ] || exit 0; \
2875         r=`${PWD_COMMAND}`; export r; \
2876         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2877         $(SET_LIB_PATH) \
2878         $(HOST_EXPORTS) \
2879         for flag in $(EXTRA_HOST_FLAGS); do \
2880           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2881         done; \
2882         echo "Doing dvi in automake" ; \
2883         (cd automake && \
2884           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2885                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2886                   "RANLIB=$${RANLIB}" \
2887                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2888                   dvi) \
2889           || exit 1
2890
2891 @endif automake
2892
2893 .PHONY: maybe-TAGS-automake TAGS-automake
2894 maybe-TAGS-automake:
2895 @if automake
2896 maybe-TAGS-automake: TAGS-automake
2897
2898 TAGS-automake: \
2899     configure-automake 
2900         @[ -f ./automake/Makefile ] || exit 0; \
2901         r=`${PWD_COMMAND}`; export r; \
2902         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2903         $(SET_LIB_PATH) \
2904         $(HOST_EXPORTS) \
2905         for flag in $(EXTRA_HOST_FLAGS); do \
2906           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2907         done; \
2908         echo "Doing TAGS in automake" ; \
2909         (cd automake && \
2910           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2911                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2912                   "RANLIB=$${RANLIB}" \
2913                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2914                   TAGS) \
2915           || exit 1
2916
2917 @endif automake
2918
2919 .PHONY: maybe-install-info-automake install-info-automake
2920 maybe-install-info-automake:
2921 @if automake
2922 maybe-install-info-automake: install-info-automake
2923
2924 install-info-automake: \
2925     configure-automake \
2926     info-automake 
2927         @[ -f ./automake/Makefile ] || exit 0; \
2928         r=`${PWD_COMMAND}`; export r; \
2929         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2930         $(SET_LIB_PATH) \
2931         $(HOST_EXPORTS) \
2932         for flag in $(EXTRA_HOST_FLAGS); do \
2933           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2934         done; \
2935         echo "Doing install-info in automake" ; \
2936         (cd automake && \
2937           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2938                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2939                   "RANLIB=$${RANLIB}" \
2940                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2941                   install-info) \
2942           || exit 1
2943
2944 @endif automake
2945
2946 .PHONY: maybe-installcheck-automake installcheck-automake
2947 maybe-installcheck-automake:
2948 @if automake
2949 maybe-installcheck-automake: installcheck-automake
2950
2951 installcheck-automake: \
2952     configure-automake 
2953         @[ -f ./automake/Makefile ] || exit 0; \
2954         r=`${PWD_COMMAND}`; export r; \
2955         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2956         $(SET_LIB_PATH) \
2957         $(HOST_EXPORTS) \
2958         for flag in $(EXTRA_HOST_FLAGS); do \
2959           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2960         done; \
2961         echo "Doing installcheck in automake" ; \
2962         (cd automake && \
2963           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2964                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2965                   "RANLIB=$${RANLIB}" \
2966                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2967                   installcheck) \
2968           || exit 1
2969
2970 @endif automake
2971
2972 .PHONY: maybe-mostlyclean-automake mostlyclean-automake
2973 maybe-mostlyclean-automake:
2974 @if automake
2975 maybe-mostlyclean-automake: mostlyclean-automake
2976
2977 mostlyclean-automake: 
2978         @[ -f ./automake/Makefile ] || exit 0; \
2979         r=`${PWD_COMMAND}`; export r; \
2980         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2981         $(SET_LIB_PATH) \
2982         $(HOST_EXPORTS) \
2983         for flag in $(EXTRA_HOST_FLAGS); do \
2984           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
2985         done; \
2986         echo "Doing mostlyclean in automake" ; \
2987         (cd automake && \
2988           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
2989                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
2990                   "RANLIB=$${RANLIB}" \
2991                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
2992                   mostlyclean) \
2993           || exit 1
2994
2995 @endif automake
2996
2997 .PHONY: maybe-clean-automake clean-automake
2998 maybe-clean-automake:
2999 @if automake
3000 maybe-clean-automake: clean-automake
3001
3002 clean-automake: 
3003         @[ -f ./automake/Makefile ] || exit 0; \
3004         r=`${PWD_COMMAND}`; export r; \
3005         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3006         $(SET_LIB_PATH) \
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 clean in automake" ; \
3012         (cd automake && \
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                   clean) \
3018           || exit 1
3019
3020 @endif automake
3021
3022 .PHONY: maybe-distclean-automake distclean-automake
3023 maybe-distclean-automake:
3024 @if automake
3025 maybe-distclean-automake: distclean-automake
3026
3027 distclean-automake: 
3028         @[ -f ./automake/Makefile ] || exit 0; \
3029         r=`${PWD_COMMAND}`; export r; \
3030         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3031         $(SET_LIB_PATH) \
3032         $(HOST_EXPORTS) \
3033         for flag in $(EXTRA_HOST_FLAGS); do \
3034           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3035         done; \
3036         echo "Doing distclean in automake" ; \
3037         (cd automake && \
3038           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3039                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3040                   "RANLIB=$${RANLIB}" \
3041                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3042                   distclean) \
3043           || exit 1
3044
3045 @endif automake
3046
3047 .PHONY: maybe-maintainer-clean-automake maintainer-clean-automake
3048 maybe-maintainer-clean-automake:
3049 @if automake
3050 maybe-maintainer-clean-automake: maintainer-clean-automake
3051
3052 maintainer-clean-automake: 
3053         @[ -f ./automake/Makefile ] || exit 0; \
3054         r=`${PWD_COMMAND}`; export r; \
3055         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3056         $(SET_LIB_PATH) \
3057         $(HOST_EXPORTS) \
3058         for flag in $(EXTRA_HOST_FLAGS); do \
3059           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3060         done; \
3061         echo "Doing maintainer-clean in automake" ; \
3062         (cd automake && \
3063           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3064                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3065                   "RANLIB=$${RANLIB}" \
3066                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3067                   maintainer-clean) \
3068           || exit 1
3069
3070 @endif automake
3071
3072
3073 .PHONY: configure-bash maybe-configure-bash
3074 maybe-configure-bash:
3075 @if bash
3076 maybe-configure-bash: configure-bash
3077 configure-bash:
3078         @test ! -f bash/Makefile || exit 0; \
3079         [ -d bash ] || mkdir bash; \
3080         r=`${PWD_COMMAND}`; export r; \
3081         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3082         $(HOST_EXPORTS) \
3083         echo Configuring in bash; \
3084         cd bash || exit 1; \
3085         case $(srcdir) in \
3086           \.) \
3087             srcdiroption="--srcdir=."; \
3088             libsrcdir=".";; \
3089           /* | [A-Za-z]:[\\/]*) \
3090             srcdiroption="--srcdir=$(srcdir)/bash"; \
3091             libsrcdir="$$s/bash";; \
3092           *) \
3093             srcdiroption="--srcdir=../$(srcdir)/bash"; \
3094             libsrcdir="$$s/bash";; \
3095         esac; \
3096         $(SHELL) $${libsrcdir}/configure \
3097           $(HOST_CONFIGARGS) $${srcdiroption} \
3098           || exit 1
3099 @endif bash
3100
3101 .PHONY: all-bash maybe-all-bash
3102 maybe-all-bash:
3103 @if bash
3104 maybe-all-bash: all-bash
3105 all-bash: configure-bash
3106         @r=`${PWD_COMMAND}`; export r; \
3107         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3108         $(SET_LIB_PATH) \
3109         $(HOST_EXPORTS) \
3110         (cd bash && $(MAKE) $(FLAGS_TO_PASS) all)
3111 @endif bash
3112
3113 .PHONY: check-bash maybe-check-bash
3114 maybe-check-bash:
3115 @if bash
3116 maybe-check-bash: check-bash
3117
3118 check-bash:
3119         @r=`${PWD_COMMAND}`; export r; \
3120         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3121         $(SET_LIB_PATH) \
3122         $(HOST_EXPORTS) \
3123         (cd bash && $(MAKE) $(FLAGS_TO_PASS) check)
3124
3125 @endif bash
3126
3127 .PHONY: install-bash maybe-install-bash
3128 maybe-install-bash:
3129 @if bash
3130 maybe-install-bash: install-bash
3131
3132 install-bash: installdirs
3133         @r=`${PWD_COMMAND}`; export r; \
3134         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3135         $(SET_LIB_PATH) \
3136         $(HOST_EXPORTS) \
3137         (cd bash && $(MAKE) $(FLAGS_TO_PASS) install)
3138
3139 @endif bash
3140
3141 # Other targets (info, dvi, etc.)
3142
3143 .PHONY: maybe-info-bash info-bash
3144 maybe-info-bash:
3145 @if bash
3146 maybe-info-bash: info-bash
3147
3148 info-bash: \
3149     configure-bash 
3150         @[ -f ./bash/Makefile ] || exit 0; \
3151         r=`${PWD_COMMAND}`; export r; \
3152         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3153         $(SET_LIB_PATH) \
3154         $(HOST_EXPORTS) \
3155         for flag in $(EXTRA_HOST_FLAGS); do \
3156           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3157         done; \
3158         echo "Doing info in bash" ; \
3159         (cd bash && \
3160           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3161                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3162                   "RANLIB=$${RANLIB}" \
3163                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3164                   info) \
3165           || exit 1
3166
3167 @endif bash
3168
3169 .PHONY: maybe-dvi-bash dvi-bash
3170 maybe-dvi-bash:
3171 @if bash
3172 maybe-dvi-bash: dvi-bash
3173
3174 dvi-bash: \
3175     configure-bash 
3176         @[ -f ./bash/Makefile ] || exit 0; \
3177         r=`${PWD_COMMAND}`; export r; \
3178         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3179         $(SET_LIB_PATH) \
3180         $(HOST_EXPORTS) \
3181         for flag in $(EXTRA_HOST_FLAGS); do \
3182           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3183         done; \
3184         echo "Doing dvi in bash" ; \
3185         (cd bash && \
3186           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3187                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3188                   "RANLIB=$${RANLIB}" \
3189                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3190                   dvi) \
3191           || exit 1
3192
3193 @endif bash
3194
3195 .PHONY: maybe-TAGS-bash TAGS-bash
3196 maybe-TAGS-bash:
3197 @if bash
3198 maybe-TAGS-bash: TAGS-bash
3199
3200 TAGS-bash: \
3201     configure-bash 
3202         @[ -f ./bash/Makefile ] || exit 0; \
3203         r=`${PWD_COMMAND}`; export r; \
3204         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3205         $(SET_LIB_PATH) \
3206         $(HOST_EXPORTS) \
3207         for flag in $(EXTRA_HOST_FLAGS); do \
3208           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3209         done; \
3210         echo "Doing TAGS in bash" ; \
3211         (cd bash && \
3212           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3213                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3214                   "RANLIB=$${RANLIB}" \
3215                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3216                   TAGS) \
3217           || exit 1
3218
3219 @endif bash
3220
3221 .PHONY: maybe-install-info-bash install-info-bash
3222 maybe-install-info-bash:
3223 @if bash
3224 maybe-install-info-bash: install-info-bash
3225
3226 install-info-bash: \
3227     configure-bash \
3228     info-bash 
3229         @[ -f ./bash/Makefile ] || exit 0; \
3230         r=`${PWD_COMMAND}`; export r; \
3231         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3232         $(SET_LIB_PATH) \
3233         $(HOST_EXPORTS) \
3234         for flag in $(EXTRA_HOST_FLAGS); do \
3235           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3236         done; \
3237         echo "Doing install-info in bash" ; \
3238         (cd bash && \
3239           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3240                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3241                   "RANLIB=$${RANLIB}" \
3242                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3243                   install-info) \
3244           || exit 1
3245
3246 @endif bash
3247
3248 .PHONY: maybe-installcheck-bash installcheck-bash
3249 maybe-installcheck-bash:
3250 @if bash
3251 maybe-installcheck-bash: installcheck-bash
3252
3253 installcheck-bash: \
3254     configure-bash 
3255         @[ -f ./bash/Makefile ] || exit 0; \
3256         r=`${PWD_COMMAND}`; export r; \
3257         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3258         $(SET_LIB_PATH) \
3259         $(HOST_EXPORTS) \
3260         for flag in $(EXTRA_HOST_FLAGS); do \
3261           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3262         done; \
3263         echo "Doing installcheck in bash" ; \
3264         (cd bash && \
3265           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3266                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3267                   "RANLIB=$${RANLIB}" \
3268                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3269                   installcheck) \
3270           || exit 1
3271
3272 @endif bash
3273
3274 .PHONY: maybe-mostlyclean-bash mostlyclean-bash
3275 maybe-mostlyclean-bash:
3276 @if bash
3277 maybe-mostlyclean-bash: mostlyclean-bash
3278
3279 mostlyclean-bash: 
3280         @[ -f ./bash/Makefile ] || exit 0; \
3281         r=`${PWD_COMMAND}`; export r; \
3282         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3283         $(SET_LIB_PATH) \
3284         $(HOST_EXPORTS) \
3285         for flag in $(EXTRA_HOST_FLAGS); do \
3286           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3287         done; \
3288         echo "Doing mostlyclean in bash" ; \
3289         (cd bash && \
3290           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3291                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3292                   "RANLIB=$${RANLIB}" \
3293                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3294                   mostlyclean) \
3295           || exit 1
3296
3297 @endif bash
3298
3299 .PHONY: maybe-clean-bash clean-bash
3300 maybe-clean-bash:
3301 @if bash
3302 maybe-clean-bash: clean-bash
3303
3304 clean-bash: 
3305         @[ -f ./bash/Makefile ] || exit 0; \
3306         r=`${PWD_COMMAND}`; export r; \
3307         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3308         $(SET_LIB_PATH) \
3309         $(HOST_EXPORTS) \
3310         for flag in $(EXTRA_HOST_FLAGS); do \
3311           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3312         done; \
3313         echo "Doing clean in bash" ; \
3314         (cd bash && \
3315           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3316                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3317                   "RANLIB=$${RANLIB}" \
3318                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3319                   clean) \
3320           || exit 1
3321
3322 @endif bash
3323
3324 .PHONY: maybe-distclean-bash distclean-bash
3325 maybe-distclean-bash:
3326 @if bash
3327 maybe-distclean-bash: distclean-bash
3328
3329 distclean-bash: 
3330         @[ -f ./bash/Makefile ] || exit 0; \
3331         r=`${PWD_COMMAND}`; export r; \
3332         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3333         $(SET_LIB_PATH) \
3334         $(HOST_EXPORTS) \
3335         for flag in $(EXTRA_HOST_FLAGS); do \
3336           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3337         done; \
3338         echo "Doing distclean in bash" ; \
3339         (cd bash && \
3340           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3341                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3342                   "RANLIB=$${RANLIB}" \
3343                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3344                   distclean) \
3345           || exit 1
3346
3347 @endif bash
3348
3349 .PHONY: maybe-maintainer-clean-bash maintainer-clean-bash
3350 maybe-maintainer-clean-bash:
3351 @if bash
3352 maybe-maintainer-clean-bash: maintainer-clean-bash
3353
3354 maintainer-clean-bash: 
3355         @[ -f ./bash/Makefile ] || exit 0; \
3356         r=`${PWD_COMMAND}`; export r; \
3357         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3358         $(SET_LIB_PATH) \
3359         $(HOST_EXPORTS) \
3360         for flag in $(EXTRA_HOST_FLAGS); do \
3361           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3362         done; \
3363         echo "Doing maintainer-clean in bash" ; \
3364         (cd bash && \
3365           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3366                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3367                   "RANLIB=$${RANLIB}" \
3368                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3369                   maintainer-clean) \
3370           || exit 1
3371
3372 @endif bash
3373
3374
3375 .PHONY: configure-bfd maybe-configure-bfd
3376 maybe-configure-bfd:
3377 @if bfd
3378 maybe-configure-bfd: configure-bfd
3379 configure-bfd:
3380         @test ! -f bfd/Makefile || exit 0; \
3381         [ -d bfd ] || mkdir bfd; \
3382         r=`${PWD_COMMAND}`; export r; \
3383         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3384         $(HOST_EXPORTS) \
3385         echo Configuring in bfd; \
3386         cd bfd || exit 1; \
3387         case $(srcdir) in \
3388           \.) \
3389             srcdiroption="--srcdir=."; \
3390             libsrcdir=".";; \
3391           /* | [A-Za-z]:[\\/]*) \
3392             srcdiroption="--srcdir=$(srcdir)/bfd"; \
3393             libsrcdir="$$s/bfd";; \
3394           *) \
3395             srcdiroption="--srcdir=../$(srcdir)/bfd"; \
3396             libsrcdir="$$s/bfd";; \
3397         esac; \
3398         $(SHELL) $${libsrcdir}/configure \
3399           $(HOST_CONFIGARGS) $${srcdiroption} \
3400           || exit 1
3401 @endif bfd
3402
3403 .PHONY: all-bfd maybe-all-bfd
3404 maybe-all-bfd:
3405 @if bfd
3406 maybe-all-bfd: all-bfd
3407 all-bfd: configure-bfd
3408         @r=`${PWD_COMMAND}`; export r; \
3409         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3410         $(SET_LIB_PATH) \
3411         $(HOST_EXPORTS) \
3412         (cd bfd && $(MAKE) $(FLAGS_TO_PASS) all)
3413 @endif bfd
3414
3415 .PHONY: check-bfd maybe-check-bfd
3416 maybe-check-bfd:
3417 @if bfd
3418 maybe-check-bfd: check-bfd
3419
3420 check-bfd:
3421         @r=`${PWD_COMMAND}`; export r; \
3422         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3423         $(SET_LIB_PATH) \
3424         $(HOST_EXPORTS) \
3425         (cd bfd && $(MAKE) $(FLAGS_TO_PASS) check)
3426
3427 @endif bfd
3428
3429 .PHONY: install-bfd maybe-install-bfd
3430 maybe-install-bfd:
3431 @if bfd
3432 maybe-install-bfd: install-bfd
3433
3434 install-bfd: installdirs
3435         @r=`${PWD_COMMAND}`; export r; \
3436         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3437         $(SET_LIB_PATH) \
3438         $(HOST_EXPORTS) \
3439         (cd bfd && $(MAKE) $(FLAGS_TO_PASS) install)
3440
3441 @endif bfd
3442
3443 # Other targets (info, dvi, etc.)
3444
3445 .PHONY: maybe-info-bfd info-bfd
3446 maybe-info-bfd:
3447 @if bfd
3448 maybe-info-bfd: info-bfd
3449
3450 info-bfd: \
3451     configure-bfd 
3452         @[ -f ./bfd/Makefile ] || exit 0; \
3453         r=`${PWD_COMMAND}`; export r; \
3454         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3455         $(SET_LIB_PATH) \
3456         $(HOST_EXPORTS) \
3457         for flag in $(EXTRA_HOST_FLAGS); do \
3458           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3459         done; \
3460         echo "Doing info in bfd" ; \
3461         (cd bfd && \
3462           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3463                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3464                   "RANLIB=$${RANLIB}" \
3465                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3466                   info) \
3467           || exit 1
3468
3469 @endif bfd
3470
3471 .PHONY: maybe-dvi-bfd dvi-bfd
3472 maybe-dvi-bfd:
3473 @if bfd
3474 maybe-dvi-bfd: dvi-bfd
3475
3476 dvi-bfd: \
3477     configure-bfd 
3478         @[ -f ./bfd/Makefile ] || exit 0; \
3479         r=`${PWD_COMMAND}`; export r; \
3480         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3481         $(SET_LIB_PATH) \
3482         $(HOST_EXPORTS) \
3483         for flag in $(EXTRA_HOST_FLAGS); do \
3484           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3485         done; \
3486         echo "Doing dvi in bfd" ; \
3487         (cd bfd && \
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}" \
3492                   dvi) \
3493           || exit 1
3494
3495 @endif bfd
3496
3497 .PHONY: maybe-TAGS-bfd TAGS-bfd
3498 maybe-TAGS-bfd:
3499 @if bfd
3500 maybe-TAGS-bfd: TAGS-bfd
3501
3502 TAGS-bfd: \
3503     configure-bfd 
3504         @[ -f ./bfd/Makefile ] || exit 0; \
3505         r=`${PWD_COMMAND}`; export r; \
3506         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3507         $(SET_LIB_PATH) \
3508         $(HOST_EXPORTS) \
3509         for flag in $(EXTRA_HOST_FLAGS); do \
3510           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3511         done; \
3512         echo "Doing TAGS in bfd" ; \
3513         (cd bfd && \
3514           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3515                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3516                   "RANLIB=$${RANLIB}" \
3517                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3518                   TAGS) \
3519           || exit 1
3520
3521 @endif bfd
3522
3523 .PHONY: maybe-install-info-bfd install-info-bfd
3524 maybe-install-info-bfd:
3525 @if bfd
3526 maybe-install-info-bfd: install-info-bfd
3527
3528 install-info-bfd: \
3529     configure-bfd \
3530     info-bfd 
3531         @[ -f ./bfd/Makefile ] || exit 0; \
3532         r=`${PWD_COMMAND}`; export r; \
3533         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3534         $(SET_LIB_PATH) \
3535         $(HOST_EXPORTS) \
3536         for flag in $(EXTRA_HOST_FLAGS); do \
3537           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3538         done; \
3539         echo "Doing install-info in bfd" ; \
3540         (cd bfd && \
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}" \
3545                   install-info) \
3546           || exit 1
3547
3548 @endif bfd
3549
3550 .PHONY: maybe-installcheck-bfd installcheck-bfd
3551 maybe-installcheck-bfd:
3552 @if bfd
3553 maybe-installcheck-bfd: installcheck-bfd
3554
3555 installcheck-bfd: \
3556     configure-bfd 
3557         @[ -f ./bfd/Makefile ] || exit 0; \
3558         r=`${PWD_COMMAND}`; export r; \
3559         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3560         $(SET_LIB_PATH) \
3561         $(HOST_EXPORTS) \
3562         for flag in $(EXTRA_HOST_FLAGS); do \
3563           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3564         done; \
3565         echo "Doing installcheck in bfd" ; \
3566         (cd bfd && \
3567           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3568                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3569                   "RANLIB=$${RANLIB}" \
3570                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3571                   installcheck) \
3572           || exit 1
3573
3574 @endif bfd
3575
3576 .PHONY: maybe-mostlyclean-bfd mostlyclean-bfd
3577 maybe-mostlyclean-bfd:
3578 @if bfd
3579 maybe-mostlyclean-bfd: mostlyclean-bfd
3580
3581 mostlyclean-bfd: 
3582         @[ -f ./bfd/Makefile ] || exit 0; \
3583         r=`${PWD_COMMAND}`; export r; \
3584         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3585         $(SET_LIB_PATH) \
3586         $(HOST_EXPORTS) \
3587         for flag in $(EXTRA_HOST_FLAGS); do \
3588           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3589         done; \
3590         echo "Doing mostlyclean in bfd" ; \
3591         (cd bfd && \
3592           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3593                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3594                   "RANLIB=$${RANLIB}" \
3595                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3596                   mostlyclean) \
3597           || exit 1
3598
3599 @endif bfd
3600
3601 .PHONY: maybe-clean-bfd clean-bfd
3602 maybe-clean-bfd:
3603 @if bfd
3604 maybe-clean-bfd: clean-bfd
3605
3606 clean-bfd: 
3607         @[ -f ./bfd/Makefile ] || exit 0; \
3608         r=`${PWD_COMMAND}`; export r; \
3609         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3610         $(SET_LIB_PATH) \
3611         $(HOST_EXPORTS) \
3612         for flag in $(EXTRA_HOST_FLAGS); do \
3613           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3614         done; \
3615         echo "Doing clean in bfd" ; \
3616         (cd bfd && \
3617           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3618                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3619                   "RANLIB=$${RANLIB}" \
3620                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3621                   clean) \
3622           || exit 1
3623
3624 @endif bfd
3625
3626 .PHONY: maybe-distclean-bfd distclean-bfd
3627 maybe-distclean-bfd:
3628 @if bfd
3629 maybe-distclean-bfd: distclean-bfd
3630
3631 distclean-bfd: 
3632         @[ -f ./bfd/Makefile ] || exit 0; \
3633         r=`${PWD_COMMAND}`; export r; \
3634         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3635         $(SET_LIB_PATH) \
3636         $(HOST_EXPORTS) \
3637         for flag in $(EXTRA_HOST_FLAGS); do \
3638           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3639         done; \
3640         echo "Doing distclean in bfd" ; \
3641         (cd bfd && \
3642           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3643                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3644                   "RANLIB=$${RANLIB}" \
3645                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3646                   distclean) \
3647           || exit 1
3648
3649 @endif bfd
3650
3651 .PHONY: maybe-maintainer-clean-bfd maintainer-clean-bfd
3652 maybe-maintainer-clean-bfd:
3653 @if bfd
3654 maybe-maintainer-clean-bfd: maintainer-clean-bfd
3655
3656 maintainer-clean-bfd: 
3657         @[ -f ./bfd/Makefile ] || exit 0; \
3658         r=`${PWD_COMMAND}`; export r; \
3659         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3660         $(SET_LIB_PATH) \
3661         $(HOST_EXPORTS) \
3662         for flag in $(EXTRA_HOST_FLAGS); do \
3663           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3664         done; \
3665         echo "Doing maintainer-clean in bfd" ; \
3666         (cd bfd && \
3667           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3668                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3669                   "RANLIB=$${RANLIB}" \
3670                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3671                   maintainer-clean) \
3672           || exit 1
3673
3674 @endif bfd
3675
3676
3677 .PHONY: configure-opcodes maybe-configure-opcodes
3678 maybe-configure-opcodes:
3679 @if opcodes
3680 maybe-configure-opcodes: configure-opcodes
3681 configure-opcodes:
3682         @test ! -f opcodes/Makefile || exit 0; \
3683         [ -d opcodes ] || mkdir opcodes; \
3684         r=`${PWD_COMMAND}`; export r; \
3685         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3686         $(HOST_EXPORTS) \
3687         echo Configuring in opcodes; \
3688         cd opcodes || exit 1; \
3689         case $(srcdir) in \
3690           \.) \
3691             srcdiroption="--srcdir=."; \
3692             libsrcdir=".";; \
3693           /* | [A-Za-z]:[\\/]*) \
3694             srcdiroption="--srcdir=$(srcdir)/opcodes"; \
3695             libsrcdir="$$s/opcodes";; \
3696           *) \
3697             srcdiroption="--srcdir=../$(srcdir)/opcodes"; \
3698             libsrcdir="$$s/opcodes";; \
3699         esac; \
3700         $(SHELL) $${libsrcdir}/configure \
3701           $(HOST_CONFIGARGS) $${srcdiroption} \
3702           || exit 1
3703 @endif opcodes
3704
3705 .PHONY: all-opcodes maybe-all-opcodes
3706 maybe-all-opcodes:
3707 @if opcodes
3708 maybe-all-opcodes: all-opcodes
3709 all-opcodes: configure-opcodes
3710         @r=`${PWD_COMMAND}`; export r; \
3711         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3712         $(SET_LIB_PATH) \
3713         $(HOST_EXPORTS) \
3714         (cd opcodes && $(MAKE) $(FLAGS_TO_PASS) all)
3715 @endif opcodes
3716
3717 .PHONY: check-opcodes maybe-check-opcodes
3718 maybe-check-opcodes:
3719 @if opcodes
3720 maybe-check-opcodes: check-opcodes
3721
3722 check-opcodes:
3723         @r=`${PWD_COMMAND}`; export r; \
3724         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3725         $(SET_LIB_PATH) \
3726         $(HOST_EXPORTS) \
3727         (cd opcodes && $(MAKE) $(FLAGS_TO_PASS) check)
3728
3729 @endif opcodes
3730
3731 .PHONY: install-opcodes maybe-install-opcodes
3732 maybe-install-opcodes:
3733 @if opcodes
3734 maybe-install-opcodes: install-opcodes
3735
3736 install-opcodes: installdirs
3737         @r=`${PWD_COMMAND}`; export r; \
3738         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3739         $(SET_LIB_PATH) \
3740         $(HOST_EXPORTS) \
3741         (cd opcodes && $(MAKE) $(FLAGS_TO_PASS) install)
3742
3743 @endif opcodes
3744
3745 # Other targets (info, dvi, etc.)
3746
3747 .PHONY: maybe-info-opcodes info-opcodes
3748 maybe-info-opcodes:
3749 @if opcodes
3750 maybe-info-opcodes: info-opcodes
3751
3752 info-opcodes: \
3753     configure-opcodes 
3754         @[ -f ./opcodes/Makefile ] || exit 0; \
3755         r=`${PWD_COMMAND}`; export r; \
3756         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3757         $(SET_LIB_PATH) \
3758         $(HOST_EXPORTS) \
3759         for flag in $(EXTRA_HOST_FLAGS); do \
3760           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3761         done; \
3762         echo "Doing info in opcodes" ; \
3763         (cd opcodes && \
3764           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3765                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3766                   "RANLIB=$${RANLIB}" \
3767                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3768                   info) \
3769           || exit 1
3770
3771 @endif opcodes
3772
3773 .PHONY: maybe-dvi-opcodes dvi-opcodes
3774 maybe-dvi-opcodes:
3775 @if opcodes
3776 maybe-dvi-opcodes: dvi-opcodes
3777
3778 dvi-opcodes: \
3779     configure-opcodes 
3780         @[ -f ./opcodes/Makefile ] || exit 0; \
3781         r=`${PWD_COMMAND}`; export r; \
3782         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3783         $(SET_LIB_PATH) \
3784         $(HOST_EXPORTS) \
3785         for flag in $(EXTRA_HOST_FLAGS); do \
3786           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3787         done; \
3788         echo "Doing dvi in opcodes" ; \
3789         (cd opcodes && \
3790           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3791                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3792                   "RANLIB=$${RANLIB}" \
3793                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3794                   dvi) \
3795           || exit 1
3796
3797 @endif opcodes
3798
3799 .PHONY: maybe-TAGS-opcodes TAGS-opcodes
3800 maybe-TAGS-opcodes:
3801 @if opcodes
3802 maybe-TAGS-opcodes: TAGS-opcodes
3803
3804 TAGS-opcodes: \
3805     configure-opcodes 
3806         @[ -f ./opcodes/Makefile ] || exit 0; \
3807         r=`${PWD_COMMAND}`; export r; \
3808         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3809         $(SET_LIB_PATH) \
3810         $(HOST_EXPORTS) \
3811         for flag in $(EXTRA_HOST_FLAGS); do \
3812           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3813         done; \
3814         echo "Doing TAGS in opcodes" ; \
3815         (cd opcodes && \
3816           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3817                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3818                   "RANLIB=$${RANLIB}" \
3819                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3820                   TAGS) \
3821           || exit 1
3822
3823 @endif opcodes
3824
3825 .PHONY: maybe-install-info-opcodes install-info-opcodes
3826 maybe-install-info-opcodes:
3827 @if opcodes
3828 maybe-install-info-opcodes: install-info-opcodes
3829
3830 install-info-opcodes: \
3831     configure-opcodes \
3832     info-opcodes 
3833         @[ -f ./opcodes/Makefile ] || exit 0; \
3834         r=`${PWD_COMMAND}`; export r; \
3835         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3836         $(SET_LIB_PATH) \
3837         $(HOST_EXPORTS) \
3838         for flag in $(EXTRA_HOST_FLAGS); do \
3839           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3840         done; \
3841         echo "Doing install-info in opcodes" ; \
3842         (cd opcodes && \
3843           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3844                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3845                   "RANLIB=$${RANLIB}" \
3846                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3847                   install-info) \
3848           || exit 1
3849
3850 @endif opcodes
3851
3852 .PHONY: maybe-installcheck-opcodes installcheck-opcodes
3853 maybe-installcheck-opcodes:
3854 @if opcodes
3855 maybe-installcheck-opcodes: installcheck-opcodes
3856
3857 installcheck-opcodes: \
3858     configure-opcodes 
3859         @[ -f ./opcodes/Makefile ] || exit 0; \
3860         r=`${PWD_COMMAND}`; export r; \
3861         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3862         $(SET_LIB_PATH) \
3863         $(HOST_EXPORTS) \
3864         for flag in $(EXTRA_HOST_FLAGS); do \
3865           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3866         done; \
3867         echo "Doing installcheck in opcodes" ; \
3868         (cd opcodes && \
3869           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3870                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3871                   "RANLIB=$${RANLIB}" \
3872                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3873                   installcheck) \
3874           || exit 1
3875
3876 @endif opcodes
3877
3878 .PHONY: maybe-mostlyclean-opcodes mostlyclean-opcodes
3879 maybe-mostlyclean-opcodes:
3880 @if opcodes
3881 maybe-mostlyclean-opcodes: mostlyclean-opcodes
3882
3883 mostlyclean-opcodes: 
3884         @[ -f ./opcodes/Makefile ] || exit 0; \
3885         r=`${PWD_COMMAND}`; export r; \
3886         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3887         $(SET_LIB_PATH) \
3888         $(HOST_EXPORTS) \
3889         for flag in $(EXTRA_HOST_FLAGS); do \
3890           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3891         done; \
3892         echo "Doing mostlyclean in opcodes" ; \
3893         (cd opcodes && \
3894           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3895                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3896                   "RANLIB=$${RANLIB}" \
3897                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3898                   mostlyclean) \
3899           || exit 1
3900
3901 @endif opcodes
3902
3903 .PHONY: maybe-clean-opcodes clean-opcodes
3904 maybe-clean-opcodes:
3905 @if opcodes
3906 maybe-clean-opcodes: clean-opcodes
3907
3908 clean-opcodes: 
3909         @[ -f ./opcodes/Makefile ] || exit 0; \
3910         r=`${PWD_COMMAND}`; export r; \
3911         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3912         $(SET_LIB_PATH) \
3913         $(HOST_EXPORTS) \
3914         for flag in $(EXTRA_HOST_FLAGS); do \
3915           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3916         done; \
3917         echo "Doing clean in opcodes" ; \
3918         (cd opcodes && \
3919           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3920                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3921                   "RANLIB=$${RANLIB}" \
3922                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3923                   clean) \
3924           || exit 1
3925
3926 @endif opcodes
3927
3928 .PHONY: maybe-distclean-opcodes distclean-opcodes
3929 maybe-distclean-opcodes:
3930 @if opcodes
3931 maybe-distclean-opcodes: distclean-opcodes
3932
3933 distclean-opcodes: 
3934         @[ -f ./opcodes/Makefile ] || exit 0; \
3935         r=`${PWD_COMMAND}`; export r; \
3936         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3937         $(SET_LIB_PATH) \
3938         $(HOST_EXPORTS) \
3939         for flag in $(EXTRA_HOST_FLAGS); do \
3940           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3941         done; \
3942         echo "Doing distclean in opcodes" ; \
3943         (cd opcodes && \
3944           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3945                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3946                   "RANLIB=$${RANLIB}" \
3947                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3948                   distclean) \
3949           || exit 1
3950
3951 @endif opcodes
3952
3953 .PHONY: maybe-maintainer-clean-opcodes maintainer-clean-opcodes
3954 maybe-maintainer-clean-opcodes:
3955 @if opcodes
3956 maybe-maintainer-clean-opcodes: maintainer-clean-opcodes
3957
3958 maintainer-clean-opcodes: 
3959         @[ -f ./opcodes/Makefile ] || exit 0; \
3960         r=`${PWD_COMMAND}`; export r; \
3961         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3962         $(SET_LIB_PATH) \
3963         $(HOST_EXPORTS) \
3964         for flag in $(EXTRA_HOST_FLAGS); do \
3965           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
3966         done; \
3967         echo "Doing maintainer-clean in opcodes" ; \
3968         (cd opcodes && \
3969           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
3970                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
3971                   "RANLIB=$${RANLIB}" \
3972                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
3973                   maintainer-clean) \
3974           || exit 1
3975
3976 @endif opcodes
3977
3978
3979 .PHONY: configure-binutils maybe-configure-binutils
3980 maybe-configure-binutils:
3981 @if binutils
3982 maybe-configure-binutils: configure-binutils
3983 configure-binutils:
3984         @test ! -f binutils/Makefile || exit 0; \
3985         [ -d binutils ] || mkdir binutils; \
3986         r=`${PWD_COMMAND}`; export r; \
3987         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
3988         $(HOST_EXPORTS) \
3989         echo Configuring in binutils; \
3990         cd binutils || exit 1; \
3991         case $(srcdir) in \
3992           \.) \
3993             srcdiroption="--srcdir=."; \
3994             libsrcdir=".";; \
3995           /* | [A-Za-z]:[\\/]*) \
3996             srcdiroption="--srcdir=$(srcdir)/binutils"; \
3997             libsrcdir="$$s/binutils";; \
3998           *) \
3999             srcdiroption="--srcdir=../$(srcdir)/binutils"; \
4000             libsrcdir="$$s/binutils";; \
4001         esac; \
4002         $(SHELL) $${libsrcdir}/configure \
4003           $(HOST_CONFIGARGS) $${srcdiroption} \
4004           || exit 1
4005 @endif binutils
4006
4007 .PHONY: all-binutils maybe-all-binutils
4008 maybe-all-binutils:
4009 @if binutils
4010 maybe-all-binutils: all-binutils
4011 all-binutils: configure-binutils
4012         @r=`${PWD_COMMAND}`; export r; \
4013         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4014         $(SET_LIB_PATH) \
4015         $(HOST_EXPORTS) \
4016         (cd binutils && $(MAKE) $(FLAGS_TO_PASS) all)
4017 @endif binutils
4018
4019 .PHONY: check-binutils maybe-check-binutils
4020 maybe-check-binutils:
4021 @if binutils
4022 maybe-check-binutils: check-binutils
4023
4024 check-binutils:
4025         @r=`${PWD_COMMAND}`; export r; \
4026         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4027         $(SET_LIB_PATH) \
4028         $(HOST_EXPORTS) \
4029         (cd binutils && $(MAKE) $(FLAGS_TO_PASS) check)
4030
4031 @endif binutils
4032
4033 .PHONY: install-binutils maybe-install-binutils
4034 maybe-install-binutils:
4035 @if binutils
4036 maybe-install-binutils: install-binutils
4037
4038 install-binutils: installdirs
4039         @r=`${PWD_COMMAND}`; export r; \
4040         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4041         $(SET_LIB_PATH) \
4042         $(HOST_EXPORTS) \
4043         (cd binutils && $(MAKE) $(FLAGS_TO_PASS) install)
4044
4045 @endif binutils
4046
4047 # Other targets (info, dvi, etc.)
4048
4049 .PHONY: maybe-info-binutils info-binutils
4050 maybe-info-binutils:
4051 @if binutils
4052 maybe-info-binutils: info-binutils
4053
4054 info-binutils: \
4055     configure-binutils 
4056         @[ -f ./binutils/Makefile ] || exit 0; \
4057         r=`${PWD_COMMAND}`; export r; \
4058         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4059         $(SET_LIB_PATH) \
4060         $(HOST_EXPORTS) \
4061         for flag in $(EXTRA_HOST_FLAGS); do \
4062           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4063         done; \
4064         echo "Doing info in binutils" ; \
4065         (cd binutils && \
4066           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4067                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4068                   "RANLIB=$${RANLIB}" \
4069                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4070                   info) \
4071           || exit 1
4072
4073 @endif binutils
4074
4075 .PHONY: maybe-dvi-binutils dvi-binutils
4076 maybe-dvi-binutils:
4077 @if binutils
4078 maybe-dvi-binutils: dvi-binutils
4079
4080 dvi-binutils: \
4081     configure-binutils 
4082         @[ -f ./binutils/Makefile ] || exit 0; \
4083         r=`${PWD_COMMAND}`; export r; \
4084         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4085         $(SET_LIB_PATH) \
4086         $(HOST_EXPORTS) \
4087         for flag in $(EXTRA_HOST_FLAGS); do \
4088           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4089         done; \
4090         echo "Doing dvi in binutils" ; \
4091         (cd binutils && \
4092           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4093                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4094                   "RANLIB=$${RANLIB}" \
4095                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4096                   dvi) \
4097           || exit 1
4098
4099 @endif binutils
4100
4101 .PHONY: maybe-TAGS-binutils TAGS-binutils
4102 maybe-TAGS-binutils:
4103 @if binutils
4104 maybe-TAGS-binutils: TAGS-binutils
4105
4106 TAGS-binutils: \
4107     configure-binutils 
4108         @[ -f ./binutils/Makefile ] || exit 0; \
4109         r=`${PWD_COMMAND}`; export r; \
4110         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4111         $(SET_LIB_PATH) \
4112         $(HOST_EXPORTS) \
4113         for flag in $(EXTRA_HOST_FLAGS); do \
4114           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4115         done; \
4116         echo "Doing TAGS in binutils" ; \
4117         (cd binutils && \
4118           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4119                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4120                   "RANLIB=$${RANLIB}" \
4121                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4122                   TAGS) \
4123           || exit 1
4124
4125 @endif binutils
4126
4127 .PHONY: maybe-install-info-binutils install-info-binutils
4128 maybe-install-info-binutils:
4129 @if binutils
4130 maybe-install-info-binutils: install-info-binutils
4131
4132 install-info-binutils: \
4133     configure-binutils \
4134     info-binutils 
4135         @[ -f ./binutils/Makefile ] || exit 0; \
4136         r=`${PWD_COMMAND}`; export r; \
4137         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4138         $(SET_LIB_PATH) \
4139         $(HOST_EXPORTS) \
4140         for flag in $(EXTRA_HOST_FLAGS); do \
4141           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4142         done; \
4143         echo "Doing install-info in binutils" ; \
4144         (cd binutils && \
4145           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4146                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4147                   "RANLIB=$${RANLIB}" \
4148                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4149                   install-info) \
4150           || exit 1
4151
4152 @endif binutils
4153
4154 .PHONY: maybe-installcheck-binutils installcheck-binutils
4155 maybe-installcheck-binutils:
4156 @if binutils
4157 maybe-installcheck-binutils: installcheck-binutils
4158
4159 installcheck-binutils: \
4160     configure-binutils 
4161         @[ -f ./binutils/Makefile ] || exit 0; \
4162         r=`${PWD_COMMAND}`; export r; \
4163         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4164         $(SET_LIB_PATH) \
4165         $(HOST_EXPORTS) \
4166         for flag in $(EXTRA_HOST_FLAGS); do \
4167           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4168         done; \
4169         echo "Doing installcheck in binutils" ; \
4170         (cd binutils && \
4171           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4172                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4173                   "RANLIB=$${RANLIB}" \
4174                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4175                   installcheck) \
4176           || exit 1
4177
4178 @endif binutils
4179
4180 .PHONY: maybe-mostlyclean-binutils mostlyclean-binutils
4181 maybe-mostlyclean-binutils:
4182 @if binutils
4183 maybe-mostlyclean-binutils: mostlyclean-binutils
4184
4185 mostlyclean-binutils: 
4186         @[ -f ./binutils/Makefile ] || exit 0; \
4187         r=`${PWD_COMMAND}`; export r; \
4188         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4189         $(SET_LIB_PATH) \
4190         $(HOST_EXPORTS) \
4191         for flag in $(EXTRA_HOST_FLAGS); do \
4192           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4193         done; \
4194         echo "Doing mostlyclean in binutils" ; \
4195         (cd binutils && \
4196           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4197                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4198                   "RANLIB=$${RANLIB}" \
4199                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4200                   mostlyclean) \
4201           || exit 1
4202
4203 @endif binutils
4204
4205 .PHONY: maybe-clean-binutils clean-binutils
4206 maybe-clean-binutils:
4207 @if binutils
4208 maybe-clean-binutils: clean-binutils
4209
4210 clean-binutils: 
4211         @[ -f ./binutils/Makefile ] || exit 0; \
4212         r=`${PWD_COMMAND}`; export r; \
4213         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4214         $(SET_LIB_PATH) \
4215         $(HOST_EXPORTS) \
4216         for flag in $(EXTRA_HOST_FLAGS); do \
4217           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4218         done; \
4219         echo "Doing clean in binutils" ; \
4220         (cd binutils && \
4221           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4222                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4223                   "RANLIB=$${RANLIB}" \
4224                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4225                   clean) \
4226           || exit 1
4227
4228 @endif binutils
4229
4230 .PHONY: maybe-distclean-binutils distclean-binutils
4231 maybe-distclean-binutils:
4232 @if binutils
4233 maybe-distclean-binutils: distclean-binutils
4234
4235 distclean-binutils: 
4236         @[ -f ./binutils/Makefile ] || exit 0; \
4237         r=`${PWD_COMMAND}`; export r; \
4238         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4239         $(SET_LIB_PATH) \
4240         $(HOST_EXPORTS) \
4241         for flag in $(EXTRA_HOST_FLAGS); do \
4242           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4243         done; \
4244         echo "Doing distclean in binutils" ; \
4245         (cd binutils && \
4246           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4247                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4248                   "RANLIB=$${RANLIB}" \
4249                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4250                   distclean) \
4251           || exit 1
4252
4253 @endif binutils
4254
4255 .PHONY: maybe-maintainer-clean-binutils maintainer-clean-binutils
4256 maybe-maintainer-clean-binutils:
4257 @if binutils
4258 maybe-maintainer-clean-binutils: maintainer-clean-binutils
4259
4260 maintainer-clean-binutils: 
4261         @[ -f ./binutils/Makefile ] || exit 0; \
4262         r=`${PWD_COMMAND}`; export r; \
4263         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4264         $(SET_LIB_PATH) \
4265         $(HOST_EXPORTS) \
4266         for flag in $(EXTRA_HOST_FLAGS); do \
4267           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4268         done; \
4269         echo "Doing maintainer-clean in binutils" ; \
4270         (cd binutils && \
4271           $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
4272                   "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
4273                   "RANLIB=$${RANLIB}" \
4274                   "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" \
4275                   maintainer-clean) \
4276           || exit 1
4277
4278 @endif binutils
4279
4280
4281 .PHONY: configure-bison maybe-configure-bison
4282 maybe-configure-bison:
4283 @if bison
4284 maybe-configure-bison: configure-bison
4285 configure-bison:
4286         @test ! -f bison/Makefile || exit 0; \
4287         [ -d bison ] || mkdir bison; \
4288         r=`${PWD_COMMAND}`; export r; \
4289         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4290         $(HOST_EXPORTS) \
4291         echo Configuring in bison; \
4292         cd bison || exit 1; \
4293         case $(srcdir) in \
4294           \.) \
4295             srcdiroption="--srcdir=."; \
4296             libsrcdir=".";; \
4297           /* | [A-Za-z]:[\\/]*) \
4298             srcdiroption="--srcdir=$(srcdir)/bison"; \
4299             libsrcdir="$$s/bison";; \
4300           *) \
4301             srcdiroption="--srcdir=../$(srcdir)/bison"; \
4302             libsrcdir="$$s/bison";; \
4303         esac; \
4304         $(SHELL) $${libsrcdir}/configure \
4305           $(HOST_CONFIGARGS) $${srcdiroption} \
4306           || exit 1
4307 @endif bison
4308
4309 .PHONY: all-bison maybe-all-bison
4310 maybe-all-bison:
4311 @if bison
4312 maybe-all-bison: all-bison
4313 all-bison: configure-bison
4314         @r=`${PWD_COMMAND}`; export r; \
4315         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4316         $(SET_LIB_PATH) \
4317         $(HOST_EXPORTS) \
4318         (cd bison && $(MAKE) $(FLAGS_TO_PASS) all)
4319 @endif bison
4320
4321 .PHONY: check-bison maybe-check-bison
4322 maybe-check-bison:
4323 @if bison
4324 maybe-check-bison: check-bison
4325
4326 # This module is only tested in a native toolchain.
4327 check-bison:
4328         @if [ '$(host)' = '$(target)' ] ; then \
4329           r=`${PWD_COMMAND}`; export r; \
4330           s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4331           $(SET_LIB_PATH) \
4332           $(HOST_EXPORTS) \
4333           (cd bison && $(MAKE) $(FLAGS_TO_PASS) check); \
4334         fi
4335
4336 @endif bison
4337
4338 .PHONY: install-bison maybe-install-bison
4339 maybe-install-bison:
4340 @if bison
4341 maybe-install-bison: install-bison
4342
4343 install-bison: installdirs
4344         @r=`${PWD_COMMAND}`; export r; \
4345         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4346         $(SET_LIB_PATH) \
4347         $(HOST_EXPORTS) \
4348         (cd bison && $(MAKE) $(FLAGS_TO_PASS) install)
4349
4350 @endif bison
4351
4352 # Other targets (info, dvi, etc.)
4353
4354 .PHONY: maybe-info-bison info-bison
4355 maybe-info-bison:
4356 @if bison
4357 maybe-info-bison: info-bison
4358
4359 info-bison: \
4360     configure-bison 
4361         @[ -f ./bison/Makefile ] || exit 0; \
4362         r=`${PWD_COMMAND}`; export r; \
4363         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
4364         $(SET_LIB_PATH) \
4365         $(HOST_EXPORTS) \
4366         for flag in $(EXTRA_HOST_FLAGS); do \
4367           eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
4368         done; \