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