OSDN Git Service

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