OSDN Git Service

Fix typos.
[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
108 # Build programs are put under this directory.
109 BUILD_SUBDIR = @build_subdir@
110 # This is set by the configure script to the arguments to use when configuring
111 # directories built for the build system.
112 BUILD_CONFIGARGS = @build_configargs@
113
114 # This is the list of variables to export in the environment when
115 # configuring any subdirectory.  It must also be exported whenever
116 # recursing into a build directory in case that directory's Makefile
117 # re-runs configure.
118 BASE_EXPORTS = \
119         FLEX="$(FLEX)"; export FLEX; \
120         LEX="$(LEX)"; export LEX; \
121         BISON="$(BISON)"; export BISON; \
122         YACC="$(YACC)"; export YACC; \
123         M4="$(M4)"; export M4; \
124         MAKEINFO="$(MAKEINFO)"; export MAKEINFO;
125
126 # This is the list of variables to export in the environment when
127 # configuring subdirectories for the build system.
128 BUILD_EXPORTS = \
129         $(BASE_EXPORTS) \
130         AR="$(AR_FOR_BUILD)"; export AR; \
131         AS="$(AS_FOR_BUILD)"; export AS; \
132         CC="$(CC_FOR_BUILD)"; export CC; \
133         CFLAGS="$(CFLAGS_FOR_BUILD)"; export CFLAGS; \
134         CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
135         CXX="$(CXX_FOR_BUILD)"; export CXX; \
136         CXXFLAGS="$(CXXFLAGS_FOR_BUILD)"; export CXXFLAGS; \
137         GCJ="$(GCJ_FOR_BUILD)"; export GCJ; \
138         GFORTRAN="$(GFORTRAN_FOR_BUILD)"; export GFORTRAN; \
139         DLLTOOL="$(DLLTOOL_FOR_BUILD)"; export DLLTOOL; \
140         LD="$(LD_FOR_BUILD)"; export LD; \
141         LDFLAGS="$(LDFLAGS_FOR_BUILD)"; export LDFLAGS; \
142         NM="$(NM_FOR_BUILD)"; export NM; \
143         RANLIB="$(RANLIB_FOR_BUILD)"; export RANLIB; \
144         WINDRES="$(WINDRES_FOR_BUILD)"; export WINDRES;
145
146 # This is the list of directories to built for the host system.
147 SUBDIRS = @configdirs@
148 # This is set by the configure script to the arguments to use when configuring
149 # directories built for the host system.
150 HOST_CONFIGARGS = @host_configargs@
151 # This is the list of variables to export in the environment when
152 # configuring subdirectories for the host system.
153 HOST_EXPORTS = \
154         $(BASE_EXPORTS) \
155         CC="$(CC)"; export CC; \
156         CFLAGS="$(CFLAGS)"; export CFLAGS; \
157         CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
158         CXX="$(CXX)"; export CXX; \
159         CXXFLAGS="$(CXXFLAGS)"; export CXXFLAGS; \
160         AR="$(AR)"; export AR; \
161         AS="$(AS)"; export AS; \
162         CC_FOR_BUILD="$(CC_FOR_BUILD)"; export CC_FOR_BUILD; \
163         DLLTOOL="$(DLLTOOL)"; export DLLTOOL; \
164         LD="$(LD)"; export LD; \
165         LDFLAGS="$(LDFLAGS)"; export LDFLAGS; \
166         NM="$(NM)"; export NM; \
167         RANLIB="$(RANLIB)"; export RANLIB; \
168         WINDRES="$(WINDRES)"; export WINDRES; \
169         OBJCOPY="$(OBJCOPY)"; export OBJCOPY; \
170         OBJDUMP="$(OBJDUMP)"; export OBJDUMP; \
171         TOPLEVEL_CONFIGURE_ARGUMENTS="$(TOPLEVEL_CONFIGURE_ARGUMENTS)"; export TOPLEVEL_CONFIGURE_ARGUMENTS; \
172         GMPLIBS="$(HOST_GMPLIBS)"; export GMPLIBS; \
173         GMPINC="$(HOST_GMPINC)"; export GMPINC;
174
175 # Similar, for later GCC stages.
176 STAGE_HOST_EXPORTS = \
177         $(HOST_EXPORTS) \
178         CC="$(STAGE_CC_WRAPPER) $$r/prev-gcc/xgcc$(exeext) -B$$r/prev-gcc/ -B$(build_tooldir)/bin/"; export CC; \
179         CC_FOR_BUILD="$(STAGE_CC_WRAPPER) $$r/prev-gcc/xgcc$(exeext) -B$$r/prev-gcc/ -B$(build_tooldir)/bin/"; export CC_FOR_BUILD;
180
181 # This is set by the configure script to the list of directories which
182 # should be built using the target tools.
183 TARGET_CONFIGDIRS = @target_configdirs@
184 # Target libraries are put under this directory:
185 TARGET_SUBDIR = @target_subdir@
186 # This is set by the configure script to the arguments to use when configuring
187 # directories built for the target.
188 TARGET_CONFIGARGS = @target_configargs@
189 # This is the list of variables to export in the environment when
190 # configuring subdirectories for the host system.
191 BASE_TARGET_EXPORTS = \
192         $(BASE_EXPORTS) \
193         AR="$(AR_FOR_TARGET)"; export AR; \
194         AS="$(AS_FOR_TARGET)"; export AS; \
195         CC="$(CC_FOR_TARGET)"; export CC; \
196         CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
197         CONFIG_SHELL="$(SHELL)"; export CONFIG_SHELL; \
198         CPPFLAGS="$(CFLAGS_FOR_TARGET)"; export CPPFLAGS; \
199         CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
200         GCJ="$(GCJ_FOR_TARGET)"; export GCJ; \
201         GFORTRAN="$(GFORTRAN_FOR_TARGET)"; export GFORTRAN; \
202         DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
203         LD="$(LD_FOR_TARGET)"; export LD; \
204         LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
205         NM="$(NM_FOR_TARGET)"; export NM; \
206         RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
207         WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES;
208
209 RAW_CXX_TARGET_EXPORTS = \
210         $(BASE_TARGET_EXPORTS) \
211         CXX_FOR_TARGET="$(RAW_CXX_FOR_TARGET)"; export CXX_FOR_TARGET; \
212         CXX="$(RAW_CXX_FOR_TARGET)"; export CXX;
213
214 NORMAL_TARGET_EXPORTS = \
215         $(BASE_TARGET_EXPORTS) \
216         CXX="$(CXX_FOR_TARGET)"; export CXX;
217
218 # Where to find GMP
219 HOST_GMPLIBS = @gmplibs@
220 HOST_GMPINC = @gmpinc@
221
222 # ----------------------------------------------
223 # Programs producing files for the BUILD machine
224 # ----------------------------------------------
225
226 SHELL = @config_shell@
227
228 # pwd command to use.  Allow user to override default by setting PWDCMD in
229 # the environment to account for automounters.  The make variable must not
230 # be called PWDCMD, otherwise the value set here is passed to make
231 # subprocesses and overrides the setting from the user's environment.
232 # Don't use PWD since it is a common shell environment variable and we
233 # don't want to corrupt it.
234 PWD_COMMAND = $${PWDCMD-pwd}
235
236 # compilers to use to create programs which must be run in the build
237 # environment.
238 CC_FOR_BUILD = @CC_FOR_BUILD@
239 CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
240
241 CXX_FOR_BUILD = $(CXX)
242
243 # Special variables passed down in EXTRA_GCC_FLAGS.  They are defined
244 # here so that they can be overridden by Makefile fragments.
245 BUILD_PREFIX = @BUILD_PREFIX@
246 BUILD_PREFIX_1 = @BUILD_PREFIX_1@
247
248 # Flags to pass to stage2 and later makes.  They are defined
249 # here so that they can be overridden by Makefile fragments.
250 BOOT_CFLAGS= -g -O2
251
252 CONFIGURED_BISON = @CONFIGURED_BISON@
253 BISON = `if [ -f $$r/$(BUILD_SUBDIR)/bison/tests/bison ] ; then \
254             echo $$r/$(BUILD_SUBDIR)/bison/tests/bison ; \
255          else \
256             echo ${CONFIGURED_BISON} ; \
257          fi`
258
259 CONFIGURED_YACC = @CONFIGURED_YACC@
260 YACC = `if [ -f $$r/$(BUILD_SUBDIR)/bison/tests/bison ] ; then \
261             echo $$r/$(BUILD_SUBDIR)/bison/tests/bison -y ; \
262         elif [ -f $$r/$(BUILD_SUBDIR)/byacc/byacc ] ; then \
263             echo $$r/$(BUILD_SUBDIR)/byacc/byacc ; \
264         else \
265             echo ${CONFIGURED_YACC} ; \
266         fi`
267
268 CONFIGURED_FLEX = @CONFIGURED_FLEX@
269 FLEX = `if [ -f $$r/$(BUILD_SUBDIR)/flex/flex ] ; \
270         then echo $$r/$(BUILD_SUBDIR)/flex/flex ; \
271         else echo ${CONFIGURED_FLEX} ; fi`
272
273 CONFIGURED_LEX = @CONFIGURED_LEX@
274 LEX = `if [ -f $$r/$(BUILD_SUBDIR)/flex/flex ] ; \
275         then echo $$r/$(BUILD_SUBDIR)/flex/flex ; \
276         else echo ${CONFIGURED_LEX} ; fi`
277
278 CONFIGURED_M4 = @CONFIGURED_M4@
279 M4 = `if [ -f $$r/$(BUILD_SUBDIR)/m4/m4 ] ; \
280         then echo $$r/$(BUILD_SUBDIR)/m4/m4 ; \
281         else echo ${CONFIGURED_M4} ; fi`
282
283 # For an installed makeinfo, we require it to be from texinfo 4.2 or
284 # higher, else we use the "missing" dummy.  We also pass the subdirectory
285 # makeinfo even if only the Makefile is there, because Texinfo builds its
286 # manual when made, and it requires its own version.
287 CONFIGURED_MAKEINFO = @CONFIGURED_MAKEINFO@
288 MAKEINFO = `if [ -f $$r/$(BUILD_SUBDIR)/texinfo/makeinfo/Makefile ] ; \
289         then echo $$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo ; \
290         else if (${CONFIGURED_MAKEINFO} --version \
291           | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[2-9]|[5-9])') >/dev/null 2>&1; \
292         then echo ${CONFIGURED_MAKEINFO}; else echo $$s/missing makeinfo; fi; fi`
293
294 # This just becomes part of the MAKEINFO definition passed down to
295 # sub-makes.  It lets flags be given on the command line while still
296 # using the makeinfo from the object tree.
297 # (Default to avoid splitting info files by setting the threshold high.)
298 MAKEINFOFLAGS = --split-size=5000000
299
300 EXPECT = `if [ -f $$r/expect/expect ] ; \
301         then echo $$r/expect/expect ; \
302         else echo expect ; fi`
303
304 RUNTEST = `if [ -f $$s/dejagnu/runtest ] ; \
305         then echo $$s/dejagnu/runtest ; \
306         else echo runtest ; fi`
307
308 # ---------------------------------------------
309 # Programs producing files for the HOST machine
310 # ---------------------------------------------
311
312 # This is the list of directories that may be needed in RPATH_ENVVAR
313 # so that programs built for the host machine work.
314 HOST_LIB_PATH = $$r/bfd:$$r/opcodes
315
316 AS = @AS@
317
318 AR = @AR@
319 AR_FLAGS = rc
320
321 CC = @CC@
322 CFLAGS = @CFLAGS@
323 LIBCFLAGS = $(CFLAGS)
324
325 CXX = @CXX@
326 CXXFLAGS = @CXXFLAGS@
327 LIBCXXFLAGS = $(CXXFLAGS) -fno-implicit-templates
328
329 DLLTOOL = @DLLTOOL@
330
331 NM = @NM@
332
333 LD = @LD@
334 LDFLAGS = 
335
336 RANLIB = @RANLIB@
337
338 WINDRES = @WINDRES@
339
340 PICFLAG = 
341
342 # -----------------------------------------------
343 # Programs producing files for the TARGET machine
344 # -----------------------------------------------
345
346 # This is the list of directories that may be needed in RPATH_ENVVAR
347 # so that prorgams built for the target machine work.
348 TARGET_LIB_PATH = $$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs:$$r/$(TARGET_SUBDIR)/libmudflap/.libs
349
350 FLAGS_FOR_TARGET = @FLAGS_FOR_TARGET@
351
352 AR_FOR_TARGET=@AR_FOR_TARGET@
353 CONFIGURED_AR_FOR_TARGET=@CONFIGURED_AR_FOR_TARGET@
354 USUAL_AR_FOR_TARGET = ` \
355   if [ -f $$r/binutils/ar ] ; then \
356     echo $$r/binutils/ar ; \
357   else \
358     if [ '$(host)' = '$(target)' ] ; then \
359       echo $(AR); \
360     else \
361       echo $(CONFIGURED_AR_FOR_TARGET) ; \
362     fi; \
363   fi`
364
365 AS_FOR_TARGET=@AS_FOR_TARGET@
366 CONFIGURED_AS_FOR_TARGET=@CONFIGURED_AS_FOR_TARGET@
367 USUAL_AS_FOR_TARGET = ` \
368   if [ -f $$r/gas/as-new ] ; then \
369     echo $$r/gas/as-new ; \
370   elif [ -f $$r/gcc/xgcc ]; then \
371     $(CC_FOR_TARGET) -print-prog-name=as ; \
372   else \
373     if [ '$(host)' = '$(target)' ] ; then \
374       echo $(AS); \
375     else \
376       echo $(CONFIGURED_AS_FOR_TARGET) ; \
377     fi; \
378   fi`
379
380 CC_FOR_TARGET = @CC_FOR_TARGET@
381 # During gcc bootstrap, if we use some random cc for stage1 then
382 # CFLAGS will be just -g.  We want to ensure that TARGET libraries
383 # (which we know are built with gcc) are built with optimizations so
384 # prepend -O2 when setting CFLAGS_FOR_TARGET.
385 CFLAGS_FOR_TARGET = -O2 $(CFLAGS)
386 # If GCC_FOR_TARGET is not overriden on the command line, then this
387 # variable is passed down to the gcc Makefile, where it is used to
388 # build libgcc2.a.  We define it here so that it can itself be
389 # overridden on the command line.
390 GCC_FOR_TARGET=@GCC_FOR_TARGET@
391 USUAL_GCC_FOR_TARGET = $(STAGE_CC_WRAPPER) $$r/gcc/xgcc -B$$r/gcc/ $(FLAGS_FOR_TARGET)
392 LIBCFLAGS_FOR_TARGET = $(CFLAGS_FOR_TARGET)
393
394 CXX_FOR_TARGET = @CXX_FOR_TARGET@
395 RAW_CXX_FOR_TARGET = @RAW_CXX_FOR_TARGET@
396 CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@
397 RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE = @RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE@
398 CXXFLAGS_FOR_TARGET = $(CXXFLAGS)
399 LIBCXXFLAGS_FOR_TARGET = $(CXXFLAGS_FOR_TARGET) -fno-implicit-templates
400
401 DLLTOOL_FOR_TARGET=@DLLTOOL_FOR_TARGET@
402 CONFIGURED_DLLTOOL_FOR_TARGET=@CONFIGURED_DLLTOOL_FOR_TARGET@
403 USUAL_DLLTOOL_FOR_TARGET = ` \
404   if [ -f $$r/binutils/dlltool ] ; then \
405     echo $$r/binutils/dlltool ; \
406   else \
407     if [ '$(host)' = '$(target)' ] ; then \
408       echo $(DLLTOOL); \
409     else \
410       echo $(CONFIGURED_DLLTOOL_FOR_TARGET) ; \
411     fi; \
412   fi`
413
414 GCJ_FOR_TARGET = @GCJ_FOR_TARGET@
415 GFORTRAN_FOR_TARGET = @GFORTRAN_FOR_TARGET@
416
417 LD_FOR_TARGET=@LD_FOR_TARGET@
418 CONFIGURED_LD_FOR_TARGET=@CONFIGURED_LD_FOR_TARGET@
419 USUAL_LD_FOR_TARGET = ` \
420   if [ -f $$r/ld/ld-new ] ; then \
421     echo $$r/ld/ld-new ; \
422   elif [ -f $$r/gcc/xgcc ]; then \
423     $(CC_FOR_TARGET) -print-prog-name=ld ; \
424   else \
425     if [ '$(host)' = '$(target)' ] ; then \
426       echo $(LD); \
427     else \
428       echo $(CONFIGURED_LD_FOR_TARGET) ; \
429     fi; \
430   fi`
431
432 LDFLAGS_FOR_TARGET = 
433
434 NM_FOR_TARGET=@NM_FOR_TARGET@
435 CONFIGURED_NM_FOR_TARGET=@CONFIGURED_NM_FOR_TARGET@
436 USUAL_NM_FOR_TARGET = ` \
437   if [ -f $$r/binutils/nm-new ] ; then \
438     echo $$r/binutils/nm-new ; \
439   elif [ -f $$r/gcc/xgcc ]; then \
440     $(CC_FOR_TARGET) -print-prog-name=nm ; \
441   else \
442     if [ '$(host)' = '$(target)' ] ; then \
443       echo $(NM); \
444     else \
445       echo $(CONFIGURED_NM_FOR_TARGET) ; \
446     fi; \
447   fi`
448
449 RANLIB_FOR_TARGET=@RANLIB_FOR_TARGET@
450 CONFIGURED_RANLIB_FOR_TARGET=@CONFIGURED_RANLIB_FOR_TARGET@
451 USUAL_RANLIB_FOR_TARGET = ` \
452   if [ -f $$r/binutils/ranlib ] ; then \
453     echo $$r/binutils/ranlib ; \
454   else \
455     if [ '$(host)' = '$(target)' ] ; then \
456       if [ x'$(RANLIB)' != x ]; then \
457          echo $(RANLIB); \
458       else \
459          echo ranlib; \
460       fi; \
461     else \
462       echo $(CONFIGURED_RANLIB_FOR_TARGET) ; \
463     fi; \
464   fi`
465
466 WINDRES_FOR_TARGET=@WINDRES_FOR_TARGET@
467 CONFIGURED_WINDRES_FOR_TARGET=@CONFIGURED_WINDRES_FOR_TARGET@
468 USUAL_WINDRES_FOR_TARGET = ` \
469   if [ -f $$r/binutils/windres ] ; then \
470     echo $$r/binutils/windres ; \
471   else \
472     if [ '$(host)' = '$(target)' ] ; then \
473       echo $(WINDRES); \
474     else \
475       echo $(CONFIGURED_WINDRES_FOR_TARGET) ; \
476     fi; \
477   fi`
478
479 PICFLAG_FOR_TARGET = 
480
481 # ------------------------------------
482 # Miscellaneous targets and flag lists
483 # ------------------------------------
484
485 # The first rule in the file had better be this one.  Don't put any above it.
486 # This lives here to allow makefile fragments to contain dependencies.
487 @default_target@:
488
489 #### host and target specific makefile fragments come in here.
490 @target_makefile_frag@
491 @alphaieee_frag@
492 @ospace_frag@
493 @host_makefile_frag@
494 ###
495
496 # Flags to pass down to all sub-makes.
497 BASE_FLAGS_TO_PASS = \
498         "DESTDIR=$(DESTDIR)" \
499         "RPATH_ENVVAR=$(RPATH_ENVVAR)" \
500         "TARGET_SUBDIR=$(TARGET_SUBDIR)" \
501         "bindir=$(bindir)" \
502         "datadir=$(datadir)" \
503         "exec_prefix=$(exec_prefix)" \
504         "includedir=$(includedir)" \
505         "infodir=$(infodir)" \
506         "libdir=$(libdir)" \
507         "libexecdir=$(libexecdir)" \
508         "lispdir=$(lispdir)" \
509         "libstdcxx_incdir=$(libstdcxx_incdir)" \
510         "libsubdir=$(libsubdir)" \
511         "localstatedir=$(localstatedir)" \
512         "mandir=$(mandir)" \
513         "oldincludedir=$(oldincludedir)" \
514         "prefix=$(prefix)" \
515         "sbindir=$(sbindir)" \
516         "sharedstatedir=$(sharedstatedir)" \
517         "sysconfdir=$(sysconfdir)" \
518         "tooldir=$(tooldir)" \
519         "build_tooldir=$(build_tooldir)" \
520         "gxx_include_dir=$(gxx_include_dir)" \
521         "gcc_version=$(gcc_version)" \
522         "gcc_version_trigger=$(gcc_version_trigger)" \
523         "target_alias=$(target_alias)" \
524         "BISON=$(BISON)" \
525         "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
526         "CXX_FOR_BUILD=$(CXX_FOR_BUILD)" \
527         "EXPECT=$(EXPECT)" \
528         "FLEX=$(FLEX)" \
529         "INSTALL=$(INSTALL)" \
530         "INSTALL_DATA=$(INSTALL_DATA)" \
531         "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
532         "INSTALL_SCRIPT=$(INSTALL_SCRIPT)" \
533         "LEX=$(LEX)" \
534         "M4=$(M4)" \
535         "MAKE=$(MAKE)" \
536         "RUNTEST=$(RUNTEST)" \
537         "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
538         "SHELL=$(SHELL)" \
539         "YACC=$(YACC)" \
540         "AR_FLAGS=$(AR_FLAGS)" \
541         "CFLAGS=$(CFLAGS)" \
542         "CXXFLAGS=$(CXXFLAGS)" \
543         "LDFLAGS=$(LDFLAGS)" \
544         "LIBCFLAGS=$(LIBCFLAGS)" \
545         "LIBCXXFLAGS=$(LIBCXXFLAGS)" \
546         "AR_FOR_TARGET=$(AR_FOR_TARGET)" \
547         "AS_FOR_TARGET=$(AS_FOR_TARGET)" \
548         "CC_FOR_TARGET=$(CC_FOR_TARGET)" \
549         "CFLAGS_FOR_TARGET=$(CFLAGS_FOR_TARGET)" \
550         "CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
551         "CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
552         "DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
553         "GCJ_FOR_TARGET=$(GCJ_FOR_TARGET)" \
554         "GFORTRAN_FOR_TARGET=$(GFORTRAN_FOR_TARGET)" \
555         "LD_FOR_TARGET=$(LD_FOR_TARGET)" \
556         "LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
557         "LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \
558         "NM_FOR_TARGET=$(NM_FOR_TARGET)" \
559         "RANLIB_FOR_TARGET=$(RANLIB_FOR_TARGET)" \
560         "WINDRES_FOR_TARGET=$(WINDRES_FOR_TARGET)" \
561         "CONFIG_SHELL=$(SHELL)" \
562         "MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" 
563
564 # For any flags above that may contain shell code that varies from one
565 # target library to another.  When doing recursive invocations of the
566 # top-level Makefile, we don't want the outer make to evaluate them,
567 # so we pass these variables down unchanged.  They must not contain
568 # single nor double quotes.
569 RECURSE_FLAGS = \
570         CXX_FOR_TARGET='$(CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)' \
571         RAW_CXX_FOR_TARGET='$(RAW_CXX_FOR_TARGET_FOR_RECURSIVE_MAKE)' \
572
573 RECURSE_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(RECURSE_FLAGS)
574
575 # Flags to pass down to most sub-makes, in which we're building with
576 # the host environment.
577 EXTRA_HOST_FLAGS = \
578         'AR=$(AR)' \
579         'AS=$(AS)' \
580         'CC=$(CC)' \
581         'CXX=$(CXX)' \
582         'DLLTOOL=$(DLLTOOL)' \
583         'LD=$(LD)' \
584         'NM=$(NM)' \
585         'RANLIB=$(RANLIB)' \
586         'WINDRES=$(WINDRES)'
587
588 FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)
589
590 # Flags that are concerned with the location of the X11 include files
591 # and library files
592 #
593 # NOTE: until the top-level is getting the values via autoconf, it only
594 # causes problems to have this top-level Makefile overriding the autoconf-set
595 # values in child directories.  Only variables that don't conflict with
596 # autoconf'ed ones should be passed by X11_FLAGS_TO_PASS for now.
597 #
598 X11_FLAGS_TO_PASS = \
599         'X11_EXTRA_CFLAGS=$(X11_EXTRA_CFLAGS)' \
600         'X11_EXTRA_LIBS=$(X11_EXTRA_LIBS)'
601
602 # Flags to pass down to makes which are built with the target environment.
603 # The double $ decreases the length of the command line; the variables
604 # are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them.
605 EXTRA_TARGET_FLAGS = \
606         'AR=$$(AR_FOR_TARGET)' \
607         'AS=$$(AS_FOR_TARGET)' \
608         'CC=$$(CC_FOR_TARGET)' \
609         'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
610         'CXX=$$(CXX_FOR_TARGET)' \
611         'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
612         'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
613         'LD=$$(LD_FOR_TARGET)' \
614         'LIBCFLAGS=$$(LIBCFLAGS_FOR_TARGET)' \
615         'LIBCXXFLAGS=$$(LIBCXXFLAGS_FOR_TARGET)' \
616         'NM=$$(NM_FOR_TARGET)' \
617         'RANLIB=$$(RANLIB_FOR_TARGET)' \
618         'WINDRES=$$(WINDRES_FOR_TARGET)'
619
620 TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
621
622 # Flags to pass down to gcc.  gcc builds a library, libgcc.a, so it
623 # unfortunately needs the native compiler and the target ar and
624 # ranlib.
625 # If any variables are added here, they must be added to do-*, below.
626 # The BUILD_* variables are a special case, which are used for the gcc
627 # cross-building scheme.
628 EXTRA_GCC_FLAGS = \
629         'BUILD_PREFIX=$(BUILD_PREFIX)' \
630         'BUILD_PREFIX_1=$(BUILD_PREFIX_1)' \
631         "GCC_FOR_TARGET=$(GCC_FOR_TARGET)" \
632         "CFLAGS_FOR_BUILD=$(CFLAGS_FOR_BUILD)" \
633         "`echo 'LANGUAGES=$(LANGUAGES)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
634         "`echo 'STMP_FIXPROTO=$(STMP_FIXPROTO)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
635         "`echo 'LIMITS_H_TEST=$(LIMITS_H_TEST)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
636         "`echo 'LIBGCC2_CFLAGS=$(LIBGCC2_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
637         "`echo 'LIBGCC2_DEBUG_CFLAGS=$(LIBGCC2_DEBUG_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
638         "`echo 'LIBGCC2_INCLUDES=$(LIBGCC2_INCLUDES)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
639         "`echo 'STAGE1_CFLAGS=$(STAGE1_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
640         "`echo 'BOOT_CFLAGS=$(BOOT_CFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`" \
641         "`echo 'BOOT_ADAFLAGS=$(BOOT_ADAFLAGS)' | sed -e s'/[^=][^=]*=$$/XFOO=/'`"
642
643 GCC_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS) $(EXTRA_GCC_FLAGS)
644
645 .PHONY: configure-host
646 configure-host:  \
647     maybe-configure-ash \
648     maybe-configure-autoconf \
649     maybe-configure-automake \
650     maybe-configure-bash \
651     maybe-configure-bfd \
652     maybe-configure-opcodes \
653     maybe-configure-binutils \
654     maybe-configure-bison \
655     maybe-configure-byacc \
656     maybe-configure-bzip2 \
657     maybe-configure-dejagnu \
658     maybe-configure-diff \
659     maybe-configure-dosutils \
660     maybe-configure-etc \
661     maybe-configure-fastjar \
662     maybe-configure-fileutils \
663     maybe-configure-findutils \
664     maybe-configure-find \
665     maybe-configure-flex \
666     maybe-configure-gas \
667     maybe-configure-gcc \
668     maybe-configure-gawk \
669     maybe-configure-gettext \
670     maybe-configure-gnuserv \
671     maybe-configure-gprof \
672     maybe-configure-gzip \
673     maybe-configure-hello \
674     maybe-configure-indent \
675     maybe-configure-intl \
676     maybe-configure-tcl \
677     maybe-configure-itcl \
678     maybe-configure-ld \
679     maybe-configure-libcpp \
680     maybe-configure-libgui \
681     maybe-configure-libiberty \
682     maybe-configure-libtool \
683     maybe-configure-m4 \
684     maybe-configure-make \
685     maybe-configure-mmalloc \
686     maybe-configure-patch \
687     maybe-configure-perl \
688     maybe-configure-prms \
689     maybe-configure-rcs \
690     maybe-configure-readline \
691     maybe-configure-release \
692     maybe-configure-recode \
693     maybe-configure-sed \
694     maybe-configure-send-pr \
695     maybe-configure-shellutils \
696     maybe-configure-sid \
697     maybe-configure-sim \
698     maybe-configure-tar \
699     maybe-configure-texinfo \
700     maybe-configure-textutils \
701     maybe-configure-time \
702     maybe-configure-uudecode \
703     maybe-configure-wdiff \
704     maybe-configure-zip \
705     maybe-configure-zlib \
706     maybe-configure-gdb \
707     maybe-configure-expect \
708     maybe-configure-guile \
709     maybe-configure-tk \
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: unstage all-host all-target stage
736
737 .PHONY: all-build
738 all-build:  \
739     maybe-all-build-libiberty \
740     maybe-all-build-bison \
741     maybe-all-build-byacc \
742     maybe-all-build-flex \
743     maybe-all-build-m4 \
744     maybe-all-build-texinfo \
745     maybe-all-build-fixincludes
746 .PHONY: all-host
747 all-host:  \
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-gcc \
769     maybe-all-gawk \
770     maybe-all-gettext \
771     maybe-all-gnuserv \
772     maybe-all-gprof \
773     maybe-all-gzip \
774     maybe-all-hello \
775     maybe-all-indent \
776     maybe-all-intl \
777     maybe-all-tcl \
778     maybe-all-itcl \
779     maybe-all-ld \
780     maybe-all-libcpp \
781     maybe-all-libgui \
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-libtermcap \
812     maybe-all-utils
813 .PHONY: all-target
814 all-target:  \
815     maybe-all-target-libstdc++-v3 \
816     maybe-all-target-libmudflap \
817     maybe-all-target-newlib \
818     maybe-all-target-libgfortran \
819     maybe-all-target-libobjc \
820     maybe-all-target-libtermcap \
821     maybe-all-target-winsup \
822     maybe-all-target-libgloss \
823     maybe-all-target-libiberty \
824     maybe-all-target-gperf \
825     maybe-all-target-examples \
826     maybe-all-target-libffi \
827     maybe-all-target-libjava \
828     maybe-all-target-zlib \
829     maybe-all-target-boehm-gc \
830     maybe-all-target-qthreads \
831     maybe-all-target-rda \
832     maybe-all-target-libada
833
834 # Do a target for all the subdirectories.  A ``make do-X'' will do a
835 # ``make X'' in all subdirectories (because, in general, there is a
836 # dependency (below) of X upon do-X, a ``make X'' will also do this,
837 # but it may do additional work as well).
838
839 .PHONY: do-info
840 do-info: unstage info-host info-target stage
841
842 .PHONY: info-host
843 info-host:  \
844     maybe-info-ash \
845     maybe-info-autoconf \
846     maybe-info-automake \
847     maybe-info-bash \
848     maybe-info-bfd \
849     maybe-info-opcodes \
850     maybe-info-binutils \
851     maybe-info-bison \
852     maybe-info-byacc \
853     maybe-info-bzip2 \
854     maybe-info-dejagnu \
855     maybe-info-diff \
856     maybe-info-dosutils \
857     maybe-info-etc \
858     maybe-info-fastjar \
859     maybe-info-fileutils \
860     maybe-info-findutils \
861     maybe-info-find \
862     maybe-info-flex \
863     maybe-info-gas \
864     maybe-info-gcc \
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-libiberty \
879     maybe-info-libtool \
880     maybe-info-m4 \
881     maybe-info-make \
882     maybe-info-mmalloc \
883     maybe-info-patch \
884     maybe-info-perl \
885     maybe-info-prms \
886     maybe-info-rcs \
887     maybe-info-readline \
888     maybe-info-release \
889     maybe-info-recode \
890     maybe-info-sed \
891     maybe-info-send-pr \
892     maybe-info-shellutils \
893     maybe-info-sid \
894     maybe-info-sim \
895     maybe-info-tar \
896     maybe-info-texinfo \
897     maybe-info-textutils \
898     maybe-info-time \
899     maybe-info-uudecode \
900     maybe-info-wdiff \
901     maybe-info-zip \
902     maybe-info-zlib \
903     maybe-info-gdb \
904     maybe-info-expect \
905     maybe-info-guile \
906     maybe-info-tk \
907     maybe-info-libtermcap \
908     maybe-info-utils
909
910 .PHONY: info-target
911 info-target:  \
912     maybe-info-target-libstdc++-v3 \
913     maybe-info-target-libmudflap \
914     maybe-info-target-newlib \
915     maybe-info-target-libgfortran \
916     maybe-info-target-libobjc \
917     maybe-info-target-libtermcap \
918     maybe-info-target-winsup \
919     maybe-info-target-libgloss \
920     maybe-info-target-libiberty \
921     maybe-info-target-gperf \
922     maybe-info-target-examples \
923     maybe-info-target-libffi \
924     maybe-info-target-libjava \
925     maybe-info-target-zlib \
926     maybe-info-target-boehm-gc \
927     maybe-info-target-qthreads \
928     maybe-info-target-rda \
929     maybe-info-target-libada
930
931 .PHONY: do-dvi
932 do-dvi: unstage dvi-host dvi-target stage
933
934 .PHONY: dvi-host
935 dvi-host:  \
936     maybe-dvi-ash \
937     maybe-dvi-autoconf \
938     maybe-dvi-automake \
939     maybe-dvi-bash \
940     maybe-dvi-bfd \
941     maybe-dvi-opcodes \
942     maybe-dvi-binutils \
943     maybe-dvi-bison \
944     maybe-dvi-byacc \
945     maybe-dvi-bzip2 \
946     maybe-dvi-dejagnu \
947     maybe-dvi-diff \
948     maybe-dvi-dosutils \
949     maybe-dvi-etc \
950     maybe-dvi-fastjar \
951     maybe-dvi-fileutils \
952     maybe-dvi-findutils \
953     maybe-dvi-find \
954     maybe-dvi-flex \
955     maybe-dvi-gas \
956     maybe-dvi-gcc \
957     maybe-dvi-gawk \
958     maybe-dvi-gettext \
959     maybe-dvi-gnuserv \
960     maybe-dvi-gprof \
961     maybe-dvi-gzip \
962     maybe-dvi-hello \
963     maybe-dvi-indent \
964     maybe-dvi-intl \
965     maybe-dvi-tcl \
966     maybe-dvi-itcl \
967     maybe-dvi-ld \
968     maybe-dvi-libcpp \
969     maybe-dvi-libgui \
970     maybe-dvi-libiberty \
971     maybe-dvi-libtool \
972     maybe-dvi-m4 \
973     maybe-dvi-make \
974     maybe-dvi-mmalloc \
975     maybe-dvi-patch \
976     maybe-dvi-perl \
977     maybe-dvi-prms \
978     maybe-dvi-rcs \
979     maybe-dvi-readline \
980     maybe-dvi-release \
981     maybe-dvi-recode \
982     maybe-dvi-sed \
983     maybe-dvi-send-pr \
984     maybe-dvi-shellutils \
985     maybe-dvi-sid \
986     maybe-dvi-sim \
987     maybe-dvi-tar \
988     maybe-dvi-texinfo \
989     maybe-dvi-textutils \
990     maybe-dvi-time \
991     maybe-dvi-uudecode \
992     maybe-dvi-wdiff \
993     maybe-dvi-zip \
994     maybe-dvi-zlib \
995     maybe-dvi-gdb \
996     maybe-dvi-expect \
997     maybe-dvi-guile \
998     maybe-dvi-tk \
999     maybe-dvi-libtermcap \
1000     maybe-dvi-utils
1001
1002 .PHONY: dvi-target
1003 dvi-target:  \
1004     maybe-dvi-target-libstdc++-v3 \
1005     maybe-dvi-target-libmudflap \
1006     maybe-dvi-target-newlib \
1007     maybe-dvi-target-libgfortran \
1008     maybe-dvi-target-libobjc \
1009     maybe-dvi-target-libtermcap \
1010     maybe-dvi-target-winsup \
1011     maybe-dvi-target-libgloss \
1012     maybe-dvi-target-libiberty \
1013     maybe-dvi-target-gperf \
1014     maybe-dvi-target-examples \
1015     maybe-dvi-target-libffi \
1016     maybe-dvi-target-libjava \
1017     maybe-dvi-target-zlib \
1018     maybe-dvi-target-boehm-gc \
1019     maybe-dvi-target-qthreads \
1020     maybe-dvi-target-rda \
1021     maybe-dvi-target-libada
1022
1023 .PHONY: do-TAGS
1024 do-TAGS: unstage TAGS-host TAGS-target stage
1025
1026 .PHONY: TAGS-host
1027 TAGS-host:  \
1028     maybe-TAGS-ash \
1029     maybe-TAGS-autoconf \
1030     maybe-TAGS-automake \
1031     maybe-TAGS-bash \
1032     maybe-TAGS-bfd \
1033     maybe-TAGS-opcodes \
1034     maybe-TAGS-binutils \
1035     maybe-TAGS-bison \
1036     maybe-TAGS-byacc \
1037     maybe-TAGS-bzip2 \
1038     maybe-TAGS-dejagnu \
1039     maybe-TAGS-diff \
1040     maybe-TAGS-dosutils \
1041     maybe-TAGS-etc \
1042     maybe-TAGS-fastjar \
1043     maybe-TAGS-fileutils \
1044     maybe-TAGS-findutils \
1045     maybe-TAGS-find \
1046     maybe-TAGS-flex \
1047     maybe-TAGS-gas \
1048     maybe-TAGS-gcc \
1049     maybe-TAGS-gawk \
1050     maybe-TAGS-gettext \
1051     maybe-TAGS-gnuserv \
1052     maybe-TAGS-gprof \
1053     maybe-TAGS-gzip \
1054     maybe-TAGS-hello \
1055     maybe-TAGS-indent \
1056     maybe-TAGS-intl \
1057     maybe-TAGS-tcl \
1058     maybe-TAGS-itcl \
1059     maybe-TAGS-ld \
1060     maybe-TAGS-libcpp \
1061     maybe-TAGS-libgui \
1062     maybe-TAGS-libiberty \
1063     maybe-TAGS-libtool \
1064     maybe-TAGS-m4 \
1065     maybe-TAGS-make \
1066     maybe-TAGS-mmalloc \
1067     maybe-TAGS-patch \
1068     maybe-TAGS-perl \
1069     maybe-TAGS-prms \
1070     maybe-TAGS-rcs \
1071     maybe-TAGS-readline \
1072     maybe-TAGS-release \
1073     maybe-TAGS-recode \
1074     maybe-TAGS-sed \
1075     maybe-TAGS-send-pr \
1076     maybe-TAGS-shellutils \
1077     maybe-TAGS-sid \
1078     maybe-TAGS-sim \
1079     maybe-TAGS-tar \
1080     maybe-TAGS-texinfo \
1081     maybe-TAGS-textutils \
1082     maybe-TAGS-time \
1083     maybe-TAGS-uudecode \
1084     maybe-TAGS-wdiff \
1085     maybe-TAGS-zip \
1086     maybe-TAGS-zlib \
1087     maybe-TAGS-gdb \
1088     maybe-TAGS-expect \
1089     maybe-TAGS-guile \
1090     maybe-TAGS-tk \
1091     maybe-TAGS-libtermcap \
1092     maybe-TAGS-utils
1093
1094 .PHONY: TAGS-target
1095 TAGS-target:  \
1096     maybe-TAGS-target-libstdc++-v3 \
1097     maybe-TAGS-target-libmudflap \
1098     maybe-TAGS-target-newlib \
1099     maybe-TAGS-target-libgfortran \
1100     maybe-TAGS-target-libobjc \
1101     maybe-TAGS-target-libtermcap \
1102     maybe-TAGS-target-winsup \
1103     maybe-TAGS-target-libgloss \
1104     maybe-TAGS-target-libiberty \
1105     maybe-TAGS-target-gperf \
1106     maybe-TAGS-target-examples \
1107     maybe-TAGS-target-libffi \
1108     maybe-TAGS-target-libjava \
1109     maybe-TAGS-target-zlib \
1110     maybe-TAGS-target-boehm-gc \
1111     maybe-TAGS-target-qthreads \
1112     maybe-TAGS-target-rda \
1113     maybe-TAGS-target-libada
1114
1115 .PHONY: do-install-info
1116 do-install-info: unstage install-info-host install-info-target stage
1117
1118 .PHONY: install-info-host
1119 install-info-host:  \
1120     maybe-install-info-ash \
1121     maybe-install-info-autoconf \
1122     maybe-install-info-automake \
1123     maybe-install-info-bash \
1124     maybe-install-info-bfd \
1125     maybe-install-info-opcodes \
1126     maybe-install-info-binutils \
1127     maybe-install-info-bison \
1128     maybe-install-info-byacc \
1129     maybe-install-info-bzip2 \
1130     maybe-install-info-dejagnu \
1131     maybe-install-info-diff \
1132     maybe-install-info-dosutils \
1133     maybe-install-info-etc \
1134     maybe-install-info-fastjar \
1135     maybe-install-info-fileutils \
1136     maybe-install-info-findutils \
1137     maybe-install-info-find \
1138     maybe-install-info-flex \
1139     maybe-install-info-gas \
1140     maybe-install-info-gcc \
1141     maybe-install-info-gawk \
1142     maybe-install-info-gettext \
1143     maybe-install-info-gnuserv \
1144     maybe-install-info-gprof \
1145     maybe-install-info-gzip \
1146     maybe-install-info-hello \
1147     maybe-install-info-indent \
1148     maybe-install-info-intl \
1149     maybe-install-info-tcl \
1150     maybe-install-info-itcl \
1151     maybe-install-info-ld \
1152     maybe-install-info-libcpp \
1153     maybe-install-info-libgui \
1154     maybe-install-info-libiberty \
1155     maybe-install-info-libtool \
1156     maybe-install-info-m4 \
1157     maybe-install-info-make \
1158     maybe-install-info-mmalloc \
1159     maybe-install-info-patch \
1160     maybe-install-info-perl \
1161     maybe-install-info-prms \
1162     maybe-install-info-rcs \
1163     maybe-install-info-readline \
1164     maybe-install-info-release \
1165     maybe-install-info-recode \
1166     maybe-install-info-sed \
1167     maybe-install-info-send-pr \
1168     maybe-install-info-shellutils \
1169     maybe-install-info-sid \
1170     maybe-install-info-sim \
1171     maybe-install-info-tar \
1172     maybe-install-info-texinfo \
1173     maybe-install-info-textutils \
1174     maybe-install-info-time \
1175     maybe-install-info-uudecode \
1176     maybe-install-info-wdiff \
1177     maybe-install-info-zip \
1178     maybe-install-info-zlib \
1179     maybe-install-info-gdb \
1180     maybe-install-info-expect \
1181     maybe-install-info-guile \
1182     maybe-install-info-tk \
1183     maybe-install-info-libtermcap \
1184     maybe-install-info-utils
1185
1186 .PHONY: install-info-target
1187 install-info-target:  \
1188     maybe-install-info-target-libstdc++-v3 \
1189     maybe-install-info-target-libmudflap \
1190     maybe-install-info-target-newlib \
1191     maybe-install-info-target-libgfortran \
1192     maybe-install-info-target-libobjc \
1193     maybe-install-info-target-libtermcap \
1194     maybe-install-info-target-winsup \
1195     maybe-install-info-target-libgloss \
1196     maybe-install-info-target-libiberty \
1197     maybe-install-info-target-gperf \
1198     maybe-install-info-target-examples \
1199     maybe-install-info-target-libffi \
1200     maybe-install-info-target-libjava \
1201     maybe-install-info-target-zlib \
1202     maybe-install-info-target-boehm-gc \
1203     maybe-install-info-target-qthreads \
1204     maybe-install-info-target-rda \
1205     maybe-install-info-target-libada
1206
1207 .PHONY: do-installcheck
1208 do-installcheck: unstage installcheck-host installcheck-target stage
1209
1210 .PHONY: installcheck-host
1211 installcheck-host:  \
1212     maybe-installcheck-ash \
1213     maybe-installcheck-autoconf \
1214     maybe-installcheck-automake \
1215     maybe-installcheck-bash \
1216     maybe-installcheck-bfd \
1217     maybe-installcheck-opcodes \
1218     maybe-installcheck-binutils \
1219     maybe-installcheck-bison \
1220     maybe-installcheck-byacc \
1221     maybe-installcheck-bzip2 \
1222     maybe-installcheck-dejagnu \
1223     maybe-installcheck-diff \
1224     maybe-installcheck-dosutils \
1225     maybe-installcheck-etc \
1226     maybe-installcheck-fastjar \
1227     maybe-installcheck-fileutils \
1228     maybe-installcheck-findutils \
1229     maybe-installcheck-find \
1230     maybe-installcheck-flex \
1231     maybe-installcheck-gas \
1232     maybe-installcheck-gcc \
1233     maybe-installcheck-gawk \
1234     maybe-installcheck-gettext \
1235     maybe-installcheck-gnuserv \
1236     maybe-installcheck-gprof \
1237     maybe-installcheck-gzip \
1238     maybe-installcheck-hello \
1239     maybe-installcheck-indent \
1240     maybe-installcheck-intl \
1241     maybe-installcheck-tcl \
1242     maybe-installcheck-itcl \
1243     maybe-installcheck-ld \
1244     maybe-installcheck-libcpp \
1245     maybe-installcheck-libgui \
1246     maybe-installcheck-libiberty \
1247     maybe-installcheck-libtool \
1248     maybe-installcheck-m4 \
1249     maybe-installcheck-make \
1250     maybe-installcheck-mmalloc \
1251     maybe-installcheck-patch \
1252     maybe-installcheck-perl \
1253     maybe-installcheck-prms \
1254     maybe-installcheck-rcs \
1255     maybe-installcheck-readline \
1256     maybe-installcheck-release \
1257     maybe-installcheck-recode \
1258     maybe-installcheck-sed \
1259     maybe-installcheck-send-pr \
1260     maybe-installcheck-shellutils \
1261     maybe-installcheck-sid \
1262     maybe-installcheck-sim \
1263     maybe-installcheck-tar \
1264     maybe-installcheck-texinfo \
1265     maybe-installcheck-textutils \
1266     maybe-installcheck-time \
1267     maybe-installcheck-uudecode \
1268     maybe-installcheck-wdiff \
1269     maybe-installcheck-zip \
1270     maybe-installcheck-zlib \
1271     maybe-installcheck-gdb \
1272     maybe-installcheck-expect \
1273     maybe-installcheck-guile \
1274     maybe-installcheck-tk \
1275     maybe-installcheck-libtermcap \
1276     maybe-installcheck-utils
1277
1278 .PHONY: installcheck-target
1279 installcheck-target:  \
1280     maybe-installcheck-target-libstdc++-v3 \
1281     maybe-installcheck-target-libmudflap \
1282     maybe-installcheck-target-newlib \
1283     maybe-installcheck-target-libgfortran \
1284     maybe-installcheck-target-libobjc \
1285     maybe-installcheck-target-libtermcap \
1286     maybe-installcheck-target-winsup \
1287     maybe-installcheck-target-libgloss \
1288     maybe-installcheck-target-libiberty \
1289     maybe-installcheck-target-gperf \
1290     maybe-installcheck-target-examples \
1291     maybe-installcheck-target-libffi \
1292     maybe-installcheck-target-libjava \
1293     maybe-installcheck-target-zlib \
1294     maybe-installcheck-target-boehm-gc \
1295     maybe-installcheck-target-qthreads \
1296     maybe-installcheck-target-rda \
1297     maybe-installcheck-target-libada
1298
1299 .PHONY: do-mostlyclean
1300 do-mostlyclean: unstage mostlyclean-host mostlyclean-target stage
1301
1302 .PHONY: mostlyclean-host
1303 mostlyclean-host:  \
1304     maybe-mostlyclean-ash \
1305     maybe-mostlyclean-autoconf \
1306     maybe-mostlyclean-automake \
1307     maybe-mostlyclean-bash \
1308     maybe-mostlyclean-bfd \
1309     maybe-mostlyclean-opcodes \
1310     maybe-mostlyclean-binutils \
1311     maybe-mostlyclean-bison \
1312     maybe-mostlyclean-byacc \
1313     maybe-mostlyclean-bzip2 \
1314     maybe-mostlyclean-dejagnu \
1315     maybe-mostlyclean-diff \
1316     maybe-mostlyclean-dosutils \
1317     maybe-mostlyclean-etc \
1318     maybe-mostlyclean-fastjar \
1319     maybe-mostlyclean-fileutils \
1320     maybe-mostlyclean-findutils \
1321     maybe-mostlyclean-find \
1322     maybe-mostlyclean-flex \
1323     maybe-mostlyclean-gas \
1324     maybe-mostlyclean-gcc \
1325     maybe-mostlyclean-gawk \
1326     maybe-mostlyclean-gettext \
1327     maybe-mostlyclean-gnuserv \
1328     maybe-mostlyclean-gprof \
1329     maybe-mostlyclean-gzip \
1330     maybe-mostlyclean-hello \
1331     maybe-mostlyclean-indent \
1332     maybe-mostlyclean-intl \
1333     maybe-mostlyclean-tcl \
1334     maybe-mostlyclean-itcl \
1335     maybe-mostlyclean-ld \
1336     maybe-mostlyclean-libcpp \
1337     maybe-mostlyclean-libgui \
1338     maybe-mostlyclean-libiberty \
1339     maybe-mostlyclean-libtool \
1340     maybe-mostlyclean-m4 \
1341     maybe-mostlyclean-make \
1342     maybe-mostlyclean-mmalloc \
1343     maybe-mostlyclean-patch \
1344     maybe-mostlyclean-perl \
1345     maybe-mostlyclean-prms \
1346     maybe-mostlyclean-rcs \
1347     maybe-mostlyclean-readline \
1348     maybe-mostlyclean-release \
1349     maybe-mostlyclean-recode \
1350     maybe-mostlyclean-sed \
1351     maybe-mostlyclean-send-pr \
1352     maybe-mostlyclean-shellutils \
1353     maybe-mostlyclean-sid \
1354     maybe-mostlyclean-sim \
1355     maybe-mostlyclean-tar \
1356     maybe-mostlyclean-texinfo \
1357     maybe-mostlyclean-textutils \
1358     maybe-mostlyclean-time \
1359     maybe-mostlyclean-uudecode \
1360     maybe-mostlyclean-wdiff \
1361     maybe-mostlyclean-zip \
1362     maybe-mostlyclean-zlib \
1363     maybe-mostlyclean-gdb \
1364     maybe-mostlyclean-expect \
1365     maybe-mostlyclean-guile \
1366     maybe-mostlyclean-tk \
1367     maybe-mostlyclean-libtermcap \
1368     maybe-mostlyclean-utils
1369
1370 .PHONY: mostlyclean-target
1371 mostlyclean-target:  \
1372     maybe-mostlyclean-target-libstdc++-v3 \
1373     maybe-mostlyclean-target-libmudflap \
1374     maybe-mostlyclean-target-newlib \
1375     maybe-mostlyclean-target-libgfortran \
1376     maybe-mostlyclean-target-libobjc \
1377     maybe-mostlyclean-target-libtermcap \
1378     maybe-mostlyclean-target-winsup \
1379     maybe-mostlyclean-target-libgloss \
1380     maybe-mostlyclean-target-libiberty \
1381     maybe-mostlyclean-target-gperf \
1382     maybe-mostlyclean-target-examples \
1383     maybe-mostlyclean-target-libffi \
1384     maybe-mostlyclean-target-libjava \
1385     maybe-mostlyclean-target-zlib \
1386     maybe-mostlyclean-target-boehm-gc \
1387     maybe-mostlyclean-target-qthreads \
1388     maybe-mostlyclean-target-rda \
1389     maybe-mostlyclean-target-libada
1390
1391 .PHONY: do-clean
1392 do-clean: unstage clean-host clean-target stage
1393
1394 .PHONY: clean-host
1395 clean-host:  \
1396     maybe-clean-ash \
1397     maybe-clean-autoconf \
1398     maybe-clean-automake \
1399     maybe-clean-bash \
1400     maybe-clean-bfd \
1401     maybe-clean-opcodes \
1402     maybe-clean-binutils \
1403     maybe-clean-bison \
1404     maybe-clean-byacc \
1405     maybe-clean-bzip2 \
1406     maybe-clean-dejagnu \
1407     maybe-clean-diff \
1408     maybe-clean-dosutils \
1409     maybe-clean-etc \
1410     maybe-clean-fastjar \
1411     maybe-clean-fileutils \
1412     maybe-clean-findutils \
1413     maybe-clean-find \
1414     maybe-clean-flex \
1415     maybe-clean-gas \
1416     maybe-clean-gcc \
1417     maybe-clean-gawk \
1418     maybe-clean-gettext \
1419     maybe-clean-gnuserv \
1420     maybe-clean-gprof \
1421     maybe-clean-gzip \
1422     maybe-clean-hello \
1423     maybe-clean-indent \
1424     maybe-clean-intl \
1425     maybe-clean-tcl \
1426     maybe-clean-itcl \
1427     maybe-clean-ld \
1428     maybe-clean-libcpp \
1429     maybe-clean-libgui \
1430     maybe-clean-libiberty \
1431     maybe-clean-libtool \
1432     maybe-clean-m4 \
1433     maybe-clean-make \
1434     maybe-clean-mmalloc \
1435     maybe-clean-patch \
1436     maybe-clean-perl \
1437     maybe-clean-prms \
1438     maybe-clean-rcs \
1439     maybe-clean-readline \
1440     maybe-clean-release \
1441     maybe-clean-recode \
1442     maybe-clean-sed \
1443     maybe-clean-send-pr \
1444     maybe-clean-shellutils \
1445     maybe-clean-sid \
1446     maybe-clean-sim \
1447     maybe-clean-tar \
1448     maybe-clean-texinfo \
1449     maybe-clean-textutils \
1450     maybe-clean-time \
1451     maybe-clean-uudecode \
1452     maybe-clean-wdiff \
1453     maybe-clean-zip \
1454     maybe-clean-zlib \
1455     maybe-clean-gdb \
1456     maybe-clean-expect \
1457     maybe-clean-guile \
1458     maybe-clean-tk \
1459     maybe-clean-libtermcap \
1460     maybe-clean-utils
1461
1462 .PHONY: clean-target
1463 clean-target:  \
1464     maybe-clean-target-libstdc++-v3 \
1465     maybe-clean-target-libmudflap \
1466     maybe-clean-target-newlib \
1467     maybe-clean-target-libgfortran \
1468     maybe-clean-target-libobjc \
1469     maybe-clean-target-libtermcap \
1470     maybe-clean-target-winsup \
1471     maybe-clean-target-libgloss \
1472     maybe-clean-target-libiberty \
1473     maybe-clean-target-gperf \
1474     maybe-clean-target-examples \
1475     maybe-clean-target-libffi \
1476     maybe-clean-target-libjava \
1477     maybe-clean-target-zlib \
1478     maybe-clean-target-boehm-gc \
1479     maybe-clean-target-qthreads \
1480     maybe-clean-target-rda \
1481     maybe-clean-target-libada
1482
1483 .PHONY: do-distclean
1484 do-distclean: unstage distclean-host distclean-target stage
1485
1486 .PHONY: distclean-host
1487 distclean-host:  \
1488     maybe-distclean-ash \
1489     maybe-distclean-autoconf \
1490     maybe-distclean-automake \
1491     maybe-distclean-bash \
1492     maybe-distclean-bfd \
1493     maybe-distclean-opcodes \
1494     maybe-distclean-binutils \
1495     maybe-distclean-bison \
1496     maybe-distclean-byacc \
1497     maybe-distclean-bzip2 \
1498     maybe-distclean-dejagnu \
1499     maybe-distclean-diff \
1500     maybe-distclean-dosutils \
1501     maybe-distclean-etc \
1502     maybe-distclean-fastjar \
1503     maybe-distclean-fileutils \
1504     maybe-distclean-findutils \
1505     maybe-distclean-find \
1506     maybe-distclean-flex \
1507     maybe-distclean-gas \
1508     maybe-distclean-gcc \
1509     maybe-distclean-gawk \
1510     maybe-distclean-gettext \
1511     maybe-distclean-gnuserv \
1512     maybe-distclean-gprof \
1513     maybe-distclean-gzip \
1514     maybe-distclean-hello \
1515     maybe-distclean-indent \
1516     maybe-distclean-intl \
1517     maybe-distclean-tcl \
1518     maybe-distclean-itcl \
1519     maybe-distclean-ld \
1520     maybe-distclean-libcpp \
1521     maybe-distclean-libgui \
1522     maybe-distclean-libiberty \
1523     maybe-distclean-libtool \
1524     maybe-distclean-m4 \
1525     maybe-distclean-make \
1526     maybe-distclean-mmalloc \
1527     maybe-distclean-patch \
1528     maybe-distclean-perl \
1529     maybe-distclean-prms \
1530     maybe-distclean-rcs \
1531     maybe-distclean-readline \
1532     maybe-distclean-release \
1533     maybe-distclean-recode \
1534     maybe-distclean-sed \
1535     maybe-distclean-send-pr \
1536     maybe-distclean-shellutils \
1537     maybe-distclean-sid \
1538     maybe-distclean-sim \
1539     maybe-distclean-tar \
1540     maybe-distclean-texinfo \
1541     maybe-distclean-textutils \
1542     maybe-distclean-time \
1543     maybe-distclean-uudecode \
1544     maybe-distclean-wdiff \
1545     maybe-distclean-zip \
1546     maybe-distclean-zlib \
1547     maybe-distclean-gdb \
1548     maybe-distclean-expect \
1549     maybe-distclean-guile \
1550     maybe-distclean-tk \
1551     maybe-distclean-libtermcap \
1552     maybe-distclean-utils
1553
1554 .PHONY: distclean-target
1555 distclean-target:  \
1556     maybe-distclean-target-libstdc++-v3 \
1557     maybe-distclean-target-libmudflap \
1558     maybe-distclean-target-newlib \
1559     maybe-distclean-target-libgfortran \
1560     maybe-distclean-target-libobjc \
1561     maybe-distclean-target-libtermcap \
1562     maybe-distclean-target-winsup \
1563     maybe-distclean-target-libgloss \
1564     maybe-distclean-target-libiberty \
1565     maybe-distclean-target-gperf \
1566     maybe-distclean-target-examples \
1567     maybe-distclean-target-libffi \
1568     maybe-distclean-target-libjava \
1569     maybe-distclean-target-zlib \
1570     maybe-distclean-target-boehm-gc \
1571     maybe-distclean-target-qthreads \
1572     maybe-distclean-target-rda \
1573     maybe-distclean-target-libada
1574
1575 .PHONY: do-maintainer-clean
1576 do-maintainer-clean: unstage maintainer-clean-host maintainer-clean-target stage
1577
1578 .PHONY: maintainer-clean-host
1579 maintainer-clean-host:  \
1580     maybe-maintainer-clean-ash \
1581     maybe-maintainer-clean-autoconf \
1582     maybe-maintainer-clean-automake \
1583     maybe-maintainer-clean-bash \
1584     maybe-maintainer-clean-bfd \
1585     maybe-maintainer-clean-opcodes \
1586     maybe-maintainer-clean-binutils \
1587     maybe-maintainer-clean-bison \
1588     maybe-maintainer-clean-byacc \
1589     maybe-maintainer-clean-bzip2 \
1590     maybe-maintainer-clean-dejagnu \
1591     maybe-maintainer-clean-diff \
1592     maybe-maintainer-clean-dosutils \
1593     maybe-maintainer-clean-etc \
1594     maybe-maintainer-clean-fastjar \
1595     maybe-maintainer-clean-fileutils \
1596     maybe-maintainer-clean-findutils \
1597     maybe-maintainer-clean-find \
1598     maybe-maintainer-clean-flex \
1599     maybe-maintainer-clean-gas \
1600     maybe-maintainer-clean-gcc \
1601     maybe-maintainer-clean-gawk \
1602     maybe-maintainer-clean-gettext \
1603     maybe-maintainer-clean-gnuserv \
1604     maybe-maintainer-clean-gprof \
1605     maybe-maintainer-clean-gzip \
1606     maybe-maintainer-clean-hello \
1607     maybe-maintainer-clean-indent \
1608     maybe-maintainer-clean-intl \
1609     maybe-maintainer-clean-tcl \
1610     maybe-maintainer-clean-itcl \
1611     maybe-maintainer-clean-ld \
1612     maybe-maintainer-clean-libcpp \
1613     maybe-maintainer-clean-libgui \
1614     maybe-maintainer-clean-libiberty \
1615     maybe-maintainer-clean-libtool \
1616     maybe-maintainer-clean-m4 \
1617     maybe-maintainer-clean-make \
1618     maybe-maintainer-clean-mmalloc \
1619     maybe-maintainer-clean-patch \
1620     maybe-maintainer-clean-perl \
1621     maybe-maintainer-clean-prms \
1622     maybe-maintainer-clean-rcs \
1623     maybe-maintainer-clean-readline \
1624     maybe-maintainer-clean-release \
1625     maybe-maintainer-clean-recode \
1626     maybe-maintainer-clean-sed \
1627     maybe-maintainer-clean-send-pr \
1628     maybe-maintainer-clean-shellutils \
1629     maybe-maintainer-clean-sid \
1630     maybe-maintainer-clean-sim \
1631     maybe-maintainer-clean-tar \
1632     maybe-maintainer-clean-texinfo \
1633     maybe-maintainer-clean-textutils \
1634     maybe-maintainer-clean-time \
1635     maybe-maintainer-clean-uudecode \
1636     maybe-maintainer-clean-wdiff \
1637     maybe-maintainer-clean-zip \
1638     maybe-maintainer-clean-zlib \
1639     maybe-maintainer-clean-gdb \
1640     maybe-maintainer-clean-expect \
1641     maybe-maintainer-clean-guile \
1642     maybe-maintainer-clean-tk \
1643     maybe-maintainer-clean-libtermcap \
1644     maybe-maintainer-clean-utils
1645
1646 .PHONY: maintainer-clean-target
1647 maintainer-clean-target:  \
1648     maybe-maintainer-clean-target-libstdc++-v3 \
1649     maybe-maintainer-clean-target-libmudflap \
1650     maybe-maintainer-clean-target-newlib \
1651     maybe-maintainer-clean-target-libgfortran \
1652     maybe-maintainer-clean-target-libobjc \
1653     maybe-maintainer-clean-target-libtermcap \
1654     maybe-maintainer-clean-target-winsup \
1655     maybe-maintainer-clean-target-libgloss \
1656     maybe-maintainer-clean-target-libiberty \
1657     maybe-maintainer-clean-target-gperf \
1658     maybe-maintainer-clean-target-examples \
1659     maybe-maintainer-clean-target-libffi \
1660     maybe-maintainer-clean-target-libjava \
1661     maybe-maintainer-clean-target-zlib \
1662     maybe-maintainer-clean-target-boehm-gc \
1663     maybe-maintainer-clean-target-qthreads \
1664     maybe-maintainer-clean-target-rda \
1665     maybe-maintainer-clean-target-libada
1666
1667
1668 # Here are the targets which correspond to the do-X targets.
1669
1670 .PHONY: info installcheck dvi install-info
1671 .PHONY: clean distclean mostlyclean maintainer-clean realclean
1672 .PHONY: local-clean local-distclean local-maintainer-clean
1673 info: do-info
1674 installcheck: do-installcheck
1675 dvi: do-dvi
1676
1677 # Make sure makeinfo is built before we do a `make info', if we're
1678 # in fact building texinfo.
1679 do-info: maybe-all-texinfo
1680
1681 install-info: do-install-info dir.info
1682         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
1683         if [ -f dir.info ] ; then \
1684           $(INSTALL_DATA) dir.info $(DESTDIR)$(infodir)/dir.info ; \
1685         else true ; fi
1686
1687 local-clean:
1688         -rm -f *.a TEMP errs core *.o *~ \#* TAGS *.E *.log
1689
1690 local-distclean:
1691         -rm -f Makefile config.status config.cache mh-frag mt-frag
1692         -rm -f multilib.out multilib.tmp maybedep.tmp serdep.tmp
1693         -if [ "$(TARGET_SUBDIR)" != "." ]; then \
1694           rm -rf $(TARGET_SUBDIR); \
1695         else true; fi
1696         -rm -rf $(BUILD_SUBDIR)
1697         -rm -f texinfo/po/Makefile texinfo/po/Makefile.in texinfo/info/Makefile
1698         -rm -f texinfo/doc/Makefile texinfo/po/POTFILES
1699         -rmdir texinfo/doc texinfo/info texinfo/intl texinfo/lib 2>/dev/null
1700         -rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
1701         -rmdir fastjar gcc libiberty texinfo zlib 2>/dev/null
1702
1703 local-maintainer-clean:
1704         @echo "This command is intended for maintainers to use;"
1705         @echo "it deletes files that may require special tools to rebuild."
1706
1707 clean: do-clean local-clean
1708 mostlyclean: do-mostlyclean local-clean
1709 distclean: do-distclean local-clean local-distclean
1710 maintainer-clean: local-maintainer-clean do-maintainer-clean local-clean 
1711 maintainer-clean: local-distclean
1712 realclean: maintainer-clean
1713
1714 # Extra dependency for clean-target, owing to the mixed nature of gcc
1715 clean-target: clean-target-libgcc
1716 clean-target-libgcc:
1717         test ! -d gcc/libgcc || \
1718         (cd gcc/libgcc && find . -type d -print) | \
1719         while read d; do rm -f gcc/$$d/libgcc.a || : ; done
1720         -rm -rf gcc/libgcc
1721
1722 # Check target.
1723
1724 .PHONY: check do-check
1725 check: do-check
1726
1727 # Only include modules actually being configured and built.
1728 do-check: unstage  \
1729     maybe-check-ash \
1730     maybe-check-autoconf \
1731     maybe-check-automake \
1732     maybe-check-bash \
1733     maybe-check-bfd \
1734     maybe-check-opcodes \
1735     maybe-check-binutils \
1736     maybe-check-bison \
1737     maybe-check-byacc \
1738     maybe-check-bzip2 \
1739     maybe-check-dejagnu \
1740     maybe-check-diff \
1741     maybe-check-dosutils \
1742     maybe-check-etc \
1743     maybe-check-fastjar \
1744     maybe-check-fileutils \
1745     maybe-check-findutils \
1746     maybe-check-find \
1747     maybe-check-flex \
1748     maybe-check-gas \
1749     maybe-check-gcc \
1750     maybe-check-gawk \
1751     maybe-check-gettext \
1752     maybe-check-gnuserv \
1753     maybe-check-gprof \
1754     maybe-check-gzip \
1755     maybe-check-hello \
1756     maybe-check-indent \
1757     maybe-check-intl \
1758     maybe-check-tcl \
1759     maybe-check-itcl \
1760     maybe-check-ld \
1761     maybe-check-libcpp \
1762     maybe-check-libgui \
1763     maybe-check-libiberty \
1764     maybe-check-libtool \
1765     maybe-check-m4 \
1766     maybe-check-make \
1767     maybe-check-mmalloc \
1768     maybe-check-patch \
1769     maybe-check-perl \
1770     maybe-check-prms \
1771     maybe-check-rcs \
1772     maybe-check-readline \
1773     maybe-check-release \
1774     maybe-check-recode \
1775     maybe-check-sed \
1776     maybe-check-send-pr \
1777     maybe-check-shellutils \
1778     maybe-check-sid \
1779     maybe-check-sim \
1780     maybe-check-tar \
1781     maybe-check-texinfo \
1782     maybe-check-textutils \
1783     maybe-check-time \
1784     maybe-check-uudecode \
1785     maybe-check-wdiff \
1786     maybe-check-zip \
1787     maybe-check-zlib \
1788     maybe-check-gdb \
1789     maybe-check-expect \
1790     maybe-check-guile \
1791     maybe-check-tk \
1792     maybe-check-libtermcap \
1793     maybe-check-utils \
1794     maybe-check-target-libstdc++-v3 \
1795     maybe-check-target-libmudflap \
1796     maybe-check-target-newlib \
1797     maybe-check-target-libgfortran \
1798     maybe-check-target-libobjc \
1799     maybe-check-target-libtermcap \
1800     maybe-check-target-winsup \
1801     maybe-check-target-libgloss \
1802     maybe-check-target-libiberty \
1803     maybe-check-target-gperf \
1804     maybe-check-target-examples \
1805     maybe-check-target-libffi \
1806     maybe-check-target-libjava \
1807     maybe-check-target-zlib \
1808     maybe-check-target-boehm-gc \
1809     maybe-check-target-qthreads \
1810     maybe-check-target-rda \
1811     maybe-check-target-libada stage
1812
1813 # Automated reporting of test results.
1814
1815 warning.log: build.log
1816         $(srcdir)/contrib/warn_summary build.log > $@
1817
1818 mail-report.log:
1819         if test x'$(BOOT_CFLAGS)' != x''; then \
1820             BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
1821         fi; \
1822         $(srcdir)/contrib/test_summary -t >$@
1823         chmod +x $@
1824         echo If you really want to send e-mail, run ./$@ now
1825
1826 mail-report-with-warnings.log: warning.log
1827         if test x'$(BOOT_CFLAGS)' != x''; then \
1828             BOOT_CFLAGS='$(BOOT_CFLAGS)'; export BOOT_CFLAGS; \
1829         fi; \
1830         $(srcdir)/contrib/test_summary -t -i warning.log >$@
1831         chmod +x $@
1832         echo If you really want to send e-mail, run ./$@ now
1833
1834 # Installation targets.
1835
1836 .PHONY: install uninstall
1837 install: installdirs install-host install-target
1838
1839 .PHONY: install-host-nogcc
1840 install-host-nogcc:  \
1841     maybe-install-ash \
1842     maybe-install-autoconf \
1843     maybe-install-automake \
1844     maybe-install-bash \
1845     maybe-install-bfd \
1846     maybe-install-opcodes \
1847     maybe-install-binutils \
1848     maybe-install-bison \
1849     maybe-install-byacc \
1850     maybe-install-bzip2 \
1851     maybe-install-dejagnu \
1852     maybe-install-diff \
1853     maybe-install-dosutils \
1854     maybe-install-etc \
1855     maybe-install-fastjar \
1856     maybe-install-fileutils \
1857     maybe-install-findutils \
1858     maybe-install-find \
1859     maybe-install-flex \
1860     maybe-install-gas \
1861     maybe-install-gawk \
1862     maybe-install-gettext \
1863     maybe-install-gnuserv \
1864     maybe-install-gprof \
1865     maybe-install-gzip \
1866     maybe-install-hello \
1867     maybe-install-indent \
1868     maybe-install-intl \
1869     maybe-install-tcl \
1870     maybe-install-itcl \
1871     maybe-install-ld \
1872     maybe-install-libcpp \
1873     maybe-install-libgui \
1874     maybe-install-libiberty \
1875     maybe-install-libtool \
1876     maybe-install-m4 \
1877     maybe-install-make \
1878     maybe-install-mmalloc \
1879     maybe-install-patch \
1880     maybe-install-perl \
1881     maybe-install-prms \
1882     maybe-install-rcs \
1883     maybe-install-readline \
1884     maybe-install-release \
1885     maybe-install-recode \
1886     maybe-install-sed \
1887     maybe-install-send-pr \
1888     maybe-install-shellutils \
1889     maybe-install-sid \
1890     maybe-install-sim \
1891     maybe-install-tar \
1892     maybe-install-texinfo \
1893     maybe-install-textutils \
1894     maybe-install-time \
1895     maybe-install-uudecode \
1896     maybe-install-wdiff \
1897     maybe-install-zip \
1898     maybe-install-zlib \
1899     maybe-install-gdb \
1900     maybe-install-expect \
1901     maybe-install-guile \
1902     maybe-install-tk \
1903     maybe-install-libtermcap \
1904     maybe-install-utils
1905
1906 .PHONY: install-host
1907 install-host:  \
1908     maybe-install-ash \
1909     maybe-install-autoconf \
1910     maybe-install-automake \
1911     maybe-install-bash \
1912     maybe-install-bfd \
1913     maybe-install-opcodes \
1914     maybe-install-binutils \
1915     maybe-install-bison \
1916     maybe-install-byacc \
1917     maybe-install-bzip2 \
1918     maybe-install-dejagnu \
1919     maybe-install-diff \
1920     maybe-install-dosutils \
1921     maybe-install-etc \
1922     maybe-install-fastjar \
1923     maybe-install-fileutils \
1924     maybe-install-findutils \
1925     maybe-install-find \
1926     maybe-install-flex \
1927     maybe-install-gas \
1928     maybe-install-gcc \
1929     maybe-install-gawk \
1930     maybe-install-gettext \
1931     maybe-install-gnuserv \
1932     maybe-install-gprof \
1933     maybe-install-gzip \
1934     maybe-install-hello \
1935     maybe-install-indent \
1936     maybe-install-intl \
1937     maybe-install-tcl \
1938     maybe-install-itcl \
1939     maybe-install-ld \
1940     maybe-install-libcpp \
1941     maybe-install-libgui \
1942     maybe-install-libiberty \
1943     maybe-install-libtool \
1944     maybe-install-m4 \
1945     maybe-install-make \
1946     maybe-install-mmalloc \
1947     maybe-install-patch \
1948     maybe-install-perl \
1949     maybe-install-prms \
1950     maybe-install-rcs \
1951     maybe-install-readline \
1952     maybe-install-release \
1953     maybe-install-recode \
1954     maybe-install-sed \
1955     maybe-install-send-pr \
1956     maybe-install-shellutils \
1957     maybe-install-sid \
1958     maybe-install-sim \
1959     maybe-install-tar \
1960     maybe-install-texinfo \
1961     maybe-install-textutils \
1962     maybe-install-time \
1963     maybe-install-uudecode \
1964     maybe-install-wdiff \
1965     maybe-install-zip \
1966     maybe-install-zlib \
1967     maybe-install-gdb \
1968     maybe-install-expect \
1969     maybe-install-guile \
1970     maybe-install-tk \
1971     maybe-install-libtermcap \
1972     maybe-install-utils
1973
1974 .PHONY: install-target
1975 install-target:  \
1976     maybe-install-target-libstdc++-v3 \
1977     maybe-install-target-libmudflap \
1978     maybe-install-target-newlib \
1979     maybe-install-target-libgfortran \
1980     maybe-install-target-libobjc \
1981     maybe-install-target-libtermcap \
1982     maybe-install-target-winsup \
1983     maybe-install-target-libgloss \
1984     maybe-install-target-libiberty \
1985     maybe-install-target-gperf \
1986     maybe-install-target-examples \
1987     maybe-install-target-libffi \
1988     maybe-install-target-libjava \
1989     maybe-install-target-zlib \
1990     maybe-install-target-boehm-gc \
1991     maybe-install-target-qthreads \
1992     maybe-install-target-rda \
1993     maybe-install-target-libada
1994
1995 uninstall:
1996         @echo "the uninstall target is not supported in this tree"
1997
1998 .PHONY: install.all
1999 install.all: install-no-fixedincludes
2000         @if [ -f ./gcc/Makefile ] ; then \
2001                 r=`${PWD_COMMAND}` ; export r ; \
2002                 $(SET_LIB_PATH) \
2003                 $(HOST_EXPORTS) \
2004                 (cd ./gcc && \
2005                 $(MAKE) $(FLAGS_TO_PASS) install-headers) ; \
2006         else \
2007                 true ; \
2008         fi
2009
2010 # install-no-fixedincludes is used because Cygnus can not distribute
2011 # the fixed header files.
2012 .PHONY: install-no-fixedincludes
2013 install-no-fixedincludes: installdirs install-host-nogcc \
2014         install-target gcc-no-fixedincludes
2015
2016 ### other supporting targets
2017
2018 MAKEDIRS= \
2019         $(DESTDIR)$(prefix) \
2020         $(DESTDIR)$(exec_prefix)
2021 .PHONY: installdirs
2022 installdirs: mkinstalldirs
2023         $(SHELL) $(srcdir)/mkinstalldirs $(MAKEDIRS)
2024
2025 dir.info: do-install-info
2026         if [ -f $(srcdir)/texinfo/gen-info-dir ] ; then \
2027           $(srcdir)/texinfo/gen-info-dir $(DESTDIR)$(infodir) $(srcdir)/texinfo/dir.info-template > dir.info.new ; \
2028           mv -f dir.info.new dir.info ; \
2029         else true ; \
2030         fi
2031
2032 dist:
2033         @echo "Building a full distribution of this tree isn't done"
2034         @echo "via 'make dist'.  Check out the etc/ subdirectory" 
2035
2036 etags tags: TAGS
2037
2038 # Right now this just builds TAGS in each subdirectory.  emacs19 has the
2039 # ability to use several tags files at once, so there is probably no need
2040 # to combine them into one big TAGS file (like CVS 1.3 does).  We could
2041 # (if we felt like it) have this Makefile write a piece of elisp which
2042 # the user could load to tell emacs19 where all the TAGS files we just
2043 # built are.
2044 TAGS: do-TAGS
2045
2046 # --------------------------------------
2047 # Modules which run on the build machine
2048 # --------------------------------------
2049
2050 .PHONY: configure-build-libiberty maybe-configure-build-libiberty
2051 maybe-configure-build-libiberty:
2052 @if build-libiberty
2053 maybe-configure-build-libiberty: configure-build-libiberty
2054 configure-build-libiberty:
2055         @test ! -f $(BUILD_SUBDIR)/libiberty/Makefile || exit 0; \
2056         $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/libiberty ; \
2057         r=`${PWD_COMMAND}`; export r; \
2058         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2059         $(BUILD_EXPORTS) \
2060         echo Configuring in $(BUILD_SUBDIR)/libiberty; \
2061         cd "$(BUILD_SUBDIR)/libiberty" || exit 1; \
2062         case $(srcdir) in \
2063           /* | [A-Za-z]:[\\/]*) \
2064             topdir=$(srcdir) ;; \
2065           *) \
2066             case "$(BUILD_SUBDIR)" in \
2067               .) topdir="../$(srcdir)" ;; \
2068               *) topdir="../../$(srcdir)" ;; \
2069             esac ;; \
2070         esac; \
2071         if [ "$(srcdir)" = "." ] ; then \
2072           if [ "$(BUILD_SUBDIR)" != "." ] ; then \
2073             if $(SHELL) $$s/symlink-tree $${topdir}/libiberty "no-such-file" ; then \
2074               if [ -f Makefile ]; then \
2075                 if $(MAKE) distclean; then \
2076                   true; \
2077                 else \
2078                   exit 1; \
2079                 fi; \
2080               else \
2081                 true; \
2082               fi; \
2083             else \
2084               exit 1; \
2085             fi; \
2086           else \
2087             true; \
2088           fi; \
2089           srcdiroption="--srcdir=."; \
2090           libsrcdir="."; \
2091         else \
2092           srcdiroption="--srcdir=$${topdir}/libiberty"; \
2093           libsrcdir="$$s/libiberty"; \
2094         fi; \
2095         rm -f no-such-file || : ; \
2096         CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2097           $(BUILD_CONFIGARGS) $${srcdiroption} \
2098           --with-build-subdir="$(BUILD_SUBDIR)"  \
2099           || exit 1
2100 @endif build-libiberty
2101
2102 .PHONY: all-build-libiberty maybe-all-build-libiberty
2103 maybe-all-build-libiberty:
2104 @if build-libiberty
2105 TARGET-build-libiberty=all
2106 maybe-all-build-libiberty: all-build-libiberty
2107 all-build-libiberty: configure-build-libiberty
2108         @r=`${PWD_COMMAND}`; export r; \
2109         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2110         $(BUILD_EXPORTS) \
2111         (cd $(BUILD_SUBDIR)/libiberty && \
2112           $(MAKE)  $(TARGET-build-libiberty))
2113 @endif build-libiberty
2114
2115 .PHONY: configure-build-bison maybe-configure-build-bison
2116 maybe-configure-build-bison:
2117 @if build-bison
2118 maybe-configure-build-bison: configure-build-bison
2119 configure-build-bison:
2120         @test ! -f $(BUILD_SUBDIR)/bison/Makefile || exit 0; \
2121         $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/bison ; \
2122         r=`${PWD_COMMAND}`; export r; \
2123         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2124         $(BUILD_EXPORTS) \
2125         echo Configuring in $(BUILD_SUBDIR)/bison; \
2126         cd "$(BUILD_SUBDIR)/bison" || exit 1; \
2127         case $(srcdir) in \
2128           /* | [A-Za-z]:[\\/]*) \
2129             topdir=$(srcdir) ;; \
2130           *) \
2131             case "$(BUILD_SUBDIR)" in \
2132               .) topdir="../$(srcdir)" ;; \
2133               *) topdir="../../$(srcdir)" ;; \
2134             esac ;; \
2135         esac; \
2136         if [ "$(srcdir)" = "." ] ; then \
2137           if [ "$(BUILD_SUBDIR)" != "." ] ; then \
2138             if $(SHELL) $$s/symlink-tree $${topdir}/bison "no-such-file" ; then \
2139               if [ -f Makefile ]; then \
2140                 if $(MAKE) distclean; then \
2141                   true; \
2142                 else \
2143                   exit 1; \
2144                 fi; \
2145               else \
2146                 true; \
2147               fi; \
2148             else \
2149               exit 1; \
2150             fi; \
2151           else \
2152             true; \
2153           fi; \
2154           srcdiroption="--srcdir=."; \
2155           libsrcdir="."; \
2156         else \
2157           srcdiroption="--srcdir=$${topdir}/bison"; \
2158           libsrcdir="$$s/bison"; \
2159         fi; \
2160         rm -f no-such-file || : ; \
2161         CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2162           $(BUILD_CONFIGARGS) $${srcdiroption} \
2163           --with-build-subdir="$(BUILD_SUBDIR)"  \
2164           || exit 1
2165 @endif build-bison
2166
2167 .PHONY: all-build-bison maybe-all-build-bison
2168 maybe-all-build-bison:
2169 @if build-bison
2170 TARGET-build-bison=all
2171 maybe-all-build-bison: all-build-bison
2172 all-build-bison: configure-build-bison
2173         @r=`${PWD_COMMAND}`; export r; \
2174         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2175         $(BUILD_EXPORTS) \
2176         (cd $(BUILD_SUBDIR)/bison && \
2177           $(MAKE)  $(TARGET-build-bison))
2178 @endif build-bison
2179
2180 .PHONY: configure-build-byacc maybe-configure-build-byacc
2181 maybe-configure-build-byacc:
2182 @if build-byacc
2183 maybe-configure-build-byacc: configure-build-byacc
2184 configure-build-byacc:
2185         @test ! -f $(BUILD_SUBDIR)/byacc/Makefile || exit 0; \
2186         $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/byacc ; \
2187         r=`${PWD_COMMAND}`; export r; \
2188         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2189         $(BUILD_EXPORTS) \
2190         echo Configuring in $(BUILD_SUBDIR)/byacc; \
2191         cd "$(BUILD_SUBDIR)/byacc" || exit 1; \
2192         case $(srcdir) in \
2193           /* | [A-Za-z]:[\\/]*) \
2194             topdir=$(srcdir) ;; \
2195           *) \
2196             case "$(BUILD_SUBDIR)" in \
2197               .) topdir="../$(srcdir)" ;; \
2198               *) topdir="../../$(srcdir)" ;; \
2199             esac ;; \
2200         esac; \
2201         if [ "$(srcdir)" = "." ] ; then \
2202           if [ "$(BUILD_SUBDIR)" != "." ] ; then \
2203             if $(SHELL) $$s/symlink-tree $${topdir}/byacc "no-such-file" ; then \
2204               if [ -f Makefile ]; then \
2205                 if $(MAKE) distclean; then \
2206                   true; \
2207                 else \
2208                   exit 1; \
2209                 fi; \
2210               else \
2211                 true; \
2212               fi; \
2213             else \
2214               exit 1; \
2215             fi; \
2216           else \
2217             true; \
2218           fi; \
2219           srcdiroption="--srcdir=."; \
2220           libsrcdir="."; \
2221         else \
2222           srcdiroption="--srcdir=$${topdir}/byacc"; \
2223           libsrcdir="$$s/byacc"; \
2224         fi; \
2225         rm -f no-such-file || : ; \
2226         CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2227           $(BUILD_CONFIGARGS) $${srcdiroption} \
2228           --with-build-subdir="$(BUILD_SUBDIR)"  \
2229           || exit 1
2230 @endif build-byacc
2231
2232 .PHONY: all-build-byacc maybe-all-build-byacc
2233 maybe-all-build-byacc:
2234 @if build-byacc
2235 TARGET-build-byacc=all
2236 maybe-all-build-byacc: all-build-byacc
2237 all-build-byacc: configure-build-byacc
2238         @r=`${PWD_COMMAND}`; export r; \
2239         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2240         $(BUILD_EXPORTS) \
2241         (cd $(BUILD_SUBDIR)/byacc && \
2242           $(MAKE)  $(TARGET-build-byacc))
2243 @endif build-byacc
2244
2245 .PHONY: configure-build-flex maybe-configure-build-flex
2246 maybe-configure-build-flex:
2247 @if build-flex
2248 maybe-configure-build-flex: configure-build-flex
2249 configure-build-flex:
2250         @test ! -f $(BUILD_SUBDIR)/flex/Makefile || exit 0; \
2251         $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/flex ; \
2252         r=`${PWD_COMMAND}`; export r; \
2253         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2254         $(BUILD_EXPORTS) \
2255         echo Configuring in $(BUILD_SUBDIR)/flex; \
2256         cd "$(BUILD_SUBDIR)/flex" || exit 1; \
2257         case $(srcdir) in \
2258           /* | [A-Za-z]:[\\/]*) \
2259             topdir=$(srcdir) ;; \
2260           *) \
2261             case "$(BUILD_SUBDIR)" in \
2262               .) topdir="../$(srcdir)" ;; \
2263               *) topdir="../../$(srcdir)" ;; \
2264             esac ;; \
2265         esac; \
2266         if [ "$(srcdir)" = "." ] ; then \
2267           if [ "$(BUILD_SUBDIR)" != "." ] ; then \
2268             if $(SHELL) $$s/symlink-tree $${topdir}/flex "no-such-file" ; then \
2269               if [ -f Makefile ]; then \
2270                 if $(MAKE) distclean; then \
2271                   true; \
2272                 else \
2273                   exit 1; \
2274                 fi; \
2275               else \
2276                 true; \
2277               fi; \
2278             else \
2279               exit 1; \
2280             fi; \
2281           else \
2282             true; \
2283           fi; \
2284           srcdiroption="--srcdir=."; \
2285           libsrcdir="."; \
2286         else \
2287           srcdiroption="--srcdir=$${topdir}/flex"; \
2288           libsrcdir="$$s/flex"; \
2289         fi; \
2290         rm -f no-such-file || : ; \
2291         CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2292           $(BUILD_CONFIGARGS) $${srcdiroption} \
2293           --with-build-subdir="$(BUILD_SUBDIR)"  \
2294           || exit 1
2295 @endif build-flex
2296
2297 .PHONY: all-build-flex maybe-all-build-flex
2298 maybe-all-build-flex:
2299 @if build-flex
2300 TARGET-build-flex=all
2301 maybe-all-build-flex: all-build-flex
2302 all-build-flex: configure-build-flex
2303         @r=`${PWD_COMMAND}`; export r; \
2304         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2305         $(BUILD_EXPORTS) \
2306         (cd $(BUILD_SUBDIR)/flex && \
2307           $(MAKE)  $(TARGET-build-flex))
2308 @endif build-flex
2309
2310 .PHONY: configure-build-m4 maybe-configure-build-m4
2311 maybe-configure-build-m4:
2312 @if build-m4
2313 maybe-configure-build-m4: configure-build-m4
2314 configure-build-m4:
2315         @test ! -f $(BUILD_SUBDIR)/m4/Makefile || exit 0; \
2316         $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/m4 ; \
2317         r=`${PWD_COMMAND}`; export r; \
2318         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2319         $(BUILD_EXPORTS) \
2320         echo Configuring in $(BUILD_SUBDIR)/m4; \
2321         cd "$(BUILD_SUBDIR)/m4" || exit 1; \
2322         case $(srcdir) in \
2323           /* | [A-Za-z]:[\\/]*) \
2324             topdir=$(srcdir) ;; \
2325           *) \
2326             case "$(BUILD_SUBDIR)" in \
2327               .) topdir="../$(srcdir)" ;; \
2328               *) topdir="../../$(srcdir)" ;; \
2329             esac ;; \
2330         esac; \
2331         if [ "$(srcdir)" = "." ] ; then \
2332           if [ "$(BUILD_SUBDIR)" != "." ] ; then \
2333             if $(SHELL) $$s/symlink-tree $${topdir}/m4 "no-such-file" ; then \
2334               if [ -f Makefile ]; then \
2335                 if $(MAKE) distclean; then \
2336                   true; \
2337                 else \
2338                   exit 1; \
2339                 fi; \
2340               else \
2341                 true; \
2342               fi; \
2343             else \
2344               exit 1; \
2345             fi; \
2346           else \
2347             true; \
2348           fi; \
2349           srcdiroption="--srcdir=."; \
2350           libsrcdir="."; \
2351         else \
2352           srcdiroption="--srcdir=$${topdir}/m4"; \
2353           libsrcdir="$$s/m4"; \
2354         fi; \
2355         rm -f no-such-file || : ; \
2356         CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2357           $(BUILD_CONFIGARGS) $${srcdiroption} \
2358           --with-build-subdir="$(BUILD_SUBDIR)"  \
2359           || exit 1
2360 @endif build-m4
2361
2362 .PHONY: all-build-m4 maybe-all-build-m4
2363 maybe-all-build-m4:
2364 @if build-m4
2365 TARGET-build-m4=all
2366 maybe-all-build-m4: all-build-m4
2367 all-build-m4: configure-build-m4
2368         @r=`${PWD_COMMAND}`; export r; \
2369         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2370         $(BUILD_EXPORTS) \
2371         (cd $(BUILD_SUBDIR)/m4 && \
2372           $(MAKE)  $(TARGET-build-m4))
2373 @endif build-m4
2374
2375 .PHONY: configure-build-texinfo maybe-configure-build-texinfo
2376 maybe-configure-build-texinfo:
2377 @if build-texinfo
2378 maybe-configure-build-texinfo: configure-build-texinfo
2379 configure-build-texinfo:
2380         @test ! -f $(BUILD_SUBDIR)/texinfo/Makefile || exit 0; \
2381         $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/texinfo ; \
2382         r=`${PWD_COMMAND}`; export r; \
2383         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2384         $(BUILD_EXPORTS) \
2385         echo Configuring in $(BUILD_SUBDIR)/texinfo; \
2386         cd "$(BUILD_SUBDIR)/texinfo" || exit 1; \
2387         case $(srcdir) in \
2388           /* | [A-Za-z]:[\\/]*) \
2389             topdir=$(srcdir) ;; \
2390           *) \
2391             case "$(BUILD_SUBDIR)" in \
2392               .) topdir="../$(srcdir)" ;; \
2393               *) topdir="../../$(srcdir)" ;; \
2394             esac ;; \
2395         esac; \
2396         if [ "$(srcdir)" = "." ] ; then \
2397           if [ "$(BUILD_SUBDIR)" != "." ] ; then \
2398             if $(SHELL) $$s/symlink-tree $${topdir}/texinfo "no-such-file" ; then \
2399               if [ -f Makefile ]; then \
2400                 if $(MAKE) distclean; then \
2401                   true; \
2402                 else \
2403                   exit 1; \
2404                 fi; \
2405               else \
2406                 true; \
2407               fi; \
2408             else \
2409               exit 1; \
2410             fi; \
2411           else \
2412             true; \
2413           fi; \
2414           srcdiroption="--srcdir=."; \
2415           libsrcdir="."; \
2416         else \
2417           srcdiroption="--srcdir=$${topdir}/texinfo"; \
2418           libsrcdir="$$s/texinfo"; \
2419         fi; \
2420         rm -f no-such-file || : ; \
2421         CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2422           $(BUILD_CONFIGARGS) $${srcdiroption} \
2423           --with-build-subdir="$(BUILD_SUBDIR)"  \
2424           || exit 1
2425 @endif build-texinfo
2426
2427 .PHONY: all-build-texinfo maybe-all-build-texinfo
2428 maybe-all-build-texinfo:
2429 @if build-texinfo
2430 TARGET-build-texinfo=all
2431 maybe-all-build-texinfo: all-build-texinfo
2432 all-build-texinfo: configure-build-texinfo
2433         @r=`${PWD_COMMAND}`; export r; \
2434         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2435         $(BUILD_EXPORTS) \
2436         (cd $(BUILD_SUBDIR)/texinfo && \
2437           $(MAKE)  $(TARGET-build-texinfo))
2438 @endif build-texinfo
2439
2440 .PHONY: configure-build-fixincludes maybe-configure-build-fixincludes
2441 maybe-configure-build-fixincludes:
2442 @if build-fixincludes
2443 maybe-configure-build-fixincludes: configure-build-fixincludes
2444 configure-build-fixincludes:
2445         @test ! -f $(BUILD_SUBDIR)/fixincludes/Makefile || exit 0; \
2446         $(SHELL) $(srcdir)/mkinstalldirs $(BUILD_SUBDIR)/fixincludes ; \
2447         r=`${PWD_COMMAND}`; export r; \
2448         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2449         $(BUILD_EXPORTS) \
2450         echo Configuring in $(BUILD_SUBDIR)/fixincludes; \
2451         cd "$(BUILD_SUBDIR)/fixincludes" || exit 1; \
2452         case $(srcdir) in \
2453           /* | [A-Za-z]:[\\/]*) \
2454             topdir=$(srcdir) ;; \
2455           *) \
2456             case "$(BUILD_SUBDIR)" in \
2457               .) topdir="../$(srcdir)" ;; \
2458               *) topdir="../../$(srcdir)" ;; \
2459             esac ;; \
2460         esac; \
2461         if [ "$(srcdir)" = "." ] ; then \
2462           if [ "$(BUILD_SUBDIR)" != "." ] ; then \
2463             if $(SHELL) $$s/symlink-tree $${topdir}/fixincludes "no-such-file" ; then \
2464               if [ -f Makefile ]; then \
2465                 if $(MAKE) distclean; then \
2466                   true; \
2467                 else \
2468                   exit 1; \
2469                 fi; \
2470               else \
2471                 true; \
2472               fi; \
2473             else \
2474               exit 1; \
2475             fi; \
2476           else \
2477             true; \
2478           fi; \
2479           srcdiroption="--srcdir=."; \
2480           libsrcdir="."; \
2481         else \
2482           srcdiroption="--srcdir=$${topdir}/fixincludes"; \
2483           libsrcdir="$$s/fixincludes"; \
2484         fi; \
2485         rm -f no-such-file || : ; \
2486         CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
2487           $(BUILD_CONFIGARGS) $${srcdiroption} \
2488           --with-build-subdir="$(BUILD_SUBDIR)"  \
2489           || exit 1
2490 @endif build-fixincludes
2491
2492 .PHONY: all-build-fixincludes maybe-all-build-fixincludes
2493 maybe-all-build-fixincludes:
2494 @if build-fixincludes
2495 TARGET-build-fixincludes=all
2496 maybe-all-build-fixincludes: all-build-fixincludes
2497 all-build-fixincludes: configure-build-fixincludes
2498         @r=`${PWD_COMMAND}`; export r; \
2499         s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
2500         $(BUILD_EXPORTS) \
2501         (cd $(BUILD_SUBDIR)/fixincludes && \
2502           $(MAKE)  $(TARGET-build-fixincludes))
2503 @endif build-fixincludes
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/Makefile ] || exit 0; \