OSDN Git Service

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