OSDN Git Service

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